diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/about.json b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..98baae49a77a025c04827756b30cd39547e8c6e3 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/about.json @@ -0,0 +1,247 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge/label/sysroot-with-crypt", + "https://conda.anaconda.org/conda-forge" + ], + "conda_build_version": "26.1.0", + "conda_version": "26.1.0", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "feedstock-name": "ctng-compilers-feedstock", + "final": true, + "flow_run_id": "azure_20260212.3.1", + "parent_recipe": { + "name": "gcc_compilers", + "path": "/home/conda/recipe_root", + "version": "13.4.0" + }, + "recipe-maintainers": [ + "timsnyder", + "xhochy", + "isuruf", + "beckermr" + ], + "remote_url": "https://github.com/conda-forge/ctng-compilers-feedstock", + "sha": "14a57afe05d9db64add1754ce28198e5e8d4d7b6" + }, + "home": "https://github.com/conda-forge/ctng-compilers-feedstock", + "identifiers": [], + "keywords": [], + "license": "BSD-3-Clause", + "license_file": "LICENSE", + "root_pkgs": [ + "krb5 1.21.3 h659f571_0", + "hpack 4.1.0 pyhd8ed1ab_0", + "ripgrep 15.1.0 hdab8a38_0", + "readchar 4.2.1 pyhe01879c_0", + "attrs 25.4.0 pyhcf101f3_1", + "dbus 1.16.2 h24cb091_1", + "pyyaml 6.0.3 py312h8a5da7c_1", + "jinja2 3.1.6 pyhcf101f3_1", + "c-ares 1.34.6 hb03c661_0", + "conda-package-streaming 0.12.0 pyhd8ed1ab_0", + "h2 4.3.0 pyhcf101f3_0", + "liblzma 5.8.2 hb03c661_0", + "traitlets 5.14.3 pyhd8ed1ab_1", + "pkginfo 1.12.1.2 pyhd8ed1ab_0", + "evalidate 2.0.5 pyhe01879c_0", + "patchelf 0.17.2 h58526e2_0", + "typing_extensions 4.15.0 pyhcf101f3_0", + "patch 2.8 hb03c661_1002", + "libmamba-spdlog 2.5.0 h12fcf84_0", + "ncurses 6.5 h2d0b736_3", + "msgpack-python 1.1.2 py312hd9148b4_1", + "libnsl 2.0.1 hb9d3cd8_1", + "python 3.12.12 hd63d673_2_cpython", + "libpng 1.6.55 h421ea60_0", + "colorama 0.4.6 pyhd8ed1ab_1", + "lz4-c 1.10.0 h5888daf_1", + "libstdcxx-ng 15.2.0 hdf11a46_17", + "libmamba 2.5.0 hd28c85e_0", + "libfreetype6 2.14.1 h73754d4_0", + "beautifulsoup4 4.14.3 pyha770c72_0", + "idna 3.11 pyhd8ed1ab_0", + "tomli 2.4.0 pyhcf101f3_0", + "archspec 0.2.5 pyhd8ed1ab_0", + "markupsafe 3.0.3 py312h8a5da7c_0", + "urllib3 2.6.3 pyhd8ed1ab_0", + "annotated-doc 0.0.4 pyhcf101f3_0", + "icu 78.2 h33c6efd_0", + "conda-libmamba-solver 25.11.0 pyhd8ed1ab_1", + "libzlib 1.3.1 hb9d3cd8_2", + "jsonpatch 1.33 pyhd8ed1ab_1", + "pip 26.0.1 pyh8b19718_0", + "libxcb 1.17.0 h8a09558_0", + "pillow 12.1.1 py312h50c33e8_0", + "_libgcc_mutex 0.1 conda_forge", + "tzdata 2025c hc9c84f9_1", + "conda-index 0.7.0 pyhd8ed1ab_0", + "rpds-py 0.30.0 py312h868fb18_0", + "importlib_resources 6.5.2 pyhd8ed1ab_0", + "yaml-cpp 0.8.0 h59595ed_0", + "hyperframe 6.1.0 pyhd8ed1ab_0", + "zipp 3.23.0 pyhcf101f3_1", + "lcms2 2.18 h0c24ade_0", + "importlib-metadata 8.7.0 pyhe01879c_1", + "boltons 25.0.0 pyhd8ed1ab_0", + "typer 0.21.2 pyhf0a747c_0", + "pydantic-core 2.41.5 py312h868fb18_1", + "click 8.3.1 pyh8f84b5b_1", + "xorg-libxdmcp 1.1.5 hb03c661_1", + "shellingham 1.5.4 pyhd8ed1ab_2", + "typer-slim 0.21.2 pyhcf101f3_0", + "semver 3.0.4 pyhcf101f3_1", + "pluggy 1.6.0 pyhf9edf01_1", + "annotated-types 0.7.0 pyhd8ed1ab_1", + "typer-slim-standard 0.21.2 h0939d6c_0", + "python-dotenv 1.2.1 pyhcf101f3_0", + "ruamel.yaml 0.18.17 py312h5253ce2_2", + "psutil 7.2.2 py312h5253ce2_0", + "wheel 0.46.3 pyhd8ed1ab_0", + "liblzma-devel 5.8.2 hb03c661_0", + "pkce 1.0.3 pyhd8ed1ab_1", + "tqdm 4.67.3 pyh8f84b5b_0", + "cffi 2.0.0 py312h460c074_1", + "jaraco.functools 4.4.0 pyhcf101f3_1", + "referencing 0.37.0 pyhcf101f3_0", + "libtiff 4.7.1 h9d88235_1", + "simdjson 4.2.4 hb700be7_0", + "libdeflate 1.25 h17f619e_0", + "jupyter_core 5.9.1 pyhc90fa1f_0", + "readline 8.3 h853b02a_0", + "pyjwt 2.11.0 pyhd8ed1ab_0", + "openjpeg 2.5.4 h55fea9a_0", + "libedit 3.1.20250104 pl5321h7949ede_0", + "libsqlite 3.51.2 hf4e2dac_0", + "py-lief 0.17.1 py312h1289d80_0", + "cpp-expected 1.3.1 h171cf75_0", + "certifi 2026.1.4 pyhd8ed1ab_0", + "tini 0.19.0 h166bdaf_1", + "jsonschema-specifications 2025.9.1 pyhcf101f3_0", + "libgomp 15.2.0 he0feb66_17", + "bzip2 1.0.8 hda65f42_8", + "lerc 4.0.0 h0aef613_1", + "more-itertools 10.8.0 pyhcf101f3_1", + "pydantic-settings 2.12.0 pyh3cfb1c2_0", + "spdlog 1.17.0 hab81395_1", + "libssh2 1.11.1 hcf80075_0", + "pycparser 2.22 pyh29332c3_1", + "ruamel.yaml.clib 0.2.15 py312h5253ce2_1", + "python-dateutil 2.9.0.post0 pyhe01879c_2", + "requests-toolbelt 1.0.0 pyhd8ed1ab_1", + "libwebp-base 1.6.0 hd42ef1d_0", + "markdown-it-py 4.0.0 pyhd8ed1ab_0", + "libxcrypt 4.4.36 hd590300_1", + "libuuid 2.41.3 h5347b49_0", + "_openmp_mutex 4.5 2_gnu", + "libcurl 8.18.0 h4e3cde8_0", + "cryptography 46.0.5 py312ha4b625e_0", + "yaml 0.2.5 h280c20c_3", + "libffi 3.5.2 h3435931_0", + "libfreetype 2.14.1 ha770c72_0", + "ld_impl_linux-64 2.45.1 default_hbd61a6d_101", + "zstandard 0.25.0 py312h5253ce2_1", + "liblief 0.17.1 hecca717_0", + "setuptools 82.0.0 pyh332efcf_0", + "xorg-libxau 1.0.12 hb03c661_1", + "jsonpointer 3.0.0 pyhcf101f3_3", + "jsonschema 4.26.0 pyhcf101f3_0", + "libnghttp2 1.67.0 had1ee68_0", + "lzo 2.10 h280c20c_1002", + "libglib 2.86.3 h6548e54_0", + "nlohmann_json-abi 3.12.0 h0f90c79_1", + "libsolv 0.7.35 h9463b59_0", + "python-fastjsonschema 2.21.2 pyhe01879c_0", + "pygments 2.19.2 pyhd8ed1ab_0", + "anaconda-auth 0.12.3 pyhd8ed1ab_0", + "backports.tarfile 1.2.0 pyhcf101f3_2", + "frozendict 2.4.7 py312h4c3975b_0", + "chardet 5.2.0 pyhd8ed1ab_3", + "distro 1.9.0 pyhd8ed1ab_1", + "soupsieve 2.8.3 pyhd8ed1ab_0", + "six 1.17.0 pyhe01879c_1", + "anaconda-client 1.14.1 pyhcf101f3_0", + "jaraco.classes 3.4.0 pyhcf101f3_3", + "platformdirs 4.5.1 pyhcf101f3_0", + "reproc 14.2.5.post0 hb9d3cd8_0", + "mamba 2.5.0 h9835478_0", + "keyring 25.7.0 pyha804496_0", + "secretstorage 3.4.1 py312h7900ff3_0", + "defusedxml 0.7.1 pyhd8ed1ab_0", + "conda 26.1.0 py312h7900ff3_0", + "typing-inspection 0.4.2 pyhd8ed1ab_1", + "libiconv 1.18 h3b78370_2", + "keyutils 1.6.3 hb9d3cd8_0", + "pycosat 0.6.6 py312h4c3975b_3", + "tomlkit 0.14.0 pyha770c72_0", + "brotli-python 1.2.0 py312hdb49522_1", + "fmt 12.1.0 hff5e90c_0", + "anaconda-cli-base 0.8.1 pyhcf101f3_0", + "pixi 0.63.2 ha759004_0", + "nbformat 5.10.4 pyhd8ed1ab_1", + "libev 4.33 hd590300_2", + "python-libarchive-c 5.3 pyhe01879c_1", + "pytz 2025.2 pyhd8ed1ab_0", + "libgcc-ng 15.2.0 h69a702a_17", + "ca-certificates 2026.1.4 hbd8a1cb_0", + "charset-normalizer 3.4.4 pyhd8ed1ab_0", + "xz 5.8.2 ha02ee65_0", + "truststore 0.10.4 pyhcf101f3_0", + "libarchive 3.8.5 gpl_hc2c16d8_100", + "conda-build 26.1.0 pyh31ec981_2", + "rich 14.3.2 pyhcf101f3_0", + "packaging 26.0 pyhcf101f3_0", + "typing-extensions 4.15.0 h396c80c_0", + "menuinst 2.4.2 py312h7900ff3_0", + "xz-tools 5.8.2 hb03c661_0", + "python_abi 3.12 8_cp312", + "perl 5.32.1 7_hd590300_perl5", + "reproc-cpp 14.2.5.post0 h5888daf_0", + "pcre2 10.47 haa7fec5_0", + "backports.zstd 1.3.0 py312h90b7ffd_0", + "git 2.52.0 pl5321h6d3cee1_1", + "jaraco.context 6.1.0 pyhcf101f3_0", + "pthread-stubs 0.4 hb9d3cd8_1002", + "libstdcxx 15.2.0 h934c35e_17", + "mbedtls 3.6.3.1 h5888daf_0", + "conda-package-handling 2.4.0 pyh7900ff3_2", + "zlib-ng 2.3.3 hceb46e0_1", + "libxml2 2.15.1 he237659_1", + "mdurl 0.1.2 pyhd8ed1ab_1", + "openssl 3.6.1 h35e630c_1", + "pysocks 1.7.1 pyha55dd90_7", + "libexpat 2.7.3 hecca717_0", + "backports 1.0 pyhd8ed1ab_5", + "libgcc 15.2.0 he0feb66_17", + "pybind11-abi 11 hc364b38_1", + "zstd 1.5.7 hb78ec9c_6", + "pydantic 2.12.5 pyhcf101f3_1", + "su-exec 0.2 h166bdaf_1003", + "jeepney 0.9.0 pyhd8ed1ab_0", + "requests 2.32.5 pyhcf101f3_1", + "libjpeg-turbo 3.1.2 hb03c661_0", + "tk 8.6.13 noxft_h366c992_103", + "filelock 3.20.3 pyhd8ed1ab_0", + "libmambapy 2.5.0 py312h1ca65c7_0", + "xz-gpl-tools 5.8.2 ha02ee65_0", + "libxml2-16 2.15.1 hca6bf5a_1", + "deprecated 1.3.1 pyhd8ed1ab_1", + "conda-env 2.6.0 1", + "conda-oci-mirror 0.2.3 pyhd8ed1ab_0", + "rattler-build-conda-compat 1.4.11 pyhd8ed1ab_0", + "shyaml 0.6.2 pyhd3deb0d_0", + "joblib 1.5.3 pyhd8ed1ab_0", + "conda-forge-metadata 0.12.0 pyhcf101f3_1", + "jq 1.8.1 h73b1eb8_0", + "wrapt 2.1.1 py312h4c3975b_0", + "oniguruma 6.9.10 hb9d3cd8_0", + "oras-py 0.1.14 pyhd8ed1ab_0", + "conda-forge-ci-setup 4.24.2 py312hef7310e_101", + "rattler-build 0.57.2 he64ecbb_1" + ], + "summary": "OpenMP Implementation Mutex", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/files b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/files new file mode 100644 index 0000000000000000000000000000000000000000..b05774803a927e1fc77033d824283ba0faee0795 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/files @@ -0,0 +1 @@ +lib/libgomp.so.1 diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/git b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/hash_input.json b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..c74afbca63c078b0d139ca04c18c57209bc8802d --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/hash_input.json @@ -0,0 +1,11 @@ +{ + "channel_targets": "conda-forge main", + "libgomp_ver": "1.0.0", + "openmp_ver": "4.5", + "cross_target_stdlib_version": "2.17", + "cross_target_platform": "linux-64", + "cross_target_stdlib": "sysroot", + "target_platform": "linux-64", + "TARGET": "x86_64-conda-linux-gnu", + "__glibc": "__glibc >=2.17,<3.0.a0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/index.json b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..536c7590e47e12f3168e638c1e2354636f4fa686 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/index.json @@ -0,0 +1,18 @@ +{ + "arch": "x86_64", + "build": "20_gnu", + "build_number": 20, + "constrains": [ + "openmp_impl <0.0a0" + ], + "depends": [ + "__glibc >=2.17,<3.0.a0", + "libgomp >=7.5.0" + ], + "license": "BSD-3-Clause", + "name": "_openmp_mutex", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1770939786096, + "version": "4.5" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/licenses/LICENSE b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..cba42cffc2901212c539e558950c6f6ed985d628 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/licenses/LICENSE @@ -0,0 +1,13 @@ +BSD 3-clause license +Copyright (c) 2015-2019, conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/paths.json b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..a42ac3db7191e716b448dd1368e2552c4ee633c1 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/paths.json @@ -0,0 +1,11 @@ +{ + "paths": [ + { + "_path": "lib/libgomp.so.1", + "path_type": "softlink", + "sha256": "7f03470f3da57b4e659243588bda6c150f09882ee43f33fd72d895586fe95cf7", + "size_in_bytes": 1475480 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d5fc2d95dcc6911fef1bcc1af801deb7b8a84c7d --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/conda_build_config.yaml @@ -0,0 +1,55 @@ +CI: azure +CONDA_BUILD_SYSROOT: /tmp/tmp.ZxUJu0EXtj/MacOSX11.0.sdk +MACOSX_SDK_VERSION: '11.0' +TARGET: x86_64-conda-linux-gnu +binutils_version: '2.45' +c_compiler: gcc +c_stdlib: sysroot +c_stdlib_version: '2.17' +channel_sources: conda-forge/label/sysroot-with-crypt,conda-forge +channel_targets: conda-forge main +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cross_target_cxx_stdlib: libstdcxx +cross_target_platform: linux-64 +cross_target_stdlib: sysroot +cross_target_stdlib_version: '2.17' +cxx_compiler: gxx +docker_image: quay.io/condaforge/linux-anvil-x86_64:alma9 +extend_keys: +- ignore_version +- ignore_build_only_deps +- extend_keys +- pin_run_as_build +fortran_compiler: gfortran +gcc_maj_ver: '13' +gcc_version: 13.4.0 +ignore_build_only_deps: +- numpy +- python +libgfortran_soname: '5' +libgomp_ver: 1.0.0 +lua: '5' +numpy: '1.26' +openmp_ver: '4.5' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +python: '3.12' +r_base: '3.5' +target_platform: linux-64 +with_conda_specs: 'true' +zip_keys: +- - gcc_version + - gcc_maj_ver + - libgfortran_soname +- - cross_target_stdlib_version + - cross_target_stdlib + - cross_target_cxx_stdlib + - TARGET + - cross_target_platform diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/install-openmp_impl.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/install-openmp_impl.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4ebad09aa18a43830fe2e9be9be97c9e965c354 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/install-openmp_impl.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +mkdir -p ${PREFIX}/lib + +pushd ${PREFIX}/lib/ + +if [[ "${TARGET}" != *mingw* ]]; then + ln -s libgomp.so.${libgomp_ver} libgomp.so.${libgomp_ver:0:1} +fi +popd diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/meta.yaml b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..266489b4f30f9e01f3cd0e9706462c3715848290 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/meta.yaml @@ -0,0 +1,54 @@ +# This file created by conda-build 26.1.0 +# ------------------------------------------------ + +package: + name: _openmp_mutex + version: 4.5 +source: + - url: + - https://mirrors.ocf.berkeley.edu/gnu/gcc/gcc-13.4.0/gcc-13.4.0.tar.gz + sha256: bf0baf3e570c9c74c17c8201f0196c6924b4bd98c90e69d6b2ac0cd823f33bbc + patches: + - patches/0001-allow-commands-in-main-specfile.patch + - patches/0004-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch + - url: https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz + sha256: 9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23 + folder: zlib2 +build: + string: 20_gnu + number: 20 + run_exports: + strong: + - _openmp_mutex >=4.5 +requirements: + host: + - kernel-headers_linux-64 3.10.0 he581ecd_18 + - libgomp 13.4.0 he0feb66_17 + - sysroot_linux-64 2.17 hb09d241_18 + - tzdata 2025c hc9c84f9_1 + run: + - __glibc >=2.17,<3.0.a0 + - libgomp >=7.5.0 + run_constrained: + - openmp_impl <0.0a0 +test: + commands: + - test -f ${PREFIX}/lib/libgomp.so.1 + - test `readlink ${PREFIX}/lib/libgomp.so.1` == "libgomp.so.1.0.0" +about: + summary: OpenMP Implementation Mutex + license: BSD-3-Clause + license_file: LICENSE + home: https://github.com/conda-forge/ctng-compilers-feedstock +extra: + feedstock-name: ctng-compilers-feedstock + recipe-maintainers: + - beckermr + - isuruf + - timsnyder + - xhochy + final: true + copy_test_source_files: true + flow_run_id: azure_20260212.3.1 + remote_url: https://github.com/conda-forge/ctng-compilers-feedstock + sha: 14a57afe05d9db64add1754ce28198e5e8d4d7b6 diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/LICENSE b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..cba42cffc2901212c539e558950c6f6ed985d628 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/LICENSE @@ -0,0 +1,13 @@ +BSD 3-clause license +Copyright (c) 2015-2019, conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/build.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..3734fbbe1e35d56800bd136f43c7053876585d23 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/build.sh @@ -0,0 +1,166 @@ +#!/bin/bash + +set -ex + +source ${RECIPE_DIR}/setup_compiler.sh + +if [[ -d zlib2 ]]; then + # Use custom configure, Makefile from gcc source + rm zlib2/Makefile + rm zlib2/Makefile.in + rm zlib2/configure + mv zlib/Makefile.in zlib2/ + mv zlib/configure zlib2/ + rm -rf zlib + mv zlib2 zlib +fi + +# ensure patch is applied +grep 'conda-forge:: allow' gcc/gcc.c* + +GCC_CONFIGURE_OPTIONS=() + +if [[ "$channel_targets" == *conda-forge* ]]; then + GCC_CONFIGURE_OPTIONS+=(--with-pkgversion="conda-forge gcc ${gcc_version}-${PKG_BUILDNUM}") + GCC_CONFIGURE_OPTIONS+=(--with-bugurl="https://github.com/conda-forge/ctng-compilers-feedstock/issues/new/choose") +fi + +for ENV_TYPE in BUILD HOST TARGET; do + for tool in addr2line ar as c++filt cc c++ dsymutil fc gcc g++ gfortran ld nm objcopy objdump ranlib readelf size strings strip; do + tool_env=$(echo $tool | tr a-z-+ A-Z_X) + if [[ "${ENV_TYPE}" != "HOST" ]]; then + tool_env="${tool_env}_FOR_${ENV_TYPE}" + fi + if [[ "$tool" == "cc" ]]; then + if [[ "${!ENV_TYPE}" == *darwin* && "${ENV_TYPE}" != "TARGET" ]]; then + tool=clang + else + tool=gcc + fi + elif [[ "$tool" == "fc" ]]; then + tool=gfortran + elif [[ "$tool" == "c++" ]]; then + if [[ "${!ENV_TYPE}" == *darwin* && "${ENV_TYPE}" != "TARGET" ]]; then + tool=clang++ + else + tool=g++ + fi + elif [[ "${!ENV_TYPE}" != *darwin* && -f $BUILD_PREFIX/bin/${!ENV_TYPE}-gcc-${tool} ]]; then + tool="gcc-${tool}" + fi + eval "export ${tool_env}=$BUILD_PREFIX/bin/${!ENV_TYPE}-$tool" + done +done + +if [[ "${TARGET}" == *mingw* ]]; then + # do not expect ${prefix}/mingw symlink - this should be superceded by + # 0005-Windows-Don-t-ignore-native-system-header-dir.patch .. but isn't! + sed -i.bak 's#${prefix}/mingw/#${prefix}/${target}/sysroot/usr/#g' configure + if [[ "$gcc_maj_ver" == "13" || "$gcc_maj_ver" == "14" ]]; then + sed -i.bak "s#/mingw/#/usr/#g" gcc/config/i386/mingw32.h + else + sed -i.bak "s#/mingw/#/usr/#g" gcc/config/mingw/mingw32.h + fi +else + # prevent mingw patches from being archived in linux conda packages + rm -rf ${RECIPE_DIR}/patches/mingw +fi + +if [[ "${BUILD}" == *darwin* ]]; then + find ./ -name 'configure' -type f -exec sed -i -e 's/tmp_nm \-B/tmp_nm/g' {} \; +fi + +if [[ "${TARGET}" != *darwin* ]]; then + # prevent macos patches from being archived in linux conda packages + rm -rf ${RECIPE_DIR}/patches/macos +fi + +# workaround a bug in gcc build files when using external binutils +# and build != host == target +export gcc_cv_objdump=$OBJDUMP_FOR_TARGET + +ls $BUILD_PREFIX/bin/ + +./contrib/download_prerequisites + +for f in isl mpfr mpc/build-aux; do + cp $BUILD_PREFIX/share/gnuconfig/config.* $f/ +done + +set +x +# We want CONDA_PREFIX/usr/lib not CONDA_PREFIX/usr/lib64 and this +# is the only way. It is incompatible with multilib (obviously). +TINFO_FILES=$(find . -path "*/config/*/t-*") +for TINFO_FILE in ${TINFO_FILES}; do + sed -i.bak 's#^\(MULTILIB_OSDIRNAMES.*\)\(lib64\)#\1lib#g' ${TINFO_FILE} + rm -f ${TINFO_FILE}.bak + sed -i.bak 's#^\(MULTILIB_OSDIRNAMES.*\)\(libx32\)#\1lib#g' ${TINFO_FILE} + rm -f ${TINFO_FILE}.bak +done +set -x + +# workaround for https://gcc.gnu.org/bugzilla//show_bug.cgi?id=80196 +if [[ "$gcc_version" == "11."* && "$build_platform" != "$target_platform" ]]; then + sed -i.bak 's@-I$glibcxx_srcdir/libsupc++@-I$glibcxx_srcdir/libsupc++ -nostdinc++@g' libstdc++-v3/configure +fi + +mkdir -p build +cd build + +# We need to explicitly set the gxx include dir because previously +# with ct-ng, native build was not considered native because +# BUILD=HOST=x86_64-build_unknown-linux-gnu and TARGET=x86_64-conda-linux-gnu +# Depending on native or not, the include dir changes. Setting it explictly +# goes back to the original way. +# See https://github.com/gcc-mirror/gcc/blob/16e2427f50c208dfe07d07f18009969502c25dc8/gcc/configure.ac#L218 + +if [[ "$TARGET" == *linux* ]]; then + GCC_CONFIGURE_OPTIONS+=(--enable-libsanitizer) + GCC_CONFIGURE_OPTIONS+=(--enable-default-pie) + GCC_CONFIGURE_OPTIONS+=(--enable-threads=posix) + GCC_CONFIGURE_OPTIONS+=(--enable-__cxa_atexit) +fi + +if [[ "${TARGET}" == *darwin* ]]; then + GCC_CONFIGURE_OPTIONS+=(--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk) + GCC_CONFIGURE_OPTIONS+=(--with-build-sysroot=${SDKROOT}) + GCC_CONFIGURE_OPTIONS+=(--enable-darwin-at-rpath) + export gcc_cv_ld64_version=955.13 +else + GCC_CONFIGURE_OPTIONS+=(--with-sysroot=${PREFIX}/${TARGET}/sysroot) + GCC_CONFIGURE_OPTIONS+=(--with-build-sysroot=${BUILD_PREFIX}/${TARGET}/sysroot) + GCC_CONFIGURE_OPTIONS+=(--enable-plugin) +fi + +if [[ "${cross_target_cxx_stdlib}" == "libcxx" ]]; then + GCC_CONFIGURE_OPTIONS+=(--disable-libstdcxx) +fi + +if [[ ! ("${BUILD}" == "${HOST}" && "${HOST}" != "${TARGET}") && "${TARGET}" != *darwin* ]]; then + GCC_CONFIGURE_OPTIONS+=(--enable-lto) +fi + +../configure \ + --prefix="$PREFIX" \ + --with-slibdir="$PREFIX/lib" \ + --libdir="$PREFIX/lib" \ + --mandir="$PREFIX/man" \ + --build=$BUILD \ + --host=$HOST \ + --target=$TARGET \ + --enable-languages=c,c++,fortran,objc,obj-c++ \ + --enable-libgomp \ + --disable-libssp \ + --enable-libquadmath \ + --enable-libquadmath-support \ + --disable-nls \ + --disable-bootstrap \ + --disable-multilib \ + --enable-long-long \ + --without-zstd \ + --with-native-system-header-dir=/usr/include \ + --with-gxx-include-dir="${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/include/c++" \ + --with-gxx-libcxx-include-dir="${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/../../../../include/c++/v1" \ + "${GCC_CONFIGURE_OPTIONS[@]}" || (cat config.log; false) + +make -j${CPU_COUNT} || (cat ${TARGET}/libgomp/config.log; false) diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/c11threads.c b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/c11threads.c new file mode 100644 index 0000000000000000000000000000000000000000..1d0b34c8662f7eca07c573c32eadbdf35a8427e3 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/c11threads.c @@ -0,0 +1,6 @@ +#include +int main() { + mtx_t mutex; + mtx_init(&mutex, mtx_plain); +} + diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/conda_build_config.yaml b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..87cf30453d6a9882c25edc2980bfd285a00f4d4c --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/conda_build_config.yaml @@ -0,0 +1,75 @@ +TARGET: + - x86_64-conda-linux-gnu + - powerpc64le-conda-linux-gnu + - aarch64-conda-linux-gnu + - x86_64-w64-mingw32 + - x86_64-apple-darwin13.4.0 + - arm64-apple-darwin20.0.0 +gcc_version: + - 15.2.0 + - 14.3.0 + - 13.4.0 +gcc_maj_ver: + - 15 + - 14 + - 13 +libgfortran_soname: + - 5 + - 5 + - 5 +binutils_version: + - 2.45 +cross_target_platform: + - linux-64 + - linux-ppc64le + - linux-aarch64 + - win-64 + - osx-64 + - osx-arm64 +cross_target_stdlib_version: + - 2.17 + - 2.17 + - 2.17 + - 12 + - 0 + - 0 +cross_target_stdlib: + - sysroot + - sysroot + - sysroot + - m2w64-sysroot + - None + - None +cross_target_cxx_stdlib: + - libstdcxx + - libstdcxx + - libstdcxx + - libstdcxx + - libcxx + - libcxx +MACOSX_SDK_VERSION: + - 11.0 +# openmp versions +openmp_ver: + - 4.5 +libgomp_ver: + - 1.0.0 +channel_sources: + - conda-forge/label/sysroot-with-crypt,conda-forge +# we could use stdlib("m2w64_c"), but this allows uniform use in setup_compiler.sh +c_stdlib: # [win] + - m2w64-sysroot # [win] +c_stdlib_version: # [win] + - 12 # [win] +with_conda_specs: + - true + - false +zip_keys: + - - cross_target_stdlib_version + - cross_target_stdlib + - cross_target_cxx_stdlib + - TARGET + - cross_target_platform + - - gcc_version + - gcc_maj_ver + - libgfortran_soname diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/get_cpu_arch.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/get_cpu_arch.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bafb81572c0f4b37750beab018a9b969156904b --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/get_cpu_arch.sh @@ -0,0 +1,40 @@ +get_cpu_arch() { + local CPU_ARCH + if [[ "$1" == *"-64" ]]; then + CPU_ARCH="x86_64" + elif [[ "$1" == *"-ppc64le" ]]; then + CPU_ARCH="powerpc64le" + elif [[ "$1" == *"-aarch64" ]]; then + CPU_ARCH="aarch64" + elif [[ "$1" == *"-s390x" ]]; then + CPU_ARCH="s390x" + else + echo "Unknown architecture" + exit 1 + fi + echo $CPU_ARCH +} + +get_triplet() { + if [[ "$1" == linux-* ]]; then + echo "$(get_cpu_arch $1)-conda-linux-gnu" + elif [[ "$1" == osx-64 ]]; then + echo "x86_64-apple-darwin13.4.0" + elif [[ "$1" == osx-arm64 ]]; then + echo "arm64-apple-darwin20.0.0" + elif [[ "$1" == win-64 ]]; then + echo "x86_64-w64-mingw32" + else + echo "unknown platform" + exit 1 + fi +} + +export BUILD="$(get_triplet $build_platform)" +export HOST="$(get_triplet $target_platform)" +export TARGET_REF="$(get_triplet $cross_target_platform)" + +if [[ "${TARGET}" != "${TARGET_REF}" ]]; then + echo "TARGET: ${TARGET} does not match expected ${TARGET_REF}" + exit 1 +fi diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/hello-world.cpp b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/hello-world.cpp new file mode 100644 index 0000000000000000000000000000000000000000..abdfa651565e60579d61d05bc45afd98be1d3457 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/hello-world.cpp @@ -0,0 +1,7 @@ +#include + +int main(int argc, char * argv[]) +{ + std::cout << "Hello World!\n" << std::endl; + return 0; +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/include-fixed-math.h b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/include-fixed-math.h new file mode 100644 index 0000000000000000000000000000000000000000..fc1792dd5fc1fe4abd0e9de127c7f2e7116e5f83 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/include-fixed-math.h @@ -0,0 +1,12 @@ +#ifndef __MATH_H__ + +#if __FLT_EVAL_METHOD__ == 16 +#undef __FLT_EVAL_METHOD__ +#define __FLT_EVAL_METHOD__ 1 +#include_next +#undef __FLT_EVAL_METHOD__ +#define __FLT_EVAL_METHOD__ 16 +#else +#include_next +#endif +#endif diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-conda-specs.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-conda-specs.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b500e59b79a45a9e644ed97f38d3fe0c08b1a06 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-conda-specs.sh @@ -0,0 +1,53 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh + +set -ex + +specdir=$PREFIX/lib/gcc/$TARGET/${gcc_version} +mkdir -p ${specdir} + +if [[ "${TARGET}" == "${HOST}" ]]; then + cp ${SRC_DIR}/build/gcc/specs ${SRC_DIR}/build/gcc/conda.specs + install -Dm644 ${SRC_DIR}/build/gcc/conda.specs $specdir + + # Add specs when we're not cross compiling so that the toolchain works more like a system + # toolchain (i.e. conda installed libs can be #include <>'d and linked without adding any + # cmdline args or FLAGS and likewise the assumptions we have about rpath are built in) + # + # THIS IS INTENDED as a safety net for casual users who just want the native toolchain to work. + # It is not to be relied on by conda-forge package recipes and best practice is still to set the + # appropriate FLAGS vars (either via compiler activation scripts or explicitly in the recipe) + # + # We use double quotes here because we want $PREFIX and $TARGET to be expanded at build time + # and recorded in the specs file. It will undergo a prefix replacement when our compiler + # package is installed. + if [[ "$TARGET" == *linux* ]]; then + NEW_LINK="%{\!static:-rpath ${PREFIX}/lib -rpath-link ${PREFIX}/lib} -L ${PREFIX}/lib/stubs -L ${PREFIX}/lib" + sed -i.bak "/\*link_command:/,+1 s+%.*+& ${NEW_LINK}+" $specdir/conda.specs + elif [[ "$TARGET" == *mingw* ]]; then + NEW_LINK="-L ${PREFIX}/lib" + sed -i.bak "/\*link_command:/,+1 s+%.*+& ${NEW_LINK}+" $specdir/conda.specs + elif [[ "$TARGET" == *darwin* ]]; then + NEW_LINK="%{\!static:-rpath ${PREFIX}/lib} -L ${PREFIX}/lib" + sed -i.bak "/\*link_command:/,+1 s+%\(.*\)\}\}\}\}\}\}\}\}\}\}+%\1\}\}\} ${NEW_LINK}\}\}\}\}\}\}\}+" $specdir/conda.specs + sed -i.bak "s+@loader_path+${PREFIX}/lib+g" $specdir/conda.specs + fi + if [[ "${TARGET}" == *linux* ]]; then + # put -disable-new-dtags at the front of the cmdline so that user provided -enable-new-dtags (in %l) can override it + sed -i.bak "/\*link_command:/,+1 s+%(linker)+& -disable-new-dtags +" $specdir/conda.specs + fi + # use -idirafter to put the conda "system" includes where /usr/local/include would typically go + # in a system-packaged non-cross compiler + sed -i.bak "/\*cpp_options:/,+1 s+%.*+& -idirafter ${PREFIX}/include+" $specdir/conda.specs + # cc1_options also get used for cc1plus... at least in 11.2.0 + sed -i.bak "/\*cc1_options:/,+1 s+%.*+& -idirafter ${PREFIX}/include+" $specdir/conda.specs + + rm $specdir/conda.specs.bak +else + # does it even make sense to do anything here? Could do something with %:getenv(BUILD_PREFIX /include) + # but in the case that we aren't inside conda-build, it will cause gcc to fatal + # because it won't be set. Just explicitly making this fail for now so that the meta.yaml + # is consitent with when it creates the conda-gcc-specs package + false +fi diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-g++.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..abc422f222742df34d5b44713bc7e6e7892fd92e --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-g++.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + + +_libdir=libexec/gcc/${TARGET}/${PKG_VERSION} + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${TARGET}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + +make -C gcc prefix=${PREFIX} c++.install-common + +# How it used to be: +# install -m755 -t ${PREFIX}/bin/ gcc/{cc1plus,lto1} +for file in cc1plus; do + if [[ -f gcc/${file}${EXEEXT} ]]; then + install -c gcc/${file}${EXEEXT} ${PREFIX}/${_libdir}/${file}${EXEEXT} + fi +done + +# Following 3 are in libstdcxx-devel +#make -C $TARGET/libstdc++-v3/src prefix=${PREFIX} install +#make -C $TARGET/libstdc++-v3/include prefix=${PREFIX} install +#make -C $TARGET/libstdc++-v3/libsupc++ prefix=${PREFIX} install +if [[ "$cross_target_cxx_stdlib" == "libstdcxx" ]]; then + make -C $TARGET/libstdc++-v3/python prefix=${PREFIX} install +fi + +# Probably don't want to do this for cross-compilers +# mkdir -p ${PREFIX}/share/gdb/auto-load/usr/lib/ +# cp ${SRC_DIR}/gcc_built/${TARGET}/sysroot/lib/libstdc++.so.6.*-gdb.py ${PREFIX}/share/gdb/auto-load/usr/lib/ + +make -C libcpp prefix=${PREFIX} install + +popd + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find bin libexec -type f -not -name '*.dll') + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${BUILD_PREFIX}/bin/${HOST}-strip ${STRIP_ARGS} -v "${_file}" || : + ;; + esac + done +popd + +source ${RECIPE_DIR}/make_tool_links.sh diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-gcc.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9bca95d99eb106485b14bdaf5a9e5ad11556be70 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-gcc.sh @@ -0,0 +1,282 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +_libdir=libexec/gcc/${TARGET}/${PKG_VERSION} + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${TARGET}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + # We may not have built with plugin support so failure here is not fatal: + make prefix=${PREFIX} install-lto-plugin || true + + sed -i.bak 's/install-collect2: collect2 /install-collect2: collect2$(exeext) /g' gcc/Makefile + make -C gcc prefix=${PREFIX} install-driver install-cpp install-gcc-ar install-headers install-plugin install-lto-wrapper install-collect2 + # not sure if this is the same as the line above. Run both, just in case + make -C lto-plugin prefix=${PREFIX} install || true + install -dm755 ${PREFIX}/lib/bfd-plugins/ || true + + # statically linked, so this so does not exist + # ln -s $PREFIX/lib/gcc/$TARGET/liblto_plugin.so ${PREFIX}/lib/bfd-plugins/ + + make -C libcpp prefix=${PREFIX} install + + # Include languages we do not have any other place for here (and also lto1) + for file in gnat1 brig1 cc1 go1 lto1 cc1obj cc1objplus; do + if [[ -f gcc/${file}${EXEEXT} ]]; then + install -c gcc/${file}${EXEEXT} ${PREFIX}/${_libdir}/${file}${EXEEXT} + fi + done + + # https://github.com/gcc-mirror/gcc/blob/gcc-7_3_0-release/gcc/Makefile.in#L3481-L3526 + # Could have used install-common, but it also installs cxx binaries, which we + # don't want in this package. We could patch it, or use the loop below: + for file in gcov{,-tool,-dump}; do + if [[ -f gcc/${file}${EXEEXT} ]]; then + install -c gcc/${file}${EXEEXT} ${PREFIX}/bin/${TARGET}-${file}${EXEEXT} + fi + done + + make prefix=${PREFIX}/lib/gcc/${TARGET}/${gcc_version} install-libcc1 + install -d ${PREFIX}/share/gdb/auto-load/usr/lib + + make prefix=${PREFIX} install-fixincludes + make -C gcc prefix=${PREFIX} install-mkheaders + + if [[ -d ${TARGET}/libatomic ]]; then + make -C ${TARGET}/libatomic prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libgomp ]]; then + make -C ${TARGET}/libgomp prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libitm ]]; then + make -C ${TARGET}/libitm prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libquadmath ]]; then + make -C ${TARGET}/libquadmath prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libsanitizer ]]; then + make -C ${TARGET}/libsanitizer prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libsanitizer/asan ]]; then + make -C ${TARGET}/libsanitizer/asan prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libsanitizer/tsan ]]; then + make -C ${TARGET}/libsanitizer/tsan prefix=${PREFIX} install + fi + + make -C libiberty prefix=${PREFIX} install + # install PIC version of libiberty + if [[ "${TARGET}" != *mingw* ]]; then + install -m644 libiberty/pic/libiberty.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} + else + install -m644 libiberty/libiberty.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} + fi + + make -C gcc prefix=${PREFIX} install-man install-info + + make -C gcc prefix=${PREFIX} install-po + + # many packages expect this symlink + [[ -f ${PREFIX}/bin/${TARGET}-cc${EXEEXT} ]] && rm ${PREFIX}/bin/${TARGET}-cc${EXEEXT} + pushd ${PREFIX}/bin + if [[ "${HOST}" != *mingw* ]]; then + ln -s ${TARGET}-gcc${EXEEXT} ${TARGET}-cc${EXEEXT} + else + cp ${TARGET}-gcc${EXEEXT} ${TARGET}-cc${EXEEXT} + fi + popd + + # POSIX conformance launcher scripts for c89 and c99 + cat > ${PREFIX}/bin/${TARGET}-c89${EXEEXT} <<"EOF" +#!/bin/sh +fl="-std=c89" +for opt; do + case "$opt" in + -ansi|-std=c89|-std=iso9899:1990) fl="";; + -std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2 + exit 1;; + esac +done +exec ${TARGET}-c89${EXEEXT} $fl ${1+"$@"} +EOF + + cat > ${PREFIX}/bin/${TARGET}-c99${EXEEXT} <<"EOF" +#!/bin/sh +fl="-std=c99" +for opt; do + case "$opt" in + -std=c99|-std=iso9899:1999) fl="";; + -std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2 + exit 1;; + esac +done +exec ${TARGET}-c99${EXEEXT} $fl ${1+"$@"} +EOF + + chmod 755 ${PREFIX}/bin/${TARGET}-c{8,9}9${EXEEXT} + + rm ${PREFIX}/bin/${TARGET}-gcc-${PKG_VERSION}${EXEEXT} + +popd + +# generate specfile so that we can patch loader link path +# link_libgcc should have the gcc's own libraries by default (-R) +# so that LD_LIBRARY_PATH isn't required for basic libraries. +# +# GF method here to create specs file and edit it. The other methods +# tried had no effect on the result. including: +# setting LINK_LIBGCC_SPECS on configure +# setting LINK_LIBGCC_SPECS on make +# setting LINK_LIBGCC_SPECS in gcc/Makefile +specdir=$PREFIX/lib/gcc/$TARGET/${gcc_version} +cp ${SRC_DIR}/build/gcc/specs $specdir/specs +cat $specdir/specs + +# make a copy of the specs without our additions so that people can choose not to use them +# by passing -specs=builtin.specs +cp $specdir/specs $specdir/builtin.specs + +# modify the default specs to only have %include_noerr that includes an optional conda.specs +# package installable via the conda-gcc-specs package where conda.specs (for ${TARGET} +# == ${HOST}) will add the minimal set of flags for the 'native' toolchains to be useable +# without anything additional set in the enviornment or extra cmdline args. +echo "%include_noerr " >> $specdir/specs + +# We use double quotes here because we want $PREFIX and $TARGET to be expanded at build time +# and recorded in the specs file. It will undergo a prefix replacement when our compiler +# package is installed. +if [[ "${TARGET}" == *linux* ]]; then + sed -i.bak "/\*link_command:/,+1 s+%.*+& %{!static:-rpath ${PREFIX}/lib}+" $specdir/specs +elif [[ "${TARGET}" == *darwin* ]]; then + sed -i.bak "s#@loader_path#${PREFIX}/lib#g" $specdir/specs +fi +rm -f $specdir/specs.bak + +mkdir -p ${PREFIX}/share/licenses/gcc + +# Install Runtime Library Exception +install -Dm644 $SRC_DIR/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc/RUNTIME.LIBRARY.EXCEPTION + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find bin libexec -type f -not -name '*.dll') + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${BUILD_PREFIX}/bin/${HOST}-strip ${STRIP_ARGS} -v "${_file}" || : + ;; + esac + done +popd + +set -x + +#${PREFIX}/bin/${TARGET}-gcc "${RECIPE_DIR}"/c11threads.c -std=c11 + +mkdir -p ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} + +if [[ "${HOST}" == "${TARGET}" ]]; then + if [[ "${TARGET}" == *darwin* ]]; then + rm -rf ${PREFIX}/lib/libgomp.*dylib + rm -rf ${PREFIX}/lib/libgomp.a + fi + # making these this way so conda build doesn't muck with them + pushd ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + if [[ "${TARGET}" == *darwin* ]]; then + ln -sf ../../../libomp.dylib libgomp.dylib + fi + for name in atomic gomp cc1 itm quadmath {a,hwa,l,t,ub}san; do + [ -e "${PREFIX}/lib/lib${name}${SHLIB_EXT}" ] || continue + ln -s ../../../lib${name}${SHLIB_EXT} lib${name}${SHLIB_EXT} + done + popd +else + source ${RECIPE_DIR}/install-libgcc.sh + if [[ "${TARGET}" == *darwin* ]]; then + rm -rf ${PREFIX}/${TARGET}/lib/libgomp.*dylib + rm -rf ${PREFIX}/${TARGET}/lib/libgomp.a + fi + rm -f ${PREFIX}/share/info/*.info + # TODO: create a TBD file libgomp.tbd that re-exports libomp.dylib + # and remove libgomp.dylib symlink from _openmp_mutex + for name in atomic gomp cc1 itm quadmath {a,hwa,l,t,ub}san; do + if [[ -f "${PREFIX}/${TARGET}/lib/lib${name}.so" ]]; then + mv ${PREFIX}/${TARGET}/lib/lib${name}.so* ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ || true + fi + if [[ -f "${PREFIX}/${TARGET}/lib/lib${name}.dylib" ]]; then + mv ${PREFIX}/${TARGET}/lib/lib${name}.*dylib ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ || true + fi + done +fi + +mkdir -p ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ +for name in atomic gomp itm quadmath {a,hwa,l,t,ub}san; do + if [[ -f "${PREFIX}/lib/lib${name}.a" ]]; then + mv ${PREFIX}/lib/lib${name}.*a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + fi + if [[ -f "${PREFIX}/${TARGET}/lib/lib${name}.a" ]]; then + mv ${PREFIX}/${TARGET}/lib/lib${name}.*a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + fi +done + +for f in ${PREFIX}/lib/*.spec; do + [ -e "$f" ] || continue + mv $f ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/$(basename $f) +done +for f in ${PREFIX}/${TARGET}/lib/*.spec; do + [ -e "$f" ] || continue + mv $f ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/$(basename $f) +done +if [[ "${TARGET}" == *linux* ]]; then + # sanitizer preinit files + for f in ${PREFIX}/lib/*.o; do + [ -e "$f" ] || continue + mv $f ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/$(basename $f) + done + for f in ${PREFIX}/${TARGET}/lib/*.o; do + [ -e "$f" ] || continue + mv $f ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/$(basename $f) + done +fi +rm -f ${PREFIX}/share/info/dir + +mkdir -p ${PREFIX}/libexec/gcc/${TARGET}/${gcc_version} +if [[ "${TARGET}" == *darwin* ]]; then + TOOLS="ar as c++filt ld nm ranlib size strings strip" +elif [[ "${TARGET}" == *linux* ]]; then + TOOLS=TOOLS="addr2line ar c++filt elfedit ld nm objcopy objdump ranlib readelf size strings strip" +elif [[ "${TARGET}" == *mingw* ]]; then + TOOLS="" + #TOOLS=TOOLS="addr2line ar c++filt elfedit ld nm objcopy objdump ranlib readelf size strings strip dlltool dllwrap windmc windres" +fi + +for f in ${TOOLS}; do + ln -sf ${PREFIX}/bin/${TARGET}-${f} ${PREFIX}/libexec/gcc/${TARGET}/${gcc_version}/${f} +done + +if [[ "${TARGET}" == *darwin* ]]; then + # stdio.h from the SDK is vendored and "fixed" here, but we need to allow + # using different SDKs + rm -f ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/include-fixed/stdio.h + # same here, but we need to support __FLT_EVAL_METHOD__=16 on older SDKs + cp ${RECIPE_DIR}/include-fixed-math.h ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/include-fixed/math.h +fi + +source ${RECIPE_DIR}/make_tool_links.sh diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-gfortran.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-gfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..48f74cfbfe5c310b02e5583f2b10a9599900390d --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-gfortran.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + + +_libdir=libexec/gcc/${TARGET}/${PKG_VERSION} + +mkdir -p $PREFIX/lib/gcc/${TARGET}/${gcc_version}/finclude +mkdir -p $PREFIX/lib/gcc/${TARGET}/${gcc_version}/include + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${TARGET}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + +# adapted from Arch install script from https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/gcc/PKGBUILD +# We cannot make install since .la files are not relocatable so libtool deliberately prevents it: +# libtool: install: error: cannot install `libgfortran.la' to a directory not ending in ${SRC_DIR}/work/gcc_built/${TARGET}/lib/../lib +make -C ${TARGET}/libgfortran prefix=${PREFIX} all-multi libgfortran.spec ieee_arithmetic.mod ieee_exceptions.mod ieee_features.mod config.h +make -C gcc prefix=${PREFIX} fortran.install-{common,man,info} + +# How it used to be: +# install -Dm755 gcc/f951 ${PREFIX}/${_libdir}/f951 +for file in f951; do + if [[ -f gcc/${file}${EXEEXT} ]]; then + install -c gcc/${file}${EXEEXT} ${PREFIX}/${_libdir}/${file}${EXEEXT} + fi +done + +cp ${TARGET}/libgfortran/libgfortran.spec ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + +pushd ${PREFIX}/bin + if [[ "${HOST}" != *mingw* ]]; then + ln -sf ${TARGET}-gfortran${EXEEXT} ${TARGET}-f95${EXEEXT} + else + cp ${TARGET}-gfortran${EXEEXT} ${TARGET}-f95${EXEEXT} + fi +popd + +make install DESTDIR=$SRC_DIR/build-finclude +install -Dm644 $SRC_DIR/build-finclude/$PREFIX/lib/gcc/${TARGET}/${gcc_version}/finclude/* $PREFIX/lib/gcc/${TARGET}/${gcc_version}/finclude/ +install -Dm644 $SRC_DIR/build-finclude/$PREFIX/lib/gcc/${TARGET}/${gcc_version}/include/*.h $PREFIX/lib/gcc/${TARGET}/${gcc_version}/include/ + +mkdir -p ${PREFIX}/share/licenses/gcc-fortran +# Install Runtime Library Exception +install -Dm644 $SRC_DIR/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc-fortran/RUNTIME.LIBRARY.EXCEPTION + +if [[ "${HOST}" == "${TARGET}" ]]; then + if [[ ${TARGET} == *linux* ]]; then + ln -sf ${PREFIX}/lib/libgfortran.so ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgfortran.so + elif [[ ${TARGET} == *darwin* ]]; then + ln -sf ${PREFIX}/lib/libgfortran.dylib ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgfortran.dylib + fi +else + if [[ ${TARGET} == *linux* ]]; then + cp -f -P ${SRC_DIR}/build/${TARGET}/libgfortran/.libs/libgfortran*.so* ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + elif [[ ${TARGET} == *darwin* ]]; then + cp -f -P ${SRC_DIR}/build/${TARGET}/libgfortran/.libs/libgfortran*.dylib ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + fi +fi +cp -f -P ${SRC_DIR}/build/${TARGET}/libgfortran/.libs/libgfortran.*a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find bin libexec -type f -not -name '*.dll') + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${BUILD_PREFIX}/bin/${HOST}-strip ${STRIP_ARGS} -v "${_file}" || : + ;; + esac + done +popd + +if [[ -f ${PREFIX}/lib/libgomp.spec ]]; then + mv ${PREFIX}/lib/libgomp.spec ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgomp.spec +fi + +rm -f ${PREFIX}/share/info/dir + +source ${RECIPE_DIR}/make_tool_links.sh diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgcc-devel.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgcc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9ec8a2ec6bfa2dc62ba4fb53cfb1be883e0d083 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgcc-devel.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + + + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${TARGET}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + +make -C ${TARGET}/libgcc prefix=${PREFIX} install + +# ${PREFIX}/lib/libgcc_s.so* goes into libgcc output, but +# avoid that the equivalents in ${PREFIX}/lib/gcc/TARGET/gcc_version end up +# in gcc_impl_{{ cross_target_platform }}, c.f. install-gcc.sh +if [[ "${TARGET}" == *linux* ]]; then + mv ${PREFIX}/lib/libgcc_s.so* ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} +elif [[ "${TARGET}" == *darwin* ]]; then + mv ${PREFIX}/lib/libgcc_s*.dylib ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} +else + # import library, not static library + mv ${PREFIX}/lib/libgcc_s.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + rm ${PREFIX}/lib/libgcc_s*.dll || true +fi +# This is in gcc_impl as it is gcc specific and clang has the same header +rm -rf ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/include/unwind.h + +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgcc-no-gomp.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgcc-no-gomp.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcbb1dc20f2a7d9b6de2a4ec49f6f546f4e23f0c --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgcc-no-gomp.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + + + +# we have to remove existing links/files so that the libgcc install works +rm -rf ${PREFIX}/lib/* +rm -rf ${PREFIX}/share/* +rm -f ${PREFIX}/${TARGET}/lib/libgomp* + +# now run install of libgcc +# this reinstalls the wrong symlinks for openmp +source ${RECIPE_DIR}/install-libgcc.sh + +# remove and relink things for openmp +rm -f ${PREFIX}/lib/libgomp.so +rm -f ${PREFIX}/${TARGET}/lib/libgomp.so +rm -f ${PREFIX}/lib/libgomp.so.${libgomp_ver:0:1} +rm -f ${PREFIX}/${TARGET}/lib/libgomp.so.${libgomp_ver:0:1} +rm -f ${PREFIX}/${TARGET}/lib/libgomp.so.${libgomp_ver} +rm -f ${PREFIX}/lib/libgomp.dylib +rm -f ${PREFIX}/${TARGET}/lib/libgomp.dylib +rm -f ${PREFIX}/lib/libgomp.${libgomp_ver:0:1}.dylib +rm -f ${PREFIX}/${TARGET}/lib/libgomp.${libgomp_ver:0:1}.dylib +rm -f ${PREFIX}/${TARGET}/lib/libgomp.${libgomp_ver}.dylib + +# (re)make the right links +# note that this code is remaking more links than the ones we want in this +# package but that is ok +pushd ${PREFIX}/lib + if [[ "${TARGET}" == *linux* ]]; then + ln -s libgomp.so.${libgomp_ver} libgomp.so.${libgomp_ver:0:1} + fi +popd diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgcc.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..80ea635eda52940265e4e0f37288306a71f16de8 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgcc.sh @@ -0,0 +1,89 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${TARGET}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + + if [[ "${PKG_NAME}" == "libgcc" ]]; then + mkdir -p ${PREFIX}/lib + mkdir -p ${PREFIX}/bin + # install-shared target doesn't seem to work on macos + # make -C ${TARGET}/libgcc prefix=${PREFIX} install DESTDIR=${PWD}/tmp + make -C ${TARGET}/libgcc prefix=${PREFIX} install DESTDIR=${PWD}/tmp + install -c -m 644 ${PWD}/tmp/${PREFIX}/lib/lib* ${PREFIX}/lib || true + if [[ "${TARGET}" == *mingw* ]]; then + mv $PREFIX/lib/libgcc_s*.dll $PREFIX/bin + fi + elif [[ "${PKG_NAME}" != "gcc_impl"* ]]; then + # when building a cross compiler, above make line will clobber $PREFIX/lib/libgcc_s.so.1 + # and fail after some point for some architectures. To avoid that, we copy manually + pushd ${TARGET}/libgcc + mkdir -p ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} + install -c -m 644 libgcc_eh.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgcc_eh.a + chmod 644 ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgcc_eh.a + ${TARGET}-ranlib ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgcc_eh.a + + if [[ "${TARGET}" == *linux* ]]; then + install -c -m 644 ./libgcc_s.so.1 ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgcc_s.so.1 + cp $RECIPE_DIR/libgcc_s.so.ldscript ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgcc_s.so + elif [[ "${TARGET}" == *darwin* ]]; then + install -c -m 644 ./libgcc_s.1.dylib ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgcc_s.1.dylib + else + # import library, not static library + install -c -m 644 ./shlib/libgcc_s.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgcc_s.a + fi + popd + fi + + # TODO :: Also do this for libgfortran (and libstdc++ too probably?) + if [[ -f ${TARGET}/libsanitizer/libtool ]]; then + sed -i.bak 's/.*cannot install.*/func_warning "Ignoring libtool error about cannot install to a directory not ending in"/' \ + ${TARGET}/libsanitizer/libtool + fi + for lib in libatomic libgomp libquadmath libitm libvtv libsanitizer/{a,hwa,l,ub,t}san; do + # TODO :: Also do this for libgfortran (and libstdc++ too probably?) + if [[ -f ${TARGET}/${lib}/libtool ]]; then + sed -i.bak 's/.*cannot install.*/func_warning "Ignoring libtool error about cannot install to a directory not ending in"/' \ + ${TARGET}/${lib}/libtool + fi + if [[ -d ${TARGET}/${lib} ]]; then + make -C ${TARGET}/${lib} prefix=${PREFIX} install-toolexeclibLTLIBRARIES + make -C ${TARGET}/${lib} prefix=${PREFIX} install-nodist_fincludeHEADERS || true + fi + done + + for lib in libgomp libquadmath; do + if [[ -d ${TARGET}/${lib} ]]; then + make -C ${TARGET}/${lib} prefix=${PREFIX} install-info + fi + done + +popd + +mkdir -p ${PREFIX}/lib + +if [[ "${PKG_NAME}" != "gcc_impl"* ]]; then + # no static libs + find ${PREFIX}/lib -name "*\.a" ! -name "*\.dll\.a" -exec rm -rf {} \; +fi +# no libtool files +find ${PREFIX}/lib -name "*\.la" -exec rm -rf {} \; + +if [[ "${PKG_NAME}" != gcc_impl* ]]; then + # clean up empty folder + rm -rf ${PREFIX}/lib/gcc + rm -rf ${PREFIX}/lib/lib{a,hwa,l,ub,t}san.so* + rm -rf ${PREFIX}/lib/lib{a,hwa,l,ub,t}san.*dylib + + mkdir -p ${PREFIX}/share/licenses/gcc-libs + # Install Runtime Library Exception + install -Dm644 ${SRC_DIR}/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION +fi + +rm -f ${PREFIX}/share/info/dir diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgfortran.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..65ef2ebdf459da5ac23b9c8166955d6adb6f818c --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgfortran.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +rm -f ${PREFIX}/lib/libgfortran* || true + +if [[ "${TARGET}" == *mingw* ]]; then + mkdir -p ${PREFIX}/bin/ + mkdir -p ${PREFIX}/lib/ + cp ${SRC_DIR}/build/${TARGET}/libgfortran/.libs/libgfortran*.dll ${PREFIX}/bin/ + cp ${SRC_DIR}/build/${TARGET}/libgfortran/.libs/libgfortran.dll.a ${PREFIX}/lib/ +elif [[ "${TARGET}" == *linux* ]]; then + mkdir -p ${PREFIX}/lib + cp -f -P ${SRC_DIR}/build/${TARGET}/libgfortran/.libs/libgfortran*.so* ${PREFIX}/lib/ +elif [[ "${TARGET}" == *darwin* ]]; then + mkdir -p ${PREFIX}/lib + cp -f -P ${SRC_DIR}/build/${TARGET}/libgfortran/.libs/libgfortran*.dylib ${PREFIX}/lib/ +else + echo "${TARGET} not handled" + exit 1 +fi + +mkdir -p ${PREFIX}/share/licenses/libgfortran +# Install Runtime Library Exception +install -Dm644 $SRC_DIR/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/libgfortran/RUNTIME.LIBRARY.EXCEPTION diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgomp.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgomp.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fb601cf0adcad35c0e3500c6acdc111062702ad --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libgomp.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh + +cd build + +make -C ${TARGET}/libgomp prefix=${PREFIX} install-toolexeclibLTLIBRARIES +rm ${PREFIX}/lib/libgomp.a ${PREFIX}/lib/libgomp.la + +if [[ "${HOST}" == *linux* ]]; then + rm ${PREFIX}/lib/libgomp.so.1 + rm ${PREFIX}/lib/libgomp.so + ln -sf ${PREFIX}/lib/libgomp.so.${libgomp_ver} ${PREFIX}/lib/libgomp.so +fi + +mkdir -p ${PREFIX}/share/licenses/gcc-libs +# Install Runtime Library Exception +install -Dm644 ${SRC_DIR}/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION.gomp_copy diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libsanitizer.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libsanitizer.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b031f80bcd793992eba38a878fa007a66e49827 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libsanitizer.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + + + +mkdir -p ${PREFIX}/lib + +pushd ${SRC_DIR}/build + + # TODO :: Also do this for libgfortran (and libstdc++ too probably?) + sed -i.bak 's/.*cannot install.*/func_warning "Ignoring libtool error about cannot install to a directory not ending in"/' \ + ${TARGET}/libsanitizer/libtool + for lib in libsanitizer/{a,hwa,l,ub,t}san; do + # TODO :: Also do this for libgfortran (and libstdc++ too probably?) + if [[ -f ${TARGET}/${lib}/libtool ]]; then + sed -i.bak 's/.*cannot install.*/func_warning "Ignoring libtool error about cannot install to a directory not ending in"/' \ + ${TARGET}/${lib}/libtool + fi + if [[ -d ${TARGET}/${lib} ]]; then + make -C ${TARGET}/${lib} prefix=${PREFIX} install-toolexeclibLTLIBRARIES + make -C ${TARGET}/${lib} prefix=${PREFIX} install-nodist_fincludeHEADERS || true + fi + done + +popd + +# no static libs +find ${PREFIX}/lib -name "*\.a" ! -name "*\.dll\.a" -exec rm -rf {} \; +# no libtool files +find ${PREFIX}/lib -name "*\.la" -exec rm -rf {} \; diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libstdc++-devel.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libstdc++-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9f85f96818f49c9344f033c69c67256082c45d9 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libstdc++-devel.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +# export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${TARGET}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + +make -C $TARGET/libstdc++-v3/src prefix=${PREFIX} install +make -C $TARGET/libstdc++-v3/include prefix=${PREFIX} install +make -C $TARGET/libstdc++-v3/libsupc++ prefix=${PREFIX} install + +mkdir -p ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} + +if [[ "${HOST}" == "${TARGET}" ]]; then + mv $PREFIX/lib/lib*.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + if [[ "${TARGET}" == *linux* ]]; then + mv ${PREFIX}/lib/libstdc++.so* ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + else + rm ${PREFIX}/bin/libstdc++*.dll + fi +else + mv $PREFIX/${TARGET}/lib/lib*.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + if [[ "${TARGET}" == *linux* ]]; then + mv ${PREFIX}/${TARGET}/lib/libstdc++.so* ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + fi +fi + +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libstdc++.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libstdc++.sh new file mode 100644 index 0000000000000000000000000000000000000000..23e3ad86d68ae25393af039b3629ac509aae38f7 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-libstdc++.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + + + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${TARGET}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + + make -C ${TARGET}/libstdc++-v3/src prefix=${PREFIX} install-toolexeclibLTLIBRARIES + make -C ${TARGET}/libstdc++-v3/po prefix=${PREFIX} install + +popd + +mkdir -p ${PREFIX}/lib + +# no static libs +find ${PREFIX}/lib -name "*\.a" ! -name "*\.dll\.a" -exec rm -rf {} \; +# no libtool files +find ${PREFIX}/lib -name "*\.la" -exec rm -rf {} \; + +mkdir -p ${PREFIX}/share/licenses/libstdc++ +# Install Runtime Library Exception +install -Dm644 ${SRC_DIR}/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/libstdc++/RUNTIME.LIBRARY.EXCEPTION diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-openmp_impl.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-openmp_impl.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4ebad09aa18a43830fe2e9be9be97c9e965c354 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-openmp_impl.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +mkdir -p ${PREFIX}/lib + +pushd ${PREFIX}/lib/ + +if [[ "${TARGET}" != *mingw* ]]; then + ln -s libgomp.so.${libgomp_ver} libgomp.so.${libgomp_ver:0:1} +fi +popd diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-symlinks.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-symlinks.sh new file mode 100644 index 0000000000000000000000000000000000000000..18f2e868a940730781a9443f1ede4c2f75463639 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/install-symlinks.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh + +if [[ "${HOST}" == *mingw* ]]; then + symlink_or_copy="cp" +else + symlink_or_copy="ln -sf" +fi + +TOOLS="" +if [[ "${PKG_NAME}" == "gcc" ]]; then + TOOLS="gcc gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool" + if [[ "${HOST}" != *darwin* ]]; then + TOOLS="${TOOLS} cc cpp" + fi +elif [[ "${PKG_NAME}" == "gxx" ]]; then + TOOLS="g++" + if [[ "${HOST}" != *darwin* ]]; then + TOOLS="${TOOLS} c++" + fi +elif [[ "${PKG_NAME}" == "gfortran" ]]; then + TOOLS="gfortran" +fi + +for tool in ${TOOLS}; do + $symlink_or_copy ${PREFIX}/bin/${TARGET}-${tool}${EXEEXT} ${PREFIX}/bin/${tool}${EXEEXT} +done diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/libgcc_s.so.ldscript b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/libgcc_s.so.ldscript new file mode 100644 index 0000000000000000000000000000000000000000..c8e92242fc5b32888222e279088df08e791bd52c --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/libgcc_s.so.ldscript @@ -0,0 +1,4 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library. */ +GROUP ( libgcc_s.so.1 -lgcc ) diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/make_tool_links.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/make_tool_links.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f5311e98fa3756fc021252e578940ccc628c1fe --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/make_tool_links.sh @@ -0,0 +1,11 @@ +# When host=target, gcc installs un-prefixed tools together with prefixed-tools +# In the case of cpp, only un-prefixed cpp. Let's copy the un-prefixed tool +# to prefix-tool and delete the un-prefixed one to get back ct-ng behaviour +for tool in gcc g++ gfortran cpp gcc-ar gcc-nm gcc-ranlib c++; do + if [ -f ${PREFIX}/bin/${tool}${EXEEXT} ]; then + if [ ! -f ${PREFIX}/bin/${TARGET}-${tool}${EXEEXT} ]; then + cp ${PREFIX}/bin/${tool}${EXEEXT} ${PREFIX}/bin/${TARGET}-${tool}${EXEEXT} + fi + rm ${PREFIX}/bin/${tool}${EXEEXT} + fi +done diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/meta.yaml b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a46dc89f39e41bcf2faa66aff368e53dee10e5f0 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/meta.yaml @@ -0,0 +1,793 @@ +{% set version = gcc_version %} +{% set build_num = 17 %} + +{% if gcc_maj_ver is not defined %} +{% set gcc_maj_ver = 15 %} +{% endif %} + +# libgcc-devel is a noarch: generic package that is built for +# cross-compilers as well. Instead of skipping for cross-compilers, +# let's prioritize the native compilers package +{% if target_platform == cross_target_platform %} +{% set libgcc_devel_build_num = build_num + 100 %} +{% else %} +{% set libgcc_devel_build_num = build_num %} +{% endif %} + +{% if cross_target_platform is not defined %} +{% set cross_target_platform = "linux-64" %} +{% endif %} + +package: + name: gcc_compilers + version: {{ version }} + +source: + - url: + #- https://ftp.gnu.org/gnu/gcc/gcc-{{ version }}/gcc-{{ version }}.tar.gz + - https://mirrors.ocf.berkeley.edu/gnu/gcc/gcc-{{ version }}/gcc-{{ version }}.tar.gz + sha256: 7294d65cc1a0558cb815af0ca8c7763d86f7a31199794ede3f630c0d1b0a5723 # [gcc_version == "15.2.0"] + sha256: ace8b8b0dbfe6abfc22f821cb093e195aa5498b7ccf7cd23e4424b9f14afed22 # [gcc_version == "14.3.0"] + sha256: bf0baf3e570c9c74c17c8201f0196c6924b4bd98c90e69d6b2ac0cd823f33bbc # [gcc_version == "13.4.0"] + patches: + - patches/0001-allow-commands-in-main-specfile.patch + - patches/0002-patch-zoneinfo_dir_override-to-point-to-our-tzdata.patch # [gcc_maj_ver != 13] + {% if cross_target_platform.startswith("linux-") %} + - patches/0003-add-ldl-to-libstdc___la_LDFLAGS.patch # [gcc_maj_ver != 13] + - patches/0004-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch + {% elif cross_target_platform.startswith("win-") %} + # for GCC 15: https://github.com/msys2/MINGW-packages/tree/f59921184b35858d4ceb91679578de0d62475cbf/mingw-w64-gcc + # for GCC 14: https://github.com/msys2/MINGW-packages/tree/331bf945d21af562d228ed46bda21c8272d1e76e/mingw-w64-gcc + # for GCC 13: https://github.com/msys2/MINGW-packages/tree/4f1262b4e1072632eccf0958764f90d890b832ac/mingw-w64-gcc + - patches/mingw/{{ gcc_maj_ver }}/0002-Relocate-libintl.patch # [gcc_maj_ver == 13] + - patches/mingw/{{ gcc_maj_ver }}/0003-Windows-Follow-Posix-dir-exists-semantics-more-close.patch + - patches/mingw/{{ gcc_maj_ver }}/0005-Windows-Don-t-ignore-native-system-header-dir.patch + - patches/mingw/{{ gcc_maj_ver }}/0006-Windows-New-feature-to-allow-overriding.patch # [gcc_maj_ver == 13] + - patches/mingw/{{ gcc_maj_ver }}/0007-Build-EXTRA_GNATTOOLS-for-Ada.patch + - patches/mingw/{{ gcc_maj_ver }}/0008-Prettify-linking-no-undefined.patch + - patches/mingw/{{ gcc_maj_ver }}/0011-Enable-shared-gnat-implib.patch + - patches/mingw/{{ gcc_maj_ver }}/0012-Handle-spaces-in-path-for-default-manifest.patch + - patches/mingw/{{ gcc_maj_ver }}/0014-gcc-9-branch-clone_function_name_1-Retain-any-stdcall-suffix.patch + - patches/mingw/{{ gcc_maj_ver }}/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch + - patches/mingw/{{ gcc_maj_ver }}/0021-PR14940-Allow-a-PCH-to-be-mapped-to-a-different-addr.patch # [gcc_maj_ver != 15] + - patches/mingw/{{ gcc_maj_ver }}/0140-gcc-diagnostic-color.patch + - patches/mingw/{{ gcc_maj_ver }}/0200-add-m-no-align-vector-insn-option-for-i386.patch + - patches/mingw/{{ gcc_maj_ver }}/0300-override-builtin-printf-format.patch # [gcc_maj_ver == 13] + - patches/mingw/{{ gcc_maj_ver }}/2000-enable-rust.patch # [gcc_maj_ver == 13] + - patches/mingw/{{ gcc_maj_ver }}/2001-fix-building-rust-on-mingw-w64.patch + - patches/mingw/{{ gcc_maj_ver }}/2f7e7bfa3c6327793cdcdcb5c770b93cecd49bd0.patch # [gcc_maj_ver == 13] + - patches/mingw/{{ gcc_maj_ver }}/3eeb4801d6f45f6250fc77a6d3ab4e0115f8cfdd.patch # [gcc_maj_ver == 13] + - patches/mingw/{{ gcc_maj_ver }}/9002-native-tls.patch # [gcc_maj_ver == 15] + {% elif cross_target_platform.startswith("osx-") %} + # all patches from https://github.com/Homebrew/formula-patches/tree/698885df7f624d0ce15bceb79a4d9760a473b502/gcc + # and edited with `s/-Wc,-nodefaultrpaths/-nodefaultrpaths`. + # in case of several patches per version, use newest one + - patches/macos/gcc-{{ version }}.diff + # from https://github.com/JuliaPackaging/Yggdrasil/blob/master/0_RootFS/GCCBootstrap%4014/bundled/patches/gcc/gcc1420-Increase-fallback-min-macOS-version-for-libgcc-to-10.8.patch + - patches/macos/0001-GCC-{{ gcc_maj_ver }}-Increase-fallback-min-macOS-version-for-libgc.patch # [cross_target_platform == "osx-64"] + # Make -stdlib=libcxx the default + - patches/macos/0002-Make-stdlib-libc-the-default-for-macos-platforms.patch + # call xcrun to get sdkroot + - patches/macos/0003-Find-macos-sysroot-by-calling-xcrun.patch + - patches/macos/fix-malloc-error.diff + {% endif %} + # Need an up-to-date zlib for recent clang + - url: https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz + sha256: 9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23 + folder: zlib2 + +build: + number: {{ build_num }} + skip: true # [(win and cross_target_platform != "win-64") or ((cross_target_platform in ("osx-64", "osx-arm64") or osx) and gcc_maj_ver < 15)] + detect_binary_files_with_prefix: false + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + +requirements: + build: + # Build dependencies are installed in setup_compilers.sh due to + # conda-build bugs + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + +outputs: + - name: libgcc-devel_{{ cross_target_platform }} + script: install-libgcc-devel.sh + build: + noarch: generic + number: {{ libgcc_devel_build_num }} + detect_binary_files_with_prefix: false + missing_dso_whitelist: + - "*" + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + run: + - __unix # [unix] + - m2-conda-epoch # [win] + test: + commands: + - echo {{ cross_target_stdlib_version }} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/crtbegin.o # [cross_target_platform not in ("osx-64", "osx-arm64")] + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/crtfastmath.o # [cross_target_platform in ("osx-64", "osx-arm64")] + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgcc_eh.a + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgcc.a + {% if cross_target_platform.startswith("linux-") %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgcc_s.so + {% elif cross_target_platform == "osx-64" %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgcc_s.1.dylib + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgcc_s.1.1.dylib + {% elif cross_target_platform == "osx-arm64" %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgcc_s.1.1.dylib + {% else %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgcc_s.a + {% endif %} + about: + summary: The GNU C development libraries and object files + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libstdcxx-devel_{{ cross_target_platform }} + script: install-libstdc++-devel.sh + build: + noarch: generic + number: {{ libgcc_devel_build_num }} + skip: true # [cross_target_cxx_stdlib != "libstdcxx"] + detect_binary_files_with_prefix: false + missing_dso_whitelist: + - "*" + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + run: + - __unix # [unix] + - m2-conda-epoch # [win] + test: + commands: + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libstdc++.a + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libstdc++fs.a + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libsupc++.a + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/include/c++/cstdio + {% if cross_target_platform.startswith("linux-") %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libstdc++.so + {% else %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libstdc++.dll.a + {% endif %} + about: + summary: The GNU C++ headers and development libraries + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gcc_impl_{{ cross_target_platform }} + script: install-gcc.sh + build: + number: {{ build_num }} + detect_binary_files_with_prefix: false + missing_dso_whitelist: + - '*' + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + - {{ pin_subpackage("libgomp", exact=True) }} # [target_platform == cross_target_platform and cross_target_platform not in ("osx-64", "osx-arm64")] + - {{ pin_subpackage("libstdcxx", exact=True) }} # [target_platform == cross_target_platform and cross_target_platform not in ("osx-64", "osx-arm64")] + - {{ pin_subpackage("libgcc", exact=True) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libgfortran" ~ libgfortran_soname) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libsanitizer", exact=True) }} # [target_platform == cross_target_platform and not (win or osx)] + - {{ pin_subpackage("libgcc-devel_" ~ cross_target_platform, exact=True) }} + run: + {% if cross_target_platform.startswith("osx-") %} + # For the linker + - ld64_{{ cross_target_platform }} + # For the assembler which calls the integrated assembler in clang + - cctools_{{ cross_target_platform }} + - clang + {% else %} + - binutils_impl_{{ cross_target_platform }} >={{ binutils_version }} + - {{ cross_target_stdlib }}_{{ cross_target_platform }} # [cross_target_stdlib != "None"] + # libstdcxx is a runtime dep of gcc because LTO requires it. + - {{ pin_subpackage("libstdcxx", max_pin=None) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libgomp", max_pin=None) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libstdcxx-devel_" ~ cross_target_platform, exact=True) }} + {% endif %} + - {{ pin_subpackage("libgcc-devel_" ~ cross_target_platform, exact=True) }} + - {{ pin_subpackage("libsanitizer", exact=True) }} # [target_platform == cross_target_platform and not (win or osx)] + - {{ pin_subpackage("libgcc", max_pin=None) }} # [target_platform == cross_target_platform] + run_exports: + # impose this requirement across the build/host boundary + strong: + - libgcc >={{ gcc_version }} + test: + requires: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + files: + - tests + commands: + - echo {{ c_stdlib }} + - echo {{ c_stdlib_version }} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgomp.so # [target_platform == cross_target_platform and cross_target_platform not in ("osx-64", "osx-arm64")] + - test `readlink ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgomp.so` == "../../../libgomp.so" # [target_platform == cross_target_platform and cross_target_platform not in ("osx-64", "osx-arm64")] + - test -f ${PREFIX}/bin/{{ TARGET }}-gcc + - test -f ${PREFIX}/bin/{{ TARGET }}-cpp + - test ! -f ${PREFIX}/bin/gcc # [cross_target_platform not in ("osx-64", "osx-arm64")] + - test ! -f ${PREFIX}/bin/cpp # [cross_target_platform not in ("osx-64", "osx-arm64")] + - CC=$(${PREFIX}/bin/*-gcc -dumpmachine)-gcc + - ${CC} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v -Wl,-v -march=native # [target_platform == cross_target_platform and (x86_64 or s390x)] + # This test does not work well with QEMU + - ${CC} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v -Wl,-v -mcpu=native # [target_platform == cross_target_platform and (not x86_64 and not s390x and not ppc64le)] + - ${CC} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v -fsanitize=address # [cross_target_platform != "win-64"] + - ${CC} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v # [cross_target_platform != "win-64"] + - ${CC} -Wall c_aligned.o -o c_aligned -v && ./c_aligned # [cross_target_platform == target_platform and cross_target_platform != "win-64"] + - ${CC} -Wall c_aligned.o -o c_aligned -Wl,-rpath,/foo && {{ TARGET }}-readelf -d c_aligned | grep RPATH | grep "/foo:${PREFIX}/lib" # [cross_target_platform == target_platform and linux] + - ${CC} -Wall tests/hello_world.c -c -o hello_world.o -v + - ${CC} -Wall hello_world.o -o hello_world -v + {% if cross_target_platform.startswith("linux-") %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgcc_s.so + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libsanitizer.spec + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libasan_preinit.o + {% elif cross_target_platform.startswith("osx-") %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgcc_s.1.1.dylib + - find ${PREFIX}/{{ TARGET }} || true + - test ! -d ${PREFIX}/{{ TARGET }} + {% else %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgcc_s.a + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libquadmath.a + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgomp.a + {% endif %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgomp.spec + about: + summary: GNU C Compiler + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gcc + script: install-symlinks.sh + build: + skip: true # [target_platform != cross_target_platform] + track_features: # [not with_conda_specs] + - gcc_no_conda_specs # [not with_conda_specs] + requirements: + host: + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, exact=True) }} + - binutils_impl_{{ cross_target_platform }} {{ binutils_version }}.* bootstrap_* # [cross_target_platform not in ("osx-arm64", "osx-64")] + run: + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, exact=True) }} + - conda-gcc-specs # [with_conda_specs] + test: + commands: + - echo "int main (void) {return 0;}" > conftest.c + - ${PREFIX}/bin/gcc -v + - ${PREFIX}/bin/gcc conftest.c -c -v + - ${PREFIX}/bin/gcov -v + about: + summary: GNU C native compiler (symlinks) + home: https://github.com/conda-forge/ctng-compilers-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: gcc-no-conda-specs + build: + skip: true # [with_conda_specs or target_platform != cross_target_platform] + requirements: + run: + - {{ pin_subpackage("gcc", exact=True) }} + run_constrained: + - conda-gcc-specs <0.0a0 + test: + commands: + - gcc --version + + - name: conda-gcc-specs + script: install-conda-specs.sh + build: + number: {{ build_num }} + skip: true # [cross_target_platform != target_platform] + detect_binary_files_with_prefix: false + requirements: + build: + run: + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, max_pin='x.x.x.x') }} + test: + files: + - tests + commands: + - specdir=$PREFIX/lib/gcc/{{ TARGET }}/{{ gcc_version }} + - test -f $specdir/conda.specs + - CC=$(${PREFIX}/bin/*-gcc -dumpmachine)-gcc + - echo | ${CC} -E -v -x c - |& grep '^Reading specs from' | awk '{print $NF}' | xargs readlink -e | awk -v ORS= '{print $1":"}' | grep "${specdir}/specs:${specdir}/conda.specs:" # [linux] + - cp tests/libhowdy.h $PREFIX/include/ + - ${CC} -shared -fpic -o $PREFIX/lib/libhowdy.so tests/libhowdy.c + - ${CC} -o howdy-dso tests/howdy-dso.c -lhowdy + - ./howdy-dso + - grep RPATH <({{ TARGET }}-readelf -d howdy-dso) # [linux] + - "! grep RUNPATH <({{ TARGET }}-readelf -d howdy-dso)" # [linux] + - ${CC} -Wl,-enable-new-dtags -o howdy-dso-runpath tests/howdy-dso.c -lhowdy # [linux] + - ./howdy-dso-runpath # [linux] + - "! grep RPATH <({{ TARGET }}-readelf -d howdy-dso-runpath)" # [linux] + - grep RUNPATH <({{ TARGET }}-readelf -d howdy-dso-runpath) # [linux] + - echo | ${CC} -E -Wp,-v -x c - |& awk '/include <\.\.\.> search starts/,/^End of search/ {print}' | tail -n2 | head -n1 | grep "$PREFIX/include" # [linux] + - echo | ${CC} -isystem "$PREFIX/include" -E -Wp,-v -x c - |& awk '/include <\.\.\.> search starts/, /^End of search/ {print}' | head -n2 | tail -n1 | grep "$PREFIX/include" # [linux] + + about: + summary: conda-specific specfile for GNU C/C++ Compiler + description: | + When installed, this optional package provides a specfile that + directs gcc (and g++ or gfortran) to automatically: + * search for includes in $PREFIX/include + * link libraries in $PREFIX/lib + * set RPATH to $PREFIX/lib + * use RPATH instead of the newer RUNPATH + This package is intended to aid usability of the compiler + toolchain as a replacement for system-installed compilers. + It should not be used in recipes. Use the 'compiler()' + jinja function as described on + https://conda-forge.org/docs/maintainer/knowledge_base.html#dep-compilers + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + doc_url: https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html + + - name: gxx_impl_{{ cross_target_platform }} + script: install-g++.sh + build: + number: {{ build_num }} + detect_binary_files_with_prefix: false + missing_dso_whitelist: + - "*" + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + # For cpp and crt{i,n}.o + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, exact=True) }} + - binutils_impl_{{ cross_target_platform }} {{ binutils_version }}.* bootstrap_* # [cross_target_platform not in ("osx-arm64", "osx-64")] + - {{ pin_subpackage("libstdcxx-devel_" ~ cross_target_platform, exact=True) }} # [cross_target_cxx_stdlib == "libstdcxx"] + run: + # For cpp and crt{i,n}.o + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, exact=True) }} + # not needed due to pinning above but marks this build as using the new sysroots + - {{ cross_target_stdlib }}_{{ cross_target_platform }} # [cross_target_stdlib != "None"] + - {{ pin_subpackage("libstdcxx-devel_" ~ cross_target_platform, exact=True) }} # [cross_target_cxx_stdlib == "libstdcxx"] + - libcxx-devel # [cross_target_cxx_stdlib == "libcxx" and target_platform == cross_target_platform] + - libcxx-headers # [cross_target_cxx_stdlib == "libcxx" and target_platform != cross_target_platform] + # for C++20 chrono support + - tzdata + run_exports: + # impose this requirement across the build/host boundary + strong: + - libstdcxx >={{ gcc_version }} # [cross_target_cxx_stdlib == "libstdcxx"] + - libcxx # [cross_target_cxx_stdlib == "libcxx"] + test: + requires: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + files: + - tests + commands: + - test -f ${PREFIX}/bin/{{ TARGET }}-g++ + - CXX=$(${PREFIX}/bin/*-gcc -dumpmachine)-g++ + - ${CXX} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o --std=c++17 # [cross_target_platform != "win-64"] + - ${CXX} -Wall cpp_aligned.o -o cpp_aligned --std=c++17 && ./cpp_aligned # [cross_target_platform == target_platform and cross_target_platform != "win-64"] + - ${CXX} -Wall tests/hello_world.cpp -c -o hello_world.o --std=c++17 -v + - ${CXX} -Wall hello_world.o -o hello_world --std=c++17 -v + + # test tzdb integration + {% if (gcc_maj_ver|int >= 14) and cross_target_cxx_stdlib == "libstdcxx" %} + - ${CXX} -isystem ${PREFIX}/include --std=c++20 -Wall tests/tzdb-override.cpp -c -o tzdb-override.o -v + - ${CXX} -isystem ${PREFIX}/include --std=c++20 -Wall tests/tzdb.cpp -c -o tzdb.o -v + {% if target_platform == cross_target_platform %} + - ${CXX} tzdb-override.o -o tzdb-override -v && ./tzdb-override + - ${CXX} tzdb.o -o tzdb -v && ./tzdb + - strace ./tzdb 2>&1 | grep ${CONDA_PREFIX}/lib/../share/zoneinfo/tzdata.zi + # also test without any environment activation + - unset PREFIX + - unset CONDA_PREFIX + - ./tzdb + {% endif %} + {% endif %} + about: + summary: GNU C++ Compiler + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gxx + script: install-symlinks.sh + build: + skip: true # [target_platform != cross_target_platform] + requirements: + host: + - {{ pin_subpackage("gxx_impl_" ~ cross_target_platform, exact=True) }} + - binutils_impl_{{ cross_target_platform }} {{ binutils_version }}.* bootstrap_* # [cross_target_platform not in ("osx-arm64", "osx-64")] + - {{ pin_subpackage("gcc", exact=True) }} + run: + - {{ pin_subpackage("gxx_impl_" ~ cross_target_platform, exact=True) }} + - {{ pin_subpackage("gcc", exact=True) }} + test: + commands: + - ${PREFIX}/bin/g++ -v + - ${PREFIX}/bin/gcc -v + about: + summary: GNU C++ native compiler (symlinks) + home: https://github.com/conda-forge/ctng-compilers-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: gfortran_impl_{{ cross_target_platform }} + script: install-gfortran.sh + build: + number: {{ build_num }} + detect_binary_files_with_prefix: false + missing_dso_whitelist: + - "*" + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + requirements: + build: + host: + # For cpp and crt{i,n}.o + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, exact=True) }} + - binutils_impl_{{ cross_target_platform }} {{ binutils_version }}.* bootstrap_* # [cross_target_platform not in ("osx-arm64", "osx-64")] + # not needed due to pinning above but marks this build as using the new sysroots + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + run: + # For cpp and crt{i,n}.o + - gcc_impl_{{ cross_target_platform }} >={{ gcc_version }} + - {{ pin_subpackage("libgfortran" ~ libgfortran_soname, max_pin=None) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libgcc", max_pin=None) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libstdcxx", max_pin=None) }} # [target_platform == cross_target_platform and cross_target_cxx_stdlib == "libstdcxx"] + - {{ cross_target_stdlib }}_{{ cross_target_platform }} # [cross_target_stdlib != "None"] + run_exports: + # impose this requirement across the build/host boundary + strong: + - libgfortran{{ libgfortran_soname }} {{ gcc_version }}.* + - libgcc >={{ gcc_version }} + test: + requires: + - cmake >=3.11,<4 # [x86_64 or aarch64 or ppc64le] + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + commands: + {% if cross_target_platform.startswith("linux-") %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgfortran.so + {% elif cross_target_platform.startswith("osx-") %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgfortran.dylib + {% else %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgfortran.dll.a + {% endif %} + - test -f ${PREFIX}/lib/gcc/{{ TARGET }}/{{ gcc_version }}/libgfortran.a + - test -f ${PREFIX}/bin/{{ TARGET }}-gfortran + - find $PREFIX/lib -iname omp_lib.mod | grep '.' + - find $PREFIX/lib -iname omp_lib.h | grep '.' + - find $PREFIX/lib -iname ISO_Fortran_binding.h | grep '.' + - echo {{ gcc_maj_ver }} + - pushd tests/fortomp + - sh test_fort.sh # [target_platform == cross_target_platform and (x86_64 or aarch64 or ppc64le)] + files: + - tests/fortomp/* + about: + summary: GNU Fortran Compiler + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gfortran + script: install-symlinks.sh + build: + skip: true # [target_platform != cross_target_platform] + requirements: + host: + - {{ pin_subpackage("gfortran_impl_" ~ cross_target_platform, exact=True) }} + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, exact=True) }} + - binutils_impl_{{ cross_target_platform }} {{ binutils_version }}.* bootstrap_* # [cross_target_platform not in ("osx-arm64", "osx-64")] + - {{ pin_subpackage("gcc", exact=True) }} + run: + - {{ pin_subpackage("gfortran_impl_" ~ cross_target_platform, exact=True) }} + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, exact=True) }} + - {{ pin_subpackage("gcc", exact=True) }} + test: + commands: + - ${PREFIX}/bin/gfortran -v + - ${PREFIX}/bin/gcc -v + about: + summary: GNU Fortran native compiler (symlinks) + home: https://github.com/conda-forge/ctng-compilers-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: libstdcxx + target: {{ cross_target_platform }} + script: install-libstdc++.sh + build: + number: {{ build_num }} + skip: true # [target_platform != cross_target_platform or cross_target_cxx_stdlib != "libstdcxx"] + detect_binary_files_with_prefix: false + missing_dso_whitelist: + - "*" + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + - {{ pin_subpackage("libgcc", exact=True) }} + run: + - {{ pin_subpackage("libgcc", exact=True) }} + run_constrained: + # avoid installing incompatible version of old name for this output + - libstdcxx-ng =={{ version }}=*_{{ build_num }} + test: + commands: + - test -f ${PREFIX}/lib/libstdc++.so + about: + summary: The GNU C++ Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libsanitizer + target: {{ cross_target_platform }} + script: install-libsanitizer.sh + build: + number: {{ build_num }} + skip: true # [target_platform != cross_target_platform or win or osx] + detect_binary_files_with_prefix: false + missing_dso_whitelist: + - "*" + run_exports: + - libsanitizer {{ gcc_version }} + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + run: + - libgcc >={{ gcc_version }} + - libstdcxx >={{ gcc_version }} + test: + requires: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} # [cross_target_stdlib != "None"] + - gcc_impl_{{ cross_target_platform }} + - binutils_impl_{{ cross_target_platform }} {{ binutils_version }}.* bootstrap_* # [cross_target_platform not in ("osx-arm64", "osx-64")] + commands: + - test -f ${PREFIX}/lib/libasan.so + - test -f ${PREFIX}/lib/libhwasan.so # [x86_64 or aarch64] + - file ${PREFIX}/bin/{{ TARGET }}-gcc + - echo 'void main(){}' | {{ TARGET }}-gcc -fsanitize=address -Wl,--fatal-warnings -x c - + about: + summary: The GCC runtime libraries for sanitizers + home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libgomp + target: {{ cross_target_platform }} + script: install-libgomp.sh + build: + number: {{ build_num }} + skip: true # [target_platform != cross_target_platform or osx] + detect_binary_files_with_prefix: false + missing_dso_whitelist: + - "*" + run_exports: + strong: + - {{ pin_subpackage("_openmp_mutex", max_pin=None) }} + {% if cross_target_platform.startswith("win-") %} + - {{ pin_subpackage("libgomp", max_pin=None) }} + {% endif %} + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + run_constrained: + - msys2-conda-epoch <0.0a0 # [win] + test: + requires: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} # [cross_target_stdlib != "None"] + commands: + - test -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver }} + - test ! -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }} + about: + summary: The GCC OpenMP implementation. + home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libgcc + target: {{ cross_target_platform }} + script: install-libgcc-no-gomp.sh + build: + number: {{ build_num }} + skip: true # [target_platform != cross_target_platform] + detect_binary_files_with_prefix: false + missing_dso_whitelist: + - "*" + rpaths_patcher: patchelf + requirements: + build: + host: + - {{ pin_subpackage("libgomp", exact=True) }} # [not osx] + - {{ pin_subpackage('_openmp_mutex', exact=True) }} # [not osx] + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + run: + - {{ pin_subpackage("_openmp_mutex", max_pin=None) }} # [not osx] + - _openmp_mutex # [osx] + run_constrained: + - {{ pin_subpackage("libgomp", exact=True) }} + - msys2-conda-epoch <0.0a0 # [win] + # avoid installing incompatible version of old name for this output + - libgcc-ng =={{ version }}=*_{{ build_num }} + test: + requires: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} # [cross_target_stdlib != "None"] + commands: + - test -f ${PREFIX}/lib/libgcc_s.so # [linux] + - test -f ${PREFIX}/lib/libgcc_s.1.dylib # [osx] + - test -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }} # [linux] + - test `readlink ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }}` == "libgomp.so.{{ libgomp_ver }}" # [linux] + - test `readlink ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }}` == "libgomp.so.{{ libgomp_ver }}" # [linux] + about: + summary: The GCC low-level runtime library + home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: _openmp_mutex + script: install-openmp_impl.sh + version: {{ openmp_ver }} + build: + # have higher priority than llvm + string: 20_gnu + number: 20 + skip: true # [target_platform != cross_target_platform or osx] + run_exports: + strong: + - {{ pin_subpackage("_openmp_mutex", max_pin=None) }} + requirements: + build: + host: + - {{ pin_subpackage('libgomp', exact=True) }} + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + run: + - libgomp >=7.5.0 + run_constrained: + # conflict with previous name + - openmp_impl <0.0a0 + - msys2-conda-epoch <0.0a0 # [win] + test: + commands: + - test -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }} + - test `readlink ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }}` == "libgomp.so.{{ libgomp_ver }}" + about: + summary: OpenMP Implementation Mutex + license: BSD-3-Clause + license_file: LICENSE + home: https://github.com/conda-forge/ctng-compilers-feedstock + + - name: libgfortran{{ libgfortran_soname }} + target: {{ cross_target_platform }} + script: install-libgfortran.sh + build: + number: {{ build_num }} + skip: true # [target_platform != cross_target_platform] + detect_binary_files_with_prefix: false + missing_dso_whitelist: + - "*" + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} # [cross_target_stdlib != "None"] + run: + - libgcc >={{ gcc_version }} + run_constrained: + - libgfortran {{ gcc_version }} + test: + commands: + - test -f ${PREFIX}/lib/libgfortran${SHLIB_EXT} + about: + summary: The GNU Fortran Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libgfortran + target: {{ cross_target_platform }} + build: + skip: true # [target_platform != cross_target_platform] + number: {{ build_num }} + requirements: + run: + - {{ pin_subpackage('libgfortran' ~ libgfortran_soname, exact=True) }} + run_constrained: + # avoid installing incompatible version of old name for this output + - libgfortran-ng =={{ version }}=*_{{ build_num }} + test: + commands: + - test -f ${PREFIX}/lib/libgfortran${SHLIB_EXT} + about: + summary: The GNU Fortran Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + # compatibility outputs for previous naming of the runtime libraries + # with "-ng" suffix; for windows the suffix had never been introduced + {% if cross_target_platform.startswith("linux-") %} + - name: libgcc-ng + target: {{ cross_target_platform }} + build: + number: {{ build_num }} + skip: true # [target_platform != cross_target_platform] + run_exports: + strong: + - libgcc + requirements: + host: + - {{ pin_subpackage("libgcc", exact=True) }} + run: + - {{ pin_subpackage("libgcc", exact=True) }} + test: + commands: + - echo "empty wrapper for compatibility with previous naming" + about: + summary: The GCC low-level runtime library + home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libstdcxx-ng + target: {{ cross_target_platform }} + script: install-libstdc++.sh + build: + number: {{ build_num }} + skip: true # [target_platform != cross_target_platform or cross_target_cxx_stdlib != "libstdcxx"] + run_exports: + strong: + - libstdcxx + requirements: + host: + - {{ pin_subpackage("libstdcxx", exact=True) }} + run: + - {{ pin_subpackage("libstdcxx", exact=True) }} + test: + commands: + - echo "empty wrapper for compatibility with previous naming" + about: + summary: The GNU C++ Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libgfortran-ng + target: {{ cross_target_platform }} + build: + number: {{ build_num }} + skip: true # [target_platform != cross_target_platform] + run_exports: + strong: + - libgfortran + requirements: + host: + - {{ pin_subpackage('libgfortran', exact=True) }} + run: + - {{ pin_subpackage('libgfortran', exact=True) }} + test: + commands: + - echo "empty wrapper for compatibility with previous naming" + about: + summary: The GNU Fortran Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + {% endif %} + +about: + summary: GNU Compiler Collection + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + license_file: + - COPYING + - COPYING.LIB + - COPYING3 + - COPYING3.LIB + +extra: + feedstock-name: ctng-compilers-feedstock + recipe-maintainers: + - timsnyder + - xhochy + - isuruf + - beckermr diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0001-allow-commands-in-main-specfile.patch b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0001-allow-commands-in-main-specfile.patch new file mode 100644 index 0000000000000000000000000000000000000000..0e6ea6afa6429337186944117011253d9be4e64f --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0001-allow-commands-in-main-specfile.patch @@ -0,0 +1,23 @@ +From 10cf9f22dcb62db55cd2e9cbc587e2ab35a88889 Mon Sep 17 00:00:00 2001 +From: Tim Snyder +Date: Tue, 29 Mar 2022 22:33:27 +0000 +Subject: [PATCH 1/4] allow % commands in main specfile + +--- + gcc/gcc.cc | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/gcc/gcc.cc b/gcc/gcc.cc +index fc9f1f545dc..28b947c7afd 100644 +--- a/gcc/gcc.cc ++++ b/gcc/gcc.cc +@@ -2392,7 +2392,8 @@ read_specs (const char *filename, bool main_p, bool user_p) + /* Is this a special command that starts with '%'? */ + /* Don't allow this for the main specs file, since it would + encourage people to overwrite it. */ +- if (*p == '%' && !main_p) ++ /* ::conda-forge:: allow use of commands in main specs */ ++ if (*p == '%') + { + p1 = p; + while (*p && *p != '\n') diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0002-patch-zoneinfo_dir_override-to-point-to-our-tzdata.patch b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0002-patch-zoneinfo_dir_override-to-point-to-our-tzdata.patch new file mode 100644 index 0000000000000000000000000000000000000000..620c68b46cdf3d8aa4545d1eba5a81cb81472e32 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0002-patch-zoneinfo_dir_override-to-point-to-our-tzdata.patch @@ -0,0 +1,114 @@ +From 92dc5e74592f57dbc9c2b421e2e348d88d3439f6 Mon Sep 17 00:00:00 2001 +From: "H. Vetinari" +Date: Fri, 21 Jun 2024 12:41:07 +1100 +Subject: [PATCH 2/4] patch zoneinfo_dir_override to point to our tzdata + +--- + libstdc++-v3/src/c++20/tzdb.cc | 78 ++++++++++++++++++++++++++++------ + 1 file changed, 65 insertions(+), 13 deletions(-) + +diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc +index 72f20e7f828..8d4feb99902 100644 +--- a/libstdc++-v3/src/c++20/tzdb.cc ++++ b/libstdc++-v3/src/c++20/tzdb.cc +@@ -37,8 +37,13 @@ + #include // mutex + #include // filesystem::read_symlink + +-#ifndef _AIX +-# include // getenv ++#if defined(__linux__) || defined(__APPLE__) ++# include // dladdr ++# include // free, malloc, realpath ++# include // memcpy, strlen ++# include // PATH_MAX ++#elif defined(_WIN32) ++# include + #endif + + #if defined __GTHREADS && ATOMIC_POINTER_LOCK_FREE == 2 +@@ -64,25 +68,73 @@ + + namespace __gnu_cxx + { +-#ifdef _AIX +- // Cannot override weak symbols on AIX. +- const char* (*zoneinfo_dir_override)() = nullptr; +-#else +- [[gnu::weak]] const char* zoneinfo_dir_override(); +- +-#if defined(__APPLE__) || defined(__hpux__) \ +- || (defined(__VXWORKS__) && !defined(__RTP__)) +- // Need a weak definition for Mach-O et al. + [[gnu::weak]] const char* zoneinfo_dir_override() + { ++#ifdef _GLIBCXX_SHARED ++ // get path to library we're in, to determine our location relative to $PREFIX; ++ // with help from the MIT-licensed https://github.com/gpakosz/whereami ++ void* addr = __builtin_extract_return_addr(__builtin_return_address(0)); ++ char* this_lib; ++ int i; ++ // is included through ++ static std::string tz_dir; ++ if (!tz_dir.empty()) { ++ return tz_dir.c_str(); ++ } ++#ifdef _WIN32 ++ // we're in %PREFIX%\Library\bin\libstdc++-6.dll ++# define TO_PREFIX "/../.." ++ // needs single quotes for character (not string) literal ++# define PATH_SEP '\\' ++ wchar_t buffer[MAX_PATH]; ++ HMODULE hm = NULL; ++ // non-zero return means success ++ if (GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | ++ GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, ++ (LPCSTR) addr, &hm)) { ++ // returns length of string (not counting null byte), see ++ // https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamew#return-value ++ DWORD total_length = GetModuleFileNameW(hm, buffer, sizeof(buffer)); ++ if (total_length) { ++ this_lib = (char*)malloc(total_length + 1); ++ memcpy(this_lib, buffer, total_length); ++#else ++ // we're in $PREFIX/lib/libstdcxx.so ++# define TO_PREFIX "/.." ++# define PATH_SEP '/' ++ char buffer[PATH_MAX]; ++ Dl_info info; ++ ++ if (dladdr(addr, &info)) { ++ char* resolved = realpath(info.dli_fname, buffer); ++ if (resolved) { ++ int total_length = (int)strlen(resolved); ++ this_lib = (char*)malloc(total_length + 1); ++ memcpy(this_lib, resolved, total_length); ++#endif ++ ++ for (i = (int)total_length - 1; i >= 0; --i) { ++ if (this_lib[i] == PATH_SEP) { ++ // set to null byte so the string ends before the basename ++ this_lib[i] = '\0'; ++ break; ++ } ++ } ++ tz_dir = {this_lib}; ++ tz_dir += TO_PREFIX; ++ tz_dir += "/share/zoneinfo"; ++ // std::string constructor for tz_dir deep-copies ++ free(this_lib); ++ return tz_dir.c_str(); ++ } ++ } ++#endif // _GLIBCXX_SHARED + #ifdef _GLIBCXX_ZONEINFO_DIR + return _GLIBCXX_ZONEINFO_DIR; + #else + return nullptr; + #endif + } +-#endif +-#endif + } + + #if ! defined _GLIBCXX_ZONEINFO_DIR && ! defined _GLIBCXX_STATIC_TZDATA diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0003-add-ldl-to-libstdc___la_LDFLAGS.patch b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0003-add-ldl-to-libstdc___la_LDFLAGS.patch new file mode 100644 index 0000000000000000000000000000000000000000..a17bf01c996d5181529f52f35b2df040463adbe4 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0003-add-ldl-to-libstdc___la_LDFLAGS.patch @@ -0,0 +1,40 @@ +From c54fd2dea14134d3e51c17ca5442e0ae2dc16462 Mon Sep 17 00:00:00 2001 +From: "H. Vetinari" +Date: Mon, 15 Jul 2024 19:16:05 +1100 +Subject: [PATCH 3/4] add `-ldl` to libstdc___la_LDFLAGS + +we want to link static-only here, to avoid having to add +`-ldl` everytime something links against libstdc++.so + +Co-Authored-By: Isuru Fernando +--- + libstdc++-v3/src/Makefile.am | 2 +- + libstdc++-v3/src/Makefile.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libstdc++-v3/src/Makefile.am b/libstdc++-v3/src/Makefile.am +index 37ba1491dea..5b69f43ecd8 100644 +--- a/libstdc++-v3/src/Makefile.am ++++ b/libstdc++-v3/src/Makefile.am +@@ -161,7 +161,7 @@ libstdc___darwin_rpath += -Wl,-rpath,@loader_path + endif + + libstdc___la_LDFLAGS = \ +- -version-info $(libtool_VERSION) ${version_arg} -lm $(libstdc___darwin_rpath) ++ -version-info $(libtool_VERSION) ${version_arg} -lm -Bstatic -ldl -Bdynamic -Wl,--exclude-libs,libdl.a $(libstdc___darwin_rpath) + + libstdc___la_LINK = $(CXXLINK) $(libstdc___la_LDFLAGS) $(lt_host_flags) + +diff --git a/libstdc++-v3/src/Makefile.in b/libstdc++-v3/src/Makefile.in +index 1bdf0daa88f..ab28e14804e 100644 +--- a/libstdc++-v3/src/Makefile.in ++++ b/libstdc++-v3/src/Makefile.in +@@ -566,7 +566,7 @@ libstdc___la_DEPENDENCIES = \ + @ENABLE_DARWIN_AT_RPATH_TRUE@ -Wc,-nodefaultrpaths \ + @ENABLE_DARWIN_AT_RPATH_TRUE@ -Wl,-rpath,@loader_path + libstdc___la_LDFLAGS = \ +- -version-info $(libtool_VERSION) ${version_arg} -lm $(libstdc___darwin_rpath) ++ -version-info $(libtool_VERSION) ${version_arg} -lm -Bstatic -ldl -Bdynamic -Wl,--exclude-libs,libdl.a $(libstdc___darwin_rpath) + + libstdc___la_LINK = $(CXXLINK) $(libstdc___la_LDFLAGS) $(lt_host_flags) + @GLIBCXX_LDBL_ALT128_COMPAT_FALSE@@GLIBCXX_LDBL_COMPAT_TRUE@LTCXXCOMPILE64 = $(LTCXXCOMPILE) diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0004-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0004-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch new file mode 100644 index 0000000000000000000000000000000000000000..07a361cd6d709849c78bba0ece60ff63d8c2295e --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/patches/0004-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch @@ -0,0 +1,57 @@ +From 86369ec6c37896394546f3b01f9c447c4f4188ae Mon Sep 17 00:00:00 2001 +From: Nehal J Wani +Date: Tue, 12 Jun 2018 05:26:24 +0000 +Subject: [PATCH 4/4] Hardcode HAVE_ALIGNED_ALLOC=1 in libstdc++-v3/configure + +--- + libstdc++-v3/configure | 16 ++++++++++++++++ + 1 file changed, 16 insertions(+) + +diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure +index 18053ab7eae..44b6a72f775 100755 +--- a/libstdc++-v3/configure ++++ b/libstdc++-v3/configure +@@ -26405,6 +26405,11 @@ _ACEOF + fi + done + ++# The check above works only if aligned_alloc is present as a symbol in libc.so ++# Since we provide a header only implementation, override the value here ++cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_aligned_alloc" | $as_tr_cpp` 1 ++_ACEOF + + # For iconv support. + +@@ -38403,6 +38408,9 @@ _ACEOF + fi + done + ++cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_aligned_alloc" | $as_tr_cpp` 1 ++_ACEOF + ;; + + *-fuchsia*) +@@ -42318,6 +42326,10 @@ fi + done + + ++cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_aligned_alloc" | $as_tr_cpp` 1 ++_ACEOF ++ + ;; + *-mingw32*) + +@@ -45924,6 +45936,10 @@ _ACEOF + fi + done + ++cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_aligned_alloc" | $as_tr_cpp` 1 ++_ACEOF ++ + ;; + *-qnx6.1* | *-qnx6.2*) + SECTION_FLAGS='-ffunction-sections -fdata-sections' diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/recipe-scripts-license.txt b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..2ec51d75f362bc4327a3cfe1c515c16bb3c57367 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/recipe-scripts-license.txt @@ -0,0 +1,27 @@ +BSD-3-Clause license +Copyright (c) 2015-2022, conda-forge contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/setup_compiler.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/setup_compiler.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3edc2a29d54537fc02c04bf3994327f49f376cf --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/setup_compiler.sh @@ -0,0 +1,110 @@ +#!/bin/bash + +source $RECIPE_DIR/get_cpu_arch.sh + +export SDKROOT=${CONDA_BUILD_SYSROOT} +unset CONDA_BUILD_SYSROOT + +extra_pkgs=() + +export CF_PREFIX=$SRC_DIR/cf-compilers + +if [[ ! -d ${SRC_DIR}/cf-compilers ]]; then + if [[ "$build_platform" != "$target_platform" ]]; then + # we need a compiler to target cross_target_platform. + # when build_platform == target_platform, the compiler + # just built can be used. + # when build_platform != target_platform, the compiler + # just built cannot be used, hence we need one that + # can be used. + extra_pkgs+=( + "gcc_impl_${cross_target_platform}=${gcc_version}" + "gxx_impl_${cross_target_platform}=${gcc_version}" + "gfortran_impl_${cross_target_platform}=${gcc_version}" + ) + fi + if [[ "${cross_target_platform}" != "osx-"* ]]; then + extra_pkgs+=( + "binutils_impl_${cross_target_platform}=${binutils_version}" + "${cross_target_stdlib}_${cross_target_platform}=${cross_target_stdlib_version}" + ) + else + extra_pkgs+=( + "clang" + "clangxx" + "cctools_${cross_target_platform}" + "ld64_${cross_target_platform}" + ) + fi + if [[ "${build_platform}" == "osx-"* ]]; then + extra_pkgs+=( + "make" + ) + fi + # Remove conda-forge/label/sysroot-with-crypt when GCC < 14 is dropped + conda create -p ${CF_PREFIX} -c conda-forge/label/gcc-experimental -c conda-forge/label/sysroot-with-crypt -c conda-forge --use-local --yes --quiet \ + "gcc_impl_${build_platform}" \ + "gxx_impl_${build_platform}" \ + "gfortran_impl_${build_platform}" \ + "gcc_impl_${target_platform}" \ + "gxx_impl_${target_platform}" \ + "gfortran_impl_${target_platform}" \ + "${c_stdlib}_${target_platform}=${c_stdlib_version}" \ + gnuconfig \ + ${extra_pkgs[@]} + + if [[ "${TARGET}" == *darwin* ]]; then + CONDA_OVERRIDE_OSX=15.5 CONDA_SUBDIR="${cross_target_platform}" conda create -p $SRC_DIR/cf-compilers-target -c conda-forge/label/sysroot-with-crypt -c conda-forge --use-local --yes --quiet libcxx-devel + mkdir -p ${CF_PREFIX}/${TARGET}/lib + ln -sf $SRC_DIR/cf-compilers-target/lib/libc++* ${CF_PREFIX}/${TARGET}/lib + + fi + if [[ "${HOST}" == *darwin* && "${HOST}" != "${TARGET}" ]]; then + CONDA_OVERRIDE_OSX=15.5 CONDA_SUBDIR="${target_platform}" conda create -p $SRC_DIR/cf-compilers-host -c conda-forge/label/sysroot-with-crypt -c conda-forge --use-local --yes --quiet libcxx-devel + mkdir -p ${CF_PREFIX}/${HOST}/lib + ln -sf $SRC_DIR/cf-compilers-host/lib/libc++* ${CF_PREFIX}/${HOST}/lib + fi + if [[ "${TARGET}" == *darwin* && ! -f "${CF_PREFIX}/bin/${TARGET}-clang" ]]; then + ln -sf "${CF_PREFIX}/bin/clang" "${CF_PREFIX}/bin/${TARGET}-clang" + fi + if [[ "${TARGET}" == *darwin* && ! -f "${CF_PREFIX}/bin/${TARGET}-clang++" ]]; then + ln -sf "${CF_PREFIX}/bin/${TARGET}-clang" "${CF_PREFIX}/bin/${TARGET}-clang++" + fi + if [[ "${HOST}" == *darwin* && ! -f "${CF_PREFIX}/bin/${HOST}-clang" ]]; then + ln -sf "${CF_PREFIX}/bin/clang" "${CF_PREFIX}/bin/${HOST}-clang" + fi + if [[ "${HOST}" == *darwin* && ! -f "${CF_PREFIX}/bin/${HOST}-clang++" ]]; then + ln -sf "${CF_PREFIX}/bin/${HOST}-clang" "${CF_PREFIX}/bin/${HOST}-clang++" + fi + if [[ "${BUILD}" == *darwin* && ! -f "${CF_PREFIX}/bin/${BUILD}-clang" ]]; then + ln -sf "${CF_PREFIX}/bin/clang" "${CF_PREFIX}/bin/${BUILD}-clang" + fi + if [[ "${BUILD}" == *darwin* && ! -f "${CF_PREFIX}/bin/${BUILD}-clang++" ]]; then + ln -sf "${CF_PREFIX}/bin/${BUILD}-clang" "${CF_PREFIX}/bin/${BUILD}-clang++" + fi +fi + +if [[ "${BUILD_PREFIX}" != "${PREFIX}" ]]; then + ln -sf ${CF_PREFIX}/${TARGET} ${BUILD_PREFIX}/${TARGET} || true + ln -sf ${CF_PREFIX}/bin ${BUILD_PREFIX}/bin || true + ln -sf ${CF_PREFIX}/share ${BUILD_PREFIX}/share || true +fi + +export PATH=$SRC_DIR/cf-compilers/bin:$PATH + +if [[ "$target_platform" == "win-"* && "${PREFIX}" != *Library ]]; then + export PREFIX=${PREFIX}/Library +fi + +if [[ "$target_platform" == "win-64" ]]; then + EXEEXT=".exe" +else + EXEEXT="" +fi +SYSROOT_DIR=${PREFIX}/${TARGET}/sysroot + +if [[ "$target_platform" == "osx-"* ]]; then + STRIP_ARGS="" +else + STRIP_ARGS="--strip-all" +fi diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/aligned_alloc.c b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/aligned_alloc.c new file mode 100644 index 0000000000000000000000000000000000000000..287be94c7340a134a5d9a56ddc0f6c20acc0af74 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/aligned_alloc.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) +{ + int *p2 = (int*)aligned_alloc(1024, 1024*sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/aligned_alloc.cpp b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/aligned_alloc.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1379c7547ae63e12433db910d243f159657aa0b6 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/aligned_alloc.cpp @@ -0,0 +1,18 @@ +#include +#include +#include +//#include + +int main(void) +{ + /// int *p2 = (int*)memalign(1024, 1024 * sizeof *p2); + int *p2; + int err = posix_memalign((void**)&p2, 1024, sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); + p2 = (int*)std::aligned_alloc(1024, 1); + printf("1024-byte aligned addr: %p\n", (void*)p2); + std::free(p2); + p2 = (int*)aligned_alloc(1024, 1024); + printf("1024-byte aligned addr: %p\n", (void*)p2); +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/CMakeLists.txt b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..491a48b42cb3ddfef5f8541f8db848e0ba844f84 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.3 FATAL_ERROR) +project(fortomp + LANGUAGES Fortran) + +find_package(OpenMP REQUIRED) diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/hello.f90 b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/hello.f90 new file mode 100644 index 0000000000000000000000000000000000000000..87a5a9df7a2116eb67c1a259d96fada4d2693354 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/hello.f90 @@ -0,0 +1,3 @@ +program hello + print *, "Hello World! I can compile FORTRAN." +end program hello diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/maths.f90 b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/maths.f90 new file mode 100644 index 0000000000000000000000000000000000000000..10554d467717472b454c44c1dedc08465ffc418f --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/maths.f90 @@ -0,0 +1,47 @@ +program maths + use, intrinsic :: ieee_arithmetic + use omp_lib + implicit none + + real(8) :: x = 2.0_8 + complex :: z = (1.0, 2.0) + integer, parameter :: n = 4567 + integer :: i + real :: f(n) + + ! Check that large reals and libquadmath work + integer, parameter :: k1 = & + max(selected_real_kind(precision(0.d0) + 1), kind(0.)) + integer, parameter :: k2 = & + max(selected_real_kind(precision(0._k1) + 1), kind(0.d0)) + real(kind=k1) :: x1 + real(kind=k2) :: x2 + + ! Test intrinsic modules also + x1 = ieee_value(x1, ieee_positive_inf) + print *, "infinite is:", sqrt(x1) + x2 = ieee_value(x2, ieee_positive_inf) + print *, "infinite is:", sqrt(x2) + + x = sqrt(x) + z = sqrt(z) + + do i = 1, n + f(i) = i + enddo + + !$OMP PARALLEL SHARED(f) PRIVATE(i) + + !$omp master + print *, "number of threads:", omp_get_num_threads() + !$omp end master + + !$OMP DO + do i = 1, n + f(i) = sqrt(f(i)) + enddo + !$OMP END DO NOWAIT + !$OMP END PARALLEL + + print *, "sqrt(2):", f(2) +end program maths diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/omp-threadprivate.f90 b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/omp-threadprivate.f90 new file mode 100644 index 0000000000000000000000000000000000000000..d0086c3a05e732b736679b5ee01e53b5311afcff --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/omp-threadprivate.f90 @@ -0,0 +1,40 @@ +! @@name: threadprivate.5f +! @@type: F-fixed +! @@compilable: yes +! @@linkable: yes +! @@expect: success + PROGRAM INC_GOOD2 + INTEGER, ALLOCATABLE, SAVE :: A(:) + INTEGER, POINTER, SAVE :: PTR + INTEGER, SAVE :: I + INTEGER, TARGET :: TARG + LOGICAL :: FIRSTIN = .TRUE. +!$OMP THREADPRIVATE(A, I, PTR) + + ALLOCATE (A(3)) + A = (/1,2,3/) + PTR => TARG + I = 5 + +!$OMP PARALLEL COPYIN(I, PTR) +!$OMP CRITICAL + IF (FIRSTIN) THEN + TARG = 4 ! Update target of ptr + I = I + 10 + IF (ALLOCATED(A)) A = A + 10 + FIRSTIN = .FALSE. + END IF + + IF (ALLOCATED(A)) THEN + PRINT *, 'a = ', A + ELSE + PRINT *, 'A is not allocated' + END IF + + PRINT *, 'ptr = ', PTR + PRINT *, 'i = ', I + PRINT * + +!$OMP END CRITICAL +!$OMP END PARALLEL + END PROGRAM INC_GOOD2 diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/test_fort.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/test_fort.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac9f742322e806f75653e31b025b10ad3505a00b --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/fortomp/test_fort.sh @@ -0,0 +1,34 @@ +GFORTRAN=$(${PREFIX}/bin/*-gcc -dumpmachine)-gfortran +FFLAGS="-fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe" + +cmake \ + -H${SRC_DIR} \ + -Bbuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_Fortran_COMPILER=${GFORTRAN} \ + -DCMAKE_Fortran_FLAGS="${FFLAGS}" \ + . + +if [[ "${target_platform}" == "${build_platform}" ]]; then + "${PREFIX}/bin/${TARGET}-gfortran" -o hello hello.f90 -v + if [[ "${cross_target_platform}" == "${build_platform}" ]]; then + ./hello + fi + rm -f hello + + "${PREFIX}/bin/${TARGET}-gfortran" -O3 -fopenmp -ffast-math -o maths maths.f90 -v + if [[ "${cross_target_platform}" == "${build_platform}" ]]; then + ./maths + fi + rm -f maths + + "${PREFIX}/bin/${TARGET}-gfortran" -fopenmp -o omp-threadprivate omp-threadprivate.f90 -v + if [[ "${cross_target_platform}" == "${build_platform}" ]]; then + ./omp-threadprivate + fi + rm -f omp-threadprivate + + ${TARGET}-gfortran -v + ${TARGET}-gfortran -E -dM - + +int main() { + printf("hello world!\n"); +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/hello_world.cpp b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/hello_world.cpp new file mode 100644 index 0000000000000000000000000000000000000000..585eea4cee5b1176fd28267f3e27dbdb344fd31f --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/hello_world.cpp @@ -0,0 +1,6 @@ +#include + +int main(void) +{ + std::cout << "hello world!" << std::endl; +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/howdy-dso.c b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/howdy-dso.c new file mode 100644 index 0000000000000000000000000000000000000000..ea47ce0a03e061a965fc1e2cdaf310c038d4b44d --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/howdy-dso.c @@ -0,0 +1,6 @@ +#include + +int main(void) { + howdy(); + return 0; +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/libhowdy.c b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/libhowdy.c new file mode 100644 index 0000000000000000000000000000000000000000..6cd0dc522a8e4485f8173321a3dff2b21f079415 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/libhowdy.c @@ -0,0 +1,5 @@ +#include + +void howdy(void) { + printf("Howdy Y'all!\n"); +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/libhowdy.h b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/libhowdy.h new file mode 100644 index 0000000000000000000000000000000000000000..6234950e5a3ce9ff0209513f328d0ecfc71bac99 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/libhowdy.h @@ -0,0 +1,6 @@ +#ifndef _LIBHOWDY_H +#define _LIBHOWDY_H + +extern void howdy(void); + +#endif diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/tzdb-override.cpp b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/tzdb-override.cpp new file mode 100644 index 0000000000000000000000000000000000000000..73284e6245e5774322d67924db2f0907e5a6d668 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/tzdb-override.cpp @@ -0,0 +1,29 @@ +// We are using a weak symbol in linux and windows using a patch +// while upstream only has the definition and no implementation. +// Check that overriding works. + +// adapted from upstream tests +// https://github.com/gcc-mirror/gcc/blob/releases/gcc-14.1.0/libstdc%2B%2B-v3/testsuite/std/time/tzdb/1.cc +// https://github.com/gcc-mirror/gcc/blob/releases/gcc-14.1.0/libstdc%2B%2B-v3/testsuite/std/time/tzdb/leap_seconds.cc + +#include +#include +#include + +static bool override_used = false; + +namespace __gnu_cxx +{ + const char* zoneinfo_dir_override() { + override_used = true; + return "./"; + } +} + +using namespace std::chrono; + +int main() +{ + auto &a = get_tzdb(); + return !override_used; +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/tzdb.cpp b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/tzdb.cpp new file mode 100644 index 0000000000000000000000000000000000000000..9ccf3f4d44cb32a75a7f9e0d4b8876e9d76693ca --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/tests/tzdb.cpp @@ -0,0 +1,95 @@ +// adapted from upstream tests +// https://github.com/gcc-mirror/gcc/blob/releases/gcc-14.1.0/libstdc%2B%2B-v3/testsuite/std/time/tzdb/1.cc +// https://github.com/gcc-mirror/gcc/blob/releases/gcc-14.1.0/libstdc%2B%2B-v3/testsuite/std/time/tzdb/leap_seconds.cc + +#include +#include +#include + +// https://github.com/gcc-mirror/gcc/blob/releases/gcc-14.1.0/libstdc%2B%2B-v3/testsuite/util/testsuite_hooks.h#L61-L70 +#define VERIFY(fn) \ + do \ + { \ + if (! (fn)) \ + { \ + __builtin_fprintf(stderr, \ + "%s:%d: %s: Assertion '%s' failed.\n", \ + __FILE__, __LINE__, __PRETTY_FUNCTION__, #fn); \ + __builtin_abort(); \ + } \ + } while (false) + + +using namespace std::chrono; + +void +test_version() +{ + const tzdb& db = get_tzdb(); + VERIFY( &db == &get_tzdb_list().front() ); + + const char* func; + try { + func = "remote_version"; + VERIFY( db.version == remote_version() ); + func = "reload_tzdb"; + const tzdb& reloaded = reload_tzdb(); + if (reloaded.version == db.version) + VERIFY( &reloaded == &db ); + } catch (const std::exception&) { + std::printf("std::chrono::%s() failed\n", func); + // on exception, we fail louder than the upstream reference test + exit(1); + } +} + +void +test_current() +{ + const tzdb& db = get_tzdb(); + const time_zone* tz = db.current_zone(); + VERIFY( tz == std::chrono::current_zone() ); +} + +void +test_locate() +{ + const tzdb& db = get_tzdb(); + const time_zone* tz = db.locate_zone("GMT"); + VERIFY( tz != nullptr ); + VERIFY( tz->name() == "Etc/GMT" ); + VERIFY( tz == std::chrono::locate_zone("GMT") ); + VERIFY( tz == db.locate_zone("Etc/GMT") ); + VERIFY( tz == db.locate_zone("Etc/GMT+0") ); + + VERIFY( db.locate_zone(db.current_zone()->name()) == db.current_zone() ); +} + +void +test_all_zones() +{ + const tzdb& db = get_tzdb(); + + for (const auto& zone : db.zones) + VERIFY( locate_zone(zone.name())->name() == zone.name() ); + + for (const auto& link : db.links) + VERIFY( locate_zone(link.name()) == locate_zone(link.target()) ); +} + +void +test_load_leapseconds() +{ + const auto& db = get_tzdb(); + + // this is correct as of tzdata 2024a + VERIFY( db.leap_seconds.size() == 27 ); +} + +int main() +{ + test_version(); + test_current(); + test_locate(); + test_load_leapseconds(); +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/yum_requirements.txt b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/yum_requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..17ca51b1f70831ca13f038947b03b314f5100cf7 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/recipe/parent/yum_requirements.txt @@ -0,0 +1,9 @@ +wget +m4 +patch +rsync +sed +findutils +make +file +strace diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/repodata_record.json b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..ba03a410101e98226fb55aef57262653279387b1 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/repodata_record.json @@ -0,0 +1,24 @@ +{ + "name": "_openmp_mutex", + "version": "4.5", + "build": "20_gnu", + "build_number": 20, + "channel": "https://conda.anaconda.org/conda-forge/linux-64", + "subdir": "linux-64", + "fn": "_openmp_mutex-4.5-20_gnu.conda", + "md5": "a9f577daf3de00bca7c3c76c0ecbd1de", + "url": "https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda", + "sha256": "1dd3fffd892081df9726d7eb7e0dea6198962ba775bd88842135a4ddb4deb3c9", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "__glibc >=2.17,<3.0.a0", + "libgomp >=7.5.0" + ], + "constrains": [ + "openmp_impl <0.0a0" + ], + "license": "BSD-3-Clause", + "timestamp": 1770939786000, + "size": 28948 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/run_exports.json b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..8317f7488646f484ede0fae55b47917a1f0a9452 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/run_exports.json @@ -0,0 +1 @@ +{"strong": ["_openmp_mutex >=4.5"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/test/run_test.sh b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..6008c8ce770d1bfec230dd7fa5ad8452379233e4 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-4.5-20_gnu/info/test/run_test.sh @@ -0,0 +1,9 @@ + + +set -ex + + + +test -f ${PREFIX}/lib/libgomp.so.1 +test `readlink ${PREFIX}/lib/libgomp.so.1` == "libgomp.so.1.0.0" +exit 0 diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/bin/anaconda b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/bin/anaconda new file mode 100644 index 0000000000000000000000000000000000000000..2c6e30d6787b6001762ada7bcfb1b94af9d094cf --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/bin/anaconda @@ -0,0 +1,11 @@ +#!/home/task_176488869080098/conda-bld/anaconda-cli-base_1764888740587/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from anaconda_cli_base.cli import app + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(app()) diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/about.json b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..92f20e6a4475c8784e2cc9fe1672ff713005a146 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/about.json @@ -0,0 +1,173 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://repo.anaconda.com/pkgs/r", + "https://repo.anaconda.com/pkgs/r" + ], + "conda_build_version": "25.1.2", + "conda_version": "25.1.1", + "description": "A base CLI entrypoint supporting Anaconda CLI plugins", + "dev_url": "https://pypi.org/project/anaconda-cli-base", + "doc_url": "https://pypi.org/project/anaconda-cli-base", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "recipe-maintainers": [ + "albertdefusco", + "mattkram" + ] + }, + "home": "https://anaconda.cloud", + "identifiers": [], + "keywords": [], + "license": "BSD-3-Clause", + "license_family": "BSD", + "license_file": "LICENSE", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "ca-certificates 2025.11.4 h06a4308_0", + "ld_impl_linux-64 2.40 h12ee557_0", + "libstdcxx-ng 11.2.0 h1234567_1", + "nlohmann_json 3.11.2 h6a678d5_0", + "pybind11-abi 5 hd3eb1b0_0", + "tzdata 2025a h04d1e81_0", + "libgomp 11.2.0 h1234567_1", + "_openmp_mutex 5.1 1_gnu", + "libgcc-ng 11.2.0 h1234567_1", + "bzip2 1.0.8 h5eee18b_6", + "c-ares 1.19.1 h5eee18b_0", + "cpp-expected 1.1.0 hdb19cb5_0", + "expat 2.7.3 h3385a95_0", + "fmt 9.1.0 hdb19cb5_1", + "icu 73.1 h6a678d5_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_1", + "libuuid 1.41.5 h5eee18b_0", + "lz4-c 1.9.4 h6a678d5_1", + "ncurses 6.4 h6a678d5_0", + "reproc 14.2.4 h6a678d5_2", + "simdjson 3.10.1 hdb19cb5_0", + "xz 5.4.6 h5eee18b_1", + "yaml-cpp 0.8.0 h6a678d5_1", + "zlib 1.2.13 h5eee18b_1", + "libedit 3.1.20230828 h5eee18b_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libssh2 1.11.1 h251f7ec_0", + "libxml2 2.13.5 hfdd30dd_0", + "pcre2 10.42 hebb0a14_1", + "readline 8.2 h5eee18b_0", + "reproc-cpp 14.2.4 h6a678d5_2", + "spdlog 1.11.0 hdb19cb5_0", + "patch 2.8 hb25bd0a_0", + "zstd 1.5.6 hc292b87_0", + "krb5 1.20.1 h143b758_1", + "libarchive 3.7.7 hfab0078_0", + "libsolv 0.7.30 he621ea3_1", + "sqlite 3.45.3 h5eee18b_0", + "python 3.12.9 h5148396_0", + "libmamba 2.0.5 haf1ee3a_1", + "menuinst 2.2.0 py312h06a4308_1", + "anaconda-anon-usage 0.5.0 py312hfc0e8ea_100", + "annotated-types 0.6.0 py312h06a4308_0", + "archspec 0.2.3 pyhd3eb1b0_0", + "boltons 24.1.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_9", + "charset-normalizer 3.3.2 pyhd3eb1b0_0", + "distro 1.9.0 py312h06a4308_0", + "frozendict 2.4.2 py312h06a4308_0", + "idna 3.7 py312h06a4308_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "libmambapy 2.0.5 py312hdb19cb5_1", + "mdurl 0.1.0 py312h06a4308_0", + "packaging 24.2 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.5.0 py312h06a4308_0", + "pycosat 0.6.6 py312h5eee18b_2", + "pycparser 2.21 pyhd3eb1b0_0", + "pygments 2.15.1 py312h06a4308_1", + "pysocks 1.7.1 py312h06a4308_0", + "ruamel.yaml.clib 0.2.8 py312h5eee18b_0", + "setuptools 75.8.0 py312h06a4308_0", + "tqdm 4.67.1 py312he106c6f_0", + "truststore 0.10.0 py312h06a4308_0", + "typing_extensions 4.12.2 py312h06a4308_0", + "wheel 0.45.1 py312h06a4308_0", + "cffi 1.17.1 py312h1fdaa30_1", + "jsonpatch 1.33 py312h06a4308_1", + "markdown-it-py 2.2.0 py312h06a4308_1", + "pip 25.0 py312h06a4308_0", + "ruamel.yaml 0.18.6 py312h5eee18b_0", + "typing-extensions 4.12.2 py312h06a4308_0", + "urllib3 2.3.0 py312h06a4308_0", + "cryptography 43.0.3 py312h7825ff9_1", + "pydantic-core 2.27.1 py312h4aa5aa6_0", + "requests 2.32.3 py312h06a4308_1", + "rich 13.9.4 py312h06a4308_0", + "zstandard 0.23.0 py312h2c38b39_1", + "conda-content-trust 0.2.0 py312h06a4308_1", + "conda-package-streaming 0.11.0 py312h06a4308_0", + "pydantic 2.10.3 py312h06a4308_0", + "conda-package-handling 2.4.0 py312h06a4308_0", + "conda 25.1.1 py312h06a4308_0", + "conda-anaconda-tos 0.1.2 py312h06a4308_0", + "conda-libmamba-solver 25.1.1 pyhd3eb1b0_0", + "libiconv 1.16 h5eee18b_3", + "liblief 0.12.3 h6a678d5_0", + "libsodium 1.0.20 heac8642_0", + "libunistring 1.3 hb25bd0a_0", + "openssl 3.0.18 hd6dcaed_0", + "patchelf 0.17.2 h6a678d5_0", + "perl 5.40.2 0_h5eee18b_perl5", + "pthread-stubs 0.3 h0ce48e5_1", + "xorg-libxau 1.0.12 h9b100fa_0", + "xorg-libxdmcp 1.1.5 h9b100fa_0", + "xorg-xorgproto 2024.1 h5eee18b_1", + "yaml 0.2.5 h7b6447c_0", + "libxcb 1.17.0 h9b100fa_0", + "gettext 0.21.0 hedfda30_2", + "xorg-libx11 1.8.12 h9b100fa_1", + "libidn2 2.3.8 hf80d704_0", + "tk 8.6.15 h54e0aa7_0", + "libcurl 8.16.0 heebcbe5_0", + "git 2.51.0 pl5382h000ed5b_0", + "argcomplete 3.6.2 py312h06a4308_0", + "attrs 25.4.0 py312h06a4308_2", + "certifi 2025.10.5 py312h06a4308_0", + "chardet 5.2.0 py312h06a4308_0", + "click 8.2.1 py312h06a4308_0", + "filelock 3.20.0 py312h06a4308_0", + "jmespath 1.0.1 py312h06a4308_0", + "markupsafe 3.0.2 py312h5eee18b_0", + "more-itertools 10.8.0 py312h06a4308_0", + "pkginfo 1.12.0 py312h06a4308_0", + "psutil 7.0.0 py312hee96239_1", + "py-lief 0.12.3 py312h6a678d5_0", + "python-libarchive-c 5.1 pyhd3eb1b0_0", + "pytz 2025.2 py312h06a4308_0", + "pyyaml 6.0.2 py312h5eee18b_0", + "rpds-py 0.28.0 py312h498d7c9_0", + "six 1.17.0 py312h06a4308_0", + "soupsieve 2.5 py312h06a4308_0", + "tomlkit 0.13.2 py312h06a4308_0", + "xmltodict 0.14.2 py312h06a4308_0", + "jinja2 3.1.6 py312h06a4308_0", + "python-dateutil 2.9.0post0 py312h06a4308_2", + "referencing 0.37.0 py312h06a4308_0", + "yq 3.4.3 py312h06a4308_0", + "beautifulsoup4 4.13.5 py312h06a4308_0", + "botocore 1.40.54 py312h06a4308_0", + "jsonschema-specifications 2023.7.1 py312h06a4308_1", + "pynacl 1.5.0 py312h2630517_2", + "jsonschema 4.25.0 py312h06a4308_1", + "s3transfer 0.14.0 py312h06a4308_0", + "boto3 1.40.54 py312h06a4308_0", + "conda-anaconda-telemetry 0.3.0 pyhd3eb1b0_1", + "conda-index 0.5.0 py312h06a4308_0", + "conda-build 25.1.2 py312h06a4308_0" + ], + "summary": "A base CLI entrypoint supporting Anaconda CLI plugins", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/files b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..a9b382e98bc3133ad85328af4b0748a0d02cb4b4 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/files @@ -0,0 +1,26 @@ +bin/anaconda +lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/INSTALLER +lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/METADATA +lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/RECORD +lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/REQUESTED +lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/WHEEL +lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/direct_url.json +lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/entry_points.txt +lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/licenses/LICENSE +lib/python3.13/site-packages/anaconda_cli_base/__init__.py +lib/python3.13/site-packages/anaconda_cli_base/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/anaconda_cli_base/__pycache__/_version.cpython-313.pyc +lib/python3.13/site-packages/anaconda_cli_base/__pycache__/cli.cpython-313.pyc +lib/python3.13/site-packages/anaconda_cli_base/__pycache__/config.cpython-313.pyc +lib/python3.13/site-packages/anaconda_cli_base/__pycache__/console.cpython-313.pyc +lib/python3.13/site-packages/anaconda_cli_base/__pycache__/deprecations.cpython-313.pyc +lib/python3.13/site-packages/anaconda_cli_base/__pycache__/exceptions.cpython-313.pyc +lib/python3.13/site-packages/anaconda_cli_base/__pycache__/plugins.cpython-313.pyc +lib/python3.13/site-packages/anaconda_cli_base/_version.py +lib/python3.13/site-packages/anaconda_cli_base/cli.py +lib/python3.13/site-packages/anaconda_cli_base/config.py +lib/python3.13/site-packages/anaconda_cli_base/console.py +lib/python3.13/site-packages/anaconda_cli_base/deprecations.py +lib/python3.13/site-packages/anaconda_cli_base/exceptions.py +lib/python3.13/site-packages/anaconda_cli_base/plugins.py +lib/python3.13/site-packages/anaconda_cli_base/py.typed diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/git b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/has_prefix b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/has_prefix new file mode 100644 index 0000000000000000000000000000000000000000..60f2c7a8b8f23995dc4537514a41c926d2d12c78 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/has_prefix @@ -0,0 +1 @@ +/home/task_176488869080098/conda-bld/anaconda-cli-base_1764888740587/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold text bin/anaconda diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/hash_input.json b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..54f8fb2da41bdb4962a008606b017773d2fef48e --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/hash_input.json @@ -0,0 +1,4 @@ +{ + "target_platform": "linux-64", + "channel_targets": "defaults" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/index.json b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..ad3c621a775c2ca7a1ac0b2eb918cb02bfb60ed0 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/index.json @@ -0,0 +1,28 @@ +{ + "arch": "x86_64", + "build": "py313h06a4308_0", + "build_number": 0, + "constrains": [ + "anaconda-auth >=0.12.0", + "anaconda-cloud-cli >=0.3.0", + "anaconda-client >=1.13.0" + ], + "depends": [ + "click", + "packaging >=23.0", + "pydantic-settings >=2.3", + "python >=3.13,<3.14.0a0", + "python_abi 3.13.* *_cp313", + "readchar", + "rich", + "tomli", + "typer >=0.17" + ], + "license": "BSD-3-Clause", + "license_family": "BSD", + "name": "anaconda-cli-base", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1764888759517, + "version": "0.7.0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/licenses/LICENSE b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..addf2f4d2e999260aa5f5b731606116482b0fbbe --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/licenses/LICENSE @@ -0,0 +1,27 @@ +BSD 3-Clause License + +Copyright (c) 2023, Anaconda, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/paths.json b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..06d61cf83463cb14aa598b24f6250284aff41374 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/paths.json @@ -0,0 +1,163 @@ +{ + "paths": [ + { + "_path": "bin/anaconda", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176488869080098/conda-bld/anaconda-cli-base_1764888740587/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold", + "sha256": "95ab164ed00736333a80550382f6f56ac3fd7a644a0fd544673f898b96390563", + "size_in_bytes": 472 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/INSTALLER", + "path_type": "hardlink", + "sha256": "d0edee15f91b406f3f99726e44eb990be6e34fd0345b52b910c568e0eef6a2a8", + "size_in_bytes": 5 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/METADATA", + "path_type": "hardlink", + "sha256": "0a68b5393f53f0efaea5d6fdc3363008a4c2e30180d5142d4894528319d054ab", + "size_in_bytes": 7759 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/RECORD", + "path_type": "hardlink", + "sha256": "3d4aa394e59c1cc80cf575e9a7bee96dba7a10c35f4e7ce780c908f8c9381579", + "size_in_bytes": 2068 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/REQUESTED", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/WHEEL", + "path_type": "hardlink", + "sha256": "aad0b0a12256807936d52d4a6f88a1773236ae527564a688bab4e3fe780e8724", + "size_in_bytes": 87 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/direct_url.json", + "path_type": "hardlink", + "sha256": "82bf67c4ca40d268032717a922ced2d4b368685c5d21f381454745e7a2a3d22b", + "size_in_bytes": 107 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/entry_points.txt", + "path_type": "hardlink", + "sha256": "4eec739164e7cdc3b9fef7e0b0ecb793faf873a7f89ccab844916e5b5d7e9ba9", + "size_in_bytes": 113 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/licenses/LICENSE", + "path_type": "hardlink", + "sha256": "e00a583d4671a8cf2f781b7770f857bd2f43386a21e5f5de4188fe6ea2002258", + "size_in_bytes": 1544 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/__init__.py", + "path_type": "hardlink", + "sha256": "3bda46d77b3f790324e3351b228ac717600d4476e92ecc8c574a79791f454d89", + "size_in_bytes": 253 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "8dfa9b854f71bdca80399665c0c076219989a529a341b203a2586e2713a75442", + "size_in_bytes": 459 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/_version.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d5463662625183391dd2963b3dbd4a459b03689979593ead86bdfce67dd2a8e7", + "size_in_bytes": 773 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/cli.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "27cabdea20bb158ab24ab1bf50b0bf3fd64664ee2c3c4a52f21a82e187c33d72", + "size_in_bytes": 9689 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/config.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "7b097ed38a3d746ce1d2f7b56e7beb9aa3300729adc05e83c4dc817dde2a4db9", + "size_in_bytes": 7717 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/console.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "fc9ecc40f615044f0e46c23c9529ee12c194902a54562bbc605ac3aaf98a2f4e", + "size_in_bytes": 3303 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/deprecations.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "7e86d90b868798d7f6fd56defc1565508fa5aeb6a904578ebab8e01402efad1a", + "size_in_bytes": 16048 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/exceptions.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "deddb6b8f241018f8b26f8f35f54e269e7f570610183273e76f5ddef2e155018", + "size_in_bytes": 2080 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/plugins.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "07f329aebfb2c315dc0f93a84670f96ba7d329e13b51b2c3920d25c9815b6bc7", + "size_in_bytes": 11668 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/_version.py", + "path_type": "hardlink", + "sha256": "b8b6d18c549464081f97b57b3bccca5790dbdfa93bb73f3b64856ade5d925acd", + "size_in_bytes": 704 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/cli.py", + "path_type": "hardlink", + "sha256": "14a54c69fad4fa0052bea41b39d698b35f125ccd36fc754c99645e542abe85f6", + "size_in_bytes": 8585 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/config.py", + "path_type": "hardlink", + "sha256": "a55c9fa1e451408001909fd8576894cfb244209d64cb8cb819c05c1a6ff3cef7", + "size_in_bytes": 5255 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/console.py", + "path_type": "hardlink", + "sha256": "36d4f8155c4c994378c18dd17b204fedf84898bf1b52f34e476a25bcb13e18f4", + "size_in_bytes": 2763 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/deprecations.py", + "path_type": "hardlink", + "sha256": "d208e4152677eaa6b1eb6bb5ee3a2b518f89ecc4f31220c208858c577e31c91b", + "size_in_bytes": 15347 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/exceptions.py", + "path_type": "hardlink", + "sha256": "fb216445c531b665e82569afd743e8b4b37f370d205039d97c2cd7149342c1a2", + "size_in_bytes": 854 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/plugins.py", + "path_type": "hardlink", + "sha256": "58dcd36d7a25f4fa31f0df921e2da40eeef6d54893cef549e056ee9725be5135", + "size_in_bytes": 10717 + }, + { + "_path": "lib/python3.13/site-packages/anaconda_cli_base/py.typed", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4855972b924f15109385e5a5c1468ed16e088be6 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/recipe/conda_build_config.yaml @@ -0,0 +1,28 @@ +c_compiler: gcc +channel_targets: defaults +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cxx_compiler: gxx +extend_keys: +- pin_run_as_build +- ignore_version +- extend_keys +- ignore_build_only_deps +fortran_compiler: gfortran +ignore_build_only_deps: +- python +- numpy +lua: '5' +numpy: '1.26' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +platform: linux-64 +python: '3.13' +r_base: '3.5' +target_platform: linux-64 diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/recipe/meta.yaml b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9d3e24ba41fd9a4d8ff2e41082ffd6131c1f5dd8 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/recipe/meta.yaml @@ -0,0 +1,108 @@ +# This file created by conda-build 25.1.2 +# meta.yaml template originally from: +# /home/task_176488869080098/anaconda-cli-base-feedstock/recipe, last modified Thu Dec 4 22:51:49 2025 +# ------------------------------------------------ + +package: + name: anaconda-cli-base + version: 0.7.0 +source: + sha256: 4ebec5d913039b6ac208a4c6abed737f7ad1f311f54c14b768bd5cb266092207 + url: https://pypi.org/packages/source/a/anaconda-cli-base/anaconda_cli_base-0.7.0.tar.gz +build: + entry_points: + - anaconda = anaconda_cli_base.cli:app + number: '0' + script: /home/task_176488869080098/conda-bld/anaconda-cli-base_1764888740587/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/bin/python + -m pip install . -vv --no-deps --no-build-isolation + string: py313h06a4308_0 +requirements: + host: + - _libgcc_mutex 0.1 main + - _openmp_mutex 5.1 1_gnu + - bzip2 1.0.8 h5eee18b_6 + - ca-certificates 2025.12.2 h06a4308_0 + - expat 2.7.3 h3385a95_0 + - hatch-vcs 0.5.0 py313h06a4308_0 + - hatchling 1.27.0 py313h06a4308_1 + - ld_impl_linux-64 2.44 h153f514_2 + - libffi 3.4.4 h6a678d5_1 + - libgcc 15.2.0 h69a1729_7 + - libgcc-ng 15.2.0 h166f726_7 + - libgomp 15.2.0 h4751f2c_7 + - libmpdec 4.0.0 h5eee18b_0 + - libstdcxx 15.2.0 h39759b7_7 + - libstdcxx-ng 15.2.0 hc03a8fd_7 + - libuuid 1.41.5 h5eee18b_0 + - libxcb 1.17.0 h9b100fa_0 + - libzlib 1.3.1 hb25bd0a_0 + - ncurses 6.5 h7934f7d_0 + - openssl 3.0.18 hd6dcaed_0 + - packaging 25.0 py313h06a4308_1 + - pathspec 0.12.1 py313h06a4308_1 + - pip 25.3 pyhc872135_0 + - pluggy 1.5.0 py313h06a4308_0 + - pthread-stubs 0.3 h0ce48e5_1 + - python 3.13.10 hcf712cf_100_cp313 + - python_abi 3.13 3_cp313 + - readline 8.3 hc2a1206_0 + - setuptools 80.9.0 py313h06a4308_0 + - setuptools-scm 9.2.2 py313h06a4308_0 + - sqlite 3.51.0 h2a70700_0 + - tk 8.6.15 h54e0aa7_0 + - trove-classifiers 2025.5.9.12 py313h06a4308_0 + - tzdata 2025b h04d1e81_0 + - wheel 0.45.1 py313h06a4308_0 + - xorg-libx11 1.8.12 h9b100fa_1 + - xorg-libxau 1.0.12 h9b100fa_0 + - xorg-libxdmcp 1.1.5 h9b100fa_0 + - xorg-xorgproto 2024.1 h5eee18b_1 + - xz 5.6.4 h5eee18b_1 + - zlib 1.3.1 hb25bd0a_0 + run: + - click + - packaging >=23.0 + - pydantic-settings >=2.3 + - python >=3.13,<3.14.0a0 + - python_abi 3.13.* *_cp313 + - readchar + - rich + - tomli + - typer >=0.17 + run_constrained: + - anaconda-auth >=0.12.0 + - anaconda-client >=1.13.0 + - anaconda-cloud-cli >=0.3.0 +test: + commands: + - pip check + - anaconda -h + - anaconda -V + - python -c "from anaconda_cli_base import __version__; assert __version__ == + \"0.7.0\"" + - python -c "from importlib.metadata import version; assert(version('anaconda-cli-base')=='0.7.0')" + - pytest -v tests + imports: + - anaconda_cli_base + requires: + - pip + - pytest + - pytest-mock + - types-requests + source_files: + - tests +about: + description: A base CLI entrypoint supporting Anaconda CLI plugins + dev_url: https://pypi.org/project/anaconda-cli-base + doc_url: https://pypi.org/project/anaconda-cli-base + home: https://anaconda.cloud + license: BSD-3-Clause + license_family: BSD + license_file: LICENSE + summary: A base CLI entrypoint supporting Anaconda CLI plugins +extra: + copy_test_source_files: true + final: true + recipe-maintainers: + - albertdefusco + - mattkram diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/recipe/meta.yaml.template b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/recipe/meta.yaml.template new file mode 100644 index 0000000000000000000000000000000000000000..a8dde5071359b5e929e3ee7a5d75c69e7ac24568 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/recipe/meta.yaml.template @@ -0,0 +1,74 @@ +{% set name = "anaconda-cli-base" %} +{% set version = "0.7.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name|replace("-", "_") }}-{{ version }}.tar.gz + sha256: 4ebec5d913039b6ac208a4c6abed737f7ad1f311f54c14b768bd5cb266092207 + +build: + number: 0 + skip: true # [py<38] + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + entry_points: + - anaconda = anaconda_cli_base.cli:app + +requirements: + host: + - pip + - python + - hatchling + - hatch-vcs >=0.3 + - setuptools-scm >=7.1 + run: + - python + - click + - pydantic-settings >=2.3 + - readchar + - rich + - typer >=0.17 + - tomli + - packaging >=23.0 + run_constrained: + # Ensure coordinated rollout of changes related to multi-site configuration + - anaconda-auth >=0.12.0 + # Ensure that a version of anaconda-cli-base cannot be installed if an incompatible + # older version of anaconda-client is installed. + - anaconda-client >=1.13.0 + - anaconda-cloud-cli >=0.3.0 + +test: + source_files: + - tests + imports: + - anaconda_cli_base + requires: + - pip + - pytest + - pytest-mock + - types-requests + commands: + - pip check + - anaconda -h + - anaconda -V + - python -c "from anaconda_cli_base import __version__; assert __version__ == \"{{ version }}\"" + - python -c "from importlib.metadata import version; assert(version('{{ name }}')=='{{ version }}')" + - pytest -v tests + +about: + home: https://anaconda.cloud + license: BSD-3-Clause + license_file: LICENSE + license_family: BSD + summary: A base CLI entrypoint supporting Anaconda CLI plugins + description: A base CLI entrypoint supporting Anaconda CLI plugins + dev_url: https://pypi.org/project/anaconda-cli-base + doc_url: https://pypi.org/project/anaconda-cli-base + +extra: + recipe-maintainers: + - albertdefusco + - mattkram diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/repodata_record.json b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..2c969e4774692d1ee2a9c7e05bcec5479a48b8b8 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/repodata_record.json @@ -0,0 +1,34 @@ +{ + "arch": "x86_64", + "build": "py313h06a4308_0", + "build_number": 0, + "channel": "https://repo.anaconda.com/pkgs/main/linux-64/", + "constrains": [ + "anaconda-auth >=0.12.0", + "anaconda-cloud-cli >=0.3.0", + "anaconda-client >=1.13.0" + ], + "depends": [ + "click", + "packaging >=23.0", + "pydantic-settings >=2.3", + "python >=3.13,<3.14.0a0", + "python_abi 3.13.* *_cp313", + "readchar", + "rich", + "tomli", + "typer >=0.17" + ], + "fn": "anaconda-cli-base-0.7.0-py313h06a4308_0.conda", + "license": "BSD-3-Clause", + "license_family": "BSD", + "md5": "bd51dcf852c80a792284b75f002b9f72", + "name": "anaconda-cli-base", + "platform": "linux", + "sha256": "dfd8f2dacb047b21fce2d11d87869be2bb34c9050f92c4c1830e579c633da488", + "size": 52855, + "subdir": "linux-64", + "timestamp": 1764888759000, + "url": "https://repo.anaconda.com/pkgs/main/linux-64/anaconda-cli-base-0.7.0-py313h06a4308_0.conda", + "version": "0.7.0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/run_test.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/run_test.py new file mode 100644 index 0000000000000000000000000000000000000000..f0749463c5011762c7e796348077251c584af9fd --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/run_test.py @@ -0,0 +1,3 @@ +print("import: 'anaconda_cli_base'") +import anaconda_cli_base + diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/run_test.sh b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..77c845711e454c0e5ce89a946313f1b2afb334ae --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/run_test.sh @@ -0,0 +1,13 @@ + + +set -ex + + + +pip check +anaconda -h +anaconda -V +python -c "from anaconda_cli_base import __version__; assert __version__ == \"0.7.0\"" +python -c "from importlib.metadata import version; assert(version('anaconda-cli-base')=='0.7.0')" +pytest -v tests +exit 0 diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/test_time_dependencies.json b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/test_time_dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..341433f622ab32c4c88bd2e1c032bef84c37d4fa --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/test_time_dependencies.json @@ -0,0 +1 @@ +["pip", "types-requests", "pytest-mock", "pytest"] \ No newline at end of file diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/__init__.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/conftest.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/conftest.py new file mode 100644 index 0000000000000000000000000000000000000000..5d6601b1b700436f8e2dbabd5ed75820afd6533b --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/conftest.py @@ -0,0 +1,132 @@ +from __future__ import annotations + +import os +import sys +from importlib import reload +from pathlib import Path +from types import ModuleType +from typing import IO +from typing import Any +from typing import Callable +from typing import Mapping +from typing import Optional +from typing import Protocol +from typing import Sequence +from typing import Union +from typing import Generator + +import pytest +import readchar +import typer +from typer import rich_utils +from pytest import MonkeyPatch +from pytest_mock import MockerFixture +from typer.testing import CliRunner +from click.testing import Result + +# Force usage of new CLI +os.environ["ANACONDA_CLI_FORCE_NEW"] = "true" +os.environ["ANACONDA_CLI_DISABLE_PLUGINS"] = "true" + +import anaconda_cli_base.cli + + +class CLIInvoker(Protocol): + def __call__( + self, + # app: typer.Typer, + args: Optional[Union[str, Sequence[str]]] = None, + input: Optional[Union[bytes, str, IO[Any]]] = None, + env: Optional[Mapping[str, str]] = None, + catch_exceptions: bool = True, + color: bool = False, + **extra: Any, + ) -> Result: ... + + +@pytest.fixture(autouse=True) +def ensure_wide_terminal(monkeypatch: MonkeyPatch) -> None: + """Ensure the terminal is wide enough for long output to stdout to prevent line breaks.""" + monkeypatch.setattr(rich_utils, "MAX_WIDTH", 10000) + + +@pytest.fixture +def disable_dot_env(mocker: MockerFixture) -> None: + from anaconda_cli_base.config import AnacondaBaseSettings + + mocker.patch.dict(AnacondaBaseSettings.model_config, {"env_file": ""}) + + +@pytest.fixture(autouse=True) +def disable_config_toml(tmp_path: Path, monkeypatch: MonkeyPatch) -> None: + monkeypatch.setenv("ANACONDA_CONFIG_TOML", str(tmp_path / "empty-config.toml")) + + +@pytest.fixture() +def tmp_cwd(monkeypatch: MonkeyPatch, tmp_path: Path) -> Path: + """Create & return a temporary directory after setting current working directory to it.""" + monkeypatch.chdir(tmp_path) + return tmp_path + + +@pytest.fixture(autouse=True) +def prepare_app() -> Generator[None, None, None]: + reload(anaconda_cli_base.cli) + + @anaconda_cli_base.cli.app.command("some-test-subcommand") + def some_test_subcommand() -> None: + raise typer.Exit() + + yield + + +@pytest.fixture() +def invoke_cli(tmp_cwd: Path, monkeypatch: MonkeyPatch) -> CLIInvoker: + """Returns a function, which can be used to call the CLI from within a temporary directory.""" + + runner = CliRunner() + + # Construct a wrapper function so that we can also patch sys.argv when invoking the CLI + def f( + args: Optional[Union[str, Sequence[str]]] = None, + input: Optional[Union[bytes, str, IO[Any]]] = None, + env: Optional[Mapping[str, str]] = None, + catch_exceptions: bool = True, + color: bool = False, + **extra: Any, + ) -> Result: + args = args or [] + monkeypatch.setattr(sys, "argv", ["path/to/anaconda"] + list(args)) + + def mock_get_key(input_string: str) -> Callable[[], str]: + """Generate a mock function for get_key, from an input string.""" + gen = (char for char in input_string) + + def get_key() -> str: + try: + return next(gen) + except StopIteration: + raise EOFError("No more input available") + + return get_key + + # We need to conditionally monkeypatch different modules, depending on the operating system + module: ModuleType + if sys.platform in ("win32", "cygwin"): + module = readchar._win_read + else: + module = readchar._posix_read + + monkeypatch.setattr(module, "readchar", mock_get_key(str(input) or "")) + + return runner.invoke( + anaconda_cli_base.cli.app, + args=args, + input=input, + env=env, + catch_exceptions=catch_exceptions, + color=color, + **extra, + ) + + return f diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/test_cli.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/test_cli.py new file mode 100644 index 0000000000000000000000000000000000000000..d85eb15ad2ae85ebf983da7c11383aff46e1ef4c --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/test_cli.py @@ -0,0 +1,798 @@ +import importlib +import itertools +import os +import sys +from functools import partial +from typing import Tuple +from typing import Type +from typing import cast +from typing import Optional, Sequence, Callable, Generator +from unittest.mock import MagicMock + +import pytest +import typer +from packaging import version +from pytest import MonkeyPatch +from pytest_mock import MockerFixture +from readchar import key + +import anaconda_cli_base.cli +from anaconda_cli_base import __version__ +from anaconda_cli_base import console +from anaconda_cli_base.cli import _select_main_entrypoint_app +from anaconda_cli_base.exceptions import register_error_handler +from anaconda_cli_base.plugins import ( + load_registered_subcommands, + _select_auth_handler_and_args, +) + +from .conftest import CLIInvoker + +ENTRY_POINT_TUPLE = Tuple[str, str, typer.Typer] + + +installed_click_version = version.parse(importlib.metadata.version("click")) + +# The click version where the exit code changed from 0 to 2 when no_args_is_help is used +click_version_exit_code_changed = version.parse("8.2.0") + + +@pytest.mark.parametrize( + "args, expected_exit_code", + [ + pytest.param( + (), + 2 if installed_click_version >= click_version_exit_code_changed else 0, + id="no-args", + ), + pytest.param(("--help",), 0, id="--help"), + pytest.param(("-h",), 0, id="-h"), + ], +) +@pytest.mark.parametrize( + "expected_text", + [ + "Welcome to the Anaconda CLI!", + "Print debug information to the console.", + "Show this message and exit.", + "Show version and exit.", + ], +) +def test_cli_help( + invoke_cli: CLIInvoker, + args: Tuple[str], + expected_exit_code: int, + expected_text: str, +) -> None: + result = invoke_cli(args) + assert result.exit_code == expected_exit_code + assert expected_text in result.stdout + + +def test_cli_version(invoke_cli: CLIInvoker) -> None: + result = invoke_cli(["--version"]) + assert result.exit_code == 0 + assert f"Anaconda CLI, version {__version__}" in result.stdout + + +@pytest.mark.parametrize( + "args", + [ + pytest.param((), id="no-args"), + pytest.param(("-t", "TOKEN"), id="-t"), + pytest.param(("--token", "TOKEN"), id="--token"), + pytest.param(("-s", "SITE"), id="-s"), + pytest.param(("--site", "SITE"), id="--site"), + pytest.param(("--disable-ssl-warnings",), id="--disable-ssl-warnings"), + pytest.param(("--show-traceback",), id="--show-traceback"), + pytest.param(("-v",), id="-v"), + pytest.param(("--verbose",), id="--verbose"), + pytest.param(("-q",), id="-q"), + pytest.param(("--quiet",), id="--quiet"), + ], +) +def test_cli_root_options_passthrough(invoke_cli: CLIInvoker, args: Tuple[str]) -> None: + """Here, we make sure that the root options from anaconda-client are allowed to be passed in. + + These will get forwarded through to anaconda-client, but if not defined in typer app could + raise unwanted exceptions. + + """ + result = invoke_cli([*args, "some-test-subcommand"]) + assert result.exit_code == 0 + + +@pytest.fixture +def plugin() -> ENTRY_POINT_TUPLE: + plugin = typer.Typer(name="plugin", add_completion=False, no_args_is_help=True) + + @plugin.command("action") + def action() -> None: + print("done") + + return ("plugin", "plugin:app", plugin) + + +def test_load_plugin( + invoke_cli: CLIInvoker, plugin: ENTRY_POINT_TUPLE, mocker: MockerFixture +) -> None: + plugins = [plugin] + + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + + group = next( + ( + group + for group in anaconda_cli_base.cli.app.registered_groups + if group.name == "plugin" + ), + None, + ) + assert group is not None + assert group.typer_instance == plugin[-1] + + result = invoke_cli(["plugin", "action"]) + assert result.exit_code == 0 + assert result.stdout == "done\n" + + +@pytest.fixture +def dummy_plugin(monkeypatch: MonkeyPatch) -> ENTRY_POINT_TUPLE: + monkeypatch.setitem( + anaconda_cli_base.plugins.AUTH_HANDLER_ALIASES, "dummy", "anaconda.com" + ) + plugin = typer.Typer(name="dummy", add_completion=False, no_args_is_help=True) + + @plugin.command("action") + def action() -> None: + console.print("dummy: done") + + @plugin.command("login") + def login(force: bool = typer.Option(False, "--force")) -> None: + console.print("dummy: You're in") + + @plugin.command("logout") + def logout() -> None: + console.print("dummy: You're out") + + @plugin.command("whoami") + def whoami() -> None: + console.print("dummy: Who are you?") + + return ("dummy", "auth-plugin:app", plugin) + + +def test_load_dummy_plugin( + invoke_cli: CLIInvoker, + dummy_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, +) -> None: + assert "login" not in [ + cmd.name for cmd in anaconda_cli_base.cli.app.registered_commands + ] + + plugins = [dummy_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + + group = next( + ( + group + for group in anaconda_cli_base.cli.app.registered_groups + if group.name == "dummy" + ), + None, + ) + assert group is not None + assert group.typer_instance == dummy_plugin[-1] + + for action in "login", "logout", "whoami": + cmd = next( + ( + cmd + for cmd in anaconda_cli_base.cli.app.registered_commands + if cmd.name == action + ), + None, + ) + assert cmd is not None + + result = invoke_cli(["dummy", "action"]) + assert result.exit_code == 0 + assert result.stdout == "dummy: done\n" + + result = invoke_cli(["login"], input="\n") + assert result.exit_code == 0 + assert result.stdout.strip().splitlines()[-1].endswith("dummy: You're in") + + result = invoke_cli(["login", "--at", "dummy"]) + assert result.exit_code == 0 + assert result.stdout == "dummy: You're in\n" + + result = invoke_cli(["login", "--at", "anaconda.com"]) + assert result.exit_code == 0 + assert result.stdout == "dummy: You're in\n" + + result = invoke_cli(["login", "--at", "dummy", "--help"]) + assert result.exit_code == 0 + assert "--force" in result.stdout + + result = invoke_cli(["login", "--at", "anaconda.com", "--help"]) + assert result.exit_code == 0 + assert "--force" in result.stdout + + +@pytest.fixture +def org_plugin(monkeypatch: MonkeyPatch) -> ENTRY_POINT_TUPLE: + plugin = typer.Typer(name="org", add_completion=False, no_args_is_help=True) + + @plugin.command("action") + def action() -> None: + console.print("org: done") + + @plugin.command("token") + def token(ctx: typer.Context) -> None: + print(f"token: {ctx.obj.params.get('token')}") + + @plugin.command("login") + def login( + force: bool = typer.Option(False, "--force"), + hostname: Optional[str] = typer.Option(None), + username: Optional[str] = typer.Option(None), + password: Optional[str] = typer.Option(None), + ) -> None: + console.print("org: You're in") + + @plugin.command("logout") + def logout() -> None: + console.print("org: You're out") + + @plugin.command("whoami") + def whoami() -> None: + console.print("org: Who are you?") + + return ("org", "org-plugin:app", plugin) + + +@pytest.fixture +def legacy_main(mocker: MockerFixture) -> Generator[Callable, None, None]: + def main( + args: Optional[Sequence[str]] = None, + *, + exit_: bool = True, + allow_plugin_main: bool = True, + ) -> None: + pass + + cli = MagicMock() + cli.main = main + modules = { + "binstar_client": MagicMock(), + "binstar_client.scripts": MagicMock(), + "binstar_client.scripts.cli": cli, + } + mocker.patch.dict("sys.modules", modules) + + yield main + + +def test_org_legacy( + org_plugin: ENTRY_POINT_TUPLE, + legacy_main: Callable, + mocker: MockerFixture, + monkeypatch: MonkeyPatch, +) -> None: + """Mock the scenario where only anaconda-client was installed""" + + # these env vars should not be set in a normal env for this test + monkeypatch.delenv("ANACONDA_CLI_FORCE_NEW", raising=False) + monkeypatch.delenv("ANACONDA_CLIENT_FORCE_STANDALONE", raising=False) + + plugins = [org_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + + assert [g.name for g in anaconda_cli_base.cli.app.registered_groups] == ["org"] + + final_app = _select_main_entrypoint_app(anaconda_cli_base.cli.app) + + assert isinstance(final_app, partial) + assert final_app.func is legacy_main + assert final_app.keywords["allow_plugin_main"] is False + + +def test_fail_org_legacy( + org_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, + monkeypatch: MonkeyPatch, +) -> None: + """Mock the scenario where only anaconda-client was installed""" + + # these env vars should not be set in a normal env for this test + monkeypatch.setenv("ANACONDA_CLI_FORCE_NEW", "True") + monkeypatch.setenv("ANACONDA_CLIENT_FORCE_STANDALONE", "True") + + plugins = [org_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + + with pytest.raises(ValueError): + _ = _select_main_entrypoint_app(anaconda_cli_base.cli.app) + + +def test_force_org_legacy( + org_plugin: ENTRY_POINT_TUPLE, + legacy_main: Callable, + dummy_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, + monkeypatch: MonkeyPatch, +) -> None: + """Multiple plugins installed but anaconda-client is the desired cli""" + + # these env vars should not be set in a normal env for this test + monkeypatch.delenv("ANACONDA_CLI_FORCE_NEW", raising=False) + monkeypatch.setenv("ANACONDA_CLIENT_FORCE_STANDALONE", "True") + + plugins = [org_plugin, dummy_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + groups = [g.name for g in anaconda_cli_base.cli.app.registered_groups] + assert "org" in groups + assert "dummy" in groups + + final_app = _select_main_entrypoint_app(anaconda_cli_base.cli.app) + + assert isinstance(final_app, partial) + assert final_app.func is legacy_main + assert final_app.keywords["allow_plugin_main"] is False + + +def test_org_subcommand( + invoke_cli: CLIInvoker, + org_plugin: ENTRY_POINT_TUPLE, + dummy_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, + monkeypatch: MonkeyPatch, +) -> None: + """Multiple plugins installed, default behavior""" + + # these env vars should not be set in a normal env for this test + monkeypatch.delenv("ANACONDA_CLI_FORCE_NEW", raising=False) + monkeypatch.delenv("ANACONDA_CLIENT_FORCE_STANDALONE", raising=False) + + plugins = [org_plugin, dummy_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + groups = [g.name for g in anaconda_cli_base.cli.app.registered_groups] + assert "org" in groups + assert "dummy" in groups + + final_app = _select_main_entrypoint_app(anaconda_cli_base.cli.app) + + assert final_app is anaconda_cli_base.cli.app + + for action in "login", "logout", "whoami": + cmd = next( + ( + cmd + for cmd in anaconda_cli_base.cli.app.registered_commands + if cmd.name == action + ), + None, + ) + assert cmd is not None + + result = invoke_cli(["org", "action"]) + assert result.exit_code == 0 + assert "org: done\n" == result.stdout + + result = invoke_cli(["login", "--at", "org"]) + assert result.exit_code == 0 + assert result.stdout == "org: You're in\n" + + result = invoke_cli(["login", "--at", "anaconda.org"]) + assert result.exit_code == 0 + assert result.stdout == "org: You're in\n" + + +def test_org_login_explicit_username( + invoke_cli: CLIInvoker, + org_plugin: ENTRY_POINT_TUPLE, + dummy_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, + monkeypatch: MonkeyPatch, +) -> None: + """Login with explicit --username and --password arguments doesn't raise an error.""" + + # these env vars should not be set in a normal env for this test + monkeypatch.delenv("ANACONDA_CLI_FORCE_NEW", raising=False) + monkeypatch.delenv("ANACONDA_CLIENT_FORCE_STANDALONE", raising=False) + + plugins = [org_plugin, dummy_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + groups = [g.name for g in anaconda_cli_base.cli.app.registered_groups] + assert "org" in groups + assert "dummy" in groups + + final_app = _select_main_entrypoint_app(anaconda_cli_base.cli.app) + + assert final_app is anaconda_cli_base.cli.app + + result = invoke_cli( + [ + "login", + "--at", + "anaconda.org", + "--username", + "some-user", + "--password", + "secret-password", + ] + ) + assert result.exit_code == 0 + assert result.stdout == "org: You're in\n" + + +def test_login_select_multiple_plugins( + invoke_cli: CLIInvoker, + org_plugin: ENTRY_POINT_TUPLE, + dummy_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, + monkeypatch: MonkeyPatch, +) -> None: + """Multiple plugins installed, default behavior""" + + # these env vars should not be set in a normal env for this test + monkeypatch.delenv("ANACONDA_CLI_FORCE_NEW", raising=False) + monkeypatch.delenv("ANACONDA_CLIENT_FORCE_STANDALONE", raising=False) + + plugins = [org_plugin, dummy_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + + result = invoke_cli(["login"]) + assert result.stdout.strip().startswith( + "choose destination: \n * anaconda.com \n anaconda.org" + ) + + result = invoke_cli(["login"], input="\n") + assert result.exit_code == 0 + assert result.stdout.strip().splitlines()[-1].endswith("dummy: You're in") + + result = invoke_cli(["login"], input="j\n") + assert result.exit_code == 0 + assert result.stdout.strip().splitlines()[-1].endswith("org: You're in") + + result = invoke_cli(["login"], input="jk\n") + assert result.exit_code == 0 + assert result.stdout.strip().splitlines()[-1].endswith("dummy: You're in") + + result = invoke_cli(["login"], input=key.ENTER) + assert result.exit_code == 0, result.stdout + assert result.stdout.strip().splitlines()[-1].endswith("dummy: You're in") + + result = invoke_cli(["login"], input=key.DOWN + key.ENTER) + assert result.exit_code == 0, result.stdout + assert result.stdout.strip().splitlines()[-1].endswith("org: You're in") + + result = invoke_cli(["login"], input=key.DOWN + key.UP + key.ENTER) + assert result.exit_code == 0, result.stdout + assert result.stdout.strip().splitlines()[-1].endswith("dummy: You're in") + + +def test_login_select_hidden_org( + invoke_cli: CLIInvoker, + org_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, + monkeypatch: MonkeyPatch, +) -> None: + """Single plugin installed, selector hidden""" + + # these env vars should not be set in a normal env for this test + monkeypatch.delenv("ANACONDA_CLI_FORCE_NEW", raising=False) + monkeypatch.delenv("ANACONDA_CLIENT_FORCE_STANDALONE", raising=False) + + plugins = [org_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + + result = invoke_cli(["login"]) + assert result.exit_code == 0 + assert result.stdout.strip() == "org: You're in" + + +def test_login_select_hidden_cloud( + invoke_cli: CLIInvoker, + dummy_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, +) -> None: + """Single plugins installed, selector hidden""" + + plugins = [dummy_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + + result = invoke_cli(["login"]) + assert result.exit_code == 0 + assert result.stdout.strip() == "dummy: You're in" + + +def test_capture_top_level_params( + invoke_cli: CLIInvoker, + org_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, + monkeypatch: MonkeyPatch, +) -> None: + # Test that subcommand captures the top-level CLI params via the typer.Context.obj.params attribute. + + # these env vars should not be set in a normal env for this test + monkeypatch.delenv("ANACONDA_CLIENT_FORCE_STANDALONE", raising=False) + monkeypatch.setenv("ANACONDA_CLI_FORCE_NEW", "true") + + plugins = [org_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + groups = [g.name for g in anaconda_cli_base.cli.app.registered_groups] + assert "org" in groups + + final_app = _select_main_entrypoint_app(anaconda_cli_base.cli.app) + + assert final_app is anaconda_cli_base.cli.app + + result = invoke_cli(["--token", "TOKEN", "org", "token"]) + assert result.exit_code == 0 + assert "token: TOKEN\n" == result.stdout + + +@pytest.fixture +def error_plugin() -> ENTRY_POINT_TUPLE: + plugin = typer.Typer(name="error", add_completion=False, no_args_is_help=True) + + class MyException(Exception): + pass + + @register_error_handler(MyException) + def handle_exception(e: Type[Exception]) -> int: + print(f"Custom error handler: {e.__class__.__name__}") + return 42 + + class AnotherException(Exception): + pass + + @register_error_handler(AnotherException) + def handle_and_continue(e: Type[Exception]) -> int: + print(f"I've corrected the problem: {e.__class__.__name__}") + return -1 + + @plugin.command("auto-catch") + def auth_catch() -> None: + _ = 1 / 0 + + @plugin.command("custom-catch") + def custom_catch() -> None: + raise MyException("something bad happened") + + class Counter: + def __init__(self) -> None: + self.count = 0 + + def __call__(self) -> None: + print("calling counter") + self.count += 1 + if self.count < 2: + raise AnotherException("Call me again") + + counter1 = Counter() + counter2 = Counter() + + @plugin.command("continue-task") + def continue_task() -> None: + counter1() + + @plugin.command("continue-task-but-fail") + def continue_task_but_fail() -> None: + counter2() + raise RuntimeError("something went wrong") + + return ("error", "error-plugin:app", plugin) + + +def test_error_handled( + invoke_cli: CLIInvoker, + error_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, + monkeypatch: MonkeyPatch, +) -> None: + # Test that subcommand captures the top-level CLI params via the typer.Context.obj.params attribute. + + # these env vars should not be set in a normal env for this test + monkeypatch.delenv("ANACONDA_CLI_FORCE_NEW", raising=False) + monkeypatch.delenv("ANACONDA_CLIENT_FORCE_STANDALONE", raising=False) + + plugins = [error_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + + result = invoke_cli(["error", "auto-catch"]) + assert result.exit_code == 1 + assert result.stdout.splitlines()[0] == "ZeroDivisionError: division by zero" + + result = invoke_cli(["--verbose", "error", "auto-catch"]) + assert result.exit_code == 1 + assert isinstance(result.exception, ZeroDivisionError) + + result = invoke_cli(["error", "custom-catch"]) + assert result.exit_code == 42 + assert result.stdout.splitlines()[0] == "Custom error handler: MyException" + + result = invoke_cli(["error", "continue-task"]) + assert result.exit_code == 0 + output = result.stdout.splitlines() + assert output[:3] == [ + "calling counter", + "I've corrected the problem: AnotherException", + "calling counter", + ] + + result = invoke_cli(["error", "continue-task-but-fail"]) + assert result.exit_code == 1 + output = result.stdout.splitlines() + assert output[:4] == [ + "calling counter", + "I've corrected the problem: AnotherException", + "calling counter", + "RuntimeError: something went wrong", + ] + + +@pytest.mark.parametrize( + "options, top_options, expected_handler, expected_args", + [ + pytest.param( + {}, {"at": "anaconda.com"}, "dot-com-handler", [], id="dot-com-top-at" + ), + pytest.param( + {}, {"at": "anaconda.org"}, "dot-org-handler", [], id="dot-org-top-at" + ), + pytest.param( + {}, + {"at": "anaconda.org", "site": "foo"}, + "dot-org-handler", + [], + id="dot-org-top-at-site", + ), + pytest.param({}, {"site": "foo"}, "dot-org-handler", [], id="dot-org-top-site"), + pytest.param( + {}, {"token": "foo"}, "dot-org-handler", [], id="dot-org-top-token" + ), + pytest.param( + {"at": "anaconda.com"}, {}, "dot-com-handler", [], id="dot-com-at" + ), + pytest.param( + {"at": "anaconda.org"}, {}, "dot-org-handler", [], id="dot-org-at" + ), + pytest.param( + {"username": "some-user"}, + {}, + "dot-org-handler", + ["--username", "some-user"], + id="dot-org-username", + ), + pytest.param( + {"username": "some-user", "password": "secret-password"}, + {}, + "dot-org-handler", + ["--username", "some-user", "--password", "secret-password"], + id="dot-org-username-password", + ), + pytest.param( + {"hostname": "some-hostname"}, + {}, + "dot-org-handler", + ["--hostname", "some-hostname"], + id="dot-org-hostname", + ), + ], +) +def test_select_auth_handler_and_args( + options: dict[str, str], + top_options: dict[str, str], + expected_handler: str, + expected_args: list[str], + *, + monkeypatch: MonkeyPatch, +) -> None: + # Build a list like ["--at", "anaconda.org"] from the dictionary + def make_options_list(options: dict[str, str]) -> list[str]: + return list[str]( + itertools.chain.from_iterable( + [f"--{option}", value] for option, value in options.items() + ) + ) + + options_list = make_options_list(options) + top_options_list = make_options_list(top_options) + # Patch the sys args + monkeypatch.setattr( + sys, "argv", ["/path/to/anaconda", *top_options_list, "login"] + options_list + ) + + # Construct a mapping of auth handlers, normally would be loaded via plugins + dummy_auth_handlers = { + "anaconda.com": "dot-com-handler", + "anaconda.org": "dot-org-handler", + } + + # Mock the context since we're not really calling the CLI + ctx_mock = MagicMock() + ctx_mock.args = [] + ctx_mock.obj.params = {} + if "site" in top_options: + ctx_mock.obj.params["site"] = top_options["site"] + if "token" in top_options: + ctx_mock.obj.params["token"] = top_options["token"] + + # Build the four possible options into a dictionary with defaults + option_defaults = { + "at": None, + "username": None, + "password": None, + "hostname": None, + } + + top_options_copy = top_options.copy() + _ = top_options_copy.pop("site", None) + _ = top_options_copy.pop("token", None) + + # Invoke the function + handler, args = _select_auth_handler_and_args( + ctx=ctx_mock, + **{**option_defaults, **options, **top_options_copy}, + help=False, + auth_handlers=dummy_auth_handlers, # type: ignore + auth_handlers_dropdown=[], + ) + + # Assert we select the right handler and parse into the correct arguments + assert handler == expected_handler + assert args == expected_args + + +def test_at_handler( + invoke_cli: CLIInvoker, + monkeypatch: MonkeyPatch, +) -> None: + monkeypatch.delenv("ANACONDA_DEFAULT_SITE", raising=False) + + result = invoke_cli(["--help"]) + assert "--at" in result.stdout + assert "Select the configured site to use by name or domain" in result.stdout + + result = invoke_cli(["--at", "site-name", "--version"]) + assert os.getenv("ANACONDA_DEFAULT_SITE") == "site-name" diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/test_config.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/test_config.py new file mode 100644 index 0000000000000000000000000000000000000000..1afa4a3ceec49d3de032098f3b3184287fde6a42 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/test_config.py @@ -0,0 +1,345 @@ +import os +from pathlib import Path +from textwrap import dedent +from typing import Optional, Tuple, cast, Dict + +import pytest +import typer +from pydantic import BaseModel +from pytest import MonkeyPatch +from pytest_mock import MockerFixture + +import anaconda_cli_base.cli +from anaconda_cli_base.config import AnacondaBaseSettings +from anaconda_cli_base.config import AnacondaConfigTomlSettingsSource +from anaconda_cli_base.exceptions import AnacondaConfigTomlSyntaxError +from anaconda_cli_base.exceptions import AnacondaConfigValidationError +from anaconda_cli_base.plugins import load_registered_subcommands + +from .conftest import CLIInvoker + +ENTRY_POINT_TUPLE = Tuple[str, str, typer.Typer] + + +class Nested(BaseModel): + field: str = "default" + + +class DerivedSettings(AnacondaBaseSettings, plugin_name="derived"): + foo: str = "default" + nested: Nested = Nested() + optional: Optional[int] = None + not_required: Optional[str] = None + docker_test: Optional[str] = "default" + + +def test_settings_plugin_name_str() -> None: + env_prefix = DerivedSettings.model_config.get("env_prefix", "") + assert env_prefix == "ANACONDA_DERIVED_" + + table_header = DerivedSettings.model_config.get( + "pyproject_toml_table_header", tuple() + ) + assert table_header == ( + "plugin", + "derived", + ) + + +def test_settings_plugin_name_tuple() -> None: + class TupleName(DerivedSettings, plugin_name=("nested", "settings")): ... + + env_prefix = TupleName.model_config.get("env_prefix", "") + assert env_prefix == "ANACONDA_NESTED_SETTINGS_" + + table_header = TupleName.model_config.get("pyproject_toml_table_header", tuple()) + assert table_header == ("plugin", "nested", "settings") + + +def test_settings_plugin_name_error() -> None: + with pytest.raises(ValueError): + + class FailList(DerivedSettings, plugin_name=["nested", "settings"]): ... + + with pytest.raises(ValueError): + + class FailType(DerivedSettings, plugin_name=["nested", 0]): ... + + +def test_settings_priority( + mocker: MockerFixture, monkeypatch: MonkeyPatch, tmp_path: Path +) -> None: + config_file = tmp_path / "config.toml" + monkeypatch.setenv("ANACONDA_CONFIG_TOML", str(config_file)) + + monkeypatch.setitem(DerivedSettings.model_config, "secrets_dir", tmp_path) + secret_file = tmp_path / "anaconda_derived_docker_test" + + dotenv = tmp_path / ".env" + mocker.patch.dict(DerivedSettings.model_config, {"env_file": dotenv}) + + config = DerivedSettings() + assert config.foo == "default" + assert config.nested.field == "default" + assert config.docker_test == "default" + + AnacondaConfigTomlSettingsSource._cache.clear() + config_file.write_text( + dedent("""\ + [plugin.derived] + foo = "toml" + docker_test = "toml" + [plugin.derived.nested] + field = "toml" + """) + ) + config = DerivedSettings() + assert config.foo == "toml" + assert config.nested.field == "toml" + assert config.docker_test == "toml" + + AnacondaConfigTomlSettingsSource._cache.clear() + config_file.write_text( + dedent("""\ + [plugin.derived] + foo = "toml" + docker_test = "toml" + nested = { field = "toml_inline" } + """) + ) + config = DerivedSettings() + assert config.foo == "toml" + assert config.nested.field == "toml_inline" + assert config.docker_test == "toml" + + AnacondaConfigTomlSettingsSource._cache.clear() + config_file.write_text( + dedent("""\ + [plugin.derived] + foo = "toml" + nested.field = "toml_dot" + docker_test = "toml" + """) + ) + config = DerivedSettings() + assert config.foo == "toml" + assert config.nested.field == "toml_dot" + assert config.docker_test == "toml" + + dotenv.write_text( + dedent("""\ + ANACONDA_DERIVED_FOO=dotenv + ANACONDA_DERIVED_NESTED__FIELD=dotenv + ANACONDA_DERIVED_DOCKER_TEST=dotenv + """) + ) + config = DerivedSettings() + assert config.foo == "dotenv" + assert config.nested.field == "dotenv" + assert config.docker_test == "dotenv" + + secret_file.write_text("secret") + config = DerivedSettings() + assert config.docker_test == "secret" + + monkeypatch.setenv("ANACONDA_DERIVED_FOO", "env") + monkeypatch.setenv("ANACONDA_DERIVED_NESTED__FIELD", "env") + monkeypatch.setenv("ANACONDA_DERIVED_DOCKER_TEST", "env") + config = DerivedSettings() + assert config.foo == "env" + assert config.nested.field == "env" + assert config.docker_test == "env" + + config = DerivedSettings( + foo="init", nested=Nested(field="init"), docker_test="init" + ) + assert config.foo == "init" + assert config.nested.field == "init" + assert config.docker_test == "init" + + +def test_subclass(monkeypatch: MonkeyPatch, tmp_path: Path) -> None: + config_file = tmp_path / "config.toml" + monkeypatch.setenv("ANACONDA_CONFIG_TOML", str(config_file)) + + class Subclass(DerivedSettings, plugin_name="subclass"): ... + + assert Subclass.model_config.get("env_prefix", "") == "ANACONDA_SUBCLASS_" + + config_file.write_text( + dedent("""\ + [plugin.subclass] + foo = "subclass-config" + """) + ) + + config = Subclass() + assert config.foo == "subclass-config" + + monkeypatch.setenv("ANACONDA_SUBCLASS_FOO", "subclass-env") + config = Subclass() + assert config.foo == "subclass-env" + + +def test_nested_plugins(monkeypatch: MonkeyPatch, tmp_path: Path) -> None: + config_file = tmp_path / "config.toml" + monkeypatch.setenv("ANACONDA_CONFIG_TOML", str(config_file)) + + class ExtrasConfig(AnacondaBaseSettings, plugin_name=("derived", "extras")): + value: str = "default" + + config_file.write_text( + dedent("""\ + [plugin.derived] + foo = "toml" + [plugin.derived.nested] + field = "toml" + [plugin.derived.extras] + value = "toml" + """) + ) + + config = ExtrasConfig() + assert config.value == "toml" + + monkeypatch.setenv("ANACONDA_DERIVED_EXTRAS_VALUE", "env") + config = ExtrasConfig() + assert config.value == "env" + + +def test_settings_toml_error(monkeypatch: MonkeyPatch, tmp_path: Path) -> None: + config_file = tmp_path / "config.toml" + monkeypatch.setenv("ANACONDA_CONFIG_TOML", str(config_file)) + + config_file.write_text( + dedent("""\ + [plugin.derived] + foo = ["a" + [plugin.derived.nested] + field = "toml" + """) + ) + + with pytest.raises(AnacondaConfigTomlSyntaxError) as excinfo: + _ = DerivedSettings() + + assert ( + f"{os.sep}config.toml: Unclosed array (at line 3, column 1)" + in excinfo.value.args[0] + ) + + +def test_settings_validation_error(monkeypatch: MonkeyPatch, tmp_path: Path) -> None: + config_file = tmp_path / "config.toml" + monkeypatch.setenv("ANACONDA_CONFIG_TOML", str(config_file)) + monkeypatch.setenv("ANACONDA_DERIVED_OPTIONAL", "not-an-integer") + + config_file.write_text( + dedent("""\ + [plugin.derived] + foo = 1 + [plugin.derived.nested] + field = [0, 1, 2] + """) + ) + + with pytest.raises(AnacondaConfigValidationError) as excinfo: + _ = DerivedSettings(not_required=3) # type: ignore + + message = excinfo.value.args[0] + assert f"{os.sep}config.toml in [plugin.derived] for foo = 1" in message + assert ( + f"{os.sep}config.toml in [plugin.derived] for nested.field = [0, 1, 2]" + in message + ) + assert ( + "Error in environment variable ANACONDA_DERIVED_OPTIONAL=not-an-integer" + in message + ) + assert "Error in init kwarg DerivedSettings(not_required=3)" in message + + +@pytest.fixture +def config_error_plugin(tmp_path: Path, monkeypatch: MonkeyPatch) -> ENTRY_POINT_TUPLE: + config_file = tmp_path / "config.toml" + monkeypatch.setenv("ANACONDA_CONFIG_TOML", str(config_file)) + + plugin = typer.Typer(name="error", add_completion=False, no_args_is_help=True) + + @plugin.command("syntax-error") + def syntax_error() -> None: + config_file.write_text( + dedent("""\ + [plugin.derived] + foo = ["a" + [plugin.derived.nested] + field = "toml" + """) + ) + _ = DerivedSettings() + + @plugin.command("validation-error") + def validation_error() -> None: + monkeypatch.setenv("ANACONDA_DERIVED_OPTIONAL", "not-an-integer") + + config_file.write_text( + dedent("""\ + [plugin.derived] + foo = 1 + [plugin.derived.nested] + field = [0, 1, 2] + """) + ) + _ = DerivedSettings(not_required=3) # type: ignore + + return ("config-error", "config-error-plugin:app", plugin) + + +def test_error_handled( + invoke_cli: CLIInvoker, + config_error_plugin: ENTRY_POINT_TUPLE, + mocker: MockerFixture, +) -> None: + plugins = [config_error_plugin] + mocker.patch( + "anaconda_cli_base.plugins._load_entry_points_for_group", return_value=plugins + ) + load_registered_subcommands(cast(typer.Typer, anaconda_cli_base.cli.app)) + + result = invoke_cli(["config-error", "syntax-error"]) + assert result.exit_code == 1 + assert f"{os.sep}config.toml: Unclosed array (at line 3, column 1)" in result.stdout + + result = invoke_cli(["config-error", "validation-error"]) + assert result.exit_code == 1 + assert f"{os.sep}config.toml in [plugin.derived] for foo = 1" in result.stdout + assert ( + f"{os.sep}config.toml in [plugin.derived] for nested.field = [0, 1, 2]" + in result.stdout + ) + assert ( + "Error in environment variable ANACONDA_DERIVED_OPTIONAL=not-an-integer" + in result.stdout + ) + assert "Error in init kwarg DerivedSettings(not_required=3)" in result.stdout + + +def test_root_level_table(monkeypatch: MonkeyPatch, tmp_path: Path) -> None: + config_file = tmp_path / "config.toml" + monkeypatch.setenv("ANACONDA_CONFIG_TOML", str(config_file)) + + class RootLevelTable(AnacondaBaseSettings, plugin_name=None): + foo: str = "bar" + table: Optional[Dict[str, str]] = None + + config_file.write_text( + dedent("""\ + foo = "baz" + [table] + key = "value" + """) + ) + + config = RootLevelTable() + assert config.table == {"key": "value"} + assert config.foo == "baz" diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/test_deprecations.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/test_deprecations.py new file mode 100644 index 0000000000000000000000000000000000000000..aaeb4daed8b3ab51d54b9e95ff90067ef4b6956c --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/info/test/tests/test_deprecations.py @@ -0,0 +1,206 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause + +# type: ignore + +from __future__ import annotations + +import sys +from argparse import ArgumentParser, _StoreTrueAction +from contextlib import nullcontext +from typing import TYPE_CHECKING, Any + +import pytest + +from anaconda_cli_base.deprecations import DeprecatedError, DeprecationHandler + +if TYPE_CHECKING: + from packaging.version import Version + + DevDeprecationType = DeprecatedError + UserDeprecationType = DeprecationWarning + +PENDING = pytest.param( + DeprecationHandler("1.0"), # deprecated + PendingDeprecationWarning, # warning + "pending deprecation", # message + id="pending", +) +FUTURE = pytest.param( + DeprecationHandler("2.0"), # deprecated + FutureWarning, # warning + "deprecated", # message + id="future", +) +DEPRECATED = pytest.param( + DeprecationHandler("2.0"), # deprecated + DeprecationWarning, # warning + "deprecated", # message + id="deprecated", +) +REMOVE = pytest.param( + DeprecationHandler("3.0"), # deprecated + None, # warning + None, # message + id="remove", +) + +parametrize_user = pytest.mark.parametrize( + "deprecated,warning,message", + [PENDING, FUTURE, REMOVE], +) +parametrize_dev = pytest.mark.parametrize( + "deprecated,warning,message", + [PENDING, DEPRECATED, REMOVE], +) + + +@parametrize_dev +def test_function( + deprecated: DeprecationHandler, + warning: DevDeprecationType | None, + message: str | None, +) -> None: + """Calling a deprecated function displays associated warning (or error).""" + with nullcontext() if warning else pytest.raises(DeprecatedError): + + @deprecated(deprecate_in="2.0", remove_in="3.0") + def foo() -> bool: + return True + + with pytest.warns(warning, match=message): # type: ignore + assert foo() + + +@parametrize_dev +def test_method( + deprecated: DeprecationHandler, + warning: DevDeprecationType | None, + message: str | None, +) -> None: + """Calling a deprecated method displays associated warning (or error).""" + with nullcontext() if warning else pytest.raises(DeprecatedError): + + class Bar: + @deprecated("2.0", "3.0") + def foo(self) -> bool: + return True + + with pytest.warns(warning, match=message): # type: ignore + assert Bar().foo() + + +@parametrize_dev +def test_class( + deprecated: DeprecationHandler, + warning: DevDeprecationType | None, + message: str | None, +) -> None: + """Calling a deprecated class displays associated warning (or error).""" + with nullcontext() if warning else pytest.raises(DeprecatedError): + + @deprecated("2.0", "3.0") + class Foo: + pass + + with pytest.warns(warning, match=message): # type: ignore + assert Foo() + + +@parametrize_dev +def test_arguments( + deprecated: DeprecationHandler, + warning: DevDeprecationType | None, + message: str | None, +) -> None: + """Calling a deprecated argument displays associated warning (or error).""" + with nullcontext() if warning else pytest.raises(DeprecatedError): + + @deprecated.argument("2.0", "3.0", "three") + def foo(one: Any, two: Any) -> bool: + return True + + # too many arguments, can only deprecate keyword arguments + with pytest.raises(TypeError): + assert foo(1, 2, 3) + + # alerting user to pending deprecation + with pytest.warns(warning, match=message): # type: ignore + assert foo(1, 2, three=3) + + # normal usage not needing deprecation + assert foo(1, 2) + + +@parametrize_user +def test_action( + deprecated: DeprecationHandler, + warning: UserDeprecationType | None, + message: str | None, +) -> None: + """Calling a deprecated argparse.Action displays associated warning (or error).""" + with nullcontext() if warning else pytest.raises(DeprecatedError): + parser = ArgumentParser() + parser.add_argument( + "--foo", + action=deprecated.action("2.0", "3.0", _StoreTrueAction), + ) + + with pytest.warns(warning, match=message): # type: ignore + parser.parse_args(["--foo"]) + + +@parametrize_dev +def test_module( + deprecated: DeprecationHandler, + warning: DevDeprecationType | None, + message: str | None, +) -> None: + """Importing a deprecated module displays associated warning (or error).""" + context = ( + pytest.warns(warning, match=message) + if warning + else pytest.raises(DeprecatedError) + ) + with context: + deprecated.module("2.0", "3.0") + + +@parametrize_dev +def test_constant( + deprecated: DeprecationHandler, + warning: DevDeprecationType | None, + message: str | None, +) -> None: + """Using a deprecated constant displays associated warning (or error).""" + with nullcontext() if warning else pytest.raises(DeprecatedError): + deprecated.constant("2.0", "3.0", "SOME_CONSTANT", 42) + module = sys.modules[__name__] + + with pytest.warns(warning, match=message): # type: ignore + module.SOME_CONSTANT + + +@parametrize_dev +def test_topic( + deprecated: DeprecationHandler, + warning: DevDeprecationType | None, + message: str | None, +) -> None: + """Reaching a deprecated topic displays associated warning (or error).""" + context = ( + pytest.warns(warning, match=message) + if warning + else pytest.raises(DeprecatedError) + ) + with context: + deprecated.topic("2.0", "3.0", topic="Some special topic") + + +def test_version_fallback() -> None: + """Test that anaconda_client can run even if deprecations can't parse the version.""" + deprecated = DeprecationHandler(None) # type: ignore[arg-type] + assert deprecated._version_less_than("0") + assert deprecated._version_tuple is None + version: Version = deprecated._version_object # type: ignore[assignment] + assert version.major == version.minor == version.micro == 0 diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/INSTALLER b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..f79e4cb9aaf0b2d9e8ba78861e2071317b2384b3 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/INSTALLER @@ -0,0 +1 @@ +conda \ No newline at end of file diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/METADATA b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..d67f1a709c8d1e7e3992945090205e96270cfb1e --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/METADATA @@ -0,0 +1,257 @@ +Metadata-Version: 2.4 +Name: anaconda-cli-base +Version: 0.7.0 +Summary: A base CLI entrypoint supporting Anaconda CLI plugins +License: BSD-3-Clause +License-File: LICENSE +Requires-Python: >=3.9 +Requires-Dist: click +Requires-Dist: packaging>=23.0 +Requires-Dist: pydantic-settings>=2.3 +Requires-Dist: readchar +Requires-Dist: rich +Requires-Dist: tomli +Requires-Dist: typer>=0.17 +Provides-Extra: dev +Requires-Dist: mypy; extra == 'dev' +Requires-Dist: pytest; extra == 'dev' +Requires-Dist: pytest-cov; extra == 'dev' +Requires-Dist: pytest-mock; extra == 'dev' +Requires-Dist: tox; extra == 'dev' +Requires-Dist: types-requests; extra == 'dev' +Provides-Extra: publish +Requires-Dist: build; extra == 'publish' +Requires-Dist: twine; extra == 'publish' +Requires-Dist: wheel; extra == 'publish' +Description-Content-Type: text/markdown + +# anaconda-cli-base + +A base CLI entrypoint supporting Anaconda CLI plugins using [Typer](https://github.com/fastapi/typer). + +## Registering plugins + +To develop a subcommand in a third-party package, first create a `typer.Typer()` app with one or more commands. +See [this example](https://typer.tiangolo.com/#example-upgrade). The commands defined in your package will be prefixed +with the *subcommand* you define when you register the plugin. + +In your `pyproject.toml` subcommands can be registered as follows: + +```toml +# In pyproject.toml + +[project.entry-points."anaconda_cli.subcommand"] +auth = "anaconda_cloud_auth.cli:app" +``` + +In the example above: + +* `"anaconda_cloud_cli.subcommand"` is the required string to use for registration. The quotes are important. +* `auth` is the name of the new subcommand, i.e. `anaconda auth` + * All `typer.Typer` commands you define in your package are accessible the registered subcommand + * i.e. `anaconda auth `. +* `anaconda_cloud_auth.cli:app` signifies the object named `app` in the `anaconda_cloud_auth.cli` module is the entry point for the subcommand. + +### Error handling + +By default any exception raised during CLI execution in your registered plugin will be caught and only a minimal +message will be displayed to the user. + +You can define a custom callback for individual exceptions that may be thrown from your subcommand. You can +register handlers for standard library exceptions or custom defined exceptions. It may be best to use custom +exceptions to avoid unintended consequences for other plugins. + +To register the callback decorate a function that takes an exception as input, and return an integer error code. +The error code will be sent back through the CLI and your subcommand will exit with that error code. + +```python +from typing import Type +from anaconda_cli_base.exceptions import register_error_handler + +@register_error_handler(MyCustomException) +def better_exception_handling(e: Type[Exception]) -> int: + # do something or print useful information + return 1 + +@register_error_handler(AnotherException) +def just_ignore_it(e: Type[Exception]) + # ignore the error and let the CLI exit successfully + return 0 + + +@register_error_handler(YetAnotherException) +def fix_the_error_and_try_again(e: Type[Exception]) -> int: + # do something and retry the CLI command + return -1 +``` + +In the second example the handler returns `-1`. This means that the handler has attempted to correct the error +and the CLI subcommand should be re-tried. The handler could call another interactive command, like a login action, +before attempting the CLI subcommand again. + +See the [anaconda-cloud-auth](https://github.com/anaconda/anaconda-cloud-tools/blob/main/libs/anaconda-cloud-auth/src/anaconda_cloud_auth/cli.py) plugin for an example custom handler. + +### Config file + +If your plugin wants to utilize the Anaconda config file, default location `~/.anaconda/config.toml`, to read configuration +parameters you can derive from `anaconda_cli_base.config.AnacondaBaseSettings` to add a section in the config file for +your plugin. + Each subclass of `AnacondaBaseSettings` +defines the section header. The base class is configured so that parameters defined in subclasses can be read in the +following priority from lowest to highest. + +1. default value in the subclass of `AnacondaBaseSettings` +1. Global config file at ~/.anaconda/config.toml +1. `ANACONDA__` variables defined in the .env file in your working directory +1. A file named `/run/secrets/anaconda__`, usually populated by a mounted + [Docker secret](https://docs.docker.com/engine/swarm/secrets/) +1. `ANACONDA__` env variables set in your shell or on command invocation +1. value passed as kwarg when using the config subclass directly + +Notes: + +* `AnacondaBaseSettings` is a subclass of `BaseSettings` from [pydantic-settings](https://docs.pydantic.dev/latest/concepts/pydantic_settings/#usage). +* Nested pydantic models are also supported. +* Per pydantic defaults, both secret filenames and environment variables + may be uppercase or lowercase. + +Here's an example subclass: + +```python +from anaconda_cli_base.config import AnacondaBaseSettings + +class MyPluginConfig(AnacondaBaseSettings, plugin_name="my_plugin"): + foo: str = "bar" +``` + +To read the config value in your plugin according to the above +priority: + +```python +config = MyPluginConfig() +assert config.foo == "bar" +``` + +Since there is no value of `foo` in the config file it assumes the default value from the subclass definition. + +The value of `foo` can now be written to the config file under the section `my_plugin` + +```toml +# ~/.anaconda/config.toml +[plugin.my_plugin] +foo = "baz" +``` + +Now that the config file has been written, the value of `foo` is read from the +config.toml file: + +```python +config = MyPluginConfig() +assert config.foo == "baz" +``` + +### Nested tables + +The AnacondaBaseSettings supports nested Pydantic models. + +```python +from anaconda_cli_base.config import AnacondaBaseSettings +from pydantic import BaseModel + +class Nested(BaseModel): + n1: int = 0 + n2: int = 0 + +class MyPluginConfig(AnacondaBaseSettings, plugin_name="my_plugin"): + foo: str = "bar" + nested: Nested = Nested() +``` + +In the `~/.anaconda/config.toml` you can set values of nested fields as an in-line table + +```toml +# ~/.anaconda/config.toml +[plugin.my_plugin] +foo = "baz" +nested = { n1 = 1, n2 = 2} +``` + +Or as a separate table entry + +```toml +# ~/.anaconda/config.toml +[plugin.my_plugin] +foo = "baz" + +[plugin.my_plugin.nested] +n1 = 1 +n2 = 2 +``` + +To set environment variables use the `__` delimiter + +```bash +ANACONDA_MY_PLUGIN_NESTED__N1=1 +ANACONDA_MY_PLUGIN_NESTED__N2=2 +``` + +### Nested plugins + +You can pass a tuple to `plugin_name=` in subclasses of `AnacondaBaseSettings` to nest whole plugins, +which may be defined in separate packages. + +```python +class Nested(BaseModel): + n1: int = 0 + n2: int = 0 +class MyPluginConfig(AnacondaBaseSettings, plugin_name="my_plugin"): + foo: str = "bar" + nested: Nested = Nested() +``` + +Then in another package you can nest a new config into `my_plugin`. + +```python +class MyPluginExtrasConfig(AnacondaBaseSettings, plugin_name=("my_plugin", "extras")): + field: str = "default" +``` + +The new config table is now nested in the config.toml + +```toml +# ~/.anaconda/config.toml +[plugin.my_plugin] +foo = "baz" +nested = { n1 = 1, n2 = 2} +[plugin.my_plugin.extras] +field = "value" +``` + +And can be set by env variable using the concatenation of `plugin_name` + +```bash +ANACONDA_MY_PLUGIN_EXTRAS_FIELD="value" +``` + +See the [tests](https://github.com/anaconda/anaconda-cli-base/blob/main/tests/test_config.py) for more examples. + +## Setup for development + +Ensure you have `conda` installed. +Then run: + +```shell +make setup +``` + +### Run the unit tests + +```shell +make test +``` + +### Run the unit tests across isolated environments with tox + +```shell +make tox +``` diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/RECORD b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..c2f1bef876d5a34443c2339ba8ad8d31c45e3ebc --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/RECORD @@ -0,0 +1,26 @@ +../../../bin/anaconda,sha256=JS5SERd_yuf57ZmaH-F911s6OpupfEchT2q_niFxY8g,474 +anaconda_cli_base-0.7.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +anaconda_cli_base-0.7.0.dist-info/METADATA,sha256=Cmi1OT9T8O-updb9wzYwCKTC4wGA1RQtSJRSgxnQVKs,7759 +anaconda_cli_base-0.7.0.dist-info/RECORD,, +anaconda_cli_base-0.7.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +anaconda_cli_base-0.7.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87 +anaconda_cli_base-0.7.0.dist-info/direct_url.json,sha256=gr9nxMpA0mgDJxepIs7S1LNoaFxdIfOBRUdF56Kj0is,107 +anaconda_cli_base-0.7.0.dist-info/entry_points.txt,sha256=TuxzkWTnzcO5_vfgsOy3k_r4c6f4nMq4RJFuW11-m6k,113 +anaconda_cli_base-0.7.0.dist-info/licenses/LICENSE,sha256=4ApYPUZxqM8veBt3cPhXvS9DOGoh5fXeQYj-bqIAIlg,1544 +anaconda_cli_base/__init__.py,sha256=O9pG13s_eQMk4zUbIorHF2ANRHbpLsyMV0p5eR9FTYk,253 +anaconda_cli_base/__pycache__/__init__.cpython-313.pyc,, +anaconda_cli_base/__pycache__/_version.cpython-313.pyc,, +anaconda_cli_base/__pycache__/cli.cpython-313.pyc,, +anaconda_cli_base/__pycache__/config.cpython-313.pyc,, +anaconda_cli_base/__pycache__/console.cpython-313.pyc,, +anaconda_cli_base/__pycache__/deprecations.cpython-313.pyc,, +anaconda_cli_base/__pycache__/exceptions.cpython-313.pyc,, +anaconda_cli_base/__pycache__/plugins.cpython-313.pyc,, +anaconda_cli_base/_version.py,sha256=uLbRjFSUZAgfl7V7O8zKV5Db36k7tz87ZIVq3l2SWs0,704 +anaconda_cli_base/cli.py,sha256=FKVMafrU-gBSvqQbOdaYs18SXM02_HVMmWReVCq-hfY,8585 +anaconda_cli_base/config.py,sha256=pVyfoeRRQIABkJ_YV2iUz7JEIJ1ky4y4GcBcGm_zzvc,5255 +anaconda_cli_base/console.py,sha256=NtT4FVxMmUN4wY3ReyBP7fhImL8bUvNOR2olvLE-GPQ,2763 +anaconda_cli_base/deprecations.py,sha256=0gjkFSZ36qax62u17jorUY-J7MTzEiDCCIWMV34xyRs,15347 +anaconda_cli_base/exceptions.py,sha256=-yFkRcUxtmXoJWmv10PotLN_Nw0gUDnZfCzXFJNCwaI,854 +anaconda_cli_base/plugins.py,sha256=WNzTbXol9Pox8N-SHi2kDu721UiTzvVJ4FbulyW-UTU,10717 +anaconda_cli_base/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/REQUESTED b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/REQUESTED new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/WHEEL b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..12228d414b6cfed7c39d3781c85c63256a1d7fb5 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/WHEEL @@ -0,0 +1,4 @@ +Wheel-Version: 1.0 +Generator: hatchling 1.27.0 +Root-Is-Purelib: true +Tag: py3-none-any diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/direct_url.json b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/direct_url.json new file mode 100644 index 0000000000000000000000000000000000000000..cdd7dfc0111c8f1f9671669eb30dc7de828d51a9 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/direct_url.json @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///home/task_176488869080098/conda-bld/anaconda-cli-base_1764888740587/work"} \ No newline at end of file diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/entry_points.txt b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/entry_points.txt new file mode 100644 index 0000000000000000000000000000000000000000..3a46e9f0f729227e25fbd3aa6971ab70c6185220 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/entry_points.txt @@ -0,0 +1,5 @@ +[console_scripts] +anaconda = anaconda_cli_base.cli:app + +[anaconda_cli.main] +anaconda = anaconda_cli_base.cli:app diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/licenses/LICENSE b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..addf2f4d2e999260aa5f5b731606116482b0fbbe --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base-0.7.0.dist-info/licenses/LICENSE @@ -0,0 +1,27 @@ +BSD 3-Clause License + +Copyright (c) 2023, Anaconda, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__init__.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..41c0e2ca520e3f3a8205b835a52a7f00c64e552d --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__init__.py @@ -0,0 +1,10 @@ +try: + from anaconda_cli_base._version import version as __version__ +except ImportError: # pragma: nocover + __version__ = "unknown" + +from anaconda_cli_base.console import init_logging, console + +__all__ = ["__version__", "console"] + +init_logging() diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/__init__.cpython-313.pyc b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/__init__.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f9767a5640e9f473016212380cc115ce4e76955a Binary files /dev/null and b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/__init__.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/_version.cpython-313.pyc b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/_version.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fbac55bd0b4cce5a4d4828fc2d159bf6b351c99a Binary files /dev/null and b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/_version.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/cli.cpython-313.pyc b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/cli.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d0a4b845cf0ea50196e54b965dc195fbdeddf99e Binary files /dev/null and b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/cli.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/config.cpython-313.pyc b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/config.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3e1ffa70630f7d802bc2430b977c263a4e338e84 Binary files /dev/null and b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/config.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/console.cpython-313.pyc b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/console.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2b7c4f3e36f63f478b0bdd3349c579b6d9876d13 Binary files /dev/null and b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/console.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/deprecations.cpython-313.pyc b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/deprecations.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0efa895edeb3fc3785f74c317c7ac117f3f04109 Binary files /dev/null and b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/deprecations.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/exceptions.cpython-313.pyc b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/exceptions.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ff8d88af5a23d7070558fd10e04657915690aaf5 Binary files /dev/null and b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/exceptions.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/plugins.cpython-313.pyc b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/plugins.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..14f6e70991cb4c70a7c6afb0f301f2b11b574928 Binary files /dev/null and b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/__pycache__/plugins.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/_version.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/_version.py new file mode 100644 index 0000000000000000000000000000000000000000..51f7598d07387247b175d250322229047cff803a --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/_version.py @@ -0,0 +1,34 @@ +# file generated by setuptools-scm +# don't change, don't track in version control + +__all__ = [ + "__version__", + "__version_tuple__", + "version", + "version_tuple", + "__commit_id__", + "commit_id", +] + +TYPE_CHECKING = False +if TYPE_CHECKING: + from typing import Tuple + from typing import Union + + VERSION_TUPLE = Tuple[Union[int, str], ...] + COMMIT_ID = Union[str, None] +else: + VERSION_TUPLE = object + COMMIT_ID = object + +version: str +__version__: str +__version_tuple__: VERSION_TUPLE +version_tuple: VERSION_TUPLE +commit_id: COMMIT_ID +__commit_id__: COMMIT_ID + +__version__ = version = '0.7.0' +__version_tuple__ = version_tuple = (0, 7, 0) + +__commit_id__ = commit_id = None diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/cli.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/cli.py new file mode 100644 index 0000000000000000000000000000000000000000..8284b84f0291a4163d1c7f85aed83379810ea088 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/cli.py @@ -0,0 +1,261 @@ +import functools +import os +import sys +from dataclasses import dataclass +from dataclasses import field +from typing import Any +from typing import Callable +from typing import Dict +from typing import Optional +from typing import Union +from typing import Sequence +from typing import List + +import typer +import click.core +import click.utils +from typer.core import TyperGroup + +from anaconda_cli_base import __version__ +from anaconda_cli_base import console +from anaconda_cli_base.plugins import load_registered_subcommands +from anaconda_cli_base.exceptions import ERROR_HANDLERS + + +class ErrorHandledGroup(TyperGroup): + def list_commands(self, _: click.core.Context) -> List[str]: + """Return list of commands in the order they appear on the CLI.""" + return sorted(self.commands, reverse=False) + + def main( # type: ignore + self, + args: Optional[Sequence[str]] = None, + prog_name: Optional[str] = None, + complete_var: Optional[str] = None, + standalone_mode: bool = True, + windows_expand_args: bool = True, + **extra: Any, + ) -> None: + try: + super().main( + args, + prog_name, + complete_var, + standalone_mode, + windows_expand_args, + **extra, + ) + except Exception as e: + ctx = self._get_context(args, prog_name, windows_expand_args, **extra) + if ctx.params.get("verbose", False): + raise e + + callback = ERROR_HANDLERS[type(e)] + exit_code = callback(e) + if exit_code == -1: + self.main( + args, + prog_name, + complete_var, + standalone_mode, + windows_expand_args, + **extra, + ) + else: + cmd = " ".join(ctx.args) + console.print( + f"\nTo see a more detailed error message run the command again as" + f"\n [green]anaconda --verbose {cmd}[/green]" + ) + sys.exit(exit_code) + + def _get_context( + self, + args: Optional[Sequence[str]] = None, + prog_name: Optional[str] = None, + windows_expand_args: bool = True, + **extra: Any, + ) -> click.core.Context: + # This function adapted from typer.TyperGroup._main + # We need the context to determine if --verbose was requested + # from the root command. + if not args: + args = sys.argv[1:] + + # Covered in Click tests + if os.name == "nt" and windows_expand_args: # pragma: no cover + args = click.utils._expand_args(args) + else: + args = list(args) + + if prog_name is None: + prog_name = click.utils._detect_program_name() + + ctx = self.make_context(prog_name, args, **extra) + return ctx + + +app = typer.Typer( + cls=ErrorHandledGroup, + add_completion=False, + help="Welcome to the Anaconda CLI!", + pretty_exceptions_enable=True, +) + + +@dataclass() +class ContextExtras: + """Encapsulates extra information we want to add to the `typer.Context`. + + Used to pass down args from parent CLI to nested subcommands. + + """ + + params: Dict[str, Any] = field(default_factory=dict) + + +@app.callback(invoke_without_command=True, no_args_is_help=True) +def main( + ctx: typer.Context, + at: Optional[str] = typer.Option( + default=None, + hidden=False, + help="Select the configured site to use by name or domain name", + ), + token: Optional[str] = typer.Option( + None, + "-t", + "--token", + help="Authentication token to use. A token string or path to a file containing a token", + hidden=True, + ), + site: Optional[str] = typer.Option( + None, + "-s", + "--site", + help="select the anaconda-client site to use", + hidden=True, + ), + disable_ssl_warnings: Optional[bool] = typer.Option( + False, + help="Disable SSL warnings", + hidden=True, + ), + show_traceback: Optional[bool] = typer.Option( + False, + help="Show the full traceback for chalmers user errors", + hidden=True, + ), + verbose: Optional[bool] = typer.Option( + False, + "-v", + "--verbose", + help="Print debug information to the console.", + hidden=False, + ), + quiet: Optional[bool] = typer.Option( + False, + "-q", + "--quiet", + help="Only show warnings or errors on the console", + hidden=True, + ), + version: Optional[bool] = typer.Option( + None, "-V", "--version", help="Show version and exit." + ), + show_help: Optional[bool] = typer.Option( + False, + "-h", + "--help", + help="Show this message and exit.", + ), +) -> None: + """Anaconda CLI.""" + ctx.obj = ContextExtras() + + # Store all the top-level params on the obj attribute + ctx.obj.params.update(ctx.params.copy()) + + if at is not None and at != "anaconda.org": + os.environ["ANACONDA_DEFAULT_SITE"] = at + + if show_help: + console.print(ctx.get_help()) + raise typer.Exit() + + if version: + console.print( + f"Anaconda CLI, version [cyan]{__version__}[/cyan]", + style="bold green", + ) + raise typer.Exit() + + +# There is a duplicate main callback in anaconda-client, which is invoked when the +# plugin is registered. This is a leftover from our migration efforts, and will be +# removed in the next release (>1.14.0) release. However, until then, we instead just +# disable that callback from being registered by implementing a dummy null decorator +# that does nothing. So instead of that callback being registered, the invocation does +# nothing. This works because the plugin registration always occurs after our "real" +# main callback is registered above. +def _null_decorator(*args: Any, **kwargs: Any): # type: ignore + def wrapped(*args, **kwargs): # type: ignore + return None + + return wrapped + + +app.callback = _null_decorator # type: ignore + +disable_plugins = bool(os.getenv("ANACONDA_CLI_DISABLE_PLUGINS")) +if not disable_plugins: + load_registered_subcommands(app) + + +def _select_main_entrypoint_app(app_: typer.Typer) -> Union[typer.Typer, Callable]: + """Select the main application to handle the `anaconda` entrypoint at the command line. + + This function, and its execution below at the bottom of this module, can be removed once + we are fully confident that the `binstar_client.scripts.cli` CLI application (defined + inside `anaconda-client`) can be replaced with the modern `click`/`typer`-based application. + + If there are no additional plugins registered besides `anaconda-client`, then we fall back + to the legacy CLI. If any additional plugins are installed, we use the new CLI. + + One can force usage of the legacy CLI by setting the environment variable + `ANACONDA_CLIENT_FORCE_STANDALONE` to any value (e.g. `1`). + + Users are encouraged to only use the fallback in cases where the new CLI breaks existing usage. + Please register a bug in that case. + + """ + subcommands = [g.name for g in app_.registered_groups] + + anaconda_client_is_only_plugin = subcommands == ["org"] + force_new_cli_entrypoint = bool(os.getenv("ANACONDA_CLI_FORCE_NEW")) + force_legacy_cli_entrypoint = bool(os.getenv("ANACONDA_CLIENT_FORCE_STANDALONE")) + if force_legacy_cli_entrypoint and force_new_cli_entrypoint: + raise ValueError( + "Cannot set both ANACONDA_CLI_FORCE_NEW and ANACONDA_CLIENT_FORCE_STANDALONE at the same time" + ) + + use_legacy_cli_entrypoint = force_legacy_cli_entrypoint or ( + anaconda_client_is_only_plugin and not force_new_cli_entrypoint + ) + if use_legacy_cli_entrypoint: + # TODO: We may want to do the conditional import first, and load the subcommand name from anaconda-client + try: + from binstar_client.scripts.cli import main + except ImportError: + pass + else: + return functools.partial(main, allow_plugin_main=False) + + return app_ + + +# Here, we re-assign the global `app` variable based on the selection logic. +# This should be removed once we are confident that we can completely replace the +# `binstar_client` CLI (that inside `anaconda-client`) with the modern +# `click`/`typer`-based application. +app = _select_main_entrypoint_app(app) # type: ignore diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/config.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/config.py new file mode 100644 index 0000000000000000000000000000000000000000..ec7932657f32f5a638bb7ef6378f549cd8a86d89 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/config.py @@ -0,0 +1,148 @@ +import os +import sys + +from functools import cached_property +from pathlib import Path +from typing import Any +from typing import ClassVar +from typing import Dict +from typing import Optional +from typing import Tuple +from typing import Type +from typing import Union + +from pydantic import ValidationError +from pydantic_settings import BaseSettings +from pydantic_settings import PydanticBaseSettingsSource +from pydantic_settings import PyprojectTomlConfigSettingsSource +from pydantic_settings import SettingsConfigDict + +from .exceptions import AnacondaConfigTomlSyntaxError, AnacondaConfigValidationError + +if sys.version_info >= (3, 11): + import tomllib +else: + import tomli as tomllib + + +def anaconda_secrets_dir() -> Optional[Path]: + path = Path( + os.path.expandvars( + os.path.expanduser(os.getenv("ANACONDA_SECRETS_DIR", "/run/secrets")) + ) + ) + return path if path.is_dir() else None + + +def anaconda_config_path() -> Path: + return Path( + os.path.expandvars( + os.path.expanduser( + os.getenv("ANACONDA_CONFIG_TOML", "~/.anaconda/config.toml") + ) + ) + ) + + +class AnacondaConfigTomlSettingsSource(PyprojectTomlConfigSettingsSource): + _cache: ClassVar[Dict[Path, Dict[str, Any]]] = {} + + def _read_file(self, file_path: Path) -> Dict[str, Any]: + try: + result = self._cache.get(file_path) + if result is None: + result = super()._read_file(file_path) + self._cache[file_path] = result + return result + except tomllib.TOMLDecodeError as e: + arg = f"{anaconda_config_path()}: {e.args[0]}" + raise AnacondaConfigTomlSyntaxError(arg) + + +class AnacondaBaseSettings(BaseSettings): + def __init_subclass__( + cls, plugin_name: Optional[Union[str, tuple]] = None, **kwargs: Any + ) -> None: + base_env_prefix: str = "ANACONDA_" + pyproject_toml_table_header: Tuple[str, ...] + + if plugin_name is None: + pyproject_toml_table_header = () + env_prefix = base_env_prefix + elif isinstance(plugin_name, tuple): + if not all(isinstance(entry, str) for entry in plugin_name): + raise ValueError( + f"plugin_name={plugin_name} error: All values must be strings." + ) + pyproject_toml_table_header = ("plugin", *plugin_name) + env_prefix = base_env_prefix + "_".join(plugin_name).upper() + "_" + elif isinstance(plugin_name, str): + pyproject_toml_table_header = ("plugin", plugin_name) + env_prefix = base_env_prefix + f"{plugin_name.upper()}_" + else: + raise ValueError( + f"plugin_name={plugin_name} is not supported. It must be either a str or tuple." + ) + + cls.model_config = SettingsConfigDict( + env_file=".env", + pyproject_toml_table_header=pyproject_toml_table_header, + env_prefix=env_prefix, + env_nested_delimiter="__", + extra="ignore", + ignored_types=(cached_property,), + secrets_dir=anaconda_secrets_dir(), + ) + + return super().__init_subclass__(**kwargs) + + def __init__(self, **kwargs: Any) -> None: + try: + super().__init__(**kwargs) + except ValidationError as e: + errors = [] + for error in e.errors(): + input_value = error["input"] + msg = error["msg"] + + env_prefix = self.model_config.get("env_prefix", "") + delimiter = self.model_config.get("env_nested_delimiter", "") or "" + env_var = env_prefix + delimiter.join( + str(loc).upper() for loc in error["loc"] + ) + + kwarg = error["loc"][0] + if kwarg in kwargs: + value = kwargs[str(kwarg)] + msg = f"- Error in init kwarg {e.title}({error['loc'][0]}={value})\n {msg}" + elif env_var in os.environ: + msg = f"- Error in environment variable {env_var}={input_value}\n {msg}" + else: + table_header = ".".join( + self.model_config.get("pyproject_toml_table_header", []) + ) + key = ".".join(str(loc) for loc in error["loc"]) + msg = f"- Error in {anaconda_config_path()} in [{table_header}] for {key} = {input_value}\n {msg}" + + errors.append(msg) + + message = "\n" + "\n".join(errors) + + raise AnacondaConfigValidationError(message) + + @classmethod + def settings_customise_sources( + cls, + settings_cls: Type[BaseSettings], + init_settings: PydanticBaseSettingsSource, + env_settings: PydanticBaseSettingsSource, + dotenv_settings: PydanticBaseSettingsSource, + file_secret_settings: PydanticBaseSettingsSource, + ) -> Tuple[PydanticBaseSettingsSource, ...]: + return ( + init_settings, + env_settings, + file_secret_settings, + dotenv_settings, + AnacondaConfigTomlSettingsSource(settings_cls, anaconda_config_path()), + ) diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/console.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/console.py new file mode 100644 index 0000000000000000000000000000000000000000..8e2c07ddf898ae1c9f1195a8504b2fe401464d42 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/console.py @@ -0,0 +1,87 @@ +import logging +import os +from typing import List, Sequence, Tuple, Union + +from readchar import key, readkey +from rich.console import Console +from rich.live import Live +from rich.logging import RichHandler +from rich.style import Style +from rich.table import Table + +__all__ = ["console", "select_from_list"] + +SELECTED = Style(color="green", bold=True) + +console = Console(soft_wrap=True) + + +def init_logging() -> None: + # TODO: We only enable logging in debug level for now + # This is because anaconda-client uses logging for normal + # program output and this really warrants a much larger + # redesign. In anaconda-cli-base, we currently only use + # the logger for debug printing, so we can just do that + # here. + log_level = os.getenv("LOGLEVEL", "INFO").upper() + if log_level == "DEBUG": + logging.basicConfig( + level=log_level, + format="%(message)s", + datefmt="[%X]", + handlers=[RichHandler()], + ) + + +def _generate_table(header: str, rows: List[str], selected: int) -> Table: + table = Table(box=None) + + table.add_column(header) + + for i, row in enumerate(rows): + if i == selected: + style = SELECTED + value = f"* {row}" + else: + style = None + value = f" {row}" + table.add_row(value, style=style) + + return table + + +def select_from_list( + prompt: str, choices: Sequence[Union[str, Tuple[str, str]]] +) -> str: + """Dynamically select from a list of choices, by using the up/down keys.""" + # inspired by https://github.com/Textualize/rich/discussions/1785#discussioncomment-1883808 + + # Construct two lists, one of values, one for display + # Display names are shown to the user, but values is indexed to return the value. + display_names: List[str] = [] + values: List[str] = [] + for choice in choices: + if isinstance(choice, tuple): + value, display_name = choice + else: + value = choice + display_name = choice + + display_names.append(display_name) + values.append(value) + + selected = 0 + with Live( + _generate_table(prompt, display_names, selected), auto_refresh=False + ) as live: + while keypress := readkey(): + if keypress == key.UP or keypress == "k": + selected = max(0, selected - 1) + if keypress == key.DOWN or keypress == "j": + selected = min(len(display_names) - 1, selected + 1) + if keypress in ["\n", "\r", key.ENTER]: + live.stop() + return values[selected] + live.update(_generate_table(prompt, display_names, selected), refresh=True) + + raise ValueError("Unreachable") diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/deprecations.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/deprecations.py new file mode 100644 index 0000000000000000000000000000000000000000..ff1cd3a1b232be699ba5abdeb868811318abce9c --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/deprecations.py @@ -0,0 +1,441 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +""" +Reusable helpers for deprecating functionality. + +Note: most of this file has been copied from conda's implementation. Usage +documentation can be found here: https://docs.conda.io/projects/conda/en/latest/dev-guide/deprecations.html + +""" + +from __future__ import annotations + +import sys +import warnings +from argparse import Action +from functools import wraps +from types import ModuleType +from typing import TYPE_CHECKING + +from anaconda_cli_base import __version__ + +if TYPE_CHECKING: + from argparse import ArgumentParser, Namespace + from typing import Any, Callable, TypeVar + from typing_extensions import ParamSpec, Self + + from packaging.version import Version + + T = TypeVar("T") + P = ParamSpec("P") + + ActionType = TypeVar("ActionType", bound=type[Action]) + + +class DeprecatedError(RuntimeError): + pass + + +# inspired by deprecation (https://deprecation.readthedocs.io/en/latest/) and +# CPython's warnings._deprecated +class DeprecationHandler: + _version: str | None + _version_tuple: tuple[int, ...] | None + _version_object: Version | None + + def __init__(self: Self, version: str) -> None: + """Factory to create a deprecation handle for the specified version. + + Args: + version: The version to compare against when checking deprecation statuses. + + """ + self._version = version + # Try to parse the version string as a simple tuple[int, ...] to avoid + # packaging.version import and costlier version comparisons. + self._version_tuple = self._get_version_tuple(version) + self._version_object = None + + @staticmethod + def _get_version_tuple(version: str) -> tuple[int, ...] | None: + """Return version as non-empty tuple of ints if possible, else None. + + Args: + version: Version string to parse. + + """ + try: + return tuple(int(part) for part in version.strip().split(".")) or None + except (AttributeError, ValueError): + return None + + def _version_less_than(self: Self, version: str) -> bool: + """Test whether own version is less than the given version. + + Args: + version: Version string to compare against. + + """ + if self._version_tuple and (version_tuple := self._get_version_tuple(version)): + return self._version_tuple < version_tuple + + # If self._version or version could not be represented by a simple + # tuple[int, ...], do a more elaborate version parsing and comparison. + # Avoid this import otherwise to reduce import time. + from packaging.version import parse + + if self._version_object is None: + try: + self._version_object = parse(self._version) # type: ignore[arg-type] + except TypeError: + # TypeError: self._version could not be parsed + self._version_object = parse("0.0.0.dev0+placeholder") + return self._version_object < parse(version) + + def __call__( + self: Self, + deprecate_in: str, + remove_in: str, + *, + addendum: str | None = None, + stack: int = 0, + ) -> Callable[[Callable[P, T]], Callable[P, T]]: + """Deprecation decorator for functions, methods, & classes. + + Args: + deprecate_in: Version in which code will be marked as deprecated. + remove_in: Version in which code is expected to be removed. + addendum: Optional additional messaging. Useful to indicate what to do instead. + stack: Optional stacklevel increment. + + """ + + def deprecated_decorator(func: Callable[P, T]) -> Callable[P, T]: + # detect function name and generate message + category, message = self._generate_message( + deprecate_in=deprecate_in, + remove_in=remove_in, + prefix=f"{func.__module__}.{func.__qualname__}", + addendum=addendum, + ) + + # alert developer that it's time to remove something + if not category: + raise DeprecatedError(message) + + # alert user that it's time to remove something + @wraps(func) + def inner(*args: P.args, **kwargs: P.kwargs) -> T: + warnings.warn(message, category, stacklevel=2 + stack) + + return func(*args, **kwargs) + + return inner + + return deprecated_decorator + + def argument( + self: Self, + deprecate_in: str, + remove_in: str, + argument: str, + *, + rename: str | None = None, + addendum: str | None = None, + stack: int = 0, + ) -> Callable[[Callable[P, T]], Callable[P, T]]: + """Deprecation decorator for keyword arguments. + + Args: + deprecate_in: Version in which code will be marked as deprecated. + remove_in: Version in which code is expected to be removed. + argument: The argument to deprecate. + rename: Optional new argument name. + addendum: Optional additional messaging. Useful to indicate what to do instead. + stack: Optional stacklevel increment. + + """ + + def deprecated_decorator(func: Callable[P, T]) -> Callable[P, T]: + # detect function name and generate message + category, message = self._generate_message( + deprecate_in=deprecate_in, + remove_in=remove_in, + prefix=f"{func.__module__}.{func.__qualname__}({argument})", + # provide a default addendum if renaming and no addendum is provided + addendum=( + f"Use '{rename}' instead." if rename and not addendum else addendum + ), + ) + + # alert developer that it's time to remove something + if not category: + raise DeprecatedError(message) + + # alert user that it's time to remove something + @wraps(func) + def inner(*args: P.args, **kwargs: P.kwargs) -> T: + # only warn about argument deprecations if the argument is used + if argument in kwargs: + warnings.warn(message, category, stacklevel=2 + stack) + + # rename argument deprecations as needed + value = kwargs.pop(argument, None) + if rename: + kwargs.setdefault(rename, value) + + return func(*args, **kwargs) + + return inner + + return deprecated_decorator + + def action( + self: Self, + deprecate_in: str, + remove_in: str, + action: ActionType, + *, + addendum: str | None = None, + stack: int = 0, + ) -> ActionType: + """Wraps any argparse.Action to issue a deprecation warning.""" + + class DeprecationMixin(Action): + category: type[Warning] + help: str # override argparse.Action's help type annotation + + def __init__(inner_self: Self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + category, message = self._generate_message( + deprecate_in=deprecate_in, + remove_in=remove_in, + prefix=( + # option_string are ordered shortest to longest, + # use the longest as it's the most descriptive + f"`{inner_self.option_strings[-1]}`" + if inner_self.option_strings + # if not a flag/switch, use the destination itself + else f"`{inner_self.dest}`" + ), + addendum=addendum, + deprecation_type=FutureWarning, + ) + + # alert developer that it's time to remove something + if not category: + raise DeprecatedError(message) + + inner_self.category = category + inner_self.help = message + + def __call__( + inner_self: Self, + parser: ArgumentParser, + namespace: Namespace, + values: Any, + option_string: str | None = None, + ) -> None: + # alert user that it's time to remove something + warnings.warn( + inner_self.help, + inner_self.category, + stacklevel=7 + stack, + ) + + super().__call__(parser, namespace, values, option_string) + + return type(action.__name__, (DeprecationMixin, action), {}) # type: ignore[return-value] + + def module( + self: Self, + deprecate_in: str, + remove_in: str, + *, + addendum: str | None = None, + stack: int = 0, + ) -> None: + """Deprecation function for modules. + + Args: + deprecate_in: Version in which code will be marked as deprecated. + remove_in: Version in which code is expected to be removed. + addendum: Optional additional messaging. Useful to indicate what to do instead. + stack: Optional stacklevel increment. + + """ + self.topic( + deprecate_in=deprecate_in, + remove_in=remove_in, + topic=self._get_module(stack)[1], + addendum=addendum, + stack=2 + stack, + ) + + def constant( + self: Self, + deprecate_in: str, + remove_in: str, + constant: str, + value: Any, + *, + addendum: str | None = None, + stack: int = 0, + ) -> None: + """Deprecation function for module constant/global. + + Args: + deprecate_in: Version in which code will be marked as deprecated. + remove_in: Version in which code is expected to be removed. + constant: + value: + addendum: Optional additional messaging. Useful to indicate what to do instead. + stack: Optional stacklevel increment. + + """ + # detect calling module + module, fullname = self._get_module(stack) + # detect function name and generate message + category, message = self._generate_message( + deprecate_in=deprecate_in, + remove_in=remove_in, + prefix=f"{fullname}.{constant}", + addendum=addendum, + ) + + # alert developer that it's time to remove something + if not category: + raise DeprecatedError(message) + + # patch module level __getattr__ to alert user that it's time to remove something + super_getattr = getattr(module, "__getattr__", None) + + def __getattr__(name: str) -> Any: + if name == constant: + warnings.warn(message, category, stacklevel=2 + stack) + return value + + if super_getattr: + return super_getattr(name) + + raise AttributeError(f"module '{fullname}' has no attribute '{name}'") + + module.__getattr__ = __getattr__ # type: ignore[method-assign] + + def topic( + self: Self, + deprecate_in: str, + remove_in: str, + *, + topic: str, + addendum: str | None = None, + stack: int = 0, + ) -> None: + """Deprecation function for a topic. + + Args: + deprecate_in: Version in which code will be marked as deprecated. + remove_in: Version in which code is expected to be removed. + topic: The topic being deprecated. + addendum: Optional additional messaging. Useful to indicate what to do instead. + stack: Optional stacklevel increment. + + """ + # detect function name and generate message + category, message = self._generate_message( + deprecate_in=deprecate_in, + remove_in=remove_in, + prefix=topic, + addendum=addendum, + ) + + # alert developer that it's time to remove something + if not category: + raise DeprecatedError(message) + + # alert user that it's time to remove something + warnings.warn(message, category, stacklevel=2 + stack) + + def _get_module(self: Self, stack: int) -> tuple[ModuleType, str]: + """Detect the module from which we are being called. + + Args: + stack: The stacklevel increment. + + Returns: + The module and module name. + + """ + try: + frame = sys._getframe(2 + stack) + except IndexError: + # IndexError: 2 + stack is out of range + pass + else: + # Shortcut finding the module by manually inspecting loaded modules. + try: + filename = frame.f_code.co_filename + except AttributeError: + # AttributeError: frame.f_code.co_filename is undefined + pass + else: + for loaded in sys.modules.values(): + if not isinstance(loaded, ModuleType): + # sys.modules typed as Iterable of ModuleType + continue # type: ignore + if not hasattr(loaded, "__file__"): + continue + if loaded.__file__ == filename: + return (loaded, loaded.__name__) + + # If above failed, do an expensive import and costly getmodule call. + import inspect + + module = inspect.getmodule(frame) + if module is not None: + return (module, module.__name__) + + raise DeprecatedError("unable to determine the calling module") + + def _generate_message( + self: Self, + deprecate_in: str, + remove_in: str, + prefix: str, + addendum: str | None, + *, + deprecation_type: type[Warning] = DeprecationWarning, + ) -> tuple[type[Warning] | None, str]: + """Generate the standardized deprecation message and determine whether the + deprecation is pending, active, or past. + + Args: + deprecate_in: Version in which code will be marked as deprecated. + remove_in: Version in which code is expected to be removed. + prefix: The message prefix, usually the function name. + addendum: Additional messaging. Useful to indicate what to do instead. + deprecation_type: The warning type to use for active deprecations. + + Returns: + The warning category (if applicable) and the message. + + """ + category: type[Warning] | None + if self._version_less_than(deprecate_in): + category = PendingDeprecationWarning + warning = f"is pending deprecation and will be removed in {remove_in}." + elif self._version_less_than(remove_in): + category = deprecation_type + warning = f"is deprecated and will be removed in {remove_in}." + else: + category = None + warning = f"was slated for removal in {remove_in}." + + return ( + category, + " ".join(filter(None, [prefix, warning, addendum])), # message + ) + + +deprecated: DeprecationHandler = DeprecationHandler(__version__) diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/exceptions.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/exceptions.py new file mode 100644 index 0000000000000000000000000000000000000000..2d0c4ace837fb07ac13863976365bb08e2712f1c --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/exceptions.py @@ -0,0 +1,37 @@ +import sys +from collections import defaultdict +from typing import Callable, Dict, Type + +from anaconda_cli_base.console import console + +if sys.version_info >= (3, 11): + import tomllib +else: + import tomli as tomllib + +ErrorHandlingCallback = Callable[[Exception], int] + + +class AnacondaConfigTomlSyntaxError(tomllib.TOMLDecodeError): ... + + +class AnacondaConfigValidationError(ValueError): ... + + +def catch_all(e: Exception) -> int: + console.print(f"[bold][red]{e.__class__.__name__}:[/bold][/red] ", end="") + console.print(e, markup=False) + return 1 + + +ERROR_HANDLERS: Dict[Type[Exception], ErrorHandlingCallback] = defaultdict( + lambda: catch_all +) + + +def register_error_handler(exc: Type[Exception]) -> Callable: + def decorator(f: ErrorHandlingCallback) -> Callable: + ERROR_HANDLERS[exc] = f + return f + + return decorator diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/plugins.py b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/plugins.py new file mode 100644 index 0000000000000000000000000000000000000000..dee9ac7d86ad4a050bb7fa66e809c5a09b0d91a9 --- /dev/null +++ b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/plugins.py @@ -0,0 +1,310 @@ +import logging +import os +import sys +import warnings +from importlib.metadata import EntryPoint +from importlib.metadata import entry_points +from sys import version_info +from typing import Any +from typing import Callable +from typing import Dict +from typing import List +from typing import Optional +from typing import Tuple +from typing import cast + +import typer +from typer.models import DefaultPlaceholder + +from anaconda_cli_base.console import console, select_from_list + +log = logging.getLogger(__name__) + +PLUGIN_GROUP_NAME = "anaconda_cli.subcommand" + +# Plugins which are available but hidden from help text +HIDDEN_PLUGINS = ["cloud"] + +# Type aliases +PluginName = str +ModuleName = str +SiteName = str +SiteDisplayName = str + + +def _load_entry_points_for_group( + group: str, +) -> List[Tuple[PluginName, ModuleName, typer.Typer]]: + # The API was changed in Python 3.10, see https://docs.python.org/3/library/importlib.metadata.html#entry-points + found_entry_points: Tuple + if version_info.major == 3 and version_info.minor <= 9: + found_entry_points = cast( + Tuple[EntryPoint, ...], + entry_points().get(group, tuple()), # type:ignore + ) + else: + found_entry_points = tuple(entry_points().select(group=group)) # type: ignore + + loaded = [] + for entry_point in found_entry_points: + with warnings.catch_warnings(): + # Suppress anaconda-cloud-auth rename warnings just during entrypoint load + warnings.filterwarnings("ignore", category=DeprecationWarning) + module: typer.Typer = entry_point.load() + loaded.append((entry_point.name, entry_point.value, module)) + + return loaded + + +AUTH_HANDLER_ALIASES = { + "cloud": "anaconda.com", + "org": "anaconda.org", +} + + +def _select_auth_handler_and_args( + *, + ctx: typer.Context, + at: Optional[str], + hostname: Optional[str], + username: Optional[str], + password: Optional[str], + help: bool, + auth_handlers: Dict[str, typer.Typer], + auth_handlers_dropdown: List[Tuple[SiteName, SiteDisplayName]], +) -> Tuple[Callable, list[str]]: + """Select the appropriate auth handler, and construct its arguments, depending on + user input. Isolated to enable better testing to support legacy anaconda.org login + flows. + """ + # If we use one of the legacy anaconda-client parameters, we implicitly select + # anaconda.org for the user. + if ( + hostname + or username + or password + or ctx.obj.params.get("site", None) + or ctx.obj.params.get("token", None) + ): + at = "anaconda.org" + + # Present a picker if the user doesn't use the --at site option + if at is None: + if len(auth_handlers_dropdown) > 1: + at = select_from_list("choose destination:", auth_handlers_dropdown) + else: + # If only one is available, we don't need a picker + (default_auth_handler,) = auth_handlers_dropdown + (at, _) = default_auth_handler + + if at not in auth_handlers: + handlers = "".join( + [f"\n* {display_name}" for _, display_name in auth_handlers_dropdown] + ) + msg = f"{at} is not an allowed value for --at. Use one of {handlers}" + console.print(msg) + raise typer.Abort() + + handler = auth_handlers[at] + + # Consolidate the arguments to pass into the handler function + if help: + args = ["--help"] + elif at == "anaconda.org": + # In order to support legacy anaconda-client login arguments, we need to do some + # manual argument parsing to pass into the handler function + + # Reconstruct the valid options + legacy_client_args = [] + if hostname: + legacy_client_args.extend(["--hostname", hostname]) + if username: + legacy_client_args.extend(["--username", username]) + if password: + legacy_client_args.extend(["--password", password]) + + # We reconstruct sys.argv, dropping everything after the + # "login/logout/whoami" subcommand, and replacing with any passed options + def _find_subcommand_index(subcommands: list[str]) -> int: + subcommands_str = "/".join(subcommands) + for s in subcommands: + try: + return sys.argv.index(s) + except ValueError: + pass + + raise ValueError(f"Must use a valid subcommand '{subcommands_str}'") + + # Extend sys.argv so we grab everything including the entrypoint and + # the subcommand, but drop any options + subcommand_index = _find_subcommand_index(["login", "logout", "whoami"]) + sys.argv = sys.argv[: subcommand_index + 1] + legacy_client_args + + # Now remove the '--at ' if it still appears in the sys.argv + # While still preserving any top-level args like '--verbose' or '--token <>' + try: + at_index = sys.argv.index("--at") + sys.argv = sys.argv[:at_index] + sys.argv[at_index + 2 :] + except ValueError: + pass + + args = legacy_client_args + else: + args = ctx.args + + # Set globally to propagate to site config + os.environ["ANACONDA_DEFAULT_SITE"] = at + return handler, args + + +def _add_auth_actions_to_app( + app: typer.Typer, + auth_handlers: Dict[str, typer.Typer], + auth_handlers_dropdown: List[Tuple[SiteName, SiteDisplayName]], +) -> None: + # this ensures that we can reach the help message + # for the handler chosen by the --at flag if it appears + # before --help + def handler_help(ctx: typer.Context, _: Any, at: Optional[str]) -> Optional[str]: + show_help = ctx.params.get("help", False) is True + if show_help: + help_str = ctx.get_help() + console.print(help_str) + raise typer.Exit() + + return at + + # Extract site names for help text + site_names = [site_name for site_name, _ in auth_handlers_dropdown] + + def _action( + ctx: typer.Context, + at: Optional[str] = typer.Option( + None, help=f"Choose from {site_names}", callback=handler_help + ), + # Legacy options from anaconda-client login subcommand + hostname: Optional[str] = typer.Option(None, hidden=True), + username: Optional[str] = typer.Option(None, hidden=True), + password: Optional[str] = typer.Option(None, hidden=True), + help: bool = typer.Option(False, "--help", "-h"), + ) -> None: + ctx_at = ctx.obj.params.get("at") + if ctx_at and at: + raise ValueError("--at was specified twice") + + handler, args = _select_auth_handler_and_args( + ctx=ctx, + at=ctx_at or at, + hostname=hostname, + username=username, + password=password, + help=help, + auth_handlers=auth_handlers, + auth_handlers_dropdown=auth_handlers_dropdown, + ) + return handler(args=[ctx.command.name, *args], obj=ctx.obj) + + help_doc = { + "login": "Sign into Anaconda services", + "logout": "Sign out from Anaconda services", + "whoami": "Display account information", + } + + for action in "login", "logout", "whoami": + decorator = app.command( + action, + context_settings={"allow_extra_args": True, "ignore_unknown_options": True}, + rich_help_panel="Authentication", + help=help_doc[action], + ) + decorator(_action) + + +def _load_auth_handler( + subcommand_app: typer.Typer, + name: PluginName, + auth_handlers: Dict[PluginName, typer.Typer], + auth_handler_selectors: List[Tuple[SiteName, SiteDisplayName]], +) -> None: + """Load a specific auth handler, populating the dropdown and auth_handlers + mappings as we go. This allows users to dynamically select a specific + implementation when logging in or out. + """ + auth_handlers[name] = subcommand_app + # this means anaconda-auth is available + if name == "auth": + try: + # Type hints are missing temporarily + from anaconda_auth.config import AnacondaAuthSitesConfig # type: ignore + + site_config = AnacondaAuthSitesConfig() + for site_name, site in site_config.sites.root.items(): + display_name = site_name + if site_name != site.domain: + display_name += f" ({site.domain})" + + if site_name == site_config.default_site: + display_name += " [cyan]\\[default][/cyan]" + + auth_handlers[site_name] = subcommand_app + auth_handler_selectors.append((site_name, display_name)) + + except ImportError as e: + raise e + elif name == "cloud": + # This plugin alias duplicates anaconda.com, so we skip it + pass + elif alias := AUTH_HANDLER_ALIASES.get(name): + auth_handlers[alias] = subcommand_app + auth_handler_selectors.append((alias, alias)) + + +def _sort_selectors( + item: Tuple[SiteName, SiteDisplayName], +) -> Tuple[int, Tuple[SiteName, SiteDisplayName]]: + name, display_name = item + if "default" in display_name: + return (0, item) + if display_name == "anaconda.com": + return (1, item) + if display_name == "anaconda.org": + return (2, item) + else: + return (3, item) + + +def load_registered_subcommands(app: typer.Typer) -> None: + """Load all subcommands from plugins.""" + subcommand_entry_points = _load_entry_points_for_group(PLUGIN_GROUP_NAME) + auth_handlers: Dict[PluginName, typer.Typer] = {} + auth_handler_selectors: List[Tuple[SiteName, SiteDisplayName]] = [] + for name, value, subcommand_app in subcommand_entry_points: + # Allow plugins to disable this if they explicitly want to, but otherwise make True the default + if isinstance(subcommand_app.info.no_args_is_help, DefaultPlaceholder): + subcommand_app.info.no_args_is_help = True + + if "login" in [cmd.name for cmd in subcommand_app.registered_commands]: + _load_auth_handler( + subcommand_app, name, auth_handlers, auth_handler_selectors + ) + + app.add_typer( + subcommand_app, + name=name, + hidden=name in HIDDEN_PLUGINS, + rich_help_panel="Plugins", + ) + + if auth_handlers: + auth_handlers_dropdown = sorted(auth_handler_selectors, key=_sort_selectors) + _add_auth_actions_to_app( + app=app, + auth_handlers=auth_handlers, + auth_handlers_dropdown=auth_handlers_dropdown, + ) + + log.debug( + "Loaded subcommand '%s' from '%s'", + name, + value, + ) diff --git a/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/py.typed b/data/miniconda3/pkgs/anaconda-cli-base-0.7.0-py313h06a4308_0/lib/python3.13/site-packages/anaconda_cli_base/py.typed new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/activate b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/activate new file mode 100644 index 0000000000000000000000000000000000000000..dff25d405171d91529935e0bcd2bab8459a4ccd3 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/activate @@ -0,0 +1,6 @@ +#!/bin/sh +_CONDA_ROOT="/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p" +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +\. "$_CONDA_ROOT/etc/profile.d/conda.sh" || return $? +conda activate "$@" diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/conda b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/conda new file mode 100644 index 0000000000000000000000000000000000000000..58473c4922e2925297d12602c571e527a97aa594 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/conda @@ -0,0 +1,13 @@ +#!/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/python +# -*- coding: utf-8 -*- +import sys +# Before any more imports, leave cwd out of sys.path for internal 'conda shell.*' commands. +# see https://github.com/conda/conda/issues/6549 +if len(sys.argv) > 1 and sys.argv[1].startswith('shell.') and sys.path and sys.path[0] == '': + # The standard first entry in sys.path is an empty string, + # and os.path.abspath('') expands to os.getcwd(). + del sys.path[0] + +if __name__ == '__main__': + from conda.cli import main + sys.exit(main()) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/conda-env b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/conda-env new file mode 100644 index 0000000000000000000000000000000000000000..0eb2dd047f6e39e927fd2d97e3198d8884e17bc6 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/conda-env @@ -0,0 +1,7 @@ +#!/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/python +# -*- coding: utf-8 -*- +import sys + +if __name__ == '__main__': + from conda_env.cli.main import main + sys.exit(main()) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/deactivate b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/deactivate new file mode 100644 index 0000000000000000000000000000000000000000..940efa74fe2cd168acd785cd2332642c329f768e --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/bin/deactivate @@ -0,0 +1,7 @@ +#!/bin/sh +_CONDA_ROOT="/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p" +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +\echo >&2 "DeprecationWarning: 'source deactivate' is deprecated. Use 'conda deactivate'." +\. "$_CONDA_ROOT/etc/profile.d/conda.sh" || return $? +conda deactivate diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/condabin/conda b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/condabin/conda new file mode 100644 index 0000000000000000000000000000000000000000..58473c4922e2925297d12602c571e527a97aa594 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/condabin/conda @@ -0,0 +1,13 @@ +#!/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/python +# -*- coding: utf-8 -*- +import sys +# Before any more imports, leave cwd out of sys.path for internal 'conda shell.*' commands. +# see https://github.com/conda/conda/issues/6549 +if len(sys.argv) > 1 and sys.argv[1].startswith('shell.') and sys.path and sys.path[0] == '': + # The standard first entry in sys.path is an empty string, + # and os.path.abspath('') expands to os.getcwd(). + del sys.path[0] + +if __name__ == '__main__': + from conda.cli import main + sys.exit(main()) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/about.json b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..c940317bb396cae216dbe27508b92f9cf4a40abf --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/about.json @@ -0,0 +1,173 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://repo.anaconda.com/pkgs/r", + "https://repo.anaconda.com/pkgs/r" + ], + "conda_build_version": "25.1.2", + "conda_version": "25.1.1", + "description": "Conda is an open source package management system and environment\nmanagement system for installing multiple versions of software packages\nand their dependencies and switching easily between them. It works on\nLinux, OS X and Windows, and was created for Python programs but can\npackage and distribute any software.\n", + "dev_url": "https://github.com/conda/conda", + "doc_url": "https://docs.conda.io/projects/conda/en/stable/", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "skip-lints": [ + "python_build_tool_in_run", + "missing_pip_check" + ] + }, + "home": "https://docs.conda.io/", + "identifiers": [], + "keywords": [], + "license": "BSD-3-Clause", + "license_family": "BSD", + "license_file": "conda-src/LICENSE", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "ca-certificates 2025.11.4 h06a4308_0", + "ld_impl_linux-64 2.40 h12ee557_0", + "libstdcxx-ng 11.2.0 h1234567_1", + "nlohmann_json 3.11.2 h6a678d5_0", + "pybind11-abi 5 hd3eb1b0_0", + "tzdata 2025a h04d1e81_0", + "libgomp 11.2.0 h1234567_1", + "_openmp_mutex 5.1 1_gnu", + "libgcc-ng 11.2.0 h1234567_1", + "bzip2 1.0.8 h5eee18b_6", + "c-ares 1.19.1 h5eee18b_0", + "cpp-expected 1.1.0 hdb19cb5_0", + "expat 2.7.3 h3385a95_0", + "fmt 9.1.0 hdb19cb5_1", + "icu 73.1 h6a678d5_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_1", + "libuuid 1.41.5 h5eee18b_0", + "lz4-c 1.9.4 h6a678d5_1", + "ncurses 6.4 h6a678d5_0", + "reproc 14.2.4 h6a678d5_2", + "simdjson 3.10.1 hdb19cb5_0", + "xz 5.4.6 h5eee18b_1", + "yaml-cpp 0.8.0 h6a678d5_1", + "zlib 1.2.13 h5eee18b_1", + "libedit 3.1.20230828 h5eee18b_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libssh2 1.11.1 h251f7ec_0", + "libxml2 2.13.5 hfdd30dd_0", + "pcre2 10.42 hebb0a14_1", + "readline 8.2 h5eee18b_0", + "reproc-cpp 14.2.4 h6a678d5_2", + "spdlog 1.11.0 hdb19cb5_0", + "patch 2.8 hb25bd0a_0", + "zstd 1.5.6 hc292b87_0", + "krb5 1.20.1 h143b758_1", + "libarchive 3.7.7 hfab0078_0", + "libsolv 0.7.30 he621ea3_1", + "sqlite 3.45.3 h5eee18b_0", + "python 3.12.9 h5148396_0", + "libmamba 2.0.5 haf1ee3a_1", + "menuinst 2.2.0 py312h06a4308_1", + "anaconda-anon-usage 0.5.0 py312hfc0e8ea_100", + "annotated-types 0.6.0 py312h06a4308_0", + "archspec 0.2.3 pyhd3eb1b0_0", + "boltons 24.1.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_9", + "charset-normalizer 3.3.2 pyhd3eb1b0_0", + "distro 1.9.0 py312h06a4308_0", + "frozendict 2.4.2 py312h06a4308_0", + "idna 3.7 py312h06a4308_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "libmambapy 2.0.5 py312hdb19cb5_1", + "mdurl 0.1.0 py312h06a4308_0", + "packaging 24.2 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.5.0 py312h06a4308_0", + "pycosat 0.6.6 py312h5eee18b_2", + "pycparser 2.21 pyhd3eb1b0_0", + "pygments 2.15.1 py312h06a4308_1", + "pysocks 1.7.1 py312h06a4308_0", + "ruamel.yaml.clib 0.2.8 py312h5eee18b_0", + "setuptools 75.8.0 py312h06a4308_0", + "tqdm 4.67.1 py312he106c6f_0", + "truststore 0.10.0 py312h06a4308_0", + "typing_extensions 4.12.2 py312h06a4308_0", + "wheel 0.45.1 py312h06a4308_0", + "cffi 1.17.1 py312h1fdaa30_1", + "jsonpatch 1.33 py312h06a4308_1", + "markdown-it-py 2.2.0 py312h06a4308_1", + "pip 25.0 py312h06a4308_0", + "ruamel.yaml 0.18.6 py312h5eee18b_0", + "typing-extensions 4.12.2 py312h06a4308_0", + "urllib3 2.3.0 py312h06a4308_0", + "cryptography 43.0.3 py312h7825ff9_1", + "pydantic-core 2.27.1 py312h4aa5aa6_0", + "requests 2.32.3 py312h06a4308_1", + "rich 13.9.4 py312h06a4308_0", + "zstandard 0.23.0 py312h2c38b39_1", + "conda-content-trust 0.2.0 py312h06a4308_1", + "conda-package-streaming 0.11.0 py312h06a4308_0", + "pydantic 2.10.3 py312h06a4308_0", + "conda-package-handling 2.4.0 py312h06a4308_0", + "conda 25.1.1 py312h06a4308_0", + "conda-anaconda-tos 0.1.2 py312h06a4308_0", + "conda-libmamba-solver 25.1.1 pyhd3eb1b0_0", + "libiconv 1.16 h5eee18b_3", + "liblief 0.12.3 h6a678d5_0", + "libsodium 1.0.20 heac8642_0", + "libunistring 1.3 hb25bd0a_0", + "openssl 3.0.18 hd6dcaed_0", + "patchelf 0.17.2 h6a678d5_0", + "perl 5.40.2 0_h5eee18b_perl5", + "pthread-stubs 0.3 h0ce48e5_1", + "xorg-libxau 1.0.12 h9b100fa_0", + "xorg-libxdmcp 1.1.5 h9b100fa_0", + "xorg-xorgproto 2024.1 h5eee18b_1", + "yaml 0.2.5 h7b6447c_0", + "libxcb 1.17.0 h9b100fa_0", + "gettext 0.21.0 hedfda30_2", + "xorg-libx11 1.8.12 h9b100fa_1", + "libidn2 2.3.8 hf80d704_0", + "tk 8.6.15 h54e0aa7_0", + "libcurl 8.16.0 heebcbe5_0", + "git 2.51.0 pl5382h000ed5b_0", + "argcomplete 3.6.2 py312h06a4308_0", + "attrs 25.4.0 py312h06a4308_2", + "certifi 2025.10.5 py312h06a4308_0", + "chardet 5.2.0 py312h06a4308_0", + "click 8.2.1 py312h06a4308_0", + "filelock 3.20.0 py312h06a4308_0", + "jmespath 1.0.1 py312h06a4308_0", + "markupsafe 3.0.2 py312h5eee18b_0", + "more-itertools 10.8.0 py312h06a4308_0", + "pkginfo 1.12.0 py312h06a4308_0", + "psutil 7.0.0 py312hee96239_1", + "py-lief 0.12.3 py312h6a678d5_0", + "python-libarchive-c 5.1 pyhd3eb1b0_0", + "pytz 2025.2 py312h06a4308_0", + "pyyaml 6.0.2 py312h5eee18b_0", + "rpds-py 0.28.0 py312h498d7c9_0", + "six 1.17.0 py312h06a4308_0", + "soupsieve 2.5 py312h06a4308_0", + "tomlkit 0.13.2 py312h06a4308_0", + "xmltodict 0.14.2 py312h06a4308_0", + "jinja2 3.1.6 py312h06a4308_0", + "python-dateutil 2.9.0post0 py312h06a4308_2", + "referencing 0.37.0 py312h06a4308_0", + "yq 3.4.3 py312h06a4308_0", + "beautifulsoup4 4.13.5 py312h06a4308_0", + "botocore 1.40.54 py312h06a4308_0", + "jsonschema-specifications 2023.7.1 py312h06a4308_1", + "pynacl 1.5.0 py312h2630517_2", + "jsonschema 4.25.0 py312h06a4308_1", + "s3transfer 0.14.0 py312h06a4308_0", + "boto3 1.40.54 py312h06a4308_0", + "conda-anaconda-telemetry 0.3.0 pyhd3eb1b0_1", + "conda-index 0.5.0 py312h06a4308_0", + "conda-build 25.1.2 py312h06a4308_0" + ], + "summary": "OS-agnostic, system-level binary package and environment manager.", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/files b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..52d8bce24ffabd70c1e1c56917c16e85c36640c6 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/files @@ -0,0 +1,461 @@ +bin/activate +bin/conda +bin/conda-env +bin/deactivate +condabin/conda +etc/fish/conf.d/conda.fish +etc/profile.d/conda.csh +etc/profile.d/conda.sh +lib/python3.13/site-packages/conda-25.11.1.dist-info/INSTALLER +lib/python3.13/site-packages/conda-25.11.1.dist-info/METADATA +lib/python3.13/site-packages/conda-25.11.1.dist-info/RECORD +lib/python3.13/site-packages/conda-25.11.1.dist-info/REQUESTED +lib/python3.13/site-packages/conda-25.11.1.dist-info/WHEEL +lib/python3.13/site-packages/conda-25.11.1.dist-info/direct_url.json +lib/python3.13/site-packages/conda-25.11.1.dist-info/entry_points.txt +lib/python3.13/site-packages/conda-25.11.1.dist-info/licenses/AUTHORS.md +lib/python3.13/site-packages/conda-25.11.1.dist-info/licenses/LICENSE +lib/python3.13/site-packages/conda/__init__.py +lib/python3.13/site-packages/conda/__main__.py +lib/python3.13/site-packages/conda/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/__main__.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/_vendor.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/_version.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/activate.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/api.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/deprecations.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/exception_handler.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/exceptions.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/exports.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/history.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/instructions.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/misc.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/plan.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/reporters.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/resolve.cpython-313.pyc +lib/python3.13/site-packages/conda/__pycache__/utils.cpython-313.pyc +lib/python3.13/site-packages/conda/_vendor.py +lib/python3.13/site-packages/conda/_version.py +lib/python3.13/site-packages/conda/activate.py +lib/python3.13/site-packages/conda/api.py +lib/python3.13/site-packages/conda/auxlib/LICENSE +lib/python3.13/site-packages/conda/auxlib/__init__.py +lib/python3.13/site-packages/conda/auxlib/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/auxlib/__pycache__/collection.cpython-313.pyc +lib/python3.13/site-packages/conda/auxlib/__pycache__/compat.cpython-313.pyc +lib/python3.13/site-packages/conda/auxlib/__pycache__/decorators.cpython-313.pyc +lib/python3.13/site-packages/conda/auxlib/__pycache__/entity.cpython-313.pyc +lib/python3.13/site-packages/conda/auxlib/__pycache__/exceptions.cpython-313.pyc +lib/python3.13/site-packages/conda/auxlib/__pycache__/ish.cpython-313.pyc +lib/python3.13/site-packages/conda/auxlib/__pycache__/logz.cpython-313.pyc +lib/python3.13/site-packages/conda/auxlib/__pycache__/type_coercion.cpython-313.pyc +lib/python3.13/site-packages/conda/auxlib/collection.py +lib/python3.13/site-packages/conda/auxlib/compat.py +lib/python3.13/site-packages/conda/auxlib/decorators.py +lib/python3.13/site-packages/conda/auxlib/entity.py +lib/python3.13/site-packages/conda/auxlib/exceptions.py +lib/python3.13/site-packages/conda/auxlib/ish.py +lib/python3.13/site-packages/conda/auxlib/logz.py +lib/python3.13/site-packages/conda/auxlib/type_coercion.py +lib/python3.13/site-packages/conda/base/__init__.py +lib/python3.13/site-packages/conda/base/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/base/__pycache__/constants.cpython-313.pyc +lib/python3.13/site-packages/conda/base/__pycache__/context.cpython-313.pyc +lib/python3.13/site-packages/conda/base/constants.py +lib/python3.13/site-packages/conda/base/context.py +lib/python3.13/site-packages/conda/cli/__init__.py +lib/python3.13/site-packages/conda/cli/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/actions.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/common.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/conda_argparse.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/find_commands.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/helpers.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/install.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_clean.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_commands.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_compare.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_config.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_create.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_env.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_env_config.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_env_create.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_env_list.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_env_remove.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_env_update.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_env_vars.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_export.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_info.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_init.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_install.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_list.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_mock_activate.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_mock_deactivate.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_notices.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_package.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_pip.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_remove.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_rename.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_run.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_search.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/__pycache__/main_update.cpython-313.pyc +lib/python3.13/site-packages/conda/cli/actions.py +lib/python3.13/site-packages/conda/cli/common.py +lib/python3.13/site-packages/conda/cli/conda_argparse.py +lib/python3.13/site-packages/conda/cli/find_commands.py +lib/python3.13/site-packages/conda/cli/helpers.py +lib/python3.13/site-packages/conda/cli/install.py +lib/python3.13/site-packages/conda/cli/main.py +lib/python3.13/site-packages/conda/cli/main_clean.py +lib/python3.13/site-packages/conda/cli/main_commands.py +lib/python3.13/site-packages/conda/cli/main_compare.py +lib/python3.13/site-packages/conda/cli/main_config.py +lib/python3.13/site-packages/conda/cli/main_create.py +lib/python3.13/site-packages/conda/cli/main_env.py +lib/python3.13/site-packages/conda/cli/main_env_config.py +lib/python3.13/site-packages/conda/cli/main_env_create.py +lib/python3.13/site-packages/conda/cli/main_env_list.py +lib/python3.13/site-packages/conda/cli/main_env_remove.py +lib/python3.13/site-packages/conda/cli/main_env_update.py +lib/python3.13/site-packages/conda/cli/main_env_vars.py +lib/python3.13/site-packages/conda/cli/main_export.py +lib/python3.13/site-packages/conda/cli/main_info.py +lib/python3.13/site-packages/conda/cli/main_init.py +lib/python3.13/site-packages/conda/cli/main_install.py +lib/python3.13/site-packages/conda/cli/main_list.py +lib/python3.13/site-packages/conda/cli/main_mock_activate.py +lib/python3.13/site-packages/conda/cli/main_mock_deactivate.py +lib/python3.13/site-packages/conda/cli/main_notices.py +lib/python3.13/site-packages/conda/cli/main_package.py +lib/python3.13/site-packages/conda/cli/main_pip.py +lib/python3.13/site-packages/conda/cli/main_remove.py +lib/python3.13/site-packages/conda/cli/main_rename.py +lib/python3.13/site-packages/conda/cli/main_run.py +lib/python3.13/site-packages/conda/cli/main_search.py +lib/python3.13/site-packages/conda/cli/main_update.py +lib/python3.13/site-packages/conda/common/__init__.py +lib/python3.13/site-packages/conda/common/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/common/__pycache__/_logic.cpython-313.pyc +lib/python3.13/site-packages/conda/common/__pycache__/compat.cpython-313.pyc +lib/python3.13/site-packages/conda/common/__pycache__/configuration.cpython-313.pyc +lib/python3.13/site-packages/conda/common/__pycache__/constants.cpython-313.pyc +lib/python3.13/site-packages/conda/common/__pycache__/io.cpython-313.pyc +lib/python3.13/site-packages/conda/common/__pycache__/iterators.cpython-313.pyc +lib/python3.13/site-packages/conda/common/__pycache__/logic.cpython-313.pyc +lib/python3.13/site-packages/conda/common/__pycache__/signals.cpython-313.pyc +lib/python3.13/site-packages/conda/common/__pycache__/toposort.cpython-313.pyc +lib/python3.13/site-packages/conda/common/__pycache__/url.cpython-313.pyc +lib/python3.13/site-packages/conda/common/_logic.py +lib/python3.13/site-packages/conda/common/_os/__init__.py +lib/python3.13/site-packages/conda/common/_os/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/common/_os/__pycache__/linux.cpython-313.pyc +lib/python3.13/site-packages/conda/common/_os/__pycache__/osx.cpython-313.pyc +lib/python3.13/site-packages/conda/common/_os/__pycache__/unix.cpython-313.pyc +lib/python3.13/site-packages/conda/common/_os/__pycache__/windows.cpython-313.pyc +lib/python3.13/site-packages/conda/common/_os/linux.py +lib/python3.13/site-packages/conda/common/_os/osx.py +lib/python3.13/site-packages/conda/common/_os/unix.py +lib/python3.13/site-packages/conda/common/_os/windows.py +lib/python3.13/site-packages/conda/common/compat.py +lib/python3.13/site-packages/conda/common/configuration.py +lib/python3.13/site-packages/conda/common/constants.py +lib/python3.13/site-packages/conda/common/io.py +lib/python3.13/site-packages/conda/common/iterators.py +lib/python3.13/site-packages/conda/common/logic.py +lib/python3.13/site-packages/conda/common/path/__init__.py +lib/python3.13/site-packages/conda/common/path/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/common/path/__pycache__/_cygpath.cpython-313.pyc +lib/python3.13/site-packages/conda/common/path/__pycache__/directories.cpython-313.pyc +lib/python3.13/site-packages/conda/common/path/__pycache__/python.cpython-313.pyc +lib/python3.13/site-packages/conda/common/path/__pycache__/windows.cpython-313.pyc +lib/python3.13/site-packages/conda/common/path/_cygpath.py +lib/python3.13/site-packages/conda/common/path/directories.py +lib/python3.13/site-packages/conda/common/path/python.py +lib/python3.13/site-packages/conda/common/path/windows.py +lib/python3.13/site-packages/conda/common/pkg_formats/__init__.py +lib/python3.13/site-packages/conda/common/pkg_formats/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/common/pkg_formats/__pycache__/python.cpython-313.pyc +lib/python3.13/site-packages/conda/common/pkg_formats/python.py +lib/python3.13/site-packages/conda/common/serialize/__init__.py +lib/python3.13/site-packages/conda/common/serialize/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/common/serialize/__pycache__/json.cpython-313.pyc +lib/python3.13/site-packages/conda/common/serialize/json.py +lib/python3.13/site-packages/conda/common/signals.py +lib/python3.13/site-packages/conda/common/toposort.py +lib/python3.13/site-packages/conda/common/url.py +lib/python3.13/site-packages/conda/core/__init__.py +lib/python3.13/site-packages/conda/core/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/core/__pycache__/envs_manager.cpython-313.pyc +lib/python3.13/site-packages/conda/core/__pycache__/index.cpython-313.pyc +lib/python3.13/site-packages/conda/core/__pycache__/initialize.cpython-313.pyc +lib/python3.13/site-packages/conda/core/__pycache__/link.cpython-313.pyc +lib/python3.13/site-packages/conda/core/__pycache__/package_cache_data.cpython-313.pyc +lib/python3.13/site-packages/conda/core/__pycache__/path_actions.cpython-313.pyc +lib/python3.13/site-packages/conda/core/__pycache__/portability.cpython-313.pyc +lib/python3.13/site-packages/conda/core/__pycache__/prefix_data.cpython-313.pyc +lib/python3.13/site-packages/conda/core/__pycache__/solve.cpython-313.pyc +lib/python3.13/site-packages/conda/core/__pycache__/subdir_data.cpython-313.pyc +lib/python3.13/site-packages/conda/core/envs_manager.py +lib/python3.13/site-packages/conda/core/index.py +lib/python3.13/site-packages/conda/core/initialize.py +lib/python3.13/site-packages/conda/core/link.py +lib/python3.13/site-packages/conda/core/package_cache_data.py +lib/python3.13/site-packages/conda/core/path_actions.py +lib/python3.13/site-packages/conda/core/portability.py +lib/python3.13/site-packages/conda/core/prefix_data.py +lib/python3.13/site-packages/conda/core/solve.py +lib/python3.13/site-packages/conda/core/subdir_data.py +lib/python3.13/site-packages/conda/deprecations.py +lib/python3.13/site-packages/conda/env/__init__.py +lib/python3.13/site-packages/conda/env/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/env/__pycache__/env.cpython-313.pyc +lib/python3.13/site-packages/conda/env/__pycache__/pip_util.cpython-313.pyc +lib/python3.13/site-packages/conda/env/env.py +lib/python3.13/site-packages/conda/env/installers/__init__.py +lib/python3.13/site-packages/conda/env/installers/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/env/installers/__pycache__/base.cpython-313.pyc +lib/python3.13/site-packages/conda/env/installers/__pycache__/conda.cpython-313.pyc +lib/python3.13/site-packages/conda/env/installers/__pycache__/pip.cpython-313.pyc +lib/python3.13/site-packages/conda/env/installers/base.py +lib/python3.13/site-packages/conda/env/installers/conda.py +lib/python3.13/site-packages/conda/env/installers/pip.py +lib/python3.13/site-packages/conda/env/pip_util.py +lib/python3.13/site-packages/conda/env/specs/__init__.py +lib/python3.13/site-packages/conda/env/specs/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/env/specs/__pycache__/binstar.cpython-313.pyc +lib/python3.13/site-packages/conda/env/specs/__pycache__/cep_24.cpython-313.pyc +lib/python3.13/site-packages/conda/env/specs/__pycache__/explicit.cpython-313.pyc +lib/python3.13/site-packages/conda/env/specs/__pycache__/requirements.cpython-313.pyc +lib/python3.13/site-packages/conda/env/specs/__pycache__/yaml_file.cpython-313.pyc +lib/python3.13/site-packages/conda/env/specs/binstar.py +lib/python3.13/site-packages/conda/env/specs/cep_24.py +lib/python3.13/site-packages/conda/env/specs/explicit.py +lib/python3.13/site-packages/conda/env/specs/requirements.py +lib/python3.13/site-packages/conda/env/specs/yaml_file.py +lib/python3.13/site-packages/conda/exception_handler.py +lib/python3.13/site-packages/conda/exceptions.py +lib/python3.13/site-packages/conda/exports.py +lib/python3.13/site-packages/conda/gateways/__init__.py +lib/python3.13/site-packages/conda/gateways/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/__pycache__/anaconda_client.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/__pycache__/logging.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/__pycache__/subprocess.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/anaconda_client.py +lib/python3.13/site-packages/conda/gateways/connection/__init__.py +lib/python3.13/site-packages/conda/gateways/connection/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/connection/__pycache__/download.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/connection/__pycache__/session.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/connection/adapters/__init__.py +lib/python3.13/site-packages/conda/gateways/connection/adapters/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/connection/adapters/__pycache__/ftp.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/connection/adapters/__pycache__/http.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/connection/adapters/__pycache__/localfs.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/connection/adapters/__pycache__/s3.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/connection/adapters/ftp.py +lib/python3.13/site-packages/conda/gateways/connection/adapters/http.py +lib/python3.13/site-packages/conda/gateways/connection/adapters/localfs.py +lib/python3.13/site-packages/conda/gateways/connection/adapters/s3.py +lib/python3.13/site-packages/conda/gateways/connection/download.py +lib/python3.13/site-packages/conda/gateways/connection/session.py +lib/python3.13/site-packages/conda/gateways/disk/__init__.py +lib/python3.13/site-packages/conda/gateways/disk/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/disk/__pycache__/create.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/disk/__pycache__/delete.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/disk/__pycache__/link.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/disk/__pycache__/lock.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/disk/__pycache__/permissions.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/disk/__pycache__/read.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/disk/__pycache__/test.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/disk/__pycache__/update.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/disk/create.py +lib/python3.13/site-packages/conda/gateways/disk/delete.py +lib/python3.13/site-packages/conda/gateways/disk/link.py +lib/python3.13/site-packages/conda/gateways/disk/lock.py +lib/python3.13/site-packages/conda/gateways/disk/permissions.py +lib/python3.13/site-packages/conda/gateways/disk/read.py +lib/python3.13/site-packages/conda/gateways/disk/test.py +lib/python3.13/site-packages/conda/gateways/disk/update.py +lib/python3.13/site-packages/conda/gateways/logging.py +lib/python3.13/site-packages/conda/gateways/repodata/__init__.py +lib/python3.13/site-packages/conda/gateways/repodata/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/repodata/__pycache__/lock.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/repodata/jlap/__init__.py +lib/python3.13/site-packages/conda/gateways/repodata/jlap/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/repodata/jlap/__pycache__/core.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/repodata/jlap/__pycache__/fetch.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/repodata/jlap/__pycache__/interface.cpython-313.pyc +lib/python3.13/site-packages/conda/gateways/repodata/jlap/core.py +lib/python3.13/site-packages/conda/gateways/repodata/jlap/fetch.py +lib/python3.13/site-packages/conda/gateways/repodata/jlap/interface.py +lib/python3.13/site-packages/conda/gateways/repodata/lock.py +lib/python3.13/site-packages/conda/gateways/subprocess.py +lib/python3.13/site-packages/conda/history.py +lib/python3.13/site-packages/conda/instructions.py +lib/python3.13/site-packages/conda/misc.py +lib/python3.13/site-packages/conda/models/__init__.py +lib/python3.13/site-packages/conda/models/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/models/__pycache__/channel.cpython-313.pyc +lib/python3.13/site-packages/conda/models/__pycache__/dist.cpython-313.pyc +lib/python3.13/site-packages/conda/models/__pycache__/enums.cpython-313.pyc +lib/python3.13/site-packages/conda/models/__pycache__/environment.cpython-313.pyc +lib/python3.13/site-packages/conda/models/__pycache__/match_spec.cpython-313.pyc +lib/python3.13/site-packages/conda/models/__pycache__/package_info.cpython-313.pyc +lib/python3.13/site-packages/conda/models/__pycache__/prefix_graph.cpython-313.pyc +lib/python3.13/site-packages/conda/models/__pycache__/records.cpython-313.pyc +lib/python3.13/site-packages/conda/models/__pycache__/version.cpython-313.pyc +lib/python3.13/site-packages/conda/models/channel.py +lib/python3.13/site-packages/conda/models/dist.py +lib/python3.13/site-packages/conda/models/enums.py +lib/python3.13/site-packages/conda/models/environment.py +lib/python3.13/site-packages/conda/models/match_spec.py +lib/python3.13/site-packages/conda/models/package_info.py +lib/python3.13/site-packages/conda/models/prefix_graph.py +lib/python3.13/site-packages/conda/models/records.py +lib/python3.13/site-packages/conda/models/version.py +lib/python3.13/site-packages/conda/notices/__init__.py +lib/python3.13/site-packages/conda/notices/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/notices/__pycache__/cache.cpython-313.pyc +lib/python3.13/site-packages/conda/notices/__pycache__/core.cpython-313.pyc +lib/python3.13/site-packages/conda/notices/__pycache__/fetch.cpython-313.pyc +lib/python3.13/site-packages/conda/notices/__pycache__/types.cpython-313.pyc +lib/python3.13/site-packages/conda/notices/__pycache__/views.cpython-313.pyc +lib/python3.13/site-packages/conda/notices/cache.py +lib/python3.13/site-packages/conda/notices/core.py +lib/python3.13/site-packages/conda/notices/fetch.py +lib/python3.13/site-packages/conda/notices/types.py +lib/python3.13/site-packages/conda/notices/views.py +lib/python3.13/site-packages/conda/plan.py +lib/python3.13/site-packages/conda/plugins/__init__.py +lib/python3.13/site-packages/conda/plugins/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/__pycache__/config.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/__pycache__/hookspec.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/__pycache__/manager.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/__pycache__/solvers.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/__pycache__/types.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/config.py +lib/python3.13/site-packages/conda/plugins/environment_exporters/__init__.py +lib/python3.13/site-packages/conda/plugins/environment_exporters/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/environment_exporters/__pycache__/environment_yml.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/environment_exporters/__pycache__/explicit.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/environment_exporters/__pycache__/requirements_txt.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/environment_exporters/environment_yml.py +lib/python3.13/site-packages/conda/plugins/environment_exporters/explicit.py +lib/python3.13/site-packages/conda/plugins/environment_exporters/requirements_txt.py +lib/python3.13/site-packages/conda/plugins/environment_specifiers/__init__.py +lib/python3.13/site-packages/conda/plugins/environment_specifiers/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/environment_specifiers/__pycache__/cep_24.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/environment_specifiers/__pycache__/environment_yml.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/environment_specifiers/__pycache__/explicit.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/environment_specifiers/__pycache__/requirements_txt.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/environment_specifiers/cep_24.py +lib/python3.13/site-packages/conda/plugins/environment_specifiers/environment_yml.py +lib/python3.13/site-packages/conda/plugins/environment_specifiers/explicit.py +lib/python3.13/site-packages/conda/plugins/environment_specifiers/requirements_txt.py +lib/python3.13/site-packages/conda/plugins/hookspec.py +lib/python3.13/site-packages/conda/plugins/manager.py +lib/python3.13/site-packages/conda/plugins/post_solves/__init__.py +lib/python3.13/site-packages/conda/plugins/post_solves/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/post_solves/__pycache__/signature_verification.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/post_solves/signature_verification.py +lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/__init__.py +lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/pypi/__init__.py +lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/pypi/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/pypi/__pycache__/pkg_format.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/pypi/pkg_format.py +lib/python3.13/site-packages/conda/plugins/reporter_backends/__init__.py +lib/python3.13/site-packages/conda/plugins/reporter_backends/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/reporter_backends/__pycache__/console.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/reporter_backends/__pycache__/json.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/reporter_backends/console.py +lib/python3.13/site-packages/conda/plugins/reporter_backends/json.py +lib/python3.13/site-packages/conda/plugins/solvers.py +lib/python3.13/site-packages/conda/plugins/subcommands/__init__.py +lib/python3.13/site-packages/conda/plugins/subcommands/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/subcommands/doctor/__init__.py +lib/python3.13/site-packages/conda/plugins/subcommands/doctor/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/subcommands/doctor/__pycache__/health_checks.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/subcommands/doctor/health_checks.py +lib/python3.13/site-packages/conda/plugins/types.py +lib/python3.13/site-packages/conda/plugins/virtual_packages/__init__.py +lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/archspec.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/conda.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/cuda.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/freebsd.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/linux.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/osx.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/windows.cpython-313.pyc +lib/python3.13/site-packages/conda/plugins/virtual_packages/archspec.py +lib/python3.13/site-packages/conda/plugins/virtual_packages/conda.py +lib/python3.13/site-packages/conda/plugins/virtual_packages/cuda.py +lib/python3.13/site-packages/conda/plugins/virtual_packages/freebsd.py +lib/python3.13/site-packages/conda/plugins/virtual_packages/linux.py +lib/python3.13/site-packages/conda/plugins/virtual_packages/osx.py +lib/python3.13/site-packages/conda/plugins/virtual_packages/windows.py +lib/python3.13/site-packages/conda/py.typed +lib/python3.13/site-packages/conda/reporters.py +lib/python3.13/site-packages/conda/resolve.py +lib/python3.13/site-packages/conda/shell/Library/bin/conda.bat +lib/python3.13/site-packages/conda/shell/Scripts/activate.bat +lib/python3.13/site-packages/conda/shell/bin/activate +lib/python3.13/site-packages/conda/shell/bin/deactivate +lib/python3.13/site-packages/conda/shell/cli-32.exe +lib/python3.13/site-packages/conda/shell/cli-64.exe +lib/python3.13/site-packages/conda/shell/conda.xsh +lib/python3.13/site-packages/conda/shell/conda_icon.ico +lib/python3.13/site-packages/conda/shell/condabin/Conda.psm1 +lib/python3.13/site-packages/conda/shell/condabin/_conda_activate.bat +lib/python3.13/site-packages/conda/shell/condabin/activate.bat +lib/python3.13/site-packages/conda/shell/condabin/conda-hook.ps1 +lib/python3.13/site-packages/conda/shell/condabin/conda.bat +lib/python3.13/site-packages/conda/shell/condabin/conda_auto_activate.bat +lib/python3.13/site-packages/conda/shell/condabin/conda_hook.bat +lib/python3.13/site-packages/conda/shell/condabin/deactivate.bat +lib/python3.13/site-packages/conda/shell/condabin/rename_tmp.bat +lib/python3.13/site-packages/conda/shell/etc/fish/conf.d/conda.fish +lib/python3.13/site-packages/conda/shell/etc/profile.d/conda.csh +lib/python3.13/site-packages/conda/shell/etc/profile.d/conda.sh +lib/python3.13/site-packages/conda/testing/__init__.py +lib/python3.13/site-packages/conda/testing/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/__pycache__/cases.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/__pycache__/fixtures.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/__pycache__/helpers.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/__pycache__/integration.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/__pycache__/solver_helpers.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/cases.py +lib/python3.13/site-packages/conda/testing/fixtures.py +lib/python3.13/site-packages/conda/testing/gateways/__init__.py +lib/python3.13/site-packages/conda/testing/gateways/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/gateways/__pycache__/fixtures.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/gateways/fixtures.py +lib/python3.13/site-packages/conda/testing/helpers.py +lib/python3.13/site-packages/conda/testing/integration.py +lib/python3.13/site-packages/conda/testing/notices/__init__.py +lib/python3.13/site-packages/conda/testing/notices/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/notices/__pycache__/fixtures.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/notices/__pycache__/helpers.cpython-313.pyc +lib/python3.13/site-packages/conda/testing/notices/fixtures.py +lib/python3.13/site-packages/conda/testing/notices/helpers.py +lib/python3.13/site-packages/conda/testing/solver_helpers.py +lib/python3.13/site-packages/conda/trust/__init__.py +lib/python3.13/site-packages/conda/trust/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda/trust/__pycache__/constants.cpython-313.pyc +lib/python3.13/site-packages/conda/trust/__pycache__/signature_verification.cpython-313.pyc +lib/python3.13/site-packages/conda/trust/constants.py +lib/python3.13/site-packages/conda/trust/signature_verification.py +lib/python3.13/site-packages/conda/utils.py +lib/python3.13/site-packages/conda_env/README.md +lib/python3.13/site-packages/conda_env/__init__.py +lib/python3.13/site-packages/conda_env/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda_env/cli/__init__.py +lib/python3.13/site-packages/conda_env/cli/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/conda_env/installers/__init__.py +lib/python3.13/site-packages/conda_env/installers/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/tests/data/recipes/activate_deactivate_package/src/etc/conda/activate.d/activate.bat +lib/python3.13/site-packages/tests/data/recipes/activate_deactivate_package/src/etc/conda/activate.d/activate.sh +lib/python3.13/site-packages/tests/data/recipes/activate_deactivate_package/src/etc/conda/deactivate.d/deactivate.bat +lib/python3.13/site-packages/tests/data/recipes/activate_deactivate_package/src/etc/conda/deactivate.d/deactivate.sh +lib/python3.13/site-packages/xontrib/conda.xsh +shell/condabin/Conda.psm1 +shell/condabin/conda-hook.ps1 diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/git b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/has_prefix b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/has_prefix new file mode 100644 index 0000000000000000000000000000000000000000..9e8ead278ffc7c82a8067ed235e8c17a417648dd --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/has_prefix @@ -0,0 +1,10 @@ +/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p text bin/activate +/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p text bin/conda +/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p text bin/conda-env +/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p text bin/deactivate +/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p text condabin/conda +/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p text etc/fish/conf.d/conda.fish +/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p text etc/profile.d/conda.csh +/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p text etc/profile.d/conda.sh +/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p text lib/python3.13/site-packages/xontrib/conda.xsh +/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p text shell/condabin/conda-hook.ps1 diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/hash_input.json b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..e1489271625fa4f5548417553f3725447d4df321 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/hash_input.json @@ -0,0 +1,4 @@ +{ + "channel_targets": "defaults", + "target_platform": "linux-64" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/index.json b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..f7fe2dab4589834a69ef41dfec82faaa3371d12b --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/index.json @@ -0,0 +1,40 @@ +{ + "arch": "x86_64", + "build": "py313h06a4308_0", + "build_number": 0, + "constrains": [ + "conda-build >=25.9", + "conda-env >=2.6", + "conda-content-trust >=0.1.1" + ], + "depends": [ + "archspec >=0.2.3", + "boltons >=23.0.0", + "charset-normalizer", + "conda-libmamba-solver >=25.4.0", + "conda-package-handling >=2.2.0", + "distro >=1.5.0", + "frozendict >=2.4.2", + "jsonpatch >=1.32", + "menuinst >=2", + "packaging >=23.0", + "platformdirs >=3.10.0", + "pluggy >=1.0.0", + "pycosat >=0.6.3", + "python >=3.13,<3.14.0a0", + "python_abi 3.13.* *_cp313", + "requests >=2.28.0,<3", + "ruamel.yaml >=0.11.14,<0.19", + "setuptools >=60.0.0", + "tqdm >=4", + "truststore >=0.8.0", + "zstandard >=0.19.0" + ], + "license": "BSD-3-Clause", + "license_family": "BSD", + "name": "conda", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1765568009495, + "version": "25.11.1" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/paths.json b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..26fc900175b7ceb8e39cc74196c8895844c06d4d --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/paths.json @@ -0,0 +1,2791 @@ +{ + "paths": [ + { + "_path": "bin/activate", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p", + "sha256": "7c7670de862804f697949b7338590a664e79d322cfa93094eb314b603bcca191", + "size_in_bytes": 429 + }, + { + "_path": "bin/conda", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p", + "sha256": "4ba0b57c65067bce64ad6253a48e6564c73ae1e751a368bc44957b45dcd5bcf6", + "size_in_bytes": 756 + }, + { + "_path": "bin/conda-env", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p", + "sha256": "65d78f8d64e312bb627a4c5f61331a995705ea9283e4f8d7ffc473d8e0bb2e93", + "size_in_bytes": 393 + }, + { + "_path": "bin/deactivate", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p", + "sha256": "8d818716d358b44394a5dcb8c0bf78496b7a95eb783bde03e6d3edef490dfe2a", + "size_in_bytes": 517 + }, + { + "_path": "condabin/conda", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p", + "sha256": "4ba0b57c65067bce64ad6253a48e6564c73ae1e751a368bc44957b45dcd5bcf6", + "size_in_bytes": 756 + }, + { + "_path": "etc/fish/conf.d/conda.fish", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p", + "sha256": "f0408570463196282ae5c1c47cb9b53af3f0114ab08e41bf710a7dfa5c81d637", + "size_in_bytes": 4642 + }, + { + "_path": "etc/profile.d/conda.csh", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p", + "sha256": "2300bd24e309074eeae19e279daab576ba7f717458305fb026998c2f4dd6c4ae", + "size_in_bytes": 1511 + }, + { + "_path": "etc/profile.d/conda.sh", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p", + "sha256": "f0c067d3fdefa75252ee6047b50c925fd6101db89568a0c031fd0188fdda4a91", + "size_in_bytes": 3379 + }, + { + "_path": "lib/python3.13/site-packages/conda-25.11.1.dist-info/INSTALLER", + "path_type": "hardlink", + "sha256": "d0edee15f91b406f3f99726e44eb990be6e34fd0345b52b910c568e0eef6a2a8", + "size_in_bytes": 5 + }, + { + "_path": "lib/python3.13/site-packages/conda-25.11.1.dist-info/METADATA", + "path_type": "hardlink", + "sha256": "59315064dbc7a0e98481d9287544f7a73c46409f7f580f016dd5ae5177eeab04", + "size_in_bytes": 9785 + }, + { + "_path": "lib/python3.13/site-packages/conda-25.11.1.dist-info/RECORD", + "path_type": "hardlink", + "sha256": "1ac5c19d4571c636f3935f3d0474dc5ea46d110bd76f1c733b461a5a95a5cf9a", + "size_in_bytes": 33144 + }, + { + "_path": "lib/python3.13/site-packages/conda-25.11.1.dist-info/REQUESTED", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "lib/python3.13/site-packages/conda-25.11.1.dist-info/WHEEL", + "path_type": "hardlink", + "sha256": "aad0b0a12256807936d52d4a6f88a1773236ae527564a688bab4e3fe780e8724", + "size_in_bytes": 87 + }, + { + "_path": "lib/python3.13/site-packages/conda-25.11.1.dist-info/direct_url.json", + "path_type": "hardlink", + "sha256": "5916877dfc504b7db29afa56c2c48c3f1c5b7898d7874130bd67d9bf3500c2a5", + "size_in_bytes": 105 + }, + { + "_path": "lib/python3.13/site-packages/conda-25.11.1.dist-info/entry_points.txt", + "path_type": "hardlink", + "sha256": "8b638a316c0940c75bd108c9a67c8598da96a428483923eb7c2e2fc9a74ca3dd", + "size_in_bytes": 50 + }, + { + "_path": "lib/python3.13/site-packages/conda-25.11.1.dist-info/licenses/AUTHORS.md", + "path_type": "hardlink", + "sha256": "227864c578ee017a73afe1a57a2a9f3f5f1a56694fc2b98f16ca96da28f61829", + "size_in_bytes": 7768 + }, + { + "_path": "lib/python3.13/site-packages/conda-25.11.1.dist-info/licenses/LICENSE", + "path_type": "hardlink", + "sha256": "1f3695b738093cb6f69a321004d9993d8f9b6704ffde2a23ca0bc559706f240a", + "size_in_bytes": 1638 + }, + { + "_path": "lib/python3.13/site-packages/conda/__init__.py", + "path_type": "hardlink", + "sha256": "59d8e00af6c80c2d980bfbf8710ecf771c3de2964bc7b77cc663df7c5f86bb0f", + "size_in_bytes": 6009 + }, + { + "_path": "lib/python3.13/site-packages/conda/__main__.py", + "path_type": "hardlink", + "sha256": "d8547f225339e21ee53f54dbc2d7653ea1c616918b4b0384ce35bbfae0a4bfd3", + "size_in_bytes": 165 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "44fb63b174208a283767d536408ac4805de0fd767523bc8f8cb5df88fb912516", + "size_in_bytes": 8398 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/__main__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "018bfbfd93ed9a23e0df158e9ac953f8df5b3d5055d0df87bb6fd70fcab5e2f5", + "size_in_bytes": 315 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/_vendor.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "c3b659dad6b0f370c455481908f4aa3b4e881321ba5819920083d0161139d066", + "size_in_bytes": 320 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/_version.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "4bf222b40a33b93d2c8acbdba32040accd2bc06a5c39553d683e3cb79bfad5a9", + "size_in_bytes": 763 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/activate.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "c11dda813c57c5f09e8a2517d2625da91b5c68fb962dc96969baa5a9b103f0ce", + "size_in_bytes": 45099 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/api.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a94c581bdc43e450ff6fa701c70a4a6bcf9f9d96bc96f6a1dca6c3422be9d8fc", + "size_in_bytes": 17942 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/deprecations.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d5884916d697c86c10a284150ff131732fd81b2a87b99e6f275c70e7f7e8ac75", + "size_in_bytes": 16565 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/exception_handler.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "c0015471c98682440106bd2e407c0c3f57cf2df6d392c3e1d571ae877f74439f", + "size_in_bytes": 17274 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/exceptions.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "acdc466c61cb6891640a6cdd418d315f5722bfff096e62f87d1a7ece9b280f9b", + "size_in_bytes": 70271 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/exports.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "33a13ba5022d2e59b2934bcb402ae1cb1050970f4ac81d031814fb13ead6ac84", + "size_in_bytes": 8918 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/history.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "5a58cacea568a8e6020da958eb6e0dd4382dd0ea550819ece6f8c75a8374be0a", + "size_in_bytes": 22620 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/instructions.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "e9e2780eaf31569718b717424cdf822e5dc56acd3ffec3e407e1a3adc91ed22a", + "size_in_bytes": 3419 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/misc.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "11436efb1367669165f79ca0457fdbdf4aebed46ca5bbd764b245ff58e551ff5", + "size_in_bytes": 16980 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/plan.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f0a40a118c3a8e14eae875bc052d4d6989cf059a3de1e6996552c50d199b417e", + "size_in_bytes": 5299 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/reporters.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "cd7f1ec4eaa48cbbbd623b9d10923e8d2a3c3102f88f7ebc1d1d03c078a6f4f8", + "size_in_bytes": 3701 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/resolve.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a8cd5869bd40d571d16453772a80a7b5f84730a79d6014afd1d5f45eceb07c94", + "size_in_bytes": 83810 + }, + { + "_path": "lib/python3.13/site-packages/conda/__pycache__/utils.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "36fb969638a77c32eab13db14207cf361f59fc2f2c73509752202e7979ca7480", + "size_in_bytes": 14402 + }, + { + "_path": "lib/python3.13/site-packages/conda/_vendor.py", + "path_type": "hardlink", + "sha256": "cf7538eb64d0a8322b8046ff6d53b79f41e03b66732aa2034e02c1ee9a5a8503", + "size_in_bytes": 197 + }, + { + "_path": "lib/python3.13/site-packages/conda/_version.py", + "path_type": "hardlink", + "sha256": "ffddd6c048ef41ec6e1421c57a977a1720585a0fd89ee66b904151b6e27f80e5", + "size_in_bytes": 708 + }, + { + "_path": "lib/python3.13/site-packages/conda/activate.py", + "path_type": "hardlink", + "sha256": "1c3610b3bb1c3158aa8978596defce83190433f5b2845476732af57b85ef348e", + "size_in_bytes": 43307 + }, + { + "_path": "lib/python3.13/site-packages/conda/api.py", + "path_type": "hardlink", + "sha256": "b0ee6f5f8d903f6101d7054c1aa4ab37c55c9e0cdf71b5c0efadefff1d671067", + "size_in_bytes": 17516 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/LICENSE", + "path_type": "hardlink", + "sha256": "2707b28c03d8695981bd3135d2d7ec3df576f7e21892bb4c5806992f7312561e", + "size_in_bytes": 802 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/__init__.py", + "path_type": "hardlink", + "sha256": "265297f399f627a897e1f968f67d575d68e4cda315a34a1c3ecb9ae97ecd8281", + "size_in_bytes": 3042 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "02a9f8f969d802ac4bf4af734313ead4a1ad7664089a3b018bcc94d70d8660b9", + "size_in_bytes": 3911 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/__pycache__/collection.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "3deea468a15a6b0f86226bf044dc660b0aab1cb476a3433c5cee1b7faf81c7a9", + "size_in_bytes": 3246 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/__pycache__/compat.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "464569f2285baff8c4a43b49c9bcf9b153691ab779f2d66367a11d9db35d9fac", + "size_in_bytes": 1491 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/__pycache__/decorators.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "7c46f428d1541e226832371f5ae27cb57587f916b5252d21a0ca1fb8a80032e6", + "size_in_bytes": 6710 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/__pycache__/entity.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a3d5963e1f02a1d0272e6c8caedc2cf8c04d4e4c05bce6115f6c6f697a86fc88", + "size_in_bytes": 46479 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/__pycache__/exceptions.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "de6e54084cbe620aede3af433bed84045b6e1a827699d871c447ba6cea63da00", + "size_in_bytes": 1775 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/__pycache__/ish.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f4d4861cb4d4818f969021cfa47cafbc4b35ee22ab683e17e6564244b1233783", + "size_in_bytes": 2246 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/__pycache__/logz.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d6289bc789978b11b51a1df460be7b0308c6cb564b4bca4b9852d605713e705a", + "size_in_bytes": 9599 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/__pycache__/type_coercion.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "b200c01cc5c3ebc3f6f41c004b0ebc65ce0a4b9620891fc5901c5c06ec4d4771", + "size_in_bytes": 12522 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/collection.py", + "path_type": "hardlink", + "sha256": "00fc12146cb9c68b60386253ca39455513f3fdb4612accdbd073d40977238ea1", + "size_in_bytes": 1941 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/compat.py", + "path_type": "hardlink", + "sha256": "358b636fa10224f72105f5460cc9f0e0cfc5c4b3451130e5c4172c1470a2f5b2", + "size_in_bytes": 1352 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/decorators.py", + "path_type": "hardlink", + "sha256": "79b866fccecef7687c1341256757399b81989a7133da510bbccbff2c988da4d3", + "size_in_bytes": 6388 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/entity.py", + "path_type": "hardlink", + "sha256": "8d377c56250f4884c96cb89940472e0dd23bf0277bf6721be6d5cf7590b8a6ae", + "size_in_bytes": 33626 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/exceptions.py", + "path_type": "hardlink", + "sha256": "b46badf064494d961dc363eba059ea486905fdbfc8f7a6acce1a5c209aeff415", + "size_in_bytes": 901 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/ish.py", + "path_type": "hardlink", + "sha256": "6eaf4fba4c7cc69854b1cfea407ef4f14fd953fad4865341449f889ca198e90d", + "size_in_bytes": 1964 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/logz.py", + "path_type": "hardlink", + "sha256": "bc4c2664523f2efc23587103bc5d66c628861bda29a5ff84e6807a2b4a431212", + "size_in_bytes": 6089 + }, + { + "_path": "lib/python3.13/site-packages/conda/auxlib/type_coercion.py", + "path_type": "hardlink", + "sha256": "9ef40a9e10fc0c468932e7a6452ae01e74435db3982f950c9a88d0c34eca3e2c", + "size_in_bytes": 8936 + }, + { + "_path": "lib/python3.13/site-packages/conda/base/__init__.py", + "path_type": "hardlink", + "sha256": "c78554b973c6daa6d4ac9e4a6671500c3ee9d59be71ec2fc1b946e12a4ec6316", + "size_in_bytes": 520 + }, + { + "_path": "lib/python3.13/site-packages/conda/base/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "fc584fd50a8f043228f0d5380769c3d8dd0c1d0a4a008d31185bc5570b05b589", + "size_in_bytes": 606 + }, + { + "_path": "lib/python3.13/site-packages/conda/base/__pycache__/constants.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "7821575df46544917cb238a324d24a3f865c131655711769c5291d5e76074385", + "size_in_bytes": 11777 + }, + { + "_path": "lib/python3.13/site-packages/conda/base/__pycache__/context.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "52b119fc5c79cdf7d80308fc65285019950096952f4311eb1d3ef876187e3d5b", + "size_in_bytes": 92042 + }, + { + "_path": "lib/python3.13/site-packages/conda/base/constants.py", + "path_type": "hardlink", + "sha256": "3a5cacd1696b6a799f5f6f0308cb323a74d7d2d72d5f5db91cf43858f8e0053e", + "size_in_bytes": 11156 + }, + { + "_path": "lib/python3.13/site-packages/conda/base/context.py", + "path_type": "hardlink", + "sha256": "ddf57fa420123ef142b63120e0b2cb210fa5c9a58c863b23d3523051123a0797", + "size_in_bytes": 89984 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__init__.py", + "path_type": "hardlink", + "sha256": "0e4b97dda37a9aefddd90cb1d33d25ffbf37638653ccbeb81f2790eac17b018f", + "size_in_bytes": 106 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "93405bb49268116dd37a57d8f387a21840335753ba15678dfd4a1a53561fbb64", + "size_in_bytes": 177 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/actions.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f1e2197779535ef7a138171133d43312f5766e5c8cd275d1279d35621a581625", + "size_in_bytes": 2447 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/common.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "acc4ae95a96cc4e2b7957d7c8360eaee09f7776f2e92b75ccf5ec105af804536", + "size_in_bytes": 15274 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/conda_argparse.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a8444f52229d08e74cea92832379198dcb29755c7e0116fd0325460be0a29b02", + "size_in_bytes": 14273 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/find_commands.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "ecddb2698e9d8e651e0d252303a834792df839080e6206ff0ed1557d4cd14317", + "size_in_bytes": 3770 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/helpers.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "7bddabc433a2ce6a87deb736cdc0da5a9b4573ed4a6945a5071b81028802a24d", + "size_in_bytes": 21005 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/install.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "43e10c629338d955d1812c51f4ba0860045e1df9d99d8776350c3e4a7e48ad66", + "size_in_bytes": 22557 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "ae4ab0712f83151e1bb2d4c1d2dbe9dc43271d2540618fef3ae3d3f982ed888c", + "size_in_bytes": 4413 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_clean.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "c12eb6632aa5cd7249896712e08bfb076ead62c38b55b2ac540555480feb5ad1", + "size_in_bytes": 15573 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_commands.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "54f1b343250b0bd2401551ad3f62788d63d1455b2c2b186e471a89cbae946185", + "size_in_bytes": 1417 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_compare.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "aa869f219fd23f2117b6b0dfedb4c32925b2843092a2c6277bee2a40366e7924", + "size_in_bytes": 5742 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_config.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "b47735bb6a7ed0df914916b292b7ff878738ce6d6f1443284bfd5732823247cb", + "size_in_bytes": 36434 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_create.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "37ec8ef61e75d0baa403ef5d1c0a622767cf50c711c6b33524c9b88b60705752", + "size_in_bytes": 5935 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_env.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "94b443bccb0cd3a412352e4196b02c240f2d4a8b12b695d32ea26e070abfc84a", + "size_in_bytes": 1721 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_env_config.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "c1ca5a9de9576d7594080fd4a2fd4b613022511e610a3170bec454c3173a4e1b", + "size_in_bytes": 1559 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_env_create.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1e8b94078c52961675856e431024bc880ef058f522da37d87c46b6b3e2008445", + "size_in_bytes": 7220 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_env_list.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f3cb616704b11d735e895e3b8bbd2e49d9d3f95bdbedd9dd4d369bc47e7024dd", + "size_in_bytes": 1219 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_env_remove.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f5a9f8c270047c60bb2274e354903d77e5c189820863a1dabfb4bdfd3f054277", + "size_in_bytes": 1664 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_env_update.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "250291adbdae3563e258f3dc9296f7f57b2bbf1483319514eef9eeedde30530f", + "size_in_bytes": 5647 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_env_vars.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "8529812cf308e692422d56b6bccaeda2fd90f32bc95ae3a5d91406aee1c912f9", + "size_in_bytes": 5569 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_export.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "28ce8dbddca9fda6e36a9c6c99108e1a2ded7d8caae63210382d374c9d3a51fd", + "size_in_bytes": 6160 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_info.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d56f28ce39395dd5528a3368f7903adb639e8375bb670c82a35e24575dd69a99", + "size_in_bytes": 26306 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_init.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "dec280521990bb299cd404279109f4c3d0329915c703d067bd932400ca3b1926", + "size_in_bytes": 6450 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_install.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "0d55d69e3e6b2f75ca9faefa42b2e6e5243acff4f3a89f117a8586db4271d006", + "size_in_bytes": 5924 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_list.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "cd5d8f49b86da28036478432e75573b1ec84c5ecd248b6eab1bc781c610377e4", + "size_in_bytes": 13733 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_mock_activate.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "9578cd6f53999e9551a6de72e011a90c709d061782c4f4bb02a14be819988f45", + "size_in_bytes": 1331 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_mock_deactivate.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "bfc248704fc842c7eabffe372be724d3aeaceb64cd7b832cf04898cbffa7c396", + "size_in_bytes": 1210 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_notices.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "ce7f4d32eb1034bc334caa20a3f2a186e8bec5ac445d82cb38ab9e246c8a48b0", + "size_in_bytes": 2176 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_package.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "2e7a8208b4b3ed39c2f27c4999a158f622e3a728726ef56639d4322407451033", + "size_in_bytes": 13230 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_pip.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1a9dd2da2cfce60acaf4550da0fdb5e4be612e63fd362a09a2371a73e8e37cb9", + "size_in_bytes": 1230 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_remove.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "2df78053e0c7893f7b8bd858046a696ebaeb3a7d315e2c5aab5d876b7af28e62", + "size_in_bytes": 8603 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_rename.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "81aff62ba6ef6979becd37bf3c3fa1c0402bb2a658db5cb07bd351fd44a2ea9c", + "size_in_bytes": 7075 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_run.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "8dd6de8353abdfa70fb6140ee375600a52f912621fbd1eb0fae0d13d86840177", + "size_in_bytes": 4946 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_search.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "5c8b642097d0bbe7b8fa3c1782fa593852a316894b7c9dbf8ffa23912a435113", + "size_in_bytes": 12300 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/__pycache__/main_update.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1b26e0a0954ad811baf7c55aa95166979aab0c19251f26fcc06d9f9faf51d9e7", + "size_in_bytes": 4121 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/actions.py", + "path_type": "hardlink", + "sha256": "a5db089933142b630c6574968a32464f99d3b93aee857394c450deeb3e04f7e4", + "size_in_bytes": 1558 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/common.py", + "path_type": "hardlink", + "sha256": "b495ac99ba305ae6370ab54f748a3b2b7d4680ad72e1e55a228f698f65b3c48a", + "size_in_bytes": 12035 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/conda_argparse.py", + "path_type": "hardlink", + "sha256": "28d8ed7cb10cc82798e82cf479be42de48067f7e1084d1d7d32af14faa38ef73", + "size_in_bytes": 13424 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/find_commands.py", + "path_type": "hardlink", + "sha256": "208984d768b03971d287ad6191ebbbae716af278f89d46d54a24ebe1dc8f9380", + "size_in_bytes": 2596 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/helpers.py", + "path_type": "hardlink", + "sha256": "4c8ff76720859f7b202bec2f7e8cb2b466affe54151d74e4cdf16516f598a36d", + "size_in_bytes": 20566 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/install.py", + "path_type": "hardlink", + "sha256": "ce5a7d7bee777f5a101dd929874674b02f68e66da29b98a23b825cdd862f3061", + "size_in_bytes": 20680 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main.py", + "path_type": "hardlink", + "sha256": "9e55db3904a345c54414619989fc1452e9bdfb53b239df77f38e5f49c660727a", + "size_in_bytes": 3451 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_clean.py", + "path_type": "hardlink", + "sha256": "e4099d4cb398f2ef30ab2cdb6c06363a33eafe2d205a7c447a37fdc0cf4d43c8", + "size_in_bytes": 12135 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_commands.py", + "path_type": "hardlink", + "sha256": "604b8b60597944a98cc9db46cb40253aeba0524e65c91c7f1e8e347cd5a1ac65", + "size_in_bytes": 1120 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_compare.py", + "path_type": "hardlink", + "sha256": "8edc80f4ee73b1395a4fb01b50cc115c22fcbb381c9961e9a0ff801b0ce2cc47", + "size_in_bytes": 4119 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_config.py", + "path_type": "hardlink", + "sha256": "744c9405065f255236406cb0390ef3e1274b52e89c528355354bf0e8336bd9d7", + "size_in_bytes": 32063 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_create.py", + "path_type": "hardlink", + "sha256": "20f60315c0f1c09835a3365822b46292b5c43b33e545ff59e49a06d8d1e48cbc", + "size_in_bytes": 5779 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_env.py", + "path_type": "hardlink", + "sha256": "0c87e14850de73cbdcf0cca155749cdea26f69653917ba244a5fe5484ca42b3e", + "size_in_bytes": 1239 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_env_config.py", + "path_type": "hardlink", + "sha256": "d1f956c351054ee8681e21e341cd18b1205c2a018b7a60e8ae5b2458e8184e4f", + "size_in_bytes": 1167 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_env_create.py", + "path_type": "hardlink", + "sha256": "5309c302fc4739bd1eeb70b8ffc42c739904089d5b58a7dde8ff5cedf9082e95", + "size_in_bytes": 6704 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_env_list.py", + "path_type": "hardlink", + "sha256": "1d92d389c5c1ab65f1da57684e7f4da6b5e55583c130709967351bd148af793b", + "size_in_bytes": 1103 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_env_remove.py", + "path_type": "hardlink", + "sha256": "6d1c99cf1d90fe913bb0634acb9dff10c8715f612de2813d2df6fabadba30249", + "size_in_bytes": 1505 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_env_update.py", + "path_type": "hardlink", + "sha256": "2ef6e216a58b507297b845e1d7d9ce101db780814a020f80a2f0d96ae521ba9f", + "size_in_bytes": 5634 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_env_vars.py", + "path_type": "hardlink", + "sha256": "5699b9c823f955b25e9de8c8deffb09e43dd39481898bfa82faad7a6106c4255", + "size_in_bytes": 4623 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_export.py", + "path_type": "hardlink", + "sha256": "d3e1f822f882882493114cd90f6b1a9affdaaed9e23e796751a6680859afe66e", + "size_in_bytes": 6796 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_info.py", + "path_type": "hardlink", + "sha256": "a995eb1551266da919f23a5c6b279c778a7da924cd6fcb687dfc90a75264f9c2", + "size_in_bytes": 18712 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_init.py", + "path_type": "hardlink", + "sha256": "08538146092613c97914c9be806e915b4ff7d70c66320507caf545a3bfe3a95f", + "size_in_bytes": 6192 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_install.py", + "path_type": "hardlink", + "sha256": "a27375f0911b6d37d6f5ea6cb32f3784e5c1071adb2699820faa1637c5c5bda8", + "size_in_bytes": 5725 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_list.py", + "path_type": "hardlink", + "sha256": "8a450cfdffb8cac3affb65821f1fc525f53132c3af69a4d85656305c70d495a1", + "size_in_bytes": 11316 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_mock_activate.py", + "path_type": "hardlink", + "sha256": "42f54376f3b7c780c5f9a7536730264b33b9a1a01243c29ad0d4e6257eb8c525", + "size_in_bytes": 893 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_mock_deactivate.py", + "path_type": "hardlink", + "sha256": "6ad3b077a51f85f6ea7fa85d5211a45892d28f23c42666611889dcdb3f21693e", + "size_in_bytes": 823 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_notices.py", + "path_type": "hardlink", + "sha256": "cbf1d690537993eb25eaee38dec7c30815d817b96066bfbe992f1491c7dd0fc3", + "size_in_bytes": 1666 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_package.py", + "path_type": "hardlink", + "sha256": "26a2532e0fcae066dd26aa5ffb070a05f3eb620c094472b5341aca87cdb185e7", + "size_in_bytes": 8743 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_pip.py", + "path_type": "hardlink", + "sha256": "df896d82dd72d9c9e692d6bb3c7d0e468fb0bc29d48fe5bbb2e7f0224afcbb7d", + "size_in_bytes": 872 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_remove.py", + "path_type": "hardlink", + "sha256": "67b0d6baa268a2309a7820ac53f0268c7e8644b15831659a4814cd7c43626121", + "size_in_bytes": 7722 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_rename.py", + "path_type": "hardlink", + "sha256": "0ffc26e3fabae731cd849edcc53408f611da82aa201ea79111aa55785c3a65a3", + "size_in_bytes": 5665 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_run.py", + "path_type": "hardlink", + "sha256": "0cb878ec908c278696ac4bb849d1dcf70a716d1926e508a5d884a82d9a8e2b3c", + "size_in_bytes": 4055 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_search.py", + "path_type": "hardlink", + "sha256": "5db5d1ba107cda20badb3920e51bba492c6ad34fac3a26e77ab20a40540d52f5", + "size_in_bytes": 10437 + }, + { + "_path": "lib/python3.13/site-packages/conda/cli/main_update.py", + "path_type": "hardlink", + "sha256": "34990b69beb86eb735862ebed007f5e4b741e2b30add4a2fa780a274d6f331b4", + "size_in_bytes": 3962 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__init__.py", + "path_type": "hardlink", + "sha256": "2f80fae1eb63b4a30bdacfefd6501eb1c16c1ce2e8e7d1f2d6f99b097bbc3164", + "size_in_bytes": 494 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "7f503f7ed9aeb72b0bb50995675efe9c576208cd7b5a614c50d55557214f5d40", + "size_in_bytes": 582 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/_logic.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "ce07cb7374cce7433a95e98e494c904194774ad2e6ec14ab757370fb16c51c50", + "size_in_bytes": 34537 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/compat.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "5b85d6b03a1ff585fac3fe1dccea732f3944f0bfbb16a1bf144922e5f40b6802", + "size_in_bytes": 3357 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/configuration.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "862d3919af7539998a7adadcde5f481aaf6a733876898cf8b7eed7c73290ad1c", + "size_in_bytes": 85210 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/constants.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "5dd76c3a47fc8f64a12dd6b60ed30f4a82a9759b0da901d4790662d4d7fcbab5", + "size_in_bytes": 260 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/io.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "326df12b42c0cf4cd2e415fd7b0c40cb894e2e2613aee6d3b0259968a8070e65", + "size_in_bytes": 26341 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/iterators.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "e8242977f8aa7a0c2531b0edfea90044f0dca1a30dd6c7fa161072f6cb4de3bd", + "size_in_bytes": 1693 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/logic.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "91eae8426e7f4a4cca3557a145541f0848ca4c28303778b5f6e809f8ea2c0c16", + "size_in_bytes": 16076 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/signals.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1a94e5f08ec35757c9d35e362b3bcfd205ea7f88f2a331c2cdf01b6735ef4129", + "size_in_bytes": 2933 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/toposort.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "250ae1e55f3f0658b0b8f0537718a2d73966eceacef832e520f79f1fc917486e", + "size_in_bytes": 4625 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/__pycache__/url.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "34aea4fc1dd46d64eda153101a95f7cd7513d63300eee2502639093770d4fc67", + "size_in_bytes": 20915 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_logic.py", + "path_type": "hardlink", + "sha256": "5cde7c48112aaf80e49d4543353a72be7913b01389ca50bffc7ef24d6e525b66", + "size_in_bytes": 27446 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_os/__init__.py", + "path_type": "hardlink", + "sha256": "71148166f66fd4236e7d3161d549b073a90f7592fc5c175e5bffdde6c5b3932a", + "size_in_bytes": 436 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_os/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "4b47838d4aac3ed747baa3934d2d243c2a63be3aac40cdad05587d79574ff0fa", + "size_in_bytes": 529 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_os/__pycache__/linux.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "272c688922953c2ab730802ac1791e05c473bcf91c221854260748e3fc71d9b2", + "size_in_bytes": 2226 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_os/__pycache__/osx.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "4c1cba8e2d6d3d48757c443a1187f28343a11d3c6af48172e5afcda9e2de817c", + "size_in_bytes": 947 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_os/__pycache__/unix.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "06e63adf98b032fbcf930a5776adbcf53fa613bc8b86213d1832dde78b858b20", + "size_in_bytes": 722 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_os/__pycache__/windows.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "8c6b3f3a497bb99fcf90e9d1b988b34df3a4768f359847fe625ef3405658fe97", + "size_in_bytes": 7175 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_os/linux.py", + "path_type": "hardlink", + "sha256": "33a5912ccef183efdb7620d09f61bc2a80e93252f73ca8dfaf846bda61ea1f79", + "size_in_bytes": 2053 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_os/osx.py", + "path_type": "hardlink", + "sha256": "b1a39d8ee705f7def3d8da8b599b60ade070ed0c95af540fc908f5e91b612b06", + "size_in_bytes": 742 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_os/unix.py", + "path_type": "hardlink", + "sha256": "dc2b52c9c7ac4ee66f5b5f91c9520e1ca7e502e6dee7592e869138cf2431aed8", + "size_in_bytes": 353 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/_os/windows.py", + "path_type": "hardlink", + "sha256": "bfb11d900a18cbf73eb2545fb55d7cdee5a0b2db3c00425f6b73a8bcd9d41df3", + "size_in_bytes": 5496 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/compat.py", + "path_type": "hardlink", + "sha256": "195b37872022efc0ffcec734cc2b9d74bec41f498d2b9da98d6623471c07ee62", + "size_in_bytes": 3071 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/configuration.py", + "path_type": "hardlink", + "sha256": "e80d147f7e6b996c7b5a3ca8d64188c13fcd41ee49988457666aecdf431eb54e", + "size_in_bytes": 64298 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/constants.py", + "path_type": "hardlink", + "sha256": "efff38283fa8ff29c78168b9f393324223bb479f4e03a8abe2a1d43a3ff7488f", + "size_in_bytes": 589 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/io.py", + "path_type": "hardlink", + "sha256": "64f328c4b8258e0bab76849fee327c5c17f426ceb37d31495c409cc5583058b4", + "size_in_bytes": 17176 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/iterators.py", + "path_type": "hardlink", + "sha256": "09a04bf8b782b82ed24699e7b24b1b8bb002b067e87aabf745d162ec086dad5e", + "size_in_bytes": 1107 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/logic.py", + "path_type": "hardlink", + "sha256": "6805e57acad8d8f06e8ae5b82a4aa21bf5f7e49363ed94140316b312255ad4f1", + "size_in_bytes": 11114 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/path/__init__.py", + "path_type": "hardlink", + "sha256": "96b095e3861856899537192f130c2059020aff0261e1fa68a24de4a603a6dc5d", + "size_in_bytes": 5390 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/path/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "48652ef91983c717576c6369f29f9c88ac69f3f0a18d5ad53063a885f4c3b064", + "size_in_bytes": 6378 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/path/__pycache__/_cygpath.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "b038934aef4ff069026c35959b1c54449b58c59a3d6979ac9d1a1cc4a1165bbb", + "size_in_bytes": 8588 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/path/__pycache__/directories.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "9ceb7ddc10f50d71146fe15d02a2fd147e9eb06ef5531ec9fbd1bde8041d0863", + "size_in_bytes": 3051 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/path/__pycache__/python.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "3656c9a1714c7fbb90b0508c59dc133932f22658b6589a946c89fefe93c51e1b", + "size_in_bytes": 5808 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/path/__pycache__/windows.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "e82d39441282cb75a577e15d582c947fe0b2414b3cc7515e02363fe67465c074", + "size_in_bytes": 5946 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/path/_cygpath.py", + "path_type": "hardlink", + "sha256": "cceed12f21998a91fb5e1d63d1a29a523e4add005b7b99caf159ebddc72a338f", + "size_in_bytes": 7046 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/path/directories.py", + "path_type": "hardlink", + "sha256": "31e33584a4b778c9ed838225496d87539db10b8b1b330fbed3eb6c2a7cc6fccb", + "size_in_bytes": 1675 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/path/python.py", + "path_type": "hardlink", + "sha256": "f118790cae4bc5dcea09676fd374b72edbc49cc9ec87144229441bf4cea0e4fa", + "size_in_bytes": 4275 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/path/windows.py", + "path_type": "hardlink", + "sha256": "20566eb846099c10653219166a5b8bf0e4e086dc1a10220cf862d025ec40545a", + "size_in_bytes": 5444 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/pkg_formats/__init__.py", + "path_type": "hardlink", + "sha256": "3de5736b62ac4e6cb80d2abca9ef488c97b78f0f09e56a58d3f2d523b32d468c", + "size_in_bytes": 201 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/pkg_formats/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "449c963a90911e2a1b1fe71e0752fe0078f4db5a1533d7b4d059de5f34c94077", + "size_in_bytes": 341 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/pkg_formats/__pycache__/python.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "4b4914e9732518fd6f0b035a2dba1dd610232a0a3840abd8dd93065b7f556d27", + "size_in_bytes": 1418 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/pkg_formats/python.py", + "path_type": "hardlink", + "sha256": "b4886797a3e8962a8a9f081d46b4e3b57d44ba67d609af12cfa022154695e5c5", + "size_in_bytes": 1083 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/serialize/__init__.py", + "path_type": "hardlink", + "sha256": "b0158cbcfa3fb73e969d7ab3c940d775075b8934298eb8e17f8b821587218137", + "size_in_bytes": 2017 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/serialize/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "8358120243b21e1c8d95da016b5127122b958d417dac0a5ba7154ec13f6be951", + "size_in_bytes": 3067 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/serialize/__pycache__/json.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "6605bb83567e4b9fb0d6b626b3078fa85d95a94b77e5c2cb6db8bcb65b307f44", + "size_in_bytes": 2147 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/serialize/json.py", + "path_type": "hardlink", + "sha256": "a065952e8588bf8da39590c6b521d5a57034f6d63f5c7fc4b69f462f4b8f32be", + "size_in_bytes": 1200 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/signals.py", + "path_type": "hardlink", + "sha256": "6bb7abf140793053bcbf5731c38d592cdcd4d0a2dc475636bc57f978b7999f32", + "size_in_bytes": 1788 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/toposort.py", + "path_type": "hardlink", + "sha256": "8da4f56ec34eee74eb69d26882f3ddabd417f9a05040ccc5e204138c29effa01", + "size_in_bytes": 3288 + }, + { + "_path": "lib/python3.13/site-packages/conda/common/url.py", + "path_type": "hardlink", + "sha256": "d0fea3c7f773428429fa19c0b0ac01dc875f5856f59bdae1ce4bd606a365cef0", + "size_in_bytes": 15626 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__init__.py", + "path_type": "hardlink", + "sha256": "24b68b43a1cb61790088235fa08e7fa0da43ecc17f755db8742c3af8248fdd2d", + "size_in_bytes": 698 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "71e4ba7c9aa8ce53ec6dd2fcf21bb1a906746b83d7880e0d0b9dd00789936af8", + "size_in_bytes": 784 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/envs_manager.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "52155928028105aa1c9c4505186288a98713018cc648be34221370dbea66ec40", + "size_in_bytes": 10230 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/index.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a06c1a8066ed7eb90f6f62c652ac831c06bf8a16995439f76fe4ba6087584751", + "size_in_bytes": 30383 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/initialize.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "83765f3c460bc81f2cf4c25977bd3974e24227319520e6bd5e6093732d294b1b", + "size_in_bytes": 76666 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/link.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "070586d6a01d47e03ff71277280f31e83989722ab14fc96538bbd33375964113", + "size_in_bytes": 71211 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/package_cache_data.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "0e0bc5b7274d49cda45f4bb321abe4fec26f2612c250ba7df42691dd93853f1f", + "size_in_bytes": 45546 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/path_actions.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1b75a030950dcefe98f53be0855d0840f27a5a4b7f7b68afe50af5ad13b756cf", + "size_in_bytes": 62889 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/portability.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "27382a2fa6b9c3e2310a268099fe522ffa0a601ceca620107008da6a51ebf739", + "size_in_bytes": 13776 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/prefix_data.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "4eacb126083467f6033cbd2765fa6c782533094e48af60bb2eb4525f10199a34", + "size_in_bytes": 40469 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/solve.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "54a7fb0b698da2a29cb5b93da2b7409274170ab13a1e613cefc4cac49bd9e76c", + "size_in_bytes": 65502 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/__pycache__/subdir_data.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "7f49538f489f33bcbb150373cde031faad0ebc245e20271f8934c95f32f04bb0", + "size_in_bytes": 33016 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/envs_manager.py", + "path_type": "hardlink", + "sha256": "7d9c5cdc5370aa2dabe251d61b06d675cdc2b78f2e6b36a0a47bfc9b4ff98bb2", + "size_in_bytes": 7699 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/index.py", + "path_type": "hardlink", + "sha256": "8ca90a951a08711fc36ef650c995a174ca488a6e8810c32f0ac1eaaa6f939e0f", + "size_in_bytes": 26666 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/initialize.py", + "path_type": "hardlink", + "sha256": "232ff61a1b81d5f3900f7205cfbbeeb70b246cc045f05407cc1b4ad43ca28db7", + "size_in_bytes": 80730 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/link.py", + "path_type": "hardlink", + "sha256": "518446b8ec835741d095b1ff7a34c2e29ae9e953e5e2f85de25112996eb5fe40", + "size_in_bytes": 64594 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/package_cache_data.py", + "path_type": "hardlink", + "sha256": "a2eca44a6d04ca669198035f64580cb9f0b71459cf4b1a5e65d3aea97e4e7993", + "size_in_bytes": 39985 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/path_actions.py", + "path_type": "hardlink", + "sha256": "0eb75e79d6ebcc6e0bd8798c0a4d2427a54117f67b77cb0ca24f6d459d7b0c8a", + "size_in_bytes": 51773 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/portability.py", + "path_type": "hardlink", + "sha256": "6ed580cdca3763eae2699c621204dd87d61402a2f5a1b673550ac31992069b55", + "size_in_bytes": 16066 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/prefix_data.py", + "path_type": "hardlink", + "sha256": "83bf57adcb60c5e983ee6af2416a45381263ecae483f94a04d9471a9707235b0", + "size_in_bytes": 32149 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/solve.py", + "path_type": "hardlink", + "sha256": "67f83f5a0a69dcdc96f9ad104fbb2673221c378bff94dacb21e3d97912e1f1ab", + "size_in_bytes": 62328 + }, + { + "_path": "lib/python3.13/site-packages/conda/core/subdir_data.py", + "path_type": "hardlink", + "sha256": "1726f5a33f348169f0e3ae79e13196f00eede3e8b3f67679b52457bfe06a231b", + "size_in_bytes": 28754 + }, + { + "_path": "lib/python3.13/site-packages/conda/deprecations.py", + "path_type": "hardlink", + "sha256": "094547ce19b211328c2bacaf5f32376ce464331a28f2b042b9e5c5dc233b73c8", + "size_in_bytes": 16473 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/__init__.py", + "path_type": "hardlink", + "sha256": "5dceb03894b1494433ed9f753cf6d9dbb580bf6f2b36e346cb459235d6bdb907", + "size_in_bytes": 75 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "0806116dbc28ce9e3898f54c89238f2832916a3466d31d730dca0ba33117e3a3", + "size_in_bytes": 147 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/__pycache__/env.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "fcdda0c2d7222f736900020a245ce2b33a1eff2e0d443a52d13f531e31fc59df", + "size_in_bytes": 20162 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/__pycache__/pip_util.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a8c41ee129187f958672db480f94f85015fe5ada6e3e06d348af7c4a20ac7b04", + "size_in_bytes": 2188 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/env.py", + "path_type": "hardlink", + "sha256": "b707384a6023145b7f88443424dacf5c5fe901407c96fa6489a88d7033ec0e40", + "size_in_bytes": 15361 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/installers/__init__.py", + "path_type": "hardlink", + "sha256": "5dceb03894b1494433ed9f753cf6d9dbb580bf6f2b36e346cb459235d6bdb907", + "size_in_bytes": 75 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/installers/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "7a66548e4e7fffae4200d5c2d6d3669dae9bba374367b929429ea56d7b4bdd47", + "size_in_bytes": 158 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/installers/__pycache__/base.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "8b42cff20f02fe5ffa316e0aacf4780a37e5c5c20924ba23fbd96090d3698c62", + "size_in_bytes": 718 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/installers/__pycache__/conda.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "af2f77d9b246cc8125a0eb55e4936da69e9613d37d4a56d0e1770fca2cd399af", + "size_in_bytes": 5715 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/installers/__pycache__/pip.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d46a20a0d2c3187bef7674fe02d78143a21fbdfa906783b80606966a4cff9a32", + "size_in_bytes": 3369 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/installers/base.py", + "path_type": "hardlink", + "sha256": "9f76b298db604f3d6c12cdc177a629e1818172fcb8d234a3a176c90db80f58bb", + "size_in_bytes": 466 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/installers/conda.py", + "path_type": "hardlink", + "sha256": "1fd13aa8b6e637238d7e37b15a718f9774cec8f38a044e374185426bf03ece24", + "size_in_bytes": 5076 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/installers/pip.py", + "path_type": "hardlink", + "sha256": "cc279bc6f91649d03edd9c2902afc98bc591391fb06eef5b37710309b56da494", + "size_in_bytes": 2585 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/pip_util.py", + "path_type": "hardlink", + "sha256": "8a0991bdc8b5587ebd1fd0acd79a5fad6e2ec47de91db26d50f7c9a88d6af076", + "size_in_bytes": 1420 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/__init__.py", + "path_type": "hardlink", + "sha256": "9a7ec2ca898b19665a90e9d1bac4c61f3c20f69acabbb54c0381ae037d37732d", + "size_in_bytes": 2482 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "0ceff93c2e9aac68a7701d54bfa4c3e2ef9167ca2ebcb5f534afc8f02bb9bf68", + "size_in_bytes": 3063 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/__pycache__/binstar.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f653dafc07011ac2fcfbcd5239a91d104baa17139dbbb05388c4e49f5ba937dd", + "size_in_bytes": 412 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/__pycache__/cep_24.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d54302c53c862e820623c4371a857852b6289a4ec44af5d6bf2f975e05e4bc89", + "size_in_bytes": 2787 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/__pycache__/explicit.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "b946bb3caf70a1eb3c52a944e8c2ff462cebd5b71e74cde16afe30610a141660", + "size_in_bytes": 2585 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/__pycache__/requirements.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1a2a945d33f109e5c9630ea70d815328c1df9406d9106e4619045e63cfcf0311", + "size_in_bytes": 6177 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/__pycache__/yaml_file.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "2f315783add55663fd0ac3699a3430c4ae803953646933bdbfc941df34894c13", + "size_in_bytes": 3797 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/binstar.py", + "path_type": "hardlink", + "sha256": "083ab92e1e89a7410e9ed18f30985d27f662c431f727b606d1c618eaff68af0c", + "size_in_bytes": 241 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/cep_24.py", + "path_type": "hardlink", + "sha256": "b1a0b8b88c5d9598ded56fd020c06ff0aad1d23e2c6b409d87ace859027e1619", + "size_in_bytes": 1938 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/explicit.py", + "path_type": "hardlink", + "sha256": "ca92963153d163a00fcb61192a1b633891a0c5f52351ca37ef0026b0dfb218b7", + "size_in_bytes": 2263 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/requirements.py", + "path_type": "hardlink", + "sha256": "f139f2f2a8b55c040447eabe7d0f29475ae4fcf1861e04e79e4c205172356a78", + "size_in_bytes": 5123 + }, + { + "_path": "lib/python3.13/site-packages/conda/env/specs/yaml_file.py", + "path_type": "hardlink", + "sha256": "4a88f2c923ea94f15fd1f0cc7faca80d0970fbd3c54b19aee0024db7fa402699", + "size_in_bytes": 2701 + }, + { + "_path": "lib/python3.13/site-packages/conda/exception_handler.py", + "path_type": "hardlink", + "sha256": "393bec923c72913f4a78c45424e20e67cbeab379ce0c1b5dd0b6224b7a29a506", + "size_in_bytes": 14976 + }, + { + "_path": "lib/python3.13/site-packages/conda/exceptions.py", + "path_type": "hardlink", + "sha256": "47b8e0e1d5fcd5c4627077ee0309c86aaadf703f69409187d4fea831d70c0322", + "size_in_bytes": 48081 + }, + { + "_path": "lib/python3.13/site-packages/conda/exports.py", + "path_type": "hardlink", + "sha256": "7547d2055040fce17215553141c4e39b49fe3a420201adfc8641b35643f21b40", + "size_in_bytes": 6505 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/__init__.py", + "path_type": "hardlink", + "sha256": "9c607a5469f2d0f9abf3b68545926dfe3bf8159994569dcbdcf071bdfd9d38d4", + "size_in_bytes": 732 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "2c8479cb4689fa4957190f57506b6850cc074bbeb0b65e63f83713fc249a440f", + "size_in_bytes": 822 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/__pycache__/anaconda_client.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f4982f83a306720f7eee99419368dbd40961779ea48f0bed403fc1970c058600", + "size_in_bytes": 3295 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/__pycache__/logging.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "bc4326d4426a672dda74f481cc5b3fd82806853f443b7ad4263f402903f029f0", + "size_in_bytes": 7830 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/__pycache__/subprocess.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "48d3bdf20d85b38614a7a9244d491871302da62c5b794f224484ef6167a5ecce", + "size_in_bytes": 5883 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/anaconda_client.py", + "path_type": "hardlink", + "sha256": "5e69676f2463e391f5da59ec44c1c0f54ab5f21ed5750727334b53a3b6ba0fba", + "size_in_bytes": 1893 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/__init__.py", + "path_type": "hardlink", + "sha256": "105da33175cf64a0de48790a993fa9527abf611fe58f4f1b774f1690d3720cd0", + "size_in_bytes": 973 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "3c27cd89569747311f7635af47c8e32b5bbb06fde46486f2e07b6ef72f6211e6", + "size_in_bytes": 1101 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/__pycache__/download.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "41a05fdf31112cf0ae78fc818a0c30fd8336523cfa9eabcd1696990512844888", + "size_in_bytes": 14344 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/__pycache__/session.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "c6d45ecf7b0aa068b262831917f287bd551f001871081e3beee14fc688cc4f4c", + "size_in_bytes": 14289 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/adapters/__init__.py", + "path_type": "hardlink", + "sha256": "5dceb03894b1494433ed9f753cf6d9dbb580bf6f2b36e346cb459235d6bdb907", + "size_in_bytes": 75 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/adapters/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "5c7eac358a6fbea3f90c8958d6dde5fa6a6d210e5d261f73a07d0498e9213a3e", + "size_in_bytes": 172 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/adapters/__pycache__/ftp.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "4a955a533d0df5e59fcb80a846e81176adb985ffdbeb475acec77f815cfc27b8", + "size_in_bytes": 10260 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/adapters/__pycache__/http.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a47e1bfaf35d72f2ad07632f7a5ede4afd52bf3d893ccefd01fc6ae9a4b9f5d6", + "size_in_bytes": 3546 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/adapters/__pycache__/localfs.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f7b65e6242d8f9facc11938a0e5a4f1dd8fb86b00cea5645ce8051693968dcf2", + "size_in_bytes": 2648 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/adapters/__pycache__/s3.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "9bfa69cbc5a242728eb256ba73063504ee87ee39dd2c3e7549e6c8050514b605", + "size_in_bytes": 4477 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/adapters/ftp.py", + "path_type": "hardlink", + "sha256": "e1561e4357321a48b6449d205e28046ee7069191ccf26df986ffa1b785f4e84b", + "size_in_bytes": 9554 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/adapters/http.py", + "path_type": "hardlink", + "sha256": "c51c6c464c1a1eaa6ae411e22c6cec5b14224fbea05866799e91529cd0fb0b3e", + "size_in_bytes": 2825 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/adapters/localfs.py", + "path_type": "hardlink", + "sha256": "ecc758b91245c9bafb23922b524f9030ed82c472c339eb6add3dbea0b04d90dd", + "size_in_bytes": 1821 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/adapters/s3.py", + "path_type": "hardlink", + "sha256": "83556dffa349ff0bab5486a3fe03b9a13a4a1885dfd3b326cf8d9ff2d91c45d2", + "size_in_bytes": 3308 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/download.py", + "path_type": "hardlink", + "sha256": "952083cd9ac1f9b3bd0642d0d4b0501e288b904df5cc76dec958cc2ec6808d5b", + "size_in_bytes": 12254 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/connection/session.py", + "path_type": "hardlink", + "sha256": "e4512aae24f5abdcf84b48355fc1eae5593b30a8a3a957e6227ef15758e483f4", + "size_in_bytes": 11630 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/__init__.py", + "path_type": "hardlink", + "sha256": "d4520ad7f7819e0d17b49f799c88fdaa89e776c3cdb4cf6415c31b047ca5000f", + "size_in_bytes": 3575 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "5769ef5262942768bfcb4f156c6f27b0d0701d6828f2964058144f051d35c0a6", + "size_in_bytes": 4298 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/__pycache__/create.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "70feda149463581ee9cddc4f141ffac5ae65f7caf9377eea3a22baf0cde33a8b", + "size_in_bytes": 21252 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/__pycache__/delete.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "ed43dae13265196246a2165ed071617c4535d35680b7bf31a30ec3b10bbf6a65", + "size_in_bytes": 10109 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/__pycache__/link.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a2c1957d94b5ab23566e098e497c48041f79954e66ef76d5108f19b3c4f2bac5", + "size_in_bytes": 16592 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/__pycache__/lock.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "9e92be663f8f12e8a5daa80d2b98f4c4b247fa3714071a18c9a145cd5f976f29", + "size_in_bytes": 4392 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/__pycache__/permissions.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "861e7bddd857d507ee7aa4f096015b6cf1130ea6ad951250e520ae3821e9044c", + "size_in_bytes": 4738 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/__pycache__/read.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "fbcb24a908eb325d73529a6816e78894968834e361ca182dd8a85b662cc9d29f", + "size_in_bytes": 13365 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/__pycache__/test.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a7bab33de5ccd9f80f89231940c4d44aa50ea5a8aba42f5e5642c319a0153150", + "size_in_bytes": 4578 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/__pycache__/update.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d5325ac1a491e7f74eb0a4a13ccf80fa09c1450c678b694fdcd1ca46d16949f9", + "size_in_bytes": 6613 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/create.py", + "path_type": "hardlink", + "sha256": "7a1913a66b4f61972ce40fef25fc365946ac258c50987078c2793f53e23fa0cb", + "size_in_bytes": 17760 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/delete.py", + "path_type": "hardlink", + "sha256": "c8dca7674f3f01b5e9dfa7af6e4be732d7909b520dea69384957cdc956418c80", + "size_in_bytes": 10187 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/link.py", + "path_type": "hardlink", + "sha256": "178510401461d91cce5bececf91bc74c712f690f9802a7561d3fe173d76c4486", + "size_in_bytes": 13614 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/lock.py", + "path_type": "hardlink", + "sha256": "13a1571a79307769e7f88636d9e498b93172313b37c2102c31ed8bb154c116f5", + "size_in_bytes": 2856 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/permissions.py", + "path_type": "hardlink", + "sha256": "c80396163788f5b99750a4331ce5807727e476f9d4971b4183716c63f5caa688", + "size_in_bytes": 3057 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/read.py", + "path_type": "hardlink", + "sha256": "dad63727c14b19b848fcd3a2baee02a8e7b0046fe07e4255d7ff0fc72311be6b", + "size_in_bytes": 8503 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/test.py", + "path_type": "hardlink", + "sha256": "dd5872615a59221be0d298e3bba2fffbb510f4c292b7cbc669449d977ec29955", + "size_in_bytes": 3420 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/disk/update.py", + "path_type": "hardlink", + "sha256": "d12549dcc4102e0a841fe26dfd76305adf22e6a1612cf237064f130cb5f39eb3", + "size_in_bytes": 6150 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/logging.py", + "path_type": "hardlink", + "sha256": "f66940c014b2fa8a3b7c454010d10715de113bbd532d13705397a2c79bd1a5e2", + "size_in_bytes": 7384 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/__init__.py", + "path_type": "hardlink", + "sha256": "d77ff672164a4ca5155fcf8c66ae5628115c2620291d40f60b0ac3901a6fd14c", + "size_in_bytes": 32723 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "dcca763957ea923ac531e3a2d0183224c840a453d4c176024cc7342048e5d854", + "size_in_bytes": 39561 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/__pycache__/lock.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a6499959c74893ce1f8c807d0cbcc2ef92e2edaf322f3719cce24333879da19e", + "size_in_bytes": 289 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/jlap/__init__.py", + "path_type": "hardlink", + "sha256": "0a5527ff0c25031bbd3eec670e2743655fd2f8a0d0b0b03669855dc08c34433a", + "size_in_bytes": 138 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/jlap/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "debd9193cfc016284e4cd39ba42caec4367b256090cafdd0c9347483edd22046", + "size_in_bytes": 239 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/jlap/__pycache__/core.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "84ea16db3d2d15f713a51e66327593a1794432effb67ccd3f0de1a25913a0e19", + "size_in_bytes": 6321 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/jlap/__pycache__/fetch.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "e377d88e23b3057d99fdec8ed2ac4f6c16a0034df7afda2f726929a585d0f332", + "size_in_bytes": 19317 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/jlap/__pycache__/interface.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1d2085ed9e6d3a7c673e9bb4e2813bb3f9e66e0fadf8900bc39e740fa01eabf4", + "size_in_bytes": 6448 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/jlap/core.py", + "path_type": "hardlink", + "sha256": "e3ecdc234c1efc2d0c0efd9f99efe327b3967bd3756415cbdbb391b687685afb", + "size_in_bytes": 4146 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/jlap/fetch.py", + "path_type": "hardlink", + "sha256": "85db247f5295f6a65ded7a41f85c7255c8a4ef19c44d52a50032cfde4cb8ab66", + "size_in_bytes": 16284 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/jlap/interface.py", + "path_type": "hardlink", + "sha256": "57dff8402fc8ab95cbe414e37932419eb8f2a929032650c0749ddda2cb6c143b", + "size_in_bytes": 4659 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/repodata/lock.py", + "path_type": "hardlink", + "sha256": "2bc4118ffd1abb5ececf1ed629cfbd16ed9c8b93c0bcdc6442835eb2f2920aa7", + "size_in_bytes": 195 + }, + { + "_path": "lib/python3.13/site-packages/conda/gateways/subprocess.py", + "path_type": "hardlink", + "sha256": "f94b76f04c8148274b6678c4ec56a1c0817666b17de8a21e27cd6d3a882a8c8f", + "size_in_bytes": 4831 + }, + { + "_path": "lib/python3.13/site-packages/conda/history.py", + "path_type": "hardlink", + "sha256": "530d8bee27885cb882b774809a22e342a4f284ed14ac52f11fdbbf353ea5defd", + "size_in_bytes": 15723 + }, + { + "_path": "lib/python3.13/site-packages/conda/instructions.py", + "path_type": "hardlink", + "sha256": "41b483e468cb87642758ddb18eb1c9ecdaffb43d0d35512c164f13a4e1c6afd0", + "size_in_bytes": 2769 + }, + { + "_path": "lib/python3.13/site-packages/conda/misc.py", + "path_type": "hardlink", + "sha256": "c0eb6ef7fbabcb91f5dc86b1a569d2e19e2cbbbe912b6fba7d01d28e51a94bba", + "size_in_bytes": 11973 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__init__.py", + "path_type": "hardlink", + "sha256": "dcb9cdd4b8652807421113dd5933229851983584b3140b45dd2ec927378d19c8", + "size_in_bytes": 685 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a93cb3cf58ebe34b4ec735fa9ffe35d4fbdb56a2cb6ebcab475eccbf8d8ded96", + "size_in_bytes": 773 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__pycache__/channel.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "c0f38d2b7d51d54b175f4a1f6ba33d3b00febbb647f1d6ac3fbb0b9cffea5b28", + "size_in_bytes": 33025 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__pycache__/dist.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "cba4c666a1ef7b6f4e0549db1e6aa1013ff7f1586346bbf3367883815225e6b7", + "size_in_bytes": 16822 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__pycache__/enums.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "e9539602fce4721b4e6d8808acf6227f546cec39ece120f1b8479a2549cd525a", + "size_in_bytes": 7068 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__pycache__/environment.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "01a3a572848ec30db5a1d2f4e914486e25dcbd5bd0ef4bc054de26b61290aa88", + "size_in_bytes": 22348 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__pycache__/match_spec.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "fc4159ec5abded591fdf493cb7d6119ebc9629310b4471eae12bf271cca4e006", + "size_in_bytes": 55399 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__pycache__/package_info.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "bf27c4b0f31ebe07cdfcaab8bb961db40fd3766aeb708f604f819e65893fbae5", + "size_in_bytes": 3979 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__pycache__/prefix_graph.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f103312db13646e2e3067c402f8d8b16ca1404c7bfee4c4785fe40c3d02a2108", + "size_in_bytes": 21039 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__pycache__/records.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "21a1b9c17ffb397e697ee56d9cfddd38424cdcb05f8a55d404b29291b17d2832", + "size_in_bytes": 28426 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/__pycache__/version.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d94577bcfdd33dea91fadb101b1e5af6e114609ac06561b24a16ecf1165661f7", + "size_in_bytes": 31371 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/channel.py", + "path_type": "hardlink", + "sha256": "493d0af5c240a0585ad332937daaa9af2da20cf32261f1603a8294493f891057", + "size_in_bytes": 24359 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/dist.py", + "path_type": "hardlink", + "sha256": "28e102999c799985a75fdc071529e12fd6256ee3f3d3b58555a2c73baf9c0f72", + "size_in_bytes": 11940 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/enums.py", + "path_type": "hardlink", + "sha256": "1a3519e6ca0988cc0a11882c575c606d91abc3d9b95a251216c43aeab4d1a304", + "size_in_bytes": 4670 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/environment.py", + "path_type": "hardlink", + "sha256": "f73217221480050b9926b3c25ddbf29954e8e8fb8cd7cf691f31bc7f63d753b5", + "size_in_bytes": 21527 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/match_spec.py", + "path_type": "hardlink", + "sha256": "c3bcf974116758f06a824f32a99eeaf827b698ccaa439aa15bb8942978f7250e", + "size_in_bytes": 43595 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/package_info.py", + "path_type": "hardlink", + "sha256": "3e116ed748b22270b4773b7bbffa24121eb05c57ed294ed7cd72359735bb5472", + "size_in_bytes": 2257 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/prefix_graph.py", + "path_type": "hardlink", + "sha256": "e80c674199e91c01302776610b25c4d0695d0ef7d1f20d808b605dd41fcf64e9", + "size_in_bytes": 16633 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/records.py", + "path_type": "hardlink", + "sha256": "9e752f3e44d4f7b4f516a36063789c2d46f22a6c172bb7dd8a0d8e9642e38fd6", + "size_in_bytes": 23313 + }, + { + "_path": "lib/python3.13/site-packages/conda/models/version.py", + "path_type": "hardlink", + "sha256": "617301d119eefcbcc89fcfb23c1b8b322538234c289ea26a39b5498053ccac34", + "size_in_bytes": 26182 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/__init__.py", + "path_type": "hardlink", + "sha256": "a997a3149b0dc63f16cd4c9c1b3d429d3c032a348830b936aa6217250885f8d5", + "size_in_bytes": 115 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "80510a7156956a267f2e83b89628215d3afbd3249c5992be142ddb8b481a904a", + "size_in_bytes": 192 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/__pycache__/cache.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1c627251efcfca72a51abff9a75c5a53ead55f1f104afd52bfdf04395e363341", + "size_in_bytes": 8036 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/__pycache__/core.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "48334e1417420ac56625b165fcde57f3db3ee59f28bbd678284f620b26449e35", + "size_in_bytes": 8264 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/__pycache__/fetch.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "da9a5f9960a8083d27b5b53eeabcb3d956485ba90e969ce148c2ff8a5ac0e4e7", + "size_in_bytes": 3741 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/__pycache__/types.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "050d30d052c87f8c6d4b3e8de399ce82581804ff128fe08ac9e237c1a5d302c0", + "size_in_bytes": 5155 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/__pycache__/views.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "c2290d808797684384e6e3251586921dfce83cba93e3456aa0c91032b7d40cb1", + "size_in_bytes": 2587 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/cache.py", + "path_type": "hardlink", + "sha256": "9d69718feb995e0dc3bda0c2f9c571212d2145f94221fa1c9acef0dd77f98064", + "size_in_bytes": 5231 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/core.py", + "path_type": "hardlink", + "sha256": "5eb199e33035d1cd041390ee694d939b7226d0bd0d08c4f4d49eec40b455c823", + "size_in_bytes": 7170 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/fetch.py", + "path_type": "hardlink", + "sha256": "9d29eb4cc67cbdeb949c643eb32c2d586f2fe35028c1e064c8aae492f8f87be3", + "size_in_bytes": 2607 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/types.py", + "path_type": "hardlink", + "sha256": "cd53b37fe72d3372fc63366ce6d52bcdd90eaceb6cfff060e88cd8643e2f4678", + "size_in_bytes": 3615 + }, + { + "_path": "lib/python3.13/site-packages/conda/notices/views.py", + "path_type": "hardlink", + "sha256": "11eacf5527a79c5d5a6d5fd792cfcd64223f540699efdb6e303cda86df9c277f", + "size_in_bytes": 2040 + }, + { + "_path": "lib/python3.13/site-packages/conda/plan.py", + "path_type": "hardlink", + "sha256": "2677f8cb130306090c19c79c80f38e580ff5a3ed28c31f4bacc1b87fe8b9f3ce", + "size_in_bytes": 5678 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/__init__.py", + "path_type": "hardlink", + "sha256": "59287c24b0f7dac98f4cc161a33569feb2e15f249da861d855eba02325c5aa3c", + "size_in_bytes": 3909 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "cd6ab8baa37b4f9bfe53b90c5e7a20aa57e6cb65884e39a195b6de877be42b54", + "size_in_bytes": 4146 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/__pycache__/config.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a144dda688441cd7f7351690be5fc14527529dac3bf006796807cebb19a55520", + "size_in_bytes": 5785 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/__pycache__/hookspec.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f5b960a53128b865d5694f14eea5c2fba213197963c47c9e0b749c7c6d51f7c0", + "size_in_bytes": 21746 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/__pycache__/manager.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d645e4daa649dabc3639f3148ed3f0df12e4d37c0cea2da280a6ef40ee4be85a", + "size_in_bytes": 36934 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/__pycache__/solvers.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "4ec59462a079e726263d7445f5226e62cb98ab2e9e02d839e27319996492c2e5", + "size_in_bytes": 689 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/__pycache__/types.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "b246c875b112b146f93e82df329b6da4f0e536ad5136f275da6f3a4ee476a48f", + "size_in_bytes": 24556 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/config.py", + "path_type": "hardlink", + "sha256": "afeb5a6fb8dc235f1a0d3f40461a7ad0d0f1a0c22ca8fc8be80cc4a4cdbfc83e", + "size_in_bytes": 4294 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_exporters/__init__.py", + "path_type": "hardlink", + "sha256": "ba2c09fdc632719830c214c3669d3fcacc7b5fc6eea6da70f9527d9d7ad2fae1", + "size_in_bytes": 322 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_exporters/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "fe92de31d5b954604f74c9ad06b1f09c4d8357ba498c4230f9717a86384beae0", + "size_in_bytes": 363 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_exporters/__pycache__/environment_yml.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "29c764d9b93078dd87bcd5b0fc4e0e55d75a3e40be1816b2797e14ec8051ca9c", + "size_in_bytes": 4197 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_exporters/__pycache__/explicit.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "b609d76d4efe8829dd1899ddb6720956c411cedc5b53190e63089e44acf26efe", + "size_in_bytes": 3965 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_exporters/__pycache__/requirements_txt.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a3e26a450a1ce0684e468a2d09c793007dbba3aef6b8584a84cdf877049e01ae", + "size_in_bytes": 2641 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_exporters/environment_yml.py", + "path_type": "hardlink", + "sha256": "1d27af672372fb9086bf2f7a7ccaccbe6034c32cd3ec9f042f974b2e3d21a3f0", + "size_in_bytes": 3776 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_exporters/explicit.py", + "path_type": "hardlink", + "sha256": "772822f534bb50e42a83e91e3f98eaff9524a2b55194aad3236449488049f9fc", + "size_in_bytes": 3570 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_exporters/requirements_txt.py", + "path_type": "hardlink", + "sha256": "6c124a5e70b405081803f7e924a332234dd38ee27a323efb7aae4126501733d5", + "size_in_bytes": 2193 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_specifiers/__init__.py", + "path_type": "hardlink", + "sha256": "95b41221c8d84c2b1fd017ef58fbe3a9d119c0c81de8697d171ad904ac7e500d", + "size_in_bytes": 360 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_specifiers/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "9ab35dea867b72e8dd9b5c7dfbb3c9c3d0c6326108ae3c861cfdcdc244b336f2", + "size_in_bytes": 407 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_specifiers/__pycache__/cep_24.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "a454158c16f884fa808bfb571c330dc49041f6e7a9744fc02de108f7ec0ae6da", + "size_in_bytes": 689 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_specifiers/__pycache__/environment_yml.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "32846cb9736b5ca4049658ce2a96aaab192fc43c000c71ec92acbb187a3d6ae1", + "size_in_bytes": 705 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_specifiers/__pycache__/explicit.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "dd3780fdbcd9b734b44de153abe86711e9faa8a88aa9503fcbf39f0f9a46ea42", + "size_in_bytes": 657 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_specifiers/__pycache__/requirements_txt.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1438311b48c7d7267a1309ee5978c8742ad6e2cf64516eb01d0ac27533856450", + "size_in_bytes": 689 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_specifiers/cep_24.py", + "path_type": "hardlink", + "sha256": "e798ad4efcc097c44c80e7674d7468473c44a8e19ef1909ab69c6c477836c651", + "size_in_bytes": 454 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_specifiers/environment_yml.py", + "path_type": "hardlink", + "sha256": "7ce0f0a65bcc6cca91e7e9acf58729b31f407b5cc16f6bc6875ff831f050383b", + "size_in_bytes": 456 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_specifiers/explicit.py", + "path_type": "hardlink", + "sha256": "acd9b78c599a08f73072dc14468416de899d876de653d9fbad4cc24c63b2e5f7", + "size_in_bytes": 426 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/environment_specifiers/requirements_txt.py", + "path_type": "hardlink", + "sha256": "bacf9fc6ea8162e8c15f9237b0334d51b41c38a9f23f947db15246b25ec0897c", + "size_in_bytes": 454 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/hookspec.py", + "path_type": "hardlink", + "sha256": "eb70899bd3fa1e32a5ada5b5d955b63d250389d6bb68471eb088736cc02e9980", + "size_in_bytes": 22212 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/manager.py", + "path_type": "hardlink", + "sha256": "3dbe9d8c12121bb7abb14428b7e199f563eab33fdb50a2405834e87c28efad67", + "size_in_bytes": 32205 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/post_solves/__init__.py", + "path_type": "hardlink", + "sha256": "79c85f212d4aa2c9ee9593aadc72889bb62259b47f4f48662d617bec23ea9875", + "size_in_bytes": 281 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/post_solves/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "71d93add82edde1922a5f51cbf9fa638702fd2079092348933e960442cdbc731", + "size_in_bytes": 313 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/post_solves/__pycache__/signature_verification.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "5f24dde41016d6006dd75c4c9affe04831f29d865bb46f38d1fbbea598afb765", + "size_in_bytes": 649 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/post_solves/signature_verification.py", + "path_type": "hardlink", + "sha256": "e2d3a56645390cbeb2833ea6aed00ae494aecde1d2d78f7f53d01b2c03840366", + "size_in_bytes": 416 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/__init__.py", + "path_type": "hardlink", + "sha256": "c3758338fbb04f155f3e11bb8cea9899663ab6f4582bba8f525672175def0094", + "size_in_bytes": 112 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "7ec8553426df2b936a22f8c06ba4ccfb5452baa18fb594b3a8697c25b451c65e", + "size_in_bytes": 227 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/pypi/__init__.py", + "path_type": "hardlink", + "sha256": "579d077c48584648c7f3ce5bb4af57b3f01a0836d9a0e5492b6e5be7621aadd0", + "size_in_bytes": 6083 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/pypi/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "0001b085dc648ef72a2b83fcb0a852faabf82b8db263b628173413e0997d3700", + "size_in_bytes": 6747 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/pypi/__pycache__/pkg_format.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "c6d984fd3a2bcac4d0d60282b0658220f0d084885b87f7ae4217308956dad5ed", + "size_in_bytes": 55825 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/prefix_data_loaders/pypi/pkg_format.py", + "path_type": "hardlink", + "sha256": "2ea49282bffd479bf61401f23f5c0516b5ed9ef313b4b1138ff69d0ee101e92c", + "size_in_bytes": 48538 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/reporter_backends/__init__.py", + "path_type": "hardlink", + "sha256": "af2f52163fa27be6ec61e8f54fb5de289d984734166a0418e2fbc388d7e63271", + "size_in_bytes": 130 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/reporter_backends/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "4c76e47444e2f8268a650e64c5d25ff0620a4cf3e9c8d60507017b350cec3fb5", + "size_in_bytes": 247 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/reporter_backends/__pycache__/console.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "c9e1d3d9bd4f6a7cc755fcd08d96f96543fffbde23b0b4b65c18c597c11def07", + "size_in_bytes": 14140 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/reporter_backends/__pycache__/json.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "b6b826bb72c6aac769f9a4bc2b68132a2212b158f685fb6351dc4ef64a0048f5", + "size_in_bytes": 6192 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/reporter_backends/console.py", + "path_type": "hardlink", + "sha256": "cc78635dde8269aaf08a8a78bdaa27f223a657c74a25cc65d9296db2c057aaca", + "size_in_bytes": 8313 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/reporter_backends/json.py", + "path_type": "hardlink", + "sha256": "7761d91d7ca2b2588e3b5dbdcc99a3bac8fb75f476d6d763b3bc219a838bc1c7", + "size_in_bytes": 3552 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/solvers.py", + "path_type": "hardlink", + "sha256": "959f7d98bbe8834a17d12dafb354a07c5f6621e442213ad5c6c7baaabf629597", + "size_in_bytes": 496 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/subcommands/__init__.py", + "path_type": "hardlink", + "sha256": "0fd271c4a8dba9b2b8019726f1e2677c9263af8030e00a1daae5d06918d008cb", + "size_in_bytes": 116 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/subcommands/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "286e39386b7c0eb6cc3011ccf84b5edcd1b35651e062e3c117598971b4c474e8", + "size_in_bytes": 221 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/subcommands/doctor/__init__.py", + "path_type": "hardlink", + "sha256": "419b47f7cef54f60e718eafdc63064750583740053a7954769a9dacd21a9cd59", + "size_in_bytes": 1310 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/subcommands/doctor/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "367d850b12ce2bac57e15680cf918e08f594cb62173007db1b9dc01f8f9c6097", + "size_in_bytes": 2034 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/subcommands/doctor/__pycache__/health_checks.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "120c56f1b9d2835091cbd76292adc32f6e893f5030b567dc169b4ec1f89c160a", + "size_in_bytes": 14326 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/subcommands/doctor/health_checks.py", + "path_type": "hardlink", + "sha256": "26e183d64d0f92bce06bceeff1108948f7c75af1cfada1ea86cbb3053478a119", + "size_in_bytes": 11400 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/types.py", + "path_type": "hardlink", + "sha256": "b05791154e7aa77dee093de3c4c1af3b239893e44ea025a639b39dae3db08ea3", + "size_in_bytes": 18766 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/__init__.py", + "path_type": "hardlink", + "sha256": "da8a343f4ad6370f60c5077327921c56dc7dea1f266c21f91a15bf00a07fae1c", + "size_in_bytes": 317 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "251f6c36f22ea253a9b7cb41221874146d3a30bd2eae5e01cf01463a5a25b00a", + "size_in_bytes": 410 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/archspec.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "48c3d2d2fa80890c0ef020cc6336daf7d7485a57f66bf2a4a633cbbd18006687", + "size_in_bytes": 1069 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/conda.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "af595f40b08b78b55be0b7936eede8ea242cdc64ab2aa5b975e01779e3075e8e", + "size_in_bytes": 783 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/cuda.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "512b5d02215ff1952d5546e8ebdfc5ace928e90162d6966036f27803b8609a2d", + "size_in_bytes": 5669 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/freebsd.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "dc4ce659a0715144a38bc4e96c855fa4ecbf51fd3786381f2920760f2cb14b6d", + "size_in_bytes": 930 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/linux.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "fd857b3cd67948739e8ddc719f81779942bfd28402c6ea5c900c91bf899526c7", + "size_in_bytes": 2050 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/osx.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "5cdd99f9808f1a32fe8326f34d9cd05308688ea72686193596445518678aeb11", + "size_in_bytes": 1311 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/__pycache__/windows.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "fe060477b13a95e8cf2783450efe1a61a09d9b90ef1eeba4f01fd92bc097c1fe", + "size_in_bytes": 1246 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/archspec.py", + "path_type": "hardlink", + "sha256": "bed230816a8596943d5708ac7f2a4e64115450e84ab1b6f5ba4083b91ca23f7a", + "size_in_bytes": 782 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/conda.py", + "path_type": "hardlink", + "sha256": "d687569ac68ebc490a2628e56656ab4e556f5e4c0071bc139b1cd157b92f0cb8", + "size_in_bytes": 615 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/cuda.py", + "path_type": "hardlink", + "sha256": "2609267d99ee56415cf7d6161f84e0ba9b5b27ebdaaef11ca0461074901d22a9", + "size_in_bytes": 5221 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/freebsd.py", + "path_type": "hardlink", + "sha256": "25b1f0ed1ca591cdb671ddd26f09add57b9e96d5a2944e2131c3cc422bbf1062", + "size_in_bytes": 708 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/linux.py", + "path_type": "hardlink", + "sha256": "0bec5df4ca555a81f0dc8e35d8fa444a6b90e6026bfa9446e3bb122f63970f73", + "size_in_bytes": 2534 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/osx.py", + "path_type": "hardlink", + "sha256": "3e522e4dfe337f69c229ac7ec18adaae4df7a8a27b122678b3ef747f8bad4327", + "size_in_bytes": 1263 + }, + { + "_path": "lib/python3.13/site-packages/conda/plugins/virtual_packages/windows.py", + "path_type": "hardlink", + "sha256": "1b5ac87d83c03b470085bd30476d252b4f6b3dc150ce2a2266fb1fc85a0e721c", + "size_in_bytes": 1048 + }, + { + "_path": "lib/python3.13/site-packages/conda/py.typed", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "lib/python3.13/site-packages/conda/reporters.py", + "path_type": "hardlink", + "sha256": "4bc01413f80b16d2087df748460bc998160aafa347a4d4461fe12b2d7d954e75", + "size_in_bytes": 2787 + }, + { + "_path": "lib/python3.13/site-packages/conda/resolve.py", + "path_type": "hardlink", + "sha256": "1258f0facf88c5245a4cdd56138d2a69e1e2cc2c8f11cf66958500b40b1e31e7", + "size_in_bytes": 69223 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/Library/bin/conda.bat", + "path_type": "hardlink", + "sha256": "84ab1baa13054fc06452a8aecfb5aa62c5cfb0ad2f9190f8ee2561f89e017fbe", + "size_in_bytes": 121 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/Scripts/activate.bat", + "path_type": "hardlink", + "sha256": "e56d7e40b90e05db7cba404e15f85c2109c4a6173a5d5d7eb6fea123fe182c40", + "size_in_bytes": 1111 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/bin/activate", + "path_type": "hardlink", + "sha256": "44d873c77f37ed6fefa0b98117b90f882b191d88fc042060b210ec814837e42e", + "size_in_bytes": 149 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/bin/deactivate", + "path_type": "hardlink", + "sha256": "8e6e99e42b2b01097546219934fa361f56f6454ffabf91d03d387cf0930993c2", + "size_in_bytes": 237 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/cli-32.exe", + "path_type": "hardlink", + "sha256": "0170dda609519c088b1e4619a1e1d15a01701a6c514bb55f99a85fcbbd541631", + "size_in_bytes": 53016 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/cli-64.exe", + "path_type": "hardlink", + "sha256": "92c15cccdeecc3856c69dd7d47fe01d8d7782b6f4ada1dbd86790a5e702ea73f", + "size_in_bytes": 54040 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/conda.xsh", + "path_type": "hardlink", + "sha256": "aa7b069acaf79b9b3c9aa4303879ebcb30e4456431bc9432e3a9e448f00680ce", + "size_in_bytes": 7390 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/conda_icon.ico", + "path_type": "hardlink", + "sha256": "39d850d516920fce197442d64558344f1b0f69c0db6b207b9fa0421730f54901", + "size_in_bytes": 126355 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/condabin/Conda.psm1", + "path_type": "hardlink", + "sha256": "c703fbfe9d317942dd94fb994f601371bb9985ef59419b86731faf24fdae7d68", + "size_in_bytes": 7731 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/condabin/_conda_activate.bat", + "path_type": "hardlink", + "sha256": "68d44c735f52494696222bc3923c9c7e95d5d317b7d09d586944de7dfcbc7424", + "size_in_bytes": 1903 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/condabin/activate.bat", + "path_type": "hardlink", + "sha256": "12a498c27d627ad1139f8e6c08f028966cf74cf5a6229aea1d0b14210c585621", + "size_in_bytes": 143 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/condabin/conda-hook.ps1", + "path_type": "hardlink", + "sha256": "08f8592ff52c9f526a839c078f9fc73b6351f4e942b65c5c430c997187d6355d", + "size_in_bytes": 90 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/condabin/conda.bat", + "path_type": "hardlink", + "sha256": "2b0d6434c1b4c0c46d5c2520277efab1b0cef6834e5978e2926ffabaadd7e3bb", + "size_in_bytes": 729 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/condabin/conda_auto_activate.bat", + "path_type": "hardlink", + "sha256": "64298fd41e8a090f7c017f2669d9f26e732288a55a183fba6320268b68138c94", + "size_in_bytes": 715 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/condabin/conda_hook.bat", + "path_type": "hardlink", + "sha256": "6b9042735e64563efdeaefe2f4f6b599094f3cc67b7d11c8f91a5e1cfe03a7e7", + "size_in_bytes": 641 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/condabin/deactivate.bat", + "path_type": "hardlink", + "sha256": "b1057cc10601e91694cac4cb80b15568e590bb0a1b63e7fa4a1b1ba81312d8a3", + "size_in_bytes": 188 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/condabin/rename_tmp.bat", + "path_type": "hardlink", + "sha256": "e83fabf2ede258cdab51e313e7e850d7d4e42a96b2c15673cb81ddabb769358b", + "size_in_bytes": 149 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/etc/fish/conf.d/conda.fish", + "path_type": "hardlink", + "sha256": "bbbe7ed339754c72d325f2fc805fa99abcb61b1ff7d026aae8d1e710f47e82a0", + "size_in_bytes": 3444 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/etc/profile.d/conda.csh", + "path_type": "hardlink", + "sha256": "ca62e15dd1a5c836469c740fd4221427cba6e1bf25abfdd34cf623dca233c39a", + "size_in_bytes": 2022 + }, + { + "_path": "lib/python3.13/site-packages/conda/shell/etc/profile.d/conda.sh", + "path_type": "hardlink", + "sha256": "66b6abbbef5bd9432b5f2fcc810ac9f45c38c07420f3c14b49dd4584dc6080af", + "size_in_bytes": 2201 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/__init__.py", + "path_type": "hardlink", + "sha256": "1a6101094e3b3b83c233157a26e4927f897c3f7087d330bec4411a7121443674", + "size_in_bytes": 2954 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "91a0fa79ee444ea9c5643d461f599694960cfa6db8bdf7f766a875abf705e1c9", + "size_in_bytes": 1942 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/__pycache__/cases.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d4a90fd5beb8886e4b8910582327bba8c5bf8caf048bccf12a4e33482ef3d7c7", + "size_in_bytes": 1002 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/__pycache__/fixtures.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "bfa964bb5a032fbddced3934899c51c5a04ada198bca418a72d471ffdaae389f", + "size_in_bytes": 26752 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/__pycache__/helpers.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f2dd75f3d54902fcfb0796f0b491554d8a26b9fdfafb86d82f6b4d9c339a87a4", + "size_in_bytes": 23768 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/__pycache__/integration.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "420c1a77ca8c7d94f5eb868595e3f44f0084c5dd1f144cfeea029b08a64ad222", + "size_in_bytes": 4743 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/__pycache__/solver_helpers.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "5f021c92de0c2c74c24143dc92b50e822b12b887c95de1b09ee0af4cf04f0e3a", + "size_in_bytes": 48373 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/cases.py", + "path_type": "hardlink", + "sha256": "a0466e7e068e02499002a57259b287790f60b9f5b86fec2014dd0f4724d9a52d", + "size_in_bytes": 453 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/fixtures.py", + "path_type": "hardlink", + "sha256": "c764554358cff929c474f723a7a674b29bef05517e874b8bd2c01ea569087716", + "size_in_bytes": 20067 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/gateways/__init__.py", + "path_type": "hardlink", + "sha256": "5dceb03894b1494433ed9f753cf6d9dbb580bf6f2b36e346cb459235d6bdb907", + "size_in_bytes": 75 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/gateways/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "fcb8737aa2250fafa5ff2e01a1b133522e972e0fce3b74a8bcce556995999c5d", + "size_in_bytes": 160 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/gateways/__pycache__/fixtures.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "4f8295a1d8eb880d287a8183b629469e3f2deee6f46bd3b687e730ee738f3f5a", + "size_in_bytes": 5235 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/gateways/fixtures.py", + "path_type": "hardlink", + "sha256": "5c55724b36bf21a544022a609af917da4a0657714b0609a4df13051b2c695885", + "size_in_bytes": 4383 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/helpers.py", + "path_type": "hardlink", + "sha256": "e423a792909a9b326f551827f16c711acfca9dec4275efb6399a5dc876dcacea", + "size_in_bytes": 23127 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/integration.py", + "path_type": "hardlink", + "sha256": "956590f841d4ea17fe394feb9e25c3f35e110421beb47b143c063e48f0601fed", + "size_in_bytes": 3828 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/notices/__init__.py", + "path_type": "hardlink", + "sha256": "5dceb03894b1494433ed9f753cf6d9dbb580bf6f2b36e346cb459235d6bdb907", + "size_in_bytes": 75 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/notices/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "71b7f6f10479bfe5d86eaf8f380b5ff9b23ca3d50a141974e2f2c636434291cf", + "size_in_bytes": 159 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/notices/__pycache__/fixtures.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1c021917738c4a50dc5f931438041fa58c2fe262352cea9c7ea94520b4145784", + "size_in_bytes": 2200 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/notices/__pycache__/helpers.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "bd9c963a65d9c59a2a060196e40085fe76c9b787b21db4e1088c7ef5e3d0ede3", + "size_in_bytes": 7081 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/notices/fixtures.py", + "path_type": "hardlink", + "sha256": "c59463d41d5a2612f9e963d5a5bc8a99dee364836ed90b3c8b948b28812fd50f", + "size_in_bytes": 1294 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/notices/helpers.py", + "path_type": "hardlink", + "sha256": "e0d9ecca86d0aa6733bd61f538739b9e37f242f14bff5ae7cc858b3103a541d2", + "size_in_bytes": 4053 + }, + { + "_path": "lib/python3.13/site-packages/conda/testing/solver_helpers.py", + "path_type": "hardlink", + "sha256": "27fb1511a0cc532ee69479cfd31b611268653379c849107ac509feac9923faa8", + "size_in_bytes": 47104 + }, + { + "_path": "lib/python3.13/site-packages/conda/trust/__init__.py", + "path_type": "hardlink", + "sha256": "8501d42acf107fe9410827e6db7b5a2adf94feebc3ad8611b80ccc5cea33c180", + "size_in_bytes": 274 + }, + { + "_path": "lib/python3.13/site-packages/conda/trust/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "e0ade0391650d2c5af5af49f464ef24c826b59f0263ca14f11678e8550ff6af3", + "size_in_bytes": 277 + }, + { + "_path": "lib/python3.13/site-packages/conda/trust/__pycache__/constants.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "f184b17a9837784b33f90f807cbc50ba6c6dbb7c73eb3cdb72bb3ed6840e92c7", + "size_in_bytes": 2298 + }, + { + "_path": "lib/python3.13/site-packages/conda/trust/__pycache__/signature_verification.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "5a50a320ca7b4cea8dc1b18171009d10c7ebc60fc7a05196940d6d20f1dbc264", + "size_in_bytes": 11632 + }, + { + "_path": "lib/python3.13/site-packages/conda/trust/constants.py", + "path_type": "hardlink", + "sha256": "ce51543d049b8fdef3ea03646ed44da396be3df7c2324b61cc40217b70152b85", + "size_in_bytes": 2816 + }, + { + "_path": "lib/python3.13/site-packages/conda/trust/signature_verification.py", + "path_type": "hardlink", + "sha256": "225a434908702ee7e070ae086d654ccc588b04b69d21b1540ec64edf83f7006f", + "size_in_bytes": 11540 + }, + { + "_path": "lib/python3.13/site-packages/conda/utils.py", + "path_type": "hardlink", + "sha256": "a937f84a4d8a115addf75e4d1c6468d43a681a3e052ee1fb078e7d926fdf0792", + "size_in_bytes": 13221 + }, + { + "_path": "lib/python3.13/site-packages/conda_env/README.md", + "path_type": "hardlink", + "sha256": "6929530d5aad1b0bf809cfb1059ff4d16a2d8c26648f5f75d9234a1daf791414", + "size_in_bytes": 2389 + }, + { + "_path": "lib/python3.13/site-packages/conda_env/__init__.py", + "path_type": "hardlink", + "sha256": "fcc78a35c871356bfa38d76e4df687402a64701fe6273464790f7bcfca84de74", + "size_in_bytes": 196 + }, + { + "_path": "lib/python3.13/site-packages/conda_env/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1dcd3b113586980dd69556166a6d8b78cb22f7fc1ed14297daa75f067eed91a4", + "size_in_bytes": 321 + }, + { + "_path": "lib/python3.13/site-packages/conda_env/cli/__init__.py", + "path_type": "hardlink", + "sha256": "1bc00b7ce8bb1a7d69980a307111679ac53e68289fd8ca0443fbfd489e805fdc", + "size_in_bytes": 152 + }, + { + "_path": "lib/python3.13/site-packages/conda_env/cli/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "08df9cf7cf3e5de913a08d805224f94bf0406a9cff2579a10c3842f7f19efa21", + "size_in_bytes": 283 + }, + { + "_path": "lib/python3.13/site-packages/conda_env/installers/__init__.py", + "path_type": "hardlink", + "sha256": "1bc00b7ce8bb1a7d69980a307111679ac53e68289fd8ca0443fbfd489e805fdc", + "size_in_bytes": 152 + }, + { + "_path": "lib/python3.13/site-packages/conda_env/installers/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "1db2b9423086f146ca9c7c0735772a8528443deba9970b2d576721584b09f938", + "size_in_bytes": 290 + }, + { + "_path": "lib/python3.13/site-packages/tests/data/recipes/activate_deactivate_package/src/etc/conda/activate.d/activate.bat", + "path_type": "hardlink", + "sha256": "13146aa3892aebf22b669513babd89d967681528be117f4ccd8142dcaace2873", + "size_in_bytes": 120 + }, + { + "_path": "lib/python3.13/site-packages/tests/data/recipes/activate_deactivate_package/src/etc/conda/activate.d/activate.sh", + "path_type": "hardlink", + "sha256": "bffd82c729f75842a054a628044b81e56b0cb5dca9910dd4dd239bb758edd987", + "size_in_bytes": 74 + }, + { + "_path": "lib/python3.13/site-packages/tests/data/recipes/activate_deactivate_package/src/etc/conda/deactivate.d/deactivate.bat", + "path_type": "hardlink", + "sha256": "e4ee7eb28b653cac444323b3e38b74f2678cc52810ff8dfbd1d6fb5eec1448b4", + "size_in_bytes": 52 + }, + { + "_path": "lib/python3.13/site-packages/tests/data/recipes/activate_deactivate_package/src/etc/conda/deactivate.d/deactivate.sh", + "path_type": "hardlink", + "sha256": "e0a20c86d79e682d2d1e60797b1336e8e8850aff6e272bb6c82163dd0ae73112", + "size_in_bytes": 90 + }, + { + "_path": "lib/python3.13/site-packages/xontrib/conda.xsh", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p", + "sha256": "b0124a9aca7fd6b32b98961e30880bdc96170783cac74aec1eaed3ba00e23151", + "size_in_bytes": 8612 + }, + { + "_path": "shell/condabin/Conda.psm1", + "path_type": "hardlink", + "sha256": "c703fbfe9d317942dd94fb994f601371bb9985ef59419b86731faf24fdae7d68", + "size_in_bytes": 7731 + }, + { + "_path": "shell/condabin/conda-hook.ps1", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p", + "sha256": "8039ccb69df62ceb68126f24e2ff74c8f37f455fa4ce0b6dfca77eb013efa0ef", + "size_in_bytes": 1346 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/repodata_record.json b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..cb52536b7a8b268d1caa2cec2c96355cff75b598 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/info/repodata_record.json @@ -0,0 +1,48 @@ +{ + "arch": "x86_64", + "build": "py313h06a4308_0", + "build_number": 0, + "channel": "https://repo.anaconda.com/pkgs/main/linux-64/", + "constrains": [ + "conda-build >=25.9", + "conda-env >=2.6", + "conda-content-trust >=0.1.1", + "conda-anaconda-telemetry >=0.3.0", + "conda-anaconda-tos >=0.2.1" + ], + "depends": [ + "archspec >=0.2.3", + "boltons >=23.0.0", + "charset-normalizer", + "conda-libmamba-solver >=25.4.0", + "conda-package-handling >=2.2.0", + "distro >=1.5.0", + "frozendict >=2.4.2", + "jsonpatch >=1.32", + "menuinst >=2", + "packaging >=23.0", + "platformdirs >=3.10.0", + "pluggy >=1.0.0", + "pycosat >=0.6.3", + "python >=3.13,<3.14.0a0", + "python_abi 3.13.* *_cp313", + "requests >=2.28.0,<3", + "ruamel.yaml >=0.11.14,<0.19", + "setuptools >=60.0.0", + "tqdm >=4", + "truststore >=0.8.0", + "zstandard >=0.19.0" + ], + "fn": "conda-25.11.1-py313h06a4308_0.conda", + "license": "BSD-3-Clause", + "license_family": "BSD", + "md5": "f16aad8b5b7ac5df5fb3371837d6b4f4", + "name": "conda", + "platform": "linux", + "sha256": "2ca533c47c43322694bcc5aa2238bc6bcfab13ea70c835d6a53fc0613728065b", + "size": 1234091, + "subdir": "linux-64", + "timestamp": 1765568009000, + "url": "https://repo.anaconda.com/pkgs/main/linux-64/conda-25.11.1-py313h06a4308_0.conda", + "version": "25.11.1" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/INSTALLER b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..f79e4cb9aaf0b2d9e8ba78861e2071317b2384b3 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/INSTALLER @@ -0,0 +1 @@ +conda \ No newline at end of file diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/METADATA b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..471c76fe3654536fe8c97db8c35198b4b3d3b5ff --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/METADATA @@ -0,0 +1,238 @@ +Metadata-Version: 2.4 +Name: conda +Version: 25.11.1 +Summary: OS-agnostic, system-level binary package manager. +Project-URL: changelog, https://github.com/conda/conda/blob/main/CHANGELOG.md +Project-URL: documentation, https://docs.conda.io/projects/conda/en/stable/ +Project-URL: repository, https://github.com/conda/conda +Author-email: "Anaconda, Inc." +License: BSD 3-Clause License + + Copyright (c) 2012, Anaconda, Inc. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + --- + + Conda incorporates the following libraries into its distributed code: + + * auxlib, licensed as ISC + * frozendict, license as LGPL-3.0 +License-File: AUTHORS.md +License-File: LICENSE +Classifier: Development Status :: 5 - Production/Stable +Classifier: Intended Audience :: Developers +Classifier: License :: OSI Approved :: BSD License +Classifier: Operating System :: OS Independent +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Requires-Python: >=3.10 +Requires-Dist: archspec>=0.2.3 +Requires-Dist: boltons>=23.0.0 +Requires-Dist: charset-normalizer +Requires-Dist: conda-package-handling>=2.2.0 +Requires-Dist: distro>=1.5.0 +Requires-Dist: frozendict>=2.4.2 +Requires-Dist: jsonpatch>=1.32 +Requires-Dist: menuinst>=2 +Requires-Dist: packaging>=23.0 +Requires-Dist: platformdirs>=3.10.0 +Requires-Dist: pluggy>=1.0.0 +Requires-Dist: pycosat>=0.6.3 +Requires-Dist: requests<3,>=2.28.0 +Requires-Dist: ruamel-yaml<0.19,>=0.11.14 +Requires-Dist: setuptools>=60.0.0 +Requires-Dist: tqdm>=4 +Requires-Dist: truststore>=0.8.0; python_version >= '3.10' +Requires-Dist: zstandard>=0.15 +Description-Content-Type: text/markdown + +[conda-logo]: https://s3.amazonaws.com/conda-dev/conda_logo.svg +[tests-badge]: https://img.shields.io/github/actions/workflow/status/conda/conda/tests.yml?branch=main&event=schedule&logo=github&label=tests +[codecov-badge]: https://img.shields.io/codecov/c/github/conda/conda/main?logo=codecov +[codspeed-badge]: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json +[release-badge]: https://img.shields.io/github/v/release/conda/conda?logo=github +[anaconda-badge]: https://img.shields.io/conda/vn/anaconda/conda?logo=anaconda +[conda-forge-badge]: https://img.shields.io/conda/vn/conda-forge/conda?logo=conda-forge +[calver-badge]: https://img.shields.io/badge/calver-YY.MM.MICRO-22bfda.svg +[gitpod]: https://gitpod.io/button/open-in-gitpod.svg + +[![Conda Logo][conda-logo]](https://github.com/conda/conda) + +[![GitHub Scheduled Tests][tests-badge]](https://github.com/conda/conda/actions/workflows/tests.yml?query=branch%3Amain+event%3Aschedule) +[![Codecov Status][codecov-badge]](https://codecov.io/gh/conda/conda/branch/main) +[![CodSpeed Performance Benchmarks][codspeed-badge]](https://codspeed.io/conda/conda) +[![CalVer Versioning][calver-badge]](https://calver.org) +
+[![GitHub Release][release-badge]](https://github.com/conda/conda/releases) +[![Anaconda Package][anaconda-badge]](https://anaconda.org/anaconda/conda) +[![conda-forge Package][conda-forge-badge]](https://anaconda.org/conda-forge/conda) + +Conda is a cross-platform, language-agnostic binary package manager. It is a +package manager used in conda distributions like [Miniforge](https://github.com/conda-forge/miniforge) +and the [Anaconda Distribution](https://www.anaconda.com/distribution/), but it may be +used for other systems as well. Conda makes environments first-class +citizens, making it easy to create independent environments even for C +libraries. The conda command line interface is written entirely in Python, +and is BSD licensed open source. + +Conda is enhanced by organizations, tools, and repositories created and managed by +the amazing members of the [conda community](https://conda.org/). Some of them +can be found [here](https://github.com/conda/conda/wiki/Conda-Community). + + +## Installation + +To bootstrap a minimal distribution, use a minimal installer such as [Miniconda](https://docs.anaconda.com/free/miniconda/) or [Miniforge](https://conda-forge.org/download/). + +Conda is also included in the [Anaconda Distribution](https://repo.anaconda.com). + +## Updating conda + +To update `conda` to the newest version, use the following command: + +``` +$ conda update --name base conda +``` + +> [!TIP] +> It is possible that `conda update` does not install the newest version +> if the existing `conda` version is far behind the current release. +> In this case, updating needs to be done in stages. +> +> For example, to update from `conda 4.12` to `conda 23.10.0`, +> `conda 22.11.1` needs to be installed first: +> +> ``` +> $ conda install --name base conda=22.11.1 +> $ conda update conda +> ``` + +## Getting Started + +If you install the Anaconda Distribution, you will already have hundreds of packages +installed. You can see what packages are installed by running: + +```bash +$ conda list +``` + +to see all the packages that are available, use: + +```bash +$ conda search +``` + +and to install a package, use + +```bash +$ conda install +``` + +The real power of conda comes from its ability to manage environments. +In conda, an environment can be thought of as a completely separate installation. +Conda installs packages into environments efficiently using [hard links](https://en.wikipedia.org/wiki/Hard_link) by default when it is possible, so +environments are space efficient, and take seconds to create. + +The default environment, which `conda` itself is installed into, is called `base`. +To create another environment, use the `conda create` command. +For instance, to create an environment with PyTorch, you would run: + +```bash +$ conda create --name ml-project pytorch +``` + +This creates an environment called `ml-project` with the latest version of PyTorch, and its dependencies. + +We can now activate this environment: + +```bash +$ conda activate ml-project +``` + +This puts the `bin` directory of the `ml-project` environment in the front of the `PATH`, +and sets it as the default environment for all subsequent conda commands. + +To go back to the base environment, use: + +```bash +$ conda deactivate +``` + +## Building Your Own Packages + +You can easily build your own packages for conda, and upload them +to [anaconda.org](https://anaconda.org), a free service for hosting +packages for conda, as well as other package managers. +To build a package, create a recipe. Package building documentation is available +[here](https://docs.conda.io/projects/conda-build/en/latest/). +See [AnacondaRecipes](https://github.com/AnacondaRecipes) for the recipes that make up the Anaconda Distribution and `defaults` channel. +[Conda-forge](https://conda-forge.org/feedstocks/) and [Bioconda](https://github.com/bioconda/bioconda-recipes) are community-driven conda-based distributions. + +To upload to anaconda.org, create an account. Then, install the +anaconda-client and login: + +```bash +$ conda install anaconda-client +$ anaconda login +``` + +Then, after you build your recipe: + +```bash +$ conda build +``` + +you will be prompted to upload to anaconda.org. + +To add your anaconda.org channel, or other's channels, to conda so +that `conda install` will find and install their packages, run: + +```bash +$ conda config --add channels https://conda.anaconda.org/username +``` + +(replacing `username` with the username of the person whose channel you want +to add). + +## Getting Help + +- [Documentation](https://docs.conda.io/projects/conda/en/latest) +- [Zulip chat](https://conda.zulipchat.com/) +- [Bluesky](https://bsky.app/profile/conda.org) +- [Bug Reports/Feature Requests](https://github.com/conda/conda/issues) +- [Installer/Package Issues](https://github.com/ContinuumIO/anaconda-issues/issues) + +## Contributing + +Contributions to conda are welcome. See the [contributing](CONTRIBUTING.md) documentation +for instructions on setting up a development environment. diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/RECORD b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..268f9f184adc16b067ac7099bdcae5efeb45c24a --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/RECORD @@ -0,0 +1,451 @@ +../../../bin/conda,sha256=3enLKk5xIQbnU3dhVXn8Q2XrJbghbKE4O4T850WOmyc,473 +conda-25.11.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +conda-25.11.1.dist-info/METADATA,sha256=WTFQZNvHoOmEgdkodUT3pzxGQJ9_WA8BbdWuUXfuqwQ,9785 +conda-25.11.1.dist-info/RECORD,, +conda-25.11.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +conda-25.11.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87 +conda-25.11.1.dist-info/direct_url.json,sha256=WRaHffxQS32ymvpWwsSMPxxbeJjXh0EwvWfZvzUAwqU,105 +conda-25.11.1.dist-info/entry_points.txt,sha256=i2OKMWwJQMdb0QjJpnyFmNqWpChIOSPrfC4vyadMo90,50 +conda-25.11.1.dist-info/licenses/AUTHORS.md,sha256=InhkxXjuAXpzr-GleiqfP18aVmlPwrmPFsqW2ij2GCk,7768 +conda-25.11.1.dist-info/licenses/LICENSE,sha256=HzaVtzgJPLb2mjIQBNmZPY-bZwT_3iojygvFWXBvJAo,1638 +conda/__init__.py,sha256=WdjgCvbIDC2YC_v4cQ7Pdxw94pZLx7d8xmPffF-Guw8,6009 +conda/__main__.py,sha256=2FR_IlM54h7lP1TbwtdlPqHGFpGLSwOEzjW7-uCkv9M,165 +conda/__pycache__/__init__.cpython-313.pyc,, +conda/__pycache__/__main__.cpython-313.pyc,, +conda/__pycache__/_vendor.cpython-313.pyc,, +conda/__pycache__/_version.cpython-313.pyc,, +conda/__pycache__/activate.cpython-313.pyc,, +conda/__pycache__/api.cpython-313.pyc,, +conda/__pycache__/deprecations.cpython-313.pyc,, +conda/__pycache__/exception_handler.cpython-313.pyc,, +conda/__pycache__/exceptions.cpython-313.pyc,, +conda/__pycache__/exports.cpython-313.pyc,, +conda/__pycache__/history.cpython-313.pyc,, +conda/__pycache__/instructions.cpython-313.pyc,, +conda/__pycache__/misc.cpython-313.pyc,, +conda/__pycache__/plan.cpython-313.pyc,, +conda/__pycache__/reporters.cpython-313.pyc,, +conda/__pycache__/resolve.cpython-313.pyc,, +conda/__pycache__/utils.cpython-313.pyc,, +conda/_vendor.py,sha256=z3U462TQqDIrgEb_bVO3n0HgO2ZzKqIDTgLB7ppahQM,197 +conda/_version.py,sha256=_93WwEjvQexuFCHFepd6FyBYWg_YnuZrkEFRtuJ_gOU,708 +conda/activate.py,sha256=HDYQs7scMViqiXhZbe_OgxkEM_WyhFR2cyr1e4XvNI4,43307 +conda/api.py,sha256=sO5vX42QP2EB1wVMGqSrN8VcngzfcbXA763v_x1nEGc,17516 +conda/auxlib/LICENSE,sha256=JweyjAPYaVmBvTE10tfsPfV29-IYkrtMWAaZL3MSVh4,802 +conda/auxlib/__init__.py,sha256=JlKX85n2J6iX4flo9n1XXWjkzaMVo0ocPsua6X7NgoE,3042 +conda/auxlib/__pycache__/__init__.cpython-313.pyc,, +conda/auxlib/__pycache__/collection.cpython-313.pyc,, +conda/auxlib/__pycache__/compat.cpython-313.pyc,, +conda/auxlib/__pycache__/decorators.cpython-313.pyc,, +conda/auxlib/__pycache__/entity.cpython-313.pyc,, +conda/auxlib/__pycache__/exceptions.cpython-313.pyc,, +conda/auxlib/__pycache__/ish.cpython-313.pyc,, +conda/auxlib/__pycache__/logz.cpython-313.pyc,, +conda/auxlib/__pycache__/type_coercion.cpython-313.pyc,, +conda/auxlib/collection.py,sha256=APwSFGy5xotgOGJTyjlFVRPz_bRhKszb0HPUCXcjjqE,1941 +conda/auxlib/compat.py,sha256=NYtjb6ECJPchBfVGDMnw4M_FxLNFETDlxBcsFHCi9bI,1352 +conda/auxlib/decorators.py,sha256=ebhm_M7O92h8E0ElZ1c5m4GYmnEz2lELvMv_LJiNpNM,6388 +conda/auxlib/entity.py,sha256=jTd8ViUPSITJbLiZQEcuDdI78Cd79nIb5tXPdZC4pq4,33626 +conda/auxlib/exceptions.py,sha256=tGut8GRJTZYdw2ProFnqSGkF_b_I96aszhpcIJrv9BU,901 +conda/auxlib/ish.py,sha256=bq9Pukx8xphUsc_qQH708U_ZU_rUhlNBRJ-InKGY6Q0,1964 +conda/auxlib/logz.py,sha256=vEwmZFI_LvwjWHEDvF1mxiiGG9oppf-E5oB6K0pDEhI,6089 +conda/auxlib/type_coercion.py,sha256=nvQKnhD8DEaJMuemRSrgHnRDXbOYL5UMmojQw07KPiw,8936 +conda/base/__init__.py,sha256=x4VUuXPG2qbUrJ5KZnFQDD7p1ZvnHsL8G5RuEqTsYxY,520 +conda/base/__pycache__/__init__.cpython-313.pyc,, +conda/base/__pycache__/constants.cpython-313.pyc,, +conda/base/__pycache__/context.cpython-313.pyc,, +conda/base/constants.py,sha256=Olys0WlranmfX28DCMsyOnTX0tctX125HPQ4WPjgBT4,11156 +conda/base/context.py,sha256=3fV_pCASPvFCtjEg4LLLIQ-lyaWMhjsj01IwURI6B5c,89984 +conda/cli/__init__.py,sha256=DkuX3aN6mu_d2Qyx0z0l_783Y4ZTzL64HyeQ6sF7AY8,106 +conda/cli/__pycache__/__init__.cpython-313.pyc,, +conda/cli/__pycache__/actions.cpython-313.pyc,, +conda/cli/__pycache__/common.cpython-313.pyc,, +conda/cli/__pycache__/conda_argparse.cpython-313.pyc,, +conda/cli/__pycache__/find_commands.cpython-313.pyc,, +conda/cli/__pycache__/helpers.cpython-313.pyc,, +conda/cli/__pycache__/install.cpython-313.pyc,, +conda/cli/__pycache__/main.cpython-313.pyc,, +conda/cli/__pycache__/main_clean.cpython-313.pyc,, +conda/cli/__pycache__/main_commands.cpython-313.pyc,, +conda/cli/__pycache__/main_compare.cpython-313.pyc,, +conda/cli/__pycache__/main_config.cpython-313.pyc,, +conda/cli/__pycache__/main_create.cpython-313.pyc,, +conda/cli/__pycache__/main_env.cpython-313.pyc,, +conda/cli/__pycache__/main_env_config.cpython-313.pyc,, +conda/cli/__pycache__/main_env_create.cpython-313.pyc,, +conda/cli/__pycache__/main_env_list.cpython-313.pyc,, +conda/cli/__pycache__/main_env_remove.cpython-313.pyc,, +conda/cli/__pycache__/main_env_update.cpython-313.pyc,, +conda/cli/__pycache__/main_env_vars.cpython-313.pyc,, +conda/cli/__pycache__/main_export.cpython-313.pyc,, +conda/cli/__pycache__/main_info.cpython-313.pyc,, +conda/cli/__pycache__/main_init.cpython-313.pyc,, +conda/cli/__pycache__/main_install.cpython-313.pyc,, +conda/cli/__pycache__/main_list.cpython-313.pyc,, +conda/cli/__pycache__/main_mock_activate.cpython-313.pyc,, +conda/cli/__pycache__/main_mock_deactivate.cpython-313.pyc,, +conda/cli/__pycache__/main_notices.cpython-313.pyc,, +conda/cli/__pycache__/main_package.cpython-313.pyc,, +conda/cli/__pycache__/main_pip.cpython-313.pyc,, +conda/cli/__pycache__/main_remove.cpython-313.pyc,, +conda/cli/__pycache__/main_rename.cpython-313.pyc,, +conda/cli/__pycache__/main_run.cpython-313.pyc,, +conda/cli/__pycache__/main_search.cpython-313.pyc,, +conda/cli/__pycache__/main_update.cpython-313.pyc,, +conda/cli/actions.py,sha256=pdsImTMUK2MMZXSWijJGT5nTuTruhXOUxFDe6z4E9-Q,1558 +conda/cli/common.py,sha256=tJWsmbowWuY3CrVPdIo7K31GgK1y4eVaIo9pj2WzxIo,12035 +conda/cli/conda_argparse.py,sha256=KNjtfLEMyCeY6Cz0eb5C3kgGf34QhNHX0yrxT6o473M,13424 +conda/cli/find_commands.py,sha256=IImE12iwOXHSh61hkeu7rnFq8nj4nUbVSiTr4dyPk4A,2596 +conda/cli/helpers.py,sha256=TI_3ZyCFn3sgK-wvfoyytGav_lQVHXTkzfFlFvWYo20,20566 +conda/cli/install.py,sha256=zlp9e-53f1oQHdkph0Z0sC9o5m2im5iiO4Jc3YYvMGE,20680 +conda/cli/main.py,sha256=nlXbOQSjRcVEFGGZifwUUum9-1OyOd93845fScZgcno,3451 +conda/cli/main_clean.py,sha256=5AmdTLOY8u8wqyzbbAY2OjPq_i0gWnxEejf9wM9NQ8g,12135 +conda/cli/main_commands.py,sha256=YEuLYFl5RKmMydtGy0AlOuugUk5lyRx_Ho40fNWhrGU,1120 +conda/cli/main_compare.py,sha256=jtyA9O5zsTlaT7AbUMwRXCL8uzgcmWHpoP-AGwzizEc,4119 +conda/cli/main_config.py,sha256=dEyUBQZfJVI2QGywOQ7z4SdLUuicUoNVNUvw6DNr2dc,32063 +conda/cli/main_create.py,sha256=IPYDFcDxwJg1ozZYIrRikrXEOzPlRf9Z5JoG2NHkjLw,5779 +conda/cli/main_env.py,sha256=DIfhSFDec8vc8MyhVXSc3qJvaWU5F7okSl_lSEykKz4,1239 +conda/cli/main_env_config.py,sha256=0flWw1EFTuhoHiHjQc0YsSBcKgGLemDorlskWOgYTk8,1167 +conda/cli/main_env_create.py,sha256=UwnDAvxHOb0e63C4_8Qsc5kECJ1bWKfd6P9c7fkILpU,6704 +conda/cli/main_env_list.py,sha256=HZLTicXBq2Xx2ldoTn9NprXlVYPBMHCZZzUb0UiveTs,1103 +conda/cli/main_env_remove.py,sha256=bRyZzx2Q_pE7sGNKy53_EMhxX2Et4oE9Lfb6utujAkk,1505 +conda/cli/main_env_update.py,sha256=LvbiFqWLUHKXuEXh19nOEB23gIFKAg-AovDZauUhup8,5634 +conda/cli/main_env_vars.py,sha256=Vpm5yCP5VbJenejI3v-wnkPdOUgYmL-oL6rXphBsQlU,4623 +conda/cli/main_export.py,sha256=0-H4IviCiCSTEUzZD2samv_artniPnlnUaZoCFmv5m4,6796 +conda/cli/main_info.py,sha256=qZXrFVEmbakZ8jpcayecd4p9qSTNb8toffyQp1Jk-cI,18712 +conda/cli/main_init.py,sha256=CFOBRgkmE8l5FMm-gG6RW0_31wxmMgUHyvVFo7_jqV8,6192 +conda/cli/main_install.py,sha256=onN18JEbbTfW9epssy83hOXBBxrbJpmCD6oWN8XFvag,5725 +conda/cli/main_list.py,sha256=ikUM_f-4ysOv-2WCHx_FJfUxMsOvaaTYVlYwXHDUlaE,11316 +conda/cli/main_mock_activate.py,sha256=QvVDdvO3x4DF-adTZzAmSzO5oaASQ8Ka0NTmJX64xSU,893 +conda/cli/main_mock_deactivate.py,sha256=atOwd6Ufhfbqf6hdUhGkWJLSjyPEJmZhGInc2z8haT4,823 +conda/cli/main_notices.py,sha256=y_HWkFN5k-sl6u443sfDCBXYF7lgZr--mS8UkcfdD8M,1666 +conda/cli/main_package.py,sha256=JqJTLg_K4GbdJqpf-wcKBfPrYgwJRHK1NBrKh82xhec,8743 +conda/cli/main_pip.py,sha256=34ltgt1y2cnmkta7PH0ORo-wvCnUj-W7sufwIkr8u30,872 +conda/cli/main_remove.py,sha256=Z7DWuqJoojCaeCCsU_AmjH6GRLFYMWWaSBTNfENiYSE,7722 +conda/cli/main_rename.py,sha256=D_wm4_q65zHNhJ7cxTQI9hHagqogHqeREapVeFw6ZaM,5665 +conda/cli/main_run.py,sha256=DLh47JCMJ4aWrEu4SdHc9wpxbRkm5Qil2ISoLZqOKzw,4055 +conda/cli/main_search.py,sha256=XbXRuhB82iC62zkg5Ru6SSxq00-sOibnerIKQFQNUvU,10437 +conda/cli/main_update.py,sha256=NJkLab64brc1hi6-0Af15LdB4rMK3Uovp4CidNbzMbQ,3962 +conda/common/__init__.py,sha256=L4D64etjtKML2s_v1lAescFsHOLo59Hy1vmbCXu8MWQ,494 +conda/common/__pycache__/__init__.cpython-313.pyc,, +conda/common/__pycache__/_logic.cpython-313.pyc,, +conda/common/__pycache__/compat.cpython-313.pyc,, +conda/common/__pycache__/configuration.cpython-313.pyc,, +conda/common/__pycache__/constants.cpython-313.pyc,, +conda/common/__pycache__/io.cpython-313.pyc,, +conda/common/__pycache__/iterators.cpython-313.pyc,, +conda/common/__pycache__/logic.cpython-313.pyc,, +conda/common/__pycache__/signals.cpython-313.pyc,, +conda/common/__pycache__/toposort.cpython-313.pyc,, +conda/common/__pycache__/url.cpython-313.pyc,, +conda/common/_logic.py,sha256=XN58SBEqr4DknUVDNTpyvnkTsBOJylC__H7yTW5SW2Y,27446 +conda/common/_os/__init__.py,sha256=cRSBZvZv1CNufTFh1Umwc6kPdZL8XBdeW__d5sWzkyo,436 +conda/common/_os/__pycache__/__init__.cpython-313.pyc,, +conda/common/_os/__pycache__/linux.cpython-313.pyc,, +conda/common/_os/__pycache__/osx.cpython-313.pyc,, +conda/common/_os/__pycache__/unix.cpython-313.pyc,, +conda/common/_os/__pycache__/windows.cpython-313.pyc,, +conda/common/_os/linux.py,sha256=M6WRLM7xg-_bdiDQn2G8KoDpMlL3PKjfr4Rr2mHqH3k,2053 +conda/common/_os/osx.py,sha256=saOdjucF997z2NqLWZtgreBw7QyVr1QPyQj16RthKwY,742 +conda/common/_os/unix.py,sha256=3CtSycesTuZvW1-RyVIOHKflAube51kuhpE4zyQxrtg,353 +conda/common/_os/windows.py,sha256=v7EdkAoYy_c-slRftV183uWgsts8AEJfa3OovNnUHfM,5496 +conda/common/compat.py,sha256=GVs3hyAi78D_zsc0zCuddL7EH0mNK52pjWYjRxwH7mI,3071 +conda/common/configuration.py,sha256=6A0Uf35rmWx7Wjyo1kGIwT_NQe5JmIRXZmrs30MetU4,64298 +conda/common/constants.py,sha256=7_84KD-o_ynHgWi585MyQiO7R59OA6ir4qHUOj_3SI8,589 +conda/common/io.py,sha256=ZPMoxLgljgurdoSf7jJ8XBf0Js6zfTFJXECcxVgwWLQ,17176 +conda/common/iterators.py,sha256=CaBL-LeCuC7SRpnnsksbi7ACsGfoeqv3RdFi7AhtrV4,1107 +conda/common/logic.py,sha256=aAXlesrY2PBuiuW4KkqiG_X35JNj7ZQUAxazEiVa1PE,11114 +conda/common/path/__init__.py,sha256=lrCV44YYVomVNxkvEwwgWQIK_wJh4fpook3kpgOm3F0,5390 +conda/common/path/__pycache__/__init__.cpython-313.pyc,, +conda/common/path/__pycache__/_cygpath.cpython-313.pyc,, +conda/common/path/__pycache__/directories.cpython-313.pyc,, +conda/common/path/__pycache__/python.cpython-313.pyc,, +conda/common/path/__pycache__/windows.cpython-313.pyc,, +conda/common/path/_cygpath.py,sha256=zO7RLyGZipH7Xh1j0aKaUj5K3QBbe5nK8Vnr3ccqM48,7046 +conda/common/path/directories.py,sha256=MeM1hKS3eMntg4IlSW2HU52xC4sbMw--0-tsKnzG_Ms,1675 +conda/common/path/python.py,sha256=8Rh5DK5LxdzqCWdv03S3LtvEnMnshxRCKUQb9M6g5Po,4275 +conda/common/path/windows.py,sha256=IFZuuEYJnBBlMhkWaluL8OTghtwaECIM-GLQJexAVFo,5444 +conda/common/pkg_formats/__init__.py,sha256=PeVza2KsTmy4DSq8qe9IjJe3jw8J5WpY0_LVI7MtRow,201 +conda/common/pkg_formats/__pycache__/__init__.cpython-313.pyc,, +conda/common/pkg_formats/__pycache__/python.cpython-313.pyc,, +conda/common/pkg_formats/python.py,sha256=tIhnl6PoliqKnwgdRrTjtX1EumfWCa8Sz6AiFUaV5cU,1083 +conda/common/serialize/__init__.py,sha256=sBWMvPo_tz6WnXqzyUDXdQdbiTQpjrjhf4uCFYchgTc,2017 +conda/common/serialize/__pycache__/__init__.cpython-313.pyc,, +conda/common/serialize/__pycache__/json.cpython-313.pyc,, +conda/common/serialize/json.py,sha256=oGWVLoWIv42jlZDGtSHVpXA09tY_XH_Etp9GL0uPMr4,1200 +conda/common/signals.py,sha256=a7er8UB5MFO8v1cxw41ZLNzU0KLcR1Y2vFf5eLeZnzI,1788 +conda/common/toposort.py,sha256=jaT1bsNO7nTradJogvPdq9QX-aBQQMzF4gQTjCnv-gE,3288 +conda/common/url.py,sha256=0P6jx_dzQoQp-hnAsKwB3IdfWFb1m9rhzkvWBqNlzvA,15626 +conda/core/__init__.py,sha256=JLaLQ6HLYXkAiCNfoI5_oNpD7MF_dV24dCw6-CSP3S0,698 +conda/core/__pycache__/__init__.cpython-313.pyc,, +conda/core/__pycache__/envs_manager.cpython-313.pyc,, +conda/core/__pycache__/index.cpython-313.pyc,, +conda/core/__pycache__/initialize.cpython-313.pyc,, +conda/core/__pycache__/link.cpython-313.pyc,, +conda/core/__pycache__/package_cache_data.cpython-313.pyc,, +conda/core/__pycache__/path_actions.cpython-313.pyc,, +conda/core/__pycache__/portability.cpython-313.pyc,, +conda/core/__pycache__/prefix_data.cpython-313.pyc,, +conda/core/__pycache__/solve.cpython-313.pyc,, +conda/core/__pycache__/subdir_data.cpython-313.pyc,, +conda/core/envs_manager.py,sha256=fZxc3FNwqi2r4lHWGwbWdc3Ct48uazagpHv8m0_5i7I,7699 +conda/core/index.py,sha256=jKkKlRoIcR_DbvZQyZWhdMpIim6IEMMvCsHqqm-Tng8,26666 +conda/core/initialize.py,sha256=Iy_2GhuB1fOQD3IFz7vutwskbMBF8FQHzBtK1Dyijbc,80730 +conda/core/link.py,sha256=UYRGuOyDV0HQlbH_ejTC4prp6VPl4vhd4lESmW61_kA,64594 +conda/core/package_cache_data.py,sha256=ouykSm0EymaRmANfZFgMufC3FFnPSxpeZdOuqX5OeZM,39985 +conda/core/path_actions.py,sha256=DrdeedbrzG4L2HmMCk0kJ6VBF_Z7d8sMok9tRZ17DIo,51773 +conda/core/portability.py,sha256=btWAzco3Y-riaZxiEgTdh9YUAqL1obZzVQrDGZIGm1U,16066 +conda/core/prefix_data.py,sha256=g79XrctgxemD7mryQWpFOBJj7K5IP5SgTZRxqXByNbA,32149 +conda/core/solve.py,sha256=Z_g_Wgpp3NyW-a0QT7smcyIcN4v_lNrLIePZeRLh8as,62328 +conda/core/subdir_data.py,sha256=Fyb1oz80gWnw46554TGW8A7t4-iz9nZ5tSRXv-BqIxs,28754 +conda/deprecations.py,sha256=CUVHzhmyETKMK6yvXzI3bORkMxoo8rBCueXF3CM7c8g,16473 +conda/env/__init__.py,sha256=Xc6wOJSxSUQz7Z91PPbZ27WAv28rNuNGy0WSNda9uQc,75 +conda/env/__pycache__/__init__.cpython-313.pyc,, +conda/env/__pycache__/env.cpython-313.pyc,, +conda/env/__pycache__/pip_util.cpython-313.pyc,, +conda/env/env.py,sha256=twc4SmAjFFt_iEQ0JNrPXF_pAUB8lvpkiaiNcDPsDkA,15361 +conda/env/installers/__init__.py,sha256=Xc6wOJSxSUQz7Z91PPbZ27WAv28rNuNGy0WSNda9uQc,75 +conda/env/installers/__pycache__/__init__.cpython-313.pyc,, +conda/env/installers/__pycache__/base.cpython-313.pyc,, +conda/env/installers/__pycache__/conda.cpython-313.pyc,, +conda/env/installers/__pycache__/pip.cpython-313.pyc,, +conda/env/installers/base.py,sha256=n3aymNtgTz1sEs3Bd6Yp4YGBcvy40jSjoXbJDbgPWLs,466 +conda/env/installers/conda.py,sha256=H9E6qLbmNyONfjexWnGPl3TOyPOKBE43QYVCa_A-ziQ,5076 +conda/env/installers/pip.py,sha256=zCebxvkWSdA-3ZwpAq_Ji8WROR-wbu9bN3EDCbVtpJQ,2585 +conda/env/pip_util.py,sha256=igmRvci1WH69H9Cs15pfrW4uxH3pHbJtUPfJqI1q8HY,1420 +conda/env/specs/__init__.py,sha256=mn7CyomLGWZakOnRusTGHzwg9prKu7VMA4GuA303cy0,2482 +conda/env/specs/__pycache__/__init__.cpython-313.pyc,, +conda/env/specs/__pycache__/binstar.cpython-313.pyc,, +conda/env/specs/__pycache__/cep_24.cpython-313.pyc,, +conda/env/specs/__pycache__/explicit.cpython-313.pyc,, +conda/env/specs/__pycache__/requirements.cpython-313.pyc,, +conda/env/specs/__pycache__/yaml_file.cpython-313.pyc,, +conda/env/specs/binstar.py,sha256=CDq5Lh6Jp0EOntGPMJhdJ_ZixDH3J7YG0cYY6v9orww,241 +conda/env/specs/cep_24.py,sha256=saC4uIxdlZje1W_QIMBv8KrR0j4sa0Cdh6zoWQJ-Fhk,1938 +conda/env/specs/explicit.py,sha256=ypKWMVPRY6APy2EZKhtjOJGgxfUjUco37wAmsN-yGLc,2263 +conda/env/specs/requirements.py,sha256=8Tny8qi1XAQER-q-fQ8pR1rk_PGGHgTnnkwgUXI1ang,5123 +conda/env/specs/yaml_file.py,sha256=SojyySPqlPFf0fDMf6yoDQlw-9PFSxmu4AJNt_pAJpk,2701 +conda/exception_handler.py,sha256=OTvskjxykT9KeMRUJOIOZ8vqs3nODBtd0LYiS3oppQY,14976 +conda/exceptions.py,sha256=R7jg4dX81cRicHfuAwnIaqrfcD9pQJGH1P6oMdcMAyI,48081 +conda/exports.py,sha256=dUfSBVBA_OFyFVUxQcTjm0n-OkICAa38hkGzVkPyG0A,6505 +conda/gateways/__init__.py,sha256=nGB6VGny0Pmr87aFRZJt_jv4FZmUVp3L3PBxvf2dONQ,732 +conda/gateways/__pycache__/__init__.cpython-313.pyc,, +conda/gateways/__pycache__/anaconda_client.cpython-313.pyc,, +conda/gateways/__pycache__/logging.cpython-313.pyc,, +conda/gateways/__pycache__/subprocess.cpython-313.pyc,, +conda/gateways/anaconda_client.py,sha256=XmlnbyRj45H12lnsRMHA9Uq18h7VdQcnM0tTo7a6D7o,1893 +conda/gateways/connection/__init__.py,sha256=EF2jMXXPZKDeSHkKmT-pUnq_YR_lj08bd08WkNNyDNA,973 +conda/gateways/connection/__pycache__/__init__.cpython-313.pyc,, +conda/gateways/connection/__pycache__/download.cpython-313.pyc,, +conda/gateways/connection/__pycache__/session.cpython-313.pyc,, +conda/gateways/connection/adapters/__init__.py,sha256=Xc6wOJSxSUQz7Z91PPbZ27WAv28rNuNGy0WSNda9uQc,75 +conda/gateways/connection/adapters/__pycache__/__init__.cpython-313.pyc,, +conda/gateways/connection/adapters/__pycache__/ftp.cpython-313.pyc,, +conda/gateways/connection/adapters/__pycache__/http.cpython-313.pyc,, +conda/gateways/connection/adapters/__pycache__/localfs.cpython-313.pyc,, +conda/gateways/connection/adapters/__pycache__/s3.cpython-313.pyc,, +conda/gateways/connection/adapters/ftp.py,sha256=4VYeQ1cyGki2RJ0gXigEbucGkZHM8m35hv-ht4X06Es,9554 +conda/gateways/connection/adapters/http.py,sha256=xRxsRkwaHqpq5BHiLGzsWxQiT76gWGZ5npFSnND7Cz4,2825 +conda/gateways/connection/adapters/localfs.py,sha256=7MdYuRJFybr7I5IrUk-QMO2CxHLDOetq3T2-oLBNkN0,1821 +conda/gateways/connection/adapters/s3.py,sha256=g1Vt_6NJ_wurVIaj_gO5oTpKGIXf07Mmz42f8tkcRdI,3308 +conda/gateways/connection/download.py,sha256=lSCDzZrB-bO9BkLQ1LBQHiiLkE31zHbeyVjMLsaAjVs,12254 +conda/gateways/connection/session.py,sha256=5FEqriT1q9z4S0g1X8Hq5Vk7MKijqVfmIn7xV1jkg_Q,11630 +conda/gateways/disk/__init__.py,sha256=1FIK1_eBng0XtJ95nIj9qonndsPNtM9kFcMbBHylAA8,3575 +conda/gateways/disk/__pycache__/__init__.cpython-313.pyc,, +conda/gateways/disk/__pycache__/create.cpython-313.pyc,, +conda/gateways/disk/__pycache__/delete.cpython-313.pyc,, +conda/gateways/disk/__pycache__/link.cpython-313.pyc,, +conda/gateways/disk/__pycache__/lock.cpython-313.pyc,, +conda/gateways/disk/__pycache__/permissions.cpython-313.pyc,, +conda/gateways/disk/__pycache__/read.cpython-313.pyc,, +conda/gateways/disk/__pycache__/test.cpython-313.pyc,, +conda/gateways/disk/__pycache__/update.cpython-313.pyc,, +conda/gateways/disk/create.py,sha256=ehkTpmtPYZcs5A_vJfw2WUasJYxQmHB4wnk_U-I_oMs,17760 +conda/gateways/disk/delete.py,sha256=yNynZ08_AbXp36evbkvnMteQm1IN6mk4SVfNyVZBjIA,10187 +conda/gateways/disk/link.py,sha256=F4UQQBRh2RzOW-zs-RvHTHEvaQ-YAqdWHT_hc9dsRIY,13614 +conda/gateways/disk/lock.py,sha256=E6FXGnkwd2nn-IY22eSYuTFyMTs3whAsMe2LsVTBFvU,2856 +conda/gateways/disk/permissions.py,sha256=yAOWFjeI9bmXUKQzHOWAdyfkdvnUlxtBg3FsY_XKpog,3057 +conda/gateways/disk/read.py,sha256=2tY3J8FLGbhI_NOiuu4CqOewBG_gfkJV1_8PxyMRvms,8503 +conda/gateways/disk/test.py,sha256=3VhyYVpZIhvg0pjju6L_-7UQ9MKSt8vGaUSdl37CmVU,3420 +conda/gateways/disk/update.py,sha256=0SVJ3MQQLgqEH-Jt_XYwWt8i5qFhLPI3Bk8TDLXznrM,6150 +conda/gateways/logging.py,sha256=9mlAwBSy-oo7fEVAENEHFd4RO71TLRNwU5eix5vRpeI,7384 +conda/gateways/repodata/__init__.py,sha256=13_2chZKTKUVX8-MZq5WKBFcJiApHUD2CwrDkBpv0Uw,32723 +conda/gateways/repodata/__pycache__/__init__.cpython-313.pyc,, +conda/gateways/repodata/__pycache__/lock.cpython-313.pyc,, +conda/gateways/repodata/jlap/__init__.py,sha256=ClUn_wwlAxu9PuxnDidDZV_S-KDQsLA2aYVdwIw0Qzo,138 +conda/gateways/repodata/jlap/__pycache__/__init__.cpython-313.pyc,, +conda/gateways/repodata/jlap/__pycache__/core.cpython-313.pyc,, +conda/gateways/repodata/jlap/__pycache__/fetch.cpython-313.pyc,, +conda/gateways/repodata/jlap/__pycache__/interface.cpython-313.pyc,, +conda/gateways/repodata/jlap/core.py,sha256=4-zcI0we_C0MDv2fme_jJ7OWe9N1ZBXL27ORtodoWvs,4146 +conda/gateways/repodata/jlap/fetch.py,sha256=hdskf1KV9qZd7XpB-FxyVcik7xnETVKlADLP3ky4q2Y,16284 +conda/gateways/repodata/jlap/interface.py,sha256=V9_4QC_Iq5XL5BTjeTJBnrjyqSkDJlDAdJ3dostsFDs,4659 +conda/gateways/repodata/lock.py,sha256=K8QRj_0au17Ozx7WKc-9Fu2ci5PAvNxkQoNesvKSCqc,195 +conda/gateways/subprocess.py,sha256=-Ut28EyBSCdLZnjE7FahwIF2ZrF96KIeJ81tOogqjI8,4831 +conda/history.py,sha256=Uw2L7ieIXLiCt3SAmiLjQqTyhO0UrFLxH9u_NT6l3v0,15723 +conda/instructions.py,sha256=QbSD5GjLh2QnWN2xjrHJ7Nr_tD0NNVEsFk8TpOHGr9A,2769 +conda/misc.py,sha256=wOtu9_ury5H13IaxpWnS4Z4su76RK2-6fQHSjlGpS7o,11973 +conda/models/__init__.py,sha256=3LnN1LhlKAdCERPdWTMimFGYNYSzFAtF3S7JJzeNGcg,685 +conda/models/__pycache__/__init__.cpython-313.pyc,, +conda/models/__pycache__/channel.cpython-313.pyc,, +conda/models/__pycache__/dist.cpython-313.pyc,, +conda/models/__pycache__/enums.cpython-313.pyc,, +conda/models/__pycache__/environment.cpython-313.pyc,, +conda/models/__pycache__/match_spec.cpython-313.pyc,, +conda/models/__pycache__/package_info.cpython-313.pyc,, +conda/models/__pycache__/prefix_graph.cpython-313.pyc,, +conda/models/__pycache__/records.cpython-313.pyc,, +conda/models/__pycache__/version.cpython-313.pyc,, +conda/models/channel.py,sha256=ST0K9cJAoFha0zKTfaqpry2iDPMiYfFgOoKUST-JEFc,24359 +conda/models/dist.py,sha256=KOECmZx5mYWnX9wHFSnhL9YlbuPz07WFVaLHO6-cD3I,11940 +conda/models/enums.py,sha256=GjUZ5soJiMwKEYgsV1xgbZGrw9m5WiUSFsQ66rTRowQ,4670 +conda/models/environment.py,sha256=9zIXIhSABQuZJrPCXdvymVTo6PuM189pHzG8f2PXU7U,21527 +conda/models/match_spec.py,sha256=w7z5dBFnWPBqgk8yqZ7q-Ce2mMyqQ5qhW7iUKXj3JQ4,43595 +conda/models/package_info.py,sha256=PhFu10iyInC0dzt7v_okEh6wXFftKU7XzXI1lzW7VHI,2257 +conda/models/prefix_graph.py,sha256=6AxnQZnpHAEwJ3ZhCyXE0GldDvfR8g2Ai2Bd1B_PZOk,16633 +conda/models/records.py,sha256=nnUvPkTU97T1FqNgY3icLUbyKmwXK7fdig2OlkLjj9Y,23313 +conda/models/version.py,sha256=YXMB0Rnu_LzIn8-yPBuLMiU4I0wonqJqObVJgFPMrDQ,26182 +conda/notices/__init__.py,sha256=qZejFJsNxj8WzUycGz1CnTwDKjSIMLk2qmIXJQiF-NU,115 +conda/notices/__pycache__/__init__.cpython-313.pyc,, +conda/notices/__pycache__/cache.cpython-313.pyc,, +conda/notices/__pycache__/core.cpython-313.pyc,, +conda/notices/__pycache__/fetch.cpython-313.pyc,, +conda/notices/__pycache__/types.cpython-313.pyc,, +conda/notices/__pycache__/views.cpython-313.pyc,, +conda/notices/cache.py,sha256=nWlxj-uZXg3DvaDC-cVxIS0hRflCIfocms7w3Xf5gGQ,5231 +conda/notices/core.py,sha256=XrGZ4zA10c0EE5DuaU2Tm3Im0L0NCMT01J7sQLRVyCM,7170 +conda/notices/fetch.py,sha256=nSnrTMZ8veuUnGQ-sywtWG8v41AoweBkyKrkkvj4e-M,2607 +conda/notices/types.py,sha256=zVOzf-ctM3L8YzZs5tUrzdkOrOts__Bg6IzYZD4vRng,3615 +conda/notices/views.py,sha256=EerPVSennF1abV_Xks_NZCI_VAaZ79tuMDzaht-cJ38,2040 +conda/plan.py,sha256=Jnf4yxMDBgkMGcecgPOOWA_1o-0owx9LrMG4f-i5884,5678 +conda/plugins/__init__.py,sha256=WSh8JLD32smPTMFhozVp_rLhXySdqGHYVeugIyXFqjw,3909 +conda/plugins/__pycache__/__init__.cpython-313.pyc,, +conda/plugins/__pycache__/config.cpython-313.pyc,, +conda/plugins/__pycache__/hookspec.cpython-313.pyc,, +conda/plugins/__pycache__/manager.cpython-313.pyc,, +conda/plugins/__pycache__/solvers.cpython-313.pyc,, +conda/plugins/__pycache__/types.cpython-313.pyc,, +conda/plugins/config.py,sha256=r-tab7jcI18aDT9ARhp60NDxoMIsqPyL6AzEpM2_yD4,4294 +conda/plugins/environment_exporters/__init__.py,sha256=uiwJ_cYycZgwwhTDZp0_ysx7X8buptpw-VJ9nXrS-uE,322 +conda/plugins/environment_exporters/__pycache__/__init__.cpython-313.pyc,, +conda/plugins/environment_exporters/__pycache__/environment_yml.cpython-313.pyc,, +conda/plugins/environment_exporters/__pycache__/explicit.cpython-313.pyc,, +conda/plugins/environment_exporters/__pycache__/requirements_txt.cpython-313.pyc,, +conda/plugins/environment_exporters/environment_yml.py,sha256=HSevZyNy-5CGvy96fMrMvmA0wyzT7J8EL5dLLj0ho_A,3776 +conda/plugins/environment_exporters/explicit.py,sha256=dygi9TS7UOQqg-keP5jq_5UkorVRlKrTI2RJSIBJ-fw,3570 +conda/plugins/environment_exporters/requirements_txt.py,sha256=bBJKXnC0BQgYA_fpJKMyI03TjuJ6Mj77eq5BJlAXM9U,2193 +conda/plugins/environment_specifiers/__init__.py,sha256=lbQSIcjYTCsf0BfvWPvjqdEZwMgd6Gl9FxrZBKx-UA0,360 +conda/plugins/environment_specifiers/__pycache__/__init__.cpython-313.pyc,, +conda/plugins/environment_specifiers/__pycache__/cep_24.cpython-313.pyc,, +conda/plugins/environment_specifiers/__pycache__/environment_yml.cpython-313.pyc,, +conda/plugins/environment_specifiers/__pycache__/explicit.cpython-313.pyc,, +conda/plugins/environment_specifiers/__pycache__/requirements_txt.cpython-313.pyc,, +conda/plugins/environment_specifiers/cep_24.py,sha256=55itTvzAl8RMgOdnTXRoRzxEqOGe8ZCatpxsR3g2xlE,454 +conda/plugins/environment_specifiers/environment_yml.py,sha256=fODwplvMbMqR5-ms9Ycpsx9Ae1zBb2vGh1_4MfBQODs,456 +conda/plugins/environment_specifiers/explicit.py,sha256=rNm3jFmaCPcwctwURoQW3omdh23mU9n7rUzCTGOy5fc,426 +conda/plugins/environment_specifiers/requirements_txt.py,sha256=us-fxuqBYujBX5I3sDNNUbQcOKnyP5R9sVJGsl7AiXw,454 +conda/plugins/hookspec.py,sha256=63CJm9P6HjKlraW12VW2PSUDida7aEcesIhzbMAumYA,22212 +conda/plugins/manager.py,sha256=Pb6djBISG7ersUQot-GZ9WPqsz_bUKJAWDTofCjvrWc,32205 +conda/plugins/post_solves/__init__.py,sha256=echfIS1KosnulZOq3HKIm7YiWbR_T0hmLWF77CPqmHU,281 +conda/plugins/post_solves/__pycache__/__init__.cpython-313.pyc,, +conda/plugins/post_solves/__pycache__/signature_verification.cpython-313.pyc,, +conda/plugins/post_solves/signature_verification.py,sha256=4tOlZkU5DL6ygz6mrtAK5JSuzeHS149_U9AbLAOEA2Y,416 +conda/plugins/prefix_data_loaders/__init__.py,sha256=w3WDOPuwTxVfPhG7jOqYmWY6tvRYK7qPUlZyF13vAJQ,112 +conda/plugins/prefix_data_loaders/__pycache__/__init__.cpython-313.pyc,, +conda/plugins/prefix_data_loaders/pypi/__init__.py,sha256=V50HfEhYRkjH885btK9Xs_AaCDbZoOVJK25b52IardA,6083 +conda/plugins/prefix_data_loaders/pypi/__pycache__/__init__.cpython-313.pyc,, +conda/plugins/prefix_data_loaders/pypi/__pycache__/pkg_format.cpython-313.pyc,, +conda/plugins/prefix_data_loaders/pypi/pkg_format.py,sha256=LqSSgr_9R5v2FAHyP1wFFrXtnvMTtLETj_adDuEB6Sw,48538 +conda/plugins/reporter_backends/__init__.py,sha256=ry9SFj-ie-bsYej1T7XeKJ2YRzQWagQY4vvDiNfmMnE,130 +conda/plugins/reporter_backends/__pycache__/__init__.cpython-313.pyc,, +conda/plugins/reporter_backends/__pycache__/console.cpython-313.pyc,, +conda/plugins/reporter_backends/__pycache__/json.cpython-313.pyc,, +conda/plugins/reporter_backends/console.py,sha256=zHhjXd6Caarwiop4vaon8iOmV8dKJcxl2SltssBXqso,8313 +conda/plugins/reporter_backends/json.py,sha256=d2HZHXyisliOO129zJmjusj7dfR21tdjs7whmoOLwcc,3552 +conda/plugins/solvers.py,sha256=lZ99mLvog0oX0S2vs1SgfF9mIeRCITrVxse6qr9ilZc,496 +conda/plugins/subcommands/__init__.py,sha256=D9JxxKjbqbK4AZcm8eJnfJJjr4Aw4AodquXQaRjQCMs,116 +conda/plugins/subcommands/__pycache__/__init__.cpython-313.pyc,, +conda/plugins/subcommands/doctor/__init__.py,sha256=QZtH9871T2DnGOr9xjBkdQWDdABTp5VHaanazSGpzVk,1310 +conda/plugins/subcommands/doctor/__pycache__/__init__.cpython-313.pyc,, +conda/plugins/subcommands/doctor/__pycache__/health_checks.cpython-313.pyc,, +conda/plugins/subcommands/doctor/health_checks.py,sha256=JuGD1k0Pkrzga87v8RCJSPfHWvHPraHqhsuzBTR4oRk,11400 +conda/plugins/types.py,sha256=sFeRFU56p33uCT3jxMGvOyOYk-ROoCWmObOdrj2wjqM,18766 +conda/plugins/virtual_packages/__init__.py,sha256=2oo0P0rWNw9gxQdzJ5IcVtx96h8mbCH5GhW_AKB_rhw,317 +conda/plugins/virtual_packages/__pycache__/__init__.cpython-313.pyc,, +conda/plugins/virtual_packages/__pycache__/archspec.cpython-313.pyc,, +conda/plugins/virtual_packages/__pycache__/conda.cpython-313.pyc,, +conda/plugins/virtual_packages/__pycache__/cuda.cpython-313.pyc,, +conda/plugins/virtual_packages/__pycache__/freebsd.cpython-313.pyc,, +conda/plugins/virtual_packages/__pycache__/linux.cpython-313.pyc,, +conda/plugins/virtual_packages/__pycache__/osx.cpython-313.pyc,, +conda/plugins/virtual_packages/__pycache__/windows.cpython-313.pyc,, +conda/plugins/virtual_packages/archspec.py,sha256=vtIwgWqFlpQ9VwisfypOZBFUUOhKsbb1ukCDuRyiP3o,782 +conda/plugins/virtual_packages/conda.py,sha256=1odWmsaOvEkKJijlZlarTlVvXkwAcbwTmxzRV7kvDLg,615 +conda/plugins/virtual_packages/cuda.py,sha256=JgkmfZnuVkFc99YWH4TguptbJ-varvEcoEYQdJAdIqk,5221 +conda/plugins/virtual_packages/freebsd.py,sha256=JbHw7Rylkc22cd3Sbwmt1XueltWilE4hMcPMQiu_EGI,708 +conda/plugins/virtual_packages/linux.py,sha256=C-xd9MpVWoHw3I412PpESmuQ5gJr-pRG47sSL2OXD3M,2534 +conda/plugins/virtual_packages/osx.py,sha256=PlIuTf4zf2nCKax-wYrark33qKJ7EiZ4s-90f4utQyc,1263 +conda/plugins/virtual_packages/windows.py,sha256=G1rIfYPAO0cAhb0wR20lK09rPcFQzioiZvsfyFoOchw,1048 +conda/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +conda/reporters.py,sha256=S8AUE_gLFtIIffdIRgvJmBYKr6NHpNRGH-ErLX2VTnU,2787 +conda/resolve.py,sha256=Eljw-s-IxSRaTN1WE40qaeHizCyPEc9mlYUAtAseMec,69223 +conda/shell/Library/bin/conda.bat,sha256=hKsbqhMFT8BkUqiuz7WqYsXPsK0vkZD47iVh-J4Bf74,121 +conda/shell/Scripts/activate.bat,sha256=5W1-QLkOBdt8ukBOFfhcIQnEphc6XV1-tv6hI_4YLEA,1111 +conda/shell/bin/activate,sha256=RNhzx3837W_voLmBF7kPiCsZHYj8BCBgshDsgUg35C4,149 +conda/shell/bin/deactivate,sha256=jm6Z5CsrAQl1RiGZNPo2H1b2RU_6v5HQPTh88JMJk8I,237 +conda/shell/cli-32.exe,sha256=AXDdpglRnAiLHkYZoeHRWgFwGmxRS7Vfmahfy71UFjE,53016 +conda/shell/cli-64.exe,sha256=ksFczN7sw4Vsad19R_4B2Nd4K29K2h29hnkKXnAupz8,54040 +conda/shell/conda.xsh,sha256=qnsGmsr3m5s8mqQwOHnryzDkRWQxvJQy46nkSPAGgM4,7390 +conda/shell/conda_icon.ico,sha256=OdhQ1RaSD84ZdELWRVg0TxsPacDbayB7n6BCFzD1SQE,126355 +conda/shell/condabin/Conda.psm1,sha256=xwP7_p0xeULdlPuZT2ATcbuZhe9ZQZuGcx-vJP2ufWg,7731 +conda/shell/condabin/_conda_activate.bat,sha256=aNRMc19SSUaWIivDkjycfpXV0xe30J1YaUTeffy8dCQ,1903 +conda/shell/condabin/activate.bat,sha256=EqSYwn1ietETn45sCPAolmz3TPWmIprqHQsUIQxYViE,143 +conda/shell/condabin/conda-hook.ps1,sha256=CPhZL_Usn1Jqg5wHj5_HO2NR9OlCtlxcQwyZcYfWNV0,90 +conda/shell/condabin/conda.bat,sha256=Kw1kNMG0wMRtXCUgJ376sbDO9oNOWXjikm_6uq3X47s,729 +conda/shell/condabin/conda_auto_activate.bat,sha256=ZCmP1B6KCQ98AX8madnybnMiiKVaGD-6YyAmi2gTjJQ,715 +conda/shell/condabin/conda_hook.bat,sha256=a5BCc15kVj796u_i9Pa1mQlPPMZ7fRHI-RpeHP4Dp-c,641 +conda/shell/condabin/deactivate.bat,sha256=sQV8wQYB6RaUysTLgLFVaOWQuwobY-f6ShsbqBMS2KM,188 +conda/shell/condabin/rename_tmp.bat,sha256=6D-r8u3iWM2rUeMT5-hQ19TkKpaywVZzy4Hdq7dpNYs,149 +conda/shell/etc/fish/conf.d/conda.fish,sha256=u75-0zl1THLTJfL8gF-pmry2Gx_30Caq6NHnEPR-gqA,3444 +conda/shell/etc/profile.d/conda.csh,sha256=ymLhXdGlyDZGnHQP1CIUJ8um4b8lq_3TTPYj3KIzw5o,2022 +conda/shell/etc/profile.d/conda.sh,sha256=Zraru-9b2UMrXy_MgQrJ9Fw4wHQg88FLSd1FhNxggK8,2201 +conda/testing/__init__.py,sha256=GmEBCU47O4PCMxV6JuSSf4l8P3CH0zC-xEEacSFENnQ,2954 +conda/testing/__pycache__/__init__.cpython-313.pyc,, +conda/testing/__pycache__/cases.cpython-313.pyc,, +conda/testing/__pycache__/fixtures.cpython-313.pyc,, +conda/testing/__pycache__/helpers.cpython-313.pyc,, +conda/testing/__pycache__/integration.cpython-313.pyc,, +conda/testing/__pycache__/solver_helpers.cpython-313.pyc,, +conda/testing/cases.py,sha256=oEZufgaOAkmQAqVyWbKHeQ9gufW4b-wgFN0PRyTZpS0,453 +conda/testing/fixtures.py,sha256=x2RVQ1jP-SnEdPcjp6Z0spvvBVF-h0uL0sAepWkIdxY,20067 +conda/testing/gateways/__init__.py,sha256=Xc6wOJSxSUQz7Z91PPbZ27WAv28rNuNGy0WSNda9uQc,75 +conda/testing/gateways/__pycache__/__init__.cpython-313.pyc,, +conda/testing/gateways/__pycache__/fixtures.cpython-313.pyc,, +conda/testing/gateways/fixtures.py,sha256=XFVySza_IaVEAipgmvkX2koGV3FLBgmk3xMFGyxpWIU,4383 +conda/testing/helpers.py,sha256=5COnkpCamzJvVRgn8WxxGs_KnexCde-2OZpdyHbcrOo,23127 +conda/testing/integration.py,sha256=lWWQ-EHU6hf-OU_rniXD814RBCG-tHsUPAY-SPBgH-0,3828 +conda/testing/notices/__init__.py,sha256=Xc6wOJSxSUQz7Z91PPbZ27WAv28rNuNGy0WSNda9uQc,75 +conda/testing/notices/__pycache__/__init__.cpython-313.pyc,, +conda/testing/notices/__pycache__/fixtures.cpython-313.pyc,, +conda/testing/notices/__pycache__/helpers.cpython-313.pyc,, +conda/testing/notices/fixtures.py,sha256=xZRj1B1aJhL56WPVpbyKmd7jZINu2Qs8i5SLKIEv1Q8,1294 +conda/testing/notices/helpers.py,sha256=4NnsyobQqmczvWH1OHObnjfyQvFL_1rnzIWLMQOlQdI,4053 +conda/testing/solver_helpers.py,sha256=J_sVEaDMUy7mlHnP0xthEmhlM3nISRB6xQn-rJkj-qg,47104 +conda/trust/__init__.py,sha256=hQHUKs8Qf-lBCCfm23taKt-U_uvDrYYRuAzMXOozwYA,274 +conda/trust/__pycache__/__init__.cpython-313.pyc,, +conda/trust/__pycache__/constants.cpython-313.pyc,, +conda/trust/__pycache__/signature_verification.cpython-313.pyc,, +conda/trust/constants.py,sha256=zlFUPQSbj97z6gNkbtRNo5a-PffCMkthzEAhe3AVK4U,2816 +conda/trust/signature_verification.py,sha256=IlpDSQhwLufgcK4IbWVMzFiLBLadIbFUDsZO34P3AG8,11540 +conda/utils.py,sha256=qTf4Sk2KEVrd915NHGRo1DpoGj4FLuH7B459km_fB5I,13221 +conda_env/README.md,sha256=aSlTDVqtGwv4Cc-xBZ_00WotjCZkj1912SNKHa95FBQ,2389 +conda_env/__init__.py,sha256=_MeKNchxNWv6ONduTfaHQCpkcB_mJzRkeQ97z8qE3nQ,196 +conda_env/__pycache__/__init__.cpython-313.pyc,, +conda_env/cli/__init__.py,sha256=G8ALfOi7Gn1pmAowcRFnmsU-aCif2MoEQ_v9SJ6AX9w,152 +conda_env/cli/__pycache__/__init__.cpython-313.pyc,, +conda_env/installers/__init__.py,sha256=G8ALfOi7Gn1pmAowcRFnmsU-aCif2MoEQ_v9SJ6AX9w,152 +conda_env/installers/__pycache__/__init__.cpython-313.pyc,, +tests/data/recipes/activate_deactivate_package/src/etc/conda/activate.d/activate.bat,sha256=ExRqo4kq6_IrZpUTur2J2WdoFSi-EX9MzYFC3KrOKHM,120 +tests/data/recipes/activate_deactivate_package/src/etc/conda/activate.d/activate.sh,sha256=v_2Cxyn3WEKgVKYoBEuB5WsMtdypkQ3U3SObt1jt2Yc,74 +tests/data/recipes/activate_deactivate_package/src/etc/conda/deactivate.d/deactivate.bat,sha256=5O5-sotlPKxEQyOz44t08meMxSgQ_4370db7XuwUSLQ,52 +tests/data/recipes/activate_deactivate_package/src/etc/conda/deactivate.d/deactivate.sh,sha256=4KIMhteeaC0tHmB5exM26OiFCv9uJyu2yCFj3QrnMRI,90 diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/REQUESTED b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/REQUESTED new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/WHEEL b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..12228d414b6cfed7c39d3781c85c63256a1d7fb5 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/WHEEL @@ -0,0 +1,4 @@ +Wheel-Version: 1.0 +Generator: hatchling 1.27.0 +Root-Is-Purelib: true +Tag: py3-none-any diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/direct_url.json b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/direct_url.json new file mode 100644 index 0000000000000000000000000000000000000000..9e47fa4401647205a0baf2f592da835348228ad3 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/direct_url.json @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///home/task_176556791054345/conda-bld/conda_1765567979493/work/conda-src"} \ No newline at end of file diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/entry_points.txt b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/entry_points.txt new file mode 100644 index 0000000000000000000000000000000000000000..6d7da3a6e231bb52990a75097606ab894b85d227 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda-25.11.1.dist-info/entry_points.txt @@ -0,0 +1,2 @@ +[console_scripts] +conda = conda.cli.main_pip:main diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/__main__.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/__main__.py new file mode 100644 index 0000000000000000000000000000000000000000..791e8e9cdbab3f17320b9f900dca2ebfdfcd03a4 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/__main__.py @@ -0,0 +1,9 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Conda as a module entry point.""" + +import sys + +from .cli import main + +sys.exit(main()) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/_version.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/_version.py new file mode 100644 index 0000000000000000000000000000000000000000..5ffd9a2d542b74aa6acf244ae22622a192f644bc --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/_version.py @@ -0,0 +1,34 @@ +# file generated by setuptools-scm +# don't change, don't track in version control + +__all__ = [ + "__version__", + "__version_tuple__", + "version", + "version_tuple", + "__commit_id__", + "commit_id", +] + +TYPE_CHECKING = False +if TYPE_CHECKING: + from typing import Tuple + from typing import Union + + VERSION_TUPLE = Tuple[Union[int, str], ...] + COMMIT_ID = Union[str, None] +else: + VERSION_TUPLE = object + COMMIT_ID = object + +version: str +__version__: str +__version_tuple__: VERSION_TUPLE +version_tuple: VERSION_TUPLE +commit_id: COMMIT_ID +__commit_id__: COMMIT_ID + +__version__ = version = '25.11.1' +__version_tuple__ = version_tuple = (25, 11, 1) + +__commit_id__ = commit_id = None diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/activate.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/activate.py new file mode 100644 index 0000000000000000000000000000000000000000..4bacf9452827584e0edcd5695c66c9f781e090d0 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/activate.py @@ -0,0 +1,1138 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Conda activate and deactivate logic. + +Implementation for all shell interface logic exposed via +`conda shell.* [activate|deactivate|reactivate|hook|commands]`. This includes a custom argument +parser, an abstract shell class, and special path handling for Windows. + +See conda.cli.main.main_sourced for the entry point into this module. +""" + +from __future__ import annotations + +import abc +import os +import re +import sys +from logging import getLogger +from os.path import ( + abspath, + basename, + dirname, + exists, + expanduser, + expandvars, + isdir, + join, +) +from pathlib import Path +from typing import TYPE_CHECKING + +# Since we have to have configuration context here, anything imported by +# conda.base.context is fair game, but nothing more. +from . import CONDA_PACKAGE_ROOT +from .auxlib.compat import Utf8NamedTemporaryFile +from .base.constants import ( + CONDA_ENV_VARS_UNSET_VAR, + PACKAGE_ENV_VARS_DIR, + PREFIX_STATE_FILE, + RESERVED_ENV_NAMES, + RESERVED_ENV_VARS, +) +from .base.context import context, locate_prefix_by_name +from .common.compat import on_win +from .common.path import path_identity as _path_identity +from .common.path import paths_equal, unix_path_to_win, win_path_to_unix +from .common.serialize import json +from .deprecations import deprecated +from .exceptions import ActivateHelp, ArgumentError, DeactivateHelp, GenericHelp + +if TYPE_CHECKING: + from collections.abc import Callable, Iterable + +log = getLogger(__name__) + + +BUILTIN_COMMANDS = { + "activate": ActivateHelp(), + "deactivate": DeactivateHelp(), + "hook": GenericHelp("hook"), + "commands": GenericHelp("commands"), + "reactivate": GenericHelp("reactivate"), +} + + +class _Activator(metaclass=abc.ABCMeta): + # Activate and deactivate have three tasks + # 1. Set and unset environment variables + # 2. Execute/source activate.d/deactivate.d scripts + # 3. Update the command prompt + # + # Shells should also use 'reactivate' following conda's install, update, and + # remove/uninstall commands. + # + # All core logic is in build_activate() or build_deactivate(), and is independent of + # shell type. Each returns a map containing the keys: + # export_vars + # unset_var + # activate_scripts + # deactivate_scripts + # + # The value of the CONDA_PROMPT_MODIFIER environment variable holds conda's contribution + # to the command prompt. + # + # To implement support for a new shell, ideally one would only need to add shell-specific + # information to the __init__ method of this class. + + # The following instance variables must be defined by each implementation. + pathsep_join: str + sep: str + path_conversion: Callable[ + [str | Iterable[str] | None], str | tuple[str, ...] | None + ] + script_extension: str + #: temporary file's extension, None writes to stdout instead + tempfile_extension: str | None + command_join: str + + unset_var_tmpl: str + export_var_tmpl: str + path_var_tmpl: str + set_var_tmpl: str + run_script_tmpl: str + + hook_source_path: Path | None + inline_hook_source: bool + + needs_line_ending_fix: bool + + def __init__(self, arguments=None): + self._raw_arguments = arguments + + def get_export_unset_vars(self, export_metavars=True, **kwargs): + """ + :param export_metavars: whether to export `conda_exe_vars` meta variables. + :param kwargs: environment variables to export. + .. if you pass and set any other variable to None, then it + emits it to the dict with a value of None. + + :return: A dict of env vars to export ordered the same way as kwargs. + And a list of env vars to unset. + """ + unset_vars = [] + export_vars = {} + + # split provided environment variables into exports vs unsets + for name, value in kwargs.items(): + if value is None: + unset_vars.append(name) + else: + export_vars[name] = value + + if export_metavars: + # split meta variables into exports vs unsets + for name, value in context.conda_exe_vars_dict.items(): + if value is None: + unset_vars.append(name) + elif "/" in value or "\\" in value: + export_vars[name] = self.path_conversion(value) + else: + export_vars[name] = value + else: + # unset all meta variables + unset_vars.extend(context.conda_exe_vars_dict) + + # normalize case if requested + if context.envvars_force_uppercase: + export_vars = {name.upper(): value for name, value in export_vars.items()} + unset_vars = [name.upper() for name in unset_vars] + + return export_vars, unset_vars + + def _finalize(self, commands, ext): + commands = (*commands, "") # add terminating newline + content = self.command_join.join(commands) + + # Normalize line endings for Unix shells on Windows + if on_win and self.path_conversion == win_path_to_unix: + content = content.replace("\r\n", "\n") + + if ext is None: + return content + elif ext: + with Utf8NamedTemporaryFile("w+", suffix=ext, delete=False) as tf: + # the default mode is 'w+b', and universal new lines don't work in that mode + tf.write(content) + return tf.name + else: + raise NotImplementedError() + + def activate(self): + if self.stack: + builder_result = self.build_stack(self.env_name_or_prefix) + else: + builder_result = self.build_activate(self.env_name_or_prefix) + return self._finalize( + self._yield_commands(builder_result), self.tempfile_extension + ) + + def deactivate(self): + return self._finalize( + self._yield_commands(self.build_deactivate()), self.tempfile_extension + ) + + def reactivate(self): + return self._finalize( + self._yield_commands(self.build_reactivate()), self.tempfile_extension + ) + + @deprecated.argument("25.9", "26.3", "auto_activate_base", rename="auto_activate") + def hook(self, auto_activate: bool | None = None) -> str: + builder: list[str] = [] + if preamble := self._hook_preamble(): + builder.append(preamble) + if self.hook_source_path: + if self.inline_hook_source: + builder.append(self.hook_source_path.read_text()) + else: + builder.append(self.run_script_tmpl % self.hook_source_path) + if auto_activate is None and context.auto_activate or auto_activate: + builder.append(f"conda activate '{context.default_activation_env}'\n") + postamble = self._hook_postamble() + if postamble is not None: + builder.append(postamble) + return "\n".join(builder) + + def execute(self): + # return value meant to be written to stdout + self._parse_and_set_args() + + # invoke pre/post commands, see conda.cli.conda_argparse.do_call + context.plugin_manager.invoke_pre_commands(self.command) + response = getattr(self, self.command)() + context.plugin_manager.invoke_post_commands(self.command) + return response + + def template_unset_var(self, key: str) -> str: + return self.unset_var_tmpl % key + + def template_export_var(self, key: str, value: str) -> str: + return self.export_var_tmpl % (key, value) + + def template_path_var(self, key: str, value: str) -> str: + return self.path_var_tmpl % (key, value) + + def _hook_preamble(self) -> str | None: + result = [] + for key, value in context.conda_exe_vars_dict.items(): + if value is None: + result.append(self.template_unset_var(key)) + elif {"/", "\\"}.intersection(value): + result.append(self.template_path_var(key, value)) + else: + result.append(self.template_export_var(key, value)) + if result: + return self.command_join.join(result) + self.command_join + return None + + def _hook_postamble(self) -> str | None: + return None + + def _parse_and_set_args(self) -> None: + command, *arguments = self._raw_arguments or [None] + help_flags = ("-h", "--help", "/?") + non_help_args = tuple(arg for arg in arguments if arg not in help_flags) + help_requested = len(arguments) != len(non_help_args) + remainder_args = list(arg for arg in non_help_args if arg and arg != command) + + if command not in BUILTIN_COMMANDS: + raise ArgumentError( + "'activate', 'deactivate', 'hook', 'commands', or 'reactivate' " + "command must be given." + (f", not '{command}'." if command else ".") + ) + elif help_requested: + raise BUILTIN_COMMANDS[command] + + if command.endswith("activate") or command == "hook": + try: + dev_idx = remainder_args.index("--dev") + except ValueError: + context.dev = False + else: + del remainder_args[dev_idx] + context.dev = True + + if command == "activate": + self.stack = context.auto_stack and context.shlvl <= context.auto_stack + try: + stack_idx = remainder_args.index("--stack") + except ValueError: + stack_idx = -1 + try: + no_stack_idx = remainder_args.index("--no-stack") + except ValueError: + no_stack_idx = -1 + if stack_idx >= 0 and no_stack_idx >= 0: + raise ArgumentError( + "cannot specify both --stack and --no-stack to " + command + ) + if stack_idx >= 0: + self.stack = True + del remainder_args[stack_idx] + if no_stack_idx >= 0: + self.stack = False + del remainder_args[no_stack_idx] + if len(remainder_args) > 1: + raise ArgumentError( + command + + " does not accept more than one argument:\n" + + str(remainder_args) + + "\n" + ) + if remainder_args: + self.env_name_or_prefix = remainder_args[0] + else: + self.env_name_or_prefix = context.default_activation_env + elif remainder_args: + raise ArgumentError( + f"{command} does not accept arguments\nremainder_args: {remainder_args}\n" + ) + + self.command = command + + def _yield_commands(self, cmds_dict): + for key, value in sorted(cmds_dict.get("export_path", {}).items()): + yield self.export_var_tmpl % (key, value) + + for script in cmds_dict.get("deactivate_scripts", ()): + yield self.run_script_tmpl % script + + for key in cmds_dict.get("unset_vars", ()): + yield self.unset_var_tmpl % key + + for key, value in cmds_dict.get("set_vars", {}).items(): + yield self.set_var_tmpl % (key, value) + + for key, value in cmds_dict.get("export_vars", {}).items(): + yield self.export_var_tmpl % (key, value) + + for script in cmds_dict.get("activate_scripts", ()): + yield self.run_script_tmpl % script + + def build_activate(self, env_name_or_prefix): + return self._build_activate_stack(env_name_or_prefix, False) + + def build_stack(self, env_name_or_prefix): + return self._build_activate_stack(env_name_or_prefix, True) + + def _build_activate_stack(self, env_name_or_prefix, stack): + # get environment prefix + if re.search(r"\\|/", env_name_or_prefix): + prefix = expand(env_name_or_prefix) + if not isdir(join(prefix, "conda-meta")): + from .exceptions import EnvironmentLocationNotFound + + raise EnvironmentLocationNotFound(prefix) + elif env_name_or_prefix in (RESERVED_ENV_NAMES): + prefix = context.root_prefix + else: + prefix = locate_prefix_by_name(env_name_or_prefix) + + # get prior shlvl and prefix + old_conda_shlvl = int(os.getenv("CONDA_SHLVL", "").strip() or 0) + old_conda_prefix = os.getenv("CONDA_PREFIX") + + # if the prior active prefix is this prefix we are actually doing a reactivate + if old_conda_prefix == prefix and old_conda_shlvl > 0: + return self.build_reactivate() + + activate_scripts = self._get_activate_scripts(prefix) + conda_shlvl = old_conda_shlvl + 1 + conda_default_env = self._default_env(prefix) + conda_prompt_modifier = self._prompt_modifier(prefix, conda_default_env) + env_vars = { + name: value + for name, value in self._get_environment_env_vars(prefix).items() + if value != CONDA_ENV_VARS_UNSET_VAR + } + + # get clobbered environment variables + clobber_vars = set(env_vars).intersection(os.environ) + overwritten_clobber_vars = [ + clobber_var + for clobber_var in clobber_vars + if os.getenv(clobber_var) != env_vars[clobber_var] + ] + if overwritten_clobber_vars: + print( + "WARNING: overwriting environment variables set in the machine", + file=sys.stderr, + ) + print(f"overwriting variable {overwritten_clobber_vars}", file=sys.stderr) + for name in clobber_vars: + env_vars[f"__CONDA_SHLVL_{old_conda_shlvl}_{name}"] = os.getenv(name) + + if old_conda_shlvl == 0: + export_vars, unset_vars = self.get_export_unset_vars( + PATH=self.pathsep_join(self._add_prefix_to_path(prefix)), + CONDA_PREFIX=prefix, + CONDA_SHLVL=conda_shlvl, + CONDA_DEFAULT_ENV=conda_default_env, + CONDA_PROMPT_MODIFIER=conda_prompt_modifier, + **env_vars, + ) + deactivate_scripts = () + elif stack: + export_vars, unset_vars = self.get_export_unset_vars( + PATH=self.pathsep_join(self._add_prefix_to_path(prefix)), + CONDA_PREFIX=prefix, + CONDA_SHLVL=conda_shlvl, + CONDA_DEFAULT_ENV=conda_default_env, + CONDA_PROMPT_MODIFIER=conda_prompt_modifier, + **env_vars, + **{ + f"CONDA_PREFIX_{old_conda_shlvl}": old_conda_prefix, + f"CONDA_STACKED_{conda_shlvl}": "true", + }, + ) + deactivate_scripts = () + else: + export_vars, unset_vars = self.get_export_unset_vars( + PATH=self.pathsep_join( + self._replace_prefix_in_path(old_conda_prefix, prefix) + ), + CONDA_PREFIX=prefix, + CONDA_SHLVL=conda_shlvl, + CONDA_DEFAULT_ENV=conda_default_env, + CONDA_PROMPT_MODIFIER=conda_prompt_modifier, + **env_vars, + **{ + f"CONDA_PREFIX_{old_conda_shlvl}": old_conda_prefix, + }, + ) + deactivate_scripts = self._get_deactivate_scripts(old_conda_prefix) + + set_vars = {} + if context.changeps1: + self._update_prompt(set_vars, conda_prompt_modifier) + + return { + "unset_vars": unset_vars, + "set_vars": set_vars, + "export_vars": export_vars, + "deactivate_scripts": deactivate_scripts, + "activate_scripts": activate_scripts, + } + + def build_deactivate(self): + self._deactivate = True + # query environment + old_conda_prefix = os.getenv("CONDA_PREFIX") + old_conda_shlvl = int(os.getenv("CONDA_SHLVL", "").strip() or 0) + if not old_conda_prefix or old_conda_shlvl < 1: + # no active environment, so cannot deactivate; do nothing + return { + "unset_vars": (), + "set_vars": {}, + "export_vars": {}, + "deactivate_scripts": (), + "activate_scripts": (), + } + deactivate_scripts = self._get_deactivate_scripts(old_conda_prefix) + old_conda_environment_env_vars = self._get_environment_env_vars( + old_conda_prefix + ) + + new_conda_shlvl = old_conda_shlvl - 1 + set_vars = {} + if old_conda_shlvl == 1: + new_path = self.pathsep_join( + self._remove_prefix_from_path(old_conda_prefix) + ) + # You might think that you can remove the CONDA_EXE vars with export_metavars=False + # here so that "deactivate means deactivate" but you cannot since the conda shell + # scripts still refer to them and they only set them once at the top. We could change + # that though, the conda() shell function could set them instead of doing it at the + # top. This would be *much* cleaner. I personally cannot abide that I have + # deactivated conda and anything at all in my env still references it (apart from the + # shell script, we need something I suppose!) + export_vars, unset_vars = self.get_export_unset_vars( + CONDA_PREFIX=None, + CONDA_SHLVL=new_conda_shlvl, + CONDA_DEFAULT_ENV=None, + CONDA_PROMPT_MODIFIER=None, + ) + conda_prompt_modifier = "" + activate_scripts = () + export_path = {"PATH": new_path} + else: + if old_conda_shlvl <= 1: + raise ValueError("'old_conda_shlvl' must be 2 or larger") + new_prefix = os.getenv("CONDA_PREFIX_%d" % new_conda_shlvl) + conda_default_env = self._default_env(new_prefix) + conda_prompt_modifier = self._prompt_modifier(new_prefix, conda_default_env) + new_conda_environment_env_vars = self._get_environment_env_vars(new_prefix) + + old_prefix_stacked = "CONDA_STACKED_%d" % old_conda_shlvl in os.environ + new_path = "" + + unset_vars = ["CONDA_PREFIX_%d" % new_conda_shlvl] + if old_prefix_stacked: + new_path = self.pathsep_join( + self._remove_prefix_from_path(old_conda_prefix) + ) + unset_vars.append("CONDA_STACKED_%d" % old_conda_shlvl) + else: + new_path = self.pathsep_join( + self._replace_prefix_in_path(old_conda_prefix, new_prefix) + ) + + export_vars, unset_vars2 = self.get_export_unset_vars( + CONDA_PREFIX=new_prefix, + CONDA_SHLVL=new_conda_shlvl, + CONDA_DEFAULT_ENV=conda_default_env, + CONDA_PROMPT_MODIFIER=conda_prompt_modifier, + **new_conda_environment_env_vars, + ) + unset_vars += unset_vars2 + export_path = {"PATH": new_path} + activate_scripts = self._get_activate_scripts(new_prefix) + + if context.changeps1: + self._update_prompt(set_vars, conda_prompt_modifier) + + # Handle environment variables that need to be unset during deactivation + for env_var in old_conda_environment_env_vars.keys(): + if save_value := os.getenv(f"__CONDA_SHLVL_{new_conda_shlvl}_{env_var}"): + export_vars[env_var] = save_value + else: + # Apply case conversion for environment variables that need to be unset + if context.envvars_force_uppercase: + unset_vars.append(env_var.upper()) + else: + unset_vars.append(env_var) + + return { + "unset_vars": unset_vars, + "set_vars": set_vars, + "export_vars": export_vars, + "export_path": export_path, + "deactivate_scripts": deactivate_scripts, + "activate_scripts": activate_scripts, + } + + def build_reactivate(self): + self._reactivate = True + conda_prefix = os.getenv("CONDA_PREFIX") + conda_shlvl = int(os.getenv("CONDA_SHLVL", "").strip() or 0) + if not conda_prefix or conda_shlvl < 1: + # no active environment, so cannot reactivate; do nothing + return { + "unset_vars": [], + "set_vars": {}, + "export_vars": {}, + "deactivate_scripts": (), + "activate_scripts": (), + } + conda_default_env = os.getenv( + "CONDA_DEFAULT_ENV", self._default_env(conda_prefix) + ) + new_path = self.pathsep_join( + self._replace_prefix_in_path(conda_prefix, conda_prefix) + ) + set_vars = {} + conda_prompt_modifier = self._prompt_modifier(conda_prefix, conda_default_env) + if context.changeps1: + self._update_prompt(set_vars, conda_prompt_modifier) + + export_vars, unset_vars = self.get_export_unset_vars( + PATH=new_path, + CONDA_SHLVL=conda_shlvl, + CONDA_PROMPT_MODIFIER=self._prompt_modifier( + conda_prefix, conda_default_env + ), + ) + + # environment variables are set only to aid transition from conda 4.3 to conda 4.4 + return { + "unset_vars": unset_vars, + "set_vars": set_vars, + "export_vars": export_vars, + "deactivate_scripts": self._get_deactivate_scripts(conda_prefix), + "activate_scripts": self._get_activate_scripts(conda_prefix), + } + + def _get_starting_path_list(self): + # For isolation, running the conda test suite *without* env. var. inheritance + # every so often is a good idea. We should probably make this a pytest fixture + # along with one that tests both hardlink-only and copy-only, but before that + # conda's testsuite needs to be a lot faster! + clean_paths = { + "darwin": "/usr/bin:/bin:/usr/sbin:/sbin", + # You may think 'let us do something more clever here and interpolate + # `%windir%`' but the point here is the the whole env. is cleaned out + "win32": "C:\\Windows\\system32;" + "C:\\Windows;" + "C:\\Windows\\System32\\Wbem;" + "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\", + } + path = os.getenv( + "PATH", + clean_paths[sys.platform] if sys.platform in clean_paths else "/usr/bin", + ) + path_split = path.split(os.pathsep) + return path_split + + def _get_path_dirs(self, prefix): + if on_win: # pragma: unix no cover + yield prefix.rstrip(self.sep) + + # We need to stat(2) for possible environments because + # tests can't be told where to look! + # + # mingw-w64 is a legacy variant used by m2w64-* packages + # + # We could include clang32 and mingw32 variants + variants = [] + for variant in ["ucrt64", "clang64", "mingw64", "clangarm64"]: + path = self.sep.join((prefix, "Library", variant)) + + # MSYS2 /c/ + # cygwin /cygdrive/c/ + if re.match("^(/[A-Za-z]/|/cygdrive/[A-Za-z]/).*", prefix): + path = unix_path_to_win(path, prefix) + + if isdir(path): + variants.append(variant) + + if len(variants) > 1: + print( + f"WARNING: {prefix}: {variants} MSYS2 envs exist: please check your dependencies", + file=sys.stderr, + ) + print( + f"WARNING: conda list -n {self._default_env(prefix)}", + file=sys.stderr, + ) + + if variants: + yield self.sep.join((prefix, "Library", variants[0], "bin")) + + yield self.sep.join((prefix, "Library", "mingw-w64", "bin")) + yield self.sep.join((prefix, "Library", "usr", "bin")) + yield self.sep.join((prefix, "Library", "bin")) + yield self.sep.join((prefix, "Scripts")) + yield self.sep.join((prefix, "bin")) + else: + yield self.sep.join((prefix, "bin")) + + def _add_prefix_to_path(self, prefix, starting_path_dirs=None): + prefix = self.path_conversion(prefix) + if starting_path_dirs is None: + path_list = list(self.path_conversion(self._get_starting_path_list())) + else: + path_list = list(self.path_conversion(starting_path_dirs)) + + # If this is the first time we're activating an environment, we need to ensure that + # the condabin directory is included in the path list. + # Under normal conditions, if the shell hook is working correctly, this should + # never trigger. + old_conda_shlvl = int(os.getenv("CONDA_SHLVL", "").strip() or 0) + if not old_conda_shlvl and not any(p.endswith("condabin") for p in path_list): + condabin_dir = self.path_conversion(join(context.conda_prefix, "condabin")) + path_list.insert(0, condabin_dir) + + path_list[0:0] = list(self.path_conversion(self._get_path_dirs(prefix))) + return tuple(path_list) + + def _remove_prefix_from_path(self, prefix, starting_path_dirs=None): + return self._replace_prefix_in_path(prefix, None, starting_path_dirs) + + def _replace_prefix_in_path(self, old_prefix, new_prefix, starting_path_dirs=None): + old_prefix = self.path_conversion(old_prefix) + new_prefix = self.path_conversion(new_prefix) + if starting_path_dirs is None: + path_list = list(self.path_conversion(self._get_starting_path_list())) + else: + path_list = list(self.path_conversion(starting_path_dirs)) + + def index_of_path(paths, test_path): + for q, path in enumerate(paths): + if paths_equal(path, test_path): + return q + return None + + if old_prefix is not None: + prefix_dirs = tuple(self._get_path_dirs(old_prefix)) + first_idx = index_of_path(path_list, prefix_dirs[0]) + if first_idx is None: + first_idx = 0 + else: + prefix_dirs_idx = len(prefix_dirs) - 1 + last_idx = None + while last_idx is None and prefix_dirs_idx > -1: + last_idx = index_of_path(path_list, prefix_dirs[prefix_dirs_idx]) + if last_idx is None: + print( + f"Did not find path entry {prefix_dirs[prefix_dirs_idx]}", + file=sys.stderr, + ) + prefix_dirs_idx = prefix_dirs_idx - 1 + # this compensates for an extra Library/bin dir entry from the interpreter on + # windows. If that entry isn't being added, it should have no effect. + library_bin_dir = self.path_conversion( + self.sep.join((sys.prefix, "Library", "bin")) + ) + if path_list[last_idx + 1] == library_bin_dir: + last_idx += 1 + del path_list[first_idx : last_idx + 1] + else: + first_idx = 0 + + if new_prefix is not None: + path_list[first_idx:first_idx] = list(self._get_path_dirs(new_prefix)) + + return tuple(path_list) + + def _update_prompt(self, set_vars, conda_prompt_modifier): + pass + + def _default_env(self, prefix): + if paths_equal(prefix, context.root_prefix): + return "base" + return basename(prefix) if basename(dirname(prefix)) == "envs" else prefix + + def _prompt_modifier(self, prefix, conda_default_env): + if context.changeps1: + # Get current environment and prompt stack + env_stack = [] + prompt_stack = [] + old_shlvl = int(os.getenv("CONDA_SHLVL", "0").rstrip()) + for i in range(1, old_shlvl + 1): + if i == old_shlvl: + env_i = self._default_env(os.getenv("CONDA_PREFIX", "")) + else: + env_i = self._default_env( + os.getenv(f"CONDA_PREFIX_{i}", "").rstrip() + ) + stacked_i = bool(os.getenv(f"CONDA_STACKED_{i}", "").rstrip()) + env_stack.append(env_i) + if not stacked_i: + prompt_stack = prompt_stack[0:-1] + prompt_stack.append(env_i) + + # Modify prompt stack according to pending operation + deactivate = getattr(self, "_deactivate", False) + reactivate = getattr(self, "_reactivate", False) + if deactivate: + prompt_stack = prompt_stack[0:-1] + env_stack = env_stack[0:-1] + stacked = bool(os.getenv(f"CONDA_STACKED_{old_shlvl}", "").rstrip()) + if not stacked and env_stack: + prompt_stack.append(env_stack[-1]) + elif reactivate: + pass + else: + stack = getattr(self, "stack", False) + if not stack: + prompt_stack = prompt_stack[0:-1] + prompt_stack.append(conda_default_env) + + conda_stacked_env = ",".join(prompt_stack[::-1]) + + return context.env_prompt.format( + default_env=conda_default_env, + stacked_env=conda_stacked_env, + prefix=prefix, + name=basename(prefix), + ) + else: + return "" + + def _get_activate_scripts(self, prefix): + _script_extension = self.script_extension + se_len = -len(_script_extension) + try: + paths = ( + entry.path + for entry in os.scandir(join(prefix, "etc", "conda", "activate.d")) + ) + except OSError: + return () + return self.path_conversion( + sorted(p for p in paths if p[se_len:] == _script_extension) + ) + + def _get_deactivate_scripts(self, prefix): + _script_extension = self.script_extension + se_len = -len(_script_extension) + try: + paths = ( + entry.path + for entry in os.scandir(join(prefix, "etc", "conda", "deactivate.d")) + ) + except OSError: + return () + return self.path_conversion( + sorted((p for p in paths if p[se_len:] == _script_extension), reverse=True) + ) + + def _get_environment_env_vars(self, prefix): + env_vars_file = join(prefix, PREFIX_STATE_FILE) + pkg_env_var_dir = join(prefix, PACKAGE_ENV_VARS_DIR) + env_vars = {} + + # First get env vars from packages + if exists(pkg_env_var_dir): + for pkg_env_var_path in sorted( + entry.path for entry in os.scandir(pkg_env_var_dir) + ): + with open(pkg_env_var_path) as f: + env_vars.update(json.loads(f.read())) + + # Then get env vars from environment specification + if exists(env_vars_file): + with open(env_vars_file) as f: + prefix_state = json.loads(f.read()) + prefix_state_env_vars = prefix_state.get("env_vars", {}) + dup_vars = [ + ev for ev in env_vars.keys() if ev in prefix_state_env_vars.keys() + ] + for dup in dup_vars: + print( + "WARNING: duplicate env vars detected. Vars from the environment " + "will overwrite those from packages", + file=sys.stderr, + ) + print(f"variable {dup} duplicated", file=sys.stderr) + env_vars.update(prefix_state_env_vars) + + # Remove reserved environment variables and warn if they're being set + collect_reserved_vars = [] + for reserved in RESERVED_ENV_VARS: + if reserved in env_vars: + # Only warn if the variable is actually being set (not unset) + if env_vars[reserved] != CONDA_ENV_VARS_UNSET_VAR: + collect_reserved_vars.append(reserved) + # Remove from env_vars regardless + env_vars.pop(reserved) + + if collect_reserved_vars: + print_reserved_vars = ", ".join(collect_reserved_vars) + print( + f"WARNING: the configured environment variable(s) for prefix '{prefix}' " + f"are reserved and will be ignored: {print_reserved_vars}.\n\n" + f"Remove the invalid configuration with `conda env config vars unset " + f"-p {prefix} {' '.join(collect_reserved_vars)}`.\n", + file=sys.stderr, + ) + return env_vars + + +def expand(path): + return abspath(expanduser(expandvars(path))) + + +def backslash_to_forwardslash( + paths: str | Iterable[str] | None, +) -> str | tuple[str, ...] | None: + if paths is None: + return None + elif isinstance(paths, str): + return paths.replace("\\", "/") + else: + return tuple([path.replace("\\", "/") for path in paths]) + + +class PosixActivator(_Activator): + pathsep_join = ":".join + sep = "/" + path_conversion = staticmethod(win_path_to_unix if on_win else _path_identity) + script_extension = ".sh" + tempfile_extension = None # output to stdout + command_join = "\n" + needs_line_ending_fix = True + + # Using `unset %s` would cause issues for people running + # with shell flag -u set (error on unset). + unset_var_tmpl = "export %s=''" # unset %s + export_var_tmpl = "export %s='%s'" + path_var_tmpl = "export %s=\"$(cygpath '%s')\"" if on_win else export_var_tmpl + set_var_tmpl = "%s='%s'" + run_script_tmpl = ". \"`cygpath '%s'`\"" if on_win else '. "%s"' + + hook_source_path = Path( + CONDA_PACKAGE_ROOT, + "shell", + "etc", + "profile.d", + "conda.sh", + ) + inline_hook_source = True + + def _update_prompt(self, set_vars, conda_prompt_modifier): + ps1 = os.getenv("PS1", "") + if "POWERLINE_COMMAND" in ps1: + # Defer to powerline (https://github.com/powerline/powerline) if it's in use. + return + current_prompt_modifier = os.getenv("CONDA_PROMPT_MODIFIER") + if current_prompt_modifier: + ps1 = re.sub(re.escape(current_prompt_modifier), r"", ps1) + # Because we're using single-quotes to set shell variables, we need to handle the + # proper escaping of single quotes that are already part of the string. + # Best solution appears to be https://stackoverflow.com/a/1250279 + ps1 = ps1.replace("'", "'\"'\"'") + set_vars.update( + { + "PS1": conda_prompt_modifier + ps1, + } + ) + + +class CshActivator(_Activator): + pathsep_join = ":".join + sep = "/" + path_conversion = staticmethod(win_path_to_unix if on_win else _path_identity) + script_extension = ".csh" + tempfile_extension = None # output to stdout + command_join = ";\n" + needs_line_ending_fix = True + + unset_var_tmpl = "unsetenv %s" + export_var_tmpl = 'setenv %s "%s"' + path_var_tmpl = "setenv %s \"`cygpath '%s'`\"" if on_win else export_var_tmpl + set_var_tmpl = "set %s='%s'" + run_script_tmpl = "source \"`cygpath '%s'`\"" if on_win else 'source "%s"' + + hook_source_path = Path( + CONDA_PACKAGE_ROOT, + "shell", + "etc", + "profile.d", + "conda.csh", + ) + # TCSH/CSH removes newlines when doing command substitution (see `man tcsh`), + # source conda.csh directly and use line terminators to separate commands + inline_hook_source = False + + def _update_prompt(self, set_vars, conda_prompt_modifier): + prompt = os.getenv("prompt", "") + current_prompt_modifier = os.getenv("CONDA_PROMPT_MODIFIER") + if current_prompt_modifier: + prompt = re.sub(re.escape(current_prompt_modifier), r"", prompt) + set_vars.update( + { + "prompt": conda_prompt_modifier + prompt, + } + ) + + +class XonshActivator(_Activator): + pathsep_join = ";".join if on_win else ":".join + sep = "/" + path_conversion = staticmethod( + backslash_to_forwardslash if on_win else _path_identity + ) + # 'scripts' really refer to de/activation scripts, not scripts in the language per se + # xonsh can piggy-back activation scripts from other languages depending on the platform + script_extension = ".bat" if on_win else ".sh" + tempfile_extension = None # output to stdout + command_join = "\n" + needs_line_ending_fix = False + + unset_var_tmpl = "try:\n del $%s\nexcept KeyError:\n pass" + export_var_tmpl = "$%s = '%s'" + path_var_tmpl = export_var_tmpl + set_var_tmpl = export_var_tmpl + run_script_tmpl = ( + 'source-cmd --suppress-skip-message "%s"' + if on_win + else 'source-bash --suppress-skip-message -n "%s"' + ) + + hook_source_path = Path(CONDA_PACKAGE_ROOT, "shell", "conda.xsh") + inline_hook_source = True + + def template_path_var(self, key: str, value: str) -> str: + return self.path_var_tmpl % (key, self.path_conversion(value)) + + +class CmdExeActivator(_Activator): + pathsep_join = ";".join + sep = "\\" + path_conversion = staticmethod(_path_identity) + script_extension = ".bat" + tempfile_extension = ".env" + command_join = "\n" + needs_line_ending_fix = False + + # we are not generating a script to run but rather an INI style file + # with key=value pairs to set environment variables, key= to unset them, + # and _CONDA_SCRIPT=script pairs to run scripts + unset_var_tmpl = "%s=" + export_var_tmpl = "%s=%s" + path_var_tmpl = export_var_tmpl + set_var_tmpl = export_var_tmpl + run_script_tmpl = "_CONDA_SCRIPT=%s" + + hook_source_path = None + inline_hook_source = None + + def _update_prompt(self, set_vars, conda_prompt_modifier): + prompt = os.getenv("PROMPT", "") + current_prompt_modifier = os.getenv("CONDA_PROMPT_MODIFIER") + if current_prompt_modifier: + prompt = re.sub(re.escape(current_prompt_modifier), r"", prompt) + set_vars["PROMPT"] = conda_prompt_modifier + prompt + + def _hook_preamble(self) -> None: + # TODO: cmd.exe doesn't get a hook function? Or do we need to do something different? + # Like, for cmd.exe only, put a special directory containing only conda.bat on PATH? + pass + + +class FishActivator(_Activator): + pathsep_join = '" "'.join + sep = "/" + path_conversion = staticmethod(win_path_to_unix if on_win else _path_identity) + script_extension = ".fish" + tempfile_extension = None # output to stdout + command_join = ";\n" + needs_line_ending_fix = True + + unset_var_tmpl = "set -e %s || true" + export_var_tmpl = 'set -gx %s "%s"' + path_var_tmpl = 'set -gx %s (cygpath "%s")' if on_win else export_var_tmpl + set_var_tmpl = 'set -g %s "%s"' + run_script_tmpl = 'source "%s"' + + hook_source_path = Path( + CONDA_PACKAGE_ROOT, + "shell", + "etc", + "fish", + "conf.d", + "conda.fish", + ) + inline_hook_source = True + + +class PowerShellActivator(_Activator): + pathsep_join = ";".join if on_win else ":".join + sep = "\\" if on_win else "/" + path_conversion = staticmethod(_path_identity) + script_extension = ".ps1" + tempfile_extension = None # output to stdout + command_join = "\n" + needs_line_ending_fix = False + + unset_var_tmpl = "$Env:%s = $null" + export_var_tmpl = '$Env:%s = "%s"' + path_var_tmpl = export_var_tmpl + set_var_tmpl = export_var_tmpl + run_script_tmpl = '. "%s"' + + hook_source_path = Path( + CONDA_PACKAGE_ROOT, + "shell", + "condabin", + "conda-hook.ps1", + ) + inline_hook_source = True + + def _hook_preamble(self) -> str: + module_args = f"$CondaModuleArgs = @{{ChangePs1 = ${context.changeps1}}}" + return super()._hook_preamble() + module_args + self.command_join + + def _hook_postamble(self) -> str: + return "Remove-Variable CondaModuleArgs" + + +class JSONFormatMixin(_Activator): + """Returns the necessary values for activation as JSON, so that tools can use them.""" + + pathsep_join = list + tempfile_extension = None # output to stdout + command_join = list + + def _hook_preamble(self): + return context.conda_exe_vars_dict + + def _finalize(self, commands, ext): + merged = {} + for _cmds in commands: + merged.update(_cmds) + + commands = merged + if ext is None: + return json.dumps(commands, indent=2) + elif ext: + with Utf8NamedTemporaryFile("w+", suffix=ext, delete=False) as tf: + # the default mode is 'w+b', and universal new lines don't work in that mode + # command_join should account for that + json.dump(commands, tf) + return tf.name + else: + raise NotImplementedError() + + def _yield_commands(self, cmds_dict): + # TODO: _Is_ defining our own object shape here any better than + # just dumping the `cmds_dict`? + path = cmds_dict.get("export_path", {}) + export_vars = cmds_dict.get("export_vars", {}) + # treat PATH specially + if "PATH" in export_vars: + new_path = path.get("PATH", []) + new_path.extend(export_vars.pop("PATH")) + path["PATH"] = new_path + + yield { + "path": path, + "vars": { + "export": export_vars, + "unset": cmds_dict.get("unset_vars", ()), + "set": cmds_dict.get("set_vars", {}), + }, + "scripts": { + "activate": cmds_dict.get("activate_scripts", ()), + "deactivate": cmds_dict.get("deactivate_scripts", ()), + }, + } + + +activator_map: dict[str, type[_Activator]] = { + "posix": PosixActivator, + "ash": PosixActivator, + "bash": PosixActivator, + "dash": PosixActivator, + "zsh": PosixActivator, + "csh": CshActivator, + "tcsh": CshActivator, + "xonsh": XonshActivator, + "cmd.exe": CmdExeActivator, + "fish": FishActivator, + "powershell": PowerShellActivator, +} + +formatter_map = { + "json": JSONFormatMixin, +} + + +def _build_activator_cls(shell): + """Dynamically construct the activator class. + + Detect the base activator and any number of formatters (appended using '+' to the base name). + For example, `posix+json` (as in `conda shell.posix+json activate`) would use the + `PosixActivator` base class and add the `JSONFormatMixin`. + """ + shell_etc = shell.split("+") + activator, formatters = shell_etc[0], shell_etc[1:] + + bases = [activator_map[activator]] + for f in formatters: + bases.append(formatter_map[f]) + + cls = type("Activator", tuple(reversed(bases)), {}) + return cls diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/api.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f1a87b46e0d74dc44580a5e2764cd615f5709b1a --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/api.py @@ -0,0 +1,501 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Collection of conda's high-level APIs.""" + +from .base.constants import DepsModifier as _DepsModifier +from .base.constants import UpdateModifier as _UpdateModifier +from .base.context import context +from .common.constants import NULL +from .core.package_cache_data import PackageCacheData as _PackageCacheData +from .core.prefix_data import PrefixData as _PrefixData +from .core.subdir_data import SubdirData as _SubdirData +from .models.channel import Channel + +#: Flags to enable alternate handling of dependencies. +DepsModifier = _DepsModifier + +#: Flags to enable alternate handling for updates of existing packages in the environment. +UpdateModifier = _UpdateModifier + + +class Solver: + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + A high-level API to conda's solving logic. Three public methods are provided to access a + solution in various forms. + + * :meth:`solve_final_state` + * :meth:`solve_for_diff` + * :meth:`solve_for_transaction` + + """ + + def __init__( + self, prefix, channels, subdirs=(), specs_to_add=(), specs_to_remove=() + ): + """ + **Beta** + + Args: + prefix (str): + The conda prefix / environment location for which the :class:`Solver` + is being instantiated. + channels (Sequence[:class:`Channel`]): + A prioritized list of channels to use for the solution. + subdirs (Sequence[str]): + A prioritized list of subdirs to use for the solution. + specs_to_add (set[:class:`MatchSpec`]): + The set of package specs to add to the prefix. + specs_to_remove (set[:class:`MatchSpec`]): + The set of package specs to remove from the prefix. + + """ + solver_backend = context.plugin_manager.get_cached_solver_backend() + self._internal = solver_backend( + prefix, channels, subdirs, specs_to_add, specs_to_remove + ) + + def solve_final_state( + self, + update_modifier=NULL, + deps_modifier=NULL, + prune=NULL, + ignore_pinned=NULL, + force_remove=NULL, + ): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Gives the final, solved state of the environment. + + Args: + deps_modifier (DepsModifier): + An optional flag indicating special solver handling for dependencies. The + default solver behavior is to be as conservative as possible with dependency + updates (in the case the dependency already exists in the environment), while + still ensuring all dependencies are satisfied. Options include + * NO_DEPS + * ONLY_DEPS + * UPDATE_DEPS + * UPDATE_DEPS_ONLY_DEPS + * FREEZE_INSTALLED + prune (bool): + If ``True``, the solution will not contain packages that were + previously brought into the environment as dependencies but are no longer + required as dependencies and are not user-requested. + ignore_pinned (bool): + If ``True``, the solution will ignore pinned package configuration + for the prefix. + force_remove (bool): + Forces removal of a package without removing packages that depend on it. + + Returns: + tuple[PackageRef]: + In sorted dependency order from roots to leaves, the package references for + the solved state of the environment. + + """ + return self._internal.solve_final_state( + update_modifier, deps_modifier, prune, ignore_pinned, force_remove + ) + + def solve_for_diff( + self, + update_modifier=NULL, + deps_modifier=NULL, + prune=NULL, + ignore_pinned=NULL, + force_remove=NULL, + force_reinstall=False, + ): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Gives the package references to remove from an environment, followed by + the package references to add to an environment. + + Args: + deps_modifier (DepsModifier): + See :meth:`solve_final_state`. + prune (bool): + See :meth:`solve_final_state`. + ignore_pinned (bool): + See :meth:`solve_final_state`. + force_remove (bool): + See :meth:`solve_final_state`. + force_reinstall (bool): + For requested specs_to_add that are already satisfied in the environment, + instructs the solver to remove the package and spec from the environment, + and then add it back--possibly with the exact package instance modified, + depending on the spec exactness. + + Returns: + tuple[PackageRef], tuple[PackageRef]: + A two-tuple of PackageRef sequences. The first is the group of packages to + remove from the environment, in sorted dependency order from leaves to roots. + The second is the group of packages to add to the environment, in sorted + dependency order from roots to leaves. + + """ + return self._internal.solve_for_diff( + update_modifier, + deps_modifier, + prune, + ignore_pinned, + force_remove, + force_reinstall, + ) + + def solve_for_transaction( + self, + update_modifier=NULL, + deps_modifier=NULL, + prune=NULL, + ignore_pinned=NULL, + force_remove=NULL, + force_reinstall=False, + ): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Gives an UnlinkLinkTransaction instance that can be used to execute the solution + on an environment. + + Args: + deps_modifier (DepsModifier): + See :meth:`solve_final_state`. + prune (bool): + See :meth:`solve_final_state`. + ignore_pinned (bool): + See :meth:`solve_final_state`. + force_remove (bool): + See :meth:`solve_final_state`. + force_reinstall (bool): + See :meth:`solve_for_diff`. + + Returns: + UnlinkLinkTransaction: + + """ + return self._internal.solve_for_transaction( + update_modifier, + deps_modifier, + prune, + ignore_pinned, + force_remove, + force_reinstall, + ) + + +class SubdirData: + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + High-level management and usage of repodata.json for subdirs. + """ + + def __init__(self, channel): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Args: + channel (str or Channel): + The target subdir for the instance. Must either be a url that includes a subdir + or a :obj:`Channel` that includes a subdir. e.g.: + * 'https://repo.anaconda.com/pkgs/main/linux-64' + * Channel('https://repo.anaconda.com/pkgs/main/linux-64') + * Channel('conda-forge/osx-64') + """ + channel = Channel(channel) + if not channel.subdir: + raise ValueError("SubdirData requires platform-aware Channel objects.") + self._internal = _SubdirData(channel) + + def query(self, package_ref_or_match_spec): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Run a query against this specific instance of repodata. + + Args: + package_ref_or_match_spec (PackageRef or MatchSpec or str): + Either an exact :obj:`PackageRef` to match against, or a :obj:`MatchSpec` + query object. A :obj:`str` will be turned into a :obj:`MatchSpec` automatically. + + Returns: + tuple[PackageRecord] + + """ + return tuple(self._internal.query(package_ref_or_match_spec)) + + @staticmethod + def query_all(package_ref_or_match_spec, channels=None, subdirs=None): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Run a query against all repodata instances in channel/subdir matrix. + + Args: + package_ref_or_match_spec (PackageRef or MatchSpec or str): + Either an exact :obj:`PackageRef` to match against, or a :obj:`MatchSpec` + query object. A :obj:`str` will be turned into a :obj:`MatchSpec` automatically. + channels (Iterable[Channel or str] or None): + An iterable of urls for channels or :obj:`Channel` objects. If None, will fall + back to context.channels. + subdirs (Iterable[str] or None): + If None, will fall back to context.subdirs. + + Returns: + tuple[PackageRecord] + + """ + return tuple( + _SubdirData.query_all(package_ref_or_match_spec, channels, subdirs) + ) + + def iter_records(self): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Returns: + Iterable[PackageRecord]: A generator over all records contained in the repodata.json + instance. Warning: this is a generator that is exhausted on first use. + + """ + return self._internal.iter_records() + + def reload(self): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Update the instance with new information. Backing information (i.e. repodata.json) + is lazily downloaded/loaded on first use by the other methods of this class. You + should only use this method if you are *sure* you have outdated data. + + Returns: + SubdirData + + """ + self._internal = self._internal.reload() + return self + + +class PackageCacheData: + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + High-level management and usage of package caches. + """ + + def __init__(self, pkgs_dir): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Args: + pkgs_dir (str): + """ + self._internal = _PackageCacheData(pkgs_dir) + + def get(self, package_ref, default=NULL): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Args: + package_ref (PackageRef): + A :obj:`PackageRef` instance representing the key for the + :obj:`PackageCacheRecord` being sought. + default: The default value to return if the record does not exist. If not + specified and no record exists, :exc:`KeyError` is raised. + + Returns: + PackageCacheRecord + + """ + return self._internal.get(package_ref, default) + + def query(self, package_ref_or_match_spec): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Run a query against this specific package cache instance. + + Args: + package_ref_or_match_spec (PackageRef or MatchSpec or str): + Either an exact :obj:`PackageRef` to match against, or a :obj:`MatchSpec` + query object. A :obj:`str` will be turned into a :obj:`MatchSpec` automatically. + + Returns: + tuple[PackageCacheRecord] + + """ + return tuple(self._internal.query(package_ref_or_match_spec)) + + @staticmethod + def query_all(package_ref_or_match_spec, pkgs_dirs=None): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Run a query against all package caches. + + Args: + package_ref_or_match_spec (PackageRef or MatchSpec or str): + Either an exact :obj:`PackageRef` to match against, or a :obj:`MatchSpec` + query object. A :obj:`str` will be turned into a :obj:`MatchSpec` automatically. + pkgs_dirs (Iterable[str] or None): + If None, will fall back to context.pkgs_dirs. + + Returns: + tuple[PackageCacheRecord] + + """ + return tuple(_PackageCacheData.query_all(package_ref_or_match_spec, pkgs_dirs)) + + def iter_records(self): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Returns: + Iterable[PackageCacheRecord]: A generator over all records contained in the package + cache instance. Warning: this is a generator that is exhausted on first use. + + """ + return self._internal.iter_records() + + @property + def is_writable(self): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Indicates if the package cache location is writable or read-only. + + Returns: + bool + + """ + return self._internal.is_writable + + @staticmethod + def first_writable(pkgs_dirs=None): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Get an instance object for the first writable package cache. + + Args: + pkgs_dirs (Iterable[str]): + If None, will fall back to context.pkgs_dirs. + + Returns: + PackageCacheData: + An instance for the first writable package cache. + + """ + return PackageCacheData(_PackageCacheData.first_writable(pkgs_dirs).pkgs_dir) + + def reload(self): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Update the instance with new information. Backing information (i.e. contents of + the pkgs_dir) is lazily loaded on first use by the other methods of this class. You + should only use this method if you are *sure* you have outdated data. + + Returns: + PackageCacheData + + """ + self._internal = self._internal.reload() + return self + + +class PrefixData: + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + High-level management and usage of conda environment prefixes. + """ + + def __init__(self, prefix_path): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Args: + prefix_path (str): + """ + self._internal = _PrefixData(prefix_path) + + def get(self, package_ref, default=NULL): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Args: + package_ref (PackageRef): + A :obj:`PackageRef` instance representing the key for the + :obj:`PrefixRecord` being sought. + default: The default value to return if the record does not exist. If not + specified and no record exists, :exc:`KeyError` is raised. + + Returns: + PrefixRecord + + """ + return self._internal.get(package_ref.name, default) + + def query(self, package_ref_or_match_spec): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Run a query against this specific prefix instance. + + Args: + package_ref_or_match_spec (PackageRef or MatchSpec or str): + Either an exact :obj:`PackageRef` to match against, or a :obj:`MatchSpec` + query object. A :obj:`str` will be turned into a :obj:`MatchSpec` automatically. + + Returns: + tuple[PrefixRecord] + + """ + return tuple(self._internal.query(package_ref_or_match_spec)) + + def iter_records(self): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Returns: + Iterable[PrefixRecord]: A generator over all records contained in the prefix. + Warning: this is a generator that is exhausted on first use. + + """ + return self._internal.iter_records() + + @property + def is_writable(self): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Indicates if the prefix is writable or read-only. + + Returns: + bool or None: + True if the prefix is writable. False if read-only. None if the prefix + does not exist as a conda environment. + + """ + return self._internal.is_writable + + def reload(self): + """ + **Beta** While in beta, expect both major and minor changes across minor releases. + + Update the instance with new information. Backing information (i.e. contents of + the conda-meta directory) is lazily loaded on first use by the other methods of this + class. You should only use this method if you are *sure* you have outdated data. + + Returns: + PrefixData + + """ + self._internal = self._internal.reload() + return self diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/deprecations.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/deprecations.py new file mode 100644 index 0000000000000000000000000000000000000000..80c7bc26f424d1a08e58cac8181eeac95cc115d9 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/deprecations.py @@ -0,0 +1,444 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Tools to aid in deprecating code.""" + +from __future__ import annotations + +import sys +import warnings +from argparse import SUPPRESS, Action +from functools import wraps +from types import ModuleType +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from argparse import ArgumentParser, Namespace + from collections.abc import Callable + from typing import Any, ParamSpec, Self, TypeVar + + from packaging.version import Version + + T = TypeVar("T") + P = ParamSpec("P") + + ActionType = TypeVar("ActionType", bound=type[Action]) + +from . import __version__ + + +class DeprecatedError(RuntimeError): + pass + + +# inspired by deprecation (https://deprecation.readthedocs.io/en/latest/) and +# CPython's warnings._deprecated +class DeprecationHandler: + _version: str | None + _version_tuple: tuple[int, ...] | None + _version_object: Version | None + + def __init__(self: Self, version: str) -> None: + """Factory to create a deprecation handle for the specified version. + + :param version: The version to compare against when checking deprecation statuses. + """ + self._version = version + # Try to parse the version string as a simple tuple[int, ...] to avoid + # packaging.version import and costlier version comparisons. + self._version_tuple = self._get_version_tuple(version) + self._version_object = None + + @staticmethod + def _get_version_tuple(version: str) -> tuple[int, ...] | None: + """Return version as non-empty tuple of ints if possible, else None. + + :param version: Version string to parse. + """ + try: + return tuple(int(part) for part in version.strip().split(".")) or None + except (AttributeError, ValueError): + return None + + def _version_less_than(self: Self, version: str) -> bool: + """Test whether own version is less than the given version. + + :param version: Version string to compare against. + """ + if self._version_tuple and (version_tuple := self._get_version_tuple(version)): + return self._version_tuple < version_tuple + + # If self._version or version could not be represented by a simple + # tuple[int, ...], do a more elaborate version parsing and comparison. + # Avoid this import otherwise to reduce import time for conda activate. + from packaging.version import parse + + if self._version_object is None: + try: + self._version_object = parse(self._version) # type: ignore[arg-type] + except TypeError: + # TypeError: self._version could not be parsed + self._version_object = parse("0.0.0.dev0+placeholder") + return self._version_object < parse(version) + + def __call__( + self: Self, + deprecate_in: str, + remove_in: str, + *, + addendum: str | None = None, + stack: int = 0, + deprecation_type: type[Warning] = DeprecationWarning, + ) -> Callable[[Callable[P, T]], Callable[P, T]]: + """Deprecation decorator for functions, methods, & classes. + + :param deprecate_in: Version in which code will be marked as deprecated. + :param remove_in: Version in which code is expected to be removed. + :param addendum: Optional additional messaging. Useful to indicate what to do instead. + :param stack: Optional stacklevel increment. + """ + + def deprecated_decorator(obj: Callable[P, T]) -> Callable[P, T]: + # detect function name and generate message + category, message = self._generate_message( + deprecate_in=deprecate_in, + remove_in=remove_in, + prefix=f"{obj.__module__}.{obj.__qualname__}", + addendum=addendum, + deprecation_type=deprecation_type, + ) + + # alert developer that it's time to remove something + if not category: + raise DeprecatedError(message) + + # if obj is a class, wrap the __init__ + isclass = False + func: Callable[P, T] + if isinstance(obj, type): + try: + func = obj.__init__ # type: ignore[misc] + except AttributeError: + # AttributeError: obj has no __init__ + func = obj + else: + isclass = True + else: + func = obj + + # alert user that it's time to remove something + @wraps(func) # type: ignore[reportArgumentType] + def inner(*args: P.args, **kwargs: P.kwargs) -> T: + warnings.warn(message, category, stacklevel=2 + stack) + + return func(*args, **kwargs) + + if isclass: + obj.__init__ = inner # type: ignore[misc] + return obj + else: + return inner + + return deprecated_decorator + + def argument( + self: Self, + deprecate_in: str, + remove_in: str, + argument: str, + *, + rename: str | None = None, + addendum: str | None = None, + stack: int = 0, + deprecation_type: type[Warning] = DeprecationWarning, + ) -> Callable[[Callable[P, T]], Callable[P, T]]: + """Deprecation decorator for keyword arguments. + + :param deprecate_in: Version in which code will be marked as deprecated. + :param remove_in: Version in which code is expected to be removed. + :param argument: The argument to deprecate. + :param rename: Optional new argument name. + :param addendum: Optional additional messaging. Useful to indicate what to do instead. + :param stack: Optional stacklevel increment. + """ + + def deprecated_decorator(func: Callable[P, T]) -> Callable[P, T]: + # detect function name and generate message + category, message = self._generate_message( + deprecate_in=deprecate_in, + remove_in=remove_in, + prefix=f"{func.__module__}.{func.__qualname__}({argument})", + # provide a default addendum if renaming and no addendum is provided + addendum=( + f"Use '{rename}' instead." if rename and not addendum else addendum + ), + deprecation_type=deprecation_type, + ) + + # alert developer that it's time to remove something + if not category: + raise DeprecatedError(message) + + # alert user that it's time to remove something + @wraps(func) + def inner(*args: P.args, **kwargs: P.kwargs) -> T: + # only warn about argument deprecations if the argument is used + if argument in kwargs: + warnings.warn(message, category, stacklevel=2 + stack) + + # rename argument deprecations as needed + value = kwargs.pop(argument, None) + if rename: + kwargs.setdefault(rename, value) + + return func(*args, **kwargs) + + return inner + + return deprecated_decorator + + def action( + self: Self, + deprecate_in: str, + remove_in: str, + action: ActionType, + *, + addendum: str | None = None, + stack: int = 0, + deprecation_type: type[Warning] = FutureWarning, + ) -> ActionType: + """Wraps any argparse.Action to issue a deprecation warning.""" + + class DeprecationMixin(Action): + category: type[Warning] + help: str # override argparse.Action's help type annotation + + def __init__(inner_self: Self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + category, message = self._generate_message( + deprecate_in=deprecate_in, + remove_in=remove_in, + prefix=( + # option_string are ordered shortest to longest, + # use the longest as it's the most descriptive + f"`{inner_self.option_strings[-1]}`" + if inner_self.option_strings + # if not a flag/switch, use the destination itself + else f"`{inner_self.dest}`" + ), + addendum=addendum, + deprecation_type=deprecation_type, + ) + + # alert developer that it's time to remove something + if not category: + raise DeprecatedError(message) + + inner_self.category = category + inner_self.deprecation = message + if inner_self.help is not SUPPRESS: + inner_self.help = message + + def __call__( + inner_self: Self, + parser: ArgumentParser, + namespace: Namespace, + values: Any, + option_string: str | None = None, + ) -> None: + # alert user that it's time to remove something + from conda.common.constants import NULL + + if values is not NULL: + warnings.warn( + inner_self.deprecation, + inner_self.category, + stacklevel=7 + stack, + ) + + super().__call__(parser, namespace, values, option_string) + + return type(action.__name__, (DeprecationMixin, action), {}) # type: ignore[return-value] + + def module( + self: Self, + deprecate_in: str, + remove_in: str, + *, + addendum: str | None = None, + stack: int = 0, + ) -> None: + """Deprecation function for modules. + + :param deprecate_in: Version in which code will be marked as deprecated. + :param remove_in: Version in which code is expected to be removed. + :param addendum: Optional additional messaging. Useful to indicate what to do instead. + :param stack: Optional stacklevel increment. + """ + self.topic( + deprecate_in=deprecate_in, + remove_in=remove_in, + topic=self._get_module(stack)[1], + addendum=addendum, + stack=2 + stack, + ) + + def constant( + self: Self, + deprecate_in: str, + remove_in: str, + constant: str, + value: Any, + *, + addendum: str | None = None, + stack: int = 0, + deprecation_type: type[Warning] = DeprecationWarning, + ) -> None: + """Deprecation function for module constant/global. + + :param deprecate_in: Version in which code will be marked as deprecated. + :param remove_in: Version in which code is expected to be removed. + :param constant: + :param value: + :param addendum: Optional additional messaging. Useful to indicate what to do instead. + :param stack: Optional stacklevel increment. + """ + # detect calling module + module, fullname = self._get_module(stack) + # detect function name and generate message + category, message = self._generate_message( + deprecate_in=deprecate_in, + remove_in=remove_in, + prefix=f"{fullname}.{constant}", + addendum=addendum, + deprecation_type=deprecation_type, + ) + + # alert developer that it's time to remove something + if not category: + raise DeprecatedError(message) + + # patch module level __getattr__ to alert user that it's time to remove something + super_getattr = getattr(module, "__getattr__", None) + + def __getattr__(name: str) -> Any: + if name == constant: + warnings.warn(message, category, stacklevel=3 + stack) + return value + + if super_getattr: + return super_getattr(name) + + raise AttributeError(f"module '{fullname}' has no attribute '{name}'") + + module.__getattr__ = __getattr__ # type: ignore[method-assign] + + def topic( + self: Self, + deprecate_in: str, + remove_in: str, + *, + topic: str, + addendum: str | None = None, + stack: int = 0, + deprecation_type: type[Warning] = DeprecationWarning, + ) -> None: + """Deprecation function for a topic. + + :param deprecate_in: Version in which code will be marked as deprecated. + :param remove_in: Version in which code is expected to be removed. + :param topic: The topic being deprecated. + :param addendum: Optional additional messaging. Useful to indicate what to do instead. + :param stack: Optional stacklevel increment. + """ + # detect function name and generate message + category, message = self._generate_message( + deprecate_in=deprecate_in, + remove_in=remove_in, + prefix=topic, + addendum=addendum, + deprecation_type=deprecation_type, + ) + + # alert developer that it's time to remove something + if not category: + raise DeprecatedError(message) + + # alert user that it's time to remove something + warnings.warn(message, category, stacklevel=2 + stack) + + def _get_module(self: Self, stack: int) -> tuple[ModuleType, str]: + """Detect the module from which we are being called. + + :param stack: The stacklevel increment. + :return: The module and module name. + """ + try: + frame = sys._getframe(2 + stack) + except IndexError: + # IndexError: 2 + stack is out of range + pass + else: + # Shortcut finding the module by manually inspecting loaded modules. + try: + filename = frame.f_code.co_filename + except AttributeError: + # AttributeError: frame.f_code.co_filename is undefined + pass + else: + # use a copy of sys.modules to avoid RuntimeError during iteration + # see https://github.com/conda/conda/issues/13754 + for loaded in tuple(sys.modules.values()): + if not isinstance(loaded, ModuleType): + continue + if not hasattr(loaded, "__file__"): + continue + if loaded.__file__ == filename: + return (loaded, loaded.__name__) + + # If above failed, do an expensive import and costly getmodule call. + import inspect + + module = inspect.getmodule(frame) + if module is not None: + return (module, module.__name__) + + raise DeprecatedError("unable to determine the calling module") + + def _generate_message( + self: Self, + deprecate_in: str, + remove_in: str, + prefix: str, + addendum: str | None, + *, + deprecation_type: type[Warning], + ) -> tuple[type[Warning] | None, str]: + """Generate the standardized deprecation message and determine whether the + deprecation is pending, active, or past. + + :param deprecate_in: Version in which code will be marked as deprecated. + :param remove_in: Version in which code is expected to be removed. + :param prefix: The message prefix, usually the function name. + :param addendum: Additional messaging. Useful to indicate what to do instead. + :param deprecation_type: The warning type to use for active deprecations. + :return: The warning category (if applicable) and the message. + """ + category: type[Warning] | None + if self._version_less_than(deprecate_in): + category = PendingDeprecationWarning + warning = f"is pending deprecation and will be removed in {remove_in}." + elif self._version_less_than(remove_in): + category = deprecation_type + warning = f"is deprecated and will be removed in {remove_in}." + else: + category = None + warning = f"was slated for removal in {remove_in}." + + return ( + category, + " ".join(filter(None, [prefix, warning, addendum])), # message + ) + + +deprecated = DeprecationHandler(__version__) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/exception_handler.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/exception_handler.py new file mode 100644 index 0000000000000000000000000000000000000000..1a9d185642ef7cd9f4941ed4ebdaab3ab8318492 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/exception_handler.py @@ -0,0 +1,411 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Error handling and error reporting.""" + +from __future__ import annotations + +import os +import sys +from functools import cached_property, partial +from logging import getLogger +from typing import TYPE_CHECKING + +from .common.compat import ensure_text_type, on_win + +if TYPE_CHECKING: + from collections.abc import Callable + from types import TracebackType + from typing import Any, TypeVar + + T = TypeVar("T") + +log = getLogger(__name__) + + +class ExceptionHandler: + # FUTURE: Python 3.10+, use typing.ParamSpec + def __call__(self, func: Callable[..., T], *args, **kwargs) -> T | int: + try: + return func(*args, **kwargs) + except: + _, exc_val, exc_tb = sys.exc_info() + return self.handle_exception(exc_val, exc_tb) + + def write_out(self, *content: str) -> None: + from logging import getLogger + + from .cli.main import init_loggers + + init_loggers() + getLogger("conda.stderr").info("\n".join(content)) + + @property + def http_timeout(self): + from .base.context import context + + return context.remote_connect_timeout_secs, context.remote_read_timeout_secs + + @property + def user_agent(self): + from .base.context import context + + return context.user_agent + + @property + def error_upload_url(self): + from .base.context import context + + return context.error_upload_url + + def handle_exception(self, exc_val: BaseException, exc_tb: TracebackType) -> int: + from errno import ENOSPC + + from .exceptions import ( + CondaError, + CondaMemoryError, + NoSpaceLeftError, + ) + + if isinstance(exc_val, CondaError): + if exc_val.reportable: + return self.handle_reportable_application_exception(exc_val, exc_tb) + else: + return self.handle_application_exception(exc_val, exc_tb) + if isinstance(exc_val, EnvironmentError): + if getattr(exc_val, "errno", None) == ENOSPC: + return self.handle_application_exception( + NoSpaceLeftError(exc_val), exc_tb + ) + if isinstance(exc_val, MemoryError): + return self.handle_application_exception(CondaMemoryError(exc_val), exc_tb) + if isinstance(exc_val, KeyboardInterrupt): + self._print_conda_exception(CondaError("KeyboardInterrupt"), exc_tb) + return 1 + if isinstance(exc_val, SystemExit): + return exc_val.code + return self.handle_unexpected_exception(exc_val, exc_tb) + + def handle_application_exception( + self, exc_val: BaseException, exc_tb: TracebackType + ) -> int: + self._print_conda_exception(exc_val, exc_tb) + return exc_val.return_code + + def _print_conda_exception( + self, + exc_val: BaseException, + exc_tb: TracebackType, + ) -> None: + from .exceptions import print_conda_exception + + print_conda_exception(exc_val, exc_tb) + + def handle_unexpected_exception( + self, exc_val: BaseException, exc_tb: TracebackType + ) -> int: + error_report = self.get_error_report(exc_val, exc_tb) + self.print_unexpected_error_report(error_report) + self._upload(error_report) + rc = getattr(exc_val, "return_code", None) + return rc if rc is not None else 1 + + def handle_reportable_application_exception( + self, exc_val: BaseException, exc_tb: TracebackType + ) -> int: + error_report = self.get_error_report(exc_val, exc_tb) + from .base.context import context + + if context.json: + error_report.update(exc_val.dump_map()) + self.print_expected_error_report(error_report) + self._upload(error_report) + return exc_val.return_code + + def get_error_report( + self, + exc_val: BaseException, + exc_tb: TracebackType, + ) -> dict[str, str]: + from .exceptions import CondaError, _format_exc + + command = " ".join(ensure_text_type(s) for s in sys.argv) + info_dict = {} + if " info" not in command: + # get info_dict, but if we get an exception here too, record it without trampling + # the original exception + try: + from .cli.main_info import get_info_dict + + info_dict = get_info_dict() + except Exception as info_e: + info_traceback = _format_exc() + info_dict = { + "error": repr(info_e), + "exception_name": info_e.__class__.__name__, + "exception_type": str(exc_val.__class__), + "traceback": info_traceback, + } + + error_report = { + "error": repr(exc_val), + "exception_name": exc_val.__class__.__name__, + "exception_type": str(exc_val.__class__), + "command": command, + "traceback": _format_exc(exc_val, exc_tb), + "conda_info": info_dict, + } + + if isinstance(exc_val, CondaError): + error_report["conda_error_components"] = exc_val.dump_map() + + return error_report + + def print_unexpected_error_report(self, error_report: dict[str, str]) -> None: + from .base.context import context + + if context.json: + from .cli.common import stdout_json + + stdout_json(error_report) + else: + message_builder = [] + message_builder.append("") + message_builder.append( + "# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<" + ) + message_builder.append("") + message_builder.extend( + " " + line for line in error_report["traceback"].splitlines() + ) + message_builder.append("") + message_builder.append("`$ {}`".format(error_report["command"])) + message_builder.append("") + if error_report["conda_info"]: + from .cli.main_info import get_env_vars_str, get_main_info_str + + try: + # TODO: Sanitize env vars to remove secrets (e.g credentials for PROXY) + message_builder.append(get_env_vars_str(error_report["conda_info"])) + message_builder.append( + get_main_info_str(error_report["conda_info"]) + ) + except Exception as e: + log.warning("%r", e, exc_info=True) + message_builder.append("conda info could not be constructed.") + message_builder.append(f"{e!r}") + message_builder.extend( + [ + "", + "An unexpected error has occurred. Conda has prepared the above report." + "", + "If you suspect this error is being caused by a malfunctioning plugin,", + "consider using the --no-plugins option to turn off plugins.", + "", + "Example: conda --no-plugins install ", + "", + "Alternatively, you can set the CONDA_NO_PLUGINS environment variable on", + "the command line to run the command without plugins enabled.", + "", + "Example: CONDA_NO_PLUGINS=true conda install ", + "", + ] + ) + self.write_out(*message_builder) + + def print_expected_error_report(self, error_report: dict[str, str]) -> None: + from .base.context import context + + if context.json: + from .cli.common import stdout_json + + stdout_json(error_report) + else: + message_builder = [] + message_builder.append("") + message_builder.append( + "# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<" + ) + message_builder.append("") + message_builder.append("`$ {}`".format(error_report["command"])) + message_builder.append("") + if error_report["conda_info"]: + from .cli.main_info import get_env_vars_str, get_main_info_str + + try: + # TODO: Sanitize env vars to remove secrets (e.g credentials for PROXY) + message_builder.append(get_env_vars_str(error_report["conda_info"])) + message_builder.append( + get_main_info_str(error_report["conda_info"]) + ) + except Exception as e: + log.warning("%r", e, exc_info=True) + message_builder.append("conda info could not be constructed.") + message_builder.append(f"{e!r}") + message_builder.append("") + message_builder.append( + "V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V" + ) + message_builder.append("") + + message_builder.extend(error_report["error"].splitlines()) + message_builder.append("") + + message_builder.append( + "A reportable application error has occurred. Conda has prepared the above report." + ) + message_builder.append("") + self.write_out(*message_builder) + + @cached_property + def _isatty(self) -> bool: + try: + return os.isatty(0) or on_win + except Exception as e: + log.debug("%r", e) + return True + + def _upload(self, error_report: dict[str, str]) -> None: + """Determine whether or not to upload the error report.""" + from .base.context import context + + post_upload = False + if context.report_errors is False: + # no prompt and no submission + do_upload = False + elif context.report_errors is True or context.always_yes: + # no prompt and submit + do_upload = True + elif context.json or context.quiet or not self._isatty: + # never prompt under these conditions, submit iff always_yes + do_upload = bool(not context.offline and context.always_yes) + else: + # prompt whether to submit + do_upload = self._ask_upload() + post_upload = True + + # the upload state is one of the following: + # - True: upload error report + # - False: do not upload error report + # - None: while prompting a timeout occurred + + if do_upload: + # user wants report to be submitted + self._execute_upload(error_report) + + if post_upload: + # post submission text + self._post_upload(do_upload) + + def _ask_upload(self) -> bool: + from .auxlib.type_coercion import boolify + from .common.io import timeout + + try: + do_upload = timeout( + 40, + partial( + input, + "If submitted, this report will be used by core maintainers to improve\n" + "future releases of conda.\n" + "Would you like conda to send this report to the core maintainers? " + "[y/N]: ", + ), + ) + return do_upload and boolify(do_upload) + except Exception as e: + log.debug("%r", e) + return False + + def _execute_upload(self, error_report: dict[str, Any]) -> None: + import getpass + + from .common.serialize import json + + headers = { + "User-Agent": self.user_agent, + } + _timeout = self.http_timeout + username = getpass.getuser() + error_report["is_ascii"] = ( + True if all(ord(c) < 128 for c in username) else False + ) + error_report["has_spaces"] = True if " " in str(username) else False + data = json.dumps(error_report, sort_keys=True) + "\n" + data = data.replace(str(username), "USERNAME_REMOVED") + response = None + try: + # requests does not follow HTTP standards for redirects of non-GET methods + # That is, when following a 301 or 302, it turns a POST into a GET. + # And no way to disable. WTF + import requests + + redirect_counter = 0 + url = self.error_upload_url + response = requests.post( + url, headers=headers, timeout=_timeout, data=data, allow_redirects=False + ) + response.raise_for_status() + while response.status_code in (301, 302) and response.headers.get( + "Location" + ): + url = response.headers["Location"] + response = requests.post( + url, + headers=headers, + timeout=_timeout, + data=data, + allow_redirects=False, + ) + response.raise_for_status() + redirect_counter += 1 + if redirect_counter > 15: + from . import CondaError + + raise CondaError("Redirect limit exceeded") + log.debug("upload response status: %s", response and response.status_code) + except Exception as e: # pragma: no cover + log.info("%r", e) + try: + if response and response.ok: + self.write_out("Upload successful.") + else: + self.write_out("Upload did not complete.") + if response and response.status_code: + self.write_out(f" HTTP {response.status_code}") + except Exception as e: + log.debug(f"{e!r}") + + def _post_upload(self, do_upload: bool) -> None: + if do_upload is True: + # report was submitted + self.write_out( + "", + "Thank you for helping to improve conda.", + "Opt-in to always sending reports (and not see this message again)", + "by running", + "", + " $ conda config --set report_errors true", + "", + ) + elif do_upload is None: + # timeout was reached while prompting user + self.write_out( + "", + "Timeout reached. No report sent.", + "", + ) + else: + # no report submitted + self.write_out( + "", + "No report sent. To permanently opt-out, use", + "", + " $ conda config --set report_errors false", + "", + ) + + +def conda_exception_handler(func: Callable[..., T], *args, **kwargs) -> T | int: + exception_handler = ExceptionHandler() + return_value = exception_handler(func, *args, **kwargs) + return return_value diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/exceptions.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/exceptions.py new file mode 100644 index 0000000000000000000000000000000000000000..5a0b54e93c36b4a88cdad8ed185138da1ef5e896 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/exceptions.py @@ -0,0 +1,1473 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Conda exceptions.""" + +from __future__ import annotations + +import os +import sys +from collections import defaultdict +from datetime import timedelta +from logging import getLogger +from os.path import join +from textwrap import dedent, indent +from traceback import format_exception, format_exception_only +from typing import TYPE_CHECKING + +from . import CondaError, CondaExitZero, CondaMultiError +from .auxlib.ish import dals +from .auxlib.logz import stringify +from .base.constants import ( + COMPATIBLE_SHELLS, + PREFIX_PINNED_FILE, + PathConflict, + SafetyChecks, +) +from .common.compat import on_win +from .common.io import dashlist +from .common.iterators import groupby_to_dict as groupby +from .common.serialize.json import JSONDecodeError +from .common.serialize.json import dumps as json_dumps +from .common.signals import get_signal_name +from .common.url import join_url, maybe_unquote +from .deprecations import DeprecatedError # noqa: F401 +from .exception_handler import ExceptionHandler, conda_exception_handler # noqa: F401 +from .models.channel import Channel + +if TYPE_CHECKING: + from collections.abc import Iterable + from types import TracebackType + from typing import Any + + import requests + + from conda.base.context import Context + from conda.common.path import PathType + from conda.models.match_spec import MatchSpec + from conda.models.records import PackageRecord + from conda.plugins.types import CondaEnvironmentExporter + +log = getLogger(__name__) + + +# TODO: for conda-build compatibility only +# remove in conda 4.4 +class ResolvePackageNotFound(CondaError): + def __init__(self, bad_deps: Iterable[Iterable[MatchSpec]]): + # bad_deps is a list of lists + # bad_deps should really be named 'invalid_chains' + self.bad_deps = tuple(dep for deps in bad_deps for dep in deps if dep) + formatted_chains = tuple( + " -> ".join(map(str, bad_chain)) for bad_chain in bad_deps + ) + self._formatted_chains = formatted_chains + message = "\n" + "\n".join( + (f" - {bad_chain}") for bad_chain in formatted_chains + ) + super().__init__(message) + + +NoPackagesFound = NoPackagesFoundError = ResolvePackageNotFound + + +class LockError(CondaError, OSError): + def __init__(self, message: str): + msg = str(message) + super().__init__(msg) + + +class ArgumentError(CondaError): + return_code = 2 + + def __init__(self, message: str, **kwargs): + super().__init__(message, **kwargs) + + +class Help(CondaError): + pass + + +class ActivateHelp(Help): + def __init__(self): + message = dals( + """ + usage: conda activate [-h] [--[no-]stack] [env_name_or_prefix] + + Activate a conda environment. + + Options: + + positional arguments: + env_name_or_prefix The environment name or prefix to activate. If the + prefix is a relative path, it must start with './' + (or '.\\' on Windows). + + optional arguments: + -h, --help Show this help message and exit. + --stack Stack the environment being activated on top of the + previous active environment, rather replacing the + current active environment with a new one. Currently, + only the PATH environment variable is stacked. This + may be enabled implicitly by the 'auto_stack' + configuration variable. + --no-stack Do not stack the environment. Overrides 'auto_stack' + setting. + """ + ) + super().__init__(message) + + +class DeactivateHelp(Help): + def __init__(self): + message = dals( + """ + usage: conda deactivate [-h] + + Deactivate the current active conda environment. + + Options: + + optional arguments: + -h, --help Show this help message and exit. + """ + ) + super().__init__(message) + + +class GenericHelp(Help): + def __init__(self, command: str): + message = f"help requested for {command}" + super().__init__(message) + + +class CondaSignalInterrupt(CondaError): + def __init__(self, signum: int): + signal_name = get_signal_name(signum) + super().__init__( + "Signal interrupt %(signal_name)s", signal_name=signal_name, signum=signum + ) + + +class TooManyArgumentsError(ArgumentError): + def __init__( + self, + expected: int, + received: int, + offending_arguments: Iterable[str], + optional_message: str = "", + *args, + ): + self.expected = expected + self.received = received + self.offending_arguments = offending_arguments + self.optional_message = optional_message + + suffix = "s" if received - expected > 1 else "" + msg = "{} Got {} argument{} ({}) but expected {}.".format( + optional_message, + received, + suffix, + ", ".join(offending_arguments), + expected, + ) + super().__init__(msg, *args) + + +class ClobberError(CondaError): + def __init__(self, message: str, path_conflict: PathConflict, **kwargs): + self.path_conflict = path_conflict + super().__init__(message, **kwargs) + + def __repr__(self): + clz_name = ( + "ClobberWarning" + if self.path_conflict == PathConflict.warn + else "ClobberError" + ) + return f"{clz_name}: {self}\n" + + +class BasicClobberError(ClobberError): + def __init__(self, source_path: PathType, target_path: PathType, context: Context): + message = dals( + """ + Conda was asked to clobber an existing path. + source path: %(source_path)s + target path: %(target_path)s + """ + ) + if context.path_conflict == PathConflict.prevent: + message += ( + "Conda no longer clobbers existing paths without the use of the " + "--clobber option\n." + ) + super().__init__( + message, + context.path_conflict, + target_path=target_path, + source_path=source_path, + ) + + +class KnownPackageClobberError(ClobberError): + def __init__( + self, + target_path: PathType, + colliding_dist_being_linked: PackageRecord | str, + colliding_linked_dist: PackageRecord | str, + context: Context, + ): + message = dals( + """ + The package '%(colliding_dist_being_linked)s' cannot be installed due to a + path collision for '%(target_path)s'. + This path already exists in the target prefix, and it won't be removed by + an uninstall action in this transaction. The path appears to be coming from + the package '%(colliding_linked_dist)s', which is already installed in the prefix. + """ + ) + if context.path_conflict == PathConflict.prevent: + message += ( + "If you'd like to proceed anyway, re-run the command with " + "the `--clobber` flag.\n." + ) + super().__init__( + message, + context.path_conflict, + target_path=target_path, + colliding_dist_being_linked=colliding_dist_being_linked, + colliding_linked_dist=colliding_linked_dist, + ) + + +class UnknownPackageClobberError(ClobberError): + def __init__( + self, + target_path: PathType, + colliding_dist_being_linked: PackageRecord | str, + context: Context, + ): + message = dals( + """ + The package '%(colliding_dist_being_linked)s' cannot be installed due to a + path collision for '%(target_path)s'. + This path already exists in the target prefix, and it won't be removed + by an uninstall action in this transaction. The path is one that conda + doesn't recognize. It may have been created by another package manager. + """ + ) + if context.path_conflict == PathConflict.prevent: + message += ( + "If you'd like to proceed anyway, re-run the command with " + "the `--clobber` flag.\n." + ) + super().__init__( + message, + context.path_conflict, + target_path=target_path, + colliding_dist_being_linked=colliding_dist_being_linked, + ) + + +class SharedLinkPathClobberError(ClobberError): + def __init__( + self, + target_path: PathType, + incompatible_package_dists: Iterable[PackageRecord | str], + context: Context, + ): + message = dals( + """ + This transaction has incompatible packages due to a shared path. + packages: %(incompatible_packages)s + path: '%(target_path)s' + """ + ) + if context.path_conflict == PathConflict.prevent: + message += ( + "If you'd like to proceed anyway, re-run the command with " + "the `--clobber` flag.\n." + ) + super().__init__( + message, + context.path_conflict, + target_path=target_path, + incompatible_packages=", ".join(str(d) for d in incompatible_package_dists), + ) + + +class CommandNotFoundError(CondaError): + def __init__(self, command: str): + activate_commands = { + "activate", + "deactivate", + "run", + } + conda_commands = { + "clean", + "config", + "create", + "--help", # https://github.com/conda/conda/issues/11585 + "info", + "install", + "list", + "package", + "remove", + "search", + "uninstall", + "update", + "upgrade", + } + build_commands = { + "build", + "convert", + "develop", + "index", + "inspect", + "metapackage", + "render", + "skeleton", + } + from .cli.main import init_loggers + + init_loggers() + if command in activate_commands: + # TODO: Point users to a page at conda-docs, which explains this context in more detail + builder = [ + "Your shell has not been properly configured to use 'conda %(command)s'." + ] + if on_win: + builder.append( + dals( + """ + If using 'conda %(command)s' from a batch script, change your + invocation to 'CALL conda.bat %(command)s'. + """ + ) + ) + builder.append( + dals( + """ + To initialize your shell, run + + $ conda init + + Currently supported shells are:%(supported_shells)s + + See 'conda init --help' for more information and options. + + IMPORTANT: You may need to close and restart your shell after running 'conda init'. + """ + ) + % { + "supported_shells": dashlist(COMPATIBLE_SHELLS), + } + ) + message = "\n".join(builder) + elif command in build_commands: + message = "To use 'conda %(command)s', install conda-build." + else: + from difflib import get_close_matches + + from .cli.find_commands import find_commands + + message = "No command 'conda %(command)s'." + choices = ( + activate_commands + | conda_commands + | build_commands + | set(find_commands()) + ) + close = get_close_matches(command, choices) + if close: + message += f"\nDid you mean 'conda {close[0]}'?" + super().__init__(message, command=command) + + +class PathNotFoundError(CondaError, OSError): + def __init__(self, path: PathType): + message = "%(path)s" + super().__init__(message, path=path) + + +class DirectoryNotFoundError(CondaError): + def __init__(self, path: PathType): + message = "%(path)s" + super().__init__(message, path=path) + + +class EnvironmentLocationNotFound(CondaError): + def __init__(self, location: PathType): + message = "Not a conda environment: %(location)s" + super().__init__(message, location=location) + + +class EnvironmentNameNotFound(CondaError): + def __init__(self, environment_name: str): + message = dals( + """ + Could not find conda environment: %(environment_name)s + You can list all discoverable environments with `conda info --envs`. + """ + ) + super().__init__(message, environment_name=environment_name) + + +class NoBaseEnvironmentError(CondaError): + def __init__(self): + message = dals( + """ + This conda installation has no default base environment. Use + 'conda create' to create new environments and 'conda activate' to + activate environments. + """ + ) + super().__init__(message) + + +class DirectoryNotACondaEnvironmentError(CondaError): + def __init__(self, target_directory: PathType): + message = dals( + """ + The target directory exists, but it is not a conda environment. + Use 'conda create' to convert the directory to a conda environment. + target directory: %(target_directory)s + """ + ) + super().__init__(message, target_directory=target_directory) + + +class CondaEnvironmentError(CondaError, EnvironmentError): + def __init__(self, message: str, *args): + msg = f"{message}" + super().__init__(msg, *args) + + +class DryRunExit(CondaExitZero): + def __init__(self): + msg = "Dry run. Exiting." + super().__init__(msg) + + +class CondaSystemExit(CondaExitZero, SystemExit): + def __init__(self, *args): + msg = " ".join(str(arg) for arg in self.args) + super().__init__(msg) + + +class PaddingError(CondaError): + def __init__(self, dist: str, placeholder: str, placeholder_length: int): + msg = ( + "Placeholder of length '%d' too short in package %s.\n" + "The package must be rebuilt with conda-build > 2.0." + % (placeholder_length, dist) + ) + super().__init__(msg) + + +class LinkError(CondaError): + def __init__(self, message: str): + super().__init__(message) + + +class CondaOSError(CondaError, OSError): + def __init__(self, message: str, **kwargs): + msg = f"{message}" + super().__init__(msg, **kwargs) + + +class ProxyError(CondaError): + def __init__(self, message: str | None = None): + if message is None: + message = dals( + """ + Conda cannot proceed due to an error in your proxy configuration. + Check for typos and other configuration errors in any '.netrc' file in your home directory, + any environment variables ending in '_PROXY', and any other system-wide proxy + configuration settings. + """ + ) + super().__init__(message) + + +class CondaIOError(CondaError, IOError): + def __init__(self, message: str, *args): + msg = f"{message}" + super().__init__(msg) + + +class CondaFileIOError(CondaIOError): + def __init__(self, filepath: PathType, message: str, *args): + self.filepath = filepath + + msg = f"'{filepath}'. {message}" + super().__init__(msg, *args) + + +class CondaKeyError(CondaError, KeyError): + def __init__(self, key: Any, message: str, *args): + self.key = key + self.msg = f"{key!r}: {message}" + super().__init__(self.msg, *args) + + +class ChannelError(CondaError): + pass + + +class ChannelNotAllowed(ChannelError): + warning = "Channel not included in allowlist" + + def __init__(self, channel: Channel): + channel_name = channel.name + channel_url = maybe_unquote(channel.base_url) + message = dals( + """ + %(warning)s: + channel name: %(channel_name)s + channel url: %(channel_url)s + """ + ) + super().__init__( + message, + channel_url=channel_url, + channel_name=channel_name, + warning=self.warning, + ) + + +class ChannelDenied(ChannelNotAllowed): + warning = "Channel included in denylist" + + +class UnavailableInvalidChannel(ChannelError): + status_code: str | int + + def __init__( + self, + channel: Channel | str, + status_code: str | int, + response: requests.models.Response | None = None, + ): + # parse channel + channel = Channel(channel) + channel_name = channel.name + channel_url = maybe_unquote(channel.base_url) + + # define hardcoded/default reason/message + reason = getattr(response, "reason", None) + message = dals( + """ + The channel is not accessible or is invalid. + + You will need to adjust your conda configuration to proceed. + Use `conda config --show channels` to view your configuration's current state, + and use `conda config --show-sources` to view config file locations. + """ + ) + if channel.scheme == "file": + url = join_url(channel.location, channel.name) + message += dedent( + f""" + As of conda 4.3, a valid channel must contain a + `noarch/repodata.json` even if `noarch/repodata.json` is + empty. Use `conda index {url}`, or create `noarch/repodata.json` + """ + ) + + # if response includes a valid json body we prefer the reason/message defined there + try: + body = response.json() + except (AttributeError, JSONDecodeError): + body = {} + else: + reason = body.get("reason") or reason + message = body.get("message") or message + # if RFC 9457 'detail' is present, it is preferred over 'message' + # See https://datatracker.ietf.org/doc/html/rfc9457 + message = body.get("detail") or message + + # standardize arguments + status_code = status_code or "000" + reason = reason or "UNAVAILABLE OR INVALID" + + self.status_code = status_code + + super().__init__( + f"HTTP {status_code} {reason} for channel {channel_name} <{channel_url}>\n\n{message}", + channel_name=channel_name, + channel_url=channel_url, + status_code=status_code, + reason=reason, + response_details=stringify(response, content_max_len=1024) or "", + json=body, + ) + + +class OperationNotAllowed(CondaError): + def __init__(self, message: str): + super().__init__(message) + + +class CondaImportError(CondaError, ImportError): + def __init__(self, message: str): + msg = f"{message}" + super().__init__(msg) + + +class ParseError(CondaError): + def __init__(self, message: str): + msg = f"{message}" + super().__init__(msg) + + +class CouldntParseError(ParseError): + def __init__(self, reason: str): + self.reason = reason + super().__init__(self.args[0]) + + +class ChecksumMismatchError(CondaError): + def __init__( + self, + url: str, + target_full_path: PathType, + checksum_type: str, + expected_checksum: str, + actual_checksum: str, + partial_download: bool = False, + ): + message = dals( + """ + Conda detected a mismatch between the expected content and downloaded content + for url '%(url)s'. + download saved to: %(target_full_path)s + expected %(checksum_type)s: %(expected_checksum)s + actual %(checksum_type)s: %(actual_checksum)s + """ + ) + url = maybe_unquote(url) + super().__init__( + message, + url=url, + target_full_path=target_full_path, + checksum_type=checksum_type, + expected_checksum=expected_checksum, + actual_checksum=actual_checksum, + partial_download=partial_download, + ) + + +class PackageNotInstalledError(CondaError): + def __init__(self, prefix: PathType, package_name: str): + message = dals( + """ + Package is not installed in prefix. + prefix: %(prefix)s + package name: %(package_name)s + """ + ) + super().__init__(message, prefix=prefix, package_name=package_name) + + +class CondaHTTPError(CondaError): + def __init__( + self, + message: str, + url: str, + status_code: int | str, + reason: str, + elapsed_time: timedelta | str, + response: requests.Response | None = None, + caused_by: Any = None, + ): + # if response includes a valid json body we prefer the reason/message defined there + try: + body = response.json() + except (AttributeError, JSONDecodeError): + body = {} + else: + reason = body.get("reason") or reason + message = body.get("message") or message + # if RFC 9457 'detail' is present, it is preferred over 'message' + # See https://datatracker.ietf.org/doc/html/rfc9457 + message = body.get("detail") or message + + # standardize arguments + url = maybe_unquote(url) + status_code = status_code or "000" + reason = reason or "CONNECTION FAILED" + elapsed_time = elapsed_time or "-" + if isinstance(elapsed_time, timedelta): + elapsed_time = str(elapsed_time).split(":", 1)[-1] + + # extract CF-RAY + try: + cf_ray = response.headers["CF-RAY"] + except (AttributeError, KeyError): + cf_ray = "" + else: + cf_ray = f"CF-RAY: {cf_ray}\n" + + super().__init__( + dals( + f""" + HTTP {status_code} {reason} for url <{url}> + Elapsed: {elapsed_time} + {cf_ray} + """ + ) + # since message may include newlines don't include in f-string/dals above + + message, + url=url, + status_code=status_code, + reason=reason, + elapsed_time=elapsed_time, + response_details=stringify(response, content_max_len=1024) or "", + json=body, + caused_by=caused_by, + ) + + +class CondaSSLError(CondaError): + pass + + +class AuthenticationError(CondaError): + pass + + +class PackagesNotFoundError(CondaError): + def __init__( + self, + packages: Iterable[MatchSpec | PackageRecord | str], + channel_urls: Iterable[str] = (), + ): + if channel_urls: + message = dals( + """ + The following packages are not available from current channels: + %(packages_formatted)s + + Current channels: + %(channels_formatted)s + + To search for alternate channels that may provide the conda package you're + looking for, navigate to + + https://anaconda.org + + and use the search bar at the top of the page. + """ + ) + from .base.context import context + + if context.use_only_tar_bz2: + message += dals( + """ + Note: 'use_only_tar_bz2' is enabled. This might be omitting some + packages from the index. Set this option to 'false' and retry. + """ + ) + packages_formatted = dashlist(packages) + channels_formatted = dashlist(channel_urls) + else: + message = dals( + """ + The following packages are missing from the target environment: + %(packages_formatted)s + """ + ) + packages_formatted = dashlist(packages) + channels_formatted = "" + + super().__init__( + message, + packages=packages, + packages_formatted=packages_formatted, + channel_urls=list(channel_urls), + channels_formatted=channels_formatted, + ) + + +class UnsatisfiableError(CondaError): + """An exception to report unsatisfiable dependencies. + + Args: + bad_deps: a list of tuples of objects (likely MatchSpecs). + chains: (optional) if True, the tuples are interpreted as chains + of dependencies, from top level to bottom. If False, the tuples + are interpreted as simple lists of conflicting specs. + + Returns: + Raises an exception with a formatted message detailing the + unsatisfiable specifications. + """ + + def _format_chain_str(self, bad_deps: Iterable[Iterable[MatchSpec]]): + chains = {} + for dep in sorted(bad_deps, key=len, reverse=True): + dep1 = [s.partition(" ") for s in dep[1:]] + key = (dep[0],) + tuple(v[0] for v in dep1) + vals = ("",) + tuple(v[2] for v in dep1) + found = False + for key2, csets in chains.items(): + if key2[: len(key)] == key: + for cset, val in zip(csets, vals): + cset.add(val) + found = True + if not found: + chains[key] = [{val} for val in vals] + for key, csets in chains.items(): + deps = [] + for name, cset in zip(key, csets): + if "" not in cset: + pass + elif len(cset) == 1: + cset.clear() + else: + cset.remove("") + cset.add("*") + if name[0] == "@": + name = "feature:" + name[1:] + deps.append( + "{} {}".format(name, "|".join(sorted(cset))) if cset else name + ) + chains[key] = " -> ".join(deps) + return [chains[key] for key in sorted(chains.keys())] + + def __init__( + self, + bad_deps: Iterable[Iterable[MatchSpec]], + chains: bool = True, + strict: bool = False, + ): + from .models.match_spec import MatchSpec + + messages = { + "python": dals( + """ + +The following specifications were found +to be incompatible with the existing python installation in your environment: + +Specifications:\n{specs} + +Your python: {ref} + +If python is on the left-most side of the chain, that's the version you've asked for. +When python appears to the right, that indicates that the thing on the left is somehow +not available for the python version you are constrained to. Note that conda will not +change your python version to a different minor version unless you explicitly specify +that. + + """ + ), + "request_conflict_with_history": dals( + """ + +The following specifications were found to be incompatible with a past +explicit spec that is not an explicit spec in this operation ({ref}):\n{specs} + + """ + ), + "direct": dals( + """ + +The following specifications were found to be incompatible with each other: + """ + ), + "virtual_package": dals( + """ + +The following specifications were found to be incompatible with your system:\n{specs} + +Your installed version is: {ref} +""" + ), + } + + msg = "" + self.unsatisfiable = [] + if len(bad_deps) == 0: + msg += """ +Did not find conflicting dependencies. If you would like to know which +packages conflict ensure that you have enabled unsatisfiable hints. + +conda config --set unsatisfiable_hints True + """ + else: + for class_name, dep_class in bad_deps.items(): + if dep_class: + _chains = [] + if class_name == "direct": + msg += messages["direct"] + last_dep_entry = {d[0][-1].name for d in dep_class} + dep_constraint_map = {} + for dep in dep_class: + if dep[0][-1].name in last_dep_entry: + if not dep_constraint_map.get(dep[0][-1].name): + dep_constraint_map[dep[0][-1].name] = [] + dep_constraint_map[dep[0][-1].name].append(dep[0]) + msg += "\nOutput in format: Requested package -> Available versions" + for dep, chain in dep_constraint_map.items(): + if len(chain) > 1: + msg += f"\n\nPackage {dep} conflicts for:\n" + msg += "\n".join( + [" -> ".join([str(i) for i in c]) for c in chain] + ) + self.unsatisfiable += [ + tuple(entries) for entries in chain + ] + else: + for dep_chain, installed_blocker in dep_class: + # Remove any target values from the MatchSpecs, convert to strings + dep_chain = [ + str(MatchSpec(dep, target=None)) for dep in dep_chain + ] + _chains.append(dep_chain) + + if _chains: + _chains = self._format_chain_str(_chains) + else: + _chains = [", ".join(c) for c in _chains] + msg += messages[class_name].format( + specs=dashlist(_chains), ref=installed_blocker + ) + if strict: + msg += ( + "\nNote that strict channel priority may have removed " + "packages required for satisfiability." + ) + + super().__init__(msg) + + +class RemoveError(CondaError): + def __init__(self, message: str): + msg = f"{message}" + super().__init__(msg) + + +class DisallowedPackageError(CondaError): + def __init__(self, package_ref: PackageRecord, **kwargs): + from .models.records import PackageRecord + + package_ref = PackageRecord.from_objects(package_ref) + message = ( + "The package '%(dist_str)s' is disallowed by configuration.\n" + "See 'conda config --show disallowed_packages'." + ) + super().__init__( + message, package_ref=package_ref, dist_str=package_ref.dist_str(), **kwargs + ) + + +class SpecsConfigurationConflictError(CondaError): + def __init__( + self, + requested_specs: Iterable[MatchSpec], + pinned_specs: Iterable[MatchSpec], + prefix: PathType, + ): + message = dals( + """ + Requested specs conflict with configured specs. + requested specs: {requested_specs_formatted} + pinned specs: {pinned_specs_formatted} + Use 'conda config --show-sources' to look for 'pinned_specs' and 'track_features' + configuration parameters. Pinned specs may also be defined in the file + {pinned_specs_path}. + """ + ).format( + requested_specs_formatted=dashlist(requested_specs, 4), + pinned_specs_formatted=dashlist(pinned_specs, 4), + pinned_specs_path=join(prefix, PREFIX_PINNED_FILE), + ) + super().__init__( + message, + requested_specs=requested_specs, + pinned_specs=pinned_specs, + prefix=prefix, + ) + + +class CondaIndexError(CondaError, IndexError): + def __init__(self, message: str): + msg = f"{message}" + super().__init__(msg) + + +class CondaValueError(CondaError, ValueError): + def __init__(self, message: str, *args, **kwargs): + super().__init__(message, *args, **kwargs) + + +class CyclicalDependencyError(CondaError, ValueError): + def __init__(self, packages_with_cycles: Iterable[PackageRecord], **kwargs): + from .models.records import PackageRecord + + packages_with_cycles = tuple( + PackageRecord.from_objects(p) for p in packages_with_cycles + ) + message = f"Cyclic dependencies exist among these items: {dashlist(p.dist_str() for p in packages_with_cycles)}" + super().__init__(message, packages_with_cycles=packages_with_cycles, **kwargs) + + +class CorruptedEnvironmentError(CondaError): + def __init__( + self, + environment_location: PathType, + corrupted_file: PathType, + **kwargs, + ): + message = dals( + """ + The target environment has been corrupted. Corrupted environments most commonly + occur when the conda process is force-terminated while in an unlink-link + transaction. + environment location: %(environment_location)s + corrupted file: %(corrupted_file)s + """ + ) + super().__init__( + message, + environment_location=environment_location, + corrupted_file=corrupted_file, + **kwargs, + ) + + +class CondaHistoryError(CondaError): + def __init__(self, message: str): + msg = f"{message}" + super().__init__(msg) + + +class CondaUpgradeError(CondaError): + def __init__(self, message: str): + msg = f"{message}" + super().__init__(msg) + + +class CondaVerificationError(CondaError): + def __init__(self, message: str): + super().__init__(message) + + +class SafetyError(CondaError): + def __init__(self, message: str): + super().__init__(message) + + +class CondaMemoryError(CondaError, MemoryError): + def __init__(self, caused_by: Any, **kwargs): + message = "The conda process ran out of memory. Increase system memory and/or try again." + super().__init__(message, caused_by=caused_by, **kwargs) + + +class NotWritableError(CondaError, OSError): + def __init__(self, path: PathType, errno: int, **kwargs): + kwargs.update( + { + "path": path, + "errno": errno, + } + ) + if on_win: + message = dals( + """ + The current user does not have write permissions to a required path. + path: %(path)s + """ + ) + else: + message = dals( + """ + The current user does not have write permissions to a required path. + path: %(path)s + uid: %(uid)s + gid: %(gid)s + + If you feel that permissions on this path are set incorrectly, you can manually + change them by executing + + $ sudo chown %(uid)s:%(gid)s %(path)s + + In general, it's not advisable to use 'sudo conda'. + """ + ) + kwargs.update( + { + "uid": os.geteuid(), + "gid": os.getegid(), + } + ) + super().__init__(message, **kwargs) + self.errno = errno + + +class NoWritableEnvsDirError(CondaError): + def __init__(self, envs_dirs: Iterable[PathType], **kwargs): + message = f"No writeable envs directories configured.{dashlist(envs_dirs)}" + super().__init__(message, envs_dirs=envs_dirs, **kwargs) + + +class NoWritablePkgsDirError(CondaError): + def __init__(self, pkgs_dirs: Iterable[PathType], **kwargs): + message = f"No writeable pkgs directories configured.{dashlist(pkgs_dirs)}" + super().__init__(message, pkgs_dirs=pkgs_dirs, **kwargs) + + +class EnvironmentIsFrozenError(CondaError): + def __init__(self, prefix: PathType, message: str = "", **kwargs): + error = f"Cannot modify '{prefix}'. The environment is marked as frozen. " + if message: + error += "Reason:\n\n" + error += indent(message, " ") + error += "\n\n" + error += ( + "You can bypass these protections with the `--override-frozen` flag," + " at your own risk." + ) + super().__init__(error, **kwargs) + + +class EnvironmentNotWritableError(CondaError): + def __init__(self, environment_location: PathType, **kwargs): + kwargs.update( + { + "environment_location": environment_location, + } + ) + if on_win: + message = dals( + """ + The current user does not have write permissions to the target environment. + environment location: %(environment_location)s + """ + ) + else: + message = dals( + """ + The current user does not have write permissions to the target environment. + environment location: %(environment_location)s + uid: %(uid)s + gid: %(gid)s + """ + ) + kwargs.update( + { + "uid": os.geteuid(), + "gid": os.getegid(), + } + ) + super().__init__(message, **kwargs) + + +class CondaDependencyError(CondaError): + def __init__(self, message: str): + super().__init__(message) + + +class BinaryPrefixReplacementError(CondaError): + def __init__( + self, + path: PathType, + placeholder: str, + new_prefix: PathType, + original_data_length: int, + new_data_length: int, + ): + message = dals( + """ + Refusing to replace mismatched data length in binary file. + path: %(path)s + placeholder: %(placeholder)s + new prefix: %(new_prefix)s + original data Length: %(original_data_length)d + new data length: %(new_data_length)d + """ + ) + kwargs = { + "path": path, + "placeholder": placeholder, + "new_prefix": new_prefix, + "original_data_length": original_data_length, + "new_data_length": new_data_length, + } + super().__init__(message, **kwargs) + + +class InvalidSpec(CondaError, ValueError): + def __init__(self, message: str, **kwargs): + super().__init__(message, **kwargs) + + +class InvalidVersionSpec(InvalidSpec): + def __init__(self, invalid_spec: str | MatchSpec, details: str): + message = "Invalid version '%(invalid_spec)s': %(details)s" + super().__init__(message, invalid_spec=invalid_spec, details=details) + + +class InvalidMatchSpec(InvalidSpec): + def __init__(self, invalid_spec: str | MatchSpec, details: str): + message = "Invalid spec '%(invalid_spec)s': %(details)s" + super().__init__(message, invalid_spec=invalid_spec, details=details) + + +class EncodingError(CondaError): + def __init__(self, caused_by: Any, **kwargs): + message = ( + dals( + """ + A unicode encoding or decoding error has occurred. + Python 2 is the interpreter under which conda is running in your base environment. + Replacing your base environment with one having Python 3 may help resolve this issue. + If you still have a need for Python 2 environments, consider using 'conda create' + and 'conda activate'. For example: + + $ conda create -n py2 python=2 + $ conda activate py2 + + Error details: %r + + """ + ) + % caused_by + ) + super().__init__(message, caused_by=caused_by, **kwargs) + + +class NoSpaceLeftError(CondaError): + def __init__(self, caused_by: Any, **kwargs): + message = "No space left on devices." + super().__init__(message, caused_by=caused_by, **kwargs) + + +class CondaEnvException(CondaError): + def __init__(self, message: str, *args, **kwargs): + msg = f"{message}" + super().__init__(msg, *args, **kwargs) + + +class EnvironmentFileInvalid(CondaEnvException): + def __init__(self, msg: str, *args, **kwargs): + msg = f"Provided environment.yaml is invalid: {msg}" + super().__init__(msg, *args, **kwargs) + + +class EnvironmentFileNotFound(CondaEnvException): + def __init__(self, filename: PathType, *args, **kwargs): + msg = f"'{filename}' file not found" + self.filename = filename + super().__init__(msg, *args, **kwargs) + + +class EnvironmentFileExtensionNotValid(CondaEnvException): + def __init__(self, filename: PathType, *args, **kwargs): + msg = f"'{filename}' file extension must be one of '.txt', '.yaml' or '.yml'" + self.filename = filename + super().__init__(msg, *args, **kwargs) + + +class EnvironmentFileTypeMismatchError(CondaError): + def __init__(self, file_types: dict[str, str], *args, **kwargs): + type_groups = defaultdict(list) + for file, file_type in file_types.items(): + type_groups[file_type].append(file) + + lines = ["Cannot mix environment file formats.\n"] + + for file_type, files in type_groups.items(): + lines.extend(f"'{file}' is a {file_type} format file" for file in files) + + super().__init__("\n".join(lines), *args, **kwargs) + + +class EnvironmentFileEmpty(CondaEnvException): + def __init__(self, filename: PathType, *args, **kwargs): + self.filename = filename + msg = f"Environment file '{filename}' is empty." + super().__init__(msg, *args, **kwargs) + + +class EnvironmentFileNotDownloaded(CondaError): + def __init__(self, username: str, packagename: str, *args, **kwargs): + msg = f"{username}/{packagename} file not downloaded" + self.username = username + self.packagename = packagename + super().__init__(msg, *args, **kwargs) + + +class PluginError(CondaError): + pass + + +class SpecNotFound(CondaError): + def __init__(self, msg: str, *args, **kwargs): + super().__init__(msg, *args, **kwargs) + + +class EnvironmentSpecPluginNotDetected(SpecNotFound): + def __init__( + self, + name: str, + plugin_names: Iterable[str], + autodetect_disabled_plugins: Iterable[str] = (), + *args, + **kwargs, + ): + self.name = name + msg = dals( + f""" + Environment at {name} is not able to be detected by any installed environment specifier plugins. + + Available plugins: {dashlist(plugin_names, 16)} + + """ + ) + if autodetect_disabled_plugins: + msg += dals( + """ + Found compatible plugins but they must be explicitly selected. + Request conda to use these plugins by providing + the cli argument `--environment-spec PLUGIN_NAME`: + """ + ) + dashlist(autodetect_disabled_plugins, 4) + super().__init__(msg, *args, **kwargs) + + +class EnvironmentExporterNotDetected(CondaError): + def __init__( + self, + filename: str, + exporters: Iterable[CondaEnvironmentExporter], + *args, + **kwargs, + ): + self.filename = filename + supported_filenames: list[str] = [] + available_formats: list[str] = [] + for exporter in exporters: + supported_filenames.extend( + f"{filename:<20} (format: {exporter.name})" + for filename in exporter.default_filenames + ) + available_formats.append( + f"{exporter.name:<20} (aliases: {', '.join(exporter.aliases)})" + if exporter.aliases + else exporter.name + ) + msg = ( + f"No environment exporter plugin found for filename '{filename}'.\n" + f"\n" + f"Supported filenames:{dashlist(supported_filenames)}\n" + f"\n" + f"Available formats:{dashlist(available_formats)}\n" + f"\n" + f"Use conda export --format=FORMAT to specify the export format explicitly, " + f"or rename your file to match a supported filename pattern." + ) + super().__init__(msg, *args, **kwargs) + + +class SpecNotFoundInPackageCache(CondaError): + def __init__(self, msg: str, *args, **kwargs): + super().__init__(msg, *args, **kwargs) + + +def maybe_raise(error: BaseException, context: Context): + if isinstance(error, CondaMultiError): + groups = groupby(lambda e: isinstance(e, ClobberError), error.errors) + clobber_errors = groups.get(True, ()) + groups = groupby(lambda e: isinstance(e, SafetyError), groups.get(False, ())) + safety_errors = groups.get(True, ()) + other_errors = groups.get(False, ()) + + if ( + (safety_errors and context.safety_checks == SafetyChecks.enabled) + or ( + clobber_errors + and context.path_conflict == PathConflict.prevent + and not context.clobber + ) + or other_errors + ): + raise error + elif (safety_errors and context.safety_checks == SafetyChecks.warn) or ( + clobber_errors + and context.path_conflict == PathConflict.warn + and not context.clobber + ): + print_conda_exception(error) + + elif isinstance(error, ClobberError): + if context.path_conflict == PathConflict.prevent and not context.clobber: + raise error + elif context.path_conflict == PathConflict.warn and not context.clobber: + print_conda_exception(error) + + elif isinstance(error, SafetyError): + if context.safety_checks == SafetyChecks.enabled: + raise error + elif context.safety_checks == SafetyChecks.warn: + print_conda_exception(error) + + else: + raise error + + +def print_conda_exception(exc_val: CondaError, exc_tb: TracebackType | None = None): + from .base.context import context + + rc = getattr(exc_val, "return_code", None) + if context.debug or (not isinstance(exc_val, DryRunExit) and context.info): + print(_format_exc(exc_val, exc_tb), file=sys.stderr) + elif context.json: + if isinstance(exc_val, DryRunExit): + return + logger = getLogger("conda.stdout" if rc else "conda.stderr") + exc_json = json_dumps(exc_val.dump_map(), sort_keys=True) + logger.info(f"{exc_json}\n") + else: + stderrlog = getLogger("conda.stderr") + stderrlog.error("\n%r\n", exc_val) + # An alternative which would allow us not to reload sys with newly setdefaultencoding() + # is to not use `%r`, e.g.: + # Still, not being able to use `%r` seems too great a price to pay. + # stderrlog.error("\n" + exc_val.__repr__() + \n") + + +def _format_exc( + exc_val: BaseException | None = None, exc_tb: TracebackType | None = None +): + if exc_val is None: + exc_type, exc_val, exc_tb = sys.exc_info() + else: + exc_type = type(exc_val) + if exc_tb: + formatted_exception = format_exception(exc_type, exc_val, exc_tb) + else: + formatted_exception = format_exception_only(exc_type, exc_val) + return "".join(formatted_exception) + + +class InvalidInstaller(Exception): + def __init__(self, name: str): + msg = f"Unable to load installer for {name}" + super().__init__(msg) + + +class OfflineError(CondaError, RuntimeError): + pass + + +class CondaUpdatePackageError(CondaError): + def __init__(self, spec: str | list[str]): + spec_format = dashlist(spec, 4) if isinstance(spec, list) else spec + msg = ( + f"`conda update` only supports name-only spec, but received: {spec_format}\n" + f"Use `conda install` to install a specific version of a package." + ) + super().__init__(msg) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/exports.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/exports.py new file mode 100644 index 0000000000000000000000000000000000000000..c08f5231dd7528a12309effe093e5ecb183a6442 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/exports.py @@ -0,0 +1,222 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Backported exports for conda-build.""" + +from __future__ import annotations + +from builtins import input # noqa: F401, UP029 +from io import StringIO # noqa: F401, for conda-build +from typing import TYPE_CHECKING + +from . import CondaError # noqa: F401 +from .base.constants import ( # noqa: F401 + DEFAULT_CHANNELS, + DEFAULT_CHANNELS_UNIX, + DEFAULT_CHANNELS_WIN, + PREFIX_PLACEHOLDER, +) +from .base.context import ( # noqa: F401 + context, + non_x86_machines, + reset_context, + sys_rc_path, +) +from .cli.common import spec_from_line, specs_from_args, specs_from_url # noqa: F401 +from .cli.conda_argparse import ArgumentParser # noqa: F401 +from .cli.helpers import ( # noqa: F401 + add_parser_channels, + add_parser_prefix, +) +from .common import compat # noqa: F401 +from .common.serialize.json import CondaJSONEncoder +from .common.toposort import _toposort # noqa: F401 +from .core.index import ( + Index, + dist_str_in_index, # noqa: F401 +) +from .core.package_cache_data import ProgressiveFetchExtract # noqa: F401 +from .core.prefix_data import delete_prefix_from_linked_data +from .core.solve import Solver # noqa: F401 +from .core.subdir_data import cache_fn_url # noqa: F401 +from .deprecations import deprecated +from .exceptions import ( # noqa: F401 + CondaHTTPError, + CondaOSError, + LinkError, + LockError, + PaddingError, + PathNotFoundError, + UnsatisfiableError, +) +from .gateways.connection.download import TmpDownload # noqa: F401 +from .gateways.connection.download import download as _download +from .gateways.connection.session import CondaSession # noqa: F401 +from .gateways.disk.create import TemporaryDirectory # noqa: F401 +from .gateways.disk.delete import delete_trash # noqa: F401 +from .gateways.disk.link import lchmod # noqa: F401 +from .gateways.subprocess import ACTIVE_SUBPROCESSES, subprocess_call # noqa: F401 +from .misc import untracked, walk_prefix # noqa: F401 +from .models.channel import Channel, get_conda_build_local_url # noqa: F401 +from .models.dist import Dist +from .models.enums import FileMode, PathType # noqa: F401 +from .models.version import VersionOrder, normalized_version # noqa: F401 +from .resolve import ( # noqa: F401 + MatchSpec, + Resolve, + ResolvePackageNotFound, + Unsatisfiable, +) +from .utils import human_bytes, url_path # noqa: F401 + +if TYPE_CHECKING: + from typing import Any + +reset_context() # initialize context when conda.exports is imported + + +NoPackagesFound = NoPackagesFoundError = ResolvePackageNotFound +non_x86_linux_machines = non_x86_machines +get_default_urls = lambda: DEFAULT_CHANNELS +_PREFIX_PLACEHOLDER = prefix_placeholder = PREFIX_PLACEHOLDER +arch_name = context.arch_name +binstar_upload = context.anaconda_upload +bits = context.bits +default_prefix = context.default_prefix +default_python = context.default_python +envs_dirs = context.envs_dirs +pkgs_dirs = context.pkgs_dirs +platform = context.platform +root_dir = context.root_prefix +root_writable = context.root_writable +subdir = context.subdir +conda_build = context.conda_build +get_rc_urls = lambda: list(context.channels) +get_local_urls = lambda: list(get_conda_build_local_url()) or [] +load_condarc = lambda fn: reset_context([fn]) +PaddingError = PaddingError +LinkError = LinkError +CondaOSError = CondaOSError +# PathNotFoundError is the conda 4.4.x name for it - let's plan ahead. +CondaFileNotFoundError = PathNotFoundError +# Replacements for six exports for compatibility +PY3 = True +string_types = str +text_type = str + + +# FUTURE: conda 26.3+ remove this +def __getattr__(name: str) -> Any: + # lazy load the deprecated module + if name == "plan": + from . import plan + + return plan + + raise AttributeError(f"module '{__name__}' has no attribute '{name}'") + + +deprecated.constant( + "26.3", + "26.9", + "EntityEncoder", + CondaJSONEncoder, + addendum="Use `conda.common.serialize.json.CondaJSONEncoder` instead.", +) +del CondaJSONEncoder + + +def rm_rf(path, max_retries=5, trash=True): + from .gateways.disk.delete import rm_rf + + rm_rf(path) + delete_prefix_from_linked_data(path) + + +def get_index( + channel_urls=(), + prepend=True, + platform=None, + use_local=False, + use_cache=False, + unknown=None, + prefix=None, +): + index = Index( + channel_urls, prepend, platform, use_local, use_cache, unknown, prefix + ) + return {Dist(prec): prec for prec in index.values()} + + +def package_cache(): + from .core.package_cache_data import PackageCacheData + + class package_cache: + def __contains__(self, dist): + return bool( + PackageCacheData.first_writable().get(Dist(dist).to_package_ref(), None) + ) + + def keys(self): + return (Dist(v) for v in PackageCacheData.first_writable().values()) + + def __delitem__(self, dist): + PackageCacheData.first_writable().remove(Dist(dist).to_package_ref()) + + return package_cache() + + +def linked_data(prefix, ignore_channels=False): + """Return a dictionary of the linked packages in prefix.""" + from .core.prefix_data import PrefixData + from .models.dist import Dist + + pd = PrefixData(prefix) + return { + Dist(prefix_record): prefix_record + for prefix_record in pd._prefix_records.values() + } + + +def linked(prefix, ignore_channels=False): + """Return the Dists of linked packages in prefix.""" + from .models.enums import PackageType + + conda_package_types = PackageType.conda_package_types() + ld = linked_data(prefix, ignore_channels=ignore_channels).items() + return { + dist + for dist, prefix_rec in ld + if prefix_rec.package_type in conda_package_types + } + + +# exports +def is_linked(prefix, dist): + """ + Return the install metadata for a linked package in a prefix, or None + if the package is not linked in the prefix. + """ + # FIXME Functions that begin with `is_` should return True/False + from .core.prefix_data import PrefixData + + pd = PrefixData(prefix) + prefix_record = pd.get(dist.name, None) + if prefix_record is None: + return None + elif MatchSpec(dist).match(prefix_record): + return prefix_record + else: + return None + + +def download( + url, + dst_path, + session=None, + md5sum=None, + urlstxt=False, + retries=3, + sha256=None, + size=None, +): + return _download(url, dst_path, md5=md5sum, sha256=sha256, size=size) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/history.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/history.py new file mode 100644 index 0000000000000000000000000000000000000000..e37afef3e752fe2671b5b03fdbebdb13d9e33eb6 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/history.py @@ -0,0 +1,427 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Tools interfacing with conda's history file.""" + +from __future__ import annotations + +import codecs +import logging +import os +import re +import sys +import time +import warnings +from ast import literal_eval +from errno import EACCES, EPERM, EROFS +from itertools import islice +from operator import itemgetter +from os.path import isdir, isfile, join +from textwrap import dedent +from typing import TYPE_CHECKING + +from . import __version__ as CONDA_VERSION +from .auxlib.ish import dals +from .base.constants import DEFAULTS_CHANNEL_NAME +from .base.context import context +from .common.compat import ensure_text_type, open_utf8 +from .common.iterators import groupby_to_dict as groupby +from .common.path import paths_equal +from .core.prefix_data import PrefixData +from .exceptions import CondaHistoryError, NotWritableError +from .gateways.disk.update import touch +from .models.dist import dist_str_to_quad +from .models.match_spec import MatchSpec +from .models.version import VersionOrder, version_relation_re + +if TYPE_CHECKING: + from .common.path import PathType + +log = logging.getLogger(__name__) + + +class CondaHistoryWarning(Warning): + pass + + +def write_head(fo): + fo.write("==> {} <==\n".format(time.strftime("%Y-%m-%d %H:%M:%S"))) + fo.write("# cmd: {}\n".format(" ".join(ensure_text_type(s) for s in sys.argv))) + fo.write( + "# conda version: {}\n".format(".".join(islice(CONDA_VERSION.split("."), 3))) + ) + + +def is_diff(content): + return any(s.startswith(("-", "+")) for s in content) + + +def pretty_diff(diff): + added = {} + removed = {} + for s in diff: + fn = s[1:] + name, version, _, channel = dist_str_to_quad(fn) + if channel != DEFAULTS_CHANNEL_NAME: + version += f" ({channel})" + if s.startswith("-"): + removed[name.lower()] = version + elif s.startswith("+"): + added[name.lower()] = version + changed = set(added) & set(removed) + for name in sorted(changed): + yield f" {name} {{{removed[name]} -> {added[name]}}}" + for name in sorted(set(removed) - changed): + yield f"-{name}-{removed[name]}" + for name in sorted(set(added) - changed): + yield f"+{name}-{added[name]}" + + +def pretty_content(content): + if is_diff(content): + return pretty_diff(content) + else: + return iter(sorted(content)) + + +class History: + com_pat = re.compile(r"#\s*cmd:\s*(.+)") + spec_pat = re.compile(r"#\s*(\w+)\s*specs:\s*(.+)?") + conda_v_pat = re.compile(r"#\s*conda version:\s*(.+)") + + def __init__(self, prefix: PathType): + self.prefix = prefix + self.meta_dir = join(prefix, "conda-meta") + self.path = join(self.meta_dir, "history") + + def __enter__(self): + self.init_log_file() + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.update() + + def init_log_file(self): + touch(self.path, True) + + def file_is_empty(self): + return os.stat(self.path).st_size == 0 + + def update(self) -> None: + """Update the history file (creating a new one if necessary).""" + try: + try: + last = set(self.get_state()) + except CondaHistoryError as e: + warnings.warn(f"Error in {self.path}: {e}", CondaHistoryWarning) + return + pd = PrefixData(self.prefix) + curr = {prefix_rec.dist_str() for prefix_rec in pd.iter_records()} + self.write_changes(last, curr) + except OSError as e: + if e.errno in (EACCES, EPERM, EROFS): + raise NotWritableError(self.path, e.errno) + else: + raise + + def parse(self) -> list[tuple[str, set[str], list[str]]]: + """Parse the history file. + + Return a list of tuples(datetime strings, set of distributions/diffs, comments). + + Comments appearing before the first section header (e.g. ``==> 2024-01-01 00:00:00 <==``) + in the history file will be ignored. + """ + res = [] + if not isfile(self.path): + return res + sep_pat = re.compile(r"==>\s*(.+?)\s*<==") + with open_utf8(self.path) as f: + lines = f.read().splitlines() + for line in lines: + line = line.strip() + if not line: + continue + m = sep_pat.match(line) + if m: + res.append((m.group(1), set(), [])) + elif line.startswith("#") and res: + res[-1][2].append(line) + elif res: + res[-1][1].add(line) + return res + + @staticmethod + def _parse_old_format_specs_string(specs_string): + """ + Parse specifications string that use conda<4.5 syntax. + + Examples + -------- + - "param >=1.5.1,<2.0'" + - "python>=3.5.1,jupyter >=1.0.0,<2.0,matplotlib >=1.5.1,<2.0" + """ + specs = [] + for spec in specs_string.split(","): + # If the spec starts with a version qualifier, then it actually belongs to the + # previous spec. But don't try to join if there was no previous spec. + if version_relation_re.match(spec) and specs: + specs[-1] = ",".join([specs[-1], spec]) + else: + specs.append(spec) + return specs + + @classmethod + def _parse_comment_line(cls, line): + """ + Parse comment lines in the history file. + + These lines can be of command type or action type. + + Examples + -------- + - "# cmd: /scratch/mc3/bin/conda install -c conda-forge param>=1.5.1,<2.0" + - "# install specs: python>=3.5.1,jupyter >=1.0.0,<2.0,matplotlib >=1.5.1,<2.0" + """ + item = {} + m = cls.com_pat.match(line) + if m: + argv = m.group(1).split() + if argv[0].endswith("conda"): + argv[0] = "conda" + item["cmd"] = argv + + m = cls.conda_v_pat.match(line) + if m: + item["conda_version"] = m.group(1) + + m = cls.spec_pat.match(line) + if m: + action, specs_string = m.groups() + specs_string = specs_string or "" + item["action"] = action + + if specs_string.startswith("["): + specs = literal_eval(specs_string) + elif "[" not in specs_string: + specs = History._parse_old_format_specs_string(specs_string) + + specs = [spec for spec in specs if spec and not spec.endswith("@")] + + if specs and action in ("update", "install", "create"): + item["update_specs"] = item["specs"] = specs + elif specs and action in ("remove", "uninstall"): + item["remove_specs"] = item["specs"] = specs + elif specs and action in ("neutered",): + item["neutered_specs"] = item["specs"] = specs + + return item + + def get_user_requests(self): + """Return a list of user requested items. + + Each item is a dict with the following keys: + 'date': the date and time running the command + 'cmd': a list of argv of the actual command which was run + 'action': install/remove/update + 'specs': the specs being used + """ + res = [] + for dt, unused_cont, comments in self.parse(): + item = {"date": dt} + for line in comments: + comment_items = self._parse_comment_line(line) + item.update(comment_items) + + if "cmd" in item: + res.append(item) + + dists = groupby(itemgetter(0), unused_cont) + item["unlink_dists"] = dists.get("-", ()) + item["link_dists"] = dists.get("+", ()) + + conda_versions_from_history = tuple( + x["conda_version"] for x in res if "conda_version" in x + ) + if conda_versions_from_history and not context.allow_conda_downgrades: + minimum_conda_version = sorted( + conda_versions_from_history, key=VersionOrder + )[-1] + minimum_major_minor = ".".join(islice(minimum_conda_version.split("."), 2)) + current_major_minor = ".".join(islice(CONDA_VERSION.split("."), 2)) + if VersionOrder(current_major_minor) < VersionOrder(minimum_major_minor): + message = dals( + """ + This environment has previously been operated on by a conda version that's newer + than the conda currently being used. A newer version of conda is required. + target environment location: %(target_prefix)s + current conda version: %(conda_version)s + minimum conda version: %(minimum_version)s + """ + ) % { + "target_prefix": self.prefix, + "conda_version": CONDA_VERSION, + "minimum_version": minimum_major_minor, + } + if not paths_equal(self.prefix, context.root_prefix): + message += dedent( + """ + Update conda and try again. + $ conda install -p "%(base_prefix)s" "conda>=%(minimum_version)s" + """ + ) % { + "base_prefix": context.root_prefix, + "minimum_version": minimum_major_minor, + } + message += dedent( + """ + To work around this restriction, one can also set the config parameter + 'allow_conda_downgrades' to False at their own risk. + """ + ) + + # TODO: we need to rethink this. It's fine as a warning to try to get users + # to avoid breaking their system. However, right now it is preventing + # normal conda operation after downgrading conda. + # raise CondaUpgradeError(message) + + return res + + def get_requested_specs_map(self): + # keys are package names and values are specs + spec_map = {} + for request in self.get_user_requests(): + remove_specs = (MatchSpec(spec) for spec in request.get("remove_specs", ())) + for spec in remove_specs: + spec_map.pop(spec.name, None) + update_specs = (MatchSpec(spec) for spec in request.get("update_specs", ())) + spec_map.update((s.name, s) for s in update_specs) + # here is where the neutering takes effect, overriding past values + neutered_specs = ( + MatchSpec(spec) for spec in request.get("neutered_specs", ()) + ) + spec_map.update((s.name, s) for s in neutered_specs) + + # Conda hasn't always been good about recording when specs have been removed from + # environments. If the package isn't installed in the current environment, then we + # shouldn't try to force it here. + prefix_recs = {_.name for _ in PrefixData(self.prefix).iter_records()} + return {name: spec for name, spec in spec_map.items() if name in prefix_recs} + + def construct_states(self): + """Return a list of tuples(datetime strings, set of distributions).""" + res = [] + cur = set() + for dt, cont, unused_com in self.parse(): + if not is_diff(cont): + cur = cont + else: + for s in cont: + if s.startswith("-"): + cur.discard(s[1:]) + elif s.startswith("+"): + cur.add(s[1:]) + else: + raise CondaHistoryError(f"Did not expect: {s}") + res.append((dt, cur.copy())) + return res + + def get_state(self, rev=-1): + """Return the state, i.e. the set of distributions, for a given revision. + + Defaults to latest (which is the same as the current state when + the log file is up-to-date). + + Returns a list of dist_strs. + """ + states = self.construct_states() + if not states: + return set() + times, pkgs = zip(*states) + return pkgs[rev] + + def print_log(self): + for i, (date, content, unused_com) in enumerate(self.parse()): + print("%s (rev %d)" % (date, i)) + for line in pretty_content(content): + print(f" {line}") + print() + + def object_log(self): + result = [] + for i, (date, content, unused_com) in enumerate(self.parse()): + # Based on Mateusz's code; provides more details about the + # history event + event = { + "date": date, + "rev": i, + "install": [], + "remove": [], + "upgrade": [], + "downgrade": [], + } + added = {} + removed = {} + if is_diff(content): + for pkg in content: + name, version, build, channel = dist_str_to_quad(pkg[1:]) + if pkg.startswith("+"): + added[name.lower()] = (version, build, channel) + elif pkg.startswith("-"): + removed[name.lower()] = (version, build, channel) + + changed = set(added) & set(removed) + for name in sorted(changed): + old = removed[name] + new = added[name] + details = { + "old": "-".join((name,) + old), + "new": "-".join((name,) + new), + } + + if new > old: + event["upgrade"].append(details) + else: + event["downgrade"].append(details) + + for name in sorted(set(removed) - changed): + event["remove"].append("-".join((name,) + removed[name])) + + for name in sorted(set(added) - changed): + event["install"].append("-".join((name,) + added[name])) + else: + for pkg in sorted(content): + event["install"].append(pkg) + result.append(event) + return result + + def write_changes(self, last_state, current_state): + if not isdir(self.meta_dir): + os.makedirs(self.meta_dir) + with codecs.open(self.path, mode="ab", encoding="utf-8") as fo: + write_head(fo) + for fn in sorted(last_state - current_state): + fo.write(f"-{fn}\n") + for fn in sorted(current_state - last_state): + fo.write(f"+{fn}\n") + + def write_specs(self, remove_specs=(), update_specs=(), neutered_specs=()): + remove_specs = [str(MatchSpec(s)) for s in remove_specs] + update_specs = [str(MatchSpec(s)) for s in update_specs] + neutered_specs = [str(MatchSpec(s)) for s in neutered_specs] + if any((update_specs, remove_specs, neutered_specs)): + with codecs.open(self.path, mode="ab", encoding="utf-8") as fh: + if remove_specs: + fh.write(f"# remove specs: {remove_specs}\n") + if update_specs: + fh.write(f"# update specs: {update_specs}\n") + if neutered_specs: + fh.write(f"# neutered specs: {neutered_specs}\n") + + +if __name__ == "__main__": + from pprint import pprint + + # Don't use in context manager mode---it augments the history every time + h = History(sys.prefix) + pprint(h.get_user_requests()) + print(h.get_requested_specs_map()) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/instructions.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/instructions.py new file mode 100644 index 0000000000000000000000000000000000000000..c38a07516e94ca52763d0dae2a9a6e56304077ec --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/instructions.py @@ -0,0 +1,108 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Define the instruction set (constants) for conda operations.""" + +from logging import getLogger +from os.path import isfile, join + +from .core.link import UnlinkLinkTransaction +from .core.package_cache_data import ProgressiveFetchExtract +from .exceptions import CondaFileIOError +from .gateways.disk.link import islink + +log = getLogger(__name__) + +# op codes +CHECK_FETCH = "CHECK_FETCH" +FETCH = "FETCH" +CHECK_EXTRACT = "CHECK_EXTRACT" +EXTRACT = "EXTRACT" +RM_EXTRACTED = "RM_EXTRACTED" +RM_FETCHED = "RM_FETCHED" +PRINT = "PRINT" +PROGRESS = "PROGRESS" +SYMLINK_CONDA = "SYMLINK_CONDA" +UNLINK = "UNLINK" +LINK = "LINK" +UNLINKLINKTRANSACTION = "UNLINKLINKTRANSACTION" +PROGRESSIVEFETCHEXTRACT = "PROGRESSIVEFETCHEXTRACT" + + +PROGRESS_COMMANDS = {EXTRACT, RM_EXTRACTED} +ACTION_CODES = ( + CHECK_FETCH, + FETCH, + CHECK_EXTRACT, + EXTRACT, + UNLINK, + LINK, + SYMLINK_CONDA, + RM_EXTRACTED, + RM_FETCHED, +) + + +def PRINT_CMD(state, arg): # pragma: no cover + if arg.startswith(("Unlinking packages", "Linking packages")): + return + getLogger("conda.stdout.verbose").info(arg) + + +def FETCH_CMD(state, package_cache_entry): + raise NotImplementedError() + + +def EXTRACT_CMD(state, arg): + raise NotImplementedError() + + +def PROGRESSIVEFETCHEXTRACT_CMD(state, progressive_fetch_extract): # pragma: no cover + if not isinstance(progressive_fetch_extract, ProgressiveFetchExtract): + raise TypeError( + "'progressive_fetch_extract' must be a ProgressiveFetchExtract instance." + ) + progressive_fetch_extract.execute() + + +def UNLINKLINKTRANSACTION_CMD(state, arg): # pragma: no cover + unlink_link_transaction = arg + if not isinstance(unlink_link_transaction, UnlinkLinkTransaction): + raise TypeError( + "'unlink_link_transaction' must be an UnlinkLinkTransaction instance." + ) + unlink_link_transaction.execute() + + +def check_files_in_package(source_dir, files): + for f in files: + source_file = join(source_dir, f) + if isfile(source_file) or islink(source_file): + return True + else: + raise CondaFileIOError(source_file, f"File {f} does not exist in tarball") + + +# Map instruction to command (a python function) +commands = { + PRINT: PRINT_CMD, + FETCH: FETCH_CMD, + PROGRESS: lambda x, y: None, + EXTRACT: EXTRACT_CMD, + RM_EXTRACTED: lambda x, y: None, + RM_FETCHED: lambda x, y: None, + UNLINK: None, + LINK: None, + SYMLINK_CONDA: lambda x, y: None, + UNLINKLINKTRANSACTION: UNLINKLINKTRANSACTION_CMD, + PROGRESSIVEFETCHEXTRACT: PROGRESSIVEFETCHEXTRACT_CMD, +} + + +OP_ORDER = ( + RM_FETCHED, + FETCH, + RM_EXTRACTED, + EXTRACT, + UNLINK, + LINK, +) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/misc.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/misc.py new file mode 100644 index 0000000000000000000000000000000000000000..b17cc665ec8cb68e173319f0203f12ba46cb23eb --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/misc.py @@ -0,0 +1,374 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Miscellaneous utility functions.""" + +from __future__ import annotations + +import os +import re +import shutil +from logging import getLogger +from os.path import abspath, dirname, exists, isdir, isfile, join, relpath +from typing import TYPE_CHECKING + +from .base.constants import EXPLICIT_MARKER +from .base.context import context +from .common.compat import on_mac, on_win, open_utf8 +from .common.io import dashlist +from .common.path import expand +from .common.url import is_url, join_url, path_to_url +from .core.index import Index +from .core.link import PrefixSetup, UnlinkLinkTransaction +from .core.package_cache_data import PackageCacheData, ProgressiveFetchExtract +from .core.prefix_data import PrefixData +from .deprecations import deprecated +from .exceptions import ( + DisallowedPackageError, + DryRunExit, + PackagesNotFoundError, + ParseError, + SpecNotFoundInPackageCache, +) +from .gateways.disk.delete import rm_rf +from .gateways.disk.link import islink, readlink, symlink +from .models.match_spec import ChannelMatch, MatchSpec +from .models.prefix_graph import PrefixGraph + +if TYPE_CHECKING: + from collections.abc import Iterable, Sequence + from typing import Any + + from .models.records import PackageCacheRecord, PackageRecord + + +log = getLogger(__name__) + + +def conda_installed_files(prefix, exclude_self_build=False): + """ + Return the set of files which have been installed (using conda) into + a given prefix. + """ + res = set() + for meta in PrefixData(prefix).iter_records(): + if exclude_self_build and "file_hash" in meta: + continue + res.update(set(meta.get("files", ()))) + return res + + +url_pat = re.compile( + r"(?:(?P.+)(?:[/\\]))?" + r"(?P[^/\\#]+(?:\.tar\.bz2|\.conda))" + r"(?:#(" + r"(?P[0-9a-f]{32})" + r"|((sha256:)?(?P[0-9a-f]{64}))" + r"))?$" +) + + +def _match_specs_from_explicit(specs: Iterable[str]) -> Iterable[MatchSpec]: + for spec in specs: + if spec == EXPLICIT_MARKER: + continue + + if not is_url(spec): + """ + # This does not work because url_to_path does not enforce Windows + # backslashes. Should it? Seems like a dangerous change to make but + # it would be cleaner. + expanded = expand(spec) + urled = path_to_url(expanded) + pathed = url_to_path(urled) + assert pathed == expanded + """ + spec = path_to_url(expand(spec)) + + # parse URL + m = url_pat.match(spec) + if m is None: + raise ParseError(f"Could not parse explicit URL: {spec}") + url_p, fn = m.group("url_p"), m.group("fn") + url = join_url(url_p, fn) + # url_p is everything but the tarball_basename and the checksum + checksums = {} + if md5 := m.group("md5"): + checksums["md5"] = md5 + if sha256 := m.group("sha256"): + checksums["sha256"] = sha256 + yield MatchSpec(url, **checksums) + + +def explicit( + specs: Iterable[str], + prefix: str, + verbose: bool = False, + force_extract: bool = True, + index: Any = None, + requested_specs: Sequence[str] | None = None, +) -> None: + package_cache_records = get_package_records_from_explicit(specs) + install_explicit_packages( + package_cache_records=package_cache_records, + prefix=prefix, + requested_specs=requested_specs, + ) + + +def install_explicit_packages( + package_cache_records: list[PackageRecord], + prefix: str, + requested_specs: Sequence[str] | None = None, +): + """Install a list of PackageRecords into a prefix""" + specs_pcrecs = tuple([rec.to_match_spec(), rec] for rec in package_cache_records) + + precs_to_remove = [] + prefix_data = PrefixData(prefix) + for q, (spec, pcrec) in enumerate(specs_pcrecs): + new_spec = MatchSpec(spec, name=pcrec.name) + specs_pcrecs[q][0] = new_spec + + prec = prefix_data.get(pcrec.name, None) + if prec: + # If we've already got matching specifications, then don't bother re-linking it + if next(prefix_data.query(new_spec), None): + specs_pcrecs[q][0] = None + else: + precs_to_remove.append(prec) + + # Record user-requested specs in history when provided, otherwise fall back to + # all processed specs for backwards compatibility + if requested_specs: + update_specs_for_history = tuple(MatchSpec(spec) for spec in requested_specs) + else: + update_specs_for_history = tuple(sp[0] for sp in specs_pcrecs if sp[0]) + + stp = PrefixSetup( + prefix, + precs_to_remove, + tuple(sp[1] for sp in specs_pcrecs if sp[0]), + (), + update_specs_for_history, + (), + ) + + txn = UnlinkLinkTransaction(stp) + if not context.json and not context.quiet: + txn.print_transaction_summary() + txn.execute() + + +def _get_package_record_from_specs(specs: list[str]) -> Iterable[PackageCacheRecord]: + """Given a list of specs, find the corresponding PackageCacheRecord. If + some PackageCacheRecords are missing, raise an error. + """ + specs_pcrecs = tuple( + [spec, next(PackageCacheData.query_all(spec), None)] for spec in specs + ) + + # Assert that every spec has a PackageCacheRecord + specs_with_missing_pcrecs = [ + str(spec) for spec, pcrec in specs_pcrecs if pcrec is None + ] + if specs_with_missing_pcrecs: + if len(specs_with_missing_pcrecs) == len(specs_pcrecs): + raise SpecNotFoundInPackageCache("No package cache records found") + else: + missing_precs_list = ", ".join(specs_with_missing_pcrecs) + raise SpecNotFoundInPackageCache( + f"Missing package cache records for: {missing_precs_list}" + ) + return [rec[1] for rec in specs_pcrecs] + + +def get_package_records_from_explicit(lines: list[str]) -> Iterable[PackageCacheRecord]: + """Given the lines from an explicit.txt, create the PackageRecords for each of the + specified packages. This may require downloading the package, if it does not already + exist in the package cache. + """ + # Extract the list of specs + fetch_specs = list(_match_specs_from_explicit(lines)) + + if context.dry_run: + raise DryRunExit() + + # Fetch the packages - if they are already cached nothing new will be downloaded + pfe = ProgressiveFetchExtract(fetch_specs) + pfe.execute() + + # Get the package records from the cache + return _get_package_record_from_specs(fetch_specs) + + +def walk_prefix(prefix, ignore_predefined_files=True, windows_forward_slashes=True): + """Return the set of all files in a given prefix directory.""" + res = set() + prefix = abspath(prefix) + ignore = { + "pkgs", + "envs", + "conda-bld", + "conda-meta", + ".conda_lock", + "users", + "LICENSE.txt", + "info", + "conda-recipes", + ".index", + ".unionfs", + ".nonadmin", + } + binignore = {"conda", "activate", "deactivate"} + if on_mac: + ignore.update({"python.app", "Launcher.app"}) + for fn in (entry.name for entry in os.scandir(prefix)): + if ignore_predefined_files and fn in ignore: + continue + if isfile(join(prefix, fn)): + res.add(fn) + continue + for root, dirs, files in os.walk(join(prefix, fn)): + should_ignore = ignore_predefined_files and root == join(prefix, "bin") + for fn2 in files: + if should_ignore and fn2 in binignore: + continue + res.add(relpath(join(root, fn2), prefix)) + for dn in dirs: + path = join(root, dn) + if islink(path): + res.add(relpath(path, prefix)) + + if on_win and windows_forward_slashes: + return {path.replace("\\", "/") for path in res} + else: + return res + + +def untracked(prefix, exclude_self_build=False): + """Return (the set) of all untracked files for a given prefix.""" + conda_files = conda_installed_files(prefix, exclude_self_build) + return { + path + for path in walk_prefix(prefix) - conda_files + if not ( + path.endswith("~") + or on_mac + and path.endswith(".DS_Store") + or path.endswith(".pyc") + and path[:-1] in conda_files + ) + } + + +@deprecated("25.9", "26.3", addendum="Use PrefixData.set_nonadmin()") +def touch_nonadmin(prefix): + """Creates $PREFIX/.nonadmin if sys.prefix/.nonadmin exists (on Windows).""" + if on_win and exists(join(context.root_prefix, ".nonadmin")): + if not isdir(prefix): + os.makedirs(prefix) + with open_utf8(join(prefix, ".nonadmin"), "w") as fo: + fo.write("") + + +def clone_env(prefix1, prefix2, verbose=True, quiet=False, index_args=None): + """Clone existing prefix1 into new prefix2.""" + untracked_files = untracked(prefix1) + drecs = {prec for prec in PrefixData(prefix1).iter_records()} + + # Resolve URLs for packages that do not have URLs + index = {} + unknowns = [prec for prec in drecs if not prec.get("url")] + notfound = [] + if unknowns: + index_args = index_args or {} + index_args["channels"] = index_args.pop("channel_urls") + index = Index(**index_args) + + for prec in unknowns: + spec = MatchSpec(name=prec.name, version=prec.version, build=prec.build) + precs = tuple(prec for prec in index.values() if spec.match(prec)) + if not precs: + notfound.append(spec) + elif len(precs) > 1: + drecs.remove(prec) + drecs.add(_get_best_prec_match(precs)) + else: + drecs.remove(prec) + drecs.add(precs[0]) + if notfound: + raise PackagesNotFoundError(notfound) + + # Assemble the URL and channel list + urls = {} + for prec in drecs: + urls[prec] = prec["url"] + + precs = tuple(PrefixGraph(urls).graph) + urls = [urls[prec] for prec in precs] + + disallowed = tuple(MatchSpec(s) for s in context.disallowed_packages) + for prec in precs: + if any(d.match(prec) for d in disallowed): + raise DisallowedPackageError(prec) + + if verbose: + print("Packages: %d" % len(precs)) + print("Files: %d" % len(untracked_files)) + + if context.dry_run: + raise DryRunExit() + + for f in untracked_files: + src = join(prefix1, f) + dst = join(prefix2, f) + dst_dir = dirname(dst) + if islink(dst_dir) or isfile(dst_dir): + rm_rf(dst_dir) + if not isdir(dst_dir): + os.makedirs(dst_dir) + if islink(src): + symlink(readlink(src), dst) + continue + + try: + with open_utf8(src, "rb") as fi: + data = fi.read() + except OSError: + continue + + try: + s = data.decode("utf-8") + s = s.replace(prefix1, prefix2) + data = s.encode("utf-8") + except UnicodeDecodeError: # data is binary + pass + + with open_utf8(dst, "wb") as fo: + fo.write(data) + shutil.copystat(src, dst) + + actions = explicit( + urls, + prefix2, + verbose=not quiet, + index=index, + force_extract=False, + ) + return actions, untracked_files + + +def _get_best_prec_match(precs): + if not precs: + raise ValueError("'precs' cannot be empty.") + for channel in context.channels: + channel_matcher = ChannelMatch(channel) + prec_matches = tuple( + prec for prec in precs if channel_matcher.match(prec.channel.name) + ) + if prec_matches: + break + else: + prec_matches = precs + log.warning("Multiple packages found: %s", dashlist(prec_matches)) + return prec_matches[0] diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/plan.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/plan.py new file mode 100644 index 0000000000000000000000000000000000000000..ce02d3e6e01468409ad30760cbf602a91057548c --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/plan.py @@ -0,0 +1,250 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +""" +Handle the planning of installs and their execution. + +NOTE: + conda.install uses canonical package names in its interface functions, + whereas conda.resolve uses package filenames, as those are used as index + keys. We try to keep fixes to this "impedance mismatch" local to this + module. +""" + +import sys +from collections import defaultdict +from logging import getLogger + +from boltons.setutils import IndexedSet + +from .base.constants import DEFAULTS_CHANNEL_NAME, UNKNOWN_CHANNEL +from .base.context import context, reset_context +from .common.constants import TRACE +from .common.io import dashlist, env_vars, time_recorder +from .common.iterators import groupby_to_dict as groupby +from .core.index import LAST_CHANNEL_URLS +from .core.link import PrefixSetup, UnlinkLinkTransaction +from .deprecations import deprecated +from .instructions import FETCH, LINK, SYMLINK_CONDA, UNLINK +from .models.channel import Channel, prioritize_channels +from .models.dist import Dist +from .models.enums import LinkType +from .models.match_spec import MatchSpec +from .models.records import PackageRecord +from .models.version import normalized_version +from .utils import human_bytes + +deprecated.module("25.9", "26.3") + +deprecated.constant( + "25.9", + "26.3", + "log", + getLogger(__name__), + addendum="Use builtin `logging` instead.", +) +deprecated.constant("25.9", "26.3", "sys", sys, addendum="Use builtin `sys` instead.") +del sys +deprecated.constant( + "25.9", + "26.3", + "defaultdict", + defaultdict, + addendum="Use builtin `collections.defaultdict` instead.", +) +del defaultdict +deprecated.constant( + "25.9", + "26.3", + "IndexedSet", + IndexedSet, + addendum="Use `boltons.setutils.IndexedSet` instead.", +) +del IndexedSet +deprecated.constant( + "25.9", + "26.3", + "DEFAULTS_CHANNEL_NAME", + DEFAULTS_CHANNEL_NAME, + addendum="Use `conda.base.constants.DEFAULTS_CHANNEL_NAME` instead.", +) +del DEFAULTS_CHANNEL_NAME +deprecated.constant( + "25.9", + "26.3", + "UNKNOWN_CHANNEL", + UNKNOWN_CHANNEL, + addendum="Use `conda.base.constants.UNKNOWN_CHANNEL` instead.", +) +del UNKNOWN_CHANNEL +deprecated.constant( + "25.9", + "26.3", + "context", + context, + addendum="Use `conda.base.context.context` instead.", +) +del context +deprecated.constant( + "25.9", + "26.3", + "reset_context", + reset_context, + addendum="Use `conda.base.context.reset_context` instead.", +) +del reset_context +deprecated.constant( + "25.9", + "26.3", + "TRACE", + TRACE, + addendum="Use `conda.common.constants.TRACE` instead.", +) +del TRACE +deprecated.constant( + "25.9", + "26.3", + "dashlist", + dashlist, + addendum="Use `conda.common.io.dashlist` instead.", +) +del dashlist +deprecated.constant( + "25.9", + "26.3", + "env_vars", + env_vars, + addendum="Use `conda.common.io.env_vars` instead.", +) +del env_vars +deprecated.constant( + "25.9", + "26.3", + "time_recorder", + time_recorder, + addendum="Use `conda.common.io.time_recorder` instead.", +) +del time_recorder +deprecated.constant( + "25.9", + "26.3", + "groupby", + groupby, + addendum="Use `conda.common.iterators.groupby_to_dict` instead.", +) +del groupby +deprecated.constant( + "25.9", + "26.3", + "LAST_CHANNEL_URLS", + LAST_CHANNEL_URLS, + addendum="Use `conda.core.index.LAST_CHANNEL_URLS` instead.", +) +del LAST_CHANNEL_URLS +deprecated.constant( + "25.9", + "26.3", + "PrefixSetup", + PrefixSetup, + addendum="Use `conda.core.link.PrefixSetup` instead.", +) +del PrefixSetup +deprecated.constant( + "25.9", + "26.3", + "UnlinkLinkTransaction", + UnlinkLinkTransaction, + addendum="Use `conda.core.link.UnlinkLinkTransaction` instead.", +) +del UnlinkLinkTransaction +deprecated.constant( + "25.9", + "26.3", + "FETCH", + FETCH, + addendum="Use `conda.instructions.FETCH` instead.", +) +del FETCH +deprecated.constant( + "25.9", "26.3", "LINK", LINK, addendum="Use `conda.instructions.LINK` instead." +) +del LINK +deprecated.constant( + "25.9", + "26.3", + "SYMLINK_CONDA", + SYMLINK_CONDA, + addendum="Use `conda.instructions.SYMLINK_CONDA` instead.", +) +del SYMLINK_CONDA +deprecated.constant( + "25.9", + "26.3", + "UNLINK", + UNLINK, + addendum="Use `conda.instructions.UNLINK` instead.", +) +del UNLINK +deprecated.constant( + "25.9", + "26.3", + "Channel", + Channel, + addendum="Use `conda.models.channel.Channel` instead.", +) +del Channel +deprecated.constant( + "25.9", + "26.3", + "prioritize_channels", + prioritize_channels, + addendum="Use `conda.models.channel.prioritize_channels` instead.", +) +del prioritize_channels +deprecated.constant( + "25.9", + "26.3", + "Dist", + Dist, + addendum="Use `conda.models.dist.Dist` instead.", +) +del Dist +deprecated.constant( + "25.9", + "26.3", + "LinkType", + LinkType, + addendum="Use `conda.models.enums.LinkType` instead.", +) +del LinkType +deprecated.constant( + "25.9", + "26.3", + "MatchSpec", + MatchSpec, + addendum="Use `conda.models.match_spec.MatchSpec` instead.", +) +del MatchSpec +deprecated.constant( + "25.9", + "26.3", + "PackageRecord", + PackageRecord, + addendum="Use `conda.models.records.PackageRecord` instead.", +) +del PackageRecord +deprecated.constant( + "25.9", + "26.3", + "normalized_version", + normalized_version, + addendum="Use `conda.models.version.normalized_version` instead.", +) +del normalized_version +deprecated.constant( + "25.9", + "26.3", + "human_bytes", + human_bytes, + addendum="Use `conda.utils.human_bytes` instead.", +) +del human_bytes diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/py.typed b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/py.typed new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/reporters.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/reporters.py new file mode 100644 index 0000000000000000000000000000000000000000..34e02d881084e66a3e471aebf4f6d077129da594 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/reporters.py @@ -0,0 +1,103 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +""" +Holds functions for output rendering in conda +""" + +from __future__ import annotations + +import logging +import sys +from functools import cache +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from contextlib import AbstractContextManager + +from .base.context import context +from .exceptions import CondaSystemExit, DryRunExit + +if TYPE_CHECKING: + from collections.abc import Callable + + from .plugins.types import ProgressBarBase, SpinnerBase + +logger = logging.getLogger(__name__) + + +@cache +def _get_render_func(style: str | None = None) -> Callable: + """ + Retrieves the render function to use + """ + backend = context.console + reporter = context.plugin_manager.get_reporter_backend(backend) + + renderer = reporter.renderer() + + if style is not None: + render_func = getattr(renderer, style, None) + if render_func is None: + raise AttributeError(f"'{style}' is not a valid reporter backend style") + else: + render_func = getattr(renderer, "render") + + return render_func + + +def render(data, style: str | None = None, **kwargs) -> None: + """ + Used to render output in conda + + The output will either be rendered as "json" or normal "console" output to stdout. + This function allows us to configure different reporter backends for these two types + of output. + """ + render_func = _get_render_func(style) + data_str = render_func(data, **kwargs) + sys.stdout.write(data_str) + + +def get_progress_bar(description: str, **kwargs) -> ProgressBarBase: + """ + Retrieve the progress bar for the currently configured reporter backend + """ + return _get_render_func("progress_bar")(description, **kwargs) + + +def get_progress_bar_context_manager() -> AbstractContextManager: + """ + Retrieve progress bar context manager to use with registered reporter + """ + return _get_render_func("progress_bar_context_manager")() + + +def get_spinner(message: str, fail_message: str = "failed\n") -> SpinnerBase: + """ + Retrieve spinner to use with registered reporter + """ + return _get_render_func("spinner")(message, fail_message) + + +def confirm_yn(message: str = "Proceed", default="yes", dry_run=None) -> bool: + """ + Display a "yes/no" confirmation input + """ + if (dry_run is None and context.dry_run) or dry_run: + raise DryRunExit() + + if context.always_yes: + return True + + try: + choice = _get_render_func("prompt")( + message, choices=("yes", "no"), default=default + ) + + except KeyboardInterrupt: # pragma: no cover + raise CondaSystemExit("\nOperation aborted. Exiting.") + + if choice == "no": + raise CondaSystemExit("Exiting.") + + return True diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/resolve.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/resolve.py new file mode 100644 index 0000000000000000000000000000000000000000..42ee26e0c77a75b45d6c8db2450137234a8039e6 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/resolve.py @@ -0,0 +1,1677 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Low-level SAT solver wrapper/interface for the classic solver. + +See conda.core.solver.Solver for the high-level API. +""" + +from __future__ import annotations + +import copy +import itertools +from collections import defaultdict, deque +from functools import cache +from logging import DEBUG, getLogger +from typing import TYPE_CHECKING + +from frozendict import frozendict +from tqdm import tqdm + +from .auxlib.decorators import memoizemethod +from .base.constants import MAX_CHANNEL_PRIORITY, ChannelPriority, SatSolverChoice +from .base.context import context +from .common.compat import on_win +from .common.io import dashlist, time_recorder +from .common.iterators import groupby_to_dict as groupby +from .common.logic import ( + TRUE, + Clauses, + PycoSatSolver, + PyCryptoSatSolver, + PySatSolver, + minimal_unsatisfiable_subset, +) +from .common.toposort import toposort +from .exceptions import ( + CondaDependencyError, + InvalidSpec, + ResolvePackageNotFound, + UnsatisfiableError, +) +from .models.channel import Channel +from .models.enums import NoarchType, PackageType +from .models.match_spec import MatchSpec +from .models.records import PackageRecord +from .models.version import VersionOrder + +if TYPE_CHECKING: + from collections.abc import Iterable + +log = getLogger(__name__) +stdoutlog = getLogger("conda.stdoutlog") + +# used in conda build +Unsatisfiable = UnsatisfiableError +ResolvePackageNotFound = ResolvePackageNotFound + +_sat_solvers = { + SatSolverChoice.PYCOSAT: PycoSatSolver, + SatSolverChoice.PYCRYPTOSAT: PyCryptoSatSolver, + SatSolverChoice.PYSAT: PySatSolver, +} + + +@cache +def _get_sat_solver_cls(sat_solver_choice=SatSolverChoice.PYCOSAT): + def try_out_solver(sat_solver): + c = Clauses(sat_solver=sat_solver) + required = {c.new_var(), c.new_var()} + c.Require(c.And, *required) + solution = set(c.sat()) + if not required.issubset(solution): + raise RuntimeError(f"Wrong SAT solution: {solution}. Required: {required}") + + sat_solver = _sat_solvers[sat_solver_choice] + try: + try_out_solver(sat_solver) + except Exception as e: + log.warning( + "Could not run SAT solver through interface '%s'.", sat_solver_choice + ) + log.debug("SAT interface error due to: %s", e, exc_info=True) + else: + log.debug("Using SAT solver interface '%s'.", sat_solver_choice) + return sat_solver + for sat_solver in _sat_solvers.values(): + try: + try_out_solver(sat_solver) + except Exception as e: + log.debug( + "Attempted SAT interface '%s' but unavailable due to: %s", + sat_solver_choice, + e, + ) + else: + log.debug("Falling back to SAT solver interface '%s'.", sat_solver_choice) + return sat_solver + raise CondaDependencyError( + "Cannot run solver. No functioning SAT implementations available." + ) + + +def exactness_and_number_of_deps(resolve_obj, ms): + """Sorting key to emphasize packages that have more strict + requirements. More strict means the reduced index can be reduced + more, so we want to consider these more constrained deps earlier in + reducing the index. + """ + if ms.strictness == 3: + prec = resolve_obj.find_matches(ms) + value = 3 + if prec: + for dep in prec[0].depends: + value += MatchSpec(dep).strictness + else: + value = ms.strictness + return value + + +class Resolve: + def __init__(self, index, processed=False, channels=()): + self.index = index + + self.channels = channels + self._channel_priorities_map = ( + self._make_channel_priorities(channels) if channels else {} + ) + self._channel_priority = context.channel_priority + self._solver_ignore_timestamps = context.solver_ignore_timestamps + + groups = groupby(lambda x: x.name, index.values()) + trackers = defaultdict(list) + + for name in groups: + unmanageable_precs = [prec for prec in groups[name] if prec.is_unmanageable] + if unmanageable_precs: + log.debug("restricting to unmanageable packages: %s", name) + groups[name] = unmanageable_precs + tf_precs = (prec for prec in groups[name] if prec.track_features) + for prec in tf_precs: + for feature_name in prec.track_features: + trackers[feature_name].append(prec) + + self.groups = groups # dict[package_name, list[PackageRecord]] + self.trackers = trackers # dict[track_feature, set[PackageRecord]] + self._cached_find_matches = {} # dict[MatchSpec, set[PackageRecord]] + self.ms_depends_ = {} # dict[PackageRecord, list[MatchSpec]] + self._reduced_index_cache = {} + self._pool_cache = {} + self._strict_channel_cache = {} + + self._system_precs = { + _ + for _ in index + if ( + hasattr(_, "package_type") + and _.package_type == PackageType.VIRTUAL_SYSTEM + ) + } + + # sorting these in reverse order is effectively prioritizing + # constraint behavior from newer packages. It is applying broadening + # reduction based on the latest packages, which may reduce the space + # more, because more modern packages utilize constraints in more sane + # ways (for example, using run_exports in conda-build 3) + for name, group in self.groups.items(): + self.groups[name] = sorted(group, key=self.version_key, reverse=True) + + def __hash__(self): + return ( + super().__hash__() + ^ hash(frozenset(self.channels)) + ^ hash(frozendict(self._channel_priorities_map)) + ^ hash(self._channel_priority) + ^ hash(self._solver_ignore_timestamps) + ^ hash(frozendict((k, tuple(v)) for k, v in self.groups.items())) + ^ hash(frozendict((k, tuple(v)) for k, v in self.trackers.items())) + ^ hash(frozendict((k, tuple(v)) for k, v in self.ms_depends_.items())) + ) + + def default_filter(self, features=None, filter=None): + if filter is None: + filter = {} + else: + filter.clear() + + filter.update( + {PackageRecord.feature(name): False for name in self.trackers.keys()} + ) + if features: + filter.update({PackageRecord.feature(name): True for name in features}) + return filter + + def valid(self, spec_or_prec, filter, optional=True): + """Tests if a package, MatchSpec, or a list of both has satisfiable + dependencies, assuming cyclic dependencies are always valid. + + Args: + spec_or_prec: a package record, a MatchSpec, or an iterable of these. + filter: a dictionary of (fkey,valid) pairs, used to consider a subset + of dependencies, and to eliminate repeated searches. + optional: if True (default), do not enforce optional specifications + when considering validity. If False, enforce them. + + Returns: + True if the full set of dependencies can be satisfied; False otherwise. + If filter is supplied and update is True, it will be updated with the + search results. + """ + + def v_(spec): + return v_ms_(spec) if isinstance(spec, MatchSpec) else v_fkey_(spec) + + def v_ms_(ms): + return ( + optional + and ms.optional + or any(v_fkey_(fkey) for fkey in self.find_matches(ms)) + ) + + def v_fkey_(prec): + val = filter.get(prec) + if val is None: + filter[prec] = True + try: + depends = self.ms_depends(prec) + except InvalidSpec: + val = filter[prec] = False + else: + val = filter[prec] = all(v_ms_(ms) for ms in depends) + return val + + result = v_(spec_or_prec) + return result + + def valid2(self, spec_or_prec, filter_out, optional=True): + def is_valid(_spec_or_prec): + if isinstance(_spec_or_prec, MatchSpec): + return is_valid_spec(_spec_or_prec) + else: + return is_valid_prec(_spec_or_prec) + + @memoizemethod + def is_valid_spec(_spec): + return ( + optional + and _spec.optional + or any(is_valid_prec(_prec) for _prec in self.find_matches(_spec)) + ) + + def is_valid_prec(prec): + val = filter_out.get(prec) + if val is None: + filter_out[prec] = False + try: + has_valid_deps = all( + is_valid_spec(ms) for ms in self.ms_depends(prec) + ) + except InvalidSpec: + val = filter_out[prec] = "invalid dep specs" + else: + val = filter_out[prec] = ( + False if has_valid_deps else "invalid depends specs" + ) + return not val + + return is_valid(spec_or_prec) + + def invalid_chains(self, spec, filter, optional=True): + """Constructs a set of 'dependency chains' for invalid specs. + + A dependency chain is a tuple of MatchSpec objects, starting with + the requested spec, proceeding down the dependency tree, ending at + a specification that cannot be satisfied. + + Args: + spec: a package key or MatchSpec + filter: a dictionary of (prec, valid) pairs to be used when + testing for package validity. + + Returns: + A tuple of tuples, empty if the MatchSpec is valid. + """ + + def chains_(spec, names): + if spec.name in names: + return + names.add(spec.name) + if self.valid(spec, filter, optional): + return + precs = self.find_matches(spec) + found = False + + conflict_deps = set() + for prec in precs: + for m2 in self.ms_depends(prec): + for x in chains_(m2, names): + found = True + yield (spec,) + x + else: + conflict_deps.add(m2) + if not found: + conflict_groups = groupby(lambda x: x.name, conflict_deps) + for group in conflict_groups.values(): + yield (spec,) + MatchSpec.union(group) + + return chains_(spec, set()) + + def verify_specs(self, specs): + """Perform a quick verification that specs and dependencies are reasonable. + + Args: + specs: An iterable of strings or MatchSpec objects to be tested. + + Returns: + Nothing, but if there is a conflict, an error is thrown. + + Note that this does not attempt to resolve circular dependencies. + """ + non_tf_specs = [] + bad_deps = [] + feature_names = set() + for ms in specs: + _feature_names = ms.get_exact_value("track_features") + if _feature_names: + feature_names.update(_feature_names) + else: + non_tf_specs.append(ms) + bad_deps.extend( + (spec,) + for spec in non_tf_specs + if (not spec.optional and not self.find_matches(spec)) + ) + if bad_deps: + raise ResolvePackageNotFound(bad_deps) + return tuple(non_tf_specs), feature_names + + def _classify_bad_deps( + self, bad_deps, specs_to_add, history_specs, strict_channel_priority + ): + classes = { + "python": set(), + "request_conflict_with_history": set(), + "direct": set(), + "virtual_package": set(), + } + specs_to_add = {MatchSpec(_) for _ in specs_to_add or []} + history_specs = {MatchSpec(_) for _ in history_specs or []} + for chain in bad_deps: + # sometimes chains come in as strings + if ( + len(chain) > 1 + and chain[-1].name == "python" + and not any(_.name == "python" for _ in specs_to_add) + and any(_[0] for _ in bad_deps if _[0].name == "python") + ): + python_first_specs = [_[0] for _ in bad_deps if _[0].name == "python"] + if python_first_specs: + python_spec = python_first_specs[0] + if not ( + set(self.find_matches(python_spec)) + & set(self.find_matches(chain[-1])) + ): + classes["python"].add( + ( + tuple([chain[0], chain[-1]]), + str(MatchSpec(python_spec, target=None)), + ) + ) + elif chain[-1].name.startswith("__"): + version = [_ for _ in self._system_precs if _.name == chain[-1].name] + virtual_package_version = ( + version[0].version if version else "not available" + ) + classes["virtual_package"].add((tuple(chain), virtual_package_version)) + elif chain[0] in specs_to_add: + match = False + for spec in history_specs: + if spec.name == chain[-1].name: + classes["request_conflict_with_history"].add( + (tuple(chain), str(MatchSpec(spec, target=None))) + ) + match = True + + if not match: + classes["direct"].add( + (tuple(chain), str(MatchSpec(chain[0], target=None))) + ) + else: + if len(chain) > 1 or any( + len(c) >= 1 and c[0] == chain[0] for c in bad_deps + ): + classes["direct"].add( + (tuple(chain), str(MatchSpec(chain[0], target=None))) + ) + + if classes["python"]: + # filter out plain single-entry python conflicts. The python section explains these. + classes["direct"] = [ + _ + for _ in classes["direct"] + if _[1].startswith("python ") or len(_[0]) > 1 + ] + return classes + + def find_matches_with_strict(self, ms, strict_channel_priority): + matches = self.find_matches(ms) + if not strict_channel_priority: + return matches + sole_source_channel_name = self._get_strict_channel(ms.name) + return tuple(f for f in matches if f.channel.name == sole_source_channel_name) + + def find_conflicts(self, specs, specs_to_add=None, history_specs=None): + if context.unsatisfiable_hints: + if not context.json: + print( + "\nFound conflicts! Looking for incompatible packages.\n" + "This can take several minutes. Press CTRL-C to abort." + ) + bad_deps = self.build_conflict_map(specs, specs_to_add, history_specs) + else: + bad_deps = {} + strict_channel_priority = context.channel_priority == ChannelPriority.STRICT + raise UnsatisfiableError(bad_deps, strict=strict_channel_priority) + + def breadth_first_search_for_dep_graph( + self, root_spec, target_name, dep_graph, num_targets=1 + ): + """Return shorted path from root_spec to target_name""" + queue = [] + queue.append([root_spec]) + visited = [] + target_paths = [] + while queue: + path = queue.pop(0) + node = path[-1] + if node in visited: + continue + visited.append(node) + if node.name == target_name: + if len(target_paths) == 0: + target_paths.append(path) + if len(target_paths[-1]) == len(path): + last_spec = MatchSpec.union((path[-1], target_paths[-1][-1]))[0] + target_paths[-1][-1] = last_spec + else: + target_paths.append(path) + + found_all_targets = len(target_paths) == num_targets and any( + len(_) != len(path) for _ in queue + ) + if len(queue) == 0 or found_all_targets: + return target_paths + sub_graph = dep_graph + for p in path[0:-1]: + sub_graph = sub_graph[p] + children = [_ for _ in sub_graph.get(node, {})] + if children is None: + continue + for adj in children: + if len(target_paths) < num_targets: + new_path = list(path) + new_path.append(adj) + queue.append(new_path) + return target_paths + + def build_graph_of_deps(self, spec): + dep_graph = {spec: {}} + all_deps = set() + queue = [[spec]] + while queue: + path = queue.pop(0) + sub_graph = dep_graph + for p in path: + sub_graph = sub_graph[p] + parent_node = path[-1] + matches = self.find_matches(parent_node) + for mat in matches: + if len(mat.depends) > 0: + for i in mat.depends: + new_node = MatchSpec(i) + sub_graph.update({new_node: {}}) + all_deps.add(new_node) + new_path = list(path) + new_path.append(new_node) + if len(new_path) <= context.unsatisfiable_hints_check_depth: + queue.append(new_path) + return dep_graph, all_deps + + def build_conflict_map(self, specs, specs_to_add=None, history_specs=None): + """Perform a deeper analysis on conflicting specifications, by attempting + to find the common dependencies that might be the cause of conflicts. + + Args: + specs: An iterable of strings or MatchSpec objects to be tested. + It is assumed that the specs conflict. + + Returns: + bad_deps: A list of lists of bad deps + + Strategy: + If we're here, we know that the specs conflict. This could be because: + - One spec conflicts with another; e.g. + ['numpy 1.5*', 'numpy >=1.6'] + - One spec conflicts with a dependency of another; e.g. + ['numpy 1.5*', 'scipy 0.12.0b1'] + - Each spec depends on *the same package* but in a different way; e.g., + ['A', 'B'] where A depends on numpy 1.5, and B on numpy 1.6. + Technically, all three of these cases can be boiled down to the last + one if we treat the spec itself as one of the "dependencies". There + might be more complex reasons for a conflict, but this code only + considers the ones above. + + The purpose of this code, then, is to identify packages (like numpy + above) that all of the specs depend on *but in different ways*. We + then identify the dependency chains that lead to those packages. + """ + # if only a single package matches the spec use the packages depends + # rather than the spec itself + strict_channel_priority = context.channel_priority == ChannelPriority.STRICT + + specs = set(specs) | (specs_to_add or set()) + # Remove virtual packages + specs = {spec for spec in specs if not spec.name.startswith("__")} + if len(specs) == 1: + matches = self.find_matches(next(iter(specs))) + if len(matches) == 1: + specs = set(self.ms_depends(matches[0])) + specs.update({_.to_match_spec() for _ in self._system_precs}) + for spec in specs: + self._get_package_pool((spec,)) + + dep_graph = {} + dep_list = {} + with tqdm( + total=len(specs), + desc="Building graph of deps", + leave=False, + disable=context.json, + ) as t: + for spec in specs: + t.set_description(f"Examining {spec}") + t.update() + dep_graph_for_spec, all_deps_for_spec = self.build_graph_of_deps(spec) + dep_graph.update(dep_graph_for_spec) + if dep_list.get(spec.name): + dep_list[spec.name].append(spec) + else: + dep_list[spec.name] = [spec] + for dep in all_deps_for_spec: + if dep_list.get(dep.name): + dep_list[dep.name].append(spec) + else: + dep_list[dep.name] = [spec] + + chains = [] + conflicting_pkgs_pkgs = {} + for k, v in dep_list.items(): + set_v = frozenset(v) + # Packages probably conflicts if many specs depend on it + if len(set_v) > 1: + if conflicting_pkgs_pkgs.get(set_v) is None: + conflicting_pkgs_pkgs[set_v] = [k] + else: + conflicting_pkgs_pkgs[set_v].append(k) + # Conflict if required virtual package is not present + elif k.startswith("__") and any(s for s in set_v if s.name != k): + conflicting_pkgs_pkgs[set_v] = [k] + + with tqdm( + total=len(specs), + desc="Determining conflicts", + leave=False, + disable=context.json, + ) as t: + for roots, nodes in conflicting_pkgs_pkgs.items(): + t.set_description( + "Examining conflict for {}".format(" ".join(_.name for _ in roots)) + ) + t.update() + lroots = [_ for _ in roots] + current_shortest_chain = [] + shortest_node = None + requested_spec_unsat = frozenset(nodes).intersection( + {_.name for _ in roots} + ) + if requested_spec_unsat: + chains.append([_ for _ in roots if _.name in requested_spec_unsat]) + shortest_node = chains[-1][0] + for root in roots: + if root != chains[0][0]: + search_node = shortest_node.name + num_occurances = dep_list[search_node].count(root) + c = self.breadth_first_search_for_dep_graph( + root, search_node, dep_graph, num_occurances + ) + chains.extend(c) + else: + for node in nodes: + num_occurances = dep_list[node].count(lroots[0]) + chain = self.breadth_first_search_for_dep_graph( + lroots[0], node, dep_graph, num_occurances + ) + chains.extend(chain) + if len(current_shortest_chain) == 0 or len(chain) < len( + current_shortest_chain + ): + current_shortest_chain = chain + shortest_node = node + for root in lroots[1:]: + num_occurances = dep_list[shortest_node].count(root) + c = self.breadth_first_search_for_dep_graph( + root, shortest_node, dep_graph, num_occurances + ) + chains.extend(c) + + bad_deps = self._classify_bad_deps( + chains, specs_to_add, history_specs, strict_channel_priority + ) + return bad_deps + + def _get_strict_channel(self, package_name): + channel_name = None + try: + channel_name = self._strict_channel_cache[package_name] + except KeyError: + if package_name in self.groups: + all_channel_names = { + prec.channel.name for prec in self.groups[package_name] + } + by_cp = { + self._channel_priorities_map.get(cn, 1): cn + for cn in all_channel_names + } + highest_priority = sorted(by_cp)[ + 0 + ] # highest priority is the lowest number + channel_name = self._strict_channel_cache[package_name] = by_cp[ + highest_priority + ] + return channel_name + + @memoizemethod + def _broader(self, ms, specs_by_name): + """Prevent introduction of matchspecs that broaden our selection of choices.""" + if not specs_by_name: + return False + return ms.strictness < specs_by_name[0].strictness + + def _get_package_pool(self, specs): + specs = frozenset(specs) + if specs in self._pool_cache: + pool = self._pool_cache[specs] + else: + pool = self.get_reduced_index(specs) + grouped_pool = groupby(lambda x: x.name, pool) + pool = {k: set(v) for k, v in grouped_pool.items()} + self._pool_cache[specs] = pool + return pool + + @time_recorder(module_name=__name__) + def get_reduced_index( + self, explicit_specs, sort_by_exactness=True, exit_on_conflict=False + ): + strict_channel_priority = context.channel_priority == ChannelPriority.STRICT + + cache_key = strict_channel_priority, tuple(explicit_specs) + if cache_key in self._reduced_index_cache: + return self._reduced_index_cache[cache_key] + + if log.isEnabledFor(DEBUG): + log.debug( + "Retrieving packages for: %s", + dashlist(sorted(str(s) for s in explicit_specs)), + ) + + explicit_specs, features = self.verify_specs(explicit_specs) + filter_out = { + prec: False if val else "feature not enabled" + for prec, val in self.default_filter(features).items() + } + snames = set() + top_level_spec = None + cp_filter_applied = set() # values are package names + if sort_by_exactness: + # prioritize specs that are more exact. Exact specs will evaluate to 3, + # constrained specs will evaluate to 2, and name only will be 1 + explicit_specs = sorted( + list(explicit_specs), + key=lambda x: (exactness_and_number_of_deps(self, x), x.dist_str()), + reverse=True, + ) + # tuple because it needs to be hashable + explicit_specs = tuple(explicit_specs) + + explicit_spec_package_pool = {} + for s in explicit_specs: + explicit_spec_package_pool[s.name] = explicit_spec_package_pool.get( + s.name, set() + ) | set(self.find_matches(s)) + + def filter_group(_specs): + # all _specs should be for the same package name + name = next(iter(_specs)).name + group = self.groups.get(name, ()) + + # implement strict channel priority + if group and strict_channel_priority and name not in cp_filter_applied: + sole_source_channel_name = self._get_strict_channel(name) + for prec in group: + if prec.channel.name != sole_source_channel_name: + filter_out[prec] = "removed due to strict channel priority" + cp_filter_applied.add(name) + + # Prune packages that don't match any of the patterns, + # have unsatisfiable dependencies, or conflict with the explicit specs + nold = nnew = 0 + for prec in group: + if not filter_out.setdefault(prec, False): + nold += 1 + if (not self.match_any(_specs, prec)) or ( + explicit_spec_package_pool.get(name) + and prec not in explicit_spec_package_pool[name] + ): + filter_out[prec] = ( + f"incompatible with required spec {top_level_spec}" + ) + continue + unsatisfiable_dep_specs = set() + for ms in self.ms_depends(prec): + if not ms.optional and not any( + rec + for rec in self.find_matches(ms) + if not filter_out.get(rec, False) + ): + unsatisfiable_dep_specs.add(ms) + if unsatisfiable_dep_specs: + filter_out[prec] = "unsatisfiable dependencies {}".format( + " ".join(str(s) for s in unsatisfiable_dep_specs) + ) + continue + filter_out[prec] = False + nnew += 1 + + reduced = nnew < nold + if reduced: + log.debug("%s: pruned from %d -> %d" % (name, nold, nnew)) + if any(ms.optional for ms in _specs): + return reduced + elif nnew == 0: + # Indicates that a conflict was found; we can exit early + return None + + # Perform the same filtering steps on any dependencies shared across + # *all* packages in the group. Even if just one of the packages does + # not have a particular dependency, it must be ignored in this pass. + # Otherwise, we might do more filtering than we should---and it is + # better to have extra packages here than missing ones. + if reduced or name not in snames: + snames.add(name) + + _dep_specs = groupby( + lambda s: s.name, + ( + dep_spec + for prec in group + if not filter_out.get(prec, False) + for dep_spec in self.ms_depends(prec) + if not dep_spec.optional + ), + ) + _dep_specs.pop("*", None) # discard track_features specs + + for deps_name, deps in sorted( + _dep_specs.items(), key=lambda x: any(_.optional for _ in x[1]) + ): + if len(deps) >= nnew: + res = filter_group(set(deps)) + if res: + reduced = True + elif res is None: + # Indicates that a conflict was found; we can exit early + return None + + return reduced + + # Iterate on pruning until no progress is made. We've implemented + # what amounts to "double-elimination" here; packages get one additional + # chance after their first "False" reduction. This catches more instances + # where one package's filter affects another. But we don't have to be + # perfect about this, so performance matters. + pruned_to_zero = set() + for _ in range(2): + snames.clear() + slist = deque(explicit_specs) + while slist: + s = slist.popleft() + if filter_group([s]): + slist.append(s) + else: + pruned_to_zero.add(s) + + if pruned_to_zero and exit_on_conflict: + return {} + + # Determine all valid packages in the dependency graph + reduced_index2 = { + prec: prec for prec in (PackageRecord.feature(name) for name in features) + } + specs_by_name_seed = {} + for s in explicit_specs: + specs_by_name_seed[s.name] = specs_by_name_seed.get(s.name, []) + [s] + for explicit_spec in explicit_specs: + add_these_precs2 = tuple( + prec + for prec in self.find_matches(explicit_spec) + if prec not in reduced_index2 and self.valid2(prec, filter_out) + ) + + if strict_channel_priority and add_these_precs2: + strict_channel_name = self._get_strict_channel(add_these_precs2[0].name) + + add_these_precs2 = tuple( + prec + for prec in add_these_precs2 + if prec.channel.name == strict_channel_name + ) + reduced_index2.update((prec, prec) for prec in add_these_precs2) + + for pkg in add_these_precs2: + # what we have seen is only relevant within the context of a single package + # that is picked up because of an explicit spec. We don't want the + # broadening check to apply across packages at the explicit level; only + # at the level of deps below that explicit package. + seen_specs = set() + specs_by_name = copy.deepcopy(specs_by_name_seed) + + dep_specs = set(self.ms_depends(pkg)) + for dep in dep_specs: + specs = specs_by_name.get(dep.name, []) + if dep not in specs and ( + not specs or dep.strictness >= specs[0].strictness + ): + specs.insert(0, dep) + specs_by_name[dep.name] = specs + + while dep_specs: + # used for debugging + # size_index = len(reduced_index2) + # specs_added = [] + ms = dep_specs.pop() + seen_specs.add(ms) + for dep_pkg in ( + _ for _ in self.find_matches(ms) if _ not in reduced_index2 + ): + if not self.valid2(dep_pkg, filter_out): + continue + + # expand the reduced index if not using strict channel priority, + # or if using it and this package is in the appropriate channel + if not strict_channel_priority or ( + self._get_strict_channel(dep_pkg.name) + == dep_pkg.channel.name + ): + reduced_index2[dep_pkg] = dep_pkg + + # recurse to deps of this dep + new_specs = set(self.ms_depends(dep_pkg)) - seen_specs + for new_ms in new_specs: + # We do not pull packages into the reduced index due + # to a track_features dependency. Remember, a feature + # specifies a "soft" dependency: it must be in the + # environment, but it is not _pulled_ in. The SAT + # logic doesn't do a perfect job of capturing this + # behavior, but keeping these packags out of the + # reduced index helps. Of course, if _another_ + # package pulls it in by dependency, that's fine. + if "track_features" not in new_ms and not self._broader( + new_ms, + tuple(specs_by_name.get(new_ms.name, ())), + ): + dep_specs.add(new_ms) + # if new_ms not in dep_specs: + # specs_added.append(new_ms) + else: + seen_specs.add(new_ms) + # debugging info - see what specs are bringing in the largest blobs + # if size_index != len(reduced_index2): + # print("MS {} added {} pkgs to index".format(ms, + # len(reduced_index2) - size_index)) + # if specs_added: + # print("MS {} added {} specs to further examination".format(ms, + # specs_added)) + + reduced_index2 = frozendict(reduced_index2) + self._reduced_index_cache[cache_key] = reduced_index2 + return reduced_index2 + + def match_any(self, mss, prec): + return any(ms.match(prec) for ms in mss) + + def find_matches(self, spec: MatchSpec) -> tuple[PackageRecord]: + res = self._cached_find_matches.get(spec, None) + if res is not None: + return res + + spec_name = spec.get_exact_value("name") + if spec_name: + candidate_precs = self.groups.get(spec_name, ()) + elif spec.get_exact_value("track_features"): + feature_names = spec.get_exact_value("track_features") + candidate_precs = itertools.chain.from_iterable( + self.trackers.get(feature_name, ()) for feature_name in feature_names + ) + else: + candidate_precs = self.index.values() + + res = tuple(p for p in candidate_precs if spec.match(p)) + self._cached_find_matches[spec] = res + return res + + def ms_depends(self, prec: PackageRecord) -> list[MatchSpec]: + deps = self.ms_depends_.get(prec) + if deps is None: + deps = [MatchSpec(d) for d in prec.combined_depends] + deps.extend(MatchSpec(track_features=feat) for feat in prec.features) + self.ms_depends_[prec] = deps + return deps + + def version_key(self, prec, vtype=None): + channel = prec.channel + channel_priority = self._channel_priorities_map.get( + channel.name, 1 + ) # TODO: ask @mcg1969 why the default value is 1 here + valid = 1 if channel_priority < MAX_CHANNEL_PRIORITY else 0 + version_comparator = VersionOrder(prec.get("version", "")) + build_number = prec.get("build_number", 0) + build_string = prec.get("build") + noarch = -int(prec.subdir == "noarch") + if self._channel_priority != ChannelPriority.DISABLED: + vkey = [valid, -channel_priority, version_comparator, build_number, noarch] + else: + vkey = [valid, version_comparator, -channel_priority, build_number, noarch] + if self._solver_ignore_timestamps: + vkey.append(build_string) + else: + vkey.extend((prec.get("timestamp", 0), build_string)) + return vkey + + @staticmethod + def _make_channel_priorities(channels: Iterable[Channel | str]) -> dict[str, int]: + priorities_map = {} + """Make a dictionary of channel priorities. + + Maps channel names to priorities, e.g.: + + .. code-block:: pycon + + >>> Resolve._make_channel_priorities(["conda-canary", "defaults", "conda-forge"]) + { + 'conda-canary': 0, + 'pkgs/main': 1, + 'pkgs/r': 2, + 'conda-forge': 3, + } + + Compare with ``conda.models.channel.prioritize_channels``. + """ + channel_names = ( + channel.name for name in channels for channel in Channel(name).channels + ) + for priority_counter, channel_name in enumerate(channel_names): + if channel_name in priorities_map: + continue + priorities_map[channel_name] = min( + priority_counter, MAX_CHANNEL_PRIORITY - 1 + ) + return priorities_map + + def get_pkgs(self, ms, emptyok=False): # pragma: no cover + # legacy method for conda-build + ms = MatchSpec(ms) + precs = self.find_matches(ms) + if not precs and not emptyok: + raise ResolvePackageNotFound([(ms,)]) + return sorted(precs, key=self.version_key) + + @staticmethod + def to_sat_name(val): + # val can be a PackageRecord or MatchSpec + if isinstance(val, PackageRecord): + return val.dist_str() + elif isinstance(val, MatchSpec): + return "@s@" + str(val) + ("?" if val.optional else "") + else: + raise NotImplementedError() + + @staticmethod + def to_feature_metric_id(prec_dist_str, feat): + return f"@fm@{prec_dist_str}@{feat}" + + def push_MatchSpec(self, C, spec): + spec = MatchSpec(spec) + sat_name = self.to_sat_name(spec) + m = C.from_name(sat_name) + if m is not None: + # the spec has already been pushed onto the clauses stack + return sat_name + + simple = spec._is_single() + nm = spec.get_exact_value("name") + tf = frozenset( + _tf + for _tf in (f.strip() for f in spec.get_exact_value("track_features") or ()) + if _tf + ) + + if nm: + tgroup = libs = self.groups.get(nm, []) + elif tf: + if len(tf) != 1: + raise RuntimeError + k = next(iter(tf)) + tgroup = libs = self.trackers.get(k, []) + else: + tgroup = libs = self.index.keys() + simple = False + if not simple: + libs = [fkey for fkey in tgroup if spec.match(fkey)] + if len(libs) == len(tgroup): + if spec.optional: + m = TRUE + elif not simple: + ms2 = MatchSpec(track_features=tf) if tf else MatchSpec(nm) + m = C.from_name(self.push_MatchSpec(C, ms2)) + if m is None: + sat_names = [self.to_sat_name(prec) for prec in libs] + if spec.optional: + ms2 = MatchSpec(track_features=tf) if tf else MatchSpec(nm) + sat_names.append("!" + self.to_sat_name(ms2)) + m = C.Any(sat_names) + C.name_var(m, sat_name) + return sat_name + + @time_recorder(module_name=__name__) + def gen_clauses(self): + C = Clauses(sat_solver=_get_sat_solver_cls(context.sat_solver)) + for name, group in self.groups.items(): + group = [self.to_sat_name(prec) for prec in group] + # Create one variable for each package + for sat_name in group: + C.new_var(sat_name) + # Create one variable for the group + m = C.new_var(self.to_sat_name(MatchSpec(name))) + + # Exactly one of the package variables, OR + # the negation of the group variable, is true + C.Require(C.ExactlyOne, group + [C.Not(m)]) + + # If a package is installed, its dependencies must be as well + for prec in self.index.values(): + nkey = C.Not(self.to_sat_name(prec)) + for ms in self.ms_depends(prec): + # Virtual packages can't be installed, we ignore them + if not ms.name.startswith("__"): + C.Require(C.Or, nkey, self.push_MatchSpec(C, ms)) + + if log.isEnabledFor(DEBUG): + log.debug( + "gen_clauses returning with clause count: %d", C.get_clause_count() + ) + return C + + def generate_spec_constraints(self, C, specs): + result = [(self.push_MatchSpec(C, ms),) for ms in specs] + if log.isEnabledFor(DEBUG): + log.debug( + "generate_spec_constraints returning with clause count: %d", + C.get_clause_count(), + ) + return result + + def generate_feature_count(self, C): + result = { + self.push_MatchSpec(C, MatchSpec(track_features=name)): 1 + for name in self.trackers.keys() + } + if log.isEnabledFor(DEBUG): + log.debug( + "generate_feature_count returning with clause count: %d", + C.get_clause_count(), + ) + return result + + def generate_update_count(self, C, specs): + return { + "!" + ms.target: 1 for ms in specs if ms.target and C.from_name(ms.target) + } + + def generate_feature_metric(self, C): + eq = {} # a C.minimize() objective: dict[varname, coeff] + # Given a pair (prec, feature), assign a "1" score IF: + # - The prec is installed + # - The prec does NOT require the feature + # - At least one package in the group DOES require the feature + # - A package that tracks the feature is installed + for name, group in self.groups.items(): + prec_feats = {self.to_sat_name(prec): set(prec.features) for prec in group} + active_feats = set.union(*prec_feats.values()).intersection(self.trackers) + for feat in active_feats: + clause_id_for_feature = self.push_MatchSpec( + C, MatchSpec(track_features=feat) + ) + for prec_sat_name, features in prec_feats.items(): + if feat not in features: + feature_metric_id = self.to_feature_metric_id( + prec_sat_name, feat + ) + C.name_var( + C.And(prec_sat_name, clause_id_for_feature), + feature_metric_id, + ) + eq[feature_metric_id] = 1 + return eq + + def generate_removal_count(self, C, specs): + return {"!" + self.push_MatchSpec(C, ms.name): 1 for ms in specs} + + def generate_install_count(self, C, specs): + return {self.push_MatchSpec(C, ms.name): 1 for ms in specs if ms.optional} + + def generate_package_count(self, C, missing): + return {self.push_MatchSpec(C, nm): 1 for nm in missing} + + def generate_version_metrics(self, C, specs, include0=False): + # each of these are weights saying how well packages match the specs + # format for each: a C.minimize() objective: dict[varname, coeff] + eqc = {} # channel + eqv = {} # version + eqb = {} # build number + eqa = {} # arch/noarch + eqt = {} # timestamp + + sdict = {} # dict[package_name, PackageRecord] + + for s in specs: + s = MatchSpec(s) # needed for testing + sdict.setdefault(s.name, []) + # # TODO: this block is important! can't leave it commented out + # rec = sdict.setdefault(s.name, []) + # if s.target: + # dist = Dist(s.target) + # if dist in self.index: + # if self.index[dist].get('priority', 0) < MAX_CHANNEL_PRIORITY: + # rec.append(dist) + + for name, targets in sdict.items(): + pkgs = [(self.version_key(p), p) for p in self.groups.get(name, [])] + pkey = None + # keep in mind that pkgs is already sorted according to version_key (a tuple, + # so composite sort key). Later entries in the list are, by definition, + # greater in some way, so simply comparing with != suffices. + for version_key, prec in pkgs: + if targets and any(prec == t for t in targets): + continue + if pkey is None: + ic = iv = ib = it = ia = 0 + # valid package, channel priority + elif pkey[0] != version_key[0] or pkey[1] != version_key[1]: + ic += 1 + iv = ib = it = ia = 0 + # version + elif pkey[2] != version_key[2]: + iv += 1 + ib = it = ia = 0 + # build number + elif pkey[3] != version_key[3]: + ib += 1 + it = ia = 0 + # arch/noarch + elif pkey[4] != version_key[4]: + ia += 1 + it = 0 + elif not self._solver_ignore_timestamps and pkey[5] != version_key[5]: + it += 1 + + prec_sat_name = self.to_sat_name(prec) + if ic or include0: + eqc[prec_sat_name] = ic + if iv or include0: + eqv[prec_sat_name] = iv + if ib or include0: + eqb[prec_sat_name] = ib + if ia or include0: + eqa[prec_sat_name] = ia + if it or include0: + eqt[prec_sat_name] = it + pkey = version_key + + return eqc, eqv, eqb, eqa, eqt + + def dependency_sort( + self, + must_have: dict[str, PackageRecord], + ) -> list[PackageRecord]: + if not isinstance(must_have, dict): + raise TypeError("'must_have' must be a dict.") + + digraph = {} # dict[str, set[dependent_package_names]] + for package_name, prec in must_have.items(): + if prec in self.index: + digraph[package_name] = {ms.name for ms in self.ms_depends(prec)} + + # There are currently at least three special cases to be aware of. + # 1. The `toposort()` function, called below, contains special case code to remove + # any circular dependency between python and pip. + # 2. conda/plan.py has special case code for menuinst + # Always link/unlink menuinst first/last on windows in case a subsequent + # package tries to import it to create/remove a shortcut + # 3. On windows, python noarch packages need an implicit dependency on conda added, if + # conda is in the list of packages for the environment. Python noarch packages + # that have entry points use conda's own conda.exe python entry point binary. If conda + # is going to be updated during an operation, the unlink / link order matters. + # See issue #6057. + + if on_win and "conda" in digraph: + for package_name, dist in must_have.items(): + record = self.index.get(prec) + if hasattr(record, "noarch") and record.noarch == NoarchType.python: + digraph[package_name].add("conda") + + sorted_keys = toposort(digraph) + must_have = must_have.copy() + # Take all of the items in the sorted keys + # Don't fail if the key does not exist + result = [must_have.pop(key) for key in sorted_keys if key in must_have] + # Take any key that were not sorted + result.extend(must_have.values()) + return result + + def environment_is_consistent(self, installed): + log.debug("Checking if the current environment is consistent") + if not installed: + return None, [] + sat_name_map = {} # dict[sat_name, PackageRecord] + specs = [] + for prec in installed: + sat_name_map[self.to_sat_name(prec)] = prec + specs.append(MatchSpec(f"{prec.name} {prec.version} {prec.build}")) + r2 = Resolve({prec: prec for prec in installed}, True, channels=self.channels) + C = r2.gen_clauses() + constraints = r2.generate_spec_constraints(C, specs) + solution = C.sat(constraints) + return bool(solution) + + def get_conflicting_specs(self, specs, explicit_specs): + if not specs: + return () + + all_specs = set(specs) | set(explicit_specs) + reduced_index = self.get_reduced_index(all_specs) + + # Check if satisfiable + def mysat(specs, add_if=False): + constraints = r2.generate_spec_constraints(C, specs) + return C.sat(constraints, add_if) + + if reduced_index: + r2 = Resolve(reduced_index, True, channels=self.channels) + C = r2.gen_clauses() + solution = mysat(all_specs, True) + else: + solution = None + + if solution: + final_unsat_specs = () + elif context.unsatisfiable_hints: + r2 = Resolve(self.index, True, channels=self.channels) + C = r2.gen_clauses() + # This first result is just a single unsatisfiable core. There may be several. + final_unsat_specs = tuple( + minimal_unsatisfiable_subset( + specs, sat=mysat, explicit_specs=explicit_specs + ) + ) + else: + final_unsat_specs = None + return final_unsat_specs + + def bad_installed(self, installed, new_specs): + log.debug("Checking if the current environment is consistent") + if not installed: + return None, [] + sat_name_map = {} # dict[sat_name, PackageRecord] + specs = [] + for prec in installed: + sat_name_map[self.to_sat_name(prec)] = prec + specs.append(MatchSpec(f"{prec.name} {prec.version} {prec.build}")) + new_index = {prec: prec for prec in sat_name_map.values()} + name_map = {p.name: p for p in new_index} + if "python" in name_map and "pip" not in name_map: + python_prec = new_index[name_map["python"]] + if "pip" in python_prec.depends: + # strip pip dependency from python if not installed in environment + new_deps = [d for d in python_prec.depends if d != "pip"] + python_prec.depends = new_deps + r2 = Resolve(new_index, True, channels=self.channels) + C = r2.gen_clauses() + constraints = r2.generate_spec_constraints(C, specs) + solution = C.sat(constraints) + limit = xtra = None + if not solution or xtra: + + def get_(name, snames): + if name not in snames: + snames.add(name) + for fn in self.groups.get(name, []): + for ms in self.ms_depends(fn): + get_(ms.name, snames) + + # New addition: find the largest set of installed packages that + # are consistent with each other, and include those in the + # list of packages to maintain consistency with + snames = set() + eq_optional_c = r2.generate_removal_count(C, specs) + solution, _ = C.minimize(eq_optional_c, C.sat()) + snames.update( + sat_name_map[sat_name]["name"] + for sat_name in (C.from_index(s) for s in solution) + if sat_name and sat_name[0] != "!" and "@" not in sat_name + ) + # Existing behavior: keep all specs and their dependencies + for spec in new_specs: + get_(MatchSpec(spec).name, snames) + if len(snames) < len(sat_name_map): + limit = snames + xtra = [ + rec + for sat_name, rec in sat_name_map.items() + if rec["name"] not in snames + ] + log.debug( + "Limiting solver to the following packages: %s", ", ".join(limit) + ) + if xtra: + log.debug("Packages to be preserved: %s", xtra) + return limit, xtra + + def restore_bad(self, pkgs, preserve): + if preserve: + sdict = {prec.name: prec for prec in pkgs} + pkgs.extend(p for p in preserve if p.name not in sdict) + + def install_specs(self, specs, installed, update_deps=True): + specs = list(map(MatchSpec, specs)) + snames = {s.name for s in specs} + log.debug("Checking satisfiability of current install") + limit, preserve = self.bad_installed(installed, specs) + for prec in installed: + if prec not in self.index: + continue + name, version, build = prec.name, prec.version, prec.build + schannel = prec.channel.canonical_name + if name in snames or limit is not None and name not in limit: + continue + # If update_deps=True, set the target package in MatchSpec so that + # the solver can minimize the version change. If update_deps=False, + # fix the version and build so that no change is possible. + if update_deps: + # TODO: fix target here + spec = MatchSpec(name=name, target=prec.dist_str()) + else: + spec = MatchSpec( + name=name, version=version, build=build, channel=schannel + ) + specs.insert(0, spec) + return tuple(specs), preserve + + def install(self, specs, installed=None, update_deps=True, returnall=False): + specs, preserve = self.install_specs(specs, installed or [], update_deps) + pkgs = [] + if specs: + pkgs = self.solve(specs, returnall=returnall, _remove=False) + self.restore_bad(pkgs, preserve) + return pkgs + + def remove_specs(self, specs, installed): + nspecs = [] + # There's an imperfect thing happening here. "specs" nominally contains + # a list of package names or track_feature values to be removed. But + # because of add_defaults_to_specs it may also contain version constraints + # like "python 2.7*", which are *not* asking for python to be removed. + # We need to separate these two kinds of specs here. + for s in map(MatchSpec, specs): + # Since '@' is an illegal version number, this ensures that all of + # these matches will never match an actual package. Combined with + # optional=True, this has the effect of forcing their removal. + if s._is_single(): + nspecs.append(MatchSpec(s, version="@", optional=True)) + else: + nspecs.append(MatchSpec(s, optional=True)) + snames = {s.name for s in nspecs if s.name} + limit, _ = self.bad_installed(installed, nspecs) + preserve = [] + for prec in installed: + nm, ver = prec.name, prec.version + if nm in snames: + continue + elif limit is not None: + preserve.append(prec) + else: + # TODO: fix target here + nspecs.append( + MatchSpec( + name=nm, + version=">=" + ver if ver else None, + optional=True, + target=prec.dist_str(), + ) + ) + return nspecs, preserve + + def remove(self, specs, installed): + specs, preserve = self.remove_specs(specs, installed) + pkgs = self.solve(specs, _remove=True) + self.restore_bad(pkgs, preserve) + return pkgs + + @time_recorder(module_name=__name__) + def solve( + self, + specs: list, + returnall: bool = False, + _remove=False, + specs_to_add=None, + history_specs=None, + should_retry_solve=False, + ) -> list[PackageRecord]: + if specs and not isinstance(specs[0], MatchSpec): + specs = tuple(MatchSpec(_) for _ in specs) + + specs = set(specs) + if log.isEnabledFor(DEBUG): + dlist = dashlist( + str("%i: %s target=%s optional=%s" % (i, s, s.target, s.optional)) + for i, s in enumerate(specs) + ) + log.debug("Solving for: %s", dlist) + + if not specs: + return () + + # Find the compliant packages + log.debug("Solve: Getting reduced index of compliant packages") + len0 = len(specs) + + reduced_index = self.get_reduced_index( + specs, exit_on_conflict=not context.unsatisfiable_hints + ) + if not reduced_index: + # something is intrinsically unsatisfiable - either not found or + # not the right version + not_found_packages = set() + wrong_version_packages = set() + for s in specs: + if not self.find_matches(s): + if s.name in self.groups: + wrong_version_packages.add(s) + else: + not_found_packages.add(s) + if not_found_packages: + raise ResolvePackageNotFound(not_found_packages) + elif wrong_version_packages: + raise UnsatisfiableError( + [[d] for d in wrong_version_packages], chains=False + ) + if should_retry_solve: + # We don't want to call find_conflicts until our last try. + # This jumps back out to conda/cli/install.py, where the + # retries happen + raise UnsatisfiableError({}) + else: + self.find_conflicts(specs, specs_to_add, history_specs) + + # Check if satisfiable + log.debug("Solve: determining satisfiability") + + def mysat(specs, add_if=False): + constraints = r2.generate_spec_constraints(C, specs) + return C.sat(constraints, add_if) + + # Return a solution of packages + def clean(sol): + return [ + q + for q in (C.from_index(s) for s in sol) + if q and q[0] != "!" and "@" not in q + ] + + def is_converged(solution): + """Determine if the SAT problem has converged to a single solution. + + This is determined by testing for a SAT solution with the current + clause set and a clause in which at least one of the packages in + the current solution is excluded. If a solution exists the problem + has not converged as multiple solutions still exist. + """ + psolution = clean(solution) + nclause = tuple(C.Not(C.from_name(q)) for q in psolution) + if C.sat((nclause,), includeIf=False) is None: + return True + return False + + r2 = Resolve(reduced_index, True, channels=self.channels) + C = r2.gen_clauses() + solution = mysat(specs, True) + if not solution: + if should_retry_solve: + # we don't want to call find_conflicts until our last try + raise UnsatisfiableError({}) + else: + self.find_conflicts(specs, specs_to_add, history_specs) + + speco = [] # optional packages + specr = [] # requested packages + speca = [] # all other packages + specm = set(r2.groups) # missing from specs + for k, s in enumerate(specs): + if s.name in specm: + specm.remove(s.name) + if not s.optional: + (speca if s.target or k >= len0 else specr).append(s) + elif any(r2.find_matches(s)): + s = MatchSpec(s.name, optional=True, target=s.target) + speco.append(s) + speca.append(s) + speca.extend(MatchSpec(s) for s in specm) + + if log.isEnabledFor(DEBUG): + log.debug("Requested specs: %s", dashlist(sorted(str(s) for s in specr))) + log.debug("Optional specs: %s", dashlist(sorted(str(s) for s in speco))) + log.debug("All other specs: %s", dashlist(sorted(str(s) for s in speca))) + log.debug("missing specs: %s", dashlist(sorted(str(s) for s in specm))) + + # Removed packages: minimize count + log.debug("Solve: minimize removed packages") + if _remove: + eq_optional_c = r2.generate_removal_count(C, speco) + solution, obj7 = C.minimize(eq_optional_c, solution) + log.debug("Package removal metric: %d", obj7) + + # Requested packages: maximize versions + log.debug("Solve: maximize versions of requested packages") + eq_req_c, eq_req_v, eq_req_b, eq_req_a, eq_req_t = r2.generate_version_metrics( + C, specr + ) + solution, obj3a = C.minimize(eq_req_c, solution) + solution, obj3 = C.minimize(eq_req_v, solution) + log.debug("Initial package channel/version metric: %d/%d", obj3a, obj3) + + # Track features: minimize feature count + log.debug("Solve: minimize track_feature count") + eq_feature_count = r2.generate_feature_count(C) + solution, obj1 = C.minimize(eq_feature_count, solution) + log.debug("Track feature count: %d", obj1) + + # Featured packages: minimize number of featureless packages + # installed when a featured alternative is feasible. + # For example, package name foo exists with two built packages. One with + # 'track_features: 'feat1', and one with 'track_features': 'feat2'. + # The previous "Track features" minimization pass has chosen 'feat1' for the + # environment, but not 'feat2'. In this case, the 'feat2' version of foo is + # considered "featureless." + eq_feature_metric = r2.generate_feature_metric(C) + solution, obj2 = C.minimize(eq_feature_metric, solution) + log.debug("Package misfeature count: %d", obj2) + + # Requested packages: maximize builds + log.debug("Solve: maximize build numbers of requested packages") + solution, obj4 = C.minimize(eq_req_b, solution) + log.debug("Initial package build metric: %d", obj4) + + # prefer arch packages where available for requested specs + log.debug("Solve: prefer arch over noarch for requested packages") + solution, noarch_obj = C.minimize(eq_req_a, solution) + log.debug("Noarch metric: %d", noarch_obj) + + # Optional installations: minimize count + if not _remove: + log.debug("Solve: minimize number of optional installations") + eq_optional_install = r2.generate_install_count(C, speco) + solution, obj49 = C.minimize(eq_optional_install, solution) + log.debug("Optional package install metric: %d", obj49) + + # Dependencies: minimize the number of packages that need upgrading + log.debug("Solve: minimize number of necessary upgrades") + eq_u = r2.generate_update_count(C, speca) + solution, obj50 = C.minimize(eq_u, solution) + log.debug("Dependency update count: %d", obj50) + + # Remaining packages: maximize versions, then builds + log.debug( + "Solve: maximize versions and builds of indirect dependencies. " + "Prefer arch over noarch where equivalent." + ) + eq_c, eq_v, eq_b, eq_a, eq_t = r2.generate_version_metrics(C, speca) + solution, obj5a = C.minimize(eq_c, solution) + solution, obj5 = C.minimize(eq_v, solution) + solution, obj6 = C.minimize(eq_b, solution) + solution, obj6a = C.minimize(eq_a, solution) + log.debug( + "Additional package channel/version/build/noarch metrics: %d/%d/%d/%d", + obj5a, + obj5, + obj6, + obj6a, + ) + + # Prune unnecessary packages + log.debug("Solve: prune unnecessary packages") + eq_c = r2.generate_package_count(C, specm) + solution, obj7 = C.minimize(eq_c, solution, trymax=True) + log.debug("Weak dependency count: %d", obj7) + + if not is_converged(solution): + # Maximize timestamps + eq_t.update(eq_req_t) + solution, obj6t = C.minimize(eq_t, solution) + log.debug("Timestamp metric: %d", obj6t) + + log.debug("Looking for alternate solutions") + nsol = 1 + psolutions = [] + psolution = clean(solution) + psolutions.append(psolution) + while True: + nclause = tuple(C.Not(C.from_name(q)) for q in psolution) + solution = C.sat((nclause,), True) + if solution is None: + break + nsol += 1 + if nsol > 10: + log.debug("Too many solutions; terminating") + break + psolution = clean(solution) + psolutions.append(psolution) + + if nsol > 1: + psols2 = list(map(set, psolutions)) + common = set.intersection(*psols2) + diffs = [sorted(set(sol) - common) for sol in psols2] + if not context.json: + stdoutlog.info( + "\nWarning: {} possible package resolutions " + "(only showing differing packages):{}{}".format( + ">10" if nsol > 10 else nsol, + dashlist(", ".join(diff) for diff in diffs), + "\n ... and others" if nsol > 10 else "", + ) + ) + + # def stripfeat(sol): + # return sol.split('[')[0] + + new_index = {self.to_sat_name(prec): prec for prec in self.index.values()} + + if returnall: + if len(psolutions) > 1: + raise RuntimeError() + # TODO: clean up this mess + # return [sorted(Dist(stripfeat(dname)) for dname in psol) for psol in psolutions] + # return [sorted((new_index[sat_name] for sat_name in psol), key=lambda x: x.name) + # for psol in psolutions] + + # return sorted(Dist(stripfeat(dname)) for dname in psolutions[0]) + return sorted( + (new_index[sat_name] for sat_name in psolutions[0]), key=lambda x: x.name + ) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/utils.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..b67316fe3ac54f0bc6697d07ff89c1956877a358 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda/utils.py @@ -0,0 +1,370 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Utility functions.""" + +from __future__ import annotations + +import logging +import re +import sys +from functools import cache, wraps +from os import environ +from os.path import abspath, basename, dirname, isfile, join +from pathlib import Path +from shutil import which + +from . import CondaError +from .auxlib.compat import Utf8NamedTemporaryFile, shlex_split_unicode +from .common.compat import isiterable, on_win +from .common.url import path_to_url +from .deprecations import deprecated + +log = logging.getLogger(__name__) + + +@deprecated( + "25.3", + "26.3", + addendum="Use `conda.common.path.unix_path_to_win` instead.", +) +def unix_path_to_win(path, root_prefix=""): + """Convert a path or :-separated string of paths into a Windows representation + Does not add cygdrive. If you need that, set root_prefix to "/cygdrive" + """ + if len(path) > 1 and (";" in path or (path[1] == ":" and path.count(":") == 1)): + # already a windows path + return path.replace("/", "\\") + path_re = root_prefix + r'(/[a-zA-Z]/(?:(?![:\s]/)[^:*?"<>])*)' + + def _translation(found_path): + group = found_path.group(0) + return "{}:{}".format( + group[len(root_prefix) + 1], + group[len(root_prefix) + 2 :].replace("/", "\\"), + ) + + translation = re.sub(path_re, _translation, path) + translation = re.sub( + ":([a-zA-Z]):\\\\", lambda match: ";" + match.group(0)[1] + ":\\", translation + ) + return translation + + +deprecated.constant("25.3", "26.3", "unix_path_to_win", unix_path_to_win) +del unix_path_to_win + + +def human_bytes(n): + """ + Return the number of bytes n in more human readable form. + + Examples: + >>> human_bytes(42) + '42 B' + >>> human_bytes(1042) + '1 KB' + >>> human_bytes(10004242) + '9.5 MB' + >>> human_bytes(100000004242) + '93.13 GB' + """ + if n < 1024: + return "%d B" % n + k = n / 1024 + if k < 1024: + return "%d KB" % round(k) + m = k / 1024 + if m < 1024: + return f"{m:.1f} MB" + g = m / 1024 + return f"{g:.2f} GB" + + +# ########################################## +# put back because of conda build +# ########################################## + +urlpath = url_path = path_to_url + + +@cache +def sys_prefix_unfollowed(): + """Since conda is installed into non-root environments as a symlink only + and because sys.prefix follows symlinks, this function can be used to + get the 'unfollowed' sys.prefix. + + This value is usually the same as the prefix of the environment into + which conda has been symlinked. An example of when this is necessary + is when conda looks for external sub-commands in find_commands.py + """ + try: + frame = next(iter(sys._current_frames().values())) + while frame.f_back: + frame = frame.f_back + code = frame.f_code + filename = code.co_filename + unfollowed = dirname(dirname(filename)) + except Exception: + return sys.prefix + return unfollowed + + +def quote_for_shell(*arguments): + """Properly quote arguments for command line passing. + + For POSIX uses `shlex.join`, for Windows uses a custom implementation to properly escape + metacharacters. + + :param arguments: Arguments to quote. + :type arguments: list of str + :return: Quoted arguments. + :rtype: str + """ + # [backport] Support passing in a list of strings or args of string. + if len(arguments) == 1 and isiterable(arguments[0]): + arguments = arguments[0] + + return _args_join(arguments) + + +if on_win: + # https://ss64.com/nt/syntax-esc.html + # https://docs.microsoft.com/en-us/archive/blogs/twistylittlepassagesallalike/everyone-quotes-command-line-arguments-the-wrong-way + + _RE_UNSAFE = re.compile(r'["%\s^<>&|]') + _RE_DBL = re.compile(r'(["%])') + + def _args_join(args): + """Return a shell-escaped string from *args*.""" + + def quote(s): + # derived from shlex.quote + if not s: + return '""' + # if any unsafe chars are present we must quote + if not _RE_UNSAFE.search(s): + return s + # double escape (" -> "") + s = _RE_DBL.sub(r"\1\1", s) + # quote entire string + return f'"{s}"' + + return " ".join(quote(arg) for arg in args) + +else: + from shlex import join as _args_join + + +# Ensures arguments are a tuple or a list. Strings are converted +# by shlex_split_unicode() which is bad; we warn about it or else +# we assert (and fix the code). +def massage_arguments(arguments, errors="assert"): + # For reference and in-case anything breaks .. + # .. one of the places (run_command in conda_env/utils.py) this + # gets called from used to do this too: + # + # def escape_for_winpath(p): + # return p.replace('\\', '\\\\') + # + # if not isinstance(arguments, list): + # arguments = list(map(escape_for_winpath, arguments)) + + if isinstance(arguments, str): + if errors == "assert": + # This should be something like 'conda programming bug' + raise RuntimeError("Please ensure arguments are not strings") + else: + arguments = shlex_split_unicode(arguments) + log.warning( + "Please ensure arguments is not a string; " + "used `shlex_split_unicode()` on it" + ) + + if not isiterable(arguments): + arguments = (arguments,) + + if any(isiterable(arg) for arg in arguments): + raise ValueError("Individual arguments must not be iterable") + arguments = list(arguments) + + return arguments + + +def wrap_subprocess_call( + root_prefix, + prefix, + dev_mode, + debug_wrapper_scripts, + arguments, + use_system_tmp_path=False, +): + arguments = massage_arguments(arguments) + if not use_system_tmp_path: + tmp_prefix = abspath(join(prefix, ".tmp")) + else: + tmp_prefix = None + script_caller = None + multiline = False + if len(arguments) == 1 and "\n" in arguments[0]: + multiline = True + if on_win: + comspec = get_comspec() # fail early with KeyError if undefined + if dev_mode: + from . import CONDA_PACKAGE_ROOT + + conda_bat = join(CONDA_PACKAGE_ROOT, "shell", "condabin", "conda.bat") + else: + conda_bat = environ.get( + "CONDA_BAT", abspath(join(root_prefix, "condabin", "conda.bat")) + ) + with Utf8NamedTemporaryFile( + mode="w", prefix=tmp_prefix, suffix=".bat", delete=False + ) as fh: + silencer = "" if debug_wrapper_scripts else "@" + fh.write(f"{silencer}ECHO OFF\n") + fh.write(f"{silencer}SET PYTHONIOENCODING=utf-8\n") + fh.write(f"{silencer}SET PYTHONUTF8=1\n") + fh.write( + f'{silencer}FOR /F "tokens=2 delims=:." %%A in (\'chcp\') do for %%B in (%%A) do set "_CONDA_OLD_CHCP=%%B"\n' + ) + fh.write(f"{silencer}chcp 65001 > NUL\n") + if dev_mode: + from . import CONDA_SOURCE_ROOT + + fh.write(f"{silencer}SET CONDA_DEV=1\n") + # In dev mode, conda is really: + # 'python -m conda' + # *with* PYTHONPATH set. + fh.write(f"{silencer}SET PYTHONPATH={CONDA_SOURCE_ROOT}\n") + fh.write(f"{silencer}SET CONDA_EXE={sys.executable}\n") + fh.write(f"{silencer}SET _CE_M=-m\n") + fh.write(f"{silencer}SET _CE_CONDA=conda\n") + if debug_wrapper_scripts: + fh.write("echo *** environment before *** 1>&2\n") + fh.write("SET 1>&2\n") + # Not sure there is any point in backing this up, nothing will get called with it reset + # after all! + # fh.write("@FOR /F \"tokens=100\" %%F IN ('chcp') DO @SET CONDA_OLD_CHCP=%%F\n") + # fh.write('@chcp 65001>NUL\n') + fh.write(f'{silencer}CALL "{conda_bat}" activate "{prefix}"\n') + fh.write(f"{silencer}IF %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%\n") + if debug_wrapper_scripts: + fh.write("echo *** environment after *** 1>&2\n") + fh.write("SET 1>&2\n") + if multiline: + # No point silencing the first line. If that's what's wanted then + # it needs doing for each line and the caller may as well do that. + fh.write(f"{arguments[0]}\n") + else: + if any("\n" in arg for arg in arguments): + raise NotImplementedError( + "Support for scripts where arguments contain newlines not implemented.\n" + ".. requires writing the script to an external file and knowing how to " + "transform the command-line (e.g. `python -c args` => `python file`) " + "in a tool dependent way, or attempting something like:\n" + ".. https://stackoverflow.com/a/15032476 (adds unacceptable escaping" + "requirements)" + ) + fh.write(f"{silencer}{quote_for_shell(*arguments)}\n") + fh.write(f"{silencer}IF %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%\n") + fh.write(f"{silencer}chcp %_CONDA_OLD_CHCP%>NUL\n") + script_caller = fh.name + command_args = [comspec, "/d", "/c", script_caller] + else: + shell_path = which("bash") or which("sh") + if shell_path is None: + raise Exception("No compatible shell found!") + + # During tests, we sometimes like to have a temp env with e.g. an old python in it + # and have it run tests against the very latest development sources. For that to + # work we need extra smarts here, we want it to be instead: + if dev_mode: + conda_exe = [abspath(join(root_prefix, "bin", "python")), "-m", "conda"] + dev_arg = "--dev" + dev_args = [dev_arg] + else: + conda_exe = [ + environ.get("CONDA_EXE", abspath(join(root_prefix, "bin", "conda"))) + ] + dev_arg = "" + dev_args = [] + with Utf8NamedTemporaryFile(mode="w", prefix=tmp_prefix, delete=False) as fh: + if dev_mode: + from . import CONDA_SOURCE_ROOT + + fh.write(">&2 export PYTHONPATH=" + CONDA_SOURCE_ROOT + "\n") + hook_quoted = quote_for_shell(*conda_exe, "shell.posix", "hook", *dev_args) + if debug_wrapper_scripts: + fh.write(">&2 echo '*** environment before ***'\n>&2 env\n") + fh.write(f'>&2 echo "$({hook_quoted})"\n') + fh.write(f'eval "$({hook_quoted})"\n') + fh.write(f"conda activate {dev_arg} {quote_for_shell(prefix)}\n") + if debug_wrapper_scripts: + fh.write(">&2 echo '*** environment after ***'\n>&2 env\n") + if multiline: + # The ' '.join() is pointless since mutliline is only True when there's 1 arg + # still, if that were to change this would prevent breakage. + fh.write("{}\n".format(" ".join(arguments))) + else: + fh.write(f"{quote_for_shell(*arguments)}\n") + script_caller = fh.name + if debug_wrapper_scripts: + command_args = [shell_path, "-x", script_caller] + else: + command_args = [shell_path, script_caller] + + return script_caller, command_args + + +def get_comspec(): + """Returns COMSPEC from envvars. + + Ensures COMSPEC envvar is set to cmd.exe, if not attempt to find it. + + :raises KeyError: COMSPEC is undefined and cannot be found. + :returns: COMSPEC value. + :rtype: str + """ + if basename(environ.get("COMSPEC", "")).lower() != "cmd.exe": + for comspec in ( + # %SystemRoot%\System32\cmd.exe + environ.get("SystemRoot") + and join(environ["SystemRoot"], "System32", "cmd.exe"), + # %windir%\System32\cmd.exe + environ.get("windir") and join(environ["windir"], "System32", "cmd.exe"), + ): + if comspec and isfile(comspec): + environ["COMSPEC"] = comspec + break + else: + log.warning( + "cmd.exe could not be found. Looked in SystemRoot and windir env vars.\n" + ) + + # fails with KeyError if still undefined + return environ["COMSPEC"] + + +def ensure_dir_exists(func): + """ + Ensures that the directory exists for functions returning + a Path object containing a directory + """ + + @wraps(func) + def wrapper(*args, **kwargs): + result = func(*args, **kwargs) + + if isinstance(result, Path): + try: + result.mkdir(parents=True, exist_ok=True) + except OSError as exc: + raise CondaError( + "Error encountered while attempting to create cache directory." + f"\n Directory: {result}" + f"\n Exception: {exc}" + ) + + return result + + return wrapper diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda_env/README.md b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda_env/README.md new file mode 100644 index 0000000000000000000000000000000000000000..eabe15a8365bc305c14411caf7d18cef4b4391de --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda_env/README.md @@ -0,0 +1,90 @@ +# conda-env + +Provides the `conda env` interface to Conda environments. + +## Installing + +`conda env` is included in `conda` itself. + +## Usage + +All of the usage is documented via the `--help` flag. + +```bash +$ conda env --help +usage: conda-env [-h] {create,export,list,remove,update,config} ... + +positional arguments: + {create,export,list,remove,update,config} + create Create an environment based on an environment file + export Export a given environment + list List the Conda environments + remove Remove an environment + update Update the current environment based on environment file + config Configure a conda environment + +optional arguments: + -h, --help Show this help message and exit. +``` + + +## `environment.yml` + +conda-env allows creating environments using the `environment.yml` +specification file. This allows you to specify a name, channels to use when +creating the environment, and the dependencies. For example, to create an +environment named `stats` with numpy and pandas, create an `environment.yml` +file with this as the contents: + +```yaml +name: stats +dependencies: + - numpy + - pandas +``` + +Then run this from the command line: + +```bash +$ conda env create +Fetching package metadata: ... +Solving package specifications: .Linking packages ... +[ COMPLETE ] |#################################################| 100% +# +# To activate this environment, use: +# $ conda activate stats +# +# To deactivate this environment, use: +# $ conda deactivate +# +``` + +Your output might vary a little bit, depending on whether you have the packages +in your local package cache. + +You can explicitly provide an environment spec file using `-f` or `--file` +and the name of the file you would like to use. + +The default channels can be excluded by adding `nodefaults` to the list of +channels. This is equivalent to passing the `--override-channels` option +to most `conda` commands, and is like `defaults` in the `.condarc` +channel configuration but with the reverse logic. + +## Environment file example + +```yaml +name: stats +channels: + - javascript +dependencies: + - python=3.4 # or 2.7 if you are feeling nostalgic + - bokeh=0.9.2 + - numpy=1.9.* + - nodejs=0.10.* + - flask + - pip + - pip: + - Flask-Testing +``` + +**Recommendation:** Always create your `environment.yml` file by hand. diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda_env/__init__.py b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda_env/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..4bdaacf082c9ba5a0d0b8c285c4776f423b354e0 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/conda_env/__init__.py @@ -0,0 +1,6 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +from conda import __version__ # noqa: F401 +from conda.deprecations import deprecated + +deprecated.module("25.9", "26.3") diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/xontrib/conda.xsh b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/xontrib/conda.xsh new file mode 100644 index 0000000000000000000000000000000000000000..2b99af6e0605b9fd8a225fb6ced2b343786f7088 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/lib/python3.13/site-packages/xontrib/conda.xsh @@ -0,0 +1,217 @@ +$CONDA_EXE = '/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/conda' +$_CONDA_EXE = '/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/conda' +try: + del $_CE_M +except KeyError: + pass +try: + del $_CE_CONDA +except KeyError: + pass +$CONDA_PYTHON_EXE = '/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/python' +$_CONDA_ROOT = '/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p' + +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +# Much of this forked from https://github.com/gforsyth/xonda +# Copyright (c) 2016, Gil Forsyth, All rights reserved. +# Original code licensed under BSD-3-Clause. + +try: + # xonsh >= 0.18.0 + from xonsh.lib.lazyasd import lazyobject +except: + # xonsh < 0.18.0 + from xonsh.lazyasd import lazyobject + +if 'CONDA_EXE' not in ${...}: + ![python -m conda init --dev out> conda-dev-init.sh] + source-bash conda-dev-init.sh + import os + os.remove("conda-dev-init.sh") + +_REACTIVATE_COMMANDS = ('install', 'update', 'upgrade', 'remove', 'uninstall') + + +@lazyobject +def Env(): + from collections import namedtuple + return namedtuple('Env', ['name', 'path', 'bin_dir', 'envs_dir']) + + +def _parse_args(args=None): + from argparse import ArgumentParser + p = ArgumentParser(add_help=False) + p.add_argument('command', nargs='?') + p.add_argument('-h', '--help', dest='help', action='store_true', default=False) + p.add_argument('-v', '--version', dest='version', action='store_true', default=False) + ns, _ = p.parse_known_args(args) + if ns.command == 'activate': + p.add_argument('env_name_or_prefix', default='base') + elif ns.command in _REACTIVATE_COMMANDS: + p.add_argument('-n', '--name') + p.add_argument('-p', '--prefix') + parsed_args, _ = p.parse_known_args(args) + return parsed_args + + +def _raise_pipeline_error(pipeline): + stdout = pipeline.out + stderr = pipeline.err + if pipeline.returncode != 0: + message = ("exited with %s\nstdout: %s\nstderr: %s\n" + "" % (pipeline.returncode, stdout, stderr)) + raise RuntimeError(message) + return stdout.strip() + + +def _conda_activate_handler(env_name_or_prefix): + import os + + __xonsh__.execer.exec($($CONDA_EXE shell.xonsh activate @(env_name_or_prefix)), + glbs=__xonsh__.ctx, + filename="$(conda shell.xonsh activate " + env_name_or_prefix + ")") + if $CONDA_DEFAULT_ENV != os.path.split(env_name_or_prefix)[1]: + import sys as _sys + + print("WARNING: conda environment not activated properly. " + "This is likely because you have a conda init inside of your " + "~/.bashrc (unix) or *.bat activation file (windows). This is " + "causing conda to activate twice in xonsh. Please remove the conda " + "init block from your other shell.", file=_sys.stderr) + + +def _conda_deactivate_handler(): + __xonsh__.execer.exec($($CONDA_EXE shell.xonsh deactivate), + glbs=__xonsh__.ctx, + filename="$(conda shell.xonsh deactivate)") + + +def _conda_passthrough_handler(args): + pipeline = ![$CONDA_EXE @(args)] + _raise_pipeline_error(pipeline) + + +def _conda_reactivate_handler(args, name_or_prefix_given): + pipeline = ![$CONDA_EXE @(args)] + _raise_pipeline_error(pipeline) + if not name_or_prefix_given: + __xonsh__.execer.exec($($CONDA_EXE shell.xonsh reactivate), + glbs=__xonsh__.ctx, + filename="$(conda shell.xonsh reactivate)") + + +def _conda_main(args=None): + parsed_args = _parse_args(args) + if parsed_args.command == 'activate': + _conda_activate_handler(parsed_args.env_name_or_prefix) + elif parsed_args.command == 'deactivate': + _conda_deactivate_handler() + elif parsed_args.command in _REACTIVATE_COMMANDS: + name_or_prefix_given = bool(parsed_args.name or parsed_args.prefix) + _conda_reactivate_handler(args, name_or_prefix_given) + else: + _conda_passthrough_handler(args) + + +if 'CONDA_SHLVL' not in ${...}: + $CONDA_SHLVL = '0' + import os as _os + import sys as _sys + _sys.path.insert(0, _os.path.join(_os.path.dirname(_os.path.dirname($CONDA_EXE)), "condabin")) + del _os, _sys + +aliases['conda'] = _conda_main + + +def _list_dirs(path): + """Generator that lists the directories in a given path.""" + import os + for entry in os.scandir(path): + if not entry.name.startswith('.') and entry.is_dir(): + yield entry.name + + +def _get_envs_unfiltered(): + """Grab a list of all conda env dirs from conda, allowing all warnings.""" + import os + import importlib + + try: + # breaking changes introduced in Anaconda 4.4.7 + # try to import newer library structure first + context = importlib.import_module('conda.base.context') + config = context.context + except ModuleNotFoundError: + config = importlib.import_module('conda.config') + + # create the list of environments + env_list = [] + for envs_dir in config.envs_dirs: + # skip non-existing environments directories + if not os.path.exists(envs_dir): + continue + # for each environment in the environments directory + for env_name in _list_dirs(envs_dir): + # check for duplicates names + if env_name in [env.name for env in env_list]: + raise ValueError('Multiple environments with the same name ' + "in the system is not supported by conda's xonsh tools.") + # add the environment to the list + env_list.append(Env(name=env_name, + path=os.path.join(envs_dir, env_name), + bin_dir=os.path.join(envs_dir, env_name, 'bin'), + envs_dir=envs_dir, + )) + return env_list + + +def _get_envs(): + """Grab a list of all conda env dirs from conda, ignoring all warnings.""" + import warnings + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + return _get_envs_unfiltered() + + +def _conda_completer(prefix, line, start, end, ctx): + """Completion for conda.""" + args = line.split(' ') + possible = set() + if len(args) == 0 or args[0] not in ['xonda', 'conda']: + return None + curix = args.index(prefix) + if curix == 1: + possible = {'activate', 'deactivate', 'install', 'remove', 'info', + 'help', 'list', 'search', 'update', 'upgrade', 'uninstall', + 'config', 'init', 'clean', 'package', 'bundle', 'env', + 'select', 'create', '-h', '--help', '-V', '--version'} + + elif curix == 2: + if args[1] in ['activate', 'select']: + possible = set([env.name for env in _get_envs()]) + elif args[1] == 'create': + possible = {'-p', '-n'} + elif args[1] == 'env': + possible = {'attach', 'create', 'export', 'list', 'remove', + 'upload', 'update'} + + elif curix == 3: + if args[2] == 'export': + possible = {'-n', '--name'} + elif args[2] == 'create': + possible = {'-h', '--help', '-f', '--file', '-n', '--name', '-p', + '--prefix', '-q', '--quiet', '--force', '--json', + '--debug', '-v', '--verbose'} + + elif curix == 4: + if args[2] == 'export' and args[3] in ['-n','--name']: + possible = set([env.name for env in _get_envs()]) + + return {i for i in possible if i.startswith(prefix)} + + +# add _xonda_completer to list of completers +__xonsh__.completers['conda'] = _conda_completer +# bump to top of list +__xonsh__.completers.move_to_end('conda', last=False) diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/shell/condabin/Conda.psm1 b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/shell/condabin/Conda.psm1 new file mode 100644 index 0000000000000000000000000000000000000000..64f51c1d0c9f04e04658172b606ab4a13ce7a084 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/shell/condabin/Conda.psm1 @@ -0,0 +1,266 @@ +param([parameter(Position=0,Mandatory=$false)] [Hashtable] $CondaModuleArgs=@{}) + +# Defaults from before we had arguments. +if (-not $CondaModuleArgs.ContainsKey('ChangePs1')) { + $CondaModuleArgs.ChangePs1 = $True +} + +## ENVIRONMENT MANAGEMENT ###################################################### + +<# + .SYNOPSIS + Obtains a list of valid conda environments. + + .EXAMPLE + Get-CondaEnvironment + + .EXAMPLE + genv +#> +function Get-CondaEnvironment { + [CmdletBinding()] + param(); + + begin {} + + process { + # NB: the JSON output of conda env list does not include the names + # of each env, so we need to parse the fragile output instead. + & $Env:CONDA_EXE $Env:_CE_M $Env:_CE_CONDA env list | ` + Where-Object { -not $_.StartsWith("#") } | ` + Where-Object { -not $_.Trim().Length -eq 0 } | ` + ForEach-Object { + $envLine = $_ -split "\s+"; + $Active = $envLine[1] -eq "*"; + [PSCustomObject] @{ + Name = $envLine[0]; + Active = $Active; + Path = if ($Active) {$envLine[2]} else {$envLine[1]}; + } | Write-Output; + } + } + + end {} +} + +<# + .SYNOPSIS + Activates a conda environment, placing its commands and packages at + the head of $Env:PATH. + + .EXAMPLE + Enter-CondaEnvironment my-env + + .EXAMPLE + etenv my-env + + .NOTES + This command does not currently support activating environments stored + in a non-standard location. +#> +function Enter-CondaEnvironment { + [CmdletBinding()] + param( + [Parameter(Mandatory=$false)][switch]$Stack, + [Parameter(Position=0)][string]$Name + ); + + begin { + If ($Stack) { + $activateCommand = (& $Env:CONDA_EXE $Env:_CE_M $Env:_CE_CONDA shell.powershell activate --stack $Name | Out-String); + } Else { + $activateCommand = (& $Env:CONDA_EXE $Env:_CE_M $Env:_CE_CONDA shell.powershell activate $Name | Out-String); + } + + Write-Verbose "[conda shell.powershell activate $Name]`n$activateCommand"; + Invoke-Expression -Command $activateCommand; + } + + process {} + + end {} + +} + +<# + .SYNOPSIS + Deactivates the current conda environment, if any. + + .EXAMPLE + Exit-CondaEnvironment + + .EXAMPLE + exenv +#> +function Exit-CondaEnvironment { + [CmdletBinding()] + param(); + + begin { + $deactivateCommand = (& $Env:CONDA_EXE $Env:_CE_M $Env:_CE_CONDA shell.powershell deactivate | Out-String); + + # If deactivate returns an empty string, we have nothing more to do, + # so return early. + if ($deactivateCommand.Trim().Length -eq 0) { + return; + } + Write-Verbose "[conda shell.powershell deactivate]`n$deactivateCommand"; + Invoke-Expression -Command $deactivateCommand; + } + process {} + end {} +} + +## CONDA WRAPPER ############################################################### + +<# + .SYNOPSIS + conda is a tool for managing and deploying applications, environments + and packages. + + .PARAMETER Command + Subcommand to invoke. + + .EXAMPLE + conda install toolz +#> +function Invoke-Conda() { + # Don't use any explicit args here, we'll use $args and tab completion + # so that we can capture everything, INCLUDING short options (e.g. -n). + if ($Args.Count -eq 0) { + # No args, just call the underlying conda executable. + & $Env:CONDA_EXE $Env:_CE_M $Env:_CE_CONDA; + } + else { + $Command = $Args[0]; + if ($Args.Count -ge 2) { + $OtherArgs = $Args[1..($Args.Count - 1)]; + } else { + $OtherArgs = @(); + } + switch ($Command) { + "activate" { + Enter-CondaEnvironment @OtherArgs; + } + "deactivate" { + Exit-CondaEnvironment; + } + + default { + # There may be a command we don't know want to handle + # differently in the shell wrapper, pass it through + # verbatim. + & $Env:CONDA_EXE $Env:_CE_M $Env:_CE_CONDA $Command @OtherArgs; + } + } + } +} + +## TAB COMPLETION ############################################################## +# We borrow the approach used by posh-git, in which we override any existing +# functions named TabExpansion, look for commands we can complete on, and then +# default to the previously defined TabExpansion function for everything else. + +if (Test-Path Function:\TabExpansion) { + # Since this technique is common, we encounter an infinite loop if it's + # used more than once unless we give our backup a unique name. + Rename-Item Function:\TabExpansion CondaTabExpansionBackup +} + +function Expand-CondaEnv() { + param( + [string] + $Filter + ); + + $ValidEnvs = Get-CondaEnvironment; + $ValidEnvs ` + | Where-Object { $_.Name -like "$filter*" } ` + | ForEach-Object { $_.Name } ` + | Write-Output; + $ValidEnvs ` + | Where-Object { $_.Path -like "$filter*" } ` + | ForEach-Object { $_.Path } ` + | Write-Output; + +} + +function Expand-CondaSubcommands() { + param( + [string] + $Filter + ); + + # Filter and output applicable subcommands + Invoke-Conda commands | Where-Object { $_ -like "$Filter*" } | Write-Output; + +} + +function TabExpansion($line, $lastWord) { + $lastBlock = [regex]::Split($line, '[|;]')[-1].TrimStart() + + switch -regex ($lastBlock) { + # Pull out conda commands we recognize first before falling through + # to the general patterns for conda itself. + "^conda activate (.*)" { Expand-CondaEnv $lastWord; break; } + "^etenv (.*)" { Expand-CondaEnv $lastWord; break; } + + # If we got down to here, check arguments to conda itself. + "^conda (.*)" { Expand-CondaSubcommands $lastWord; break; } + + # Finally, fall back on existing tab expansion. + default { + if (Test-Path Function:\CondaTabExpansionBackup) { + CondaTabExpansionBackup $line $lastWord + } + } + } +} + +## PROMPT MANAGEMENT ########################################################### + +<# + .SYNOPSIS + Modifies the current prompt to show the currently activated conda + environment, if any. + .EXAMPLE + Add-CondaEnvironmentToPrompt + + Causes the current session's prompt to display the currently activated + conda environment. +#> +if ($CondaModuleArgs.ChangePs1) { + # We use the same procedure to nest prompts as we did for nested tab completion. + if (Test-Path Function:\prompt) { + Rename-Item Function:\prompt CondaPromptBackup + } else { + function CondaPromptBackup() { + # Restore a basic prompt if the definition is missing. + "PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "; + } + } + + function global:prompt() { + if ($Env:CONDA_PROMPT_MODIFIER) { + $Env:CONDA_PROMPT_MODIFIER | Write-Host -NoNewline + } + CondaPromptBackup; + } +} + +## ALIASES ##################################################################### + +New-Alias conda Invoke-Conda -Force +New-Alias genv Get-CondaEnvironment -Force +New-Alias etenv Enter-CondaEnvironment -Force +New-Alias exenv Exit-CondaEnvironment -Force + +## EXPORTS ################################################################### + +Export-ModuleMember ` + -Alias * ` + -Function ` + Invoke-Conda, ` + Get-CondaEnvironment, ` + Enter-CondaEnvironment, Exit-CondaEnvironment, ` + TabExpansion, prompt diff --git a/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/shell/condabin/conda-hook.ps1 b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/shell/condabin/conda-hook.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..f60fde35e48171cc218339f414e7efdda7e24238 --- /dev/null +++ b/data/miniconda3/pkgs/conda-25.11.1-py313h06a4308_0/shell/condabin/conda-hook.ps1 @@ -0,0 +1,11 @@ +$Env:CONDA_EXE = "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/conda" +$Env:_CONDA_EXE = "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/conda" +$Env:_CE_M = $null +$Env:_CE_CONDA = $null +$Env:CONDA_PYTHON_EXE = "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/python" +$Env:_CONDA_ROOT = "/home/task_176556791054345/conda-bld/conda_1765567979493/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p" +$CondaModuleArgs = @{ChangePs1 = $True} + +Import-Module "$Env:_CONDA_ROOT\shell\condabin\Conda.psm1" -ArgumentList $CondaModuleArgs + +Remove-Variable CondaModuleArgs \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/about.json b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..6970527938bc7a3b5062be8aa3b118513598a1e1 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/about.json @@ -0,0 +1,138 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://conda.anaconda.org/nvidia/linux-64" + ], + "conda_build_version": "24.1.2", + "conda_version": "24.1.2", + "description": "Extracts information from CUDA binary files and presents them in human\nreadable format.\n", + "doc_url": "https://docs.nvidia.com/cuda/index.html", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "recipe-maintainers": [ + "conda-forge/cuda" + ] + }, + "home": "https://developer.nvidia.com/cuda-toolkit", + "identifiers": [], + "keywords": [], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "license_file": "LICENSE", + "license_url": "https://docs.nvidia.com/cuda/eula/index.html", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "_openmp_mutex 5.1 1_gnu", + "archspec 0.2.1 pyhd3eb1b0_0", + "boltons 23.0.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_7", + "bzip2 1.0.8 h7b6447c_0", + "c-ares 1.19.1 h5eee18b_0", + "ca-certificates 2023.12.12 h06a4308_0", + "certifi 2024.2.2 py312h06a4308_0", + "cffi 1.16.0 py312h5eee18b_0", + "charset-normalizer 2.0.4 pyhd3eb1b0_0", + "conda 24.1.2 py312h06a4308_0", + "conda-content-trust 0.2.0 py312h06a4308_0", + "conda-libmamba-solver 23.12.0 pyhd3eb1b0_1", + "conda-package-handling 2.2.0 py312h06a4308_0", + "conda-package-streaming 0.9.0 py312h06a4308_0", + "cryptography 41.0.7 py312hdda0065_0", + "distro 1.8.0 py312h06a4308_0", + "expat 2.5.0 h6a678d5_0", + "fmt 9.1.0 hdb19cb5_0", + "icu 73.1 h6a678d5_0", + "idna 3.4 py312h06a4308_0", + "jsonpatch 1.32 pyhd3eb1b0_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "krb5 1.20.1 h143b758_1", + "ld_impl_linux-64 2.38 h1181459_1", + "libarchive 3.6.2 h6ac8c49_2", + "libcurl 8.5.0 h251f7ec_0", + "libedit 3.1.20230828 h5eee18b_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_0", + "libgcc-ng 11.2.0 h1234567_1", + "libgomp 11.2.0 h1234567_1", + "libmamba 1.5.3 haf1ee3a_0", + "libmambapy 1.5.3 py312h2dafd23_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libsolv 0.7.24 he621ea3_0", + "libssh2 1.10.0 hdbd6064_2", + "libstdcxx-ng 11.2.0 h1234567_1", + "libuuid 1.41.5 h5eee18b_0", + "libxml2 2.10.4 hf1b16e4_1", + "lz4-c 1.9.4 h6a678d5_0", + "menuinst 2.0.2 py312h06a4308_0", + "ncurses 6.4 h6a678d5_0", + "openssl 3.0.13 h7f8727e_0", + "packaging 23.1 py312h06a4308_0", + "pcre2 10.42 hebb0a14_0", + "pip 23.3.1 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.0.0 py312h06a4308_1", + "pybind11-abi 4 hd3eb1b0_1", + "pycosat 0.6.6 py312h5eee18b_0", + "pycparser 2.21 pyhd3eb1b0_0", + "pysocks 1.7.1 py312h06a4308_0", + "python 3.12.1 h996f2a0_0", + "readline 8.2 h5eee18b_0", + "reproc 14.2.4 h295c915_1", + "reproc-cpp 14.2.4 h295c915_1", + "requests 2.31.0 py312h06a4308_1", + "ruamel.yaml 0.17.21 py312h5eee18b_0", + "setuptools 68.2.2 py312h06a4308_0", + "sqlite 3.41.2 h5eee18b_0", + "tk 8.6.12 h1ccaba5_0", + "tqdm 4.65.0 py312he106c6f_0", + "truststore 0.8.0 py312h06a4308_0", + "tzdata 2023d h04d1e81_0", + "urllib3 2.1.0 py312h06a4308_1", + "wheel 0.41.2 py312h06a4308_0", + "xz 5.4.5 h5eee18b_0", + "yaml-cpp 0.8.0 h6a678d5_0", + "zlib 1.2.13 h5eee18b_0", + "zstandard 0.19.0 py312h5eee18b_0", + "zstd 1.5.5 hc292b87_0", + "anaconda-anon-usage 0.4.3 py312hfc0e8ea_100", + "anaconda-client 1.12.3 py312h06a4308_0", + "attrs 23.1.0 py312h06a4308_0", + "beautifulsoup4 4.12.2 py312h06a4308_0", + "chardet 4.0.0 py312h06a4308_1003", + "click 8.1.7 py312h06a4308_0", + "conda-build 24.1.2 py312h06a4308_0", + "conda-index 0.4.0 pyhd3eb1b0_0", + "defusedxml 0.7.1 pyhd3eb1b0_0", + "filelock 3.13.1 py312h06a4308_0", + "jinja2 3.1.3 py312h06a4308_0", + "jsonschema 4.19.2 py312h06a4308_0", + "jsonschema-specifications 2023.7.1 py312h06a4308_0", + "jupyter_core 5.5.0 py312h06a4308_0", + "liblief 0.12.3 h6a678d5_0", + "markupsafe 2.1.3 py312h5eee18b_0", + "more-itertools 10.1.0 py312h06a4308_0", + "nbformat 5.9.2 py312h06a4308_0", + "patch 2.7.6 h7b6447c_1001", + "patchelf 0.17.2 h6a678d5_0", + "pkginfo 1.9.6 py312h06a4308_0", + "psutil 5.9.0 py312h5eee18b_0", + "py-lief 0.12.3 py312h6a678d5_0", + "python-dateutil 2.8.2 pyhd3eb1b0_0", + "python-fastjsonschema 2.16.2 py312h06a4308_0", + "python-libarchive-c 2.9 pyhd3eb1b0_1", + "pytz 2023.3.post1 py312h06a4308_0", + "pyyaml 6.0.1 py312h5eee18b_0", + "referencing 0.30.2 py312h06a4308_0", + "requests-toolbelt 1.0.0 py312h06a4308_0", + "rpds-py 0.10.6 py312hb02cf49_0", + "six 1.16.0 pyhd3eb1b0_1", + "soupsieve 2.5 py312h06a4308_0", + "traitlets 5.7.1 py312h06a4308_0", + "yaml 0.2.5 h7b6447c_0" + ], + "summary": "Extracts information from CUDA binary files", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/files b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..5457d03304119223ccf9169ec024947caeb730c5 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/files @@ -0,0 +1,2 @@ +LICENSE +bin/cuobjdump diff --git a/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/git b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/index.json b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..612cdd01f4b14fd9885f1b12868baa22437a034e --- /dev/null +++ b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/index.json @@ -0,0 +1,18 @@ +{ + "arch": "x86_64", + "build": "0", + "build_number": 0, + "depends": [ + "__glibc >=2.17,<3.0.a0", + "cuda-nvdisasm", + "cuda-version >=12.8,<12.9.0a0", + "libgcc-ng >=11.2.0", + "libstdcxx-ng >=11.2.0" + ], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "name": "cuda-cuobjdump", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1739446162824, + "version": "12.8.90" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/licenses/LICENSE b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..6622367aff6567f25c18f500137a36caf101ea50 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/licenses/LICENSE @@ -0,0 +1,1632 @@ +End User License Agreement +-------------------------- + +NVIDIA Software License Agreement and CUDA Supplement to +Software License Agreement. + +The CUDA Toolkit End User License Agreement applies to the +NVIDIA CUDA Toolkit, the NVIDIA CUDA Samples, the NVIDIA +Display Driver, NVIDIA Nsight tools (Visual Studio Edition), +and the associated documentation on CUDA APIs, programming +model and development tools. If you do not agree with the +terms and conditions of the license agreement, then do not +download or use the software. + +Last updated: January 12, 2024. + + +Preface +------- + +The Software License Agreement in Chapter 1 and the Supplement +in Chapter 2 contain license terms and conditions that govern +the use of NVIDIA toolkit. By accepting this agreement, you +agree to comply with all the terms and conditions applicable +to the product(s) included herein. + + +NVIDIA Driver + + +Description + +This package contains the operating system driver and +fundamental system software components for NVIDIA GPUs. + + +NVIDIA CUDA Toolkit + + +Description + +The NVIDIA CUDA Toolkit provides command-line and graphical +tools for building, debugging and optimizing the performance +of applications accelerated by NVIDIA GPUs, runtime and math +libraries, and documentation including programming guides, +user manuals, and API references. + + +Default Install Location of CUDA Toolkit + +Windows platform: + +%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v#.# + +Linux platform: + +/usr/local/cuda-#.# + +Mac platform: + +/Developer/NVIDIA/CUDA-#.# + + +NVIDIA CUDA Samples + + +Description + +CUDA Samples are now located in +https://github.com/nvidia/cuda-samples, which includes +instructions for obtaining, building, and running the samples. +They are no longer included in the CUDA toolkit. + + +NVIDIA Nsight Visual Studio Edition (Windows only) + + +Description + +NVIDIA Nsight Development Platform, Visual Studio Edition is a +development environment integrated into Microsoft Visual +Studio that provides tools for debugging, profiling, analyzing +and optimizing your GPU computing and graphics applications. + + +Default Install Location of Nsight Visual Studio Edition + +Windows platform: + +%ProgramFiles(x86)%\NVIDIA Corporation\Nsight Visual Studio Edition #.# + + +1. License Agreement for NVIDIA Software Development Kits +--------------------------------------------------------- + + +Important Notice—Read before downloading, installing, +copying or using the licensed software: +------------------------------------------------------- + +This license agreement, including exhibits attached +("Agreement”) is a legal agreement between you and NVIDIA +Corporation ("NVIDIA") and governs your use of a NVIDIA +software development kit (“SDK”). + +Each SDK has its own set of software and materials, but here +is a description of the types of items that may be included in +a SDK: source code, header files, APIs, data sets and assets +(examples include images, textures, models, scenes, videos, +native API input/output files), binary software, sample code, +libraries, utility programs, programming code and +documentation. + +This Agreement can be accepted only by an adult of legal age +of majority in the country in which the SDK is used. + +If you are entering into this Agreement on behalf of a company +or other legal entity, you represent that you have the legal +authority to bind the entity to this Agreement, in which case +“you” will mean the entity you represent. + +If you don’t have the required age or authority to accept +this Agreement, or if you don’t accept all the terms and +conditions of this Agreement, do not download, install or use +the SDK. + +You agree to use the SDK only for purposes that are permitted +by (a) this Agreement, and (b) any applicable law, regulation +or generally accepted practices or guidelines in the relevant +jurisdictions. + + +1.1. License + + +1.1.1. License Grant + +Subject to the terms of this Agreement, NVIDIA hereby grants +you a non-exclusive, non-transferable license, without the +right to sublicense (except as expressly provided in this +Agreement) to: + + 1. Install and use the SDK, + + 2. Modify and create derivative works of sample source code + delivered in the SDK, and + + 3. Distribute those portions of the SDK that are identified + in this Agreement as distributable, as incorporated in + object code format into a software application that meets + the distribution requirements indicated in this Agreement. + + +1.1.2. Distribution Requirements + +These are the distribution requirements for you to exercise +the distribution grant: + + 1. Your application must have material additional + functionality, beyond the included portions of the SDK. + + 2. The distributable portions of the SDK shall only be + accessed by your application. + + 3. The following notice shall be included in modifications + and derivative works of sample source code distributed: + “This software contains source code provided by NVIDIA + Corporation.” + + 4. Unless a developer tool is identified in this Agreement + as distributable, it is delivered for your internal use + only. + + 5. The terms under which you distribute your application + must be consistent with the terms of this Agreement, + including (without limitation) terms relating to the + license grant and license restrictions and protection of + NVIDIA’s intellectual property rights. Additionally, you + agree that you will protect the privacy, security and + legal rights of your application users. + + 6. You agree to notify NVIDIA in writing of any known or + suspected distribution or use of the SDK not in compliance + with the requirements of this Agreement, and to enforce + the terms of your agreements with respect to distributed + SDK. + + +1.1.3. Authorized Users + +You may allow employees and contractors of your entity or of +your subsidiary(ies) to access and use the SDK from your +secure network to perform work on your behalf. + +If you are an academic institution you may allow users +enrolled or employed by the academic institution to access and +use the SDK from your secure network. + +You are responsible for the compliance with the terms of this +Agreement by your authorized users. If you become aware that +your authorized users didn’t follow the terms of this +Agreement, you agree to take reasonable steps to resolve the +non-compliance and prevent new occurrences. + + +1.1.4. Pre-Release SDK + +The SDK versions identified as alpha, beta, preview or +otherwise as pre-release, may not be fully functional, may +contain errors or design flaws, and may have reduced or +different security, privacy, accessibility, availability, and +reliability standards relative to commercial versions of +NVIDIA software and materials. Use of a pre-release SDK may +result in unexpected results, loss of data, project delays or +other unpredictable damage or loss. + +You may use a pre-release SDK at your own risk, understanding +that pre-release SDKs are not intended for use in production +or business-critical systems. + +NVIDIA may choose not to make available a commercial version +of any pre-release SDK. NVIDIA may also choose to abandon +development and terminate the availability of a pre-release +SDK at any time without liability. + + +1.1.5. Updates + +NVIDIA may, at its option, make available patches, workarounds +or other updates to this SDK. Unless the updates are provided +with their separate governing terms, they are deemed part of +the SDK licensed to you as provided in this Agreement. You +agree that the form and content of the SDK that NVIDIA +provides may change without prior notice to you. While NVIDIA +generally maintains compatibility between versions, NVIDIA may +in some cases make changes that introduce incompatibilities in +future versions of the SDK. + + +1.1.6. Components Under Other Licenses + +The SDK may come bundled with, or otherwise include or be +distributed with, NVIDIA or third-party components with +separate legal notices or terms as may be described in +proprietary notices accompanying the SDK. If and to the extent +there is a conflict between the terms in this Agreement and +the license terms associated with the component, the license +terms associated with the components control only to the +extent necessary to resolve the conflict. + +Subject to the other terms of this Agreement, you may use the +SDK to develop and test applications released under Open +Source Initiative (OSI) approved open source software +licenses. + + +1.1.7. Reservation of Rights + +NVIDIA reserves all rights, title, and interest in and to the +SDK, not expressly granted to you under this Agreement. + + +1.2. Limitations + +The following license limitations apply to your use of the +SDK: + + 1. You may not reverse engineer, decompile or disassemble, + or remove copyright or other proprietary notices from any + portion of the SDK or copies of the SDK. + + 2. Except as expressly provided in this Agreement, you may + not copy, sell, rent, sublicense, transfer, distribute, + modify, or create derivative works of any portion of the + SDK. For clarity, you may not distribute or sublicense the + SDK as a stand-alone product. + + 3. Unless you have an agreement with NVIDIA for this + purpose, you may not indicate that an application created + with the SDK is sponsored or endorsed by NVIDIA. + + 4. You may not bypass, disable, or circumvent any + encryption, security, digital rights management or + authentication mechanism in the SDK. + + 5. You may not use the SDK in any manner that would cause it + to become subject to an open source software license. As + examples, licenses that require as a condition of use, + modification, and/or distribution that the SDK be: + + a. Disclosed or distributed in source code form; + + b. Licensed for the purpose of making derivative works; + or + + c. Redistributable at no charge. + + 6. You acknowledge that the SDK as delivered is not tested + or certified by NVIDIA for use in connection with the + design, construction, maintenance, and/or operation of any + system where the use or failure of such system could + result in a situation that threatens the safety of human + life or results in catastrophic damages (each, a "Critical + Application"). Examples of Critical Applications include + use in avionics, navigation, autonomous vehicle + applications, ai solutions for automotive products, + military, medical, life support or other life critical + applications. NVIDIA shall not be liable to you or any + third party, in whole or in part, for any claims or + damages arising from such uses. You are solely responsible + for ensuring that any product or service developed with + the SDK as a whole includes sufficient features to comply + with all applicable legal and regulatory standards and + requirements. + + 7. You agree to defend, indemnify and hold harmless NVIDIA + and its affiliates, and their respective employees, + contractors, agents, officers and directors, from and + against any and all claims, damages, obligations, losses, + liabilities, costs or debt, fines, restitutions and + expenses (including but not limited to attorney’s fees + and costs incident to establishing the right of + indemnification) arising out of or related to products or + services that use the SDK in or for Critical Applications, + and for use of the SDK outside of the scope of this + Agreement or not in compliance with its terms. + + 8. You may not reverse engineer, decompile or disassemble + any portion of the output generated using SDK elements for + the purpose of translating such output artifacts to target + a non-NVIDIA platform. + + +1.3. Ownership + + 1. NVIDIA or its licensors hold all rights, title and + interest in and to the SDK and its modifications and + derivative works, including their respective intellectual + property rights, subject to your rights under Section + 1.3.2. This SDK may include software and materials from + NVIDIA’s licensors, and these licensors are intended + third party beneficiaries that may enforce this Agreement + with respect to their intellectual property rights. + + 2. You hold all rights, title and interest in and to your + applications and your derivative works of the sample + source code delivered in the SDK, including their + respective intellectual property rights, subject to + NVIDIA’s rights under Section 1.3.1. + + 3. You may, but don’t have to, provide to NVIDIA + suggestions, feature requests or other feedback regarding + the SDK, including possible enhancements or modifications + to the SDK. For any feedback that you voluntarily provide, + you hereby grant NVIDIA and its affiliates a perpetual, + non-exclusive, worldwide, irrevocable license to use, + reproduce, modify, license, sublicense (through multiple + tiers of sublicensees), and distribute (through multiple + tiers of distributors) it without the payment of any + royalties or fees to you. NVIDIA will use feedback at its + choice. NVIDIA is constantly looking for ways to improve + its products, so you may send feedback to NVIDIA through + the developer portal at https://developer.nvidia.com. + + +1.4. No Warranties + +THE SDK IS PROVIDED BY NVIDIA “AS IS” AND “WITH ALL +FAULTS.” TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND +ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND +OR NATURE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, +BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, OR THE +ABSENCE OF ANY DEFECTS THEREIN, WHETHER LATENT OR PATENT. NO +WARRANTY IS MADE ON THE BASIS OF TRADE USAGE, COURSE OF +DEALING OR COURSE OF TRADE. + + +1.5. Limitation of Liability + +TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS +AFFILIATES SHALL NOT BE LIABLE FOR ANY (I) SPECIAL, INCIDENTAL, +PUNITIVE OR CONSEQUENTIAL DAMAGES, OR (II) DAMAGES FOR (A) ANY +LOST PROFITS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL, +OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF +OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFORMANCE +OF THE SDK, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED +UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING +NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR +THEORY OF LIABILITY. IN NO EVENT WILL NVIDIA’S AND ITS AFFILIATES +TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS +AGREEMENT EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE +NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE OR EXTEND THIS +LIMIT. + +These exclusions and limitations of liability shall apply +regardless if NVIDIA or its affiliates have been advised of +the possibility of such damages, and regardless of whether a +remedy fails its essential purpose. These exclusions and +limitations of liability form an essential basis of the +bargain between the parties, and, absent any of these +exclusions or limitations of liability, the provisions of this +Agreement, including, without limitation, the economic terms, +would be substantially different. + + +1.6. Termination + + 1. This Agreement will continue to apply until terminated by + either you or NVIDIA as described below. + + 2. If you want to terminate this Agreement, you may do so by + stopping to use the SDK. + + 3. NVIDIA may, at any time, terminate this Agreement if: + + a. (i) you fail to comply with any term of this + Agreement and the non-compliance is not fixed within + thirty (30) days following notice from NVIDIA (or + immediately if you violate NVIDIA’s intellectual + property rights); + + b. (ii) you commence or participate in any legal + proceeding against NVIDIA with respect to the SDK; or + + c. (iii) NVIDIA decides to no longer provide the SDK in + a country or, in NVIDIA’s sole discretion, the + continued use of it is no longer commercially viable. + + 4. Upon any termination of this Agreement, you agree to + promptly discontinue use of the SDK and destroy all copies + in your possession or control. Your prior distributions in + accordance with this Agreement are not affected by the + termination of this Agreement. Upon written request, you + will certify in writing that you have complied with your + commitments under this section. Upon any termination of + this Agreement all provisions survive except for the + license grant provisions. + + +1.7. General + +If you wish to assign this Agreement or your rights and +obligations, including by merger, consolidation, dissolution +or operation of law, contact NVIDIA to ask for permission. Any +attempted assignment not approved by NVIDIA in writing shall +be void and of no effect. NVIDIA may assign, delegate or +transfer this Agreement and its rights and obligations, and if +to a non-affiliate you will be notified. + +You agree to cooperate with NVIDIA and provide reasonably +requested information to verify your compliance with this +Agreement. + +This Agreement will be governed in all respects by the laws of +the United States and of the State of Delaware, without regard to the +conflicts of laws principles. The United Nations Convention on +Contracts for the International Sale of Goods is specifically +disclaimed. You agree to all terms of this Agreement in the +English language. + +The state or federal courts residing in Santa Clara County, +California shall have exclusive jurisdiction over any dispute +or claim arising out of this Agreement. Notwithstanding this, +you agree that NVIDIA shall still be allowed to apply for +injunctive remedies or an equivalent type of urgent legal +relief in any jurisdiction. + +If any court of competent jurisdiction determines that any +provision of this Agreement is illegal, invalid or +unenforceable, such provision will be construed as limited to +the extent necessary to be consistent with and fully +enforceable under the law and the remaining provisions will +remain in full force and effect. Unless otherwise specified, +remedies are cumulative. + +Each party acknowledges and agrees that the other is an +independent contractor in the performance of this Agreement. + +The SDK has been developed entirely at private expense and is +“commercial items” consisting of “commercial computer +software” and “commercial computer software +documentation” provided with RESTRICTED RIGHTS. Use, +duplication or disclosure by the U.S. Government or a U.S. +Government subcontractor is subject to the restrictions in +this Agreement pursuant to DFARS 227.7202-3(a) or as set forth +in subparagraphs (c)(1) and (2) of the Commercial Computer +Software - Restricted Rights clause at FAR 52.227-19, as +applicable. Contractor/manufacturer is NVIDIA, 2788 San Tomas +Expressway, Santa Clara, CA 95051. + +The SDK is subject to United States export laws and +regulations. You agree that you will not ship, transfer or +export the SDK into any country, or use the SDK in any manner, +prohibited by the United States Bureau of Industry and +Security or economic sanctions regulations administered by the +U.S. Department of Treasury’s Office of Foreign Assets +Control (OFAC), or any applicable export laws, restrictions or +regulations. These laws include restrictions on destinations, +end users and end use. By accepting this Agreement, you +confirm that you are not located in a country currently +embargoed by the U.S. or otherwise prohibited from receiving +the SDK under U.S. law. + +Any notice delivered by NVIDIA to you under this Agreement +will be delivered via mail, email or fax. You agree that any +notices that NVIDIA sends you electronically will satisfy any +legal communication requirements. Please direct your legal +notices or other correspondence to NVIDIA Corporation, 2788 +San Tomas Expressway, Santa Clara, California 95051, United +States of America, Attention: Legal Department. + +This Agreement and any exhibits incorporated into this +Agreement constitute the entire agreement of the parties with +respect to the subject matter of this Agreement and supersede +all prior negotiations or documentation exchanged between the +parties relating to this SDK license. Any additional and/or +conflicting terms on documents issued by you are null, void, +and invalid. Any amendment or waiver under this Agreement +shall be in writing and signed by representatives of both +parties. + + +2. CUDA Toolkit Supplement to Software License Agreement for +NVIDIA Software Development Kits +------------------------------------------------------------ + +The terms in this supplement govern your use of the NVIDIA +CUDA Toolkit SDK under the terms of your license agreement +(“Agreement”) as modified by this supplement. Capitalized +terms used but not defined below have the meaning assigned to +them in the Agreement. + +This supplement is an exhibit to the Agreement and is +incorporated as an integral part of the Agreement. In the +event of conflict between the terms in this supplement and the +terms in the Agreement, the terms in this supplement govern. + + +2.1. License Scope + +The SDK is licensed for you to develop applications only for +use in systems with NVIDIA GPUs. + + +2.2. Distribution + +The portions of the SDK that are distributable under the +Agreement are listed in Attachment A. + + +2.3. Operating Systems + +Those portions of the SDK designed exclusively for use on the +Linux or FreeBSD operating systems, or other operating systems +derived from the source code to these operating systems, may +be copied and redistributed for use in accordance with this +Agreement, provided that the object code files are not +modified in any way (except for unzipping of compressed +files). + + +2.4. Audio and Video Encoders and Decoders + +You acknowledge and agree that it is your sole responsibility +to obtain any additional third-party licenses required to +make, have made, use, have used, sell, import, and offer for +sale your products or services that include or incorporate any +third-party software and content relating to audio and/or +video encoders and decoders from, including but not limited +to, Microsoft, Thomson, Fraunhofer IIS, Sisvel S.p.A., +MPEG-LA, and Coding Technologies. NVIDIA does not grant to you +under this Agreement any necessary patent or other rights with +respect to any audio and/or video encoders and decoders. + + +2.5. Licensing + +If the distribution terms in this Agreement are not suitable +for your organization, or for any questions regarding this +Agreement, please contact NVIDIA at +nvidia-compute-license-questions@nvidia.com. + + +2.6. Attachment A + +The following CUDA Toolkit files may be distributed with +applications developed by you, including certain +variations of these files that have version number or +architecture specific information embedded in the file name - +as an example only, for release version 9.0 of the 64-bit +Windows software, the file cudart64_90.dll is redistributable. + +Component + +CUDA Runtime + +Windows + +cudart.dll, cudart_static.lib, cudadevrt.lib + +Mac OSX + +libcudart.dylib, libcudart_static.a, libcudadevrt.a + +Linux + +libcudart.so, libcudart_static.a, libcudadevrt.a + +Android + +libcudart.so, libcudart_static.a, libcudadevrt.a + +Component + +CUDA FFT Library + +Windows + +cufft.dll, cufftw.dll, cufft.lib, cufftw.lib + +Mac OSX + +libcufft.dylib, libcufft_static.a, libcufftw.dylib, +libcufftw_static.a + +Linux + +libcufft.so, libcufft_static.a, libcufftw.so, +libcufftw_static.a + +Android + +libcufft.so, libcufft_static.a, libcufftw.so, +libcufftw_static.a + +Component + +CUDA BLAS Library + +Windows + +cublas.dll, cublasLt.dll + +Mac OSX + +libcublas.dylib, libcublasLt.dylib, libcublas_static.a, +libcublasLt_static.a + +Linux + +libcublas.so, libcublasLt.so, libcublas_static.a, +libcublasLt_static.a + +Android + +libcublas.so, libcublasLt.so, libcublas_static.a, +libcublasLt_static.a + +Component + +NVIDIA "Drop-in" BLAS Library + +Windows + +nvblas.dll + +Mac OSX + +libnvblas.dylib + +Linux + +libnvblas.so + +Component + +CUDA Sparse Matrix Library + +Windows + +cusparse.dll, cusparse.lib + +Mac OSX + +libcusparse.dylib, libcusparse_static.a + +Linux + +libcusparse.so, libcusparse_static.a + +Android + +libcusparse.so, libcusparse_static.a + +Component + +CUDA Linear Solver Library + +Windows + +cusolver.dll, cusolver.lib + +Mac OSX + +libcusolver.dylib, libcusolver_static.a + +Linux + +libcusolver.so, libcusolver_static.a + +Android + +libcusolver.so, libcusolver_static.a + +Component + +CUDA Random Number Generation Library + +Windows + +curand.dll, curand.lib + +Mac OSX + +libcurand.dylib, libcurand_static.a + +Linux + +libcurand.so, libcurand_static.a + +Android + +libcurand.so, libcurand_static.a + +Component + +NVIDIA Performance Primitives Library + +Windows + +nppc.dll, nppc.lib, nppial.dll, nppial.lib, nppicc.dll, +nppicc.lib, nppicom.dll, nppicom.lib, nppidei.dll, +nppidei.lib, nppif.dll, nppif.lib, nppig.dll, nppig.lib, +nppim.dll, nppim.lib, nppist.dll, nppist.lib, nppisu.dll, +nppisu.lib, nppitc.dll, nppitc.lib, npps.dll, npps.lib + +Mac OSX + +libnppc.dylib, libnppc_static.a, libnppial.dylib, +libnppial_static.a, libnppicc.dylib, libnppicc_static.a, +libnppicom.dylib, libnppicom_static.a, libnppidei.dylib, +libnppidei_static.a, libnppif.dylib, libnppif_static.a, +libnppig.dylib, libnppig_static.a, libnppim.dylib, +libnppisu_static.a, libnppitc.dylib, libnppitc_static.a, +libnpps.dylib, libnpps_static.a + +Linux + +libnppc.so, libnppc_static.a, libnppial.so, +libnppial_static.a, libnppicc.so, libnppicc_static.a, +libnppicom.so, libnppicom_static.a, libnppidei.so, +libnppidei_static.a, libnppif.so, libnppif_static.a +libnppig.so, libnppig_static.a, libnppim.so, +libnppim_static.a, libnppist.so, libnppist_static.a, +libnppisu.so, libnppisu_static.a, libnppitc.so +libnppitc_static.a, libnpps.so, libnpps_static.a + +Android + +libnppc.so, libnppc_static.a, libnppial.so, +libnppial_static.a, libnppicc.so, libnppicc_static.a, +libnppicom.so, libnppicom_static.a, libnppidei.so, +libnppidei_static.a, libnppif.so, libnppif_static.a +libnppig.so, libnppig_static.a, libnppim.so, +libnppim_static.a, libnppist.so, libnppist_static.a, +libnppisu.so, libnppisu_static.a, libnppitc.so +libnppitc_static.a, libnpps.so, libnpps_static.a + +Component + +NVIDIA JPEG Library + +Windows + +nvjpeg.lib, nvjpeg.dll + +Linux + +libnvjpeg.so, libnvjpeg_static.a + +Component + +Internal common library required for statically linking to +cuBLAS, cuSPARSE, cuFFT, cuRAND, nvJPEG and NPP + +Mac OSX + +libculibos.a + +Linux + +libculibos.a + +Component + +NVIDIA Runtime Compilation Library and Header + +All + +nvrtc.h + +Windows + +nvrtc.dll, nvrtc-builtins.dll + +Mac OSX + +libnvrtc.dylib, libnvrtc-builtins.dylib + +Linux + +libnvrtc.so, libnvrtc-builtins.so, libnvrtc_static.a, libnvrtx-builtins_static.a + +Component + +NVIDIA Optimizing Compiler Library + +Windows + +nvvm.dll + +Mac OSX + +libnvvm.dylib + +Linux + +libnvvm.so + +Component + +NVIDIA JIT Linking Library + +Windows + +libnvJitLink.dll, libnvJitLink.lib + +Linux + +libnvJitLink.so, libnvJitLink_static.a + +Component + +NVIDIA Common Device Math Functions Library + +Windows + +libdevice.10.bc + +Mac OSX + +libdevice.10.bc + +Linux + +libdevice.10.bc + +Component + +CUDA Occupancy Calculation Header Library + +All + +cuda_occupancy.h + +Component + +CUDA Half Precision Headers + +All + +cuda_fp16.h, cuda_fp16.hpp + +Component + +CUDA Profiling Tools Interface (CUPTI) Library + +Windows + +cupti.dll + +Mac OSX + +libcupti.dylib + +Linux + +libcupti.so + +Component + +NVIDIA Tools Extension Library + +Windows + +nvToolsExt.dll, nvToolsExt.lib + +Mac OSX + +libnvToolsExt.dylib + +Linux + +libnvToolsExt.so + +Component + +NVIDIA CUDA Driver Libraries + +Linux + +libcuda.so, libnvidia-ptxjitcompiler.so, libnvptxcompiler_static.a + +Component + +NVIDIA CUDA File IO Libraries and Header + +All + +cufile.h + +Linux + +libcufile.so, libcufile_rdma.so, libcufile_static.a, +libcufile_rdma_static.a + +In addition to the rights above, for parties that are +developing software intended solely for use on Jetson +development kits or Jetson modules, and running Linux for +Tegra software, the following shall apply: + + * The SDK may be distributed in its entirety, as provided by + NVIDIA, and without separation of its components, for you + and/or your licensees to create software development kits + for use only on the Jetson platform and running Linux for + Tegra software. + + +2.7. Attachment B + + +Additional Licensing Obligations + +The following third party components included in the SOFTWARE +are licensed to Licensee pursuant to the following terms and +conditions: + + 1. Licensee's use of the GDB third party component is + subject to the terms and conditions of GNU GPL v3: + + This product includes copyrighted third-party software licensed + under the terms of the GNU General Public License v3 ("GPL v3"). + All third-party software packages are copyright by their respective + authors. GPL v3 terms and conditions are hereby incorporated into + the Agreement by this reference: http://www.gnu.org/licenses/gpl.txt + + Consistent with these licensing requirements, the software + listed below is provided under the terms of the specified + open source software licenses. To obtain source code for + software provided under licenses that require + redistribution of source code, including the GNU General + Public License (GPL) and GNU Lesser General Public License + (LGPL), contact oss-requests@nvidia.com. This offer is + valid for a period of three (3) years from the date of the + distribution of this product by NVIDIA CORPORATION. + + Component License + CUDA-GDB GPL v3 + + 2. Licensee represents and warrants that any and all third + party licensing and/or royalty payment obligations in + connection with Licensee's use of the H.264 video codecs + are solely the responsibility of Licensee. + + 3. Licensee's use of the Thrust library is subject to the + terms and conditions of the Apache License Version 2.0. + All third-party software packages are copyright by their + respective authors. Apache License Version 2.0 terms and + conditions are hereby incorporated into the Agreement by + this reference. + http://www.apache.org/licenses/LICENSE-2.0.html + + In addition, Licensee acknowledges the following notice: + Thrust includes source code from the Boost Iterator, + Tuple, System, and Random Number libraries. + + Boost Software License - Version 1.0 - August 17th, 2003 + . . . . + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all + subject to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR + OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + 4. Licensee's use of the LLVM third party component is + subject to the following terms and conditions: + + ====================================================== + LLVM Release License + ====================================================== + University of Illinois/NCSA + Open Source License + + Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. + All rights reserved. + + Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal with the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at Urbana- + Champaign, nor the names of its contributors may be used to endorse or + promote products derived from this Software without specific prior + written permission. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS WITH THE SOFTWARE. + + 5. Licensee's use of the PCRE third party component is + subject to the following terms and conditions: + + ------------ + PCRE LICENCE + ------------ + PCRE is a library of functions to support regular expressions whose syntax + and semantics are as close as possible to those of the Perl 5 language. + Release 8 of PCRE is distributed under the terms of the "BSD" licence, as + specified below. The documentation for PCRE, supplied in the "doc" + directory, is distributed under the same terms as the software itself. The + basic library functions are written in C and are freestanding. Also + included in the distribution is a set of C++ wrapper functions, and a just- + in-time compiler that can be used to optimize pattern matching. These are + both optional features that can be omitted when the library is built. + + THE BASIC LIBRARY FUNCTIONS + --------------------------- + Written by: Philip Hazel + Email local part: ph10 + Email domain: cam.ac.uk + University of Cambridge Computing Service, + Cambridge, England. + Copyright (c) 1997-2012 University of Cambridge + All rights reserved. + + PCRE JUST-IN-TIME COMPILATION SUPPORT + ------------------------------------- + Written by: Zoltan Herczeg + Email local part: hzmester + Emain domain: freemail.hu + Copyright(c) 2010-2012 Zoltan Herczeg + All rights reserved. + + STACK-LESS JUST-IN-TIME COMPILER + -------------------------------- + Written by: Zoltan Herczeg + Email local part: hzmester + Emain domain: freemail.hu + Copyright(c) 2009-2012 Zoltan Herczeg + All rights reserved. + + THE C++ WRAPPER FUNCTIONS + ------------------------- + Contributed by: Google Inc. + Copyright (c) 2007-2012, Google Inc. + All rights reserved. + + THE "BSD" LICENCE + ----------------- + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the University of Cambridge nor the name of Google + Inc. nor the names of their contributors may be used to endorse or + promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 6. Some of the cuBLAS library routines were written by or + derived from code written by Vasily Volkov and are subject + to the Modified Berkeley Software Distribution License as + follows: + + Copyright (c) 2007-2009, Regents of the University of California + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the University of California, Berkeley nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 7. Some of the cuBLAS library routines were written by or + derived from code written by Davide Barbieri and are + subject to the Modified Berkeley Software Distribution + License as follows: + + Copyright (c) 2008-2009 Davide Barbieri @ University of Rome Tor Vergata. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * The name of the author may not be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 8. Some of the cuBLAS library routines were derived from + code developed by the University of Tennessee and are + subject to the Modified Berkeley Software Distribution + License as follows: + + Copyright (c) 2010 The University of Tennessee. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer listed in this license in the documentation and/or + other materials provided with the distribution. + * Neither the name of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 9. Some of the cuBLAS library routines were written by or + derived from code written by Jonathan Hogg and are subject + to the Modified Berkeley Software Distribution License as + follows: + + Copyright (c) 2012, The Science and Technology Facilities Council (STFC). + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the STFC nor the names of its contributors + may be used to endorse or promote products derived from this + software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE STFC BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 10. Some of the cuBLAS library routines were written by or + derived from code written by Ahmad M. Abdelfattah, David + Keyes, and Hatem Ltaief, and are subject to the Apache + License, Version 2.0, as follows: + + -- (C) Copyright 2013 King Abdullah University of Science and Technology + Authors: + Ahmad Abdelfattah (ahmad.ahmad@kaust.edu.sa) + David Keyes (david.keyes@kaust.edu.sa) + Hatem Ltaief (hatem.ltaief@kaust.edu.sa) + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the King Abdullah University of Science and + Technology nor the names of its contributors may be used to endorse + or promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE + + 11. Some of the cuSPARSE library routines were written by or + derived from code written by Li-Wen Chang and are subject + to the NCSA Open Source License as follows: + + Copyright (c) 2012, University of Illinois. + + All rights reserved. + + Developed by: IMPACT Group, University of Illinois, http://impact.crhc.illinois.edu + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal with the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimers in the documentation and/or other materials provided + with the distribution. + * Neither the names of IMPACT Group, University of Illinois, nor + the names of its contributors may be used to endorse or promote + products derived from this Software without specific prior + written permission. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR + IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE + SOFTWARE. + + 12. Some of the cuRAND library routines were written by or + derived from code written by Mutsuo Saito and Makoto + Matsumoto and are subject to the following license: + + Copyright (c) 2009, 2010 Mutsuo Saito, Makoto Matsumoto and Hiroshima + University. All rights reserved. + + Copyright (c) 2011 Mutsuo Saito, Makoto Matsumoto, Hiroshima + University and University of Tokyo. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the Hiroshima University nor the names of + its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 13. Some of the cuRAND library routines were derived from + code developed by D. E. Shaw Research and are subject to + the following license: + + Copyright 2010-2011, D. E. Shaw Research. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions, and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of D. E. Shaw Research nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 14. Some of the Math library routines were written by or + derived from code developed by Norbert Juffa and are + subject to the following license: + + Copyright (c) 2015-2017, Norbert Juffa + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 15. Licensee's use of the lz4 third party component is + subject to the following terms and conditions: + + Copyright (C) 2011-2013, Yann Collet. + BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 16. The NPP library uses code from the Boost Math Toolkit, + and is subject to the following license: + + Boost Software License - Version 1.0 - August 17th, 2003 + . . . . + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all + subject to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR + OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + 17. Portions of the Nsight Eclipse Edition is subject to the + following license: + + The Eclipse Foundation makes available all content in this plug-in + ("Content"). Unless otherwise indicated below, the Content is provided + to you under the terms and conditions of the Eclipse Public License + Version 1.0 ("EPL"). A copy of the EPL is available at http:// + www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, "Program" + will mean the Content. + + If you did not receive this Content directly from the Eclipse + Foundation, the Content is being redistributed by another party + ("Redistributor") and different terms and conditions may apply to your + use of any object code in the Content. Check the Redistributor's + license that was provided with the Content. If no such license exists, + contact the Redistributor. Unless otherwise indicated below, the terms + and conditions of the EPL still apply to any source code in the + Content and such source code may be obtained at http://www.eclipse.org. + + 18. Some of the cuBLAS library routines uses code from + OpenAI, which is subject to the following license: + + License URL + https://github.com/openai/openai-gemm/blob/master/LICENSE + + License Text + The MIT License + + Copyright (c) 2016 OpenAI (http://openai.com), 2016 Google Inc. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + + 19. Licensee's use of the Visual Studio Setup Configuration + Samples is subject to the following license: + + The MIT License (MIT) + Copyright (C) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + 20. Licensee's use of linmath.h header for CPU functions for + GL vector/matrix operations from lunarG is subject to the + Apache License Version 2.0. + + 21. The DX12-CUDA sample uses the d3dx12.h header, which is + subject to the MIT license. + + 22. Components of the driver and compiler used for binary management, including + nvFatBin, nvcc, and cuobjdump, use the Zstandard library which is subject to + the following license: + + BSD License + + For Zstandard software + + Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name Facebook, nor Meta, nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + +----------------- diff --git a/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/paths.json b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..eebb9ae761408ce6dd883cc0491e1fe015c6067f --- /dev/null +++ b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/paths.json @@ -0,0 +1,17 @@ +{ + "paths": [ + { + "_path": "LICENSE", + "path_type": "hardlink", + "sha256": "e2c71babfd18a8e69542dd7e9ca018f9caa438094001a58e6bc4d8c999bf0d07", + "size_in_bytes": 63021 + }, + { + "_path": "bin/cuobjdump", + "path_type": "hardlink", + "sha256": "9a127e39d662e56d1847b0f08c4a36d53ef6e4900d0592df93b4521a177d1722", + "size_in_bytes": 573088 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/repodata_record.json b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..05929415090d2133fd020bb8ce8997540b46aed5 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/repodata_record.json @@ -0,0 +1,25 @@ +{ + "name": "cuda-cuobjdump", + "version": "12.8.90", + "build": "0", + "build_number": 0, + "channel": "https://conda.anaconda.org/nvidia/linux-64", + "subdir": "linux-64", + "fn": "cuda-cuobjdump-12.8.90-0.conda", + "md5": "123d447c6cf4733477a81e82871e65c6", + "url": "https://conda.anaconda.org/nvidia/linux-64/cuda-cuobjdump-12.8.90-0.conda", + "sha256": "55997843ae72dd4105cab0ac47e2264bc9c49bfeb24a3d8a3e4fd49bbc1687d9", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "__glibc >=2.17,<3.0.a0", + "cuda-nvdisasm", + "cuda-version >=12.8,<12.9.0a0", + "libgcc-ng >=11.2.0", + "libstdcxx-ng >=11.2.0" + ], + "constrains": [], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "timestamp": 1739446162000, + "size": 228699 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/test/run_test.sh b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..66ac5af4c37eda9bf29b9945ffc1f0e88e361763 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-cuobjdump-12.8.90-0/info/test/run_test.sh @@ -0,0 +1,8 @@ + + +set -ex + + + +test -f $PREFIX/bin/cuobjdump +exit 0 diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/bin/cuda-gdb b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/bin/cuda-gdb new file mode 100644 index 0000000000000000000000000000000000000000..f6ee66da66bcfbfbb1348405b6be963081e42266 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/bin/cuda-gdb @@ -0,0 +1,57 @@ +#!/usr/bin/env bash + +# Check the cuda-gdb executables in order of preference +# for unresolved shared library references. + +# Start with the value of CUDA_GDB_BINARIES, so that end-users can put their own +# at the front of the list. +CUDA_GDB_BINARIES="$CUDA_GDB_BINARIES cuda-gdb-python3.12-tui" +CUDA_GDB_BINARIES="$CUDA_GDB_BINARIES cuda-gdb-python3.11-tui" +CUDA_GDB_BINARIES="$CUDA_GDB_BINARIES cuda-gdb-python3.10-tui" +CUDA_GDB_BINARIES="$CUDA_GDB_BINARIES cuda-gdb-python3.9-tui" +CUDA_GDB_BINARIES="$CUDA_GDB_BINARIES cuda-gdb-python3.8-tui" +CUDA_GDB_BINARIES="$CUDA_GDB_BINARIES cuda-gdb-minimal" + +PRINT_VERSION=0 +for arg in $*; do + if [ "$arg" == "--version" ]; then + PRINT_VERSION=1 + break + fi +done + +exec_cuda_gdb() { + binary="$1" + shift + + # Check to see if the specified cuda-gdb executable will run on this + # system by invoking cuda-gdb with --version. If it succeeds + # with exit code 0, go ahead and run the binary + $binary --version > /dev/null 2>&1 + if [ $? == 0 ]; then + if [ "$PRINT_VERSION" != 0 ]; then + echo "exec:" "$binary" "$@" + fi + exec "$binary" "$@" + fi +} + +# Check $PATH first +for binary in $CUDA_GDB_BINARIES; do + exec_cuda_gdb "$binary" "$@" +done + +# No binary could be found on $PATH +# Check again alongside this wrapper script. +# Note that 'dirname cuda-gdb-python3.12-tui' will return '.' +# even without an explicit leading './' +WRAPPER_SCRIPT_DIR=`dirname $0` +for binary in $CUDA_GDB_BINARIES; do + if [ -f "$WRAPPER_SCRIPT_DIR/$binary" ]; then + exec_cuda_gdb "$WRAPPER_SCRIPT_DIR/$binary" "$@" + fi +done + +echo "Could not find system compatible cuda-gdb binary executable" 1>&2 +echo "Supported binaries are:" $CUDA_GDB_BINARIES 1>&2 +exit 1 diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/Readme.txt b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/Readme.txt new file mode 100644 index 0000000000000000000000000000000000000000..a87a74b5e1fbac16a1fba6e90c87c5aca6d9759f --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/Readme.txt @@ -0,0 +1,24 @@ +-------------------------------------------------------------------------------- + + DEBUGGER API + +-------------------------------------------------------------------------------- + +The debugger API is a set of routines that allows debuggers to control the +execution and to inspect NVIDIA GPUs running CUDA kernels. Third-party +debuggers must be linked against the CUDA driver library (libcuda.so) to use +the debugger API. + +The files in the extras/debugger directory contains all the files related to +the debugger API: + + cudadebugger.h + + The header file for the debugger API. + + cuda-stdint.h + + Support file for cudadebugger.h. Includes basic types used by + cudadebugger.h. + +See the CUDA Toolkit documentation for more details about the debugger API. diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/include/cuda_stdint.h b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/include/cuda_stdint.h new file mode 100644 index 0000000000000000000000000000000000000000..8a9814410e4b6fb4f07ad9edc8394e956b77dbcd --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/include/cuda_stdint.h @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef __cuda_stdint_h__ +#define __cuda_stdint_h__ + +// Compiler-specific treatment for C99's stdint.h +// +// By default, this header will use the standard headers (so it +// is your responsibility to make sure they are available), except +// on MSVC before Visual Studio 2010, when they were not provided. +// To support old MSVC, a few of the commonly-used definitions are +// provided here. If more definitions are needed, add them here, +// or replace these definitions with a complete implementation, +// such as the ones available from Google, Boost, or MSVC10. You +// can prevent the definition of any of these types (in order to +// use your own) by #defining CU_STDINT_TYPES_ALREADY_DEFINED. + +#if !defined(CU_STDINT_TYPES_ALREADY_DEFINED) + +// In VS including stdint.h forces the C++ runtime dep - provide an opt-out +// (CU_STDINT_VS_FORCE_NO_STDINT_H) for users that care (notably static +// cudart). +#if defined(_MSC_VER) && ((_MSC_VER < 1600) || defined(CU_STDINT_VS_FORCE_NO_STDINT_H)) + +// These definitions can be used with MSVC 8 and 9, +// which don't ship with stdint.h: + +typedef unsigned char uint8_t; + +typedef short int16_t; +typedef unsigned short uint16_t; + +// To keep it consistent with all MSVC build. define those types +// in the exact same way they are defined with the MSVC headers +#if defined(_MSC_VER) +typedef signed char int8_t; + +typedef int int32_t; +typedef unsigned int uint32_t; + +typedef long long int64_t; +typedef unsigned long long uint64_t; +#else +typedef char int8_t; + +typedef long int32_t; +typedef unsigned long uint32_t; + +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; +#endif + +#elif defined(__DJGPP__) + +// These definitions can be used when compiling +// C code with DJGPP, which only provides stdint.h +// when compiling C++ code with TR1 enabled. + +typedef char int8_t; +typedef unsigned char uint8_t; + +typedef short int16_t; +typedef unsigned short uint16_t; + +typedef long int32_t; +typedef unsigned long uint32_t; + +typedef long long int64_t; +typedef unsigned long long uint64_t; + +#else + +// Use standard headers, as specified by C99 and C++ TR1. +// Known to be provided by: +// - gcc/glibc, supported by all versions of glibc +// - djgpp, supported since 2001 +// - MSVC, supported by Visual Studio 2010 and later + +#include + +#endif + +#endif // !defined(CU_STDINT_TYPES_ALREADY_DEFINED) + + +#endif // file guard diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/include/cudacoredump.h b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/include/cudacoredump.h new file mode 100644 index 0000000000000000000000000000000000000000..4f9ecd3804e67582c79f430f9caa7ebcc65a00a2 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/include/cudacoredump.h @@ -0,0 +1,807 @@ +/* + * Copyright 2007-2024 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef __CUDACOREDUMP_H__ +#define __CUDACOREDUMP_H__ +#include "cuda_stdint.h" + +/* + * cudacoredump.h - Public format description of the CUDA coredump + */ + +/* ==================== */ +/* ===== Overview ===== */ +/* ==================== */ + +/* + * CUDA coredumps are ELF files with the following identifying header fields: + * - abi: ELFOSABI_CUDA (0x33) + * - machine: EM_CUDA (0xbe) + * - type: ET_CORE (4) + * + * Coredump data is stored in separate sections, each of which is described + * below. Note that new fields can be added to each of these sections in new + * driver versions, so any coredump readers need to be careful and check each + * section's element size before accessing the fields that were not present + * in the baseline version of the section. Section descriptions below make it + * clear which fields might not be present. + * + * Coredump sections are named hierarchically, the hierarchy looks like this: + * - Global memory + * - CUDA device information + * - CUDA context information + * - Loaded modules information + * - Module's relocated ELF image (cubin) + * - Module's non-relocated ELF image (cubin) + * - CUDA grid information + * - Grid parameter memory + * - Grid constbank information + * - SM information + * - Block (CTA) information + * - Block shared memory + * - Warp information + * - Warp uniform registers + * - Warp uniform predicates + * - Thread information + * - Thread local memory + * - Thread registers + * - Thread predicates + * - Thread call stack + * + * More information about each particular section is given below. + * + * ===== Brief format history ===== + * + * CUDA Driver r346: + * - Initial CUDA coredump functionality release + * CUDA Driver r400: + * - Added uniform registers and uniform predicates + * CUDA Driver r525: + * - Added cluster index and cluster dimensions + * - Added number of registers per warp + * CUDA Driver r550: + * - Added constbank information + * CUDA Driver r555: + * - Added exception information per SM + * CUDA Driver r565: + * - Added metadata section + * - Added preferred cluster dimensions + * - Added per-CTA cluster dimensions + * - Added cluster exception target block index + * CUDA Driver r570: + * - Added per-warp shared memory usage + */ + +/* ======================================= */ +/* ===== Section-related definitions ===== */ +/* ======================================= */ + +#ifndef SHT_LOUSER +#define SHT_LOUSER 0x80000000 +#endif + +/* CUDA coredump section types. + * See corresponding sections below for usage. + */ +typedef enum { + CUDBG_SHT_MANAGED_MEM = SHT_LOUSER + 1, + CUDBG_SHT_GLOBAL_MEM = SHT_LOUSER + 2, + CUDBG_SHT_LOCAL_MEM = SHT_LOUSER + 3, + CUDBG_SHT_SHARED_MEM = SHT_LOUSER + 4, + CUDBG_SHT_DEV_REGS = SHT_LOUSER + 5, + CUDBG_SHT_ELF_IMG = SHT_LOUSER + 6, + CUDBG_SHT_RELF_IMG = SHT_LOUSER + 7, + CUDBG_SHT_BT = SHT_LOUSER + 8, + CUDBG_SHT_DEV_TABLE = SHT_LOUSER + 9, + CUDBG_SHT_CTX_TABLE = SHT_LOUSER + 10, + CUDBG_SHT_SM_TABLE = SHT_LOUSER + 11, + CUDBG_SHT_GRID_TABLE = SHT_LOUSER + 12, + CUDBG_SHT_CTA_TABLE = SHT_LOUSER + 13, + CUDBG_SHT_WP_TABLE = SHT_LOUSER + 14, + CUDBG_SHT_LN_TABLE = SHT_LOUSER + 15, + CUDBG_SHT_MOD_TABLE = SHT_LOUSER + 16, + CUDBG_SHT_DEV_PRED = SHT_LOUSER + 17, + CUDBG_SHT_PARAM_MEM = SHT_LOUSER + 18, + /* Since CUDA Driver r400 */ + CUDBG_SHT_DEV_UREGS = SHT_LOUSER + 19, + CUDBG_SHT_DEV_UPRED = SHT_LOUSER + 20, + /* Since CUDA Driver r550 */ + CUDBG_SHT_CB_TABLE = SHT_LOUSER + 21, + /* Since CUDA Driver r565 */ + CUDBG_SHT_META_DATA = SHT_LOUSER + 22, +} CudbgSectionHeaderTypes; + +/* CUDA section name prefixes. + * See corresponding sections below for usage. + */ +#define CUDBG_SHNAME_GLOBAL ".cudbg.global" +#define CUDBG_SHNAME_LOCAL ".cudbg.local" +#define CUDBG_SHNAME_SHARED ".cudbg.shared" +#define CUDBG_SHNAME_REGS ".cudbg.regs" +#define CUDBG_SHNAME_PARAM ".cudbg.param" +#define CUDBG_SHNAME_PRED ".cudbg.pred" +#define CUDBG_SHNAME_DEVTABLE ".cudbg.devtbl" +#define CUDBG_SHNAME_CTXTABLE ".cudbg.ctxtbl" +#define CUDBG_SHNAME_SMTABLE ".cudbg.smtbl" +#define CUDBG_SHNAME_GRIDTABLE ".cudbg.gridtbl" +#define CUDBG_SHNAME_CTATABLE ".cudbg.ctatbl" +#define CUDBG_SHNAME_WPTABLE ".cudbg.wptbl" +#define CUDBG_SHNAME_LNTABLE ".cudbg.lntbl" +#define CUDBG_SHNAME_BT ".cudbg.bt" +#define CUDBG_SHNAME_MODTABLE ".cudbg.modtbl" +#define CUDBG_SHNAME_ELFIMG ".cudbg.elfimg" +#define CUDBG_SHNAME_RELFIMG ".cudbg.relfimg" +/* Since CUDA Driver r400 */ +#define CUDBG_SHNAME_UREGS ".cudbg.uregs" +#define CUDBG_SHNAME_UPRED ".cudbg.upred" +/* Since CUDA Driver r550 */ +#define CUDBG_SHNAME_CBTABLE ".cudbg.cbankstbl" +/* Since CUDA Driver r565 */ +#define CUDBG_SHNAME_META_DATA ".cudbg.meta" + +/* ========================================= */ +/* ===== Detailed section descriptions ===== */ +/* ========================================= */ + +/* Global memory + * + * Contains raw global memory (does not have a separate struct in this file). + * These sections are dumped in order and their names contain the monotonically + * increasing index, will be referred to as below. + * Not present if dumping memory is disabled. + * + * Section name format: sprintf("%s.%d", CUDBG_SHNAME_GLOBAL, ) + * Section header type: CUDBG_SHT_GLOBAL_MEM (or, if managed memory, CUDBG_SHT_MANAGED_MEM) + * Section element type: byte data + * Section addr: global address of the start of this memory block + * Section link: 0 + * Section info: 0 + */ + +/* + * CUDA device table + * + * Contains descriptions of all CUDA devices visible to the application + * at the moment of coredump generation. Device index in this table is used + * in other section names, will be referred to as below. + * Only one such section per coredump file. + * + * Section name format: CUDBG_SHNAME_DEVTABLE (no suffix) + * Section header type: CUDBG_SHT_DEV_TABLE + * Section element type: CudbgDeviceTableEntry + * Section link: 0 + * Section info: 0 + * + * Related sections: + * + * 1. CUDA context table, per device - see below + * + * 2. CUDA grid table, per device - see below + * + * 3. SM information, per device - see below + */ +typedef struct { + /* Display name of the device + * This field is an index into the string table. + */ + uint64_t devName; + /* Internal name of the device + * This field is an index into the string table. + */ + uint64_t devType; + /* ISA version of the device + * This field is an index into the string table. + */ + uint64_t smType; + /* CUDA device ID */ + uint32_t devId; + /* PCI bus ID of the device */ + uint32_t pciBusId; + /* PCI device ID of the device */ + uint32_t pciDevId; + /* Number of SMs this device has */ + uint32_t numSMs; + /* Number of warps in each SM */ + uint32_t numWarpsPerSM; + /* Number of lanes in each warp */ + uint32_t numLanesPerWarp; + /* Maximum number of registers per lane + * Use CudbgGridTableEntry::numRegs and CudbgWarpTableEntry::numRegs + * for the actual number of registers per grid and warp. + */ + uint32_t numRegsPerLane; + /* Number of predicates per lane */ + uint32_t numPredicatesPrLane; + /* Major version of the SM */ + uint32_t smMajor; + /* Minor version of the SM */ + uint32_t smMinor; + /* GPU instruction size in bytes */ + uint32_t instructionSize; + /* Device status + * This field is of type CUDBGResult, see cudadebugger.h. + */ + uint32_t status; + + /* ================================== */ + /* ===== Since CUDA Driver r400 ===== */ + /* ================================== */ + + /* Number of uniform registers per warp */ + uint32_t numUniformRegsPrWarp; + /* Number of uniform predicates per warp */ + uint32_t numUniformPredicatesPrWarp; +} CudbgDeviceTableEntry; + +/* + * CUDA context table, per device + * + * Contains descriptions of all CUDA contexts for a particular device. + * Context index in this table is used in other section names, + * will be referred to as below. + * + * Section name format: sprintf("%s.dev%d", CUDBG_SHNAME_CTXTABLE, devIdx) + * Section header type: CUDBG_SHT_CTX_TABLE + * Section element type: CudbgContextTableEntry + * Section link: section header index of the (unique) CUDA device table + * Section info: devIdx + * + * Related sections: + * + * 1. Loaded modules table, per context - see below + */ +typedef struct { + /* Handle of this context */ + uint64_t contextId; + /* Global address of the start of the shared memory window */ + uint64_t sharedWindowBase; + /* Global address of the start of the local memory window */ + uint64_t localWindowBase; + /* Global address of the start of the global memory window */ + uint64_t globalWindowBase; + /* CUDA device ID of the containing device */ + uint32_t deviceIdx; + /* Thread ID of the host thread that owns this context */ + uint32_t tid; +} CudbgContextTableEntry; + +/* + * Loaded modules table, per context + * + * Contains information about all modules loaded in a particular context. + * Module index in this table is used in other section names, + * will be referred to as below. + * + * Section name format: sprintf("%s.dev%d.ctx%d", CUDBG_SHNAME_MODTABLE, devIdx, ctxIdx) + * Section header type: CUDBG_SHT_MOD_TABLE + * Section element type: CudbgModuleTableEntry + * Section link: section header index of the corresponding CUDA context table + * Section info: ctxIdx + * + * Related sections: + * + * 1. Relocated ELF image (cubin) of the module + * + * Contains raw cubin data (does not have a separate struct in this file). + * There can be several sections with the same name since the module index + * is not a part of the section name. They can be distinguished by the + * section header's link or info fields. + * + * Section name format: sprintf("%s.dev%d.ctx%d", CUDBG_SHNAME_RELFIMG, devIdx, ctxIdx) + * Section header type: CUDBG_SHT_RELF_IMG + * Section element type: byte data + * Section link: section header index of the corresponding module table + * Section info: modIdx + * + * 2. Non-relocated ELF image (cubin) of the module + * + * Contains raw cubin data (does not have a separate struct in this file). + * There can be several sections with the same name since the module index + * is not a part of the section name. They can be distinguished by the + * section header's link or info fields. + * Not present if dumping non-relocated cubins is disabled. + * + * Section name format: sprintf("%s.dev%d.ctx%d", CUDBG_SHNAME_ELFIMG, devIdx, ctxIdx) + * Section header type: CUDBG_SHT_ELF_IMG + * Section element type: byte data + * Section link: section header index of the corresponding module table + * Section info: modIdx + */ +typedef struct { + /* Handle of the loaded module */ + uint64_t moduleHandle; +} CudbgModuleTableEntry; + +/* + * CUDA grid table, per device + * + * Contains descriptions of all grids running on the device at the moment of + * coredump generation. Grid index in this table is used in other section names, + * will be referred to as below. + * + * Section name format: sprintf("%s.dev%d", CUDBG_SHNAME_GRIDTABLE, devIdx) + * Section header type: CUDBG_SHT_GRID_TABLE + * Section element type: CudbgGridTableEntry + * Section link: section header index of the (unique) CUDA device table + * Section info: devIdx + * + * Related sections: + * + * 1. CUDA grid param memory, per grid + * + * Contains raw grid parameter memory (does not have a separate struct + * in this file). Not present if dumping memory is disabled. + * + * Section name format: sprintf("%s.dev%d.grid%d", CUDBG_SHNAME_PARAM, devIdx, gridIdx) + * Section header type: CUDBG_SHT_PARAM_MEM + * Section element type: byte data + * Section link: section header index of the corresponding CUDA grid table + * Section info: gridIdx + * + * 2. CUDA constbank information, per grid - see below + */ +typedef struct { + /* Grid ID, an opaque 64bit number */ + uint64_t gridId64; + /* Handle of the context containing this grid */ + uint64_t contextId; + /* Handle of the kernel that this grid is executing */ + uint64_t function; + /* Entry address of this grid's kernel */ + uint64_t functionEntry; + /* Handler of the module containing this grid's kernel */ + uint64_t moduleHandle; + /* ID of the parent grid (in case of a device-launched CDP grid) */ + uint64_t parentGridId64; + /* Offset in the constbank 0 where the parameters start */ + uint64_t paramsOffset; + /* Type of this grid's kernel + * This field is of type CUDBGKernelType, see cudadebugger.h. + */ + uint32_t kernelType; + /* Where this grid was launched from + * This field is of type CUDBGKernelOrigin, see cudadebugger.h. + */ + uint32_t origin; + /* Status of this grid at the moment of coredump generation + * This field is of type CUDBGGridStatus, see cudadebugger.h. + */ + uint32_t gridStatus; + /* Number of registers this grid uses */ + uint32_t numRegs; + /* Grid dimension X */ + uint32_t gridDimX; + /* Grid dimension Y */ + uint32_t gridDimY; + /* Grid dimension Z */ + uint32_t gridDimZ; + /* Block dimension X */ + uint32_t blockDimX; + /* Block dimension Y */ + uint32_t blockDimY; + /* Block dimension Z */ + uint32_t blockDimZ; + /* Whether this grid's launch was blocking + * This field is semantically boolean. + */ + uint32_t attrLaunchBlocking; + /* Thread ID of the host thread that launched this grid */ + uint32_t attrHostTid; + + /* ================================== */ + /* ===== Since CUDA Driver r525 ===== */ + /* ================================== */ + + /* Cluster dimension X */ + uint32_t clusterDimX; + /* Cluster dimension Y */ + uint32_t clusterDimY; + /* Cluster dimension Z */ + uint32_t clusterDimZ; + /* Padding, ignore */ + uint32_t padding0; + + /* ================================== */ + /* ===== Since CUDA Driver r565 ===== */ + /* ================================== */ + + /* Preferred cluster dimension X */ + uint32_t preferredClusterDimX; + /* Preferred cluster dimension Y */ + uint32_t preferredClusterDimY; + /* Preferred cluster dimension Z */ + uint32_t preferredClusterDimZ; + /* Padding, ignore */ + uint32_t padding1; +} CudbgGridTableEntry; + +/* + * CUDA constbank information, per grid + * + * Since CUDA Driver r550. + * + * Contains information about all constbanks for a given grid. + * + * Section name format: sprintf("%s.dev%u.grid%u", CUDBG_SHNAME_CBTABLE, devIdx, gridIdx) + * Section header type: CUDBG_SHT_CB_TABLE + * Section element type: CudbgConstBankTableEntry + * Section link: section header index of the corresponding CUDA grid table + * Section info: gridIdx + */ +typedef struct { + /* Global address of this constbank's start */ + uint64_t addr; + /* Size of this constbank in bytes */ + uint32_t size; + /* ID (number) of this constbank */ + uint32_t bankId; +} CudbgConstBankTableEntry; + +/* + * SM information, per device + * + * Contains information about all SMs for a given device. SM index in this + * table is used in other section names, will be referred to as below. + * + * Section name format: sprintf("%s.dev%d", CUDBG_SHNAME_SMTABLE, devIdx) + * Section header type: CUDBG_SHT_SM_TABLE + * Section element type: CudbgSmTableEntry + * Section link: section header index of the (unique) CUDA device table + * Section info: devIdx + * + * Related sections: + * + * 1. Block (CTA) information, per SM - see below + */ +typedef struct { + /* ID (number) of this SM */ + uint32_t smId; + /* Padding, ignore */ + uint32_t padding0; + + /* ================================== */ + /* ===== Since CUDA Driver r555 ===== */ + /* ================================== */ + + /* Exception that occurred in any of the warps. + * This is useful when all faulted warps for an SM have + * exited before an exception was reported. + * This field is of type CUDBGException_t, see cudadebugger.h. + */ + uint32_t exception; + /* If non-zero, the following errorPC of the exception is valid. + * Semantically boolean. + */ + uint32_t errorPCValid; + /* PC where an error occurred in any of the warps. + * This is useful when all faulted warps for an SM have + * exited before an exception was reported. + */ + uint64_t errorPC; + + /* If non-zero, the following clusterExceptionTargetBlockIdx of the + * exception is valid. Semantically boolean. + */ + uint32_t clusterExceptionTargetBlockIdxValid; + /* For cluster exceptions, following x,y,z fields represent the target block + * index handling cluster requests. + * Block index, X */ + uint32_t clusterExceptionTargetBlockIdxX; + /* Block index, Y */ + uint32_t clusterExceptionTargetBlockIdxY; + /* Block index, Z */ + uint32_t clusterExceptionTargetBlockIdxZ; +} CudbgSmTableEntry; + +/* + * Block (CTA) information, per SM + * + * Contains information about all blocks for a given SM. Block index in this + * table is used in other section names, will be referred to as below. + * + * Section name format: sprintf("%s.dev%d.sm%d", CUDBG_SHNAME_CTATABLE, devIdx, smIdx) + * Section header type: CUDBG_SHT_CTA_TABLE + * Section element type: CudbgCTATableEntry + * Section link: section header index of corresponding SM table + * Section info: smIdx + * + * Related sections: + * + * 1. Block shared memory, per block + * + * Contains raw block shared memory (does not have a separate struct + * in this file). Not present if dumping memory is disabled. + * + * Section name format: sprintf("%s.dev%d.sm%d.cta%d", CUDBG_SHNAME_SHARED, devIdx, smIdx, ctaIdx) + * Section header type: CUDBG_SHT_SHARED_MEM + * Section element type: byte data + * Section link: section header index of the corresponding block table + * Section info: ctaIdx + * + * 2. Warp information, per block (CTA) - see below + */ +typedef struct { + /* Grid ID of the grid containing this block */ + uint64_t gridId64; + /* Block index, X */ + uint32_t blockIdxX; + /* Block index, Y */ + uint32_t blockIdxY; + /* Block index, Z */ + uint32_t blockIdxZ; + /* Padding, ignore */ + uint32_t padding0; + + /* ================================== */ + /* ===== Since CUDA Driver r525 ===== */ + /* ================================== */ + + /* Cluster index, X */ + uint32_t clusterIdxX; + /* Cluster index, Y */ + uint32_t clusterIdxY; + /* Cluster index, Z */ + uint32_t clusterIdxZ; + /* Padding, ignore */ + uint32_t padding1; + + /* ================================== */ + /* ===== Since CUDA Driver r565 ===== */ + /* ================================== */ + + /* Cluster dimension X */ + uint32_t clusterDimX; + /* Cluster dimension Y */ + uint32_t clusterDimY; + /* Cluster dimension Z */ + uint32_t clusterDimZ; + /* Padding, ignore */ + uint32_t padding2; +} CudbgCTATableEntry; + +/* + * Warp information, per block (CTA) + * + * Contains information about all warps for a given CTA. Warp index in this + * table is used in other section names, will be referred to as below. + * + * Section name format: sprintf("%s.dev%d.sm%d.cta%d", CUDBG_SHNAME_WPTABLE, devIdx, smIdx, ctaIdx) + * Section header type: CUDBG_SHT_WP_TABLE + * Section element type: CudbgWarpTableEntry + * Section link: section header index of corresponding block table + * Section info: ctaIdx + * + * Related sections: + * + * 1. Uniform registers, per warp + * + * Since CUDA Driver r400. + * + * Contains raw uniform registers memory (does not have a separate struct + * in this file). Not present if the device doesn't have uniform registers. + * + * Section name format: sprintf("%s.dev%d.sm%d.cta%d.wp%d", CUDBG_SHNAME_UREGS, devIdx, smIdx, ctaIdx, warpIdx) + * Section header type: CUDBG_SHT_DEV_UREGS + * Section element type: uint32_t data + * Section link: section header index of the corresponding warp table + * Section info: warpIdx + * + * 2. Uniform predicates, per warp + * + * Since CUDA Driver r400. + * + * Contains raw uniform predicates (does not have a separate struct in this + * file). Not present if the device doesn't have uniform predicates. + * + * Section name format: sprintf("%s.dev%d.sm%d.cta%d.wp%d", CUDBG_SHNAME_UPRED, devIdx, smIdx, ctaIdx, warpIdx) + * Section header type: CUDBG_SHT_DEV_UPRED + * Section element type: uint32_t data (each value is semantically boolean) + * Section link: section header index of the corresponding warp table + * Section info: warpIdx + * + * 3. Thread information, per warp - see below + */ +typedef struct { + /* PC which has triggered a warp error + * This field is only valid if errorPCValid is non-zero. + */ + uint64_t errorPC; + /* ID (number) of this warp */ + uint32_t warpId; + /* Mask of the valid lanes */ + uint32_t validLanesMask; + /* Mask of the active (non-diverged) lanes */ + uint32_t activeLanesMask; + /* Indicates whether this warp has hit a breakpoint + * This field is semantically boolean. + */ + uint32_t isWarpBroken; + /* Indicates whether the errorPC field is valid + * This field is semantically boolean. + */ + uint32_t errorPCValid; + /* Padding, ignore */ + uint32_t padding0; + + /* ================================== */ + /* ===== Since CUDA Driver r525 ===== */ + /* ================================== */ + + /* Number of registers used by this warp */ + uint32_t numRegs; + /* Padding, ignore */ + uint32_t padding1; + + /* ================================== */ + /* ===== Since CUDA Driver r570 ===== */ + /* ================================== */ + + /* Shared memory size */ + uint32_t sharedMemSize; + /* Padding, ignore */ + uint32_t padding2; +} CudbgWarpTableEntry; + +/* + * Thread information, per warp + * + * Contains information about all threads for a given warp. Thread index in this + * table is used in other section names, will be referred to as below. + * + * Section name format: sprintf("%s.dev%d.sm%d.cta%d.wp%d", CUDBG_SHNAME_LNTABLE, devIdx, smIdx, ctaIdx, warpIdx) + * Section header type: CUDBG_SHT_LN_TABLE + * Section element type: CudbgThreadTableEntry + * Section link: section header index of corresponding warp table + * Section info: warpIdx + * + * Related sections: + * + * 1. Thread local memory, per thread + * + * Contains raw thread local memory (does not have a separate struct in this + * file). Not present if dumping memory is disabled. + * + * Section name format: sprintf("%s.dev%d.sm%d.cta%d.wp%d.ln%d", CUDBG_SHNAME_LOCAL, devIdx, smIdx, ctaIdx, warpIdx, laneIdx) + * Section header type: CUDBG_SHT_LOCAL_MEM + * Section element type: byte data + * Section addr: local memory address of the start of the dumped local memory + * Section link: section header index of the corresponding thread table + * Section info: laneIdx + * + * 2. Thread registers + * + * Contains raw registers memory (does not have a separate struct in this file). + * + * Section name format: sprintf("%s.dev%d.sm%d.cta%d.wp%d.ln%d", CUDBG_SHNAME_REGS, devIdx, smIdx, ctaIdx, warpIdx, laneIdx) + * Section header type: CUDBG_SHT_DEV_REGS + * Section element type: uint32_t data + * Section link: section header index of the corresponding thread table + * Section info: laneIdx + * + * 3. Thread predicates + * + * Contains raw predicates memory (does not have a separate struct in this file). + * + * Section name format: sprintf("%s.dev%d.sm%d.cta%d.wp%d.ln%d", CUDBG_SHNAME_PRED, devIdx, smIdx, ctaIdx, warpIdx, laneIdx) + * Section header type: CUDBG_SHT_DEV_PRED + * Section element type: uint32_t data (each value is semantically boolean) + * Section link: section header index of the corresponding thread table + * Section info: laneIdx + * + * 4. Thread call stack, per thread - see below + */ +typedef struct { + /* PC of this thread + * In coredumps generated with the new unified backend this will be + * a global address in GPU memory corresponding to the physical PC. + * In coredumps generated with the older classic backend this will be + * a global address in CPU memory where a copy of the GPU code is stored. + */ + uint64_t virtualPC; + /* Offset of this thread's PC from the start of the currently executing function */ + uint64_t physPC; + /* Lane ID (number) of this thread */ + uint32_t ln; + /* Thread index, X */ + uint32_t threadIdxX; + /* Thread index, Y */ + uint32_t threadIdxY; + /* Thread index, Z */ + uint32_t threadIdxZ; + /* Exception hit by this thread, if any + * This field is of type CUDBGException_t, see cudadebugger.h. + */ + uint32_t exception; + /* Call depth of the call stack of this thread + * This field's value includes the number of frames that are in syscall. + */ + uint32_t callDepth; + /* Number of call stack frames that are in a syscall */ + uint32_t syscallCallDepth; + /* Special CC register, only available on pre-Volta GPUs */ + uint32_t ccRegister; +} CudbgThreadTableEntry; + +/* + * Thread call stack, per thread + * + * Contains information about the stack frames for a given thread. + * + * Section name format: sprintf("%s.dev%d.sm%d.cta%d.wp%d.ln%d", CUDBG_SHNAME_BT, devIdx, smIdx, ctaIdx, warpIdx, laneIdx) + * Section header type: CUDBG_SHT_BT + * Section element type: CudbgBacktraceTableEntry + * Section link: section header index of corresponding thread table + * Section info: laneIdx + */ +typedef struct { + /* Offset of the return address from the start of the caller function */ + uint64_t returnAddress; + /* Return address of this call stack frame + * In coredumps generated with the new unified backend this will be + * a global address in GPU memory containing the code to return to. + * In coredumps generated with the older classic backend this will be + * a global address in CPU memory containing a copy of the GPU code. + */ + uint64_t virtualReturnAddress; + /* Stack frame level */ + uint32_t level; + /* Padding, ignore */ + uint32_t pad; +} CudbgBacktraceTableEntry; + +/* + * CUDA coredump metadata. + * + * Since CUDA Driver r565. + * + * Contains additional information about the coredump. + * + * Section name format: CUDBG_SHNAME_META_DATA + * Section header type: CUDBG_SHT_META_DATA + * Section element type: CudbgMetaDataEntry + * Section link: 0 + * Section info: 0 + */ +typedef struct { + /* Identifier for the generator of the coredump. + * This field is an index into the string table. + */ + uint64_t generatorName; + /* The version of the GPU driver as reported by NVML API. Not set on Tegra. */ + uint32_t driverVersionMajor; + uint32_t driverVersionMinor; + /* The version of the CUDA driver as reported by the driver API (e.g. 12/7) */ + uint32_t cudaDriverVersionMajor; + uint32_t cudaDriverVersionMinor; + /* Flags used to generate the coredump (CUDBGCoredumpGenerationFlags) */ + uint32_t flags; + /* Timestamp of this coredump, in seconds since the UNIX Epoch */ + uint32_t timestamp; +} CudbgMetaDataEntry; + +#endif // __CUDACOREDUMP_H__ diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/include/cudadebugger.h b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/include/cudadebugger.h new file mode 100644 index 0000000000000000000000000000000000000000..0fa2c8d646f2815f0d58e151a6c39bc5d24512fa --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/extras/Debugger/include/cudadebugger.h @@ -0,0 +1,1376 @@ +/* + * Copyright 2007-2024 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + +/*--------------------------------- Includes --------------------------------*/ + +#ifndef CUDADEBUGGER_H +#define CUDADEBUGGER_H + + + +#include +#include "cuda_stdint.h" + +#if defined(__STDC__) +#include +#endif + +#if defined(_MSC_VER) && _MSC_VER < 1800 +// old MSVC does not support stdbool.h +typedef unsigned char bool; +#undef false +#undef true +#define false 0 +#define true 1 +#else +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* OS-agnostic _CUDBG_INLINE */ +#if defined(_WIN32) +#define _CUDBG_INLINE __inline +#else +#define _CUDBG_INLINE inline +#endif + + +/*--------------------------------- API Version ------------------------------*/ + +#define CUDBG_API_VERSION_MAJOR 12 /* Major release version number */ +#define CUDBG_API_VERSION_MINOR 8 /* Minor release version number */ +#define CUDBG_API_VERSION_REVISION 152 /* Revision (build) number */ + +/*---------------------------------- Constants -------------------------------*/ + +#define CUDBG_MAX_DEVICES 64 /* Maximum number of supported devices */ +#define CUDBG_MAX_SMS 256 /* Maximum number of SMs per device */ +#define CUDBG_MAX_WARPS 64 /* Maximum number of warps per SM */ +#define CUDBG_MAX_LANES 32 /* Maximum number of lanes per warp */ + +/*----------------------- Thread/Block Coordinates Types ---------------------*/ + +typedef struct { uint32_t x, y; } CuDim2; /* DEPRECATED */ +typedef struct { uint32_t x, y, z; } CuDim3; /* 3-dimensional coordinates for threads,... */ + +/*--------------------- Memory Segments (as used in DWARF) -------------------*/ + +typedef enum { + ptxUNSPECIFIEDStorage, + ptxCodeStorage, + ptxRegStorage, + ptxSregStorage, + ptxConstStorage, + ptxGlobalStorage, + ptxLocalStorage, + ptxParamStorage, + ptxSharedStorage, + ptxSurfStorage, + ptxTexStorage, + ptxTexSamplerStorage, + ptxGenericStorage, + ptxIParamStorage, + ptxOParamStorage, + ptxFrameStorage, + ptxURegStorage, + ptxMAXStorage +} ptxStorageKind; + +/*--------------------------- Debugger System Calls --------------------------*/ + +#define CUDBG_IPC_FLAG_NAME cudbgIpcFlag +#define CUDBG_RPC_ENABLED cudbgRpcEnabled +#define CUDBG_APICLIENT_PID cudbgApiClientPid +#define CUDBG_DEBUGGER_INITIALIZED cudbgDebuggerInitialized +#define CUDBG_APICLIENT_REVISION cudbgApiClientRevision +#define CUDBG_SESSION_ID cudbgSessionId +#define CUDBG_ATTACH_HANDLER_AVAILABLE cudbgAttachHandlerAvailable +#define CUDBG_DETACH_SUSPENDED_DEVICES_MASK cudbgDetachSuspendedDevicesMask +#define CUDBG_ENABLE_LAUNCH_BLOCKING cudbgEnableLaunchBlocking +#define CUDBG_ENABLE_INTEGRATED_MEMCHECK cudbgEnableIntegratedMemcheck +#define CUDBG_ENABLE_PREEMPTION_DEBUGGING cudbgEnablePreemptionDebugging +#define CUDBG_RESUME_FOR_ATTACH_DETACH cudbgResumeForAttachDetach + +/* + * Bitmask of the capabilities supported by the debugger front-end + */ +#define CUDBG_DEBUGGER_CAPABILITIES cudbgDebuggerCapabilities + +/* + * Can be read to detect whether the external debugger implementation + * (libcudadebugger.so) is used or not. + */ +#define CUDBG_USE_EXTERNAL_DEBUGGER cudbgUseExternalDebugger + +typedef enum { + CUDBG_DEBUGGER_CAPABILITY_NONE = 0, + CUDBG_DEBUGGER_CAPABILITY_LAZY_FUNCTION_LOADING = (1 << 0), + CUDBG_DEBUGGER_CAPABILITY_SUSPEND_EVENTS = (1 << 1), + CUDBG_DEBUGGER_CAPABILITY_REPORT_EXCEPTIONS_IN_EXITED_WARPS = (1 << 2), + CUDBG_DEBUGGER_CAPABILITY_NO_CONTEXT_PUSH_POP_EVENTS = (1 << 3), +} CUDBGCapabilityFlags; + +/*---------------- Internal Breakpoint Entries for Error Reporting ------------*/ + +#define CUDBG_REPORT_DRIVER_API_ERROR cudbgReportDriverApiError +#define CUDBG_REPORT_DRIVER_API_ERROR_FLAGS cudbgReportDriverApiErrorFlags +#define CUDBG_REPORTED_DRIVER_API_ERROR_CODE cudbgReportedDriverApiErrorCode +#define CUDBG_REPORTED_DRIVER_API_ERROR_FUNC_NAME_SIZE cudbgReportedDriverApiErrorFuncNameSize +#define CUDBG_REPORTED_DRIVER_API_ERROR_FUNC_NAME_ADDR cudbgReportedDriverApiErrorFuncNameAddr +#define CUDBG_REPORTED_DRIVER_API_ERROR_SOURCE cudbgReportedDriverApiErrorSource +#define CUDBG_REPORTED_DRIVER_API_ERROR_NAME_SIZE cudbgReportedDriverApiErrorNameSize +#define CUDBG_REPORTED_DRIVER_API_ERROR_NAME_ADDR cudbgReportedDriverApiErrorNameAddr +#define CUDBG_REPORTED_DRIVER_API_ERROR_STRING_SIZE cudbgReportedDriverApiErrorStringSize +#define CUDBG_REPORTED_DRIVER_API_ERROR_STRING_ADDR cudbgReportedDriverApiErrorStringAddr +#define CUDBG_REPORT_DRIVER_INTERNAL_ERROR cudbgReportDriverInternalError +#define CUDBG_REPORTED_DRIVER_INTERNAL_ERROR_CODE cudbgReportedDriverInternalErrorCode + +/*----------------------------- API Return Types -----------------------------*/ + +typedef enum { + CUDBG_SUCCESS = 0x0000, /* Successful execution */ + CUDBG_ERROR_UNKNOWN = 0x0001, /* Error type not listed below */ + CUDBG_ERROR_BUFFER_TOO_SMALL = 0x0002, /* Cannot copy all the queried data into the buffer argument */ + CUDBG_ERROR_UNKNOWN_FUNCTION = 0x0003, /* Function cannot be found in the CUDA kernel */ + CUDBG_ERROR_INVALID_ARGS = 0x0004, /* Wrong use of arguments (NULL pointer, illegal value,...) */ + CUDBG_ERROR_UNINITIALIZED = 0x0005, /* Debugger API has not yet been properly initialized */ + CUDBG_ERROR_INVALID_COORDINATES = 0x0006, /* Invalid block or thread coordinates were provided */ + CUDBG_ERROR_INVALID_MEMORY_SEGMENT = 0x0007, /* Invalid memory segment requested (read/write) */ + CUDBG_ERROR_INVALID_MEMORY_ACCESS = 0x0008, /* Requested address (+size) is not within proper segment boundaries */ + CUDBG_ERROR_MEMORY_MAPPING_FAILED = 0x0009, /* Memory is not mapped and cannot be mapped */ + CUDBG_ERROR_INTERNAL = 0x000a, /* A debugger internal error occurred */ + CUDBG_ERROR_INVALID_DEVICE = 0x000b, /* Specified device cannot be found */ + CUDBG_ERROR_INVALID_SM = 0x000c, /* Specified sm cannot be found */ + CUDBG_ERROR_INVALID_WARP = 0x000d, /* Specified warp cannot be found */ + CUDBG_ERROR_INVALID_LANE = 0x000e, /* Specified lane cannot be found */ + CUDBG_ERROR_SUSPENDED_DEVICE = 0x000f, /* device is suspended */ + CUDBG_ERROR_RUNNING_DEVICE = 0x0010, /* device is running and not suspended */ + CUDBG_ERROR_RESERVED_0 = 0x0011, /* Reserved error code */ + CUDBG_ERROR_INVALID_ADDRESS = 0x0012, /* address is out-of-range */ + CUDBG_ERROR_INCOMPATIBLE_API = 0x0013, /* API version does not match */ + CUDBG_ERROR_INITIALIZATION_FAILURE = 0x0014, /* The CUDA Driver failed to initialize */ + CUDBG_ERROR_INVALID_GRID = 0x0015, /* Specified grid cannot be found */ + CUDBG_ERROR_NO_EVENT_AVAILABLE = 0x0016, /* No event left to be processed */ + CUDBG_ERROR_SOME_DEVICES_WATCHDOGGED = 0x0017, /* One or more devices have an associated watchdog (eg. X) */ + CUDBG_ERROR_ALL_DEVICES_WATCHDOGGED = 0x0018, /* All devices have an associated watchdog (eg. X) */ + CUDBG_ERROR_INVALID_ATTRIBUTE = 0x0019, /* Specified attribute does not exist or is incorrect */ + CUDBG_ERROR_ZERO_CALL_DEPTH = 0x001a, /* No function calls have been made on the device */ + CUDBG_ERROR_INVALID_CALL_LEVEL = 0x001b, /* Specified call level is invalid */ + CUDBG_ERROR_COMMUNICATION_FAILURE = 0x001c, /* Communication error between the debugger and the application. */ + CUDBG_ERROR_INVALID_CONTEXT = 0x001d, /* Specified context cannot be found */ + CUDBG_ERROR_ADDRESS_NOT_IN_DEVICE_MEM = 0x001e, /* Requested address was not originally allocated from device memory (most likely visible in system memory) */ + CUDBG_ERROR_MEMORY_UNMAPPING_FAILED = 0x001f, /* Memory is not unmapped and cannot be unmapped */ + CUDBG_ERROR_INCOMPATIBLE_DISPLAY_DRIVER = 0x0020, /* The display driver is incompatible with the API */ + CUDBG_ERROR_INVALID_MODULE = 0x0021, /* The specified module is not valid */ + CUDBG_ERROR_LANE_NOT_IN_SYSCALL = 0x0022, /* The specified lane is not inside a device syscall */ + CUDBG_ERROR_MEMCHECK_NOT_ENABLED = 0x0023, /* Memcheck has not been enabled */ + CUDBG_ERROR_INVALID_ENVVAR_ARGS = 0x0024, /* Some environment variable's value is invalid */ + CUDBG_ERROR_OS_RESOURCES = 0x0025, /* Error while allocating resources from the OS */ + CUDBG_ERROR_FORK_FAILED = 0x0026, /* Error while forking the debugger process */ + CUDBG_ERROR_NO_DEVICE_AVAILABLE = 0x0027, /* No CUDA capable device was found */ + CUDBG_ERROR_ATTACH_NOT_POSSIBLE = 0x0028, /* Attaching to the CUDA program is not possible */ + CUDBG_ERROR_WARP_RESUME_NOT_POSSIBLE = 0x0029, /* The resumeWarpsUntilPC() API is not possible, use resumeDevice() or singleStepWarp() instead */ + CUDBG_ERROR_INVALID_WARP_MASK = 0x002a, /* Specified warp mask is zero, or contains invalid warps */ + CUDBG_ERROR_AMBIGUOUS_MEMORY_ADDRESS = 0x002b, /* Address cannot be resolved to a GPU unambiguously */ + CUDBG_ERROR_RECURSIVE_API_CALL = 0x002c, /* Debug API entry point called from within a debug API callback */ + CUDBG_ERROR_MISSING_DATA = 0x002d, /* The requested data is missing */ + CUDBG_ERROR_NOT_SUPPORTED = 0x002e, /* Attempted operation is not supported */ +} CUDBGResult; + +static const char *CUDBGResultNames[] = { + "CUDBG_SUCCESS", + "CUDBG_ERROR_UNKNOWN", + "CUDBG_ERROR_BUFFER_TOO_SMALL", + "CUDBG_ERROR_UNKNOWN_FUNCTION", + "CUDBG_ERROR_INVALID_ARGS", + "CUDBG_ERROR_UNINITIALIZED", + "CUDBG_ERROR_INVALID_COORDINATES", + "CUDBG_ERROR_INVALID_MEMORY_SEGMENT", + "CUDBG_ERROR_INVALID_MEMORY_ACCESS", + "CUDBG_ERROR_MEMORY_MAPPING_FAILED", + "CUDBG_ERROR_INTERNAL", + "CUDBG_ERROR_INVALID_DEVICE", + "CUDBG_ERROR_INVALID_SM", + "CUDBG_ERROR_INVALID_WARP", + "CUDBG_ERROR_INVALID_LANE", + "CUDBG_ERROR_SUSPENDED_DEVICE", + "CUDBG_ERROR_RUNNING_DEVICE", + "CUDBG_ERROR_RESERVED_0", + "CUDBG_ERROR_INVALID_ADDRESS", + "CUDBG_ERROR_INCOMPATIBLE_API", + "CUDBG_ERROR_INITIALIZATION_FAILURE", + "CUDBG_ERROR_INVALID_GRID", + "CUDBG_ERROR_NO_EVENT_AVAILABLE", + "CUDBG_ERROR_SOME_DEVICES_WATCHDOGGED", + "CUDBG_ERROR_ALL_DEVICES_WATCHDOGGED", + "CUDBG_ERROR_INVALID_ATTRIBUTE", + "CUDBG_ERROR_ZERO_CALL_DEPTH", + "CUDBG_ERROR_INVALID_CALL_LEVEL", + "CUDBG_ERROR_COMMUNICATION_FAILURE", + "CUDBG_ERROR_INVALID_CONTEXT", + "CUDBG_ERROR_ADDRESS_NOT_IN_DEVICE_MEM", + "CUDBG_ERROR_MEMORY_UNMAPPING_FAILED", + "CUDBG_ERROR_INCOMPATIBLE_DISPLAY_DRIVER", + "CUDBG_ERROR_INVALID_MODULE", + "CUDBG_ERROR_LANE_NOT_IN_SYSCALL", + "CUDBG_ERROR_MEMCHECK_NOT_ENABLED", + "CUDBG_ERROR_INVALID_ENVVAR_ARGS", + "CUDBG_ERROR_OS_RESOURCES", + "CUDBG_ERROR_FORK_FAILED", + "CUDBG_ERROR_NO_DEVICE_AVAILABLE", + "CUDBG_ERROR_ATTACH_NOT_POSSIBLE", + "CUDBG_ERROR_WARP_RESUME_NOT_POSSIBLE", + "CUDBG_ERROR_INVALID_WARP_MASK", + "CUDBG_ERROR_AMBIGUOUS_MEMORY_ADDRESS", + "CUDBG_ERROR_RECURSIVE_API_CALL", + "CUDBG_ERROR_MISSING_DATA", + "CUDBG_ERROR_NOT_SUPPORTED", +}; + +static _CUDBG_INLINE const char *cudbgGetErrorString (CUDBGResult error) +{ + if (((unsigned)error)*sizeof(char *) >= sizeof(CUDBGResultNames)) + return "*UNDEFINED*"; + return CUDBGResultNames[(unsigned)error]; +} + + +/*------------------------- API Error Reporting Flags -------------------------*/ +typedef enum { + CUDBG_REPORT_DRIVER_API_ERROR_FLAGS_NONE = 0x0000, /* Default is that there is no flag */ + CUDBG_REPORT_DRIVER_API_ERROR_FLAGS_SUPPRESS_NOT_READY = ( 1U << 0 ), /* When set, cudaErrorNotReady/cuErrorNotReady will not be reported */ +} CUDBGReportDriverApiErrorFlags; + +typedef enum { + CUDBG_REPORTED_DRIVER_API_ERROR_SOURCE_NONE = 0x000, /* Default is that there is no error and no source */ + CUDBG_REPORTED_DRIVER_API_ERROR_SOURCE_DRIVER = 0x001, /* The error originates from the CUDA Driver API */ + CUDBG_REPORTED_DRIVER_API_ERROR_SOURCE_RUNTIME = 0x002, /* The error originates from the CUDA Runtime API */ +} CUDBGReportedDriverApiErrorSource; + +/*------------------------------ Grid Attributes -----------------------------*/ + +typedef enum { + CUDBG_ATTR_GRID_LAUNCH_BLOCKING = 0x000, /* Whether the grid launch is blocking or not. */ + CUDBG_ATTR_GRID_TID = 0x001, /* Id of the host thread that launched the grid. */ +} CUDBGAttribute; + +typedef struct { + CUDBGAttribute attribute; + uint64_t value; +} CUDBGAttributeValuePair; + +typedef enum { + CUDBG_GRID_STATUS_INVALID, /* An invalid grid ID was passed, or an error occurred during status lookup */ + CUDBG_GRID_STATUS_PENDING, /* The grid was launched but is not running on the HW yet */ + CUDBG_GRID_STATUS_ACTIVE, /* The grid is currently running on the HW */ + CUDBG_GRID_STATUS_SLEEPING, /* The grid is on the device, doing a join */ + CUDBG_GRID_STATUS_TERMINATED, /* The grid has finished executing */ + CUDBG_GRID_STATUS_UNDETERMINED, /* The grid is either PENDING or TERMINATED */ +} CUDBGGridStatus; + +/*------------------------------- Kernel Types -------------------------------*/ + +typedef enum { + CUDBG_KNL_TYPE_UNKNOWN = 0x000, /* Any type not listed below. */ + CUDBG_KNL_TYPE_SYSTEM = 0x001, /* System kernel, such as MemCpy. */ + CUDBG_KNL_TYPE_APPLICATION = 0x002, /* Application kernel, user-defined or libraries. */ +} CUDBGKernelType; + +/*--------------------------- Elf Image Properties ---------------------------*/ + +typedef enum { + CUDBG_ELF_IMAGE_PROPERTIES_SYSTEM = 0x001, /* ELF image contains system kernels. */ +} CUDBGElfImageProperties; + +/*-------------------------- Physical Register Types -------------------------*/ + +typedef enum { + REG_CLASS_INVALID = 0x000, /* invalid register */ + REG_CLASS_REG_CC = 0x001, /* Condition register */ + REG_CLASS_REG_PRED = 0x002, /* Predicate register */ + REG_CLASS_REG_ADDR = 0x003, /* Address register */ + REG_CLASS_REG_HALF = 0x004, /* 16-bit register (Currently unused) */ + REG_CLASS_REG_FULL = 0x005, /* 32-bit register */ + REG_CLASS_MEM_LOCAL = 0x006, /* register spilled in memory */ + REG_CLASS_LMEM_REG_OFFSET = 0x007, /* register at stack offset (ABI only) */ + REG_CLASS_UREG_PRED = 0x009, /* uniform predicate register */ + REG_CLASS_UREG_HALF = 0x00a, /* 16-bit uniform register */ + REG_CLASS_UREG_FULL = 0x00b, /* 32-bit uniform register */ +} CUDBGRegClass; + +/*---------------------------- Application Events ----------------------------*/ + +typedef enum { + CUDBG_EVENT_INVALID = 0x000, /* Invalid event */ + CUDBG_EVENT_ELF_IMAGE_LOADED = 0x001, /* ELF image for CUDA kernel(s) is ready */ + CUDBG_EVENT_KERNEL_READY = 0x002, /* A CUDA kernel is ready to be launched */ + CUDBG_EVENT_KERNEL_FINISHED = 0x003, /* A CUDA kernel has terminated */ + CUDBG_EVENT_INTERNAL_ERROR = 0x004, /* Unexpected error. The API may be unstable. */ + CUDBG_EVENT_CTX_PUSH = 0x005, /* A CUDA context has been pushed. */ + CUDBG_EVENT_CTX_POP = 0x006, /* A CUDA context has been popped. */ + CUDBG_EVENT_CTX_CREATE = 0x007, /* A CUDA context has been created and pushed. */ + CUDBG_EVENT_CTX_DESTROY = 0x008, /* A CUDA context has been, popped if pushed, then destroyed. */ + CUDBG_EVENT_TIMEOUT = 0x009, /* Nothing happened for a while. This is heartbeat event. + NOTE: Only sent by the classic backend. */ + CUDBG_EVENT_ATTACH_COMPLETE = 0x00a, /* Attach complete. */ + CUDBG_EVENT_DETACH_COMPLETE = 0x00b, /* Detach complete. */ + CUDBG_EVENT_ELF_IMAGE_UNLOADED = 0x00c, /* ELF image for CUDA kernels(s) no longer available */ + CUDBG_EVENT_FUNCTIONS_LOADED = 0x00d, /* A group of functions/kernels have been loaded + * NOTE: Will only be sent if the debugger capability + * CUDBG_DEBUGGER_CAPABILITY_LAZY_FUNCTION_LOADING is set. + */ + CUDBG_EVENT_ALL_DEVICES_SUSPENDED = 0x00e, /* All CUDA devices have been suspended due to a breakpoint hit + * or an exception. Does not get sent for GPU events that + * result in synchronous API method calls, such as + * singleStepWarp or resumeWarpsUntilPC. + * NOTE: Will only be sent if the debugger capability + * CUDBG_DEBUGGER_CAPABILITY_SUSPEND_EVENTS is set. + */ +} CUDBGEventKind; + +/*------------------------------- Kernel Origin ------------------------------*/ + +typedef enum { + CUDBG_KNL_ORIGIN_CPU = 0x000, /* The kernel was launched from the CPU. */ + CUDBG_KNL_ORIGIN_GPU = 0x001, /* The kernel was launched from the GPU. */ +} CUDBGKernelOrigin; + +/*------------------------ Kernel Launch Notify Mode --------------------------*/ + +typedef enum { + CUDBG_KNL_LAUNCH_NOTIFY_EVENT = 0x000, /* The kernel notifications generate events */ + CUDBG_KNL_LAUNCH_NOTIFY_DEFER = 0x001, /* The kernel notifications are deferred */ +} CUDBGKernelLaunchNotifyMode; + +/*---------------------- Application Event Queue Type ------------------------*/ + +typedef enum { + CUDBG_EVENT_QUEUE_TYPE_SYNC = 0, /* Synchronous event queue */ + CUDBG_EVENT_QUEUE_TYPE_ASYNC = 1, /* Asynchronous event queue */ +} CUDBGEventQueueType; + +/*------------------------------ Elf Image Type ------------------------------*/ + +typedef enum { + CUDBG_ELF_IMAGE_TYPE_NONRELOCATED = 0, /* Non-relocated ELF image */ + CUDBG_ELF_IMAGE_TYPE_RELOCATED = 1, /* Relocated ELF image */ +} CUDBGElfImageType; + +/*------------------------------ Code Address --------------------------------*/ + +typedef enum { + CUDBG_ADJ_PREVIOUS_ADDRESS = 0x000, /* Get the adjusted previous code address. */ + CUDBG_ADJ_CURRENT_ADDRESS = 0x001, /* Get the adjusted current code address. */ + CUDBG_ADJ_NEXT_ADDRESS = 0x002, /* Get the adjusted next code address. */ +} CUDBGAdjAddrAction; + +/*------------------------------ Single Step Flags --------------------------------*/ + +typedef enum { + /* Default behavior */ + CUDBG_SINGLE_STEP_FLAGS_NONE = 0, + /* Do not step over warp-wide barriers using a breakpoint and resume, + * instead perform a single step and return. Passing this flag in means + * that the API client plans to repeat the singleStepWarp() call until + * the warp barrier is stepped over. This gives a more precise exception + * information if an exception is encountered by the diverged threads + * while stepping. */ + CUDBG_SINGLE_STEP_FLAGS_NO_STEP_OVER_WARP_BARRIERS = (1U << 0), +} CUDBGSingleStepFlags; + +/* Deprecated */ +typedef struct { + CUDBGEventKind kind; + union cases30_st { + struct elfImageLoaded30_st { + char *relocatedElfImage; + char *nonRelocatedElfImage; + uint32_t size; + } elfImageLoaded; + struct kernelReady30_st { + uint32_t dev; + uint32_t gridId; + uint32_t tid; + } kernelReady; + struct kernelFinished30_st { + uint32_t dev; + uint32_t gridId; + uint32_t tid; + } kernelFinished; + } cases; +} CUDBGEvent30; + +/* Deprecated */ +typedef struct { + CUDBGEventKind kind; + union cases32_st { + struct elfImageLoaded32_st { + char *relocatedElfImage; + char *nonRelocatedElfImage; + uint32_t size; + uint32_t dev; + uint64_t context; + uint64_t module; + } elfImageLoaded; + struct kernelReady32_st { + uint32_t dev; + uint32_t gridId; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + } kernelReady; + struct kernelFinished32_st { + uint32_t dev; + uint32_t gridId; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + } kernelFinished; + struct contextPush32_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextPush; + struct contextPop32_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextPop; + struct contextCreate32_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextCreate; + struct contextDestroy32_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextDestroy; + } cases; +} CUDBGEvent32; + +/* Deprecated */ +typedef struct { + CUDBGEventKind kind; + union cases42_st { + struct elfImageLoaded42_st { + char *relocatedElfImage; + char *nonRelocatedElfImage; + uint32_t size32; + uint32_t dev; + uint64_t context; + uint64_t module; + uint64_t size; + } elfImageLoaded; + struct kernelReady42_st { + uint32_t dev; + uint32_t gridId; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + CuDim3 gridDim; + CuDim3 blockDim; + CUDBGKernelType type; + } kernelReady; + struct kernelFinished42_st { + uint32_t dev; + uint32_t gridId; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + } kernelFinished; + struct contextPush42_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextPush; + struct contextPop42_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextPop; + struct contextCreate42_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextCreate; + struct contextDestroy42_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextDestroy; + } cases; +} CUDBGEvent42; + +typedef struct { + CUDBGEventKind kind; + union cases50_st { + struct elfImageLoaded50_st { + char *relocatedElfImage; + char *nonRelocatedElfImage; + uint32_t size32; + uint32_t dev; + uint64_t context; + uint64_t module; + uint64_t size; + } elfImageLoaded; + struct kernelReady50_st{ + uint32_t dev; + uint32_t gridId; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + CuDim3 gridDim; + CuDim3 blockDim; + CUDBGKernelType type; + } kernelReady; + struct kernelFinished50_st { + uint32_t dev; + uint32_t gridId; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + } kernelFinished; + struct contextPush50_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextPush; + struct contextPop50_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextPop; + struct contextCreate50_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextCreate; + struct contextDestroy50_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextDestroy; + struct internalError50_st { + CUDBGResult errorType; + } internalError; + } cases; +} CUDBGEvent50; + +typedef struct { + CUDBGEventKind kind; + union cases55_st { + struct elfImageLoaded55_st { + char *relocatedElfImage; + char *nonRelocatedElfImage; + uint32_t size32; + uint32_t dev; + uint64_t context; + uint64_t module; + uint64_t size; + } elfImageLoaded; + struct kernelReady55_st{ + uint32_t dev; + uint32_t gridId; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + CuDim3 gridDim; + CuDim3 blockDim; + CUDBGKernelType type; + uint64_t parentGridId; + uint64_t gridId64; + CUDBGKernelOrigin origin; + } kernelReady; + struct kernelFinished55_st { + uint32_t dev; + uint32_t gridId; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + uint64_t gridId64; + } kernelFinished; + struct contextPush55_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextPush; + struct contextPop55_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextPop; + struct contextCreate55_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextCreate; + struct contextDestroy55_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextDestroy; + struct internalError55_st { + CUDBGResult errorType; + } internalError; + } cases; +} CUDBGEvent55; + +#pragma pack(push,1) +typedef struct { + CUDBGEventKind kind; + union cases_st { + struct elfImageLoaded_st { + uint32_t dev; + uint64_t context; + uint64_t module; + uint64_t size; + uint64_t handle; + uint32_t properties; + } elfImageLoaded; + struct elfImageUnloaded_st { + uint32_t dev; + uint64_t context; + uint64_t module; + uint64_t size; + uint64_t handle; + } elfImageUnloaded; + struct kernelReady_st{ + uint32_t dev; + uint32_t tid; + uint64_t gridId; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + CuDim3 gridDim; + CuDim3 blockDim; + CUDBGKernelType type; + uint64_t parentGridId; + CUDBGKernelOrigin origin; + } kernelReady; + struct kernelFinished_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + uint64_t gridId; + } kernelFinished; + struct contextPush_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextPush; + struct contextPop_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextPop; + struct contextCreate_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextCreate; + struct contextDestroy_st { + uint32_t dev; + uint32_t tid; + uint64_t context; + } contextDestroy; + struct internalError_st { + CUDBGResult errorType; + } internalError; + struct functionsLoaded_st { + uint32_t dev; + uint32_t count; + uint64_t context; + uint64_t module; + } functionsLoaded; + struct allDevicesSuspended_st { + /* This mask has bits set for devices with any warps that hit a breakpoint */ + uint64_t brokenDevicesMask; + /* This mask has bits set for devices with any warps that hit an exception */ + uint64_t faultedDevicesMask; + } allDevicesSuspended; + } cases; +} CUDBGEvent; +#pragma pack(pop) + +typedef struct { + uint32_t tid; +} CUDBGEventCallbackData40; + +typedef struct { + uint32_t tid; + uint32_t timeout; +} CUDBGEventCallbackData; + +#pragma pack(push,1) +typedef struct { + uint32_t dev; + uint64_t gridId64; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + CuDim3 gridDim; + CuDim3 blockDim; + CUDBGKernelType type; + uint64_t parentGridId; + CUDBGKernelOrigin origin; +} CUDBGGridInfo55; + +typedef struct { + uint32_t dev; + uint64_t gridId64; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + CuDim3 gridDim; + CuDim3 blockDim; + CUDBGKernelType type; + uint64_t parentGridId; + CUDBGKernelOrigin origin; + CuDim3 clusterDim; +} CUDBGGridInfo120; + +typedef struct { + uint32_t dev; + uint64_t gridId64; + uint32_t tid; + uint64_t context; + uint64_t module; + uint64_t function; + uint64_t functionEntry; + CuDim3 gridDim; + CuDim3 blockDim; + CUDBGKernelType type; + uint64_t parentGridId; + CUDBGKernelOrigin origin; + CuDim3 clusterDim; + CuDim3 preferredClusterDim; +} CUDBGGridInfo; +#pragma pack(pop) + +#pragma pack(push,1) +typedef struct { + uint64_t sectionIndex; + uint64_t address; +} CUDBGLoadedFunctionInfo; +#pragma pack(pop) + +typedef void (*CUDBGNotifyNewEventCallback31)(void *data); +typedef void (*CUDBGNotifyNewEventCallback40)(CUDBGEventCallbackData40 *data); +typedef void (*CUDBGNotifyNewEventCallback)(CUDBGEventCallbackData *data); + +/*-------------------------------- Exceptions ------------------------------*/ + +typedef enum { + CUDBG_EXCEPTION_UNKNOWN = 0xFFFFFFFFU, // Force sizeof(CUDBGException_t)==4 + CUDBG_EXCEPTION_NONE = 0, + CUDBG_EXCEPTION_LANE_ILLEGAL_ADDRESS = 1, + CUDBG_EXCEPTION_LANE_USER_STACK_OVERFLOW = 2, + CUDBG_EXCEPTION_DEVICE_HARDWARE_STACK_OVERFLOW = 3, + CUDBG_EXCEPTION_WARP_ILLEGAL_INSTRUCTION = 4, + CUDBG_EXCEPTION_WARP_OUT_OF_RANGE_ADDRESS = 5, + CUDBG_EXCEPTION_WARP_MISALIGNED_ADDRESS = 6, + CUDBG_EXCEPTION_WARP_INVALID_ADDRESS_SPACE = 7, + CUDBG_EXCEPTION_WARP_INVALID_PC = 8, + CUDBG_EXCEPTION_WARP_HARDWARE_STACK_OVERFLOW = 9, + CUDBG_EXCEPTION_DEVICE_ILLEGAL_ADDRESS = 10, + CUDBG_EXCEPTION_LANE_MISALIGNED_ADDRESS = 11, + CUDBG_EXCEPTION_WARP_ASSERT = 12, + CUDBG_EXCEPTION_LANE_SYSCALL_ERROR = 13, + CUDBG_EXCEPTION_WARP_ILLEGAL_ADDRESS = 14, + CUDBG_EXCEPTION_LANE_NONMIGRATABLE_ATOMSYS = 15, + CUDBG_EXCEPTION_LANE_INVALID_ATOMSYS = 16, + CUDBG_EXCEPTION_CLUSTER_OUT_OF_RANGE_ADDRESS = 17, + CUDBG_EXCEPTION_CLUSTER_BLOCK_NOT_PRESENT = 18, + CUDBG_EXCEPTION_WARP_STACK_CANARY = 19, +} CUDBGException_t; + +typedef enum { + CUDBG_UVM_MEMORY_ACCESS_TYPE_UNKNOWN = 0xFFFFFFFFU, + CUDBG_UVM_MEMORY_ACCESS_TYPE_INVALID = 0, + CUDBG_UVM_MEMORY_ACCESS_TYPE_READ = 1, + CUDBG_UVM_MEMORY_ACCESS_TYPE_WRITE = 2, + CUDBG_UVM_MEMORY_ACCESS_TYPE_ATOMIC = 3, + CUDBG_UVM_MEMORY_ACCESS_TYPE_PREFETCH = 4, +} CUDBGUvmMemoryAccessType_t; + +typedef enum { + CUDBG_UVM_FAULT_TYPE_UNKNOWN = 0xFFFFFFFFU, + CUDBG_UVM_FAULT_TYPE_INVALID = 0, + CUDBG_UVM_FAULT_TYPE_INVALID_PDE = 1, + CUDBG_UVM_FAULT_TYPE_INVALID_PTE = 2, + CUDBG_UVM_FAULT_TYPE_WRITE = 3, + CUDBG_UVM_FAULT_TYPE_ATOMIC = 4, + CUDBG_UVM_FAULT_TYPE_INVALID_PDE_SIZE = 5, + CUDBG_UVM_FAULT_TYPE_LIMIT_VIOLATION = 6, + CUDBG_UVM_FAULT_TYPE_UNBOUND_INST_BLOCK = 7, + CUDBG_UVM_FAULT_TYPE_PRIV_VIOLATION = 8, + CUDBG_UVM_FAULT_TYPE_PITCH_MASK_VIOLATION = 9, + CUDBG_UVM_FAULT_TYPE_WORK_CREATION = 10, + CUDBG_UVM_FAULT_TYPE_UNSUPPORTED_APERTURE = 11, + CUDBG_UVM_FAULT_TYPE_COMPRESSION_FAILURE = 12, + CUDBG_UVM_FAULT_TYPE_UNSUPPORTED_KIND = 13, + CUDBG_UVM_FAULT_TYPE_REGION_VIOLATION = 14, + CUDBG_UVM_FAULT_TYPE_POISON = 15, +} CUDBGUvmFaultType_t; + +typedef enum { + CUDBG_UVM_FATAL_REASON_UNKNOWN = 0xFFFFFFFFU, + CUDBG_UVM_FATAL_REASON_INVALID = 0, + CUDBG_UVM_FATAL_REASON_INVALID_ADDRESS = 1, + CUDBG_UVM_FATAL_REASON_INVALID_PERMISSIONS = 2, + CUDBG_UVM_FATAL_REASON_INVALID_FAULT_TYPE = 3, + CUDBG_UVM_FATAL_REASON_OUT_OF_MEMORY = 4, + CUDBG_UVM_FATAL_REASON_INTERNAL_ERROR = 5, + CUDBG_UVM_FATAL_REASON_INVALID_OPERATION = 6, +} CUDBGUvmFatalReason_t; + +/*------------------------------ Warp State --------------------------------*/ +#pragma pack(push,1) +typedef struct { + uint64_t virtualPC; + CuDim3 threadIdx; + CUDBGException_t exception; +} CUDBGLaneState; + +typedef struct { + uint64_t gridId; + uint64_t errorPC; + CuDim3 blockIdx; + uint32_t validLanes; + uint32_t activeLanes; + uint32_t errorPCValid; + CUDBGLaneState lane[32]; +} CUDBGWarpState60; + +typedef struct { + uint64_t gridId; + uint64_t errorPC; + CuDim3 blockIdx; + uint32_t validLanes; + uint32_t activeLanes; + uint32_t errorPCValid; + CUDBGLaneState lane[32]; + CuDim3 clusterIdx; +} CUDBGWarpState120; + +typedef struct { + uint64_t gridId; + uint64_t errorPC; + CuDim3 blockIdx; + uint32_t validLanes; + uint32_t activeLanes; + uint32_t errorPCValid; + CUDBGLaneState lane[32]; + CuDim3 clusterIdx; + CuDim3 clusterDim; + uint32_t clusterExceptionTargetBlockIdxValid; + CuDim3 clusterExceptionTargetBlockIdx; +} CUDBGWarpState; + +typedef struct { + uint32_t sharedMemSize; + uint32_t numRegisters; +} CUDBGWarpResources; +#pragma pack(pop) + +#pragma pack(push,1) +typedef struct { + uint64_t startAddress; + uint64_t size; +} CUDBGMemoryInfo; +#pragma pack(pop) + +/*----------------------- Batched device info support ----------------------*/ + +/* uint32_t sized enum */ +typedef enum { + /* Request state information for all valid SMs/Warps/Lanes */ + CUDBG_RESPONSE_TYPE_FULL, + + /* Request state information for all changed SMs/Warps/Lanes since the last call */ + CUDBG_RESPONSE_TYPE_UPDATE, + + /* Force sizeof(CUDBGDeviceInfoQueryType_t)==4 */ + CUDBG_RESPONSE_TYPE_UNKNOWN = 0xFFFFFFFFU, +} CUDBGDeviceInfoQueryType_t; + +/* uint32_t sized enum */ +typedef enum { + /* Mask of updated SMs reported by this response + Optional: Yes, assume all 1's if absent + Size: Number of SMs-sized bitmask, rounded up to be divisible by 8 */ + CUDBG_DEVICE_ATTRIBUTE_SM_UPDATE_MASK = 0, + /* Mask of SMs with any valid warp + Optional: No, always returned by the API + Size: Number of SMs-sized bitmask, rounded up to be divisible by 8 */ + CUDBG_DEVICE_ATTRIBUTE_SM_ACTIVE_MASK = 1, + /* Mask of SMs with any warps with exceptions + Optional: Yes, assume all 0's if absent + Size: Number of SMs-sized bitmask, rounded up to be divisible by 8 */ + CUDBG_DEVICE_ATTRIBUTE_SM_EXCEPTION_MASK = 2, + + CUDBG_DEVICE_ATTRIBUTE_COUNT = 3, +} CUDBGDeviceInfoAttribute_t; + +/* uint32_t sized enum */ +typedef enum { + /* Mask of updated warps reported by this response + Optional: Yes, assume all 1's if absent + Size: uint64_t */ + CUDBG_SM_ATTRIBUTE_WARP_UPDATE_MASK = 0, + + CUDBG_SM_ATTRIBUTE_COUNT = 1, +} CUDBGSMInfoAttribute_t; + +/* uint32_t sized enum */ +typedef enum { + /* Mask of updated lanes reported by this response + Optional: Yes, assume all 1's if absent + Size: uint32_t */ + CUDBG_WARP_ATTRIBUTE_LANE_UPDATE_MASK = 0, + /* Signals whether the attribute flags field is present on the lane level for this warp + Optional: Yes, assume no lane attributes for this warp if absent + Size: 0 (doesn't have an associated warp-level field) */ + CUDBG_WARP_ATTRIBUTE_LANE_ATTRIBUTES = 1, + /* CUDBGException_t for this warp + Optional: Yes, assume CUDBG_EXCEPTION_NONE if absent + Size: uint32_t */ + CUDBG_WARP_ATTRIBUTE_EXCEPTION = 2, + /* Error PC for this warp + Optional: Yes, assume no error PC is available if absent + Size: uint64_t */ + CUDBG_WARP_ATTRIBUTE_ERRORPC = 3, + /* Cluster index for this warp + Optional: Yes if warp is not in a cluster + Size: CuDim3 */ + CUDBG_WARP_ATTRIBUTE_CLUSTERIDX = 4, + /* Cluster dimensions for this warp + Optional: Yes if warp is not in a cluster + Size: CuDim3 */ + CUDBG_WARP_ATTRIBUTE_CLUSTERDIM = 5, + /* For cluster exceptions, this represents the target block index handling + cluster requests. + Optional: Yes, assume no block index is available if absent + Size: CuDim3 */ + CUDBG_WARP_ATTRIBUTE_CLUSTER_EXCEPTION_TARGET_BLOCK_IDX = 6, + + CUDBG_WARP_ATTRIBUTE_COUNT = 7, +} CUDBGWarpInfoAttribute_t; + +/* uint32_t sized enum */ +typedef enum { + CUDBG_LANE_ATTRIBUTE_COUNT = 0, +} CUDBGLaneInfoAttribute_t; + +/* Sizes of the various structs returned by the batched device update APIs + No explicit version field - implied by debugAPI major.minor.revision +*/ +#pragma pack(push,1) +typedef struct { + uint32_t requiredBufferSize; + + uint32_t deviceInfoSize; + uint32_t deviceInfoAttributeSizes[32]; + + uint32_t smInfoSize; + uint32_t smInfoAttributeSizes[32]; + + uint32_t warpInfoSize; + uint32_t warpInfoAttributeSizes[32]; + + uint32_t laneInfoSize; + uint32_t laneInfoAttributeSizes[32]; +} CUDBGDeviceInfoSizes; +#pragma pack(pop) + +/* This is the first element in the deviceInfoBuffer, and is always present. + getDeviceInfo() takes a deviceId as input, so no need to explicitly pass it back here +*/ +#pragma pack(push,1) +typedef struct { + CUDBGDeviceInfoQueryType_t responseType; + + /* Bitmask of CUDBGDeviceInfoAttribute_t enums for a Device */ + uint32_t deviceAttributeFlags; +} CUDBGDeviceInfo; +#pragma pack(pop) + +/* + Only "valid & updated" SMs/Warps/Lanes are included in the buffer, which allows us to determine + indexes without having to encode an explicit ID field in the following buffer datastructures. +*/ + +/* Represents a SM */ +#pragma pack(push,1) +typedef struct { + uint64_t warpValidMask; + uint64_t warpBrokenMask; + + /* Bitmask of CUDBGSmInfoAttribute_t enums for a SM */ + uint32_t smAttributeFlags; + + /* New elements are appended (but not added to the struct) */ +} CUDBGSMInfo; +#pragma pack(pop) + +/* Represents a Warp */ +#pragma pack(push,1) +typedef struct { + uint64_t gridId; + + CuDim3 blockIdx; + CuDim3 baseThreadIdx; + + uint32_t validLanes; + uint32_t activeLanes; + + /* Bitmask of CUDBGWarpInfoAttribute_t enums for warps and their lanes */ + uint32_t warpAttributeFlags; + + /* Optional fields based on the "warpAttributeFlags" bitmask */ +} CUDBGWarpInfo; +#pragma pack(pop) + +/* Represents a Lane */ +#pragma pack(push,1) +typedef struct { + uint64_t virtualPC; + + /* Optional: present only if CUDBG_WARP_ATTRIBUTE_LANE_ATTRIBUTES bit + is set in CUDBGWarpInfo::warpAttributeFlags. Any additional data is + appended here after this. + + uint32_t laneAttributeFlags; + */ +} CUDBGLaneInfo; +#pragma pack(pop) + +/*----------------------- Coredump/snapshot support ------------------------*/ + +typedef enum { + CUDBG_COREDUMP_DEFAULT_FLAGS = 0, + CUDBG_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES = (1 << 0), + CUDBG_COREDUMP_SKIP_GLOBAL_MEMORY = (1 << 1), + CUDBG_COREDUMP_SKIP_SHARED_MEMORY = (1 << 2), + CUDBG_COREDUMP_SKIP_LOCAL_MEMORY = (1 << 3), + + /* The value used to be SKIP_ABORT, but it's impossible to change this behavior. */ + /* DEPRECATED_VALUE_DO_NOT_USE = (1 << 4), */ + + CUDBG_COREDUMP_SKIP_CONSTBANK_MEMORY = (1 << 5), + + CUDBG_COREDUMP_LIGHTWEIGHT_FLAGS = CUDBG_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES + | CUDBG_COREDUMP_SKIP_GLOBAL_MEMORY + | CUDBG_COREDUMP_SKIP_SHARED_MEMORY + | CUDBG_COREDUMP_SKIP_LOCAL_MEMORY + | CUDBG_COREDUMP_SKIP_CONSTBANK_MEMORY +} CUDBGCoredumpGenerationFlags; + +/*--------------------------------- Exports --------------------------------*/ + +typedef const struct CUDBGAPI_st *CUDBGAPI; + +CUDBGResult cudbgGetAPI(uint32_t major, uint32_t minor, uint32_t rev, CUDBGAPI *api); +CUDBGResult cudbgGetAPIVersion(uint32_t *major, uint32_t *minor, uint32_t *rev); +CUDBGResult cudbgMain(int apiClientPid, uint32_t apiClientRevision, int sessionId, int attachState, + int attachEventInitialized, int writeFd, int detachFd, int attachStubInUse, + int enablePreemptionDebugging); +void cudbgApiInit(uint32_t arg); +void cudbgApiAttach(void); +void cudbgApiDetach(void); +void CUDBG_REPORT_DRIVER_API_ERROR(void); +void CUDBG_REPORT_DRIVER_INTERNAL_ERROR(void); + +extern uint32_t CUDBG_IPC_FLAG_NAME; +extern uint32_t CUDBG_RPC_ENABLED; +extern uint32_t CUDBG_APICLIENT_PID; +extern uint32_t CUDBG_I_AM_DEBUGGER; +extern uint32_t CUDBG_DEBUGGER_INITIALIZED; +extern uint32_t CUDBG_APICLIENT_REVISION; +extern uint32_t CUDBG_SESSION_ID; +extern uint64_t CUDBG_REPORTED_DRIVER_API_ERROR_CODE; +extern uint64_t CUDBG_REPORTED_DRIVER_API_ERROR_FUNC_NAME_SIZE; +extern uint64_t CUDBG_REPORTED_DRIVER_API_ERROR_FUNC_NAME_ADDR; +extern uint32_t CUDBG_REPORTED_DRIVER_API_ERROR_SOURCE; +extern uint64_t CUDBG_REPORTED_DRIVER_API_ERROR_NAME_SIZE; +extern uint64_t CUDBG_REPORTED_DRIVER_API_ERROR_NAME_ADDR; +extern uint64_t CUDBG_REPORTED_DRIVER_API_ERROR_STRING_SIZE; +extern uint64_t CUDBG_REPORTED_DRIVER_API_ERROR_STRING_ADDR; +extern uint64_t CUDBG_REPORTED_DRIVER_INTERNAL_ERROR_CODE; +extern uint32_t CUDBG_ATTACH_HANDLER_AVAILABLE; +extern uint32_t CUDBG_ENABLE_LAUNCH_BLOCKING; +extern uint32_t CUDBG_ENABLE_PREEMPTION_DEBUGGING; +extern uint32_t CUDBG_RESUME_FOR_ATTACH_DETACH; +extern uint32_t CUDBG_REPORT_DRIVER_API_ERROR_FLAGS; +extern uint32_t CUDBG_DEBUGGER_CAPABILITIES; + +/* Deprecated */ +extern uint32_t CUDBG_DETACH_SUSPENDED_DEVICES_MASK; + +/* Note this has no effect on virtual GPUs (such as NVIDIA GRID) */ +extern uint32_t CUDBG_ENABLE_INTEGRATED_MEMCHECK; + +struct CUDBGAPI_st { + /* Initialization */ + CUDBGResult (*initialize)(void); + CUDBGResult (*finalize)(void); + + /* Device Execution Control */ + CUDBGResult (*suspendDevice)(uint32_t dev); + CUDBGResult (*resumeDevice)(uint32_t dev); + CUDBGResult (*singleStepWarp40)(uint32_t dev, uint32_t sm, uint32_t wp); + + /* Breakpoints */ + CUDBGResult (*setBreakpoint31)(uint64_t addr); + CUDBGResult (*unsetBreakpoint31)(uint64_t addr); + + /* Device State Inspection */ + CUDBGResult (*readGridId50)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t *gridId); + CUDBGResult (*readBlockIdx32)(uint32_t dev, uint32_t sm, uint32_t wp, CuDim2 *blockIdx); + CUDBGResult (*readThreadIdx)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, CuDim3 *threadIdx); + CUDBGResult (*readBrokenWarps)(uint32_t dev, uint32_t sm, uint64_t *brokenWarpsMask); + CUDBGResult (*readValidWarps)(uint32_t dev, uint32_t sm, uint64_t *validWarpsMask); + CUDBGResult (*readValidLanes)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t *validLanesMask); + CUDBGResult (*readActiveLanes)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t *activeLanesMask); + CUDBGResult (*readCodeMemory)(uint32_t dev, uint64_t addr, void *buf, uint32_t sz); + CUDBGResult (*readConstMemory)(uint32_t dev, uint64_t addr, void *buf, uint32_t sz); + CUDBGResult (*readGlobalMemory31)(uint32_t dev, uint64_t addr, void *buf, uint32_t sz); + CUDBGResult (*readParamMemory)(uint32_t dev, uint32_t sm, uint32_t wp, uint64_t addr, void *buf, uint32_t sz); + CUDBGResult (*readSharedMemory)(uint32_t dev, uint32_t sm, uint32_t wp, uint64_t addr, void *buf, uint32_t sz); + CUDBGResult (*readLocalMemory)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint64_t addr, void *buf, uint32_t sz); + CUDBGResult (*readRegister)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t regno, uint32_t *val); + CUDBGResult (*readPC)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint64_t *pc); + CUDBGResult (*readVirtualPC)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint64_t *pc); + CUDBGResult (*readLaneStatus)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, bool *error); + + /* Device State Alteration */ + CUDBGResult (*writeGlobalMemory31)(uint32_t dev, uint64_t addr, const void *buf, uint32_t sz); + CUDBGResult (*writeParamMemory)(uint32_t dev, uint32_t sm, uint32_t wp, uint64_t addr, const void *buf, uint32_t sz); + CUDBGResult (*writeSharedMemory)(uint32_t dev, uint32_t sm, uint32_t wp, uint64_t addr, const void *buf, uint32_t sz); + CUDBGResult (*writeLocalMemory)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint64_t addr, const void *buf, uint32_t sz); + CUDBGResult (*writeRegister)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t regno, uint32_t val); + + /* Grid Properties */ + CUDBGResult (*getGridDim32)(uint32_t dev, uint32_t sm, uint32_t wp, CuDim2 *gridDim); + CUDBGResult (*getBlockDim)(uint32_t dev, uint32_t sm, uint32_t wp, CuDim3 *blockDim); + CUDBGResult (*getTID)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t *tid); + CUDBGResult (*getElfImage32)(uint32_t dev, uint32_t sm, uint32_t wp, bool relocated, void **elfImage, uint32_t *size); + + /* Device Properties */ + CUDBGResult (*getDeviceType)(uint32_t dev, char *buf, uint32_t sz); + CUDBGResult (*getSmType)(uint32_t dev, char *buf, uint32_t sz); + CUDBGResult (*getNumDevices)(uint32_t *numDev); + CUDBGResult (*getNumSMs)(uint32_t dev, uint32_t *numSMs); + CUDBGResult (*getNumWarps)(uint32_t dev, uint32_t *numWarps); + CUDBGResult (*getNumLanes)(uint32_t dev, uint32_t *numLanes); + CUDBGResult (*getNumRegisters)(uint32_t dev, uint32_t *numRegs); + + /* DWARF-related routines */ + CUDBGResult (*getPhysicalRegister30)(uint64_t pc, char *reg, uint32_t *buf, uint32_t sz, uint32_t *numPhysRegs, CUDBGRegClass *regClass); + CUDBGResult (*disassemble)(uint32_t dev, uint64_t addr, uint32_t *instSize, char *buf, uint32_t sz); + CUDBGResult (*isDeviceCodeAddress55)(uintptr_t addr, bool *isDeviceAddress); + CUDBGResult (*lookupDeviceCodeSymbol)(char *symName, bool *symFound, uintptr_t *symAddr); + + /* Events */ + CUDBGResult (*setNotifyNewEventCallback31)(CUDBGNotifyNewEventCallback31 callback, void *data); + CUDBGResult (*getNextEvent30)(CUDBGEvent30 *event); + CUDBGResult (*acknowledgeEvent30)(CUDBGEvent30 *event); + + /* 3.1 Extensions */ + CUDBGResult (*getGridAttribute)(uint32_t dev, uint32_t sm, uint32_t wp, CUDBGAttribute attr, uint64_t *value); + CUDBGResult (*getGridAttributes)(uint32_t dev, uint32_t sm, uint32_t wp, CUDBGAttributeValuePair *pairs, uint32_t numPairs); + CUDBGResult (*getPhysicalRegister40)(uint32_t dev, uint32_t sm, uint32_t wp, uint64_t pc, char *reg, uint32_t *buf, uint32_t sz, uint32_t *numPhysRegs, CUDBGRegClass *regClass); + CUDBGResult (*readLaneException)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, CUDBGException_t *exception); + CUDBGResult (*getNextEvent32)(CUDBGEvent32 *event); + CUDBGResult (*acknowledgeEvents42)(void); + + /* 3.1 - ABI */ + CUDBGResult (*readCallDepth32)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t *depth); + CUDBGResult (*readReturnAddress32)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t level, uint64_t *ra); + CUDBGResult (*readVirtualReturnAddress32)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t level, uint64_t *ra); + + /* 3.2 Extensions */ + CUDBGResult (*readGlobalMemory55)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint64_t addr, void *buf, uint32_t sz); + CUDBGResult (*writeGlobalMemory55)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint64_t addr, const void *buf, uint32_t sz); + CUDBGResult (*readPinnedMemory)(uint64_t addr, void *buf, uint32_t sz); + CUDBGResult (*writePinnedMemory)(uint64_t addr, const void *buf, uint32_t sz); + CUDBGResult (*setBreakpoint)(uint32_t dev, uint64_t addr); + CUDBGResult (*unsetBreakpoint)(uint32_t dev, uint64_t addr); + CUDBGResult (*setNotifyNewEventCallback40)(CUDBGNotifyNewEventCallback40 callback); + + /* 4.0 Extensions */ + CUDBGResult (*getNextEvent42)(CUDBGEvent42 *event); + CUDBGResult (*readTextureMemory)(uint32_t devId, uint32_t vsm, uint32_t wp, uint32_t id, uint32_t dim, uint32_t *coords, void *buf, uint32_t sz); + CUDBGResult (*readBlockIdx)(uint32_t dev, uint32_t sm, uint32_t wp, CuDim3 *blockIdx); + CUDBGResult (*getGridDim)(uint32_t dev, uint32_t sm, uint32_t wp, CuDim3 *gridDim); + CUDBGResult (*readCallDepth)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t *depth); + CUDBGResult (*readReturnAddress)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t level, uint64_t *ra); + CUDBGResult (*readVirtualReturnAddress)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t level, uint64_t *ra); + CUDBGResult (*getElfImage)(uint32_t dev, uint32_t sm, uint32_t wp, bool relocated, void **elfImage, uint64_t *size); + + /* 4.1 Extensions */ + CUDBGResult (*getHostAddrFromDeviceAddr)(uint32_t dev, uint64_t device_addr, uint64_t *host_addr); + CUDBGResult (*singleStepWarp41)(uint32_t dev, uint32_t sm, uint32_t wp, uint64_t *warpMask); + CUDBGResult (*setNotifyNewEventCallback)(CUDBGNotifyNewEventCallback callback); + CUDBGResult (*readSyscallCallDepth)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t *depth); + + /* 4.2 Extensions */ + CUDBGResult (*readTextureMemoryBindless)(uint32_t devId, uint32_t vsm, uint32_t wp, uint32_t texSymtabIndex, uint32_t dim, uint32_t *coords, void *buf, uint32_t sz); + + /* 5.0 Extensions */ + CUDBGResult (*clearAttachState)(void); + CUDBGResult (*getNextSyncEvent50)(CUDBGEvent50 *event); + CUDBGResult (*memcheckReadErrorAddress)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint64_t *address, ptxStorageKind *storage); + CUDBGResult (*acknowledgeSyncEvents)(void); + CUDBGResult (*getNextAsyncEvent50)(CUDBGEvent50 *event); + CUDBGResult (*requestCleanupOnDetach55)(void); + CUDBGResult (*initializeAttachStub)(void); + CUDBGResult (*getGridStatus50)(uint32_t dev, uint32_t gridId, CUDBGGridStatus *status); + + /* 5.5 Extensions */ + CUDBGResult (*getNextSyncEvent55)(CUDBGEvent55 *event); + CUDBGResult (*getNextAsyncEvent55)(CUDBGEvent55 *event); + CUDBGResult (*getGridInfo55)(uint32_t dev, uint64_t gridId64, CUDBGGridInfo55 *gridInfo); + CUDBGResult (*readGridId)(uint32_t dev, uint32_t sm, uint32_t wp, uint64_t *gridId64); + CUDBGResult (*getGridStatus)(uint32_t dev, uint64_t gridId64, CUDBGGridStatus *status); + CUDBGResult (*setKernelLaunchNotificationMode)(CUDBGKernelLaunchNotifyMode mode); + CUDBGResult (*getDevicePCIBusInfo)(uint32_t devId, uint32_t *pciBusId, uint32_t *pciDevId); + CUDBGResult (*readDeviceExceptionState80)(uint32_t devId, uint64_t *exceptionSMMask); + + /* 6.0 Extensions */ + CUDBGResult (*getAdjustedCodeAddress)(uint32_t devId, uint64_t address, uint64_t *adjustedAddress, CUDBGAdjAddrAction adjAction); + CUDBGResult (*readErrorPC)(uint32_t devId, uint32_t sm, uint32_t wp, uint64_t *errorPC, bool *errorPCValid); + CUDBGResult (*getNextEvent)(CUDBGEventQueueType type, CUDBGEvent *event); + CUDBGResult (*getElfImageByHandle)(uint32_t devId, uint64_t handle, CUDBGElfImageType type, void *elfImage, uint64_t size); + CUDBGResult (*resumeWarpsUntilPC)(uint32_t devId, uint32_t sm, uint64_t warpMask, uint64_t virtPC); + CUDBGResult (*readWarpState60)(uint32_t devId, uint32_t sm, uint32_t wp, CUDBGWarpState60 *state); + CUDBGResult (*readRegisterRange)(uint32_t devId, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t index, uint32_t registers_size, uint32_t *registers); + CUDBGResult (*readGenericMemory)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint64_t addr, void *buf, uint32_t sz); + CUDBGResult (*writeGenericMemory)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint64_t addr, const void *buf, uint32_t sz); + CUDBGResult (*readGlobalMemory)(uint64_t addr, void *buf, uint32_t sz); + CUDBGResult (*writeGlobalMemory)(uint64_t addr, const void *buf, uint32_t sz); + CUDBGResult (*getManagedMemoryRegionInfo)(uint64_t startAddress, CUDBGMemoryInfo *memoryInfo, uint32_t memoryInfo_size, uint32_t *numEntries); + CUDBGResult (*isDeviceCodeAddress)(uintptr_t addr, bool *isDeviceAddress); + CUDBGResult (*requestCleanupOnDetach)(uint32_t appResumeFlag); + + /* 6.5 Extensions */ + CUDBGResult (*readPredicates)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t predicates_size, uint32_t *predicates); + CUDBGResult (*writePredicates)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t predicates_size, const uint32_t *predicates); + CUDBGResult (*getNumPredicates)(uint32_t dev, uint32_t *numPredicates); + CUDBGResult (*readCCRegister)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t *val); + CUDBGResult (*writeCCRegister)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint32_t val); + + CUDBGResult (*getDeviceName)(uint32_t dev, char *buf, uint32_t sz); + CUDBGResult (*singleStepWarp65)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t nsteps, uint64_t *warpMask); + + /* 9.0 Extensions */ + CUDBGResult (*readDeviceExceptionState)(uint32_t devId, uint64_t *mask, uint32_t numWords); + + /* 10.0 Extensions */ + CUDBGResult (*getNumUniformRegisters)(uint32_t dev, uint32_t *numRegs); + CUDBGResult (*readUniformRegisterRange)(uint32_t devId, uint32_t sm, uint32_t wp, uint32_t regno, uint32_t registers_size, uint32_t *registers); + CUDBGResult (*writeUniformRegister)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t regno, uint32_t val); + CUDBGResult (*getNumUniformPredicates)(uint32_t dev, uint32_t *numPredicates); + CUDBGResult (*readUniformPredicates)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t predicates_size, uint32_t *predicates); + CUDBGResult (*writeUniformPredicates)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t predicates_size, const uint32_t *predicates); + + /* 11.8 Extensions */ + CUDBGResult (*getLoadedFunctionInfo118)(uint32_t devId, uint64_t handle, CUDBGLoadedFunctionInfo *info, uint32_t numEntries); + + /* 12.0 Extensions */ + CUDBGResult (*getGridInfo120)(uint32_t dev, uint64_t gridId64, CUDBGGridInfo120 *gridInfo); + CUDBGResult (*getClusterDim120)(uint32_t dev, uint64_t gridId64, CuDim3 *clusterDim); + CUDBGResult (*readWarpState120)(uint32_t dev, uint32_t sm, uint32_t wp, CUDBGWarpState120 *state); + CUDBGResult (*readClusterIdx)(uint32_t dev, uint32_t sm, uint32_t wp, CuDim3 *clusterIdx); + + /* 12.2 Extensions */ + CUDBGResult (*getErrorStringEx)(char *buf, uint32_t bufSz, uint32_t *msgSz); + + /* 12.3 Extensions */ + CUDBGResult (*getLoadedFunctionInfo)(uint32_t devId, uint64_t handle, CUDBGLoadedFunctionInfo *info, uint32_t startIndex, uint32_t numEntries); + CUDBGResult (*generateCoredump)(const char* filename, CUDBGCoredumpGenerationFlags flags); + CUDBGResult (*getConstBankAddress123)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t bank, uint32_t offset, uint64_t* address); + + /* 12.4 Extensions */ + CUDBGResult (*getDeviceInfoSizes)(uint32_t dev, CUDBGDeviceInfoSizes* sizes); + CUDBGResult (*getDeviceInfo)(uint32_t dev, CUDBGDeviceInfoQueryType_t type, void *buffer, uint32_t length, uint32_t *dataLength); + CUDBGResult (*getConstBankAddress)(uint32_t dev, uint64_t gridId64, uint32_t bank, uint64_t* address, uint32_t* size); + CUDBGResult (*singleStepWarp)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t laneHint, uint32_t nsteps, uint32_t flags, uint64_t *warpMask); + + /* 12.5 Extensions */ + CUDBGResult (*readAllVirtualReturnAddresses)(uint32_t dev, uint32_t sm, uint32_t wp, uint32_t ln, uint64_t *addrs, uint32_t numAddrs, uint32_t* callDepth, uint32_t* syscallCallDepth); + CUDBGResult (*getSupportedDebuggerCapabilities)(CUDBGCapabilityFlags* capabilities); + CUDBGResult (*readSmException)(uint32_t dev, uint32_t sm, CUDBGException_t *exception, uint64_t *errorPC, bool *errorPCValid); + + /* 12.6 Extensions */ + CUDBGResult (*executeInternalCommand)(const char* command, char* resultBuffer, uint32_t sizeInBytes); + + /* 12.7 Extensions */ + CUDBGResult (*getGridInfo)(uint32_t dev, uint64_t gridId64, CUDBGGridInfo *gridInfo); + CUDBGResult (*getClusterDim)(uint32_t dev, uint32_t sm, uint32_t wp, CuDim3 *clusterDim); + CUDBGResult (*readWarpState)(uint32_t dev, uint32_t sm, uint32_t wp, CUDBGWarpState *state); + CUDBGResult (*getClusterExceptionTargetBlock)(uint32_t dev, uint32_t sm, uint32_t wp, CuDim3 *blockIdx, bool *blockIdxValid); + + /* 12.8 Extensions */ + CUDBGResult (*readWarpResources)(uint32_t dev, uint32_t sm, uint32_t wp, CUDBGWarpResources *resources); +}; + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/about.json b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..6fca74fe09519bb903e7a869f9b94157c0b1afb2 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/about.json @@ -0,0 +1,138 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://conda.anaconda.org/nvidia/linux-64" + ], + "conda_build_version": "24.1.2", + "conda_version": "24.1.2", + "description": "CUDA-GDB is the NVIDIA tool for debugging CUDA applications running on Linux.\nCUDA-GDB is an extension to the x86-64 port of GDB, the GNU Project debugger.\n", + "doc_url": "https://docs.nvidia.com/cuda/cuda-gdb/index.html", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "recipe-maintainers": [ + "conda-forge/cuda" + ] + }, + "home": "https://developer.nvidia.com/cuda-toolkit", + "identifiers": [], + "keywords": [], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "license_file": "LICENSE", + "license_url": "https://docs.nvidia.com/cuda/eula/index.html", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "_openmp_mutex 5.1 1_gnu", + "archspec 0.2.1 pyhd3eb1b0_0", + "boltons 23.0.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_7", + "bzip2 1.0.8 h7b6447c_0", + "c-ares 1.19.1 h5eee18b_0", + "ca-certificates 2023.12.12 h06a4308_0", + "certifi 2024.2.2 py312h06a4308_0", + "cffi 1.16.0 py312h5eee18b_0", + "charset-normalizer 2.0.4 pyhd3eb1b0_0", + "conda 24.1.2 py312h06a4308_0", + "conda-content-trust 0.2.0 py312h06a4308_0", + "conda-libmamba-solver 23.12.0 pyhd3eb1b0_1", + "conda-package-handling 2.2.0 py312h06a4308_0", + "conda-package-streaming 0.9.0 py312h06a4308_0", + "cryptography 41.0.7 py312hdda0065_0", + "distro 1.8.0 py312h06a4308_0", + "expat 2.5.0 h6a678d5_0", + "fmt 9.1.0 hdb19cb5_0", + "icu 73.1 h6a678d5_0", + "idna 3.4 py312h06a4308_0", + "jsonpatch 1.32 pyhd3eb1b0_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "krb5 1.20.1 h143b758_1", + "ld_impl_linux-64 2.38 h1181459_1", + "libarchive 3.6.2 h6ac8c49_2", + "libcurl 8.5.0 h251f7ec_0", + "libedit 3.1.20230828 h5eee18b_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_0", + "libgcc-ng 11.2.0 h1234567_1", + "libgomp 11.2.0 h1234567_1", + "libmamba 1.5.3 haf1ee3a_0", + "libmambapy 1.5.3 py312h2dafd23_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libsolv 0.7.24 he621ea3_0", + "libssh2 1.10.0 hdbd6064_2", + "libstdcxx-ng 11.2.0 h1234567_1", + "libuuid 1.41.5 h5eee18b_0", + "libxml2 2.10.4 hf1b16e4_1", + "lz4-c 1.9.4 h6a678d5_0", + "menuinst 2.0.2 py312h06a4308_0", + "ncurses 6.4 h6a678d5_0", + "openssl 3.0.13 h7f8727e_0", + "packaging 23.1 py312h06a4308_0", + "pcre2 10.42 hebb0a14_0", + "pip 23.3.1 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.0.0 py312h06a4308_1", + "pybind11-abi 4 hd3eb1b0_1", + "pycosat 0.6.6 py312h5eee18b_0", + "pycparser 2.21 pyhd3eb1b0_0", + "pysocks 1.7.1 py312h06a4308_0", + "python 3.12.1 h996f2a0_0", + "readline 8.2 h5eee18b_0", + "reproc 14.2.4 h295c915_1", + "reproc-cpp 14.2.4 h295c915_1", + "requests 2.31.0 py312h06a4308_1", + "ruamel.yaml 0.17.21 py312h5eee18b_0", + "setuptools 68.2.2 py312h06a4308_0", + "sqlite 3.41.2 h5eee18b_0", + "tk 8.6.12 h1ccaba5_0", + "tqdm 4.65.0 py312he106c6f_0", + "truststore 0.8.0 py312h06a4308_0", + "tzdata 2023d h04d1e81_0", + "urllib3 2.1.0 py312h06a4308_1", + "wheel 0.41.2 py312h06a4308_0", + "xz 5.4.5 h5eee18b_0", + "yaml-cpp 0.8.0 h6a678d5_0", + "zlib 1.2.13 h5eee18b_0", + "zstandard 0.19.0 py312h5eee18b_0", + "zstd 1.5.5 hc292b87_0", + "anaconda-anon-usage 0.4.3 py312hfc0e8ea_100", + "anaconda-client 1.12.3 py312h06a4308_0", + "attrs 23.1.0 py312h06a4308_0", + "beautifulsoup4 4.12.2 py312h06a4308_0", + "chardet 4.0.0 py312h06a4308_1003", + "click 8.1.7 py312h06a4308_0", + "conda-build 24.1.2 py312h06a4308_0", + "conda-index 0.4.0 pyhd3eb1b0_0", + "defusedxml 0.7.1 pyhd3eb1b0_0", + "filelock 3.13.1 py312h06a4308_0", + "jinja2 3.1.3 py312h06a4308_0", + "jsonschema 4.19.2 py312h06a4308_0", + "jsonschema-specifications 2023.7.1 py312h06a4308_0", + "jupyter_core 5.5.0 py312h06a4308_0", + "liblief 0.12.3 h6a678d5_0", + "markupsafe 2.1.3 py312h5eee18b_0", + "more-itertools 10.1.0 py312h06a4308_0", + "nbformat 5.9.2 py312h06a4308_0", + "patch 2.7.6 h7b6447c_1001", + "patchelf 0.17.2 h6a678d5_0", + "pkginfo 1.9.6 py312h06a4308_0", + "psutil 5.9.0 py312h5eee18b_0", + "py-lief 0.12.3 py312h6a678d5_0", + "python-dateutil 2.8.2 pyhd3eb1b0_0", + "python-fastjsonschema 2.16.2 py312h06a4308_0", + "python-libarchive-c 2.9 pyhd3eb1b0_1", + "pytz 2023.3.post1 py312h06a4308_0", + "pyyaml 6.0.1 py312h5eee18b_0", + "referencing 0.30.2 py312h06a4308_0", + "requests-toolbelt 1.0.0 py312h06a4308_0", + "rpds-py 0.10.6 py312hb02cf49_0", + "six 1.16.0 pyhd3eb1b0_1", + "soupsieve 2.5 py312h06a4308_0", + "traitlets 5.7.1 py312h06a4308_0", + "yaml 0.2.5 h7b6447c_0" + ], + "summary": "CUDA-GDB is the NVIDIA tool for debugging CUDA applications", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/files b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..0baaf95a022a83635fabdbb8083e7ba9b92cd394 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/files @@ -0,0 +1,49 @@ +bin/cuda-gdb +bin/cuda-gdbserver +extras/Debugger/Readme.txt +extras/Debugger/include/cuda_stdint.h +extras/Debugger/include/cudacoredump.h +extras/Debugger/include/cudadebugger.h +share/gdb/python/gdb/FrameDecorator.py +share/gdb/python/gdb/FrameIterator.py +share/gdb/python/gdb/__init__.py +share/gdb/python/gdb/command/__init__.py +share/gdb/python/gdb/command/explore.py +share/gdb/python/gdb/command/frame_filters.py +share/gdb/python/gdb/command/pretty_printers.py +share/gdb/python/gdb/command/prompt.py +share/gdb/python/gdb/command/type_printers.py +share/gdb/python/gdb/command/unwinders.py +share/gdb/python/gdb/command/xmethods.py +share/gdb/python/gdb/disassembler.py +share/gdb/python/gdb/frames.py +share/gdb/python/gdb/function/__init__.py +share/gdb/python/gdb/function/as_string.py +share/gdb/python/gdb/function/caller_is.py +share/gdb/python/gdb/function/strfns.py +share/gdb/python/gdb/printer/__init__.py +share/gdb/python/gdb/printer/bound_registers.py +share/gdb/python/gdb/printing.py +share/gdb/python/gdb/prompt.py +share/gdb/python/gdb/styling.py +share/gdb/python/gdb/types.py +share/gdb/python/gdb/unwinder.py +share/gdb/python/gdb/xmethod.py +share/gdb/syscalls/aarch64-linux.xml +share/gdb/syscalls/amd64-linux.xml +share/gdb/syscalls/arm-linux.xml +share/gdb/syscalls/freebsd.xml +share/gdb/syscalls/gdb-syscalls.dtd +share/gdb/syscalls/i386-linux.xml +share/gdb/syscalls/mips-n32-linux.xml +share/gdb/syscalls/mips-n64-linux.xml +share/gdb/syscalls/mips-o32-linux.xml +share/gdb/syscalls/netbsd.xml +share/gdb/syscalls/ppc-linux.xml +share/gdb/syscalls/ppc64-linux.xml +share/gdb/syscalls/s390-linux.xml +share/gdb/syscalls/s390x-linux.xml +share/gdb/syscalls/sparc-linux.xml +share/gdb/syscalls/sparc64-linux.xml +share/gdb/system-gdbinit/elinos.py +share/gdb/system-gdbinit/wrs-linux.py diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/git b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/index.json b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..1ce8ad8eb7b7f39babf0e8c8c7d01cedad114914 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/index.json @@ -0,0 +1,18 @@ +{ + "arch": "x86_64", + "build": "0", + "build_number": 0, + "depends": [ + "__glibc >=2.17,<3.0.a0", + "cuda-version >=12.8,<12.9.0a0", + "gmp >=6.3.0,<7.0a0", + "libgcc-ng >=11.2.0", + "libstdcxx-ng >=11.2.0" + ], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "name": "cuda-gdb", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1739449648073, + "version": "12.8.90" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/licenses/LICENSE b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..6622367aff6567f25c18f500137a36caf101ea50 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/licenses/LICENSE @@ -0,0 +1,1632 @@ +End User License Agreement +-------------------------- + +NVIDIA Software License Agreement and CUDA Supplement to +Software License Agreement. + +The CUDA Toolkit End User License Agreement applies to the +NVIDIA CUDA Toolkit, the NVIDIA CUDA Samples, the NVIDIA +Display Driver, NVIDIA Nsight tools (Visual Studio Edition), +and the associated documentation on CUDA APIs, programming +model and development tools. If you do not agree with the +terms and conditions of the license agreement, then do not +download or use the software. + +Last updated: January 12, 2024. + + +Preface +------- + +The Software License Agreement in Chapter 1 and the Supplement +in Chapter 2 contain license terms and conditions that govern +the use of NVIDIA toolkit. By accepting this agreement, you +agree to comply with all the terms and conditions applicable +to the product(s) included herein. + + +NVIDIA Driver + + +Description + +This package contains the operating system driver and +fundamental system software components for NVIDIA GPUs. + + +NVIDIA CUDA Toolkit + + +Description + +The NVIDIA CUDA Toolkit provides command-line and graphical +tools for building, debugging and optimizing the performance +of applications accelerated by NVIDIA GPUs, runtime and math +libraries, and documentation including programming guides, +user manuals, and API references. + + +Default Install Location of CUDA Toolkit + +Windows platform: + +%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v#.# + +Linux platform: + +/usr/local/cuda-#.# + +Mac platform: + +/Developer/NVIDIA/CUDA-#.# + + +NVIDIA CUDA Samples + + +Description + +CUDA Samples are now located in +https://github.com/nvidia/cuda-samples, which includes +instructions for obtaining, building, and running the samples. +They are no longer included in the CUDA toolkit. + + +NVIDIA Nsight Visual Studio Edition (Windows only) + + +Description + +NVIDIA Nsight Development Platform, Visual Studio Edition is a +development environment integrated into Microsoft Visual +Studio that provides tools for debugging, profiling, analyzing +and optimizing your GPU computing and graphics applications. + + +Default Install Location of Nsight Visual Studio Edition + +Windows platform: + +%ProgramFiles(x86)%\NVIDIA Corporation\Nsight Visual Studio Edition #.# + + +1. License Agreement for NVIDIA Software Development Kits +--------------------------------------------------------- + + +Important Notice—Read before downloading, installing, +copying or using the licensed software: +------------------------------------------------------- + +This license agreement, including exhibits attached +("Agreement”) is a legal agreement between you and NVIDIA +Corporation ("NVIDIA") and governs your use of a NVIDIA +software development kit (“SDK”). + +Each SDK has its own set of software and materials, but here +is a description of the types of items that may be included in +a SDK: source code, header files, APIs, data sets and assets +(examples include images, textures, models, scenes, videos, +native API input/output files), binary software, sample code, +libraries, utility programs, programming code and +documentation. + +This Agreement can be accepted only by an adult of legal age +of majority in the country in which the SDK is used. + +If you are entering into this Agreement on behalf of a company +or other legal entity, you represent that you have the legal +authority to bind the entity to this Agreement, in which case +“you” will mean the entity you represent. + +If you don’t have the required age or authority to accept +this Agreement, or if you don’t accept all the terms and +conditions of this Agreement, do not download, install or use +the SDK. + +You agree to use the SDK only for purposes that are permitted +by (a) this Agreement, and (b) any applicable law, regulation +or generally accepted practices or guidelines in the relevant +jurisdictions. + + +1.1. License + + +1.1.1. License Grant + +Subject to the terms of this Agreement, NVIDIA hereby grants +you a non-exclusive, non-transferable license, without the +right to sublicense (except as expressly provided in this +Agreement) to: + + 1. Install and use the SDK, + + 2. Modify and create derivative works of sample source code + delivered in the SDK, and + + 3. Distribute those portions of the SDK that are identified + in this Agreement as distributable, as incorporated in + object code format into a software application that meets + the distribution requirements indicated in this Agreement. + + +1.1.2. Distribution Requirements + +These are the distribution requirements for you to exercise +the distribution grant: + + 1. Your application must have material additional + functionality, beyond the included portions of the SDK. + + 2. The distributable portions of the SDK shall only be + accessed by your application. + + 3. The following notice shall be included in modifications + and derivative works of sample source code distributed: + “This software contains source code provided by NVIDIA + Corporation.” + + 4. Unless a developer tool is identified in this Agreement + as distributable, it is delivered for your internal use + only. + + 5. The terms under which you distribute your application + must be consistent with the terms of this Agreement, + including (without limitation) terms relating to the + license grant and license restrictions and protection of + NVIDIA’s intellectual property rights. Additionally, you + agree that you will protect the privacy, security and + legal rights of your application users. + + 6. You agree to notify NVIDIA in writing of any known or + suspected distribution or use of the SDK not in compliance + with the requirements of this Agreement, and to enforce + the terms of your agreements with respect to distributed + SDK. + + +1.1.3. Authorized Users + +You may allow employees and contractors of your entity or of +your subsidiary(ies) to access and use the SDK from your +secure network to perform work on your behalf. + +If you are an academic institution you may allow users +enrolled or employed by the academic institution to access and +use the SDK from your secure network. + +You are responsible for the compliance with the terms of this +Agreement by your authorized users. If you become aware that +your authorized users didn’t follow the terms of this +Agreement, you agree to take reasonable steps to resolve the +non-compliance and prevent new occurrences. + + +1.1.4. Pre-Release SDK + +The SDK versions identified as alpha, beta, preview or +otherwise as pre-release, may not be fully functional, may +contain errors or design flaws, and may have reduced or +different security, privacy, accessibility, availability, and +reliability standards relative to commercial versions of +NVIDIA software and materials. Use of a pre-release SDK may +result in unexpected results, loss of data, project delays or +other unpredictable damage or loss. + +You may use a pre-release SDK at your own risk, understanding +that pre-release SDKs are not intended for use in production +or business-critical systems. + +NVIDIA may choose not to make available a commercial version +of any pre-release SDK. NVIDIA may also choose to abandon +development and terminate the availability of a pre-release +SDK at any time without liability. + + +1.1.5. Updates + +NVIDIA may, at its option, make available patches, workarounds +or other updates to this SDK. Unless the updates are provided +with their separate governing terms, they are deemed part of +the SDK licensed to you as provided in this Agreement. You +agree that the form and content of the SDK that NVIDIA +provides may change without prior notice to you. While NVIDIA +generally maintains compatibility between versions, NVIDIA may +in some cases make changes that introduce incompatibilities in +future versions of the SDK. + + +1.1.6. Components Under Other Licenses + +The SDK may come bundled with, or otherwise include or be +distributed with, NVIDIA or third-party components with +separate legal notices or terms as may be described in +proprietary notices accompanying the SDK. If and to the extent +there is a conflict between the terms in this Agreement and +the license terms associated with the component, the license +terms associated with the components control only to the +extent necessary to resolve the conflict. + +Subject to the other terms of this Agreement, you may use the +SDK to develop and test applications released under Open +Source Initiative (OSI) approved open source software +licenses. + + +1.1.7. Reservation of Rights + +NVIDIA reserves all rights, title, and interest in and to the +SDK, not expressly granted to you under this Agreement. + + +1.2. Limitations + +The following license limitations apply to your use of the +SDK: + + 1. You may not reverse engineer, decompile or disassemble, + or remove copyright or other proprietary notices from any + portion of the SDK or copies of the SDK. + + 2. Except as expressly provided in this Agreement, you may + not copy, sell, rent, sublicense, transfer, distribute, + modify, or create derivative works of any portion of the + SDK. For clarity, you may not distribute or sublicense the + SDK as a stand-alone product. + + 3. Unless you have an agreement with NVIDIA for this + purpose, you may not indicate that an application created + with the SDK is sponsored or endorsed by NVIDIA. + + 4. You may not bypass, disable, or circumvent any + encryption, security, digital rights management or + authentication mechanism in the SDK. + + 5. You may not use the SDK in any manner that would cause it + to become subject to an open source software license. As + examples, licenses that require as a condition of use, + modification, and/or distribution that the SDK be: + + a. Disclosed or distributed in source code form; + + b. Licensed for the purpose of making derivative works; + or + + c. Redistributable at no charge. + + 6. You acknowledge that the SDK as delivered is not tested + or certified by NVIDIA for use in connection with the + design, construction, maintenance, and/or operation of any + system where the use or failure of such system could + result in a situation that threatens the safety of human + life or results in catastrophic damages (each, a "Critical + Application"). Examples of Critical Applications include + use in avionics, navigation, autonomous vehicle + applications, ai solutions for automotive products, + military, medical, life support or other life critical + applications. NVIDIA shall not be liable to you or any + third party, in whole or in part, for any claims or + damages arising from such uses. You are solely responsible + for ensuring that any product or service developed with + the SDK as a whole includes sufficient features to comply + with all applicable legal and regulatory standards and + requirements. + + 7. You agree to defend, indemnify and hold harmless NVIDIA + and its affiliates, and their respective employees, + contractors, agents, officers and directors, from and + against any and all claims, damages, obligations, losses, + liabilities, costs or debt, fines, restitutions and + expenses (including but not limited to attorney’s fees + and costs incident to establishing the right of + indemnification) arising out of or related to products or + services that use the SDK in or for Critical Applications, + and for use of the SDK outside of the scope of this + Agreement or not in compliance with its terms. + + 8. You may not reverse engineer, decompile or disassemble + any portion of the output generated using SDK elements for + the purpose of translating such output artifacts to target + a non-NVIDIA platform. + + +1.3. Ownership + + 1. NVIDIA or its licensors hold all rights, title and + interest in and to the SDK and its modifications and + derivative works, including their respective intellectual + property rights, subject to your rights under Section + 1.3.2. This SDK may include software and materials from + NVIDIA’s licensors, and these licensors are intended + third party beneficiaries that may enforce this Agreement + with respect to their intellectual property rights. + + 2. You hold all rights, title and interest in and to your + applications and your derivative works of the sample + source code delivered in the SDK, including their + respective intellectual property rights, subject to + NVIDIA’s rights under Section 1.3.1. + + 3. You may, but don’t have to, provide to NVIDIA + suggestions, feature requests or other feedback regarding + the SDK, including possible enhancements or modifications + to the SDK. For any feedback that you voluntarily provide, + you hereby grant NVIDIA and its affiliates a perpetual, + non-exclusive, worldwide, irrevocable license to use, + reproduce, modify, license, sublicense (through multiple + tiers of sublicensees), and distribute (through multiple + tiers of distributors) it without the payment of any + royalties or fees to you. NVIDIA will use feedback at its + choice. NVIDIA is constantly looking for ways to improve + its products, so you may send feedback to NVIDIA through + the developer portal at https://developer.nvidia.com. + + +1.4. No Warranties + +THE SDK IS PROVIDED BY NVIDIA “AS IS” AND “WITH ALL +FAULTS.” TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND +ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND +OR NATURE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, +BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, OR THE +ABSENCE OF ANY DEFECTS THEREIN, WHETHER LATENT OR PATENT. NO +WARRANTY IS MADE ON THE BASIS OF TRADE USAGE, COURSE OF +DEALING OR COURSE OF TRADE. + + +1.5. Limitation of Liability + +TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS +AFFILIATES SHALL NOT BE LIABLE FOR ANY (I) SPECIAL, INCIDENTAL, +PUNITIVE OR CONSEQUENTIAL DAMAGES, OR (II) DAMAGES FOR (A) ANY +LOST PROFITS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL, +OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF +OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFORMANCE +OF THE SDK, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED +UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING +NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR +THEORY OF LIABILITY. IN NO EVENT WILL NVIDIA’S AND ITS AFFILIATES +TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS +AGREEMENT EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE +NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE OR EXTEND THIS +LIMIT. + +These exclusions and limitations of liability shall apply +regardless if NVIDIA or its affiliates have been advised of +the possibility of such damages, and regardless of whether a +remedy fails its essential purpose. These exclusions and +limitations of liability form an essential basis of the +bargain between the parties, and, absent any of these +exclusions or limitations of liability, the provisions of this +Agreement, including, without limitation, the economic terms, +would be substantially different. + + +1.6. Termination + + 1. This Agreement will continue to apply until terminated by + either you or NVIDIA as described below. + + 2. If you want to terminate this Agreement, you may do so by + stopping to use the SDK. + + 3. NVIDIA may, at any time, terminate this Agreement if: + + a. (i) you fail to comply with any term of this + Agreement and the non-compliance is not fixed within + thirty (30) days following notice from NVIDIA (or + immediately if you violate NVIDIA’s intellectual + property rights); + + b. (ii) you commence or participate in any legal + proceeding against NVIDIA with respect to the SDK; or + + c. (iii) NVIDIA decides to no longer provide the SDK in + a country or, in NVIDIA’s sole discretion, the + continued use of it is no longer commercially viable. + + 4. Upon any termination of this Agreement, you agree to + promptly discontinue use of the SDK and destroy all copies + in your possession or control. Your prior distributions in + accordance with this Agreement are not affected by the + termination of this Agreement. Upon written request, you + will certify in writing that you have complied with your + commitments under this section. Upon any termination of + this Agreement all provisions survive except for the + license grant provisions. + + +1.7. General + +If you wish to assign this Agreement or your rights and +obligations, including by merger, consolidation, dissolution +or operation of law, contact NVIDIA to ask for permission. Any +attempted assignment not approved by NVIDIA in writing shall +be void and of no effect. NVIDIA may assign, delegate or +transfer this Agreement and its rights and obligations, and if +to a non-affiliate you will be notified. + +You agree to cooperate with NVIDIA and provide reasonably +requested information to verify your compliance with this +Agreement. + +This Agreement will be governed in all respects by the laws of +the United States and of the State of Delaware, without regard to the +conflicts of laws principles. The United Nations Convention on +Contracts for the International Sale of Goods is specifically +disclaimed. You agree to all terms of this Agreement in the +English language. + +The state or federal courts residing in Santa Clara County, +California shall have exclusive jurisdiction over any dispute +or claim arising out of this Agreement. Notwithstanding this, +you agree that NVIDIA shall still be allowed to apply for +injunctive remedies or an equivalent type of urgent legal +relief in any jurisdiction. + +If any court of competent jurisdiction determines that any +provision of this Agreement is illegal, invalid or +unenforceable, such provision will be construed as limited to +the extent necessary to be consistent with and fully +enforceable under the law and the remaining provisions will +remain in full force and effect. Unless otherwise specified, +remedies are cumulative. + +Each party acknowledges and agrees that the other is an +independent contractor in the performance of this Agreement. + +The SDK has been developed entirely at private expense and is +“commercial items” consisting of “commercial computer +software” and “commercial computer software +documentation” provided with RESTRICTED RIGHTS. Use, +duplication or disclosure by the U.S. Government or a U.S. +Government subcontractor is subject to the restrictions in +this Agreement pursuant to DFARS 227.7202-3(a) or as set forth +in subparagraphs (c)(1) and (2) of the Commercial Computer +Software - Restricted Rights clause at FAR 52.227-19, as +applicable. Contractor/manufacturer is NVIDIA, 2788 San Tomas +Expressway, Santa Clara, CA 95051. + +The SDK is subject to United States export laws and +regulations. You agree that you will not ship, transfer or +export the SDK into any country, or use the SDK in any manner, +prohibited by the United States Bureau of Industry and +Security or economic sanctions regulations administered by the +U.S. Department of Treasury’s Office of Foreign Assets +Control (OFAC), or any applicable export laws, restrictions or +regulations. These laws include restrictions on destinations, +end users and end use. By accepting this Agreement, you +confirm that you are not located in a country currently +embargoed by the U.S. or otherwise prohibited from receiving +the SDK under U.S. law. + +Any notice delivered by NVIDIA to you under this Agreement +will be delivered via mail, email or fax. You agree that any +notices that NVIDIA sends you electronically will satisfy any +legal communication requirements. Please direct your legal +notices or other correspondence to NVIDIA Corporation, 2788 +San Tomas Expressway, Santa Clara, California 95051, United +States of America, Attention: Legal Department. + +This Agreement and any exhibits incorporated into this +Agreement constitute the entire agreement of the parties with +respect to the subject matter of this Agreement and supersede +all prior negotiations or documentation exchanged between the +parties relating to this SDK license. Any additional and/or +conflicting terms on documents issued by you are null, void, +and invalid. Any amendment or waiver under this Agreement +shall be in writing and signed by representatives of both +parties. + + +2. CUDA Toolkit Supplement to Software License Agreement for +NVIDIA Software Development Kits +------------------------------------------------------------ + +The terms in this supplement govern your use of the NVIDIA +CUDA Toolkit SDK under the terms of your license agreement +(“Agreement”) as modified by this supplement. Capitalized +terms used but not defined below have the meaning assigned to +them in the Agreement. + +This supplement is an exhibit to the Agreement and is +incorporated as an integral part of the Agreement. In the +event of conflict between the terms in this supplement and the +terms in the Agreement, the terms in this supplement govern. + + +2.1. License Scope + +The SDK is licensed for you to develop applications only for +use in systems with NVIDIA GPUs. + + +2.2. Distribution + +The portions of the SDK that are distributable under the +Agreement are listed in Attachment A. + + +2.3. Operating Systems + +Those portions of the SDK designed exclusively for use on the +Linux or FreeBSD operating systems, or other operating systems +derived from the source code to these operating systems, may +be copied and redistributed for use in accordance with this +Agreement, provided that the object code files are not +modified in any way (except for unzipping of compressed +files). + + +2.4. Audio and Video Encoders and Decoders + +You acknowledge and agree that it is your sole responsibility +to obtain any additional third-party licenses required to +make, have made, use, have used, sell, import, and offer for +sale your products or services that include or incorporate any +third-party software and content relating to audio and/or +video encoders and decoders from, including but not limited +to, Microsoft, Thomson, Fraunhofer IIS, Sisvel S.p.A., +MPEG-LA, and Coding Technologies. NVIDIA does not grant to you +under this Agreement any necessary patent or other rights with +respect to any audio and/or video encoders and decoders. + + +2.5. Licensing + +If the distribution terms in this Agreement are not suitable +for your organization, or for any questions regarding this +Agreement, please contact NVIDIA at +nvidia-compute-license-questions@nvidia.com. + + +2.6. Attachment A + +The following CUDA Toolkit files may be distributed with +applications developed by you, including certain +variations of these files that have version number or +architecture specific information embedded in the file name - +as an example only, for release version 9.0 of the 64-bit +Windows software, the file cudart64_90.dll is redistributable. + +Component + +CUDA Runtime + +Windows + +cudart.dll, cudart_static.lib, cudadevrt.lib + +Mac OSX + +libcudart.dylib, libcudart_static.a, libcudadevrt.a + +Linux + +libcudart.so, libcudart_static.a, libcudadevrt.a + +Android + +libcudart.so, libcudart_static.a, libcudadevrt.a + +Component + +CUDA FFT Library + +Windows + +cufft.dll, cufftw.dll, cufft.lib, cufftw.lib + +Mac OSX + +libcufft.dylib, libcufft_static.a, libcufftw.dylib, +libcufftw_static.a + +Linux + +libcufft.so, libcufft_static.a, libcufftw.so, +libcufftw_static.a + +Android + +libcufft.so, libcufft_static.a, libcufftw.so, +libcufftw_static.a + +Component + +CUDA BLAS Library + +Windows + +cublas.dll, cublasLt.dll + +Mac OSX + +libcublas.dylib, libcublasLt.dylib, libcublas_static.a, +libcublasLt_static.a + +Linux + +libcublas.so, libcublasLt.so, libcublas_static.a, +libcublasLt_static.a + +Android + +libcublas.so, libcublasLt.so, libcublas_static.a, +libcublasLt_static.a + +Component + +NVIDIA "Drop-in" BLAS Library + +Windows + +nvblas.dll + +Mac OSX + +libnvblas.dylib + +Linux + +libnvblas.so + +Component + +CUDA Sparse Matrix Library + +Windows + +cusparse.dll, cusparse.lib + +Mac OSX + +libcusparse.dylib, libcusparse_static.a + +Linux + +libcusparse.so, libcusparse_static.a + +Android + +libcusparse.so, libcusparse_static.a + +Component + +CUDA Linear Solver Library + +Windows + +cusolver.dll, cusolver.lib + +Mac OSX + +libcusolver.dylib, libcusolver_static.a + +Linux + +libcusolver.so, libcusolver_static.a + +Android + +libcusolver.so, libcusolver_static.a + +Component + +CUDA Random Number Generation Library + +Windows + +curand.dll, curand.lib + +Mac OSX + +libcurand.dylib, libcurand_static.a + +Linux + +libcurand.so, libcurand_static.a + +Android + +libcurand.so, libcurand_static.a + +Component + +NVIDIA Performance Primitives Library + +Windows + +nppc.dll, nppc.lib, nppial.dll, nppial.lib, nppicc.dll, +nppicc.lib, nppicom.dll, nppicom.lib, nppidei.dll, +nppidei.lib, nppif.dll, nppif.lib, nppig.dll, nppig.lib, +nppim.dll, nppim.lib, nppist.dll, nppist.lib, nppisu.dll, +nppisu.lib, nppitc.dll, nppitc.lib, npps.dll, npps.lib + +Mac OSX + +libnppc.dylib, libnppc_static.a, libnppial.dylib, +libnppial_static.a, libnppicc.dylib, libnppicc_static.a, +libnppicom.dylib, libnppicom_static.a, libnppidei.dylib, +libnppidei_static.a, libnppif.dylib, libnppif_static.a, +libnppig.dylib, libnppig_static.a, libnppim.dylib, +libnppisu_static.a, libnppitc.dylib, libnppitc_static.a, +libnpps.dylib, libnpps_static.a + +Linux + +libnppc.so, libnppc_static.a, libnppial.so, +libnppial_static.a, libnppicc.so, libnppicc_static.a, +libnppicom.so, libnppicom_static.a, libnppidei.so, +libnppidei_static.a, libnppif.so, libnppif_static.a +libnppig.so, libnppig_static.a, libnppim.so, +libnppim_static.a, libnppist.so, libnppist_static.a, +libnppisu.so, libnppisu_static.a, libnppitc.so +libnppitc_static.a, libnpps.so, libnpps_static.a + +Android + +libnppc.so, libnppc_static.a, libnppial.so, +libnppial_static.a, libnppicc.so, libnppicc_static.a, +libnppicom.so, libnppicom_static.a, libnppidei.so, +libnppidei_static.a, libnppif.so, libnppif_static.a +libnppig.so, libnppig_static.a, libnppim.so, +libnppim_static.a, libnppist.so, libnppist_static.a, +libnppisu.so, libnppisu_static.a, libnppitc.so +libnppitc_static.a, libnpps.so, libnpps_static.a + +Component + +NVIDIA JPEG Library + +Windows + +nvjpeg.lib, nvjpeg.dll + +Linux + +libnvjpeg.so, libnvjpeg_static.a + +Component + +Internal common library required for statically linking to +cuBLAS, cuSPARSE, cuFFT, cuRAND, nvJPEG and NPP + +Mac OSX + +libculibos.a + +Linux + +libculibos.a + +Component + +NVIDIA Runtime Compilation Library and Header + +All + +nvrtc.h + +Windows + +nvrtc.dll, nvrtc-builtins.dll + +Mac OSX + +libnvrtc.dylib, libnvrtc-builtins.dylib + +Linux + +libnvrtc.so, libnvrtc-builtins.so, libnvrtc_static.a, libnvrtx-builtins_static.a + +Component + +NVIDIA Optimizing Compiler Library + +Windows + +nvvm.dll + +Mac OSX + +libnvvm.dylib + +Linux + +libnvvm.so + +Component + +NVIDIA JIT Linking Library + +Windows + +libnvJitLink.dll, libnvJitLink.lib + +Linux + +libnvJitLink.so, libnvJitLink_static.a + +Component + +NVIDIA Common Device Math Functions Library + +Windows + +libdevice.10.bc + +Mac OSX + +libdevice.10.bc + +Linux + +libdevice.10.bc + +Component + +CUDA Occupancy Calculation Header Library + +All + +cuda_occupancy.h + +Component + +CUDA Half Precision Headers + +All + +cuda_fp16.h, cuda_fp16.hpp + +Component + +CUDA Profiling Tools Interface (CUPTI) Library + +Windows + +cupti.dll + +Mac OSX + +libcupti.dylib + +Linux + +libcupti.so + +Component + +NVIDIA Tools Extension Library + +Windows + +nvToolsExt.dll, nvToolsExt.lib + +Mac OSX + +libnvToolsExt.dylib + +Linux + +libnvToolsExt.so + +Component + +NVIDIA CUDA Driver Libraries + +Linux + +libcuda.so, libnvidia-ptxjitcompiler.so, libnvptxcompiler_static.a + +Component + +NVIDIA CUDA File IO Libraries and Header + +All + +cufile.h + +Linux + +libcufile.so, libcufile_rdma.so, libcufile_static.a, +libcufile_rdma_static.a + +In addition to the rights above, for parties that are +developing software intended solely for use on Jetson +development kits or Jetson modules, and running Linux for +Tegra software, the following shall apply: + + * The SDK may be distributed in its entirety, as provided by + NVIDIA, and without separation of its components, for you + and/or your licensees to create software development kits + for use only on the Jetson platform and running Linux for + Tegra software. + + +2.7. Attachment B + + +Additional Licensing Obligations + +The following third party components included in the SOFTWARE +are licensed to Licensee pursuant to the following terms and +conditions: + + 1. Licensee's use of the GDB third party component is + subject to the terms and conditions of GNU GPL v3: + + This product includes copyrighted third-party software licensed + under the terms of the GNU General Public License v3 ("GPL v3"). + All third-party software packages are copyright by their respective + authors. GPL v3 terms and conditions are hereby incorporated into + the Agreement by this reference: http://www.gnu.org/licenses/gpl.txt + + Consistent with these licensing requirements, the software + listed below is provided under the terms of the specified + open source software licenses. To obtain source code for + software provided under licenses that require + redistribution of source code, including the GNU General + Public License (GPL) and GNU Lesser General Public License + (LGPL), contact oss-requests@nvidia.com. This offer is + valid for a period of three (3) years from the date of the + distribution of this product by NVIDIA CORPORATION. + + Component License + CUDA-GDB GPL v3 + + 2. Licensee represents and warrants that any and all third + party licensing and/or royalty payment obligations in + connection with Licensee's use of the H.264 video codecs + are solely the responsibility of Licensee. + + 3. Licensee's use of the Thrust library is subject to the + terms and conditions of the Apache License Version 2.0. + All third-party software packages are copyright by their + respective authors. Apache License Version 2.0 terms and + conditions are hereby incorporated into the Agreement by + this reference. + http://www.apache.org/licenses/LICENSE-2.0.html + + In addition, Licensee acknowledges the following notice: + Thrust includes source code from the Boost Iterator, + Tuple, System, and Random Number libraries. + + Boost Software License - Version 1.0 - August 17th, 2003 + . . . . + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all + subject to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR + OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + 4. Licensee's use of the LLVM third party component is + subject to the following terms and conditions: + + ====================================================== + LLVM Release License + ====================================================== + University of Illinois/NCSA + Open Source License + + Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. + All rights reserved. + + Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal with the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at Urbana- + Champaign, nor the names of its contributors may be used to endorse or + promote products derived from this Software without specific prior + written permission. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS WITH THE SOFTWARE. + + 5. Licensee's use of the PCRE third party component is + subject to the following terms and conditions: + + ------------ + PCRE LICENCE + ------------ + PCRE is a library of functions to support regular expressions whose syntax + and semantics are as close as possible to those of the Perl 5 language. + Release 8 of PCRE is distributed under the terms of the "BSD" licence, as + specified below. The documentation for PCRE, supplied in the "doc" + directory, is distributed under the same terms as the software itself. The + basic library functions are written in C and are freestanding. Also + included in the distribution is a set of C++ wrapper functions, and a just- + in-time compiler that can be used to optimize pattern matching. These are + both optional features that can be omitted when the library is built. + + THE BASIC LIBRARY FUNCTIONS + --------------------------- + Written by: Philip Hazel + Email local part: ph10 + Email domain: cam.ac.uk + University of Cambridge Computing Service, + Cambridge, England. + Copyright (c) 1997-2012 University of Cambridge + All rights reserved. + + PCRE JUST-IN-TIME COMPILATION SUPPORT + ------------------------------------- + Written by: Zoltan Herczeg + Email local part: hzmester + Emain domain: freemail.hu + Copyright(c) 2010-2012 Zoltan Herczeg + All rights reserved. + + STACK-LESS JUST-IN-TIME COMPILER + -------------------------------- + Written by: Zoltan Herczeg + Email local part: hzmester + Emain domain: freemail.hu + Copyright(c) 2009-2012 Zoltan Herczeg + All rights reserved. + + THE C++ WRAPPER FUNCTIONS + ------------------------- + Contributed by: Google Inc. + Copyright (c) 2007-2012, Google Inc. + All rights reserved. + + THE "BSD" LICENCE + ----------------- + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the University of Cambridge nor the name of Google + Inc. nor the names of their contributors may be used to endorse or + promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 6. Some of the cuBLAS library routines were written by or + derived from code written by Vasily Volkov and are subject + to the Modified Berkeley Software Distribution License as + follows: + + Copyright (c) 2007-2009, Regents of the University of California + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the University of California, Berkeley nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 7. Some of the cuBLAS library routines were written by or + derived from code written by Davide Barbieri and are + subject to the Modified Berkeley Software Distribution + License as follows: + + Copyright (c) 2008-2009 Davide Barbieri @ University of Rome Tor Vergata. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * The name of the author may not be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 8. Some of the cuBLAS library routines were derived from + code developed by the University of Tennessee and are + subject to the Modified Berkeley Software Distribution + License as follows: + + Copyright (c) 2010 The University of Tennessee. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer listed in this license in the documentation and/or + other materials provided with the distribution. + * Neither the name of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 9. Some of the cuBLAS library routines were written by or + derived from code written by Jonathan Hogg and are subject + to the Modified Berkeley Software Distribution License as + follows: + + Copyright (c) 2012, The Science and Technology Facilities Council (STFC). + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the STFC nor the names of its contributors + may be used to endorse or promote products derived from this + software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE STFC BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 10. Some of the cuBLAS library routines were written by or + derived from code written by Ahmad M. Abdelfattah, David + Keyes, and Hatem Ltaief, and are subject to the Apache + License, Version 2.0, as follows: + + -- (C) Copyright 2013 King Abdullah University of Science and Technology + Authors: + Ahmad Abdelfattah (ahmad.ahmad@kaust.edu.sa) + David Keyes (david.keyes@kaust.edu.sa) + Hatem Ltaief (hatem.ltaief@kaust.edu.sa) + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the King Abdullah University of Science and + Technology nor the names of its contributors may be used to endorse + or promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE + + 11. Some of the cuSPARSE library routines were written by or + derived from code written by Li-Wen Chang and are subject + to the NCSA Open Source License as follows: + + Copyright (c) 2012, University of Illinois. + + All rights reserved. + + Developed by: IMPACT Group, University of Illinois, http://impact.crhc.illinois.edu + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal with the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimers in the documentation and/or other materials provided + with the distribution. + * Neither the names of IMPACT Group, University of Illinois, nor + the names of its contributors may be used to endorse or promote + products derived from this Software without specific prior + written permission. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR + IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE + SOFTWARE. + + 12. Some of the cuRAND library routines were written by or + derived from code written by Mutsuo Saito and Makoto + Matsumoto and are subject to the following license: + + Copyright (c) 2009, 2010 Mutsuo Saito, Makoto Matsumoto and Hiroshima + University. All rights reserved. + + Copyright (c) 2011 Mutsuo Saito, Makoto Matsumoto, Hiroshima + University and University of Tokyo. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the Hiroshima University nor the names of + its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 13. Some of the cuRAND library routines were derived from + code developed by D. E. Shaw Research and are subject to + the following license: + + Copyright 2010-2011, D. E. Shaw Research. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions, and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of D. E. Shaw Research nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 14. Some of the Math library routines were written by or + derived from code developed by Norbert Juffa and are + subject to the following license: + + Copyright (c) 2015-2017, Norbert Juffa + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 15. Licensee's use of the lz4 third party component is + subject to the following terms and conditions: + + Copyright (C) 2011-2013, Yann Collet. + BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 16. The NPP library uses code from the Boost Math Toolkit, + and is subject to the following license: + + Boost Software License - Version 1.0 - August 17th, 2003 + . . . . + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all + subject to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR + OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + 17. Portions of the Nsight Eclipse Edition is subject to the + following license: + + The Eclipse Foundation makes available all content in this plug-in + ("Content"). Unless otherwise indicated below, the Content is provided + to you under the terms and conditions of the Eclipse Public License + Version 1.0 ("EPL"). A copy of the EPL is available at http:// + www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, "Program" + will mean the Content. + + If you did not receive this Content directly from the Eclipse + Foundation, the Content is being redistributed by another party + ("Redistributor") and different terms and conditions may apply to your + use of any object code in the Content. Check the Redistributor's + license that was provided with the Content. If no such license exists, + contact the Redistributor. Unless otherwise indicated below, the terms + and conditions of the EPL still apply to any source code in the + Content and such source code may be obtained at http://www.eclipse.org. + + 18. Some of the cuBLAS library routines uses code from + OpenAI, which is subject to the following license: + + License URL + https://github.com/openai/openai-gemm/blob/master/LICENSE + + License Text + The MIT License + + Copyright (c) 2016 OpenAI (http://openai.com), 2016 Google Inc. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + + 19. Licensee's use of the Visual Studio Setup Configuration + Samples is subject to the following license: + + The MIT License (MIT) + Copyright (C) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + 20. Licensee's use of linmath.h header for CPU functions for + GL vector/matrix operations from lunarG is subject to the + Apache License Version 2.0. + + 21. The DX12-CUDA sample uses the d3dx12.h header, which is + subject to the MIT license. + + 22. Components of the driver and compiler used for binary management, including + nvFatBin, nvcc, and cuobjdump, use the Zstandard library which is subject to + the following license: + + BSD License + + For Zstandard software + + Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name Facebook, nor Meta, nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + +----------------- diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/paths.json b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..36e31dd9f33bad944db99282ccc99c0f2d1fae50 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/paths.json @@ -0,0 +1,299 @@ +{ + "paths": [ + { + "_path": "bin/cuda-gdb", + "path_type": "hardlink", + "sha256": "20f257f4d6f6c73ee8cac3f803f591139de982bd5fdea650ce7417c714f79c70", + "size_in_bytes": 1758 + }, + { + "_path": "bin/cuda-gdbserver", + "path_type": "hardlink", + "sha256": "4211d8afd8e77b18fbace7551eeb19b67f260a16bf84b8830ff9823380571833", + "size_in_bytes": 769424 + }, + { + "_path": "extras/Debugger/Readme.txt", + "path_type": "hardlink", + "sha256": "961a1cfe5aa22029cdea82ddf1a1d728680ae1dce63686f4ac5db2f9d44bfddd", + "size_in_bytes": 794 + }, + { + "_path": "extras/Debugger/include/cuda_stdint.h", + "path_type": "hardlink", + "sha256": "5db14e93d0ad2632aa93b3e960da9b495b03c40b1533c6af038ad6a4f8b40634", + "size_in_bytes": 4093 + }, + { + "_path": "extras/Debugger/include/cudacoredump.h", + "path_type": "hardlink", + "sha256": "97b5ea8f84f118c414ecd05cd51d78987211aa4f83510b043e140fddae4bc650", + "size_in_bytes": 28597 + }, + { + "_path": "extras/Debugger/include/cudadebugger.h", + "path_type": "hardlink", + "sha256": "be0db07ebdd87c3d15c441b404bb0378cbdd6555bde234c1b349a800976d1705", + "size_in_bytes": 60035 + }, + { + "_path": "share/gdb/python/gdb/FrameDecorator.py", + "path_type": "hardlink", + "sha256": "3d77f643b8ad0948c83a959a0a74c6abfbc5e34f9f18dd3357ab9c6e93fa4656", + "size_in_bytes": 10135 + }, + { + "_path": "share/gdb/python/gdb/FrameIterator.py", + "path_type": "hardlink", + "sha256": "f85e84789b75cde97b870b3b600dc16b6855bb8122445105726a4a8fe0cf87a2", + "size_in_bytes": 1549 + }, + { + "_path": "share/gdb/python/gdb/__init__.py", + "path_type": "hardlink", + "sha256": "c74d1eb722b9ab9229665f4549021b205260363763887876ec13b84efbfdcbd2", + "size_in_bytes": 7472 + }, + { + "_path": "share/gdb/python/gdb/command/__init__.py", + "path_type": "hardlink", + "sha256": "89eb52131bd8bf7b99467cdf20f14b10d97bbf4106dac80327c518931a785ed5", + "size_in_bytes": 692 + }, + { + "_path": "share/gdb/python/gdb/command/explore.py", + "path_type": "hardlink", + "sha256": "54257bb3202ccc093d604a0887eba92f80c7535f4381e4bcbf23af990fe19ce6", + "size_in_bytes": 26637 + }, + { + "_path": "share/gdb/python/gdb/command/frame_filters.py", + "path_type": "hardlink", + "sha256": "975e412801e5ade1f06229b8ac9618658f2ac515c06a9143bd1607ce5890755e", + "size_in_bytes": 15867 + }, + { + "_path": "share/gdb/python/gdb/command/pretty_printers.py", + "path_type": "hardlink", + "sha256": "f63ad5b15ac391eda56a313eeda87b6ac5515b4413f1666df67064adae6fc5c2", + "size_in_bytes": 14478 + }, + { + "_path": "share/gdb/python/gdb/command/prompt.py", + "path_type": "hardlink", + "sha256": "581c3ff019512fed01ee17aeb53ec9f08a5c16f095538ec530e9307e3faa29a8", + "size_in_bytes": 2011 + }, + { + "_path": "share/gdb/python/gdb/command/type_printers.py", + "path_type": "hardlink", + "sha256": "6551f5c3b977abee0b70a923cc8b4d629cda4fbd67f5cefdeb7391d5a3312fa5", + "size_in_bytes": 4324 + }, + { + "_path": "share/gdb/python/gdb/command/unwinders.py", + "path_type": "hardlink", + "sha256": "ecf43cefe2fe1f47e8b803a6103c44a1240a25de3dca430359ceaba650924e84", + "size_in_bytes": 6415 + }, + { + "_path": "share/gdb/python/gdb/command/xmethods.py", + "path_type": "hardlink", + "sha256": "04745a30fd59fe2337edc1fbd4e631dd751a91686073cc0f26317eeebbf55e3a", + "size_in_bytes": 10002 + }, + { + "_path": "share/gdb/python/gdb/disassembler.py", + "path_type": "hardlink", + "sha256": "b20d0d49a015367e0bdf9bf477a6ccc95043b2567917d78685d07eba49ab2ac9", + "size_in_bytes": 6968 + }, + { + "_path": "share/gdb/python/gdb/frames.py", + "path_type": "hardlink", + "sha256": "2f317f82b70d458197d3d7fcba5a9489b35f65d9e2070bef03a80a76e956254f", + "size_in_bytes": 7958 + }, + { + "_path": "share/gdb/python/gdb/function/__init__.py", + "path_type": "hardlink", + "sha256": "a196636f72d5c1f45ad31e13f6895f3ecb70bb8b13b002d7b480d49e7a231c57", + "size_in_bytes": 692 + }, + { + "_path": "share/gdb/python/gdb/function/as_string.py", + "path_type": "hardlink", + "sha256": "f75a023ceba027b31e88d2f352e87912ee8ed171b8e19d8d399c4cde0ea2f5bd", + "size_in_bytes": 1069 + }, + { + "_path": "share/gdb/python/gdb/function/caller_is.py", + "path_type": "hardlink", + "sha256": "062cff27a8268920d58afb9345d49cafab1f0a66ac99496f97206aeb78e991d2", + "size_in_bytes": 4949 + }, + { + "_path": "share/gdb/python/gdb/function/strfns.py", + "path_type": "hardlink", + "sha256": "3659976418944416126e7f1d0aec75aefeaa4771da9b9d5e8e3e6710c9aaab53", + "size_in_bytes": 2859 + }, + { + "_path": "share/gdb/python/gdb/printer/__init__.py", + "path_type": "hardlink", + "sha256": "d1d1ef9dd35e39f240a8f22fe21114173fdf600cb7f9eb536140b3cd1004759b", + "size_in_bytes": 692 + }, + { + "_path": "share/gdb/python/gdb/printer/bound_registers.py", + "path_type": "hardlink", + "sha256": "b2db72cebaed03f6bd974eec7510f019ca4cf13aa21daf9593d8b7444377fb76", + "size_in_bytes": 1301 + }, + { + "_path": "share/gdb/python/gdb/printing.py", + "path_type": "hardlink", + "sha256": "d306ca6ec9a353eae4b99d4433d85167b46b80541709c3c046265e083a8afd20", + "size_in_bytes": 10772 + }, + { + "_path": "share/gdb/python/gdb/prompt.py", + "path_type": "hardlink", + "sha256": "ed285b35926bd554eb8ca99946af79c5c84e1b1c95446be62a32f6a41620750a", + "size_in_bytes": 4222 + }, + { + "_path": "share/gdb/python/gdb/styling.py", + "path_type": "hardlink", + "sha256": "0c6de5fd47cdbf595ececad2edbc43022b554144abe6bc3226bc8c68783423f9", + "size_in_bytes": 3448 + }, + { + "_path": "share/gdb/python/gdb/types.py", + "path_type": "hardlink", + "sha256": "591cdb869d76cb1ae142a00d152f4f1307b0d958dd6c3e412cb6776fc775d0f3", + "size_in_bytes": 5516 + }, + { + "_path": "share/gdb/python/gdb/unwinder.py", + "path_type": "hardlink", + "sha256": "645c5bca490784bcab6f4dbe6325b029edc9bffe2bc1adff2c7384d5e1d453f9", + "size_in_bytes": 3110 + }, + { + "_path": "share/gdb/python/gdb/xmethod.py", + "path_type": "hardlink", + "sha256": "213353a1513d8d5619fe7f13a2b0ba72be9fc51deaec222edd9a37456cb4fe32", + "size_in_bytes": 10970 + }, + { + "_path": "share/gdb/syscalls/aarch64-linux.xml", + "path_type": "hardlink", + "sha256": "c370ef8abf418436889647cb19ef421fb5d33141d8f375ca63db62413329d99b", + "size_in_bytes": 14320 + }, + { + "_path": "share/gdb/syscalls/amd64-linux.xml", + "path_type": "hardlink", + "sha256": "c6be9ea8d25533258da195dd70ce01c1c95ebea3c02dced8bc5f4c30c1eed4e0", + "size_in_bytes": 19468 + }, + { + "_path": "share/gdb/syscalls/arm-linux.xml", + "path_type": "hardlink", + "sha256": "d9d866d0e909a9d6eea085660229f2a1a4c366a7305ad1def75dbe5676792811", + "size_in_bytes": 21107 + }, + { + "_path": "share/gdb/syscalls/freebsd.xml", + "path_type": "hardlink", + "sha256": "94a42ce8fdf7b949b9e5dc15e0e69f4c882b0d9f5e0e101dedc0bafb2fd03f6b", + "size_in_bytes": 21887 + }, + { + "_path": "share/gdb/syscalls/gdb-syscalls.dtd", + "path_type": "hardlink", + "sha256": "2caf7b257c98e361ad2d1603132c9d7b6883e60beab8d1160360b0cbf4e8cd0a", + "size_in_bytes": 504 + }, + { + "_path": "share/gdb/syscalls/i386-linux.xml", + "path_type": "hardlink", + "sha256": "471319765dba5987a77cea3c84a6bd3815741da51acd22434902fa48ce0a7a9b", + "size_in_bytes": 23437 + }, + { + "_path": "share/gdb/syscalls/mips-n32-linux.xml", + "path_type": "hardlink", + "sha256": "0df56f053482a07c2a8dfc1a3ed9d8901094c4618e7779604155de281de2b65a", + "size_in_bytes": 20776 + }, + { + "_path": "share/gdb/syscalls/mips-n64-linux.xml", + "path_type": "hardlink", + "sha256": "8fbd51143f52e8633fa1cfb361ba340a0e159848ef67571bfe6a3de92699ea35", + "size_in_bytes": 19414 + }, + { + "_path": "share/gdb/syscalls/mips-o32-linux.xml", + "path_type": "hardlink", + "sha256": "1b2da055d8e3bc2d6bb3656b625890b8b31d4bcf5130145862a52d24730d4c3d", + "size_in_bytes": 22806 + }, + { + "_path": "share/gdb/syscalls/netbsd.xml", + "path_type": "hardlink", + "sha256": "498c48ac567e5320cbe71328505f68711b39a2f605c02a75e93be05da3be016d", + "size_in_bytes": 21638 + }, + { + "_path": "share/gdb/syscalls/ppc-linux.xml", + "path_type": "hardlink", + "sha256": "cdf72f53a40dcca5fbc56b33e87256419c0e9d8cd22c11d08f411cdedccbd277", + "size_in_bytes": 23024 + }, + { + "_path": "share/gdb/syscalls/ppc64-linux.xml", + "path_type": "hardlink", + "sha256": "81cf380d50491f762e564955e5ca83460c8021d2e38b59b24a311f7cea83cffa", + "size_in_bytes": 21496 + }, + { + "_path": "share/gdb/syscalls/s390-linux.xml", + "path_type": "hardlink", + "sha256": "7e25a44248eaec7585ad88d569cd10ac0c8007ea5ed0cb09df5c45ca2a5c6f8b", + "size_in_bytes": 22555 + }, + { + "_path": "share/gdb/syscalls/s390x-linux.xml", + "path_type": "hardlink", + "sha256": "7810a024dd4ba62b31b78754f7469bfe6ea2219f4684f6f34b763f2ac622e4aa", + "size_in_bytes": 19943 + }, + { + "_path": "share/gdb/syscalls/sparc-linux.xml", + "path_type": "hardlink", + "sha256": "92f23ba8edce5f3c4c32219a27e43f61dc47a919b6ae0d7933eda9ff3e124841", + "size_in_bytes": 22588 + }, + { + "_path": "share/gdb/syscalls/sparc64-linux.xml", + "path_type": "hardlink", + "sha256": "8ce6c32ba40c92a193ec0ee2a9536cffa899bb01ab675999a8862a0a12e748d7", + "size_in_bytes": 20739 + }, + { + "_path": "share/gdb/system-gdbinit/elinos.py", + "path_type": "hardlink", + "sha256": "bd54f2e9d42b30da5396cb4f0dce2d26bbc3c336b4ec25770d6e3d7b0f321de1", + "size_in_bytes": 3054 + }, + { + "_path": "share/gdb/system-gdbinit/wrs-linux.py", + "path_type": "hardlink", + "sha256": "08300dae623b362d1261e5c31d68cc0d6da504b2092db781bfccfd4ca85d7eab", + "size_in_bytes": 1007 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/repodata_record.json b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..2a6b6b9b475bb3aaf771cb0eb55182bc78885006 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/repodata_record.json @@ -0,0 +1,25 @@ +{ + "name": "cuda-gdb", + "version": "12.8.90", + "build": "0", + "build_number": 0, + "channel": "https://conda.anaconda.org/nvidia/linux-64", + "subdir": "linux-64", + "fn": "cuda-gdb-12.8.90-0.conda", + "md5": "854b4aee76e918aa26bb63c364143150", + "url": "https://conda.anaconda.org/nvidia/linux-64/cuda-gdb-12.8.90-0.conda", + "sha256": "17a5559a0efa2123eda76bcfc222add6e6001095ce4f342e48c5e812371853fe", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "__glibc >=2.17,<3.0.a0", + "cuda-version >=12.8,<12.9.0a0", + "gmp >=6.3.0,<7.0a0", + "libgcc-ng >=11.2.0", + "libstdcxx-ng >=11.2.0" + ], + "constrains": [], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "timestamp": 1739449648000, + "size": 356911 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/test/run_test.sh b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..98986096de893ca4351a159371f7740e604b74cd --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/info/test/run_test.sh @@ -0,0 +1,12 @@ + + +set -ex + + + +test -f $PREFIX/bin/cuda-gdb +test -f $PREFIX/bin/cuda-gdbserver +test -f $PREFIX/extras/Debugger/Readme.txt +test -d $PREFIX/share/gdb/syscalls +test -d $PREFIX/share/gdb/system-gdbinit +exit 0 diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/FrameDecorator.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/FrameDecorator.py new file mode 100644 index 0000000000000000000000000000000000000000..82be4fc4ecb751666c6d595150bad8a19d7f6d91 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/FrameDecorator.py @@ -0,0 +1,300 @@ +# Copyright (C) 2013-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import gdb + + +class FrameDecorator(object): + """Basic implementation of a Frame Decorator""" + + """ This base frame decorator decorates a frame or another frame + decorator, and provides convenience methods. If this object is + wrapping a frame decorator, defer to that wrapped object's method + if it has one. This allows for frame decorators that have + sub-classed FrameDecorator object, but also wrap other frame + decorators on the same frame to correctly execute. + + E.g + + If the result of frame filters running means we have one gdb.Frame + wrapped by multiple frame decorators, all sub-classed from + FrameDecorator, the resulting hierarchy will be: + + Decorator1 + -- (wraps) Decorator2 + -- (wraps) FrameDecorator + -- (wraps) gdb.Frame + + In this case we have two frame decorators, both of which are + sub-classed from FrameDecorator. If Decorator1 just overrides the + 'function' method, then all of the other methods are carried out + by the super-class FrameDecorator. But Decorator2 may have + overriden other methods, so FrameDecorator will look at the + 'base' parameter and defer to that class's methods. And so on, + down the chain.""" + + # 'base' can refer to a gdb.Frame or another frame decorator. In + # the latter case, the child class will have called the super + # method and _base will be an object conforming to the Frame Filter + # class. + def __init__(self, base): + self._base = base + + @staticmethod + def _is_limited_frame(frame): + """Internal utility to determine if the frame is special or + limited.""" + sal = frame.find_sal() + + if ( + not sal.symtab + or not sal.symtab.filename + or frame.type() == gdb.DUMMY_FRAME + or frame.type() == gdb.SIGTRAMP_FRAME + ): + + return True + + return False + + def elided(self): + """Return any elided frames that this class might be + wrapping, or None.""" + if hasattr(self._base, "elided"): + return self._base.elided() + + return None + + def function(self): + """Return the name of the frame's function or an address of + the function of the frame. First determine if this is a + special frame. If not, try to determine filename from GDB's + frame internal function API. Finally, if a name cannot be + determined return the address. If this function returns an + address, GDB will attempt to determine the function name from + its internal minimal symbols store (for example, for inferiors + without debug-info).""" + + # Both gdb.Frame, and FrameDecorator have a method called + # "function", so determine which object this is. + if not isinstance(self._base, gdb.Frame): + if hasattr(self._base, "function"): + # If it is not a gdb.Frame, and there is already a + # "function" method, use that. + return self._base.function() + + frame = self.inferior_frame() + + if frame.type() == gdb.DUMMY_FRAME: + return "" + elif frame.type() == gdb.SIGTRAMP_FRAME: + return "" + + func = frame.function() + + # If we cannot determine the function name, return the + # address. If GDB detects an integer value from this function + # it will attempt to find the function name from minimal + # symbols via its own internal functions. + if func is None: + pc = frame.pc() + return pc + + return str(func) + + def address(self): + """Return the address of the frame's pc""" + + if hasattr(self._base, "address"): + return self._base.address() + + frame = self.inferior_frame() + return frame.pc() + + def filename(self): + """Return the filename associated with this frame, detecting + and returning the appropriate library name is this is a shared + library.""" + + if hasattr(self._base, "filename"): + return self._base.filename() + + frame = self.inferior_frame() + sal = frame.find_sal() + if not sal.symtab or not sal.symtab.filename: + pc = frame.pc() + return gdb.solib_name(pc) + else: + return sal.symtab.filename + + def frame_args(self): + """Return an iterable of frame arguments for this frame, if + any. The iterable object contains objects conforming with the + Symbol/Value interface. If there are no frame arguments, or + if this frame is deemed to be a special case, return None.""" + + if hasattr(self._base, "frame_args"): + return self._base.frame_args() + + frame = self.inferior_frame() + if self._is_limited_frame(frame): + return None + + args = FrameVars(frame) + return args.fetch_frame_args() + + def frame_locals(self): + """Return an iterable of local variables for this frame, if + any. The iterable object contains objects conforming with the + Symbol/Value interface. If there are no frame locals, or if + this frame is deemed to be a special case, return None.""" + + if hasattr(self._base, "frame_locals"): + return self._base.frame_locals() + + frame = self.inferior_frame() + if self._is_limited_frame(frame): + return None + + args = FrameVars(frame) + return args.fetch_frame_locals() + + def line(self): + """Return line number information associated with the frame's + pc. If symbol table/line information does not exist, or if + this frame is deemed to be a special case, return None""" + + if hasattr(self._base, "line"): + return self._base.line() + + frame = self.inferior_frame() + if self._is_limited_frame(frame): + return None + + sal = frame.find_sal() + if sal: + return sal.line + else: + return None + + def inferior_frame(self): + """Return the gdb.Frame underpinning this frame decorator.""" + + # If 'base' is a frame decorator, we want to call its inferior + # frame method. If '_base' is a gdb.Frame, just return that. + if hasattr(self._base, "inferior_frame"): + return self._base.inferior_frame() + return self._base + + +class SymValueWrapper(object): + """A container class conforming to the Symbol/Value interface + which holds frame locals or frame arguments.""" + + def __init__(self, symbol, value): + self.sym = symbol + self.val = value + + def value(self): + """Return the value associated with this symbol, or None""" + return self.val + + def symbol(self): + """Return the symbol, or Python text, associated with this + symbol, or None""" + return self.sym + + +class FrameVars(object): + + """Utility class to fetch and store frame local variables, or + frame arguments.""" + + def __init__(self, frame): + self.frame = frame + self.symbol_class = { + gdb.SYMBOL_LOC_STATIC: True, + gdb.SYMBOL_LOC_REGISTER: True, + gdb.SYMBOL_LOC_ARG: True, + gdb.SYMBOL_LOC_REF_ARG: True, + gdb.SYMBOL_LOC_LOCAL: True, + gdb.SYMBOL_LOC_REGPARM_ADDR: True, + gdb.SYMBOL_LOC_COMPUTED: True, + } + + def fetch_b(self, sym): + """Local utility method to determine if according to Symbol + type whether it should be included in the iterator. Not all + symbols are fetched, and only symbols that return + True from this method should be fetched.""" + + # SYM may be a string instead of a symbol in the case of + # synthetic local arguments or locals. If that is the case, + # always fetch. + if isinstance(sym, str): + return True + + sym_type = sym.addr_class + + return self.symbol_class.get(sym_type, False) + + def fetch_frame_locals(self): + """Public utility method to fetch frame local variables for + the stored frame. Frame arguments are not fetched. If there + are no frame local variables, return an empty list.""" + lvars = [] + + try: + block = self.frame.block() + except RuntimeError: + block = None + + while block is not None: + if block.is_global or block.is_static: + break + for sym in block: + if sym.is_argument: + continue + if self.fetch_b(sym): + lvars.append(SymValueWrapper(sym, None)) + + block = block.superblock + + return lvars + + def fetch_frame_args(self): + """Public utility method to fetch frame arguments for the + stored frame. Frame arguments are the only type fetched. If + there are no frame argument variables, return an empty list.""" + + args = [] + + try: + block = self.frame.block() + except RuntimeError: + block = None + + while block is not None: + if block.function is not None: + break + block = block.superblock + + if block is not None: + for sym in block: + if not sym.is_argument: + continue + args.append(SymValueWrapper(sym, None)) + + return args diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/FrameIterator.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/FrameIterator.py new file mode 100644 index 0000000000000000000000000000000000000000..190ec942814e4d3147068b3978d55d94e2bb769e --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/FrameIterator.py @@ -0,0 +1,49 @@ +# Copyright (C) 2013-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +class FrameIterator(object): + """A gdb.Frame iterator. Iterates over gdb.Frames or objects that + conform to that interface.""" + + def __init__(self, frame_obj): + """Initialize a FrameIterator. + + Arguments: + frame_obj the starting frame.""" + + super(FrameIterator, self).__init__() + self.frame = frame_obj + + def __iter__(self): + return self + + def next(self): + """next implementation. + + Returns: + The next oldest frame.""" + + result = self.frame + if result is None: + raise StopIteration + self.frame = result.older() + return result + + # Python 3.x requires __next__(self) while Python 2.x requires + # next(self). Define next(self), and for Python 3.x create this + # wrapper. + def __next__(self): + return self.next() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/__init__.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6f3f1945f6239a06d61ce0283525163bf86ee2ec --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/__init__.py @@ -0,0 +1,261 @@ +# Copyright (C) 2010-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import traceback +import os +import sys +import _gdb +from contextlib import contextmanager + +# Python 3 moved "reload" +if sys.version_info >= (3, 4): + from importlib import reload +else: + from imp import reload + +from _gdb import * + +# Historically, gdb.events was always available, so ensure it's +# still available without an explicit import. +import _gdbevents as events + +sys.modules["gdb.events"] = events + + +class _GdbFile(object): + # These two are needed in Python 3 + encoding = "UTF-8" + errors = "strict" + + def __init__(self, stream): + self.stream = stream + + def close(self): + # Do nothing. + return None + + def isatty(self): + return False + + def writelines(self, iterable): + for line in iterable: + self.write(line) + + def flush(self): + flush(stream=self.stream) + + def write(self, s): + write(s, stream=self.stream) + + +sys.stdout = _GdbFile(STDOUT) + +sys.stderr = _GdbFile(STDERR) + +# Default prompt hook does nothing. +prompt_hook = None + +# Ensure that sys.argv is set to something. +# We do not use PySys_SetArgvEx because it did not appear until 2.6.6. +sys.argv = [""] + +# Initial pretty printers. +pretty_printers = [] + +# Initial type printers. +type_printers = [] +# Initial xmethod matchers. +xmethods = [] +# Initial frame filters. +frame_filters = {} +# Initial frame unwinders. +frame_unwinders = [] + + +def _execute_unwinders(pending_frame): + """Internal function called from GDB to execute all unwinders. + + Runs each currently enabled unwinder until it finds the one that + can unwind given frame. + + Arguments: + pending_frame: gdb.PendingFrame instance. + + Returns: + Tuple with: + + [0] gdb.UnwindInfo instance + [1] Name of unwinder that claimed the frame (type `str`) + + or None, if no unwinder has claimed the frame. + """ + for objfile in objfiles(): + for unwinder in objfile.frame_unwinders: + if unwinder.enabled: + unwind_info = unwinder(pending_frame) + if unwind_info is not None: + return (unwind_info, unwinder.name) + + for unwinder in current_progspace().frame_unwinders: + if unwinder.enabled: + unwind_info = unwinder(pending_frame) + if unwind_info is not None: + return (unwind_info, unwinder.name) + + for unwinder in frame_unwinders: + if unwinder.enabled: + unwind_info = unwinder(pending_frame) + if unwind_info is not None: + return (unwind_info, unwinder.name) + + return None + + +def _execute_file(filepath): + """This function is used to replace Python 2's PyRun_SimpleFile. + + Loads and executes the given file. + + We could use the runpy module, but its documentation says: + "Furthermore, any functions and classes defined by the executed code are + not guaranteed to work correctly after a runpy function has returned." + """ + globals = sys.modules["__main__"].__dict__ + set_file = False + # Set file (if not set) so that the imported file can use it (e.g. to + # access file-relative paths). This matches what PyRun_SimpleFile does. + if not hasattr(globals, "__file__"): + globals["__file__"] = filepath + set_file = True + try: + with open(filepath, "rb") as file: + # We pass globals also as locals to match what Python does + # in PyRun_SimpleFile. + compiled = compile(file.read(), filepath, "exec") + exec(compiled, globals, globals) + finally: + if set_file: + del globals["__file__"] + + +# Convenience variable to GDB's python directory +PYTHONDIR = os.path.dirname(os.path.dirname(__file__)) + +# Auto-load all functions/commands. + +# Packages to auto-load. + +packages = ["function", "command", "printer"] + +# pkgutil.iter_modules is not available prior to Python 2.6. Instead, +# manually iterate the list, collating the Python files in each module +# path. Construct the module name, and import. + + +def _auto_load_packages(): + for package in packages: + location = os.path.join(os.path.dirname(__file__), package) + if os.path.exists(location): + py_files = filter( + lambda x: x.endswith(".py") and x != "__init__.py", os.listdir(location) + ) + + for py_file in py_files: + # Construct from foo.py, gdb.module.foo + modname = "%s.%s.%s" % (__name__, package, py_file[:-3]) + try: + if modname in sys.modules: + # reload modules with duplicate names + reload(__import__(modname)) + else: + __import__(modname) + except: + sys.stderr.write(traceback.format_exc() + "\n") + + +_auto_load_packages() + + +def GdbSetPythonDirectory(dir): + """Update sys.path, reload gdb and auto-load packages.""" + global PYTHONDIR + + try: + sys.path.remove(PYTHONDIR) + except ValueError: + pass + sys.path.insert(0, dir) + + PYTHONDIR = dir + + # note that reload overwrites the gdb module without deleting existing + # attributes + reload(__import__(__name__)) + _auto_load_packages() + + +def current_progspace(): + "Return the current Progspace." + return selected_inferior().progspace + + +def objfiles(): + "Return a sequence of the current program space's objfiles." + return current_progspace().objfiles() + + +def solib_name(addr): + """solib_name (Long) -> String.\n\ +Return the name of the shared library holding a given address, or None.""" + return current_progspace().solib_name(addr) + + +def block_for_pc(pc): + "Return the block containing the given pc value, or None." + return current_progspace().block_for_pc(pc) + + +def find_pc_line(pc): + """find_pc_line (pc) -> Symtab_and_line. + Return the gdb.Symtab_and_line object corresponding to the pc value.""" + return current_progspace().find_pc_line(pc) + + +def set_parameter(name, value): + """Set the GDB parameter NAME to VALUE.""" + # Handle the specific cases of None and booleans here, because + # gdb.parameter can return them, but they can't be passed to 'set' + # this way. + if value is None: + value = "unlimited" + elif isinstance(value, bool): + if value: + value = "on" + else: + value = "off" + execute("set " + name + " " + str(value), to_string=True) + + +@contextmanager +def with_parameter(name, value): + """Temporarily set the GDB parameter NAME to VALUE. + Note that this is a context manager.""" + old_value = parameter(name) + set_parameter(name, value) + try: + # Nothing that useful to return. + yield None + finally: + set_parameter(name, old_value) diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/__init__.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..5f369bfa2ea195a080a7a1f5b6a41ec1c8603aae --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/__init__.py @@ -0,0 +1,14 @@ +# Copyright (C) 2010-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/explore.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/explore.py new file mode 100644 index 0000000000000000000000000000000000000000..db72f33e9db5291781ab403b5d35d2ba33aef553 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/explore.py @@ -0,0 +1,785 @@ +# GDB 'explore' command. +# Copyright (C) 2012-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""Implementation of the GDB 'explore' command using the GDB Python API.""" + +import gdb +import sys + + +class Explorer(object): + """Internal class which invokes other explorers.""" + + # This map is filled by the Explorer.init_env() function + type_code_to_explorer_map = {} + + _SCALAR_TYPE_LIST = ( + gdb.TYPE_CODE_CHAR, + gdb.TYPE_CODE_INT, + gdb.TYPE_CODE_BOOL, + gdb.TYPE_CODE_FLT, + gdb.TYPE_CODE_VOID, + gdb.TYPE_CODE_ENUM, + ) + + @staticmethod + def guard_expr(expr): + length = len(expr) + guard = False + + if expr[0] == "(" and expr[length - 1] == ")": + pass + else: + i = 0 + while i < length: + c = expr[i] + if ( + c == "_" + or ("a" <= c and c <= "z") + or ("A" <= c and c <= "Z") + or ("0" <= c and c <= "9") + ): + pass + else: + guard = True + break + i += 1 + + if guard: + return "(" + expr + ")" + else: + return expr + + @staticmethod + def explore_expr(expr, value, is_child): + """Main function to explore an expression value. + + Arguments: + expr: The expression string that is being explored. + value: The gdb.Value value of the expression. + is_child: Boolean value to indicate if the expression is a child. + An expression is a child if it is derived from the main + expression entered by the user. For example, if the user + entered an expression which evaluates to a struct, then + when exploring the fields of the struct, is_child is set + to True internally. + + Returns: + No return value. + """ + type_code = value.type.code + if type_code in Explorer.type_code_to_explorer_map: + explorer_class = Explorer.type_code_to_explorer_map[type_code] + while explorer_class.explore_expr(expr, value, is_child): + pass + else: + print("Explorer for type '%s' not yet available.\n" % str(value.type)) + + @staticmethod + def explore_type(name, datatype, is_child): + """Main function to explore a data type. + + Arguments: + name: The string representing the path to the data type being + explored. + datatype: The gdb.Type value of the data type being explored. + is_child: Boolean value to indicate if the name is a child. + A name is a child if it is derived from the main name + entered by the user. For example, if the user entered + the name of struct type, then when exploring the fields + of the struct, is_child is set to True internally. + + Returns: + No return value. + """ + type_code = datatype.code + if type_code in Explorer.type_code_to_explorer_map: + explorer_class = Explorer.type_code_to_explorer_map[type_code] + while explorer_class.explore_type(name, datatype, is_child): + pass + else: + print("Explorer for type '%s' not yet available.\n" % str(datatype)) + + @staticmethod + def init_env(): + """Initializes the Explorer environment. + This function should be invoked before starting any exploration. If + invoked before an exploration, it need not be invoked for subsequent + explorations. + """ + Explorer.type_code_to_explorer_map = { + gdb.TYPE_CODE_CHAR: ScalarExplorer, + gdb.TYPE_CODE_INT: ScalarExplorer, + gdb.TYPE_CODE_BOOL: ScalarExplorer, + gdb.TYPE_CODE_FLT: ScalarExplorer, + gdb.TYPE_CODE_VOID: ScalarExplorer, + gdb.TYPE_CODE_ENUM: ScalarExplorer, + gdb.TYPE_CODE_STRUCT: CompoundExplorer, + gdb.TYPE_CODE_UNION: CompoundExplorer, + gdb.TYPE_CODE_PTR: PointerExplorer, + gdb.TYPE_CODE_REF: ReferenceExplorer, + gdb.TYPE_CODE_RVALUE_REF: ReferenceExplorer, + gdb.TYPE_CODE_TYPEDEF: TypedefExplorer, + gdb.TYPE_CODE_ARRAY: ArrayExplorer, + } + + @staticmethod + def is_scalar_type(type): + """Checks whether a type is a scalar type. + A type is a scalar type of its type is + gdb.TYPE_CODE_CHAR or + gdb.TYPE_CODE_INT or + gdb.TYPE_CODE_BOOL or + gdb.TYPE_CODE_FLT or + gdb.TYPE_CODE_VOID or + gdb.TYPE_CODE_ENUM. + + Arguments: + type: The type to be checked. + + Returns: + 'True' if 'type' is a scalar type. 'False' otherwise. + """ + return type.code in Explorer._SCALAR_TYPE_LIST + + @staticmethod + def return_to_parent_value(): + """A utility function which prints that the current exploration session + is returning to the parent value. Useful when exploring values. + """ + print("\nReturning to parent value...\n") + + @staticmethod + def return_to_parent_value_prompt(): + """A utility function which prompts the user to press the 'enter' key + so that the exploration session can shift back to the parent value. + Useful when exploring values. + """ + input("\nPress enter to return to parent value: ") + + @staticmethod + def return_to_enclosing_type(): + """A utility function which prints that the current exploration session + is returning to the enclosing type. Useful when exploring types. + """ + print("\nReturning to enclosing type...\n") + + @staticmethod + def return_to_enclosing_type_prompt(): + """A utility function which prompts the user to press the 'enter' key + so that the exploration session can shift back to the enclosing type. + Useful when exploring types. + """ + input("\nPress enter to return to enclosing type: ") + + +class ScalarExplorer(object): + """Internal class used to explore scalar values.""" + + @staticmethod + def explore_expr(expr, value, is_child): + """Function to explore scalar values. + See Explorer.explore_expr and Explorer.is_scalar_type for more + information. + """ + print("'%s' is a scalar value of type '%s'." % (expr, value.type)) + print("%s = %s" % (expr, str(value))) + + if is_child: + Explorer.return_to_parent_value_prompt() + Explorer.return_to_parent_value() + + return False + + @staticmethod + def explore_type(name, datatype, is_child): + """Function to explore scalar types. + See Explorer.explore_type and Explorer.is_scalar_type for more + information. + """ + if datatype.code == gdb.TYPE_CODE_ENUM: + if is_child: + print("%s is of an enumerated type '%s'." % (name, str(datatype))) + else: + print("'%s' is an enumerated type." % name) + else: + if is_child: + print("%s is of a scalar type '%s'." % (name, str(datatype))) + else: + print("'%s' is a scalar type." % name) + + if is_child: + Explorer.return_to_enclosing_type_prompt() + Explorer.return_to_enclosing_type() + + return False + + +class PointerExplorer(object): + """Internal class used to explore pointer values.""" + + @staticmethod + def explore_expr(expr, value, is_child): + """Function to explore pointer values. + See Explorer.explore_expr for more information. + """ + print( + "'%s' is a pointer to a value of type '%s'" + % (expr, str(value.type.target())) + ) + option = input( + "Continue exploring it as a pointer to a single " "value [y/n]: " + ) + if option == "y": + deref_value = None + try: + deref_value = value.dereference() + str(deref_value) + except gdb.MemoryError: + print( + "'%s' a pointer pointing to an invalid memory " "location." % expr + ) + if is_child: + Explorer.return_to_parent_value_prompt() + return False + Explorer.explore_expr( + "*%s" % Explorer.guard_expr(expr), deref_value, is_child + ) + return False + + option = input("Continue exploring it as a pointer to an " "array [y/n]: ") + if option == "y": + while True: + index = 0 + try: + index = int( + input( + "Enter the index of the element you " + "want to explore in '%s': " % expr + ) + ) + except ValueError: + break + element_expr = "%s[%d]" % (Explorer.guard_expr(expr), index) + element = value[index] + try: + str(element) + except gdb.MemoryError: + print("Cannot read value at index %d." % index) + continue + Explorer.explore_expr(element_expr, element, True) + return False + + if is_child: + Explorer.return_to_parent_value() + return False + + @staticmethod + def explore_type(name, datatype, is_child): + """Function to explore pointer types. + See Explorer.explore_type for more information. + """ + target_type = datatype.target() + print("\n%s is a pointer to a value of type '%s'." % (name, str(target_type))) + + Explorer.explore_type("the pointee type of %s" % name, target_type, is_child) + return False + + +class ReferenceExplorer(object): + """Internal class used to explore reference (TYPE_CODE_REF) values.""" + + @staticmethod + def explore_expr(expr, value, is_child): + """Function to explore array values. + See Explorer.explore_expr for more information. + """ + referenced_value = value.referenced_value() + Explorer.explore_expr(expr, referenced_value, is_child) + return False + + @staticmethod + def explore_type(name, datatype, is_child): + """Function to explore pointer types. + See Explorer.explore_type for more information. + """ + target_type = datatype.target() + Explorer.explore_type(name, target_type, is_child) + return False + + +class ArrayExplorer(object): + """Internal class used to explore arrays.""" + + @staticmethod + def explore_expr(expr, value, is_child): + """Function to explore array values. + See Explorer.explore_expr for more information. + """ + target_type = value.type.target() + print("'%s' is an array of '%s'." % (expr, str(target_type))) + index = 0 + try: + index = int( + input( + "Enter the index of the element you want to " + "explore in '%s': " % expr + ) + ) + except ValueError: + if is_child: + Explorer.return_to_parent_value() + return False + + element = None + try: + element = value[index] + str(element) + except gdb.MemoryError: + print("Cannot read value at index %d." % index) + input("Press enter to continue... ") + return True + + Explorer.explore_expr( + "%s[%d]" % (Explorer.guard_expr(expr), index), element, True + ) + return True + + @staticmethod + def explore_type(name, datatype, is_child): + """Function to explore array types. + See Explorer.explore_type for more information. + """ + target_type = datatype.target() + print("%s is an array of '%s'." % (name, str(target_type))) + + Explorer.explore_type("the array element of %s" % name, target_type, is_child) + return False + + +class CompoundExplorer(object): + """Internal class used to explore struct, classes and unions.""" + + @staticmethod + def _print_fields(print_list): + """Internal function which prints the fields of a struct/class/union.""" + max_field_name_length = 0 + for pair in print_list: + if max_field_name_length < len(pair[0]): + max_field_name_length = len(pair[0]) + + for pair in print_list: + print(" %*s = %s" % (max_field_name_length, pair[0], pair[1])) + + @staticmethod + def _get_real_field_count(fields): + real_field_count = 0 + for field in fields: + if not field.artificial: + real_field_count = real_field_count + 1 + + return real_field_count + + @staticmethod + def explore_expr(expr, value, is_child): + """Function to explore structs/classes and union values. + See Explorer.explore_expr for more information. + """ + datatype = value.type + type_code = datatype.code + fields = datatype.fields() + + if type_code == gdb.TYPE_CODE_STRUCT: + type_desc = "struct/class" + else: + type_desc = "union" + + if CompoundExplorer._get_real_field_count(fields) == 0: + print( + "The value of '%s' is a %s of type '%s' with no fields." + % (expr, type_desc, str(value.type)) + ) + if is_child: + Explorer.return_to_parent_value_prompt() + return False + + print( + "The value of '%s' is a %s of type '%s' with the following " + "fields:\n" % (expr, type_desc, str(value.type)) + ) + + has_explorable_fields = False + choice_to_compound_field_map = {} + current_choice = 0 + print_list = [] + for field in fields: + if field.artificial: + continue + field_full_name = Explorer.guard_expr(expr) + "." + field.name + if field.is_base_class: + field_value = value.cast(field.type) + else: + field_value = value[field.name] + literal_value = "" + if type_code == gdb.TYPE_CODE_UNION: + literal_value = "" % ( + current_choice, + str(field.type), + ) + has_explorable_fields = True + else: + if Explorer.is_scalar_type(field.type): + literal_value = "%s .. (Value of type '%s')" % ( + str(field_value), + str(field.type), + ) + else: + if field.is_base_class: + field_desc = "base class" + else: + field_desc = "field" + literal_value = "" % ( + current_choice, + field_desc, + str(field.type), + ) + has_explorable_fields = True + + choice_to_compound_field_map[str(current_choice)] = ( + field_full_name, + field_value, + ) + current_choice = current_choice + 1 + + print_list.append((field.name, literal_value)) + + CompoundExplorer._print_fields(print_list) + print("") + + if has_explorable_fields: + choice = input("Enter the field number of choice: ") + if choice in choice_to_compound_field_map: + Explorer.explore_expr( + choice_to_compound_field_map[choice][0], + choice_to_compound_field_map[choice][1], + True, + ) + return True + else: + if is_child: + Explorer.return_to_parent_value() + else: + if is_child: + Explorer.return_to_parent_value_prompt() + + return False + + @staticmethod + def explore_type(name, datatype, is_child): + """Function to explore struct/class and union types. + See Explorer.explore_type for more information. + """ + type_code = datatype.code + type_desc = "" + if type_code == gdb.TYPE_CODE_STRUCT: + type_desc = "struct/class" + else: + type_desc = "union" + + fields = datatype.fields() + if CompoundExplorer._get_real_field_count(fields) == 0: + if is_child: + print( + "%s is a %s of type '%s' with no fields." + % (name, type_desc, str(datatype)) + ) + Explorer.return_to_enclosing_type_prompt() + else: + print("'%s' is a %s with no fields." % (name, type_desc)) + return False + + if is_child: + print( + "%s is a %s of type '%s' " + "with the following fields:\n" % (name, type_desc, str(datatype)) + ) + else: + print("'%s' is a %s with the following " "fields:\n" % (name, type_desc)) + + current_choice = 0 + choice_to_compound_field_map = {} + print_list = [] + for field in fields: + if field.artificial: + continue + if field.is_base_class: + field_desc = "base class" + else: + field_desc = "field" + rhs = "" % ( + current_choice, + field_desc, + str(field.type), + ) + print_list.append((field.name, rhs)) + choice_to_compound_field_map[str(current_choice)] = ( + field.name, + field.type, + field_desc, + ) + current_choice = current_choice + 1 + + CompoundExplorer._print_fields(print_list) + print("") + + if len(choice_to_compound_field_map) > 0: + choice = input("Enter the field number of choice: ") + if choice in choice_to_compound_field_map: + if is_child: + new_name = "%s '%s' of %s" % ( + choice_to_compound_field_map[choice][2], + choice_to_compound_field_map[choice][0], + name, + ) + else: + new_name = "%s '%s' of '%s'" % ( + choice_to_compound_field_map[choice][2], + choice_to_compound_field_map[choice][0], + name, + ) + Explorer.explore_type( + new_name, choice_to_compound_field_map[choice][1], True + ) + return True + else: + if is_child: + Explorer.return_to_enclosing_type() + else: + if is_child: + Explorer.return_to_enclosing_type_prompt() + + return False + + +class TypedefExplorer(object): + """Internal class used to explore values whose type is a typedef.""" + + @staticmethod + def explore_expr(expr, value, is_child): + """Function to explore typedef values. + See Explorer.explore_expr for more information. + """ + actual_type = value.type.strip_typedefs() + print( + "The value of '%s' is of type '%s' " + "which is a typedef of type '%s'" + % (expr, str(value.type), str(actual_type)) + ) + + Explorer.explore_expr(expr, value.cast(actual_type), is_child) + return False + + @staticmethod + def explore_type(name, datatype, is_child): + """Function to explore typedef types. + See Explorer.explore_type for more information. + """ + actual_type = datatype.strip_typedefs() + if is_child: + print( + "The type of %s is a typedef of type '%s'." % (name, str(actual_type)) + ) + else: + print("The type '%s' is a typedef of type '%s'." % (name, str(actual_type))) + + Explorer.explore_type(name, actual_type, is_child) + return False + + +class ExploreUtils(object): + """Internal class which provides utilities for the main command classes.""" + + @staticmethod + def check_args(name, arg_str): + """Utility to check if adequate number of arguments are passed to an + explore command. + + Arguments: + name: The name of the explore command. + arg_str: The argument string passed to the explore command. + + Returns: + True if adequate arguments are passed, false otherwise. + + Raises: + gdb.GdbError if adequate arguments are not passed. + """ + if len(arg_str) < 1: + raise gdb.GdbError("ERROR: '%s' requires an argument." % name) + return False + else: + return True + + @staticmethod + def get_type_from_str(type_str): + """A utility function to deduce the gdb.Type value from a string + representing the type. + + Arguments: + type_str: The type string from which the gdb.Type value should be + deduced. + + Returns: + The deduced gdb.Type value if possible, None otherwise. + """ + try: + # Assume the current language to be C/C++ and make a try. + return gdb.parse_and_eval("(%s *)0" % type_str).type.target() + except RuntimeError: + # If assumption of current language to be C/C++ was wrong, then + # lookup the type using the API. + try: + return gdb.lookup_type(type_str) + except RuntimeError: + return None + + @staticmethod + def get_value_from_str(value_str): + """A utility function to deduce the gdb.Value value from a string + representing the value. + + Arguments: + value_str: The value string from which the gdb.Value value should + be deduced. + + Returns: + The deduced gdb.Value value if possible, None otherwise. + """ + try: + return gdb.parse_and_eval(value_str) + except RuntimeError: + return None + + +class ExploreCommand(gdb.Command): + """Explore a value or a type valid in the current context. + + Usage: explore ARG + + - ARG is either a valid expression or a type name. + - At any stage of exploration, hit the return key (instead of a + choice, if any) to return to the enclosing type or value.""" + + def __init__(self): + super(ExploreCommand, self).__init__( + name="explore", command_class=gdb.COMMAND_DATA, prefix=True + ) + + def invoke(self, arg_str, from_tty): + if ExploreUtils.check_args("explore", arg_str) is False: + return + + # Check if it is a value + value = ExploreUtils.get_value_from_str(arg_str) + if value is not None: + Explorer.explore_expr(arg_str, value, False) + return + + # If it is not a value, check if it is a type + datatype = ExploreUtils.get_type_from_str(arg_str) + if datatype is not None: + Explorer.explore_type(arg_str, datatype, False) + return + + # If it is neither a value nor a type, raise an error. + raise gdb.GdbError( + ( + "'%s' neither evaluates to a value nor is a type " + "in the current context." % arg_str + ) + ) + + +class ExploreValueCommand(gdb.Command): + """Explore value of an expression valid in the current context. + + Usage: explore value ARG + + - ARG is a valid expression. + - At any stage of exploration, hit the return key (instead of a + choice, if any) to return to the enclosing value.""" + + def __init__(self): + super(ExploreValueCommand, self).__init__( + name="explore value", command_class=gdb.COMMAND_DATA + ) + + def invoke(self, arg_str, from_tty): + if ExploreUtils.check_args("explore value", arg_str) is False: + return + + value = ExploreUtils.get_value_from_str(arg_str) + if value is None: + raise gdb.GdbError( + ( + " '%s' does not evaluate to a value in the current " + "context." % arg_str + ) + ) + return + + Explorer.explore_expr(arg_str, value, False) + + +class ExploreTypeCommand(gdb.Command): + """Explore a type or the type of an expression. + + Usage: explore type ARG + + - ARG is a valid expression or a type name. + - At any stage of exploration, hit the return key (instead of a + choice, if any) to return to the enclosing type.""" + + def __init__(self): + super(ExploreTypeCommand, self).__init__( + name="explore type", command_class=gdb.COMMAND_DATA + ) + + def invoke(self, arg_str, from_tty): + if ExploreUtils.check_args("explore type", arg_str) is False: + return + + datatype = ExploreUtils.get_type_from_str(arg_str) + if datatype is not None: + Explorer.explore_type(arg_str, datatype, False) + return + + value = ExploreUtils.get_value_from_str(arg_str) + if value is not None: + print("'%s' is of type '%s'." % (arg_str, str(value.type))) + Explorer.explore_type(str(value.type), value.type, False) + return + + raise gdb.GdbError( + ("'%s' is not a type or value in the current " "context." % arg_str) + ) + + +Explorer.init_env() + +ExploreCommand() +ExploreValueCommand() +ExploreTypeCommand() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/frame_filters.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/frame_filters.py new file mode 100644 index 0000000000000000000000000000000000000000..0fca0e78dcbf229029ecde20792cc7a7d6e952f8 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/frame_filters.py @@ -0,0 +1,479 @@ +# Frame-filter commands. +# Copyright (C) 2013-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""GDB commands for working with frame-filters.""" + +import sys +import gdb +import gdb.frames + +# GDB Commands. +class SetFilterPrefixCmd(gdb.Command): + """Prefix command for 'set' frame-filter related operations.""" + + def __init__(self): + super(SetFilterPrefixCmd, self).__init__( + "set frame-filter", gdb.COMMAND_OBSCURE, gdb.COMPLETE_NONE, True + ) + + +class ShowFilterPrefixCmd(gdb.Command): + """Prefix command for 'show' frame-filter related operations.""" + + def __init__(self): + super(ShowFilterPrefixCmd, self).__init__( + "show frame-filter", gdb.COMMAND_OBSCURE, gdb.COMPLETE_NONE, True + ) + + +class InfoFrameFilter(gdb.Command): + """List all registered Python frame-filters. + + Usage: info frame-filters""" + + def __init__(self): + super(InfoFrameFilter, self).__init__("info frame-filter", gdb.COMMAND_DATA) + + @staticmethod + def enabled_string(state): + """Return "Yes" if filter is enabled, otherwise "No".""" + if state: + return "Yes" + else: + return "No" + + def print_list(self, title, frame_filters, blank_line): + sorted_frame_filters = sorted( + frame_filters.items(), + key=lambda i: gdb.frames.get_priority(i[1]), + reverse=True, + ) + + if len(sorted_frame_filters) == 0: + return 0 + + print(title) + print(" Priority Enabled Name") + for frame_filter in sorted_frame_filters: + name = frame_filter[0] + try: + priority = "{:<8}".format(str(gdb.frames.get_priority(frame_filter[1]))) + enabled = "{:<7}".format( + self.enabled_string(gdb.frames.get_enabled(frame_filter[1])) + ) + print(" %s %s %s" % (priority, enabled, name)) + except Exception: + e = sys.exc_info()[1] + print(" Error printing filter '" + name + "': " + str(e)) + if blank_line: + print("") + return 1 + + def invoke(self, arg, from_tty): + any_printed = self.print_list("global frame-filters:", gdb.frame_filters, True) + + cp = gdb.current_progspace() + any_printed += self.print_list( + "progspace %s frame-filters:" % cp.filename, cp.frame_filters, True + ) + + for objfile in gdb.objfiles(): + any_printed += self.print_list( + "objfile %s frame-filters:" % objfile.filename, + objfile.frame_filters, + False, + ) + + if any_printed == 0: + print("No frame filters.") + + +# Internal enable/disable functions. + + +def _enable_parse_arg(cmd_name, arg): + """Internal worker function to take an argument from + enable/disable and return a tuple of arguments. + + Arguments: + cmd_name: Name of the command invoking this function. + args: The argument as a string. + + Returns: + A tuple containing the dictionary, and the argument, or just + the dictionary in the case of "all". + """ + + argv = gdb.string_to_argv(arg) + argc = len(argv) + if argc == 0: + raise gdb.GdbError(cmd_name + " requires an argument") + if argv[0] == "all": + if argc > 1: + raise gdb.GdbError( + cmd_name + ": with 'all' " "you may not specify a filter." + ) + elif argc != 2: + raise gdb.GdbError(cmd_name + " takes exactly two arguments.") + + return argv + + +def _do_enable_frame_filter(command_tuple, flag): + """Worker for enabling/disabling frame_filters. + + Arguments: + command_type: A tuple with the first element being the + frame filter dictionary, and the second being + the frame filter name. + flag: True for Enable, False for Disable. + """ + + list_op = command_tuple[0] + op_list = gdb.frames.return_list(list_op) + + if list_op == "all": + for item in op_list: + gdb.frames.set_enabled(item, flag) + else: + frame_filter = command_tuple[1] + try: + ff = op_list[frame_filter] + except KeyError: + msg = "frame-filter '" + str(frame_filter) + "' not found." + raise gdb.GdbError(msg) + + gdb.frames.set_enabled(ff, flag) + + +def _complete_frame_filter_list(text, word, all_flag): + """Worker for frame filter dictionary name completion. + + Arguments: + text: The full text of the command line. + word: The most recent word of the command line. + all_flag: Whether to include the word "all" in completion. + + Returns: + A list of suggested frame filter dictionary name completions + from text/word analysis. This list can be empty when there + are no suggestions for completion. + """ + if all_flag: + filter_locations = ["all", "global", "progspace"] + else: + filter_locations = ["global", "progspace"] + for objfile in gdb.objfiles(): + filter_locations.append(objfile.filename) + + # If the user just asked for completions with no completion + # hints, just return all the frame filter dictionaries we know + # about. + if text == "": + return filter_locations + + # Otherwise filter on what we know. + flist = filter(lambda x, y=text: x.startswith(y), filter_locations) + + # If we only have one completion, complete it and return it. + if len(flist) == 1: + flist[0] = flist[0][len(text) - len(word) :] + + # Otherwise, return an empty list, or a list of frame filter + # dictionaries that the previous filter operation returned. + return flist + + +def _complete_frame_filter_name(word, printer_dict): + """Worker for frame filter name completion. + + Arguments: + + word: The most recent word of the command line. + + printer_dict: The frame filter dictionary to search for frame + filter name completions. + + Returns: A list of suggested frame filter name completions + from word analysis of the frame filter dictionary. This list + can be empty when there are no suggestions for completion. + """ + + printer_keys = printer_dict.keys() + if word == "": + return printer_keys + + flist = filter(lambda x, y=word: x.startswith(y), printer_keys) + return flist + + +class EnableFrameFilter(gdb.Command): + """GDB command to enable the specified frame-filter. + + Usage: enable frame-filter DICTIONARY [NAME] + + DICTIONARY is the name of the frame filter dictionary on which to + operate. If dictionary is set to "all", perform operations on all + dictionaries. Named dictionaries are: "global" for the global + frame filter dictionary, "progspace" for the program space's frame + filter dictionary. If either all, or the two named dictionaries + are not specified, the dictionary name is assumed to be the name + of an "objfile" -- a shared library or an executable. + + NAME matches the name of the frame-filter to operate on.""" + + def __init__(self): + super(EnableFrameFilter, self).__init__("enable frame-filter", gdb.COMMAND_DATA) + + def complete(self, text, word): + """Completion function for both frame filter dictionary, and + frame filter name.""" + if text.count(" ") == 0: + return _complete_frame_filter_list(text, word, True) + else: + printer_list = gdb.frames.return_list(text.split()[0].rstrip()) + return _complete_frame_filter_name(word, printer_list) + + def invoke(self, arg, from_tty): + command_tuple = _enable_parse_arg("enable frame-filter", arg) + _do_enable_frame_filter(command_tuple, True) + + +class DisableFrameFilter(gdb.Command): + """GDB command to disable the specified frame-filter. + + Usage: disable frame-filter DICTIONARY [NAME] + + DICTIONARY is the name of the frame filter dictionary on which to + operate. If dictionary is set to "all", perform operations on all + dictionaries. Named dictionaries are: "global" for the global + frame filter dictionary, "progspace" for the program space's frame + filter dictionary. If either all, or the two named dictionaries + are not specified, the dictionary name is assumed to be the name + of an "objfile" -- a shared library or an executable. + + NAME matches the name of the frame-filter to operate on.""" + + def __init__(self): + super(DisableFrameFilter, self).__init__( + "disable frame-filter", gdb.COMMAND_DATA + ) + + def complete(self, text, word): + """Completion function for both frame filter dictionary, and + frame filter name.""" + if text.count(" ") == 0: + return _complete_frame_filter_list(text, word, True) + else: + printer_list = gdb.frames.return_list(text.split()[0].rstrip()) + return _complete_frame_filter_name(word, printer_list) + + def invoke(self, arg, from_tty): + command_tuple = _enable_parse_arg("disable frame-filter", arg) + _do_enable_frame_filter(command_tuple, False) + + +class SetFrameFilterPriority(gdb.Command): + """GDB command to set the priority of the specified frame-filter. + + Usage: set frame-filter priority DICTIONARY NAME PRIORITY + + DICTIONARY is the name of the frame filter dictionary on which to + operate. Named dictionaries are: "global" for the global frame + filter dictionary, "progspace" for the program space's framefilter + dictionary. If either of these two are not specified, the + dictionary name is assumed to be the name of an "objfile" -- a + shared library or an executable. + + NAME matches the name of the frame filter to operate on. + + PRIORITY is the an integer to assign the new priority to the frame + filter.""" + + def __init__(self): + super(SetFrameFilterPriority, self).__init__( + "set frame-filter " "priority", gdb.COMMAND_DATA + ) + + def _parse_pri_arg(self, arg): + """Internal worker to parse a priority from a tuple. + + Arguments: + arg: Tuple which contains the arguments from the command. + + Returns: + A tuple containing the dictionary, name and priority from + the arguments. + + Raises: + gdb.GdbError: An error parsing the arguments. + """ + + argv = gdb.string_to_argv(arg) + argc = len(argv) + if argc != 3: + print("set frame-filter priority " "takes exactly three arguments.") + return None + + return argv + + def _set_filter_priority(self, command_tuple): + """Internal worker for setting priority of frame-filters, by + parsing a tuple and calling _set_priority with the parsed + tuple. + + Arguments: + command_tuple: Tuple which contains the arguments from the + command. + """ + + list_op = command_tuple[0] + frame_filter = command_tuple[1] + + # GDB returns arguments as a string, so convert priority to + # a number. + priority = int(command_tuple[2]) + + op_list = gdb.frames.return_list(list_op) + + try: + ff = op_list[frame_filter] + except KeyError: + msg = "frame-filter '" + str(frame_filter) + "' not found." + raise gdb.GdbError(msg) + + gdb.frames.set_priority(ff, priority) + + def complete(self, text, word): + """Completion function for both frame filter dictionary, and + frame filter name.""" + if text.count(" ") == 0: + return _complete_frame_filter_list(text, word, False) + else: + printer_list = gdb.frames.return_list(text.split()[0].rstrip()) + return _complete_frame_filter_name(word, printer_list) + + def invoke(self, arg, from_tty): + command_tuple = self._parse_pri_arg(arg) + if command_tuple is not None: + self._set_filter_priority(command_tuple) + + +class ShowFrameFilterPriority(gdb.Command): + """GDB command to show the priority of the specified frame-filter. + + Usage: show frame-filter priority DICTIONARY NAME + + DICTIONARY is the name of the frame filter dictionary on which to + operate. Named dictionaries are: "global" for the global frame + filter dictionary, "progspace" for the program space's framefilter + dictionary. If either of these two are not specified, the + dictionary name is assumed to be the name of an "objfile" -- a + shared library or an executable. + + NAME matches the name of the frame-filter to operate on.""" + + def __init__(self): + super(ShowFrameFilterPriority, self).__init__( + "show frame-filter " "priority", gdb.COMMAND_DATA + ) + + def _parse_pri_arg(self, arg): + """Internal worker to parse a dictionary and name from a + tuple. + + Arguments: + arg: Tuple which contains the arguments from the command. + + Returns: + A tuple containing the dictionary, and frame filter name. + + Raises: + gdb.GdbError: An error parsing the arguments. + """ + + argv = gdb.string_to_argv(arg) + argc = len(argv) + if argc != 2: + print("show frame-filter priority " "takes exactly two arguments.") + return None + + return argv + + def get_filter_priority(self, frame_filters, name): + """Worker for retrieving the priority of frame_filters. + + Arguments: + frame_filters: Name of frame filter dictionary. + name: object to select printers. + + Returns: + The priority of the frame filter. + + Raises: + gdb.GdbError: A frame filter cannot be found. + """ + + op_list = gdb.frames.return_list(frame_filters) + + try: + ff = op_list[name] + except KeyError: + msg = "frame-filter '" + str(name) + "' not found." + raise gdb.GdbError(msg) + + return gdb.frames.get_priority(ff) + + def complete(self, text, word): + """Completion function for both frame filter dictionary, and + frame filter name.""" + + if text.count(" ") == 0: + return _complete_frame_filter_list(text, word, False) + else: + printer_list = frame._return_list(text.split()[0].rstrip()) + return _complete_frame_filter_name(word, printer_list) + + def invoke(self, arg, from_tty): + command_tuple = self._parse_pri_arg(arg) + if command_tuple is None: + return + filter_name = command_tuple[1] + list_name = command_tuple[0] + try: + priority = self.get_filter_priority(list_name, filter_name) + except Exception: + e = sys.exc_info()[1] + print("Error printing filter priority for '" + name + "':" + str(e)) + else: + print( + "Priority of filter '" + + filter_name + + "' in list '" + + list_name + + "' is: " + + str(priority) + ) + + +# Register commands +SetFilterPrefixCmd() +ShowFilterPrefixCmd() +InfoFrameFilter() +EnableFrameFilter() +DisableFrameFilter() +SetFrameFilterPriority() +ShowFrameFilterPriority() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/pretty_printers.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/pretty_printers.py new file mode 100644 index 0000000000000000000000000000000000000000..a3b582e96d60bcf8417ff8e2606da2de167405a5 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/pretty_printers.py @@ -0,0 +1,395 @@ +# Pretty-printer commands. +# Copyright (C) 2010-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""GDB commands for working with pretty-printers.""" + +import copy +import gdb +import re + + +def parse_printer_regexps(arg): + """Internal utility to parse a pretty-printer command argv. + + Arguments: + arg: The arguments to the command. The format is: + [object-regexp [name-regexp]]. + Individual printers in a collection are named as + printer-name;subprinter-name. + + Returns: + The result is a 3-tuple of compiled regular expressions, except that + the resulting compiled subprinter regexp is None if not provided. + + Raises: + SyntaxError: an error processing ARG + """ + + argv = gdb.string_to_argv(arg) + argc = len(argv) + object_regexp = "" # match everything + name_regexp = "" # match everything + subname_regexp = None + if argc > 3: + raise SyntaxError("too many arguments") + if argc >= 1: + object_regexp = argv[0] + if argc >= 2: + name_subname = argv[1].split(";", 1) + name_regexp = name_subname[0] + if len(name_subname) == 2: + subname_regexp = name_subname[1] + # That re.compile raises SyntaxError was determined empirically. + # We catch it and reraise it to provide a slightly more useful + # error message for the user. + try: + object_re = re.compile(object_regexp) + except SyntaxError: + raise SyntaxError("invalid object regexp: %s" % object_regexp) + try: + name_re = re.compile(name_regexp) + except SyntaxError: + raise SyntaxError("invalid name regexp: %s" % name_regexp) + if subname_regexp is not None: + try: + subname_re = re.compile(subname_regexp) + except SyntaxError: + raise SyntaxError("invalid subname regexp: %s" % subname_regexp) + else: + subname_re = None + return (object_re, name_re, subname_re) + + +def printer_enabled_p(printer): + """Internal utility to see if printer (or subprinter) is enabled.""" + if hasattr(printer, "enabled"): + return printer.enabled + else: + return True + + +class InfoPrettyPrinter(gdb.Command): + """GDB command to list all registered pretty-printers. + + Usage: info pretty-printer [OBJECT-REGEXP [NAME-REGEXP]] + + OBJECT-REGEXP is a regular expression matching the objects to list. + Objects are "global", the program space's file, and the objfiles within + that program space. + + NAME-REGEXP matches the name of the pretty-printer. + Individual printers in a collection are named as + printer-name;subprinter-name.""" + + def __init__(self): + super(InfoPrettyPrinter, self).__init__("info pretty-printer", gdb.COMMAND_DATA) + + @staticmethod + def enabled_string(printer): + """Return "" if PRINTER is enabled, otherwise " [disabled]".""" + if printer_enabled_p(printer): + return "" + else: + return " [disabled]" + + @staticmethod + def printer_name(printer): + """Return the printer's name.""" + if hasattr(printer, "name"): + return printer.name + if hasattr(printer, "__name__"): + return printer.__name__ + # This "shouldn't happen", but the public API allows for + # direct additions to the pretty-printer list, and we shouldn't + # crash because someone added a bogus printer. + # Plus we want to give the user a way to list unknown printers. + return "unknown" + + def list_pretty_printers(self, pretty_printers, name_re, subname_re): + """Print a list of pretty-printers.""" + # A potential enhancement is to provide an option to list printers in + # "lookup order" (i.e. unsorted). + sorted_pretty_printers = sorted( + copy.copy(pretty_printers), key=self.printer_name + ) + for printer in sorted_pretty_printers: + name = self.printer_name(printer) + enabled = self.enabled_string(printer) + if name_re.match(name): + print(" %s%s" % (name, enabled)) + if hasattr(printer, "subprinters") and printer.subprinters is not None: + sorted_subprinters = sorted( + copy.copy(printer.subprinters), key=self.printer_name + ) + for subprinter in sorted_subprinters: + if not subname_re or subname_re.match(subprinter.name): + print( + " %s%s" + % (subprinter.name, self.enabled_string(subprinter)) + ) + + def invoke1( + self, title, printer_list, obj_name_to_match, object_re, name_re, subname_re + ): + """Subroutine of invoke to simplify it.""" + if printer_list and object_re.match(obj_name_to_match): + print(title) + self.list_pretty_printers(printer_list, name_re, subname_re) + + def invoke(self, arg, from_tty): + """GDB calls this to perform the command.""" + (object_re, name_re, subname_re) = parse_printer_regexps(arg) + self.invoke1( + "global pretty-printers:", + gdb.pretty_printers, + "global", + object_re, + name_re, + subname_re, + ) + cp = gdb.current_progspace() + self.invoke1( + "progspace %s pretty-printers:" % cp.filename, + cp.pretty_printers, + "progspace", + object_re, + name_re, + subname_re, + ) + for objfile in gdb.objfiles(): + self.invoke1( + "objfile %s pretty-printers:" % objfile.filename, + objfile.pretty_printers, + objfile.filename, + object_re, + name_re, + subname_re, + ) + + +def count_enabled_printers(pretty_printers): + """Return a 2-tuple of number of enabled and total printers.""" + enabled = 0 + total = 0 + for printer in pretty_printers: + if hasattr(printer, "subprinters") and printer.subprinters is not None: + if printer_enabled_p(printer): + for subprinter in printer.subprinters: + if printer_enabled_p(subprinter): + enabled += 1 + total += len(printer.subprinters) + else: + if printer_enabled_p(printer): + enabled += 1 + total += 1 + return (enabled, total) + + +def count_all_enabled_printers(): + """Return a 2-tuble of the enabled state and total number of all printers. + This includes subprinters. + """ + enabled_count = 0 + total_count = 0 + (t_enabled, t_total) = count_enabled_printers(gdb.pretty_printers) + enabled_count += t_enabled + total_count += t_total + (t_enabled, t_total) = count_enabled_printers( + gdb.current_progspace().pretty_printers + ) + enabled_count += t_enabled + total_count += t_total + for objfile in gdb.objfiles(): + (t_enabled, t_total) = count_enabled_printers(objfile.pretty_printers) + enabled_count += t_enabled + total_count += t_total + return (enabled_count, total_count) + + +def pluralize(text, n, suffix="s"): + """Return TEXT pluralized if N != 1.""" + if n != 1: + return "%s%s" % (text, suffix) + else: + return text + + +def show_pretty_printer_enabled_summary(): + """Print the number of printers enabled/disabled. + We count subprinters individually. + """ + (enabled_count, total_count) = count_all_enabled_printers() + print("%d of %d printers enabled" % (enabled_count, total_count)) + + +def do_enable_pretty_printer_1(pretty_printers, name_re, subname_re, flag): + """Worker for enabling/disabling pretty-printers. + + Arguments: + pretty_printers: list of pretty-printers + name_re: regular-expression object to select printers + subname_re: regular expression object to select subprinters or None + if all are affected + flag: True for Enable, False for Disable + + Returns: + The number of printers affected. + This is just for informational purposes for the user. + """ + total = 0 + for printer in pretty_printers: + if ( + hasattr(printer, "name") + and name_re.match(printer.name) + or hasattr(printer, "__name__") + and name_re.match(printer.__name__) + ): + if hasattr(printer, "subprinters") and printer.subprinters is not None: + if not subname_re: + # Only record printers that change state. + if printer_enabled_p(printer) != flag: + for subprinter in printer.subprinters: + if printer_enabled_p(subprinter): + total += 1 + # NOTE: We preserve individual subprinter settings. + printer.enabled = flag + else: + # NOTE: Whether this actually disables the subprinter + # depends on whether the printer's lookup function supports + # the "enable" API. We can only assume it does. + for subprinter in printer.subprinters: + if subname_re.match(subprinter.name): + # Only record printers that change state. + if ( + printer_enabled_p(printer) + and printer_enabled_p(subprinter) != flag + ): + total += 1 + subprinter.enabled = flag + else: + # This printer has no subprinters. + # If the user does "disable pretty-printer .* .* foo" + # should we disable printers that don't have subprinters? + # How do we apply "foo" in this context? Since there is no + # "foo" subprinter it feels like we should skip this printer. + # There's still the issue of how to handle + # "disable pretty-printer .* .* .*", and every other variation + # that can match everything. For now punt and only support + # "disable pretty-printer .* .*" (i.e. subname is elided) + # to disable everything. + if not subname_re: + # Only record printers that change state. + if printer_enabled_p(printer) != flag: + total += 1 + printer.enabled = flag + return total + + +def do_enable_pretty_printer(arg, flag): + """Internal worker for enabling/disabling pretty-printers.""" + (object_re, name_re, subname_re) = parse_printer_regexps(arg) + + total = 0 + if object_re.match("global"): + total += do_enable_pretty_printer_1( + gdb.pretty_printers, name_re, subname_re, flag + ) + cp = gdb.current_progspace() + if object_re.match("progspace"): + total += do_enable_pretty_printer_1( + cp.pretty_printers, name_re, subname_re, flag + ) + for objfile in gdb.objfiles(): + if object_re.match(objfile.filename): + total += do_enable_pretty_printer_1( + objfile.pretty_printers, name_re, subname_re, flag + ) + + if flag: + state = "enabled" + else: + state = "disabled" + print("%d %s %s" % (total, pluralize("printer", total), state)) + + # Print the total list of printers currently enabled/disabled. + # This is to further assist the user in determining whether the result + # is expected. Since we use regexps to select it's useful. + show_pretty_printer_enabled_summary() + + +# Enable/Disable one or more pretty-printers. +# +# This is intended for use when a broken pretty-printer is shipped/installed +# and the user wants to disable that printer without disabling all the other +# printers. +# +# A useful addition would be -v (verbose) to show each printer affected. + + +class EnablePrettyPrinter(gdb.Command): + """GDB command to enable the specified pretty-printer. + + Usage: enable pretty-printer [OBJECT-REGEXP [NAME-REGEXP]] + + OBJECT-REGEXP is a regular expression matching the objects to examine. + Objects are "global", the program space's file, and the objfiles within + that program space. + + NAME-REGEXP matches the name of the pretty-printer. + Individual printers in a collection are named as + printer-name;subprinter-name.""" + + def __init__(self): + super(EnablePrettyPrinter, self).__init__( + "enable pretty-printer", gdb.COMMAND_DATA + ) + + def invoke(self, arg, from_tty): + """GDB calls this to perform the command.""" + do_enable_pretty_printer(arg, True) + + +class DisablePrettyPrinter(gdb.Command): + """GDB command to disable the specified pretty-printer. + + Usage: disable pretty-printer [OBJECT-REGEXP [NAME-REGEXP]] + + OBJECT-REGEXP is a regular expression matching the objects to examine. + Objects are "global", the program space's file, and the objfiles within + that program space. + + NAME-REGEXP matches the name of the pretty-printer. + Individual printers in a collection are named as + printer-name;subprinter-name.""" + + def __init__(self): + super(DisablePrettyPrinter, self).__init__( + "disable pretty-printer", gdb.COMMAND_DATA + ) + + def invoke(self, arg, from_tty): + """GDB calls this to perform the command.""" + do_enable_pretty_printer(arg, False) + + +def register_pretty_printer_commands(): + """Call from a top level script to install the pretty-printer commands.""" + InfoPrettyPrinter() + EnablePrettyPrinter() + DisablePrettyPrinter() + + +register_pretty_printer_commands() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/prompt.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/prompt.py new file mode 100644 index 0000000000000000000000000000000000000000..775fa1a9a544a6e32e407e81302be9654d04b7fe --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/prompt.py @@ -0,0 +1,66 @@ +# Extended prompt. +# Copyright (C) 2011-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""GDB command for working with extended prompts.""" + +import gdb +import gdb.prompt + + +class _ExtendedPrompt(gdb.Parameter): + + """Set the extended prompt. + + Usage: set extended-prompt VALUE + + Substitutions are applied to VALUE to compute the real prompt. + + The currently defined substitutions are:""" + + # Add the prompt library's dynamically generated help to the + # __doc__ string. + __doc__ = __doc__ + "\n" + gdb.prompt.prompt_help() + + set_doc = "Set the extended prompt." + show_doc = "Show the extended prompt." + + def __init__(self): + super(_ExtendedPrompt, self).__init__( + "extended-prompt", gdb.COMMAND_SUPPORT, gdb.PARAM_STRING_NOESCAPE + ) + self.value = "" + self.hook_set = False + + def get_show_string(self, pvalue): + if self.value: + return "The extended prompt is: " + self.value + else: + return "The extended prompt is not set." + + def get_set_string(self): + if self.hook_set is False: + gdb.prompt_hook = self.before_prompt_hook + self.hook_set = True + return "" + + def before_prompt_hook(self, current): + if self.value: + return gdb.prompt.substitute_prompt(self.value) + else: + return None + + +_ExtendedPrompt() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/type_printers.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/type_printers.py new file mode 100644 index 0000000000000000000000000000000000000000..35e62016f59fc47db0648aec66c86c2b4fbd2971 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/type_printers.py @@ -0,0 +1,125 @@ +# Type printer commands. +# Copyright (C) 2010-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import copy +import gdb + +"""GDB commands for working with type-printers.""" + + +class InfoTypePrinter(gdb.Command): + """GDB command to list all registered type-printers. + + Usage: info type-printers""" + + def __init__(self): + super(InfoTypePrinter, self).__init__("info type-printers", gdb.COMMAND_DATA) + + def list_type_printers(self, type_printers): + """Print a list of type printers.""" + # A potential enhancement is to provide an option to list printers in + # "lookup order" (i.e. unsorted). + sorted_type_printers = sorted(copy.copy(type_printers), key=lambda x: x.name) + for printer in sorted_type_printers: + if printer.enabled: + enabled = "" + else: + enabled = " [disabled]" + print(" %s%s" % (printer.name, enabled)) + + def invoke(self, arg, from_tty): + """GDB calls this to perform the command.""" + sep = "" + for objfile in gdb.objfiles(): + if objfile.type_printers: + print("%sType printers for %s:" % (sep, objfile.filename)) + self.list_type_printers(objfile.type_printers) + sep = "\n" + if gdb.current_progspace().type_printers: + print("%sType printers for program space:" % sep) + self.list_type_printers(gdb.current_progspace().type_printers) + sep = "\n" + if gdb.type_printers: + print("%sGlobal type printers:" % sep) + self.list_type_printers(gdb.type_printers) + + +class _EnableOrDisableCommand(gdb.Command): + def __init__(self, setting, name): + super(_EnableOrDisableCommand, self).__init__(name, gdb.COMMAND_DATA) + self.setting = setting + + def set_some(self, name, printers): + result = False + for p in printers: + if name == p.name: + p.enabled = self.setting + result = True + return result + + def invoke(self, arg, from_tty): + """GDB calls this to perform the command.""" + for name in arg.split(): + ok = False + for objfile in gdb.objfiles(): + if self.set_some(name, objfile.type_printers): + ok = True + if self.set_some(name, gdb.current_progspace().type_printers): + ok = True + if self.set_some(name, gdb.type_printers): + ok = True + if not ok: + print("No type printer named '%s'" % name) + + def add_some(self, result, word, printers): + for p in printers: + if p.name.startswith(word): + result.append(p.name) + + def complete(self, text, word): + result = [] + for objfile in gdb.objfiles(): + self.add_some(result, word, objfile.type_printers) + self.add_some(result, word, gdb.current_progspace().type_printers) + self.add_some(result, word, gdb.type_printers) + return result + + +class EnableTypePrinter(_EnableOrDisableCommand): + """GDB command to enable the specified type printer. + + Usage: enable type-printer NAME + + NAME is the name of the type-printer.""" + + def __init__(self): + super(EnableTypePrinter, self).__init__(True, "enable type-printer") + + +class DisableTypePrinter(_EnableOrDisableCommand): + """GDB command to disable the specified type-printer. + + Usage: disable type-printer NAME + + NAME is the name of the type-printer.""" + + def __init__(self): + super(DisableTypePrinter, self).__init__(False, "disable type-printer") + + +InfoTypePrinter() +EnableTypePrinter() +DisableTypePrinter() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/unwinders.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/unwinders.py new file mode 100644 index 0000000000000000000000000000000000000000..68087aa3266947716c38ae8dd8dadfc39786c489 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/unwinders.py @@ -0,0 +1,199 @@ +# Unwinder commands. +# Copyright 2015-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import gdb +import re + + +def validate_regexp(exp, idstring): + try: + return re.compile(exp) + except SyntaxError: + raise SyntaxError("Invalid %s regexp: %s." % (idstring, exp)) + + +def parse_unwinder_command_args(arg): + """Internal utility to parse unwinder command argv. + + Arguments: + arg: The arguments to the command. The format is: + [locus-regexp [name-regexp]] + + Returns: + A 2-tuple of compiled regular expressions. + + Raises: + SyntaxError: an error processing ARG + """ + + argv = gdb.string_to_argv(arg) + argc = len(argv) + if argc > 2: + raise SyntaxError("Too many arguments.") + locus_regexp = "" + name_regexp = "" + if argc >= 1: + locus_regexp = argv[0] + if argc >= 2: + name_regexp = argv[1] + return ( + validate_regexp(locus_regexp, "locus"), + validate_regexp(name_regexp, "unwinder"), + ) + + +class InfoUnwinder(gdb.Command): + """GDB command to list unwinders. + + Usage: info unwinder [LOCUS-REGEXP [NAME-REGEXP]] + + LOCUS-REGEXP is a regular expression matching the location of the + unwinder. If it is omitted, all registered unwinders from all + loci are listed. A locus can be 'global', 'progspace' to list + the unwinders from the current progspace, or a regular expression + matching filenames of objfiles. + + NAME-REGEXP is a regular expression to filter unwinder names. If + this omitted for a specified locus, then all registered unwinders + in the locus are listed.""" + + def __init__(self): + super(InfoUnwinder, self).__init__("info unwinder", gdb.COMMAND_STACK) + + def list_unwinders(self, title, unwinders, name_re): + """Lists the unwinders whose name matches regexp. + + Arguments: + title: The line to print before the list. + unwinders: The list of the unwinders. + name_re: unwinder name filter. + """ + if not unwinders: + return + print(title) + for unwinder in unwinders: + if name_re.match(unwinder.name): + print( + " %s%s" + % (unwinder.name, "" if unwinder.enabled else " [disabled]") + ) + + def invoke(self, arg, from_tty): + locus_re, name_re = parse_unwinder_command_args(arg) + if locus_re.match("global"): + self.list_unwinders("Global:", gdb.frame_unwinders, name_re) + if locus_re.match("progspace"): + cp = gdb.current_progspace() + self.list_unwinders( + "Progspace %s:" % cp.filename, cp.frame_unwinders, name_re + ) + for objfile in gdb.objfiles(): + if locus_re.match(objfile.filename): + self.list_unwinders( + "Objfile %s:" % objfile.filename, objfile.frame_unwinders, name_re + ) + + +def do_enable_unwinder1(unwinders, name_re, flag): + """Enable/disable unwinders whose names match given regex. + + Arguments: + unwinders: The list of unwinders. + name_re: Unwinder name filter. + flag: Enable/disable. + + Returns: + The number of unwinders affected. + """ + total = 0 + for unwinder in unwinders: + if name_re.match(unwinder.name): + unwinder.enabled = flag + total += 1 + return total + + +def do_enable_unwinder(arg, flag): + """Enable/disable unwinder(s).""" + (locus_re, name_re) = parse_unwinder_command_args(arg) + total = 0 + if locus_re.match("global"): + total += do_enable_unwinder1(gdb.frame_unwinders, name_re, flag) + if locus_re.match("progspace"): + total += do_enable_unwinder1( + gdb.current_progspace().frame_unwinders, name_re, flag + ) + for objfile in gdb.objfiles(): + if locus_re.match(objfile.filename): + total += do_enable_unwinder1(objfile.frame_unwinders, name_re, flag) + if total > 0: + gdb.invalidate_cached_frames() + print( + "%d unwinder%s %s" + % (total, "" if total == 1 else "s", "enabled" if flag else "disabled") + ) + + +class EnableUnwinder(gdb.Command): + """GDB command to enable unwinders. + + Usage: enable unwinder [LOCUS-REGEXP [NAME-REGEXP]] + + LOCUS-REGEXP is a regular expression specifying the unwinders to + enable. It can 'global', 'progspace', or the name of an objfile + within that progspace. + + NAME_REGEXP is a regular expression to filter unwinder names. If + this omitted for a specified locus, then all registered unwinders + in the locus are affected.""" + + def __init__(self): + super(EnableUnwinder, self).__init__("enable unwinder", gdb.COMMAND_STACK) + + def invoke(self, arg, from_tty): + """GDB calls this to perform the command.""" + do_enable_unwinder(arg, True) + + +class DisableUnwinder(gdb.Command): + """GDB command to disable the specified unwinder. + + Usage: disable unwinder [LOCUS-REGEXP [NAME-REGEXP]] + + LOCUS-REGEXP is a regular expression specifying the unwinders to + disable. It can 'global', 'progspace', or the name of an objfile + within that progspace. + + NAME_REGEXP is a regular expression to filter unwinder names. If + this omitted for a specified locus, then all registered unwinders + in the locus are affected.""" + + def __init__(self): + super(DisableUnwinder, self).__init__("disable unwinder", gdb.COMMAND_STACK) + + def invoke(self, arg, from_tty): + """GDB calls this to perform the command.""" + do_enable_unwinder(arg, False) + + +def register_unwinder_commands(): + """Installs the unwinder commands.""" + InfoUnwinder() + EnableUnwinder() + DisableUnwinder() + + +register_unwinder_commands() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/xmethods.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/xmethods.py new file mode 100644 index 0000000000000000000000000000000000000000..4bf89696e49b2ae342479fcb23cde63e0ff1113d --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/command/xmethods.py @@ -0,0 +1,270 @@ +# Xmethod commands. +# Copyright 2013-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import gdb +import re + +"""GDB commands for working with xmethods.""" + + +def validate_xm_regexp(part_name, regexp): + try: + return re.compile(regexp) + except SyntaxError: + raise SyntaxError("Invalid %s regexp: %s", part_name, regexp) + + +def parse_xm_command_args(arg): + """Parses the arguments passed to a xmethod command. + + Arguments: + arg: The argument string passed to a xmethod command. + + Returns: + A 3-tuple: (, + , + ) + """ + argv = gdb.string_to_argv(arg) + argc = len(argv) + if argc > 2: + raise SyntaxError("Too many arguments to command.") + locus_regexp = "" + matcher_name_regexp = "" + xm_name_regexp = None + if argc >= 1: + locus_regexp = argv[0] + if argc == 2: + parts = argv[1].split(";", 1) + matcher_name_regexp = parts[0] + if len(parts) > 1: + xm_name_regexp = parts[1] + if xm_name_regexp: + name_re = validate_xm_regexp("xmethod name", xm_name_regexp) + else: + name_re = None + return ( + validate_xm_regexp("locus", locus_regexp), + validate_xm_regexp("matcher name", matcher_name_regexp), + name_re, + ) + + +def get_global_method_matchers(locus_re, matcher_re): + """Returns a dict of matching globally registered xmethods. + + Arguments: + locus_re: Even though only globally registered xmethods are + looked up, they will be looked up only if 'global' matches + LOCUS_RE. + matcher_re: The regular expression matching the names of xmethods. + + Returns: + A dict of matching globally registered xmethod matchers. The only + key in the dict will be 'global'. + """ + locus_str = "global" + xm_dict = {locus_str: []} + if locus_re.match("global"): + xm_dict[locus_str].extend([m for m in gdb.xmethods if matcher_re.match(m.name)]) + return xm_dict + + +def get_method_matchers_in_loci(loci, locus_re, matcher_re): + """Returns a dict of matching registered xmethods in the LOCI. + + Arguments: + loci: The list of loci to lookup matching xmethods in. + locus_re: If a locus is an objfile, then xmethod matchers will be + looked up in it only if its filename matches the regular + expression LOCUS_RE. If a locus is the current progspace, + then xmethod matchers will be looked up in it only if the + string "progspace" matches LOCUS_RE. + matcher_re: The regular expression to match the xmethod matcher + names. + + Returns: + A dict of matching xmethod matchers. The keys of the dict are the + filenames of the loci the xmethod matchers belong to. + """ + xm_dict = {} + for locus in loci: + if isinstance(locus, gdb.Progspace): + if not locus_re.match("progspace"): + continue + locus_type = "progspace" + else: + if not locus_re.match(locus.filename): + continue + locus_type = "objfile" + locus_str = "%s %s" % (locus_type, locus.filename) + xm_dict[locus_str] = [m for m in locus.xmethods if matcher_re.match(m.name)] + return xm_dict + + +def print_xm_info(xm_dict, name_re): + """Print a dictionary of xmethods.""" + + def get_status_string(m): + if not m.enabled: + return " [disabled]" + else: + return "" + + if not xm_dict: + return + for locus_str in xm_dict: + if not xm_dict[locus_str]: + continue + print("Xmethods in %s:" % locus_str) + for matcher in xm_dict[locus_str]: + print(" %s%s" % (matcher.name, get_status_string(matcher))) + if not matcher.methods: + continue + for m in matcher.methods: + if name_re is None or name_re.match(m.name): + print(" %s%s" % (m.name, get_status_string(m))) + + +def set_xm_status1(xm_dict, name_re, status): + """Set the status (enabled/disabled) of a dictionary of xmethods.""" + for locus_str, matchers in xm_dict.items(): + for matcher in matchers: + if not name_re: + # If the name regex is missing, then set the status of the + # matcher and move on. + matcher.enabled = status + continue + if not matcher.methods: + # The methods attribute could be None. Move on. + continue + for m in matcher.methods: + if name_re.match(m.name): + m.enabled = status + + +def set_xm_status(arg, status): + """Set the status (enabled/disabled) of xmethods matching ARG. + This is a helper function for enable/disable commands. ARG is the + argument string passed to the commands. + """ + locus_re, matcher_re, name_re = parse_xm_command_args(arg) + set_xm_status1(get_global_method_matchers(locus_re, matcher_re), name_re, status) + set_xm_status1( + get_method_matchers_in_loci([gdb.current_progspace()], locus_re, matcher_re), + name_re, + status, + ) + set_xm_status1( + get_method_matchers_in_loci(gdb.objfiles(), locus_re, matcher_re), + name_re, + status, + ) + + +class InfoXMethod(gdb.Command): + """GDB command to list registered xmethod matchers. + + Usage: info xmethod [LOCUS-REGEXP [NAME-REGEXP]] + + LOCUS-REGEXP is a regular expression matching the location of the + xmethod matchers. If it is omitted, all registered xmethod matchers + from all loci are listed. A locus could be 'global', a regular expression + matching the current program space's filename, or a regular expression + matching filenames of objfiles. Locus could be 'progspace' to specify that + only xmethods from the current progspace should be listed. + + NAME-REGEXP is a regular expression matching the names of xmethod + matchers. If this omitted for a specified locus, then all registered + xmethods in the locus are listed. To list only a certain xmethods + managed by a single matcher, the name regexp can be specified as + matcher-name-regexp;xmethod-name-regexp.""" + + def __init__(self): + super(InfoXMethod, self).__init__("info xmethod", gdb.COMMAND_DATA) + + def invoke(self, arg, from_tty): + locus_re, matcher_re, name_re = parse_xm_command_args(arg) + print_xm_info(get_global_method_matchers(locus_re, matcher_re), name_re) + print_xm_info( + get_method_matchers_in_loci( + [gdb.current_progspace()], locus_re, matcher_re + ), + name_re, + ) + print_xm_info( + get_method_matchers_in_loci(gdb.objfiles(), locus_re, matcher_re), name_re + ) + + +class EnableXMethod(gdb.Command): + """GDB command to enable a specified (group of) xmethod(s). + + Usage: enable xmethod [LOCUS-REGEXP [NAME-REGEXP]] + + LOCUS-REGEXP is a regular expression matching the location of the + xmethod matchers. If it is omitted, all registered xmethods matchers + from all loci are enabled. A locus could be 'global', a regular expression + matching the current program space's filename, or a regular expression + matching filenames of objfiles. Locus could be 'progspace' to specify that + only xmethods from the current progspace should be enabled. + + NAME-REGEXP is a regular expression matching the names of xmethods + within a given locus. If this omitted for a specified locus, then all + registered xmethod matchers in the locus are enabled. To enable only + a certain xmethods managed by a single matcher, the name regexp can be + specified as matcher-name-regexp;xmethod-name-regexp.""" + + def __init__(self): + super(EnableXMethod, self).__init__("enable xmethod", gdb.COMMAND_DATA) + + def invoke(self, arg, from_tty): + set_xm_status(arg, True) + + +class DisableXMethod(gdb.Command): + """GDB command to disable a specified (group of) xmethod(s). + + Usage: disable xmethod [LOCUS-REGEXP [NAME-REGEXP]] + + LOCUS-REGEXP is a regular expression matching the location of the + xmethod matchers. If it is omitted, all registered xmethod matchers + from all loci are disabled. A locus could be 'global', a regular + expression matching the current program space's filename, or a regular + expression filenames of objfiles. Locus could be 'progspace' to specify + that only xmethods from the current progspace should be disabled. + + NAME-REGEXP is a regular expression matching the names of xmethods + within a given locus. If this omitted for a specified locus, then all + registered xmethod matchers in the locus are disabled. To disable + only a certain xmethods managed by a single matcher, the name regexp + can be specified as matcher-name-regexp;xmethod-name-regexp.""" + + def __init__(self): + super(DisableXMethod, self).__init__("disable xmethod", gdb.COMMAND_DATA) + + def invoke(self, arg, from_tty): + set_xm_status(arg, False) + + +def register_xmethod_commands(): + """Installs the xmethod commands.""" + InfoXMethod() + EnableXMethod() + DisableXMethod() + + +register_xmethod_commands() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/disassembler.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/disassembler.py new file mode 100644 index 0000000000000000000000000000000000000000..88f65f5b2b6f0f6d46d62c0e863b7ef4237e0aca --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/disassembler.py @@ -0,0 +1,178 @@ +# Copyright (C) 2021-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""Disassembler related module.""" + +import gdb +import _gdb.disassembler + +# Re-export everything from the _gdb.disassembler module, which is +# defined within GDB's C++ code. +from _gdb.disassembler import * + +# Module global dictionary of gdb.disassembler.Disassembler objects. +# The keys of this dictionary are bfd architecture names, or the +# special value None. +# +# When a request to disassemble comes in we first lookup the bfd +# architecture name from the gdbarch, if that name exists in this +# dictionary then we use that Disassembler object. +# +# If there's no architecture specific disassembler then we look for +# the key None in this dictionary, and if that key exists, we use that +# disassembler. +# +# If none of the above checks found a suitable disassembler, then no +# disassembly is performed in Python. +_disassemblers_dict = {} + + +class Disassembler(object): + """A base class from which all user implemented disassemblers must + inherit.""" + + def __init__(self, name): + """Constructor. Takes a name, which should be a string, which can be + used to identify this disassembler in diagnostic messages.""" + self.name = name + + def __call__(self, info): + """A default implementation of __call__. All sub-classes must + override this method. Calling this default implementation will throw + a NotImplementedError exception.""" + raise NotImplementedError("Disassembler.__call__") + + +def register_disassembler(disassembler, architecture=None): + """Register a disassembler. DISASSEMBLER is a sub-class of + gdb.disassembler.Disassembler. ARCHITECTURE is either None or a + string, the name of an architecture known to GDB. + + DISASSEMBLER is registered as a disassembler for ARCHITECTURE, or + all architectures when ARCHITECTURE is None. + + Returns the previous disassembler registered with this + ARCHITECTURE value. + """ + + if not isinstance(disassembler, Disassembler) and disassembler is not None: + raise TypeError("disassembler should sub-class gdb.disassembler.Disassembler") + + old = None + if architecture in _disassemblers_dict: + old = _disassemblers_dict[architecture] + del _disassemblers_dict[architecture] + if disassembler is not None: + _disassemblers_dict[architecture] = disassembler + + # Call the private _set_enabled function within the + # _gdb.disassembler module. This function sets a global flag + # within GDB's C++ code that enables or dissables the Python + # disassembler functionality, this improves performance of the + # disassembler by avoiding unneeded calls into Python when we know + # that no disassemblers are registered. + _gdb.disassembler._set_enabled(len(_disassemblers_dict) > 0) + return old + + +def _print_insn(info): + """This function is called by GDB when it wants to disassemble an + instruction. INFO describes the instruction to be + disassembled.""" + + def lookup_disassembler(arch): + try: + name = arch.name() + if name is None: + return None + if name in _disassemblers_dict: + return _disassemblers_dict[name] + if None in _disassemblers_dict: + return _disassemblers_dict[None] + return None + except: + # It's pretty unlikely this exception case will ever + # trigger, one situation would be if the user somehow + # corrupted the _disassemblers_dict variable such that it + # was no longer a dictionary. + return None + + disassembler = lookup_disassembler(info.architecture) + if disassembler is None: + return None + return disassembler(info) + + +class maint_info_py_disassemblers_cmd(gdb.Command): + """ + List all registered Python disassemblers. + + List the name of all registered Python disassemblers, next to the + name of the architecture for which the disassembler is registered. + + The global Python disassembler is listed next to the string + 'GLOBAL'. + + The disassembler that matches the architecture of the currently + selected inferior will be marked, this is an indication of which + disassembler will be invoked if any disassembly is performed in + the current inferior. + """ + + def __init__(self): + super().__init__("maintenance info python-disassemblers", gdb.COMMAND_USER) + + def invoke(self, args, from_tty): + # If no disassemblers are registered, tell the user. + if len(_disassemblers_dict) == 0: + print("No Python disassemblers registered.") + return + + # Figure out the longest architecture name, so we can + # correctly format the table of results. + longest_arch_name = 0 + for architecture in _disassemblers_dict: + if architecture is not None: + name = _disassemblers_dict[architecture].name + if len(name) > longest_arch_name: + longest_arch_name = len(name) + + # Figure out the name of the current architecture. There + # should always be a current inferior, but if, somehow, there + # isn't, then leave curr_arch as the empty string, which will + # not then match agaisnt any architecture in the dictionary. + curr_arch = "" + if gdb.selected_inferior() is not None: + curr_arch = gdb.selected_inferior().architecture().name() + + # Now print the dictionary of registered disassemblers out to + # the user. + match_tag = "\t(Matches current architecture)" + fmt_len = max(longest_arch_name, len("Architecture")) + format_string = "{:" + str(fmt_len) + "s} {:s}" + print(format_string.format("Architecture", "Disassember Name")) + for architecture in _disassemblers_dict: + if architecture is not None: + name = _disassemblers_dict[architecture].name + if architecture == curr_arch: + name += match_tag + match_tag = "" + print(format_string.format(architecture, name)) + if None in _disassemblers_dict: + name = _disassemblers_dict[None].name + match_tag + print(format_string.format("GLOBAL", name)) + + +maint_info_py_disassemblers_cmd() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/frames.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/frames.py new file mode 100644 index 0000000000000000000000000000000000000000..5f8119c22a02ce03d680b15b54cb80e408047abe --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/frames.py @@ -0,0 +1,233 @@ +# Frame-filter commands. +# Copyright (C) 2013-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""Internal functions for working with frame-filters.""" + +import gdb +from gdb.FrameIterator import FrameIterator +from gdb.FrameDecorator import FrameDecorator +import itertools +import collections + + +def get_priority(filter_item): + """Internal worker function to return the frame-filter's priority + from a frame filter object. This is a fail free function as it is + used in sorting and filtering. If a badly implemented frame + filter does not implement the priority attribute, return zero + (otherwise sorting/filtering will fail and prevent other frame + filters from executing). + + Arguments: + filter_item: An object conforming to the frame filter + interface. + + Returns: + The priority of the frame filter from the "priority" + attribute, or zero. + """ + # Do not fail here, as the sort will fail. If a filter has not + # (incorrectly) set a priority, set it to zero. + return getattr(filter_item, "priority", 0) + + +def set_priority(filter_item, priority): + """Internal worker function to set the frame-filter's priority. + + Arguments: + filter_item: An object conforming to the frame filter + interface. + priority: The priority to assign as an integer. + """ + + filter_item.priority = priority + + +def get_enabled(filter_item): + """Internal worker function to return a filter's enabled state + from a frame filter object. This is a fail free function as it is + used in sorting and filtering. If a badly implemented frame + filter does not implement the enabled attribute, return False + (otherwise sorting/filtering will fail and prevent other frame + filters from executing). + + Arguments: + filter_item: An object conforming to the frame filter + interface. + + Returns: + The enabled state of the frame filter from the "enabled" + attribute, or False. + """ + + # If the filter class is badly implemented when called from the + # Python filter command, do not cease filter operations, just set + # enabled to False. + return getattr(filter_item, "enabled", False) + + +def set_enabled(filter_item, state): + """Internal Worker function to set the frame-filter's enabled + state. + + Arguments: + filter_item: An object conforming to the frame filter + interface. + state: True or False, depending on desired state. + """ + + filter_item.enabled = state + + +def return_list(name): + """Internal Worker function to return the frame filter + dictionary, depending on the name supplied as an argument. If the + name is not "all", "global" or "progspace", it is assumed to name + an object-file. + + Arguments: + name: The name of the list, as specified by GDB user commands. + + Returns: + A dictionary object for a single specified dictionary, or a + list containing all the items for "all" + + Raises: + gdb.GdbError: A dictionary of that name cannot be found. + """ + + # If all dictionaries are wanted in the case of "all" we + # cannot return a combined dictionary as keys() may clash in + # between different dictionaries. As we just want all the frame + # filters to enable/disable them all, just return the combined + # items() as a chained iterator of dictionary values. + if name == "all": + glob = gdb.frame_filters.values() + prog = gdb.current_progspace().frame_filters.values() + return_iter = itertools.chain(glob, prog) + for objfile in gdb.objfiles(): + return_iter = itertools.chain(return_iter, objfile.frame_filters.values()) + + return return_iter + + if name == "global": + return gdb.frame_filters + else: + if name == "progspace": + cp = gdb.current_progspace() + return cp.frame_filters + else: + for objfile in gdb.objfiles(): + if name == objfile.filename: + return objfile.frame_filters + + msg = "Cannot find frame-filter dictionary for '" + name + "'" + raise gdb.GdbError(msg) + + +def _sort_list(): + """Internal Worker function to merge all known frame-filter + lists, prune any filters with the state set to "disabled", and + sort the list on the frame-filter's "priority" attribute. + + Returns: + sorted_list: A sorted, pruned list of frame filters to + execute. + """ + + all_filters = return_list("all") + sorted_frame_filters = sorted(all_filters, key=get_priority, reverse=True) + + sorted_frame_filters = filter(get_enabled, sorted_frame_filters) + + return sorted_frame_filters + + +def execute_frame_filters(frame, frame_low, frame_high): + """Internal function called from GDB that will execute the chain + of frame filters. Each filter is executed in priority order. + After the execution completes, slice the iterator to frame_low - + frame_high range. + + Arguments: + frame: The initial frame. + + frame_low: The low range of the slice. If this is a negative + integer then it indicates a backward slice (ie bt -4) which + counts backward from the last frame in the backtrace. + + frame_high: The high range of the slice. If this is -1 then + it indicates all frames until the end of the stack from + frame_low. + + Returns: + frame_iterator: The sliced iterator after all frame + filters have had a change to execute, or None if no frame + filters are registered. + """ + + # Get a sorted list of frame filters. + sorted_list = list(_sort_list()) + + # Check to see if there are any frame-filters. If not, just + # return None and let default backtrace printing occur. + if len(sorted_list) == 0: + return None + + frame_iterator = FrameIterator(frame) + + # Apply a basic frame decorator to all gdb.Frames. This unifies + # the interface. Python 3.x moved the itertools.imap + # functionality to map(), so check if it is available. + if hasattr(itertools, "imap"): + frame_iterator = itertools.imap(FrameDecorator, frame_iterator) + else: + frame_iterator = map(FrameDecorator, frame_iterator) + + for ff in sorted_list: + frame_iterator = ff.filter(frame_iterator) + + # Slicing + + # Is this a slice from the end of the backtrace, ie bt -2? + if frame_low < 0: + count = 0 + slice_length = abs(frame_low) + # We cannot use MAXLEN argument for deque as it is 2.6 onwards + # and some GDB versions might be < 2.6. + sliced = collections.deque() + + for frame_item in frame_iterator: + if count >= slice_length: + sliced.popleft() + count = count + 1 + sliced.append(frame_item) + + return iter(sliced) + + # -1 for frame_high means until the end of the backtrace. Set to + # None if that is the case, to indicate to itertools.islice to + # slice to the end of the iterator. + if frame_high == -1: + frame_high = None + else: + # As frames start from 0, add one to frame_high so islice + # correctly finds the end + frame_high = frame_high + 1 + + sliced = itertools.islice(frame_iterator, frame_low, frame_high) + + return sliced diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/__init__.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..34496c1ebd660f45101dfecd2d4ce59cfce4d524 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/__init__.py @@ -0,0 +1,14 @@ +# Copyright (C) 2012-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/as_string.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/as_string.py new file mode 100644 index 0000000000000000000000000000000000000000..4bd6579ca64490ca0e9b20f7ed887404a473db70 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/as_string.py @@ -0,0 +1,38 @@ +# Copyright (C) 2016-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import gdb + + +class _AsString(gdb.Function): + """Return the string representation of a value. + + Usage: $_as_string (VALUE) + + Arguments: + + VALUE: any value + + Returns: + The string representation of the value.""" + + def __init__(self): + super(_AsString, self).__init__("_as_string") + + def invoke(self, val): + return str(val) + + +_AsString() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/caller_is.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/caller_is.py new file mode 100644 index 0000000000000000000000000000000000000000..220b222749233c0869bb6298e4e9e6f896aa5c6d --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/caller_is.py @@ -0,0 +1,157 @@ +# Caller-is functions. +# Copyright (C) 2008-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import gdb +import re + + +class CallerIs(gdb.Function): + """Check the calling function's name. + + Usage: $_caller_is (NAME [, NUMBER-OF-FRAMES]) + + Arguments: + + NAME: The name of the function to search for. + + NUMBER-OF-FRAMES: How many stack frames to traverse back from the currently + selected frame to compare with. If the value is greater than the depth of + the stack from that point then the result is False. + The default is 1. + + Returns: + True if the function's name at the specified frame is equal to NAME.""" + + def __init__(self): + super(CallerIs, self).__init__("_caller_is") + + def invoke(self, name, nframes=1): + if nframes < 0: + raise ValueError("nframes must be >= 0") + frame = gdb.selected_frame() + while nframes > 0: + frame = frame.older() + if frame is None: + return False + nframes = nframes - 1 + return frame.name() == name.string() + + +class CallerMatches(gdb.Function): + """Compare the calling function's name with a regexp. + + Usage: $_caller_matches (REGEX [, NUMBER-OF-FRAMES]) + + Arguments: + + REGEX: The regular expression to compare the function's name with. + + NUMBER-OF-FRAMES: How many stack frames to traverse back from the currently + selected frame to compare with. If the value is greater than the depth of + the stack from that point then the result is False. + The default is 1. + + Returns: + True if the function's name at the specified frame matches REGEX.""" + + def __init__(self): + super(CallerMatches, self).__init__("_caller_matches") + + def invoke(self, name, nframes=1): + if nframes < 0: + raise ValueError("nframes must be >= 0") + frame = gdb.selected_frame() + while nframes > 0: + frame = frame.older() + if frame is None: + return False + nframes = nframes - 1 + return re.match(name.string(), frame.name()) is not None + + +class AnyCallerIs(gdb.Function): + """Check all calling function's names. + + Usage: $_any_caller_is (NAME [, NUMBER-OF-FRAMES]) + + Arguments: + + NAME: The name of the function to search for. + + NUMBER-OF-FRAMES: How many stack frames to traverse back from the currently + selected frame to compare with. If the value is greater than the depth of + the stack from that point then the result is False. + The default is 1. + + Returns: + True if any function's name is equal to NAME.""" + + def __init__(self): + super(AnyCallerIs, self).__init__("_any_caller_is") + + def invoke(self, name, nframes=1): + if nframes < 0: + raise ValueError("nframes must be >= 0") + frame = gdb.selected_frame() + while nframes >= 0: + if frame.name() == name.string(): + return True + frame = frame.older() + if frame is None: + return False + nframes = nframes - 1 + return False + + +class AnyCallerMatches(gdb.Function): + """Compare all calling function's names with a regexp. + + Usage: $_any_caller_matches (REGEX [, NUMBER-OF-FRAMES]) + + Arguments: + + REGEX: The regular expression to compare the function's name with. + + NUMBER-OF-FRAMES: How many stack frames to traverse back from the currently + selected frame to compare with. If the value is greater than the depth of + the stack from that point then the result is False. + The default is 1. + + Returns: + True if any function's name matches REGEX.""" + + def __init__(self): + super(AnyCallerMatches, self).__init__("_any_caller_matches") + + def invoke(self, name, nframes=1): + if nframes < 0: + raise ValueError("nframes must be >= 0") + frame = gdb.selected_frame() + name_re = re.compile(name.string()) + while nframes >= 0: + if name_re.match(frame.name()) is not None: + return True + frame = frame.older() + if frame is None: + return False + nframes = nframes - 1 + return False + + +CallerIs() +CallerMatches() +AnyCallerIs() +AnyCallerMatches() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/strfns.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/strfns.py new file mode 100644 index 0000000000000000000000000000000000000000..7dc464b7f54e0985efa2173c32b6dd149d4a100e --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/function/strfns.py @@ -0,0 +1,104 @@ +# Useful gdb string convenience functions. +# Copyright (C) 2012-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""$_memeq, $_strlen, $_streq, $_regex""" + +import gdb +import re + + +class _MemEq(gdb.Function): + """$_memeq - compare bytes of memory. + + Usage: $_memeq (A, B, LEN) + + Returns: + True if LEN bytes at A and B compare equally.""" + + def __init__(self): + super(_MemEq, self).__init__("_memeq") + + def invoke(self, a, b, length): + if length < 0: + raise ValueError("length must be non-negative") + if length == 0: + return True + # The argument(s) to vector are [low_bound,]high_bound. + byte_vector = gdb.lookup_type("char").vector(length - 1) + ptr_byte_vector = byte_vector.pointer() + a_ptr = a.reinterpret_cast(ptr_byte_vector) + b_ptr = b.reinterpret_cast(ptr_byte_vector) + return a_ptr.dereference() == b_ptr.dereference() + + +class _StrLen(gdb.Function): + """$_strlen - compute string length. + + Usage: $_strlen (A) + + Returns: + Length of string A, assumed to be a string in the current language.""" + + def __init__(self): + super(_StrLen, self).__init__("_strlen") + + def invoke(self, a): + s = a.string() + return len(s) + + +class _StrEq(gdb.Function): + """$_streq - check string equality. + + Usage: $_streq (A, B) + + Returns: + True if A and B are identical strings in the current language. + + Example (amd64-linux): + catch syscall open + cond $bpnum $_streq((char*) $rdi, "foo")""" + + def __init__(self): + super(_StrEq, self).__init__("_streq") + + def invoke(self, a, b): + return a.string() == b.string() + + +class _RegEx(gdb.Function): + """$_regex - check if a string matches a regular expression. + + Usage: $_regex (STRING, REGEX) + + Returns: + True if string STRING (in the current language) matches the + regular expression REGEX.""" + + def __init__(self): + super(_RegEx, self).__init__("_regex") + + def invoke(self, string, regex): + s = string.string() + r = re.compile(regex.string()) + return bool(r.match(s)) + + +# GDB will import us automagically via gdb/__init__.py. +_MemEq() +_StrLen() +_StrEq() +_RegEx() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/printer/__init__.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/printer/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..b25b7eaa9fc3d4e64394ee90df7674b78997afc2 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/printer/__init__.py @@ -0,0 +1,14 @@ +# Copyright (C) 2014-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/printer/bound_registers.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/printer/bound_registers.py new file mode 100644 index 0000000000000000000000000000000000000000..e1566750ec002f5d1ca969bbe4382a80a22edf3c --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/printer/bound_registers.py @@ -0,0 +1,40 @@ +# Pretty-printers for bounds registers. +# Copyright (C) 2013-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import sys + +import gdb.printing + + +class MpxBound128Printer: + """Adds size field to a mpx __gdb_builtin_type_bound128 type.""" + + def __init__(self, val): + self.val = val + + def to_string(self): + upper = self.val["ubound"] + lower = self.val["lbound"] + size = upper - lower + if size > -1: + size = size + 1 + result = "{lbound = %s, ubound = %s} : size %s" % (lower, upper, size) + return result + + +gdb.printing.add_builtin_pretty_printer( + "mpx_bound128", "^builtin_type_bound128", MpxBound128Printer +) diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/printing.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/printing.py new file mode 100644 index 0000000000000000000000000000000000000000..d6b7b85e40425d80bb34ba43a004eaf6e9a9ff65 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/printing.py @@ -0,0 +1,285 @@ +# Pretty-printer utilities. +# Copyright (C) 2010-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""Utilities for working with pretty-printers.""" + +import gdb +import gdb.types +import re +import sys + + +class PrettyPrinter(object): + """A basic pretty-printer. + + Attributes: + name: A unique string among all printers for the context in which + it is defined (objfile, progspace, or global(gdb)), and should + meaningfully describe what can be pretty-printed. + E.g., "StringPiece" or "protobufs". + subprinters: An iterable object with each element having a `name' + attribute, and, potentially, "enabled" attribute. + Or this is None if there are no subprinters. + enabled: A boolean indicating if the printer is enabled. + + Subprinters are for situations where "one" pretty-printer is actually a + collection of several printers. E.g., The libstdc++ pretty-printer has + a pretty-printer for each of several different types, based on regexps. + """ + + # While one might want to push subprinters into the subclass, it's + # present here to formalize such support to simplify + # commands/pretty_printers.py. + + def __init__(self, name, subprinters=None): + self.name = name + self.subprinters = subprinters + self.enabled = True + + def __call__(self, val): + # The subclass must define this. + raise NotImplementedError("PrettyPrinter __call__") + + +class SubPrettyPrinter(object): + """Baseclass for sub-pretty-printers. + + Sub-pretty-printers needn't use this, but it formalizes what's needed. + + Attributes: + name: The name of the subprinter. + enabled: A boolean indicating if the subprinter is enabled. + """ + + def __init__(self, name): + self.name = name + self.enabled = True + + +def register_pretty_printer(obj, printer, replace=False): + """Register pretty-printer PRINTER with OBJ. + + The printer is added to the front of the search list, thus one can override + an existing printer if one needs to. Use a different name when overriding + an existing printer, otherwise an exception will be raised; multiple + printers with the same name are disallowed. + + Arguments: + obj: Either an objfile, progspace, or None (in which case the printer + is registered globally). + printer: Either a function of one argument (old way) or any object + which has attributes: name, enabled, __call__. + replace: If True replace any existing copy of the printer. + Otherwise if the printer already exists raise an exception. + + Returns: + Nothing. + + Raises: + TypeError: A problem with the type of the printer. + ValueError: The printer's name contains a semicolon ";". + RuntimeError: A printer with the same name is already registered. + + If the caller wants the printer to be listable and disableable, it must + follow the PrettyPrinter API. This applies to the old way (functions) too. + If printer is an object, __call__ is a method of two arguments: + self, and the value to be pretty-printed. See PrettyPrinter. + """ + + # Watch for both __name__ and name. + # Functions get the former for free, but we don't want to use an + # attribute named __foo__ for pretty-printers-as-objects. + # If printer has both, we use `name'. + if not hasattr(printer, "__name__") and not hasattr(printer, "name"): + raise TypeError("printer missing attribute: name") + if hasattr(printer, "name") and not hasattr(printer, "enabled"): + raise TypeError("printer missing attribute: enabled") + if not hasattr(printer, "__call__"): + raise TypeError("printer missing attribute: __call__") + + if hasattr(printer, "name"): + name = printer.name + else: + name = printer.__name__ + if obj is None or obj is gdb: + if gdb.parameter("verbose"): + gdb.write("Registering global %s pretty-printer ...\n" % name) + obj = gdb + else: + if gdb.parameter("verbose"): + gdb.write( + "Registering %s pretty-printer for %s ...\n" % (name, obj.filename) + ) + + # Printers implemented as functions are old-style. In order to not risk + # breaking anything we do not check __name__ here. + if hasattr(printer, "name"): + if not isinstance(printer.name, str): + raise TypeError("printer name is not a string") + # If printer provides a name, make sure it doesn't contain ";". + # Semicolon is used by the info/enable/disable pretty-printer commands + # to delimit subprinters. + if printer.name.find(";") >= 0: + raise ValueError("semicolon ';' in printer name") + # Also make sure the name is unique. + # Alas, we can't do the same for functions and __name__, they could + # all have a canonical name like "lookup_function". + # PERF: gdb records printers in a list, making this inefficient. + i = 0 + for p in obj.pretty_printers: + if hasattr(p, "name") and p.name == printer.name: + if replace: + del obj.pretty_printers[i] + break + else: + raise RuntimeError( + "pretty-printer already registered: %s" % printer.name + ) + i = i + 1 + + obj.pretty_printers.insert(0, printer) + + +class RegexpCollectionPrettyPrinter(PrettyPrinter): + """Class for implementing a collection of regular-expression based pretty-printers. + + Intended usage: + + pretty_printer = RegexpCollectionPrettyPrinter("my_library") + pretty_printer.add_printer("myclass1", "^myclass1$", MyClass1Printer) + ... + pretty_printer.add_printer("myclassN", "^myclassN$", MyClassNPrinter) + register_pretty_printer(obj, pretty_printer) + """ + + class RegexpSubprinter(SubPrettyPrinter): + def __init__(self, name, regexp, gen_printer): + super(RegexpCollectionPrettyPrinter.RegexpSubprinter, self).__init__(name) + self.regexp = regexp + self.gen_printer = gen_printer + self.compiled_re = re.compile(regexp) + + def __init__(self, name): + super(RegexpCollectionPrettyPrinter, self).__init__(name, []) + + def add_printer(self, name, regexp, gen_printer): + """Add a printer to the list. + + The printer is added to the end of the list. + + Arguments: + name: The name of the subprinter. + regexp: The regular expression, as a string. + gen_printer: A function/method that given a value returns an + object to pretty-print it. + + Returns: + Nothing. + """ + + # NOTE: A previous version made the name of each printer the regexp. + # That makes it awkward to pass to the enable/disable commands (it's + # cumbersome to make a regexp of a regexp). So now the name is a + # separate parameter. + + self.subprinters.append(self.RegexpSubprinter(name, regexp, gen_printer)) + + def __call__(self, val): + """Lookup the pretty-printer for the provided value.""" + + # Get the type name. + typename = gdb.types.get_basic_type(val.type).tag + if not typename: + typename = val.type.name + if not typename: + return None + + # Iterate over table of type regexps to determine + # if a printer is registered for that type. + # Return an instantiation of the printer if found. + for printer in self.subprinters: + if printer.enabled and printer.compiled_re.search(typename): + return printer.gen_printer(val) + + # Cannot find a pretty printer. Return None. + return None + + +# A helper class for printing enum types. This class is instantiated +# with a list of enumerators to print a particular Value. +class _EnumInstance: + def __init__(self, enumerators, val): + self.enumerators = enumerators + self.val = val + + def to_string(self): + flag_list = [] + v = int(self.val) + any_found = False + for (e_name, e_value) in self.enumerators: + if v & e_value != 0: + flag_list.append(e_name) + v = v & ~e_value + any_found = True + if not any_found or v != 0: + # Leftover value. + flag_list.append("" % v) + return "0x%x [%s]" % (int(self.val), " | ".join(flag_list)) + + +class FlagEnumerationPrinter(PrettyPrinter): + """A pretty-printer which can be used to print a flag-style enumeration. + A flag-style enumeration is one where the enumerators are or'd + together to create values. The new printer will print these + symbolically using '|' notation. The printer must be registered + manually. This printer is most useful when an enum is flag-like, + but has some overlap. GDB's built-in printing will not handle + this case, but this printer will attempt to.""" + + def __init__(self, enum_type): + super(FlagEnumerationPrinter, self).__init__(enum_type) + self.initialized = False + + def __call__(self, val): + if not self.initialized: + self.initialized = True + flags = gdb.lookup_type(self.name) + self.enumerators = [] + for field in flags.fields(): + self.enumerators.append((field.name, field.enumval)) + # Sorting the enumerators by value usually does the right + # thing. + self.enumerators.sort(key=lambda x: x[1]) + + if self.enabled: + return _EnumInstance(self.enumerators, val) + else: + return None + + +# Builtin pretty-printers. +# The set is defined as empty, and files in printing/*.py add their printers +# to this with add_builtin_pretty_printer. + +_builtin_pretty_printers = RegexpCollectionPrettyPrinter("builtin") + +register_pretty_printer(None, _builtin_pretty_printers) + +# Add a builtin pretty-printer. + + +def add_builtin_pretty_printer(name, regexp, printer): + _builtin_pretty_printers.add_printer(name, regexp, printer) diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/prompt.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/prompt.py new file mode 100644 index 0000000000000000000000000000000000000000..9bbfcb9a27264b92f2e7a20f002cb451dcc2e369 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/prompt.py @@ -0,0 +1,163 @@ +# Extended prompt utilities. +# Copyright (C) 2011-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +""" Extended prompt library functions.""" + +import gdb +import os + + +def _prompt_pwd(ignore): + "The current working directory." + return os.getcwd() + + +def _prompt_object_attr(func, what, attr, nattr): + """Internal worker for fetching GDB attributes.""" + if attr is None: + attr = nattr + try: + obj = func() + except gdb.error: + return "" % what + if hasattr(obj, attr): + result = getattr(obj, attr) + if callable(result): + result = result() + return result + else: + return "" % (attr, what) + + +def _prompt_frame(attr): + "The selected frame; an argument names a frame parameter." + return _prompt_object_attr(gdb.selected_frame, "frame", attr, "name") + + +def _prompt_thread(attr): + "The selected thread; an argument names a thread parameter." + return _prompt_object_attr(gdb.selected_thread, "thread", attr, "num") + + +def _prompt_version(attr): + "The version of GDB." + return gdb.VERSION + + +def _prompt_esc(attr): + "The ESC character." + return "\033" + + +def _prompt_bs(attr): + "A backslash." + return "\\" + + +def _prompt_n(attr): + "A newline." + return "\n" + + +def _prompt_r(attr): + "A carriage return." + return "\r" + + +def _prompt_param(attr): + "A parameter's value; the argument names the parameter." + return gdb.parameter(attr) + + +def _prompt_noprint_begin(attr): + "Begins a sequence of non-printing characters." + return "\001" + + +def _prompt_noprint_end(attr): + "Ends a sequence of non-printing characters." + return "\002" + + +prompt_substitutions = { + "e": _prompt_esc, + "\\": _prompt_bs, + "n": _prompt_n, + "r": _prompt_r, + "v": _prompt_version, + "w": _prompt_pwd, + "f": _prompt_frame, + "t": _prompt_thread, + "p": _prompt_param, + "[": _prompt_noprint_begin, + "]": _prompt_noprint_end, +} + + +def prompt_help(): + """Generate help dynamically from the __doc__ strings of attribute + functions.""" + + result = "" + keys = sorted(prompt_substitutions.keys()) + for key in keys: + result += " \\%s\t%s\n" % (key, prompt_substitutions[key].__doc__) + result += """ +A substitution can be used in a simple form, like "\\f". +An argument can also be passed to it, like "\\f{name}". +The meaning of the argument depends on the particular substitution.""" + return result + + +def substitute_prompt(prompt): + "Perform substitutions on PROMPT." + + result = "" + plen = len(prompt) + i = 0 + while i < plen: + if prompt[i] == "\\": + i = i + 1 + if i >= plen: + break + cmdch = prompt[i] + + if cmdch in prompt_substitutions: + cmd = prompt_substitutions[cmdch] + + if i + 1 < plen and prompt[i + 1] == "{": + j = i + 1 + while j < plen and prompt[j] != "}": + j = j + 1 + # Just ignore formatting errors. + if j >= plen or prompt[j] != "}": + arg = None + else: + arg = prompt[i + 2 : j] + i = j + else: + arg = None + result += str(cmd(arg)) + else: + # Unrecognized escapes are turned into the escaped + # character itself. + result += prompt[i] + else: + result += prompt[i] + + i = i + 1 + + return result diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/styling.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/styling.py new file mode 100644 index 0000000000000000000000000000000000000000..8540ab23bec064b9c8c751aadf59dddc280c1754 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/styling.py @@ -0,0 +1,101 @@ +# Styling related hooks. +# Copyright (C) 2010-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""Utilities for styling.""" + +import gdb + +try: + from pygments import formatters, lexers, highlight + from pygments.token import Error, Comment, Text + from pygments.filters import TokenMergeFilter + + _formatter = None + + def get_formatter(): + global _formatter + if _formatter is None: + _formatter = formatters.TerminalFormatter() + return _formatter + + def colorize(filename, contents): + # Don't want any errors. + try: + lexer = lexers.get_lexer_for_filename(filename, stripnl=False) + formatter = get_formatter() + return highlight(contents, lexer, formatter).encode( + gdb.host_charset(), "backslashreplace" + ) + except: + return None + + class HandleNasmComments(TokenMergeFilter): + @staticmethod + def fix_comments(lexer, stream): + in_comment = False + for ttype, value in stream: + if ttype is Error and value == "#": + in_comment = True + if in_comment: + if ttype is Text and value == "\n": + in_comment = False + else: + ttype = Comment.Single + yield ttype, value + + def filter(self, lexer, stream): + f = HandleNasmComments.fix_comments + return super().filter(lexer, f(lexer, stream)) + + _asm_lexers = {} + + def __get_asm_lexer(gdbarch): + lexer_type = "asm" + try: + # For an i386 based architecture, in 'intel' mode, use the nasm + # lexer. + flavor = gdb.parameter("disassembly-flavor") + if flavor == "intel" and gdbarch.name()[:4] == "i386": + lexer_type = "nasm" + except: + # If GDB is built without i386 support then attempting to fetch + # the 'disassembly-flavor' parameter will throw an error, which we + # ignore. + pass + + global _asm_lexers + if lexer_type not in _asm_lexers: + _asm_lexers[lexer_type] = lexers.get_lexer_by_name(lexer_type) + _asm_lexers[lexer_type].add_filter(HandleNasmComments()) + _asm_lexers[lexer_type].add_filter("raiseonerror") + return _asm_lexers[lexer_type] + + def colorize_disasm(content, gdbarch): + # Don't want any errors. + try: + lexer = __get_asm_lexer(gdbarch) + formatter = get_formatter() + return highlight(content, lexer, formatter).rstrip().encode() + except: + return content + +except: + + def colorize(filename, contents): + return None + + def colorize_disasm(content, gdbarch): + return None diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/types.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/types.py new file mode 100644 index 0000000000000000000000000000000000000000..dcec301ad4d0c300dea05bb2cd0fc0304a4cd7e7 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/types.py @@ -0,0 +1,183 @@ +# Type utilities. +# Copyright (C) 2010-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""Utilities for working with gdb.Types.""" + +import gdb + + +def get_basic_type(type_): + """Return the "basic" type of a type. + + Arguments: + type_: The type to reduce to its basic type. + + Returns: + type_ with const/volatile is stripped away, + and typedefs/references converted to the underlying type. + """ + + while ( + type_.code == gdb.TYPE_CODE_REF + or type_.code == gdb.TYPE_CODE_RVALUE_REF + or type_.code == gdb.TYPE_CODE_TYPEDEF + ): + if type_.code == gdb.TYPE_CODE_REF or type_.code == gdb.TYPE_CODE_RVALUE_REF: + type_ = type_.target() + else: + type_ = type_.strip_typedefs() + return type_.unqualified() + + +def has_field(type_, field): + """Return True if a type has the specified field. + + Arguments: + type_: The type to examine. + It must be one of gdb.TYPE_CODE_STRUCT, gdb.TYPE_CODE_UNION. + field: The name of the field to look up. + + Returns: + True if the field is present either in type_ or any baseclass. + + Raises: + TypeError: The type is not a struct or union. + """ + + type_ = get_basic_type(type_) + if type_.code != gdb.TYPE_CODE_STRUCT and type_.code != gdb.TYPE_CODE_UNION: + raise TypeError("not a struct or union") + for f in type_.fields(): + if f.is_base_class: + if has_field(f.type, field): + return True + else: + # NOTE: f.name could be None + if f.name == field: + return True + return False + + +def make_enum_dict(enum_type): + """Return a dictionary from a program's enum type. + + Arguments: + enum_type: The enum to compute the dictionary for. + + Returns: + The dictionary of the enum. + + Raises: + TypeError: The type is not an enum. + """ + + if enum_type.code != gdb.TYPE_CODE_ENUM: + raise TypeError("not an enum type") + enum_dict = {} + for field in enum_type.fields(): + # The enum's value is stored in "enumval". + enum_dict[field.name] = field.enumval + return enum_dict + + +def deep_items(type_): + """Return an iterator that recursively traverses anonymous fields. + + Arguments: + type_: The type to traverse. It should be one of + gdb.TYPE_CODE_STRUCT or gdb.TYPE_CODE_UNION. + + Returns: + an iterator similar to gdb.Type.iteritems(), i.e., it returns + pairs of key, value, but for any anonymous struct or union + field that field is traversed recursively, depth-first. + """ + for k, v in type_.iteritems(): + if k: + yield k, v + else: + for i in deep_items(v.type): + yield i + + +class TypePrinter(object): + """The base class for type printers. + + Instances of this type can be used to substitute type names during + 'ptype'. + + A type printer must have at least 'name' and 'enabled' attributes, + and supply an 'instantiate' method. + + The 'instantiate' method must either return None, or return an + object which has a 'recognize' method. This method must accept a + gdb.Type argument and either return None, meaning that the type + was not recognized, or a string naming the type. + """ + + def __init__(self, name): + self.name = name + self.enabled = True + + def instantiate(self): + return None + + +# Helper function for computing the list of type recognizers. +def _get_some_type_recognizers(result, plist): + for printer in plist: + if printer.enabled: + inst = printer.instantiate() + if inst is not None: + result.append(inst) + return None + + +def get_type_recognizers(): + "Return a list of the enabled type recognizers for the current context." + result = [] + + # First try the objfiles. + for objfile in gdb.objfiles(): + _get_some_type_recognizers(result, objfile.type_printers) + # Now try the program space. + _get_some_type_recognizers(result, gdb.current_progspace().type_printers) + # Finally, globals. + _get_some_type_recognizers(result, gdb.type_printers) + + return result + + +def apply_type_recognizers(recognizers, type_obj): + """Apply the given list of type recognizers to the type TYPE_OBJ. + If any recognizer in the list recognizes TYPE_OBJ, returns the name + given by the recognizer. Otherwise, this returns None.""" + for r in recognizers: + result = r.recognize(type_obj) + if result is not None: + return result + return None + + +def register_type_printer(locus, printer): + """Register a type printer. + PRINTER is the type printer instance. + LOCUS is either an objfile, a program space, or None, indicating + global registration.""" + + if locus is None: + locus = gdb + locus.type_printers.insert(0, printer) diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/unwinder.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/unwinder.py new file mode 100644 index 0000000000000000000000000000000000000000..a854d8dbdaa04fd025b3509fd463586f16d53a4a --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/unwinder.py @@ -0,0 +1,95 @@ +# Copyright (C) 2015-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""Unwinder class and register_unwinder function.""" + +import gdb + + +class Unwinder(object): + """Base class (or a template) for frame unwinders written in Python. + + An unwinder has a single method __call__ and the attributes + described below. + + Attributes: + name: The name of the unwinder. + enabled: A boolean indicating whether the unwinder is enabled. + """ + + def __init__(self, name): + """Constructor. + + Args: + name: An identifying name for the unwinder. + """ + self.name = name + self.enabled = True + + def __call__(self, pending_frame): + """GDB calls this method to unwind a frame. + + Arguments: + pending_frame: gdb.PendingFrame instance. + + Returns: + gdb.UnwindInfo instance. + """ + raise NotImplementedError("Unwinder __call__.") + + +def register_unwinder(locus, unwinder, replace=False): + """Register unwinder in given locus. + + The unwinder is prepended to the locus's unwinders list. Unwinder + name should be unique. + + Arguments: + locus: Either an objfile, progspace, or None (in which case + the unwinder is registered globally). + unwinder: An object of a gdb.Unwinder subclass + replace: If True, replaces existing unwinder with the same name. + Otherwise, raises exception if unwinder with the same + name already exists. + + Returns: + Nothing. + + Raises: + RuntimeError: Unwinder name is not unique + TypeError: Bad locus type + """ + if locus is None: + if gdb.parameter("verbose"): + gdb.write("Registering global %s unwinder ...\n" % unwinder.name) + locus = gdb + elif isinstance(locus, gdb.Objfile) or isinstance(locus, gdb.Progspace): + if gdb.parameter("verbose"): + gdb.write( + "Registering %s unwinder for %s ...\n" % (unwinder.name, locus.filename) + ) + else: + raise TypeError("locus should be gdb.Objfile or gdb.Progspace or None") + + i = 0 + for needle in locus.frame_unwinders: + if needle.name == unwinder.name: + if replace: + del locus.frame_unwinders[i] + else: + raise RuntimeError("Unwinder %s already exists." % unwinder.name) + i += 1 + locus.frame_unwinders.insert(0, unwinder) + gdb.invalidate_cached_frames() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/xmethod.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/xmethod.py new file mode 100644 index 0000000000000000000000000000000000000000..ab6cd28c303f52128813d6e102ad3a8163b82ccc --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/python/gdb/xmethod.py @@ -0,0 +1,274 @@ +# Python side of the support for xmethods. +# Copyright (C) 2013-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""Utilities for defining xmethods""" + +import gdb +import re +import sys + + +class XMethod(object): + """Base class (or a template) for an xmethod description. + + Currently, the description requires only the 'name' and 'enabled' + attributes. Description objects are managed by 'XMethodMatcher' + objects (see below). Note that this is only a template for the + interface of the XMethodMatcher.methods objects. One could use + this class or choose to use an object which supports this exact same + interface. Also, an XMethodMatcher can choose not use it 'methods' + attribute. In such cases this class (or an equivalent) is not used. + + Attributes: + name: The name of the xmethod. + enabled: A boolean indicating if the xmethod is enabled. + """ + + def __init__(self, name): + self.name = name + self.enabled = True + + +class XMethodMatcher(object): + """Abstract base class for matching an xmethod. + + When looking for xmethods, GDB invokes the `match' method of a + registered xmethod matcher to match the object type and method name. + The `match' method in concrete classes derived from this class should + return an `XMethodWorker' object, or a list of `XMethodWorker' + objects if there is a match (see below for 'XMethodWorker' class). + + Attributes: + name: The name of the matcher. + enabled: A boolean indicating if the matcher is enabled. + methods: A sequence of objects of type 'XMethod', or objects + which have at least the attributes of an 'XMethod' object. + This list is used by the 'enable'/'disable'/'info' commands to + enable/disable/list the xmethods registered with GDB. See + the 'match' method below to know how this sequence is used. + This attribute is None if the matcher chooses not have any + xmethods managed by it. + """ + + def __init__(self, name): + """ + Args: + name: An identifying name for the xmethod or the group of + xmethods returned by the `match' method. + """ + self.name = name + self.enabled = True + self.methods = None + + def match(self, class_type, method_name): + """Match class type and method name. + + In derived classes, it should return an XMethodWorker object, or a + sequence of 'XMethodWorker' objects. Only those xmethod workers + whose corresponding 'XMethod' descriptor object is enabled should be + returned. + + Args: + class_type: The class type (gdb.Type object) to match. + method_name: The name (string) of the method to match. + """ + raise NotImplementedError("XMethodMatcher match") + + +class XMethodWorker(object): + """Base class for all xmethod workers defined in Python. + + An xmethod worker is an object which matches the method arguments, and + invokes the method when GDB wants it to. Internally, GDB first invokes the + 'get_arg_types' method to perform overload resolution. If GDB selects to + invoke this Python xmethod, then it invokes it via the overridden + '__call__' method. The 'get_result_type' method is used to implement + 'ptype' on the xmethod. + + Derived classes should override the 'get_arg_types', 'get_result_type' + and '__call__' methods. + """ + + def get_arg_types(self): + """Return arguments types of an xmethod. + + A sequence of gdb.Type objects corresponding to the arguments of the + xmethod are returned. If the xmethod takes no arguments, then 'None' + or an empty sequence is returned. If the xmethod takes only a single + argument, then a gdb.Type object or a sequence with a single gdb.Type + element is returned. + """ + raise NotImplementedError("XMethodWorker get_arg_types") + + def get_result_type(self, *args): + """Return the type of the result of the xmethod. + + Args: + args: Arguments to the method. Each element of the tuple is a + gdb.Value object. The first element is the 'this' pointer + value. These are the same arguments passed to '__call__'. + + Returns: + A gdb.Type object representing the type of the result of the + xmethod. + """ + raise NotImplementedError("XMethodWorker get_result_type") + + def __call__(self, *args): + """Invoke the xmethod. + + Args: + args: Arguments to the method. Each element of the tuple is a + gdb.Value object. The first element is the 'this' pointer + value. + + Returns: + A gdb.Value corresponding to the value returned by the xmethod. + Returns 'None' if the method does not return anything. + """ + raise NotImplementedError("XMethodWorker __call__") + + +class SimpleXMethodMatcher(XMethodMatcher): + """A utility class to implement simple xmethod mathers and workers. + + See the __init__ method below for information on how instances of this + class can be used. + + For simple classes and methods, one can choose to use this class. For + complex xmethods, which need to replace/implement template methods on + possibly template classes, one should implement their own xmethod + matchers and workers. See py-xmethods.py in testsuite/gdb.python + directory of the GDB source tree for examples. + """ + + class SimpleXMethodWorker(XMethodWorker): + def __init__(self, method_function, arg_types): + self._arg_types = arg_types + self._method_function = method_function + + def get_arg_types(self): + return self._arg_types + + def __call__(self, *args): + return self._method_function(*args) + + def __init__( + self, name, class_matcher, method_matcher, method_function, *arg_types + ): + """ + Args: + name: Name of the xmethod matcher. + class_matcher: A regular expression used to match the name of the + class whose method this xmethod is implementing/replacing. + method_matcher: A regular expression used to match the name of the + method this xmethod is implementing/replacing. + method_function: A Python callable which would be called via the + 'invoke' method of the worker returned by the objects of this + class. This callable should accept the object (*this) as the + first argument followed by the rest of the arguments to the + method. All arguments to this function should be gdb.Value + objects. + arg_types: The gdb.Type objects corresponding to the arguments that + this xmethod takes. It can be None, or an empty sequence, + or a single gdb.Type object, or a sequence of gdb.Type objects. + """ + XMethodMatcher.__init__(self, name) + assert callable(method_function), ( + "The 'method_function' argument to 'SimpleXMethodMatcher' " + "__init__ method should be a callable." + ) + self._method_function = method_function + self._class_matcher = class_matcher + self._method_matcher = method_matcher + self._arg_types = arg_types + + def match(self, class_type, method_name): + cm = re.match(self._class_matcher, str(class_type.unqualified().tag)) + mm = re.match(self._method_matcher, method_name) + if cm and mm: + return SimpleXMethodMatcher.SimpleXMethodWorker( + self._method_function, self._arg_types + ) + + +# A helper function for register_xmethod_matcher which returns an error +# object if MATCHER is not having the requisite attributes in the proper +# format. + + +def _validate_xmethod_matcher(matcher): + if not hasattr(matcher, "match"): + return TypeError("Xmethod matcher is missing method: match") + if not hasattr(matcher, "name"): + return TypeError("Xmethod matcher is missing attribute: name") + if not hasattr(matcher, "enabled"): + return TypeError("Xmethod matcher is missing attribute: enabled") + if not isinstance(matcher.name, str): + return TypeError("Attribute 'name' of xmethod matcher is not a " "string") + if matcher.name.find(";") >= 0: + return ValueError("Xmethod matcher name cannot contain ';' in it") + + +# A helper function for register_xmethod_matcher which looks up an +# xmethod matcher with NAME in LOCUS. Returns the index of the xmethod +# matcher in 'xmethods' sequence attribute of the LOCUS. If NAME is not +# found in LOCUS, then -1 is returned. + + +def _lookup_xmethod_matcher(locus, name): + for i in range(0, len(locus.xmethods)): + if locus.xmethods[i].name == name: + return i + return -1 + + +def register_xmethod_matcher(locus, matcher, replace=False): + """Registers a xmethod matcher MATCHER with a LOCUS. + + Arguments: + locus: The locus in which the xmethods should be registered. + It can be 'None' to indicate that the xmethods should be + registered globally. Or, it could be a gdb.Objfile or a + gdb.Progspace object in which the xmethods should be + registered. + matcher: The xmethod matcher to register with the LOCUS. It + should be an instance of 'XMethodMatcher' class. + replace: If True, replace any existing xmethod matcher with the + same name in the locus. Otherwise, if a matcher with the same name + exists in the locus, raise an exception. + """ + err = _validate_xmethod_matcher(matcher) + if err: + raise err + if not locus: + locus = gdb + if locus == gdb: + locus_name = "global" + else: + locus_name = locus.filename + index = _lookup_xmethod_matcher(locus, matcher.name) + if index >= 0: + if replace: + del locus.xmethods[index] + else: + raise RuntimeError( + "Xmethod matcher already registered with " + "%s: %s" % (locus_name, matcher.name) + ) + if gdb.parameter("verbose"): + gdb.write("Registering xmethod matcher '%s' with %s' ...\n") + locus.xmethods.insert(0, matcher) diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/aarch64-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/aarch64-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..e1cf14850fd2b9d51eaac2f0af69ad9357b06453 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/aarch64-linux.xml @@ -0,0 +1,269 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/amd64-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/amd64-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..c0fba0f0073b5833115146a834f4de1f0f9ec9dd --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/amd64-linux.xml @@ -0,0 +1,376 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/arm-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/arm-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..419da0f4973008e2f98f6374f0aaa6598e81b2d7 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/arm-linux.xml @@ -0,0 +1,395 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/freebsd.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/freebsd.xml new file mode 100644 index 0000000000000000000000000000000000000000..0764ac2db6c7c6f546db3a19c5d4dcedeb8d5ccb --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/freebsd.xml @@ -0,0 +1,487 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/gdb-syscalls.dtd b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/gdb-syscalls.dtd new file mode 100644 index 0000000000000000000000000000000000000000..4f80ff2894daa0d951211aa5affef13b0c91176a --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/gdb-syscalls.dtd @@ -0,0 +1,16 @@ + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/i386-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/i386-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..531e8980596bdf0932884cb703204885ea0a8e5a --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/i386-linux.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/mips-n32-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/mips-n32-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..9247b5c3e0b0bd7d18d48de4e94dad1e5b2e8f81 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/mips-n32-linux.xml @@ -0,0 +1,390 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/mips-n64-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/mips-n64-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..d6583a1eb0742c85db79945f82817be1336cd62c --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/mips-n64-linux.xml @@ -0,0 +1,365 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/mips-o32-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/mips-o32-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..98235dbb513d05039d2408c25a9d3d5bfa63fe62 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/mips-o32-linux.xml @@ -0,0 +1,430 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/netbsd.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/netbsd.xml new file mode 100644 index 0000000000000000000000000000000000000000..deaae50c44699ffe38a27ce029cc109ecc4838dd --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/netbsd.xml @@ -0,0 +1,477 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/ppc-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/ppc-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..c4a79e82e0edbe4494f8fecc219c79e16baa2ac6 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/ppc-linux.xml @@ -0,0 +1,445 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/ppc64-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/ppc64-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..233c7c1b47c0d6f7f7ab042364b5901f51e09733 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/ppc64-linux.xml @@ -0,0 +1,417 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/s390-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/s390-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..963e458e6ac1caf39b860cfc7168285d15f53c48 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/s390-linux.xml @@ -0,0 +1,434 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/s390x-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/s390x-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..b0f0cc46b73054fcfa35cd00ec1cba20bffaac08 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/s390x-linux.xml @@ -0,0 +1,382 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/sparc-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/sparc-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..fc146faa392d1b8b42890fc012eac3aa2331181c --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/sparc-linux.xml @@ -0,0 +1,433 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/sparc64-linux.xml b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/sparc64-linux.xml new file mode 100644 index 0000000000000000000000000000000000000000..d90f0d961ed654f9f3a5c8dc0b7c417bb9126c9e --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/syscalls/sparc64-linux.xml @@ -0,0 +1,396 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/system-gdbinit/elinos.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/system-gdbinit/elinos.py new file mode 100644 index 0000000000000000000000000000000000000000..b738af29c870f35d9513b083a881cf7582e85286 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/system-gdbinit/elinos.py @@ -0,0 +1,90 @@ +# Copyright (C) 2011-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""Configure GDB using the ELinOS environment.""" + +import os +import glob +import gdb + + +def warn(msg): + print("warning: %s" % msg) + + +def get_elinos_environment(): + """Return the ELinOS environment. + + If the ELinOS environment is properly set up, return a dictionary + which contains: + * The path to the ELinOS project at key 'project'; + * The path to the ELinOS CDK at key 'cdk'; + * The ELinOS target name at key 'target' (Eg. 'i486-linux'); + * A list of Xenomai install prefixes (which could be empty, if + the ELinOS project does not include Xenomai) at key 'xenomai'. + + If one of these cannot be found, print a warning; the corresponding + value in the returned dictionary will be None. + """ + result = {} + for key in ("project", "cdk", "target"): + var = "ELINOS_" + key.upper() + if var in os.environ: + result[key] = os.environ[var] + else: + warn("%s not set" % var) + result[key] = None + + if result["project"] is not None: + result["xenomai"] = glob.glob(result["project"] + "/xenomai-[0-9.]*") + else: + result["xenomai"] = [] + + return result + + +def elinos_init(): + """Initialize debugger environment for ELinOS. + + Let the debugger know where to find the ELinOS libraries on host. This + assumes that an ELinOS environment is properly set up. If some environment + variables are missing, warn about which library may be missing. + """ + elinos_env = get_elinos_environment() + + solib_dirs = [] + + # System libraries + if None in (elinos_env[key] for key in ("cdk", "target")): + warn("ELinOS system libraries will not be loaded") + else: + solib_prefix = "%s/%s" % (elinos_env["cdk"], elinos_env["target"]) + solib_dirs += ["%s/%s" % (solib_prefix, "lib")] + gdb.execute("set solib-absolute-prefix %s" % solib_prefix) + + # Xenomai libraries. Those are optional, so have a lighter warning + # if they cannot be located. + if elinos_env["project"] is None: + warn("Xenomai libraries may not be loaded") + else: + for dir in elinos_env["xenomai"]: + solib_dirs += ["%s/%s" % (dir, "xenomai-build/usr/realtime/lib")] + + if len(solib_dirs) != 0: + gdb.execute("set solib-search-path %s" % ":".join(solib_dirs)) + + +if __name__ == "__main__": + elinos_init() diff --git a/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/system-gdbinit/wrs-linux.py b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/system-gdbinit/wrs-linux.py new file mode 100644 index 0000000000000000000000000000000000000000..33c18d998c462359a47c006358e5263f3472215a --- /dev/null +++ b/data/miniconda3/pkgs/cuda-gdb-12.8.90-0/share/gdb/system-gdbinit/wrs-linux.py @@ -0,0 +1,25 @@ +# Copyright (C) 2011-2023 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +"""Configure GDB using the WRS/Linux environment.""" + +import os + +if "ENV_PREFIX" in os.environ: + gdb.execute("set sysroot %s" % os.environ["ENV_PREFIX"]) + +else: + print("warning: ENV_PREFIX environment variable missing.") + print("The debugger will probably be unable to find the correct system libraries") diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/bin/xmlwf b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/bin/xmlwf new file mode 100644 index 0000000000000000000000000000000000000000..82b02a4e40bc49fce2f0c9a7ba419fc9955fed1e Binary files /dev/null and b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/bin/xmlwf differ diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/about.json b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..17166fe00d982a81777ca303be0c2f5a309b2f38 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/about.json @@ -0,0 +1,189 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://repo.anaconda.com/pkgs/r", + "https://repo.anaconda.com/pkgs/r" + ], + "conda_build_version": "25.11.1", + "conda_version": "25.1.1", + "description": "Expat is a stream-oriented XML parser library written in C.\nExpat excels with files too large to fit RAM, and where performance\nand flexibility are crucial.\n", + "dev_url": "https://github.com/libexpat/libexpat", + "doc_url": "https://libexpat.github.io/doc", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "parent_recipe": { + "name": "expat-split", + "path": "/home/task_177006210476465/expat-feedstock/recipe", + "version": "2.7.4" + }, + "pbp_graph_uuid": "357eb72c-e51e-4011-b5ed-03ee225dfcbc", + "recipe-maintainers": [ + "kwilcox", + "ocefpaf", + "pelson", + "mingwandroid", + "msarahan", + "scopatz" + ], + "remote_url": "https://github.com/AnacondaRecipes/expat-feedstock", + "sha": "75551a24940eb30b246084f4d3af1d377b625365", + "task_id": "ef61zYeqSiKIenZ0NpLiGQ", + "task_run_id": "0" + }, + "home": "https://libexpat.github.io", + "identifiers": [], + "keywords": [], + "license": "MIT", + "license_family": "MIT", + "license_file": "COPYING", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "ca-certificates 2025.12.2 h06a4308_0", + "ld_impl_linux-64 2.40 h12ee557_0", + "libstdcxx-ng 11.2.0 h1234567_1", + "nlohmann_json 3.11.2 h6a678d5_0", + "pybind11-abi 5 hd3eb1b0_0", + "tzdata 2025a h04d1e81_0", + "libgomp 11.2.0 h1234567_1", + "_openmp_mutex 5.1 1_gnu", + "libgcc-ng 11.2.0 h1234567_1", + "bzip2 1.0.8 h5eee18b_6", + "c-ares 1.19.1 h5eee18b_0", + "cpp-expected 1.1.0 hdb19cb5_0", + "expat 2.7.3 h3385a95_0", + "fmt 9.1.0 hdb19cb5_1", + "icu 73.1 h6a678d5_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_1", + "libuuid 1.41.5 h5eee18b_0", + "lz4-c 1.9.4 h6a678d5_1", + "ncurses 6.4 h6a678d5_0", + "reproc 14.2.4 h6a678d5_2", + "simdjson 3.10.1 hdb19cb5_0", + "xz 5.4.6 h5eee18b_1", + "yaml-cpp 0.8.0 h6a678d5_1", + "zlib 1.2.13 h5eee18b_1", + "libedit 3.1.20230828 h5eee18b_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libssh2 1.11.1 h251f7ec_0", + "libxml2 2.13.5 hfdd30dd_0", + "pcre2 10.42 hebb0a14_1", + "readline 8.2 h5eee18b_0", + "reproc-cpp 14.2.4 h6a678d5_2", + "spdlog 1.11.0 hdb19cb5_0", + "patch 2.8 hb25bd0a_0", + "zstd 1.5.6 hc292b87_0", + "krb5 1.20.1 h143b758_1", + "libarchive 3.7.7 hfab0078_0", + "libsolv 0.7.30 he621ea3_1", + "sqlite 3.45.3 h5eee18b_0", + "python 3.12.9 h5148396_0", + "libmamba 2.0.5 haf1ee3a_1", + "menuinst 2.2.0 py312h06a4308_1", + "anaconda-anon-usage 0.5.0 py312hfc0e8ea_100", + "annotated-types 0.6.0 py312h06a4308_0", + "archspec 0.2.3 pyhd3eb1b0_0", + "boltons 24.1.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_9", + "charset-normalizer 3.3.2 pyhd3eb1b0_0", + "distro 1.9.0 py312h06a4308_0", + "frozendict 2.4.2 py312h06a4308_0", + "idna 3.7 py312h06a4308_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "libmambapy 2.0.5 py312hdb19cb5_1", + "mdurl 0.1.0 py312h06a4308_0", + "packaging 24.2 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.5.0 py312h06a4308_0", + "pycosat 0.6.6 py312h5eee18b_2", + "pycparser 2.21 pyhd3eb1b0_0", + "pygments 2.15.1 py312h06a4308_1", + "pysocks 1.7.1 py312h06a4308_0", + "ruamel.yaml.clib 0.2.8 py312h5eee18b_0", + "setuptools 75.8.0 py312h06a4308_0", + "tqdm 4.67.1 py312he106c6f_0", + "truststore 0.10.0 py312h06a4308_0", + "typing_extensions 4.12.2 py312h06a4308_0", + "wheel 0.45.1 py312h06a4308_0", + "cffi 1.17.1 py312h1fdaa30_1", + "jsonpatch 1.33 py312h06a4308_1", + "markdown-it-py 2.2.0 py312h06a4308_1", + "pip 25.0 py312h06a4308_0", + "ruamel.yaml 0.18.6 py312h5eee18b_0", + "typing-extensions 4.12.2 py312h06a4308_0", + "urllib3 2.3.0 py312h06a4308_0", + "cryptography 43.0.3 py312h7825ff9_1", + "pydantic-core 2.27.1 py312h4aa5aa6_0", + "requests 2.32.3 py312h06a4308_1", + "rich 13.9.4 py312h06a4308_0", + "zstandard 0.23.0 py312h2c38b39_1", + "conda-content-trust 0.2.0 py312h06a4308_1", + "conda-package-streaming 0.11.0 py312h06a4308_0", + "pydantic 2.10.3 py312h06a4308_0", + "conda-package-handling 2.4.0 py312h06a4308_0", + "conda 25.1.1 py312h06a4308_0", + "conda-anaconda-tos 0.1.2 py312h06a4308_0", + "conda-libmamba-solver 25.1.1 pyhd3eb1b0_0", + "libiconv 1.16 h5eee18b_3", + "libsodium 1.0.20 heac8642_0", + "libunistring 1.3 hb25bd0a_0", + "mbedtls 3.5.1 h6a678d5_1", + "openssl 3.0.18 hd6dcaed_0", + "patchelf 0.17.2 h6a678d5_0", + "perl 5.40.2 0_h5eee18b_perl5", + "pthread-stubs 0.3 h0ce48e5_1", + "xorg-libxau 1.0.12 h9b100fa_0", + "xorg-libxdmcp 1.1.5 h9b100fa_0", + "xorg-xorgproto 2024.1 h5eee18b_1", + "yaml 0.2.5 h7b6447c_0", + "liblief 0.16.4 h6a678d5_0", + "libxcb 1.17.0 h9b100fa_0", + "gettext 0.21.0 hedfda30_2", + "xorg-libx11 1.8.12 h9b100fa_1", + "libidn2 2.3.8 hf80d704_0", + "tk 8.6.15 h54e0aa7_0", + "libcurl 8.16.0 heebcbe5_0", + "git 2.51.0 pl5382h000ed5b_0", + "argcomplete 3.6.2 py312h06a4308_0", + "attrs 25.4.0 py312h06a4308_2", + "certifi 2026.01.04 py312h06a4308_0", + "chardet 5.2.0 py312h06a4308_0", + "click 8.2.1 py312h06a4308_1", + "evalidate 2.0.3 py312h06a4308_0", + "filelock 3.20.0 py312h06a4308_0", + "jmespath 1.0.1 py312h06a4308_0", + "markupsafe 3.0.2 py312h5eee18b_0", + "msgpack-python 1.1.1 py312h6a678d5_0", + "pkginfo 1.12.1.2 py312h06a4308_0", + "psutil 7.0.0 py312hee96239_1", + "py-lief 0.16.4 py312h6a678d5_0", + "python-libarchive-c 5.1 pyhd3eb1b0_0", + "pytz 2025.2 py312h06a4308_0", + "pyyaml 6.0.2 py312h5eee18b_0", + "rpds-py 0.28.0 py312h498d7c9_0", + "six 1.17.0 py312h06a4308_0", + "soupsieve 2.5 py312h06a4308_0", + "tomlkit 0.13.3 py312h06a4308_0", + "xmltodict 0.14.2 py312h06a4308_0", + "jinja2 3.1.6 py312h06a4308_0", + "python-dateutil 2.9.0post0 py312h06a4308_2", + "referencing 0.37.0 py312h06a4308_0", + "yq 3.4.3 py312h06a4308_0", + "beautifulsoup4 4.14.2 py312h06a4308_0", + "botocore 1.42.19 py312h06a4308_0", + "jsonschema-specifications 2025.9.1 py312h06a4308_0", + "pynacl 1.6.0 py312h2630517_0", + "jsonschema 4.25.1 py312h06a4308_0", + "s3transfer 0.16.0 py312h06a4308_0", + "boto3 1.42.19 py312h06a4308_0", + "conda-anaconda-telemetry 0.3.0 pyhd3eb1b0_1", + "conda-index 0.7.0 py312h06a4308_0", + "conda-build 25.11.1 py312h76456e7_0" + ], + "summary": "Expat XML parser library in C", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/files b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..d714c32ad5a568ff091cf4f492eab3fa43271dfa --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/files @@ -0,0 +1,2 @@ +bin/xmlwf +share/man/man1/xmlwf.1 diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/git b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/hash_input.json b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..7ddea7e0f7e548a1b954b667578567d7c99da349 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/hash_input.json @@ -0,0 +1,11 @@ +{ + "target_platform": "linux-64", + "c_compiler": "gcc", + "cxx_compiler": "gxx", + "cxx_compiler_version": "14.3.0", + "channel_targets": "defaults", + "c_stdlib_version": "2.28", + "c_stdlib": "sysroot", + "c_compiler_version": "14.3.0", + "__glibc": "__glibc >=2.28,<3.0.a0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/index.json b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..0b69c679d93a1978fafbde58123dbddfe23c9629 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/index.json @@ -0,0 +1,18 @@ +{ + "arch": "x86_64", + "build": "h7354ed3_0", + "build_number": 0, + "depends": [ + "__glibc >=2.28,<3.0.a0", + "libexpat 2.7.4 h7354ed3_0", + "libgcc >=14", + "libstdcxx >=14" + ], + "license": "MIT", + "license_family": "MIT", + "name": "expat", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1770062547137, + "version": "2.7.4" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/licenses/COPYING b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/licenses/COPYING new file mode 100644 index 0000000000000000000000000000000000000000..c6d184a8aae845ce7bf4d195b214d8244d457f8f --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/licenses/COPYING @@ -0,0 +1,21 @@ +Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper +Copyright (c) 2001-2025 Expat maintainers + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/paths.json b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..649d45f33d4f434812dac7456b2dd4f19c98e19f --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/paths.json @@ -0,0 +1,17 @@ +{ + "paths": [ + { + "_path": "bin/xmlwf", + "path_type": "hardlink", + "sha256": "31b6ff9d2a3c442d5f5f8c52fcb9f6b1ec03050325ec555df0eb0d014a5f8385", + "size_in_bytes": 47104 + }, + { + "_path": "share/man/man1/xmlwf.1", + "path_type": "hardlink", + "sha256": "825f0d8a1e62cb022543bbc875dec92fbc3dfae874b0b68e481d53190aa96cc7", + "size_in_bytes": 11514 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6f59b144569fcdebaf99db220ad8ae0763384ff5 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/conda_build_config.yaml @@ -0,0 +1,33 @@ +c_compiler: gcc +c_compiler_version: 14.3.0 +c_stdlib: sysroot +c_stdlib_version: '2.28' +channel_targets: defaults +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cxx_compiler: gxx +cxx_compiler_version: 14.3.0 +expat: '2' +extend_keys: +- ignore_version +- pin_run_as_build +- ignore_build_only_deps +- extend_keys +fortran_compiler: gfortran +ignore_build_only_deps: +- python +- numpy +lua: '5' +numpy: '1.26' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +platform: linux-64 +python: '3.11' +r_base: '3.5' +target_platform: linux-64 diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/meta.yaml b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b69a87e06af34c98d9246dc41391302efb11b5f8 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/meta.yaml @@ -0,0 +1,82 @@ +# This file created by conda-build 25.11.1 +# ------------------------------------------------ + +package: + name: expat + version: 2.7.4 +source: + url: https://github.com/libexpat/libexpat/releases/download/R_2_7_4/expat-2.7.4.tar.bz2 + sha256: e6af11b01e32e5ef64906a5cca8809eabc4beb7ff2f9a0e6aabbd42e825135d0 +build: + number: '0' + run_exports: + - libexpat >=2.7.4,<3.0a0 + noarch: false + noarch_python: false + python_version_independent: false + string: h7354ed3_0 +requirements: + build: + - _libgcc_mutex 0.1 main + - _openmp_mutex 5.1 1_gnu + - binutils_impl_linux-64 2.44 h4b9a079_2 + - binutils_linux-64 2.44 hc03a8fd_2 + - gcc_impl_linux-64 14.3.0 h4943218_4 + - gcc_linux-64 14.3.0 hda73cce_12 + - gxx_impl_linux-64 14.3.0 he634eba_4 + - gxx_linux-64 14.3.0 hca8765c_12 + - kernel-headers_linux-64 4.18.0 h3108a97_1 + - ld_impl_linux-64 2.44 h153f514_2 + - libgcc 15.2.0 h69a1729_7 + - libgcc-devel_linux-64 14.3.0 he7458c1_104 + - libgomp 15.2.0 h4751f2c_7 + - libsanitizer 14.3.0 hd4faa28_4 + - libstdcxx 15.2.0 h39759b7_7 + - libstdcxx-devel_linux-64 14.3.0 he7458c1_104 + - sysroot_linux-64 2.28 h3108a97_1 + - tzdata 2025c he532380_0 + host: + - _libgcc_mutex 0.1 main + - _openmp_mutex 5.1 1_gnu + - libexpat 2.7.4 h7354ed3_0 + - libgcc 15.2.0 h69a1729_7 + - libgomp 15.2.0 h4751f2c_7 + - libstdcxx 15.2.0 h39759b7_7 + run: + - __glibc >=2.28,<3.0.a0 + - libexpat 2.7.4 h7354ed3_0 + - libgcc >=14 + - libstdcxx >=14 +test: + commands: + - xmlwf -h +about: + home: https://libexpat.github.io + license: MIT + license_family: MIT + license_file: COPYING + summary: Expat XML parser library in C + description: 'Expat is a stream-oriented XML parser library written in C. + + Expat excels with files too large to fit RAM, and where performance + + and flexibility are crucial. + + ' + dev_url: https://github.com/libexpat/libexpat + doc_url: https://libexpat.github.io/doc +extra: + recipe-maintainers: + - kwilcox + - mingwandroid + - msarahan + - ocefpaf + - pelson + - scopatz + final: true + copy_test_source_files: true + remote_url: https://github.com/AnacondaRecipes/expat-feedstock + sha: 75551a24940eb30b246084f4d3af1d377b625365 + task_id: ef61zYeqSiKIenZ0NpLiGQ + task_run_id: '0' + pbp_graph_uuid: 357eb72c-e51e-4011-b5ed-03ee225dfcbc diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/bld.bat b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/bld.bat new file mode 100644 index 0000000000000000000000000000000000000000..6897580806690edb1682d4daad14c19d9897ffa5 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/bld.bat @@ -0,0 +1,38 @@ +:: Needed so we can find stdint.h from msinttypes. +set LIB=%LIBRARY_LIB%;%LIB% +set LIBPATH=%LIBRARY_LIB%;%LIBPATH% +set INCLUDE=%LIBRARY_INC%;%INCLUDE% + +:: VS2008 doesn't have stdbool.h so copy in our own +:: to 'lib' where the other headers are so it gets picked up. +if "%VS_MAJOR%" == "9" ( + copy %RECIPE_DIR%\stdbool.h lib\ + copy %LIBRARY_INC%\stdint.h lib\ +) + +:: set cflags because NDEBUG is set in Release configuration, which errors out in test suite due to no assert +cmake -G "Ninja" ^ + -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ + -D CMAKE_C_FLAGS_RELEASE="%CFLAGS%" ^ + -D CMAKE_CXX_FLAGS_RELEASE="%CXXFLAGS%" ^ + -D CMAKE_BUILD_TYPE=Release ^ + -D EXPAT_BUILD_TOOLS=ON ^ + -D EXPAT_BUILD_PKGCONFIG=OFF ^ + -D EXPAT_BUILD_TESTS=ON ^ + -D EXPAT_BUILD_EXAMPLES=OFF ^ + -D EXPAT_BUILD_DOCS=OFF ^ + -D BUILD_SHARED_LIBS=ON ^ + -S %SRC_DIR% ^ + -B build + +:: Build and install. +cmake --build build --config Release --parallel %CPU_COUNT% --target install +if errorlevel 1 exit 1 + +:: Test. +ctest -C Release --test-dir build +if errorlevel 1 exit 1 + +:: Workaround for package that got build with latet version that renamed these. +copy %LIBRARY_BIN%\\libexpat.dll %LIBRARY_BIN%\\expat.dll || exit 1 +copy %LIBRARY_LIB%\\libexpat.lib %LIBRARY_LIB%\\expat.lib || exit 1 diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/build.sh b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..256d375f15677bd2204f68ed2e83e74af964d700 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/build.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Configure using CMake +cmake -G "Ninja" \ + $CMAKE_ARGS \ + -DEXPAT_BUILD_TOOLS=ON \ + -DEXPAT_BUILD_PKGCONFIG=ON \ + -DEXPAT_BUILD_TESTS=ON \ + -DEXPAT_BUILD_EXAMPLES=OFF \ + -DEXPAT_BUILD_DOCS=OFF \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -S $SRC_DIR \ + -B build + +# Build and install +cmake --build build --config Release --parallel $CPU_COUNT --target install + +# Run tests +ctest -C Release --test-dir build diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/meta.yaml b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3361914b9f31cf3879a52d56705f7428ac1a6d83 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/meta.yaml @@ -0,0 +1,108 @@ +{% set name = "expat" %} +{% set version = "2.7.4" %} + +package: + name: {{ name }}-split + version: {{ version }} + +source: + url: https://github.com/lib{{ name }}/lib{{ name }}/releases/download/R_{{ version|replace(".", "_") }}/{{ name }}-{{ version }}.tar.bz2 + sha256: e6af11b01e32e5ef64906a5cca8809eabc4beb7ff2f9a0e6aabbd42e825135d0 + +build: + number: 0 + +requirements: + build: + - {{ stdlib('c') }} + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - cmake + - ninja-base + +outputs: + - name: lib{{ name }} + run_exports: + # changes soname at major versions, default settings OK + # https://abi-laboratory.pro/tracker/timeline/expat/ + - {{ pin_subpackage('lib' + name) }} + ignore_run_exports_from: + # This package needs the compiler for the tests, but the library + # does not link to libstdc++.so + - {{ compiler('cxx') }} + files: + - include # [unix] + - lib/libexpat.* # [unix] + - lib/cmake # [unix] + - lib/pkgconfig # [unix] + - share/doc # [unix] + - Library/bin/*expat.dll # [win] + - Library/include # [win] + - Library/lib/*expat.lib # [win] + - Library/lib/cmake # [win] + - Library/share/doc # [win] + requirements: + build: + - {{ stdlib('c') }} + - {{ compiler('c') }} + - {{ compiler('cxx') }} + host: + run: + run_constrained: + - {{ name }} {{ version }}.* + test: + requires: + - pkg-config + commands: + - ls $PREFIX/lib/libexpat*${SHLIB_EXT}* > /dev/null 2>&1 # [unix] + - pkg-config --libs expat # [unix] + - if not exist %LIBRARY_BIN%\libexpat.dll exit 1 # [win] + + - name: {{ name }} + run_exports: + # changes soname at major versions, default settings OK + # https://abi-laboratory.pro/tracker/timeline/expat/ + - {{ pin_subpackage('lib' + name) }} + ignore_run_exports_from: + # This package needs the compiler for the tests, but the library + # does not link to libstdc++.so + - {{ compiler('cxx') }} + files: + - bin # [unix] + - share/man # [unix] + - Library/bin/*.exe # [win] + - Library/share/man # [win] + requirements: + build: + - {{ stdlib('c') }} + - {{ compiler('c') }} + - {{ compiler('cxx') }} + host: + - {{ pin_subpackage('lib' + name, exact=True) }} + run: + - {{ pin_subpackage('lib' + name, exact=True) }} + test: + commands: + - xmlwf -h + +about: + home: https://libexpat.github.io + license: MIT + license_family: MIT + license_file: COPYING + summary: Expat XML parser library in C + description: | + Expat is a stream-oriented XML parser library written in C. + Expat excels with files too large to fit RAM, and where performance + and flexibility are crucial. + dev_url: https://github.com/libexpat/libexpat + doc_url: https://libexpat.github.io/doc + +extra: + recipe-maintainers: + - kwilcox + - ocefpaf + - pelson + - mingwandroid + - msarahan + - scopatz diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/stdbool.h b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/stdbool.h new file mode 100644 index 0000000000000000000000000000000000000000..da97b5d01d8d58dcfc49ed0d0a6948a7ec63c7bf --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/recipe/parent/stdbool.h @@ -0,0 +1,3 @@ +typedef int bool; +#define false 0 +#define true 1 diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/repodata_record.json b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..bdbefba2ebad78bec5f51e6f9c3b66cdb6dcc662 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/repodata_record.json @@ -0,0 +1,25 @@ +{ + "name": "expat", + "version": "2.7.4", + "build": "h7354ed3_0", + "build_number": 0, + "channel": "https://repo.anaconda.com/pkgs/main/linux-64", + "subdir": "linux-64", + "fn": "expat-2.7.4-h7354ed3_0.conda", + "md5": "575218bf09aa99037a6e3bb1f43796a8", + "url": "https://repo.anaconda.com/pkgs/main/linux-64/expat-2.7.4-h7354ed3_0.conda", + "sha256": "6dc018cce7a88683c5e9b8ed14906ff342e8fee7307205123c588f9775a1b026", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "__glibc >=2.28,<3.0.a0", + "libexpat 2.7.4 h7354ed3_0", + "libgcc >=14", + "libstdcxx >=14" + ], + "constrains": [], + "license": "MIT", + "license_family": "MIT", + "timestamp": 1770062547000, + "size": 25302 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/run_exports.json b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..6c013b856ba520dd7e0b9361b2a8216a59f8fbfc --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/run_exports.json @@ -0,0 +1 @@ +{"weak": ["libexpat >=2.7.4,<3.0a0"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/test/run_test.sh b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..a42cc5c1f715b627f5c7ce6788aac750547c6033 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/info/test/run_test.sh @@ -0,0 +1,8 @@ + + +set -ex + + + +xmlwf -h +exit 0 diff --git a/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/share/man/man1/xmlwf.1 b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/share/man/man1/xmlwf.1 new file mode 100644 index 0000000000000000000000000000000000000000..573c314e2113f5f1b7df15fd823663fc19f88734 --- /dev/null +++ b/data/miniconda3/pkgs/expat-2.7.4-h7354ed3_0/share/man/man1/xmlwf.1 @@ -0,0 +1,359 @@ +'\" -*- coding: us-ascii -*- +.if \n(.g .ds T< \\FC +.if \n(.g .ds T> \\F[\n[.fam]] +.de URL +\\$2 \(la\\$1\(ra\\$3 +.. +.if \n(.g .mso www.tmac +.TH XMLWF 1 "January 31, 2026" "" "" +.SH NAME +xmlwf \- Determines if an XML document is well-formed +.SH SYNOPSIS +'nh +.fi +.ad l +\fBxmlwf\fR \kx +.if (\nx>(\n(.l/2)) .nr x (\n(.l/5) +'in \n(.iu+\nxu +[\fIOPTIONS\fR] [\fIFILE\fR ...] +'in \n(.iu-\nxu +.ad b +'hy +'nh +.fi +.ad l +\fBxmlwf\fR \kx +.if (\nx>(\n(.l/2)) .nr x (\n(.l/5) +'in \n(.iu+\nxu +\fB-h\fR | \fB--help\fR +'in \n(.iu-\nxu +.ad b +'hy +'nh +.fi +.ad l +\fBxmlwf\fR \kx +.if (\nx>(\n(.l/2)) .nr x (\n(.l/5) +'in \n(.iu+\nxu +\fB-v\fR | \fB--version\fR +'in \n(.iu-\nxu +.ad b +'hy +.SH DESCRIPTION +\fBxmlwf\fR uses the Expat library to +determine if an XML document is well-formed. It is +non-validating. +.PP +If you do not specify any files on the command-line, and you +have a recent version of \fBxmlwf\fR, the +input file will be read from standard input. +.SH "WELL-FORMED DOCUMENTS" +A well-formed document must adhere to the +following rules: +.TP 0.2i +\(bu +The file begins with an XML declaration. For instance, +\*(T<\*(T>. +\fINOTE\fR: +\fBxmlwf\fR does not currently +check for a valid XML declaration. +.TP 0.2i +\(bu +Every start tag is either empty () +or has a corresponding end tag. +.TP 0.2i +\(bu +There is exactly one root element. This element must contain +all other elements in the document. Only comments, white +space, and processing instructions may come after the close +of the root element. +.TP 0.2i +\(bu +All elements nest properly. +.TP 0.2i +\(bu +All attribute values are enclosed in quotes (either single +or double). +.PP +If the document has a DTD, and it strictly complies with that +DTD, then the document is also considered \fIvalid\fR. +\fBxmlwf\fR is a non-validating parser -- +it does not check the DTD. However, it does support +external entities (see the \*(T<\fB\-x\fR\*(T> option). +.SH OPTIONS +When an option includes an argument, you may specify the argument either +separately ("\*(T<\fB\-d\fR\*(T> \fIoutput\fR") or concatenated with the +option ("\*(T<\fB\-d\fR\*(T>\fIoutput\fR"). \fBxmlwf\fR +supports both. +.TP +\*(T<\fB\-a\fR\*(T> \fIfactor\fR +Sets the maximum tolerated amplification factor +for protection against amplification attacks +like the billion laughs attack +(default: 100.0 +for the sum of direct and indirect output and also +for allocations of dynamic memory). +The amplification factor is calculated as .. + +.nf + + amplification := (direct + indirect) / direct + +.fi + +\&.. with regard to use of entities and .. + +.nf + + amplification := allocated / direct + +.fi + +\&.. with regard to dynamic memory while parsing. + is the number of bytes read +from the primary document in parsing, + is the number of bytes +added by expanding entities and reading of external DTD files, +combined, and + is the total number of bytes of dynamic memory +allocated (and not freed) per hierarchy of parsers. + +\fINOTE\fR: +If you ever need to increase this value for non-attack payload, +please file a bug report. +.TP +\*(T<\fB\-b\fR\*(T> \fIbytes\fR +Sets the number of output bytes (including amplification) +needed to activate protection against amplification attacks +like billion laughs +(default: 8 MiB for the sum of direct and indirect output, +and 64 MiB for allocations of dynamic memory). +This can be thought of as an "activation threshold". + +\fINOTE\fR: +If you ever need to increase this value for non-attack payload, +please file a bug report. +.TP +\*(T<\fB\-c\fR\*(T> +If the input file is well-formed and \fBxmlwf\fR +doesn't encounter any errors, the input file is simply copied to +the output directory unchanged. +This implies no namespaces (turns off \*(T<\fB\-n\fR\*(T>) and +requires \*(T<\fB\-d\fR\*(T> to specify an output directory. +.TP +\*(T<\fB\-d\fR\*(T> \fIoutput-dir\fR +Specifies a directory to contain transformed +representations of the input files. +By default, \*(T<\fB\-d\fR\*(T> outputs a canonical representation +(described below). +You can select different output formats using \*(T<\fB\-c\fR\*(T>, +\*(T<\fB\-m\fR\*(T> and \*(T<\fB\-N\fR\*(T>. + +The output filenames will +be exactly the same as the input filenames or "STDIN" if the input is +coming from standard input. Therefore, you must be careful that the +output file does not go into the same directory as the input +file. Otherwise, \fBxmlwf\fR will delete the +input file before it generates the output file (just like running +\*(T file\*(T> in most shells). + +Two structurally equivalent XML documents have a byte-for-byte +identical canonical XML representation. +Note that ignorable white space is considered significant and +is treated equivalently to data. +More on canonical XML can be found at +http://www.jclark.com/xml/canonxml.html . +.TP +\*(T<\fB\-e\fR\*(T> \fIencoding\fR +Specifies the character encoding for the document, overriding +any document encoding declaration. \fBxmlwf\fR +supports four built-in encodings: +\*(T, +\*(T, +\*(T, and +\*(T. +Also see the \*(T<\fB\-w\fR\*(T> option. +.TP +\*(T<\fB\-g\fR\*(T> \fIbytes\fR +Sets the buffer size to request per call pair to +\*(T<\fBXML_GetBuffer\fR\*(T> and \*(T<\fBread\fR\*(T> +(default: 8 KiB). +.TP +\*(T<\fB\-h\fR\*(T>, \*(T<\fB\-\-help\fR\*(T> +Prints short usage information on command \fBxmlwf\fR, +and then exits. +Similar to this man page but more concise. +.TP +\*(T<\fB\-k\fR\*(T> +When processing multiple files, \fBxmlwf\fR +by default halts after the the first file with an error. +This tells \fBxmlwf\fR to report the error +but to keep processing. +This can be useful, for example, when testing a filter that converts +many files to XML and you want to quickly find out which conversions +failed. +.TP +\*(T<\fB\-m\fR\*(T> +Outputs some strange sort of XML file that completely +describes the input file, including character positions. +Requires \*(T<\fB\-d\fR\*(T> to specify an output file. +.TP +\*(T<\fB\-n\fR\*(T> +Turns on namespace processing. (describe namespaces) +\*(T<\fB\-c\fR\*(T> disables namespaces. +.TP +\*(T<\fB\-N\fR\*(T> +Adds a doctype and notation declarations to canonical XML output. +This matches the example output used by the formal XML test cases. +Requires \*(T<\fB\-d\fR\*(T> to specify an output file. +.TP +\*(T<\fB\-p\fR\*(T> +Tells \fBxmlwf\fR to process external DTDs and parameter +entities. + +Normally \fBxmlwf\fR never parses parameter +entities. \*(T<\fB\-p\fR\*(T> tells it to always parse them. +\*(T<\fB\-p\fR\*(T> implies \*(T<\fB\-x\fR\*(T>. +.TP +\*(T<\fB\-q\fR\*(T> +Disable reparse deferral, and allow quadratic parse runtime +on large tokens (default: reparse deferral enabled). +.TP +\*(T<\fB\-r\fR\*(T> +Normally \fBxmlwf\fR memory-maps the XML file +before parsing; this can result in faster parsing on many +platforms. +\*(T<\fB\-r\fR\*(T> turns off memory-mapping and uses normal file +IO calls instead. +Of course, memory-mapping is automatically turned off +when reading from standard input. + +Use of memory-mapping can cause some platforms to report +substantially higher memory usage for +\fBxmlwf\fR, but this appears to be a matter of +the operating system reporting memory in a strange way; there is +not a leak in \fBxmlwf\fR. +.TP +\*(T<\fB\-s\fR\*(T> +Prints an error if the document is not standalone. +A document is standalone if it has no external subset and no +references to parameter entities. +.TP +\*(T<\fB\-t\fR\*(T> +Turns on timings. This tells Expat to parse the entire file, +but not perform any processing. +This gives a fairly accurate idea of the raw speed of Expat itself +without client overhead. +\*(T<\fB\-t\fR\*(T> turns off most of the output options +(\*(T<\fB\-d\fR\*(T>, \*(T<\fB\-m\fR\*(T>, \*(T<\fB\-c\fR\*(T>, ...). +.TP +\*(T<\fB\-v\fR\*(T>, \*(T<\fB\-\-version\fR\*(T> +Prints the version of the Expat library being used, including some +information on the compile-time configuration of the library, and +then exits. +.TP +\*(T<\fB\-w\fR\*(T> +Enables support for Windows code pages. +Normally, \fBxmlwf\fR will throw an error if it +runs across an encoding that it is not equipped to handle itself. With +\*(T<\fB\-w\fR\*(T>, \fBxmlwf\fR will try to use a Windows code +page. See also \*(T<\fB\-e\fR\*(T>. +.TP +\*(T<\fB\-x\fR\*(T> +Turns on parsing external entities. +(CAREFUL! This makes xmlwf vulnerable to external entity attacks (XXE).) + +Non-validating parsers are not required to resolve external +entities, or even expand entities at all. +Expat always expands internal entities (?), +but external entity parsing must be enabled explicitly. + +External entities are simply entities that obtain their +data from outside the XML file currently being parsed. + +This is an example of an internal entity: + +.nf + + + +.fi + +And here are some examples of external entities: + +.nf + + (parsed) + (unparsed) + +.fi +.TP +\*(T<\fB\-\-\fR\*(T> +(Two hyphens.) +Terminates the list of options. This is only needed if a filename +starts with a hyphen. For example: + +.nf + +xmlwf \-\- \-myfile.xml + +.fi + +will run \fBxmlwf\fR on the file +\*(T<\fI\-myfile.xml\fR\*(T>. +.PP +Older versions of \fBxmlwf\fR do not support +reading from standard input. +.SH OUTPUT +\fBxmlwf\fR outputs nothing for files which are problem-free. +If any input file is not well-formed, or if the output for any +input file cannot be opened, \fBxmlwf\fR prints a single +line describing the problem to standard output. +.PP +If the \*(T<\fB\-k\fR\*(T> option is not provided, \fBxmlwf\fR +halts upon encountering a well-formedness or output-file error. +If \*(T<\fB\-k\fR\*(T> is provided, \fBxmlwf\fR continues +processing the remaining input files, describing problems found with any of them. +.SH "EXIT STATUS" +For options \*(T<\fB\-v\fR\*(T>|\*(T<\fB\-\-version\fR\*(T> or \*(T<\fB\-h\fR\*(T>|\*(T<\fB\-\-help\fR\*(T>, \fBxmlwf\fR always exits with status code 0. For other cases, the following exit status codes are returned: +.TP +\*(T<\fB0\fR\*(T> +The input files are well-formed and the output (if requested) was written successfully. +.TP +\*(T<\fB1\fR\*(T> +An internal error occurred. +.TP +\*(T<\fB2\fR\*(T> +One or more input files were not well-formed or could not be parsed. +.TP +\*(T<\fB3\fR\*(T> +If using the \*(T<\fB\-d\fR\*(T> option, an error occurred opening an output file. +.TP +\*(T<\fB4\fR\*(T> +There was a command-line argument error in how \fBxmlwf\fR was invoked. +.SH BUGS +The errors should go to standard error, not standard output. +.PP +There should be a way to get \*(T<\fB\-d\fR\*(T> to send its +output to standard output rather than forcing the user to send +it to a file. +.PP +I have no idea why anyone would want to use the +\*(T<\fB\-d\fR\*(T>, \*(T<\fB\-c\fR\*(T>, and +\*(T<\fB\-m\fR\*(T> options. If someone could explain it to +me, I'd like to add this information to this manpage. +.SH "SEE ALSO" +.nf + +The Expat home page: https://libexpat.github.io/ +The W3 XML 1.0 specification (fourth edition): https://www.w3.org/TR/2006/REC\-xml\-20060816/ +Billion laughs attack: https://en.wikipedia.org/wiki/Billion_laughs_attack + +.fi +.SH AUTHOR +This manual page was originally written by Scott Bronson <\*(T> +in December 2001 for +the Debian GNU/Linux system (but may be used by others). Permission is +granted to copy, distribute and/or modify this document under +the terms of the GNU Free Documentation +License, Version 1.1. diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/etc/conda/activate.d/activate-gcc_linux-64.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/etc/conda/activate.d/activate-gcc_linux-64.sh new file mode 100644 index 0000000000000000000000000000000000000000..f23f502d3b65446719acfafc1027c63be6f348fc --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/etc/conda/activate.d/activate-gcc_linux-64.sh @@ -0,0 +1,230 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# The compiler adds $PREFIX/lib to rpath, so it's better to add -L and -isystem as well. +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CFLAGS_USED="-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CFLAGS_USED="-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + LDFLAGS_USED="-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,${PREFIX}/lib -Wl,-rpath-link,${PREFIX}/lib -L${PREFIX}/lib" + CPPFLAGS_USED="-DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem ${PREFIX}/include" + DEBUG_CPPFLAGS_USED="-D_DEBUG -D_FORTIFY_SOURCE=2 -Og -isystem ${PREFIX}/include" + CMAKE_PREFIX_PATH_USED="${PREFIX}:${CONDA_PREFIX}/x86_64-conda-linux-gnu/sysroot/usr" +else + CFLAGS_USED="-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem ${CONDA_PREFIX}/include" + DEBUG_CFLAGS_USED="-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem ${CONDA_PREFIX}/include" + CPPFLAGS_USED="-DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem ${CONDA_PREFIX}/include" + DEBUG_CPPFLAGS_USED="-D_DEBUG -D_FORTIFY_SOURCE=2 -Og -isystem ${CONDA_PREFIX}/include" + LDFLAGS_USED="-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,${CONDA_PREFIX}/lib -Wl,-rpath-link,${CONDA_PREFIX}/lib -L${CONDA_PREFIX}/lib" + CMAKE_PREFIX_PATH_USED="${CONDA_PREFIX}:${CONDA_PREFIX}/x86_64-conda-linux-gnu/sysroot/usr" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED=${_CONDA_PYTHON_SYSCONFIGDATA_NAME:-_sysconfigdata_x86_64_conda_cos6_linux_gnu} +if [ -n "${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" ] && [ -n "${SYS_SYSROOT}" ]; then + if find "$(dirname "$(dirname "${SYS_PYTHON}")")/lib/"python* -type f -name "${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}.py" -exec false {} +; then + echo "" + echo "WARNING: The Python interpreter at the following prefix:" + echo " $(dirname "$(dirname "${SYS_PYTHON}")")" + echo " .. is not able to handle sysconfigdata-based compilation for the host:" + echo " $( printf %s "${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" | sed s/_sysconfigdata_//g )" + echo "" + echo " We are not preventing things from continuing here, but *this* Python will not" + echo " be able to compile software for this host, and, depending on whether it has" + echo " been patched to ignore missing _CONDA_PYTHON_SYSCONFIGDATA_NAME or not, may cause" + echo " an exception." + echo "" + echo " This can happen for one of three reasons:" + echo "" + echo " 1. It is out of date: Please run 'conda update python' in that environment" + echo "" + echo " 2. You are bootstrapping a sysconfigdata-based cross-capable Python and can ignore this" + echo " (but please remember to copy the generated sysconfigdata back to the Python recipe's" + echo " sysconfigdate folder and then rebuild it for all the systems you want to be able" + echo " to use as a build machine for this host)." + echo "" + echo " 3. You are attempting your own bespoke cross-compilation host that is not supported. Have" + echo " you provided your own value in the _CONDA_PYTHON_SYSCONFIGDATA_NAME environment variable but" + echo " misspelt it and/or failed to add the neccessary ${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}.py" + echo " file to the Python interpreter's standard library?" + echo "" + fi +fi + +_CMAKE_ARGS="-DCMAKE_AR=${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-ar -DCMAKE_CXX_COMPILER_AR=${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-gcc-ar -DCMAKE_C_COMPILER_AR=${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-gcc-ar" +_CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_RANLIB=${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-ranlib -DCMAKE_CXX_COMPILER_RANLIB=${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-gcc-ranlib -DCMAKE_C_COMPILER_RANLIB=${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-gcc-ranlib" +_CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_LINKER=${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-ld -DCMAKE_STRIP=${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-strip" +_CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release" + +_MESON_ARGS="--buildtype release" + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY" + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_FIND_ROOT_PATH=$PREFIX;${BUILD_PREFIX}/x86_64-conda-linux-gnu/sysroot" + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_INSTALL_LIBDIR=lib" + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_PROGRAM_PATH=${BUILD_PREFIX}/bin;$PREFIX/bin" + _MESON_ARGS="${_MESON_ARGS} --prefix=$PREFIX -Dlibdir=lib" +fi + +# shellcheck disable=SC2050 # templating will fix this error +if [ "" = "1" ]; then + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=x86_64" + _MESON_ARGS="${_MESON_ARGS} --cross-file ${CONDA_PREFIX}/meson_cross_file.txt" + echo "[host_machine]" > "${CONDA_PREFIX}/meson_cross_file.txt" + echo "system = 'linux'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "cpu = 'x86_64'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "cpu_family = 'x86_64'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "endian = 'little'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + # specify path to correct binaries from build (not host) environment, + # which meson will not auto-discover (out of caution) if not told explicitly. + echo "[binaries]" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "cmake = '${CONDA_PREFIX}/bin/cmake'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "pkgconfig = '${CONDA_PREFIX}/bin/pkg-config'" >> "${CONDA_PREFIX}/meson_cross_file.txt" +fi + +_tc_activation \ + activate x86_64-conda-linux-gnu- "HOST,x86_64-conda-linux-gnu" "BUILD,x86_64-conda-linux-gnu" \ + "CONDA_TOOLCHAIN_HOST,x86_64-conda-linux-gnu" \ + "CONDA_TOOLCHAIN_BUILD,x86_64-conda-linux-gnu" \ + "CC,${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-cc" cpp gcc gcc-ar gcc-nm gcc-ranlib \ + "CPPFLAGS,${CPPFLAGS_USED}${CPPFLAGS:+ }${CPPFLAGS:-}" \ + "CFLAGS,${CFLAGS_USED}${CFLAGS:+ }${CFLAGS:-}" \ + "LDFLAGS,${LDFLAGS_USED}${LDFLAGS:+ }${LDFLAGS:-}" \ + "DEBUG_CPPFLAGS,${DEBUG_CPPFLAGS_USED}${DEBUG_CPPFLAGS:+ }${DEBUG_CPPFLAGS:-}" \ + "DEBUG_CFLAGS,${DEBUG_CFLAGS_USED}${DEBUG_CFLAGS:+ }${DEBUG_CFLAGS:-}" \ + "CMAKE_PREFIX_PATH,${CMAKE_PREFIX_PATH_USED}" \ + "_CONDA_PYTHON_SYSCONFIGDATA_NAME,${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" \ + "CONDA_BUILD_SYSROOT,${CONDA_PREFIX}/x86_64-conda-linux-gnu/sysroot" \ + "CONDA_BUILD_CROSS_COMPILATION," \ + "CC_FOR_BUILD,${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-cc" \ + "build_alias,x86_64-conda-linux-gnu" \ + "host_alias,x86_64-conda-linux-gnu" \ + "MESON_ARGS,${_MESON_ARGS}" \ + "CMAKE_ARGS,${_CMAKE_ARGS}" + +unset _CMAKE_ARGS + +# shellcheck disable=SC2050 # templating will fix this error +if [ "" = "1" ]; then +_tc_activation \ + activate x86_64-conda-linux-gnu- \ + "QEMU_LD_PREFIX,${QEMU_LD_PREFIX:-${CONDA_BUILD_SYSROOT}}" +fi + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi + + # fix prompt for zsh + if [ -n "${ZSH_NAME:-}" ]; then + autoload -Uz add-zsh-hook + + _conda_clang_precmd() { + # shellcheck disable=SC2034 # guarded for zsh + HOST="${CONDA_BACKUP_HOST}" + } + add-zsh-hook -Uz precmd _conda_clang_precmd + + _conda_clang_preexec() { + # shellcheck disable=SC2034 # guarded for zsh + HOST="${CONDA_TOOLCHAIN_HOST}" + } + add-zsh-hook -Uz preexec _conda_clang_preexec + fi +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/etc/conda/deactivate.d/deactivate-gcc_linux-64.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/etc/conda/deactivate.d/deactivate-gcc_linux-64.sh new file mode 100644 index 0000000000000000000000000000000000000000..f58b97d255e09534fc90065a79e2f603715948f6 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/etc/conda/deactivate.d/deactivate-gcc_linux-64.sh @@ -0,0 +1,155 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CFLAGS_USED="-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CFLAGS_USED="-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + LDFLAGS_USED="-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib" + CPPFLAGS_USED="-DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem ${PREFIX}/include" + DEBUG_CPPFLAGS_USED="-D_DEBUG -D_FORTIFY_SOURCE=2 -Og -isystem ${PREFIX}/include" + CMAKE_PREFIX_PATH_USED="${PREFIX}:${CONDA_PREFIX}/x86_64-conda-linux-gnu/sysroot/usr" +else + CFLAGS_USED="-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem ${CONDA_PREFIX}/include" + DEBUG_CFLAGS_USED="-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem ${CONDA_PREFIX}/include" + CPPFLAGS_USED="-DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem ${CONDA_PREFIX}/include" + DEBUG_CPPFLAGS_USED="-D_DEBUG -D_FORTIFY_SOURCE=2 -Og -isystem ${CONDA_PREFIX}/include" + LDFLAGS_USED="-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,${CONDA_PREFIX}/lib -Wl,-rpath-link,${CONDA_PREFIX}/lib -L${CONDA_PREFIX}/lib" + CMAKE_PREFIX_PATH_USED="${CONDA_PREFIX}:${CONDA_PREFIX}/x86_64-conda-linux-gnu/sysroot/usr" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +# shellcheck disable=SC2050 # templating will fix this error +if [ "" = "1" ]; then +_tc_activation \ + deactivate x86_64-conda-linux-gnu- \ + "QEMU_LD_PREFIX,${QEMU_LD_PREFIX:-${CONDA_BUILD_SYSROOT}}" +fi + +_tc_activation \ + deactivate x86_64-conda-linux-gnu- "HOST,x86_64-conda-linux-gnu" "BUILD,x86_64-conda-linux-gnu" \ + "CONDA_TOOLCHAIN_HOST,x86_64-conda-linux-gnu" \ + "CONDA_TOOLCHAIN_BUILD,x86_64-conda-linux-gnu" \ + "CC,${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-cc" cpp gcc gcc-ar gcc-nm gcc-ranlib \ + "CPPFLAGS,${CPPFLAGS_USED}${CPPFLAGS:+ }${CPPFLAGS:-}" \ + "CFLAGS,${CFLAGS_USED}${CFLAGS:+ }${CFLAGS:-}" \ + "LDFLAGS,${LDFLAGS_USED}${LDFLAGS:+ }${LDFLAGS:-}" \ + "DEBUG_CPPFLAGS,${DEBUG_CPPFLAGS_USED}${DEBUG_CPPFLAGS:+ }${DEBUG_CPPFLAGS:-}" \ + "DEBUG_CFLAGS,${DEBUG_CFLAGS_USED}${DEBUG_CFLAGS:+ }${DEBUG_CFLAGS:-}" \ + "CMAKE_PREFIX_PATH,${CMAKE_PREFIX_PATH_USED}" \ + "_CONDA_PYTHON_SYSCONFIGDATA_NAME,${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" \ + "CONDA_BUILD_SYSROOT,${CONDA_PREFIX}/x86_64-conda-linux-gnu/sysroot" \ + "CONDA_BUILD_CROSS_COMPILATION," \ + "CC_FOR_BUILD,${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-cc" \ + "build_alias,x86_64-conda-linux-gnu" \ + "host_alias,x86_64-conda-linux-gnu" \ + "MESON_ARGS,${_MESON_ARGS:-}" \ + "CMAKE_ARGS,${_CMAKE_ARGS:-}" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi + + # unfix prompt for zsh + if [ -n "${ZSH_NAME:-}" ]; then + # we use eval here to avoid non-POSIX shells trying to parse the ZSH syntax + eval "precmd_functions=(\${precmd_functions:#_conda_clang_precmd})" + eval "preexec_functions=(\${preexec_functions:#_conda_clang_preexec})" + fi +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/about.json b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..819021415217b3f2956cd65175f588feb9533171 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/about.json @@ -0,0 +1,197 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge" + ], + "conda_build_version": "24.5.1", + "conda_version": "24.5.0", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "flow_run_id": "azure_20240610.3.1", + "parent_recipe": { + "name": "ctng-compiler-activation", + "path": "/home/conda/recipe_root", + "version": "11.4.0" + }, + "recipe-maintainers": [ + "isuruf", + "beckermr" + ], + "remote_url": "https://github.com/conda-forge/ctng-compiler-activation-feedstock", + "sha": "80f60bf84f1c8afa868ba6e8b23115108aeae5e7" + }, + "home": "https://github.com/conda-forge/ctng-compiler-activation-feedstock", + "identifiers": [], + "keywords": [], + "license": "BSD-3-Clause", + "license_file": "LICENSE", + "root_pkgs": [ + "requests-toolbelt 1.0.0 pyhd8ed1ab_0", + "ruamel_yaml 0.15.80 py310h2372a71_1009", + "libtiff 4.6.0 h1dd3fc0_3", + "idna 3.7 pyhd8ed1ab_0", + "jsonpointer 2.4 py310hff52083_3", + "tzdata 2024a h0c530f3_0", + "libxcb 1.15 h0b41bf4_0", + "pyopenssl 24.0.0 pyhd8ed1ab_0", + "libffi 3.4.2 h7f98852_5", + "bzip2 1.0.8 hd590300_5", + "libxml2 2.12.7 hc051c1a_1", + "libdeflate 1.20 hd590300_0", + "libcurl 8.8.0 hca28451_0", + "jinja2 3.1.4 pyhd8ed1ab_0", + "perl 5.32.1 7_hd590300_perl5", + "filelock 3.14.0 pyhd8ed1ab_0", + "libssh2 1.11.0 h0841786_0", + "lzo 2.10 hd590300_1001", + "xorg-libxau 1.0.11 hd590300_0", + "traitlets 5.14.3 pyhd8ed1ab_0", + "ripgrep 14.1.0 he8a937b_0", + "python-dateutil 2.9.0 pyhd8ed1ab_0", + "jsonschema 4.22.0 pyhd8ed1ab_0", + "ca-certificates 2024.6.2 hbcca054_0", + "pillow 10.3.0 py310hf73ecf8_0", + "packaging 24.0 pyhd8ed1ab_0", + "yaml-cpp 0.8.0 h59595ed_0", + "importlib_resources 6.4.0 pyhd8ed1ab_0", + "ncurses 6.5 h59595ed_0", + "ld_impl_linux-64 2.40 hf3520f5_2", + "openssl 3.3.1 h4ab18f5_0", + "python_abi 3.10 4_cp310", + "tornado 6.4.1 py310hc51659f_0", + "_openmp_mutex 4.5 2_gnu", + "_libgcc_mutex 0.1 conda_forge", + "pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1", + "six 1.16.0 pyh6c4a22f_0", + "menuinst 2.1.0 py310hff52083_0", + "conda-pack 0.7.1 pyhd8ed1ab_0", + "libmambapy 1.5.8 py310h39ff949_0", + "icu 73.2 h59595ed_0", + "patch 2.7.6 h7f98852_1002", + "boltons 24.0.0 pyhd8ed1ab_0", + "pybind11-abi 4 hd8ed1ab_3", + "beautifulsoup4 4.12.3 pyha770c72_0", + "tini 0.19.0 h166bdaf_1", + "xorg-libxdmcp 1.1.3 h7f98852_0", + "psutil 5.9.8 py310h2372a71_0", + "pycosat 0.6.6 py310h2372a71_0", + "krb5 1.21.2 h659d440_0", + "libnghttp2 1.58.0 h47da74e_1", + "python 3.10.14 hd12c33a_0_cpython", + "referencing 0.35.1 pyhd8ed1ab_0", + "libiconv 1.17 hd590300_2", + "pcre2 10.43 hcad00b1_0", + "attrs 23.2.0 pyh71513ae_0", + "pytz 2024.1 pyhd8ed1ab_0", + "py-lief 0.14.1 py310h76e45a6_1", + "distro 1.9.0 pyhd8ed1ab_0", + "defusedxml 0.7.1 pyhd8ed1ab_0", + "c-ares 1.28.1 hd590300_0", + "brotli-python 1.1.0 py310hc6cd4ac_1", + "zipp 3.18.0 pyhd8ed1ab_0", + "yaml 0.2.5 h7f98852_2", + "mamba 1.5.8 py310h51d5547_0", + "conda-libmamba-solver 24.1.0 pyhd8ed1ab_0", + "requests 2.32.3 pyhd8ed1ab_0", + "colorama 0.4.6 pyhd8ed1ab_0", + "freetype 2.12.1 h267a509_2", + "libuuid 2.38.1 h0b41bf4_0", + "cryptography 42.0.8 py310hb1bd9d3_0", + "fmt 10.2.1 h00ab1b0_0", + "frozendict 2.4.4 py310hc51659f_0", + "jupyter_core 5.7.2 py310hff52083_0", + "nbformat 5.10.4 pyhd8ed1ab_0", + "libexpat 2.6.2 h59595ed_0", + "chardet 5.2.0 py310hff52083_1", + "urllib3 2.2.1 pyhd8ed1ab_0", + "libzlib 1.2.13 h4ab18f5_6", + "ruamel.yaml 0.18.6 py310h2372a71_0", + "cffi 1.16.0 py310h2fee648_0", + "conda-package-streaming 0.10.0 pyhd8ed1ab_0", + "pysocks 1.7.1 pyha2e5f31_6", + "pip 24.0 pyhd8ed1ab_0", + "pkginfo 1.11.0 pyhd8ed1ab_0", + "markupsafe 2.1.5 py310h2372a71_0", + "libsolv 0.7.29 ha6fb4c9_0", + "anaconda-project 0.11.1 pyhd8ed1ab_0", + "lcms2 2.16 hb7c19ff_0", + "xz 5.2.6 h166bdaf_0", + "lerc 4.0.0 h27087fc_0", + "libpng 1.6.43 h2797004_0", + "liblief 0.14.1 hac33072_1", + "python-libarchive-c 5.1 py310hff52083_0", + "libstdcxx-ng 13.2.0 hc0a3c3a_7", + "su-exec 0.2 h166bdaf_1003", + "conda 24.5.0 py310hff52083_0", + "charset-normalizer 3.3.2 pyhd8ed1ab_0", + "pthread-stubs 0.4 h36c2ea0_1001", + "truststore 0.8.0 pyhd8ed1ab_0", + "pluggy 1.5.0 pyhd8ed1ab_0", + "more-itertools 10.2.0 pyhd8ed1ab_0", + "libwebp-base 1.4.0 hd590300_0", + "jsonschema-specifications 2023.12.1 pyhd8ed1ab_0", + "jsonpatch 1.33 pyhd8ed1ab_0", + "platformdirs 4.2.2 pyhd8ed1ab_0", + "reproc-cpp 14.2.4.post0 h59595ed_1", + "archspec 0.2.3 pyhd8ed1ab_0", + "readline 8.2 h8228510_1", + "libarchive 3.7.4 hfca40fe_0", + "libsqlite 3.45.3 h2797004_0", + "libev 4.33 hd590300_2", + "reproc 14.2.4.post0 hd590300_1", + "tk 8.6.13 noxft_h4845f30_101", + "conda-package-handling 2.3.0 pyh7900ff3_0", + "libgcc-ng 13.2.0 h77fa898_7", + "zstd 1.5.6 ha6fb4c9_0", + "python-fastjsonschema 2.19.1 pyhd8ed1ab_0", + "libjpeg-turbo 3.0.0 hd590300_1", + "click 8.1.7 unix_pyh707e725_0", + "tqdm 4.66.4 pyhd8ed1ab_0", + "tomli 2.0.1 pyhd8ed1ab_0", + "conda-index 0.4.0 pyhd8ed1ab_0", + "lz4-c 1.9.4 hcb278e6_0", + "patchelf 0.17.2 h58526e2_0", + "setuptools 70.0.0 pyhd8ed1ab_0", + "rpds-py 0.18.1 py310he421c4c_0", + "git 2.45.1 pl5321hef9f9f3_0", + "keyutils 1.6.1 h166bdaf_0", + "pycparser 2.22 pyhd8ed1ab_0", + "libxcrypt 4.4.36 hd590300_1", + "toolz 0.12.1 pyhd8ed1ab_0", + "openjpeg 2.5.2 h488ebb8_0", + "conda-build 24.5.1 py310hff52083_0", + "certifi 2024.2.2 pyhd8ed1ab_0", + "libgomp 13.2.0 h77fa898_7", + "wheel 0.43.0 pyhd8ed1ab_1", + "libnsl 2.0.1 hd590300_0", + "pyyaml 6.0.1 py310h2372a71_1", + "soupsieve 2.5 pyhd8ed1ab_1", + "anaconda-client 1.12.3 pyhd8ed1ab_0", + "libedit 3.1.20191231 he28a2e2_2", + "zstandard 0.19.0 py310h5764c6d_0", + "libmamba 1.5.8 had39da4_0", + "ruamel.yaml.clib 0.2.8 py310h2372a71_0", + "conda-forge-metadata 0.8.0 pyhd8ed1ab_0", + "typing-extensions 4.12.2 hd8ed1ab_0", + "rattler-build 0.16.2 h72610f6_0", + "oras-py 0.1.14 pyhd8ed1ab_0", + "exceptiongroup 1.2.0 pyhd8ed1ab_2", + "wrapt 1.16.0 py310h2372a71_0", + "oniguruma 6.9.9 hd590300_0", + "conda-forge-ci-setup 4.6.0 py310h7a2d8a0_100", + "conda-env 2.6.0 1", + "pytest 8.2.2 pyhd8ed1ab_0", + "deprecated 1.2.14 pyh1a96a4e_0", + "conda-oci-mirror 0.1.0 pyhd8ed1ab_0", + "shyaml 0.6.2 pyhd3deb0d_0", + "rattler-build-conda-compat 0.0.6 pyh267e887_0", + "typing_extensions 4.12.2 pyha770c72_0", + "jq 1.7.1 hd590300_0", + "iniconfig 2.0.0 pyhd8ed1ab_0" + ], + "summary": "GNU C Compiler (activation scripts)", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/files b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/files new file mode 100644 index 0000000000000000000000000000000000000000..5b98eac085028de80778087eca7dfa61b39a9ad1 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/files @@ -0,0 +1,2 @@ +etc/conda/activate.d/activate-gcc_linux-64.sh +etc/conda/deactivate.d/deactivate-gcc_linux-64.sh diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/git b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/hash_input.json b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..be60250f453b5b0dc848f7ee30abb357d8390fc3 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/hash_input.json @@ -0,0 +1,10 @@ +{ + "cross_target_platform": "linux-64", + "cross_stdlib": "sysroot", + "gcc_version": "11.4.0", + "linux_machine": "x86_64", + "channel_targets": "conda-forge main", + "target_platform": "linux-64", + "c_stdlib": "sysroot", + "cross_stdlib_version": "2.12" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/index.json b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..dc4d3e91fea42176893923fbd63ec2b19aed9e7f --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/index.json @@ -0,0 +1,16 @@ +{ + "arch": "x86_64", + "build": "ha077dfb_4", + "build_number": 4, + "depends": [ + "binutils_linux-64 2.40 hb3c18ed_4", + "gcc_impl_linux-64 11.4.0.*", + "sysroot_linux-64" + ], + "license": "BSD-3-Clause", + "name": "gcc_linux-64", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1717999560626, + "version": "11.4.0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/licenses/LICENSE b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..9aab6814c6ea8d2f24b623d386a9aa29ce4cc91c --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/licenses/LICENSE @@ -0,0 +1,28 @@ +BSD 3-Clause License + +Copyright (c) 2012, Anaconda, Inc. +Copyright (c) 2015-2019, conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/paths.json b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..764e327b00c59236139268f5c9a2b967b68d44c7 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/paths.json @@ -0,0 +1,17 @@ +{ + "paths": [ + { + "_path": "etc/conda/activate.d/activate-gcc_linux-64.sh", + "path_type": "hardlink", + "sha256": "74a8d991e00cd846db74b1b053ab15b6b45f995a5434f18591b139de212012d9", + "size_in_bytes": 11630 + }, + { + "_path": "etc/conda/deactivate.d/deactivate-gcc_linux-64.sh", + "path_type": "hardlink", + "sha256": "6053d4ff71ebb3c2ec638d1f21efdada8f25603efff2c908c7be1442eff7346c", + "size_in_bytes": 7039 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b04250770c830941dee39b10ece139ad5ede9cc2 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/conda_build_config.yaml @@ -0,0 +1,151 @@ +CI: azure +FINAL_CFLAGS_linux_32: -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong + -fno-plt -O2 -pipe +FINAL_CFLAGS_linux_64: -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong + -fno-plt -O2 -ffunction-sections -pipe +FINAL_CFLAGS_linux_aarch64: -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O3 -pipe +FINAL_CFLAGS_linux_ppc64le: -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong + -fno-plt -O3 -pipe +FINAL_CFLAGS_linux_s390x: -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O3 -pipe +FINAL_CFLAGS_win_64: -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 + -pipe +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_32: _sysconfigdata_i686_conda_cos6_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_64: _sysconfigdata_x86_64_conda_cos6_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_aarch64: _sysconfigdata_aarch64_conda_cos7_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_ppc64le: _sysconfigdata_powerpc64le_conda_cos7_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_s390x: _sysconfigdata_s390x_conda_linux_gnu +FINAL_CPPFLAGS: -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 +FINAL_CXXFLAGS_linux_32: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O2 -pipe +FINAL_CXXFLAGS_linux_64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O2 -ffunction-sections -pipe +FINAL_CXXFLAGS_linux_aarch64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CXXFLAGS_linux_ppc64le: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O3 -pipe +FINAL_CXXFLAGS_linux_s390x: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CXXFLAGS_win_64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize + -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_DEBUG_CFLAGS_linux_32: -march=prescott -mtune=haswell -ftree-vectorize -fPIC + -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_64: -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all + -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_CFLAGS_linux_aarch64: -ftree-vectorize -fPIC -fstack-protector-all -fno-plt + -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_ppc64le: -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC + -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_s390x: -ftree-vectorize -fPIC -fstack-protector-all -fno-plt + -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_win_64: -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og + -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CPPFLAGS: -D_DEBUG -D_FORTIFY_SOURCE=2 -Og +FINAL_DEBUG_CXXFLAGS_linux_32: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt + -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_linux_64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt + -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_CXXFLAGS_linux_aarch64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments + -pipe +FINAL_DEBUG_CXXFLAGS_linux_ppc64le: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt + -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_linux_s390x: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments + -pipe +FINAL_DEBUG_CXXFLAGS_win_64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments + -pipe +FINAL_DEBUG_FFLAGS_linux_32: -fopenmp -march=prescott -mtune=haswell -ftree-vectorize + -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fcheck=all -fbacktrace + -fimplicit-none -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_64: -fopenmp -march=nocona -mtune=haswell -ftree-vectorize + -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fcheck=all -fbacktrace + -fimplicit-none -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_FFLAGS_linux_aarch64: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong + -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_ppc64le: -fopenmp -mcpu=power8 -mtune=power8 -ftree-vectorize + -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace + -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_s390x: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong + -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_win_64: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong + -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_FFLAGS_linux_32: -fopenmp -march=prescott -mtune=haswell -ftree-vectorize -fPIC + -fstack-protector-strong -fno-plt -O2 -pipe +FINAL_FFLAGS_linux_64: -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC + -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe +FINAL_FFLAGS_linux_aarch64: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong + -fno-plt -O3 -pipe +FINAL_FFLAGS_linux_ppc64le: -fopenmp -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC + -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_FFLAGS_linux_s390x: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong + -fno-plt -O3 -pipe +FINAL_FFLAGS_win_64: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O3 -pipe +FINAL_LDFLAGS_linux_32: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now + -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_64: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now + -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_aarch64: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro + -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_ppc64le: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro + -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_s390x: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro + -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_win_64: -Wl,-O2 -Wl,--sort-common +binutils_version: '2.40' +c_compiler: gcc +c_stdlib: sysroot +cdt_name: cos6 +channel_sources: conda-forge +channel_targets: conda-forge main +clang_version: '16' +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cross_stdlib: sysroot +cross_stdlib_version: '2.12' +cross_target_platform: linux-64 +cxx_compiler: gxx +docker_image: quay.io/condaforge/linux-anvil-cos7-x86_64 +extend_keys: +- extend_keys +- ignore_build_only_deps +- pin_run_as_build +- ignore_version +fortran_compiler: gfortran +gcc_version: 11.4.0 +ignore_build_only_deps: +- numpy +- python +libgfortran_soname: '5' +linux_machine: x86_64 +lua: '5' +numpy: '1.22' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +python: '3.10' +r_base: '3.5' +target_platform: linux-64 +triplet: x86_64-conda-linux-gnu +zip_keys: +- - cross_target_platform + - triplet + - cross_stdlib + - cross_stdlib_version + - linux_machine +- - gcc_version + - libgfortran_soname diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/install-gcc.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/install-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9855caaaeddc9f6fa4623d942bf7b6b696a77ff4 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/install-gcc.sh @@ -0,0 +1,3 @@ +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-gcc.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-gcc.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/meta.yaml b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..92a3a128e7fa733ed7023ccc5865220605440905 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/meta.yaml @@ -0,0 +1,47 @@ +# This file created by conda-build 24.5.1 +# ------------------------------------------------ + +package: + name: gcc_linux-64 + version: 11.4.0 +source: + path: /home/conda/recipe_root +build: + number: 4 + run_exports: + strong: + - libgcc-ng >=12 + string: ha077dfb_4 +requirements: + build: [] + run: + - binutils_linux-64 2.40 hb3c18ed_4 + - gcc_impl_linux-64 11.4.0.* + - sysroot_linux-64 +test: + commands: + - echo x86_64 + - ${CC} ${CFLAGS} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v + - ${CC} ${LDFLAGS} c_aligned.o -o c_aligned + - ./c_aligned + - test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" + && exit 1 + - test -d ${CONDA_BUILD_SYSROOT} || exit 1 + files: + - tests + requires: + - sysroot_linux-64 2.12.* +about: + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + summary: GNU C Compiler (activation scripts) +extra: + copy_test_source_files: true + final: true + flow_run_id: azure_20240610.3.1 + recipe-maintainers: + - beckermr + - isuruf + remote_url: https://github.com/conda-forge/ctng-compiler-activation-feedstock + sha: 80f60bf84f1c8afa868ba6e8b23115108aeae5e7 diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/GPL_LICENSE b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/GPL_LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..53d1f3d01864c35841739c55aeba9700657627b7 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/GPL_LICENSE @@ -0,0 +1,675 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/LICENSE b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..9aab6814c6ea8d2f24b623d386a9aa29ce4cc91c --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/LICENSE @@ -0,0 +1,28 @@ +BSD 3-Clause License + +Copyright (c) 2012, Anaconda, Inc. +Copyright (c) 2015-2019, conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-binutils.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-binutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..55ab945d1ad143ad3db2b0e5623bafed69c47d8a --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-binutils.sh @@ -0,0 +1,117 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-.' 'A-ZX__') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +# gold has not been (cannot be?) built for powerpc +if echo @CHOST@ | grep powerpc > /dev/null; then + GOLD_USED= +else + GOLD_USED=ld.gold +fi + +_tc_activation \ + activate @CHOST@- \ + addr2line ar as c++filt elfedit gprof ld ${GOLD_USED} nm objcopy objdump ranlib readelf size strings strip \ + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +#exit 1 +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-g++.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b568366feac9bc4c64a994acf4abbc1e325fb80 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-g++.sh @@ -0,0 +1,123 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# When people are using conda-build, assume that adding rpath during build, and pointing at +# the host env's includes and libs is helpful default behavior +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CXXFLAGS_USED="@CXXFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CXXFLAGS_USED="@DEBUG_CXXFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" +else + CXXFLAGS_USED="@CXXFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CXXFLAGS_USED="@DEBUG_CXXFLAGS@ -isystem ${CONDA_PREFIX}/include" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_tc_activation \ + activate @CHOST@- \ + "CXX,${CONDA_PREFIX}/bin/@CXX@" @CXX_COMPILERS@ \ + "CXXFLAGS,${CXXFLAGS_USED}${CXXFLAGS:+ }${CXXFLAGS:-}" \ + "DEBUG_CXXFLAGS,${DEBUG_CXXFLAGS_USED}${DEBUG_CXXFLAGS:+ }${DEBUG_CXXFLAGS:-}" \ + "CXX_FOR_BUILD,${CONDA_PREFIX}/bin/@CXX_FOR_BUILD@" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +#exit 1 +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-gcc.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..02794d2e8555fd5c5019909039ede984bcd9cc9a --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-gcc.sh @@ -0,0 +1,230 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# The compiler adds $PREFIX/lib to rpath, so it's better to add -L and -isystem as well. +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CFLAGS_USED="@CFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CFLAGS_USED="@DEBUG_CFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + LDFLAGS_USED="@LDFLAGS@ -Wl,-rpath,${PREFIX}/lib -Wl,-rpath-link,${PREFIX}/lib -L${PREFIX}/lib" + CPPFLAGS_USED="@CPPFLAGS@ -isystem ${PREFIX}/include" + DEBUG_CPPFLAGS_USED="@DEBUG_CPPFLAGS@ -isystem ${PREFIX}/include" + CMAKE_PREFIX_PATH_USED="${PREFIX}:${CONDA_PREFIX}/@CHOST@/sysroot/usr" +else + CFLAGS_USED="@CFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CFLAGS_USED="@DEBUG_CFLAGS@ -isystem ${CONDA_PREFIX}/include" + CPPFLAGS_USED="@CPPFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CPPFLAGS_USED="@DEBUG_CPPFLAGS@ -isystem ${CONDA_PREFIX}/include" + LDFLAGS_USED="@LDFLAGS@ -Wl,-rpath,${CONDA_PREFIX}/lib -Wl,-rpath-link,${CONDA_PREFIX}/lib -L${CONDA_PREFIX}/lib" + CMAKE_PREFIX_PATH_USED="${CONDA_PREFIX}:${CONDA_PREFIX}/@CHOST@/sysroot/usr" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED=${_CONDA_PYTHON_SYSCONFIGDATA_NAME:-@_CONDA_PYTHON_SYSCONFIGDATA_NAME@} +if [ -n "${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" ] && [ -n "${SYS_SYSROOT}" ]; then + if find "$(dirname "$(dirname "${SYS_PYTHON}")")/lib/"python* -type f -name "${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}.py" -exec false {} +; then + echo "" + echo "WARNING: The Python interpreter at the following prefix:" + echo " $(dirname "$(dirname "${SYS_PYTHON}")")" + echo " .. is not able to handle sysconfigdata-based compilation for the host:" + echo " $( printf %s "${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" | sed s/_sysconfigdata_//g )" + echo "" + echo " We are not preventing things from continuing here, but *this* Python will not" + echo " be able to compile software for this host, and, depending on whether it has" + echo " been patched to ignore missing _CONDA_PYTHON_SYSCONFIGDATA_NAME or not, may cause" + echo " an exception." + echo "" + echo " This can happen for one of three reasons:" + echo "" + echo " 1. It is out of date: Please run 'conda update python' in that environment" + echo "" + echo " 2. You are bootstrapping a sysconfigdata-based cross-capable Python and can ignore this" + echo " (but please remember to copy the generated sysconfigdata back to the Python recipe's" + echo " sysconfigdate folder and then rebuild it for all the systems you want to be able" + echo " to use as a build machine for this host)." + echo "" + echo " 3. You are attempting your own bespoke cross-compilation host that is not supported. Have" + echo " you provided your own value in the _CONDA_PYTHON_SYSCONFIGDATA_NAME environment variable but" + echo " misspelt it and/or failed to add the neccessary ${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}.py" + echo " file to the Python interpreter's standard library?" + echo "" + fi +fi + +_CMAKE_ARGS="-DCMAKE_AR=${CONDA_PREFIX}/bin/@CHOST@-ar -DCMAKE_CXX_COMPILER_AR=${CONDA_PREFIX}/bin/@CHOST@-gcc-ar -DCMAKE_C_COMPILER_AR=${CONDA_PREFIX}/bin/@CHOST@-gcc-ar" +_CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_RANLIB=${CONDA_PREFIX}/bin/@CHOST@-ranlib -DCMAKE_CXX_COMPILER_RANLIB=${CONDA_PREFIX}/bin/@CHOST@-gcc-ranlib -DCMAKE_C_COMPILER_RANLIB=${CONDA_PREFIX}/bin/@CHOST@-gcc-ranlib" +_CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_LINKER=${CONDA_PREFIX}/bin/@CHOST@-ld -DCMAKE_STRIP=${CONDA_PREFIX}/bin/@CHOST@-strip" +_CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release" + +_MESON_ARGS="--buildtype release" + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY" + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_FIND_ROOT_PATH=$PREFIX;${BUILD_PREFIX}/@CHOST@/sysroot" + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_INSTALL_LIBDIR=lib" + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_PROGRAM_PATH=${BUILD_PREFIX}/bin;$PREFIX/bin" + _MESON_ARGS="${_MESON_ARGS} --prefix=$PREFIX -Dlibdir=lib" +fi + +# shellcheck disable=SC2050 # templating will fix this error +if [ "@CONDA_BUILD_CROSS_COMPILATION@" = "1" ]; then + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=@LINUX_MACHINE@" + _MESON_ARGS="${_MESON_ARGS} --cross-file ${CONDA_PREFIX}/meson_cross_file.txt" + echo "[host_machine]" > "${CONDA_PREFIX}/meson_cross_file.txt" + echo "system = 'linux'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "cpu = '@LINUX_MACHINE@'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "cpu_family = '@MESON_FAMILY@'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "endian = 'little'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + # specify path to correct binaries from build (not host) environment, + # which meson will not auto-discover (out of caution) if not told explicitly. + echo "[binaries]" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "cmake = '${CONDA_PREFIX}/bin/cmake'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "pkgconfig = '${CONDA_PREFIX}/bin/pkg-config'" >> "${CONDA_PREFIX}/meson_cross_file.txt" +fi + +_tc_activation \ + activate @CHOST@- "HOST,@CHOST@" "BUILD,@CBUILD@" \ + "CONDA_TOOLCHAIN_HOST,@CHOST@" \ + "CONDA_TOOLCHAIN_BUILD,@CBUILD@" \ + "CC,${CONDA_PREFIX}/bin/@CC@" @COMPILERS@ \ + "CPPFLAGS,${CPPFLAGS_USED}${CPPFLAGS:+ }${CPPFLAGS:-}" \ + "CFLAGS,${CFLAGS_USED}${CFLAGS:+ }${CFLAGS:-}" \ + "LDFLAGS,${LDFLAGS_USED}${LDFLAGS:+ }${LDFLAGS:-}" \ + "DEBUG_CPPFLAGS,${DEBUG_CPPFLAGS_USED}${DEBUG_CPPFLAGS:+ }${DEBUG_CPPFLAGS:-}" \ + "DEBUG_CFLAGS,${DEBUG_CFLAGS_USED}${DEBUG_CFLAGS:+ }${DEBUG_CFLAGS:-}" \ + "CMAKE_PREFIX_PATH,${CMAKE_PREFIX_PATH_USED}" \ + "_CONDA_PYTHON_SYSCONFIGDATA_NAME,${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" \ + "CONDA_BUILD_SYSROOT,${CONDA_PREFIX}/@CHOST@/sysroot" \ + "CONDA_BUILD_CROSS_COMPILATION,@CONDA_BUILD_CROSS_COMPILATION@" \ + "CC_FOR_BUILD,${CONDA_PREFIX}/bin/@CC_FOR_BUILD@" \ + "build_alias,@CBUILD@" \ + "host_alias,@CHOST@" \ + "MESON_ARGS,${_MESON_ARGS}" \ + "CMAKE_ARGS,${_CMAKE_ARGS}" + +unset _CMAKE_ARGS + +# shellcheck disable=SC2050 # templating will fix this error +if [ "@CONDA_BUILD_CROSS_COMPILATION@" = "1" ]; then +_tc_activation \ + activate @CHOST@- \ + "QEMU_LD_PREFIX,${QEMU_LD_PREFIX:-${CONDA_BUILD_SYSROOT}}" +fi + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi + + # fix prompt for zsh + if [ -n "${ZSH_NAME:-}" ]; then + autoload -Uz add-zsh-hook + + _conda_clang_precmd() { + # shellcheck disable=SC2034 # guarded for zsh + HOST="${CONDA_BACKUP_HOST}" + } + add-zsh-hook -Uz precmd _conda_clang_precmd + + _conda_clang_preexec() { + # shellcheck disable=SC2034 # guarded for zsh + HOST="${CONDA_TOOLCHAIN_HOST}" + } + add-zsh-hook -Uz preexec _conda_clang_preexec + fi +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-gfortran.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-gfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..58fb4800e73aceda3b5a8c3af9d5439f2f2aca6c --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/activate-gfortran.sh @@ -0,0 +1,129 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# When people are using conda-build, assume that adding rpath during build, and pointing at +# the host env's includes and libs is helpful default behavior +if [ "${CONDA_BUILD:-0}" = "1" ]; then + FFLAGS_USED="@FFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" +else + FFLAGS_USED="@FFLAGS@ -isystem ${CONDA_PREFIX}/include" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_tc_activation \ + activate @CHOST@- \ + gfortran f95 \ + "FC_FOR_BUILD,${CONDA_PREFIX}/bin/@CBUILD@-gfortran" \ + "FFLAGS,${FFLAGS_USED}${FFLAGS:+ }${FFLAGS:-}" \ + "FORTRANFLAGS,${FFLAGS_USED}${FORTRANFLAGS:+ }${FORTRANFLAGS:-}" \ + "DEBUG_FFLAGS,${FFLAGS_USED} @DEBUG_FFLAGS@${FFLAGS:+ }${FFLAGS:-}" \ + "DEBUG_FORTRANFLAGS,${FFLAGS_USED} @DEBUG_FFLAGS@${FORTRANFLAGS:+ }${FORTRANFLAGS:-}" \ + +# extra ones - have a dependency on the previous ones, so done after. +_tc_activation \ + activate @CHOST@- \ + "FC,${FC:-${GFORTRAN}}" \ + "F77,${F77:-${GFORTRAN}}" \ + "F90,${F90:-${GFORTRAN}}" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/build.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..340644dfc1be2ebc20acc1505b56198f609beb76 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/build.sh @@ -0,0 +1,105 @@ +#!/bin/bash + +set -ex + +source $RECIPE_DIR/get_cpu_arch.sh + +cross_target_platform_u=${cross_target_platform/-/_} + +FINAL_CFLAGS=FINAL_CFLAGS_${cross_target_platform_u} +FINAL_DEBUG_CFLAGS=FINAL_DEBUG_CFLAGS_${cross_target_platform_u} +FINAL_CXXFLAGS=FINAL_CXXFLAGS_${cross_target_platform_u} +FINAL_DEBUG_CXXFLAGS=FINAL_DEBUG_CXXFLAGS_${cross_target_platform_u} +FINAL_FFLAGS=FINAL_FFLAGS_${cross_target_platform_u} +FINAL_DEBUG_FFLAGS=FINAL_DEBUG_FFLAGS_${cross_target_platform_u} +FINAL_LDFLAGS=FINAL_LDFLAGS_${cross_target_platform_u} +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME=FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_${cross_target_platform_u} + +FINAL_CFLAGS="${!FINAL_CFLAGS}" +FINAL_CXXFLAGS="${!FINAL_CXXFLAGS}" +FINAL_FFLAGS="${!FINAL_FFLAGS}" +FINAL_DEBUG_CFLAGS="${!FINAL_DEBUG_CFLAGS}" +FINAL_DEBUG_CXXFLAGS="${!FINAL_DEBUG_CXXFLAGS}" +FINAL_DEBUG_FFLAGS="${!FINAL_DEBUG_FFLAGS}" +FINAL_LDFLAGS="${!FINAL_LDFLAGS}" +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME="${!FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME}" + +MAJOR_VERSION="${PKG_VERSION%%.*}" + +# See https://github.com/conda-forge/ctng-compiler-activation-feedstock/issues/42 +# -std=c++17 shouldn't be a default flag, but from gcc 11 onwards it is the default. +# Not removing the flag for gcc 8, 9 because some package ABIs change according to +# the C++ standard (like boost). +if [[ "${MAJOR_VERSION}" != 8 && "${MAJOR_VERSION}" != 9 && "${MAJOR_VERSION}" != 10 ]]; then + FINAL_CXXFLAGS="$(echo $FINAL_CXXFLAGS | sed 's/-std=c++17 //g')" + FINAL_DEBUG_CXXFLAGS="$(echo $FINAL_DEBUG_CXXFLAGS | sed 's/-std=c++17 //g')" +fi +# -fopenmp shouldn't be a default flag. We are not removing it for gcc 9 as gcc 9.3 +# already had this flag, but we are removing it for gcc 10+. +if [[ "${MAJOR_VERSION}" != 8 && "${MAJOR_VERSION}" != 9 ]]; then + FINAL_FFLAGS="$(echo $FINAL_FFLAGS | sed 's/-fopenmp //g')" + FINAL_DEBUG_FFLAGS="$(echo $FINAL_DEBUG_FFLAGS | sed 's/-fopenmp //g')" +fi + +if [ -z "${FINAL_CFLAGS}" ]; then + echo "FINAL_CFLAGS not set. Did you pass in a flags variant config file?" + exit 1 +fi + +if [[ "$target_platform" == "$cross_target_platform" ]]; then + export CONDA_BUILD_CROSS_COMPILATION="" +else + export CONDA_BUILD_CROSS_COMPILATION="1" +fi + +if [[ "$cross_target_platform" == linux-ppc64le ]]; then + MESON_FAMILY=ppc64 +else + MESON_FAMILY=${linux_machine} +fi + +find . -name "*activate*.sh" -exec sed -i.bak "s|@LINUX_MACHINE@|${linux_machine}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@MESON_FAMILY@|${MESON_FAMILY}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@CBUILD@|${CBUILD}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@CHOST@|${CHOST}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@CPPFLAGS@|${FINAL_CPPFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@DEBUG_CPPFLAGS@|${FINAL_DEBUG_CPPFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@CFLAGS@|${FINAL_CFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@DEBUG_CFLAGS@|${FINAL_DEBUG_CFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@CXXFLAGS@|${FINAL_CXXFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@DEBUG_CXXFLAGS@|${FINAL_DEBUG_CXXFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@FFLAGS@|${FINAL_FFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@DEBUG_FFLAGS@|${FINAL_DEBUG_FFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@LDFLAGS@|${FINAL_LDFLAGS}|g" "{}" \; +if [[ ! -z "${FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME}" ]]; then + find . -name "*activate*.sh" -exec sed -i.bak "s|@_CONDA_PYTHON_SYSCONFIGDATA_NAME@|${FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME}|g" "{}" \; +fi +find . -name "*activate*.sh" -exec sed -i.bak "s|@CONDA_BUILD_CROSS_COMPILATION@|${CONDA_BUILD_CROSS_COMPILATION}|g" "{}" \; + +cp activate-gcc.sh activate-clang.sh +cp activate-g++.sh activate-clang++.sh +cp deactivate-gcc.sh deactivate-clang.sh +cp deactivate-g++.sh deactivate-clang++.sh + +find . -name "*activate-gcc.sh" -exec sed -i.bak "s|@COMPILERS@|cpp gcc gcc-ar gcc-nm gcc-ranlib|g" "{}" \; +find . -name "*activate-g++.sh" -exec sed -i.bak "s|@CXX_COMPILERS@|g++|g" "{}" \; +find . -name "*activate-gcc.sh" -exec sed -i.bak "s|@CC@|${CHOST}-cc|g" "{}" \; +find . -name "*activate-g++.sh" -exec sed -i.bak "s|@CXX@|${CHOST}-c++|g" "{}" \; +find . -name "*activate-gcc.sh" -exec sed -i.bak "s|@CC_FOR_BUILD@|${CBUILD}-cc|g" "{}" \; +find . -name "*activate-g++.sh" -exec sed -i.bak "s|@CXX_FOR_BUILD@|${CBUILD}-c++|g" "{}" \; + +find . -name "*activate-clang.sh" -exec sed -i.bak "s|@COMPILERS@|clang|g" "{}" \; +find . -name "*activate-clang++.sh" -exec sed -i.bak "s|@CXX_COMPILERS@|clang++|g" "{}" \; +find . -name "*activate-clang.sh" -exec sed -i.bak "s|@CC@|${CHOST}-clang|g" "{}" \; +find . -name "*activate-clang++.sh" -exec sed -i.bak "s|@CXX@|${CHOST}-clang++|g" "{}" \; +find . -name "*activate-clang.sh" -exec sed -i.bak "s|@CC_FOR_BUILD@|${CBUILD}-clang|g" "{}" \; +find . -name "*activate-clang++.sh" -exec sed -i.bak "s|@CXX_FOR_BUILD@|${CBUILD}-clang++|g" "{}" \; + +find . -name "*activate*.sh.bak" -exec rm "{}" \; + +# Check if (de-)activate scripts can be used in non-Bash shells (ignoring the commonly supported "local" keyword.) +errors=$(find . -name "*activate*.sh" -exec shellcheck -e SC3043 --severity=info --format=gcc {} \;) +echo $errors +if [[ ${errors} != "" ]]; then + exit 1 +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/conda_build_config.yaml b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4f509cf3c3913796bcec0051bf2c5436e32f2711 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/conda_build_config.yaml @@ -0,0 +1,167 @@ +# cos6-specific because of PYTHON_SYSCONFIGDATA_NAME below. Would be nice to make that more generic if possible. +gcc_version: + - 11.4.0 + - 12.3.0 + - 13.2.0 +libgfortran_soname: + - 5 + - 5 + - 5 +binutils_version: + - 2.40 +cross_target_platform: + - linux-64 + - linux-ppc64le + - linux-aarch64 + - linux-s390x + - win-64 +triplet: + - x86_64-conda-linux-gnu + - powerpc64le-conda-linux-gnu + - aarch64-conda-linux-gnu + - s390x-conda-linux-gnu + - x86_64-w64-mingw32 +c_stdlib: # [win] + - m2w64-sysroot # [win] +c_stdlib_version: # [win] + - 12 # [win] +cross_stdlib: + - sysroot + - sysroot + - sysroot + - sysroot + - m2w64-sysroot +cross_stdlib_version: + - 2.12 + - 2.17 + - 2.17 + - 2.17 + - 12 +linux_machine: + - x86_64 + - ppc64le + - aarch64 + - s390x + - x86_64 + +clang_version: + - 16 + - 17 + - 18 + +zip_keys: + - - cross_target_platform + - triplet + - cross_stdlib + - cross_stdlib_version + - linux_machine + - - gcc_version + - libgfortran_soname + +FINAL_CPPFLAGS: + - -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 + +FINAL_CFLAGS_linux_64: + - -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe +FINAL_CFLAGS_linux_32: + - -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe +FINAL_CFLAGS_linux_ppc64le: + - -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CFLAGS_linux_aarch64: + - -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CFLAGS_linux_s390x: + - -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CFLAGS_win_64: + - -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe + +FINAL_CXXFLAGS_linux_64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe +FINAL_CXXFLAGS_linux_32: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe +FINAL_CXXFLAGS_linux_ppc64le: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CXXFLAGS_linux_aarch64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CXXFLAGS_linux_s390x: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CXXFLAGS_win_64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe + +FINAL_FFLAGS_linux_64: + - -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe +FINAL_FFLAGS_linux_32: + - -fopenmp -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe +FINAL_FFLAGS_linux_ppc64le: + - -fopenmp -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_FFLAGS_linux_aarch64: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_FFLAGS_linux_s390x: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_FFLAGS_win_64: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe + +FINAL_LDFLAGS_linux_64: + - -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_32: + - -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_ppc64le: + - -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_aarch64: + - -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_s390x: + - -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_win_64: + - -Wl,-O2 -Wl,--sort-common + +FINAL_DEBUG_CPPFLAGS: + - -D_DEBUG -D_FORTIFY_SOURCE=2 -Og + +FINAL_DEBUG_CFLAGS_linux_64: + - -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_CFLAGS_linux_32: + - -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_ppc64le: + - -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_aarch64: + - -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_s390x: + - -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_win_64: + - -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe + +FINAL_DEBUG_CXXFLAGS_linux_64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_CXXFLAGS_linux_32: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_linux_ppc64le: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_linux_aarch64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_linux_s390x: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_win_64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe + +FINAL_DEBUG_FFLAGS_linux_64: + - -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fimplicit-none -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_FFLAGS_linux_32: + - -fopenmp -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fimplicit-none -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_ppc64le: + - -fopenmp -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_aarch64: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_s390x: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_win_64: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe + +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_64: + - _sysconfigdata_x86_64_conda_cos6_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_32: + - _sysconfigdata_i686_conda_cos6_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_ppc64le: + - _sysconfigdata_powerpc64le_conda_cos7_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_aarch64: + - _sysconfigdata_aarch64_conda_cos7_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_s390x: + - _sysconfigdata_s390x_conda_linux_gnu diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-binutils.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-binutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..4136ca6c984deab7bd8037135d3b983f698b4347 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-binutils.sh @@ -0,0 +1,117 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-.' 'A-ZX__') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +# gold has not been (cannot be?) built for powerpc +if echo @CHOST@ | grep powerpc > /dev/null; then + GOLD_USED= +else + GOLD_USED=ld.gold +fi + +_tc_activation \ + deactivate @CHOST@- \ + addr2line ar as c++filt elfedit gprof ld ${GOLD_USED} nm objcopy objdump ranlib readelf size strings strip + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +#exit 1 +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-g++.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbb937d3cd45c864dbfb5dd4667d4c9a0db97581 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-g++.sh @@ -0,0 +1,123 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# When people are using conda-build, assume that adding rpath during build, and pointing at +# the host env's includes and libs is helpful default behavior +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CXXFLAGS_USED="@CXXFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CXXFLAGS_USED="@DEBUG_CXXFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" +else + CXXFLAGS_USED="@CXXFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CXXFLAGS_USED="@DEBUG_CXXFLAGS@ -isystem ${CONDA_PREFIX}/include" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_tc_activation \ + deactivate @CHOST@- \ + "CXX,${CONDA_PREFIX}/bin/@CXX@" @CXX_COMPILERS@ \ + "CXXFLAGS,${CXXFLAGS_USED}${CXXFLAGS:+ }${CXXFLAGS:-}" \ + "DEBUG_CXXFLAGS,${DEBUG_CXXFLAGS_USED}${DEBUG_CXXFLAGS:+ }${DEBUG_CXXFLAGS:-}" \ + "CXX_FOR_BUILD,${CONDA_PREFIX}/bin/@CXX_FOR_BUILD@" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +#exit 1 +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-gcc.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d5662feb8a180299ecff06ea39e403259d0bb81 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-gcc.sh @@ -0,0 +1,155 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CFLAGS_USED="@CFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CFLAGS_USED="@DEBUG_CFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + LDFLAGS_USED="@LDFLAGS@ -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib" + CPPFLAGS_USED="@CPPFLAGS@ -isystem ${PREFIX}/include" + DEBUG_CPPFLAGS_USED="@DEBUG_CPPFLAGS@ -isystem ${PREFIX}/include" + CMAKE_PREFIX_PATH_USED="${PREFIX}:${CONDA_PREFIX}/@CHOST@/sysroot/usr" +else + CFLAGS_USED="@CFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CFLAGS_USED="@DEBUG_CFLAGS@ -isystem ${CONDA_PREFIX}/include" + CPPFLAGS_USED="@CPPFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CPPFLAGS_USED="@DEBUG_CPPFLAGS@ -isystem ${CONDA_PREFIX}/include" + LDFLAGS_USED="@LDFLAGS@ -Wl,-rpath,${CONDA_PREFIX}/lib -Wl,-rpath-link,${CONDA_PREFIX}/lib -L${CONDA_PREFIX}/lib" + CMAKE_PREFIX_PATH_USED="${CONDA_PREFIX}:${CONDA_PREFIX}/@CHOST@/sysroot/usr" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +# shellcheck disable=SC2050 # templating will fix this error +if [ "@CONDA_BUILD_CROSS_COMPILATION@" = "1" ]; then +_tc_activation \ + deactivate @CHOST@- \ + "QEMU_LD_PREFIX,${QEMU_LD_PREFIX:-${CONDA_BUILD_SYSROOT}}" +fi + +_tc_activation \ + deactivate @CHOST@- "HOST,@CHOST@" "BUILD,@CBUILD@" \ + "CONDA_TOOLCHAIN_HOST,@CHOST@" \ + "CONDA_TOOLCHAIN_BUILD,@CBUILD@" \ + "CC,${CONDA_PREFIX}/bin/@CC@" @COMPILERS@ \ + "CPPFLAGS,${CPPFLAGS_USED}${CPPFLAGS:+ }${CPPFLAGS:-}" \ + "CFLAGS,${CFLAGS_USED}${CFLAGS:+ }${CFLAGS:-}" \ + "LDFLAGS,${LDFLAGS_USED}${LDFLAGS:+ }${LDFLAGS:-}" \ + "DEBUG_CPPFLAGS,${DEBUG_CPPFLAGS_USED}${DEBUG_CPPFLAGS:+ }${DEBUG_CPPFLAGS:-}" \ + "DEBUG_CFLAGS,${DEBUG_CFLAGS_USED}${DEBUG_CFLAGS:+ }${DEBUG_CFLAGS:-}" \ + "CMAKE_PREFIX_PATH,${CMAKE_PREFIX_PATH_USED}" \ + "_CONDA_PYTHON_SYSCONFIGDATA_NAME,${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" \ + "CONDA_BUILD_SYSROOT,${CONDA_PREFIX}/@CHOST@/sysroot" \ + "CONDA_BUILD_CROSS_COMPILATION,@CONDA_BUILD_CROSS_COMPILATION@" \ + "CC_FOR_BUILD,${CONDA_PREFIX}/bin/@CC_FOR_BUILD@" \ + "build_alias,@CBUILD@" \ + "host_alias,@CHOST@" \ + "MESON_ARGS,${_MESON_ARGS:-}" \ + "CMAKE_ARGS,${_CMAKE_ARGS:-}" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi + + # unfix prompt for zsh + if [ -n "${ZSH_NAME:-}" ]; then + # we use eval here to avoid non-POSIX shells trying to parse the ZSH syntax + eval "precmd_functions=(\${precmd_functions:#_conda_clang_precmd})" + eval "preexec_functions=(\${preexec_functions:#_conda_clang_preexec})" + fi +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-gfortran.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-gfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..48867e9f498856dc71c6af3eecb56be1b7876772 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/deactivate-gfortran.sh @@ -0,0 +1,129 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# When people are using conda-build, assume that adding rpath during build, and pointing at +# the host env's includes and libs is helpful default behavior +if [ "${CONDA_BUILD:-0}" = "1" ]; then + FFLAGS_USED="@FFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" +else + FFLAGS_USED="@FFLAGS@ -isystem ${CONDA_PREFIX}/include" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_tc_activation \ + deactivate @CHOST@- \ + gfortran f95 \ + "FC_FOR_BUILD,${CONDA_PREFIX}/bin/@CBUILD@-gfortran" \ + "FFLAGS,${FFLAGS_USED}${FFLAGS:+ }${FFLAGS:-}" \ + "FORTRANFLAGS,${FFLAGS_USED}${FORTRANFLAGS:+ }${FORTRANFLAGS:-}" \ + "DEBUG_FFLAGS,${FFLAGS_USED} @DEBUG_FFLAGS@${FFLAGS:+ }${FFLAGS:-}" \ + "DEBUG_FORTRANFLAGS,${FFLAGS_USED} @DEBUG_FFLAGS@${FORTRANFLAGS:+ }${FORTRANFLAGS:-}" \ + +# extra ones - have a dependency on the previous ones, so done after. +_tc_activation \ + deactivate @CHOST@- \ + "FC,${FC:-${GFORTRAN}}" \ + "F77,${F77:-${GFORTRAN}}" \ + "F90,${F90:-${GFORTRAN}}" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/get_cpu_arch.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/get_cpu_arch.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbcdcaee1e7922161517027d96ad6a339a5549bb --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/get_cpu_arch.sh @@ -0,0 +1,29 @@ +get_triplet() { + local CPU_ARCH + if [[ "$1" == *"-64" ]]; then + CPU_ARCH="x86_64" + elif [[ "$1" == *"-ppc64le" ]]; then + CPU_ARCH="powerpc64le" + elif [[ "$1" == *"-aarch64" ]]; then + CPU_ARCH="aarch64" + elif [[ "$1" == *"-s390x" ]]; then + CPU_ARCH="s390x" + elif [[ "$1" == *"-arm64" ]]; then + CPU_ARCH="arm64" + else + echo "Unknown architecture" + exit 1 + fi + if [[ "$1" == "linux-"* ]]; then + echo $CPU_ARCH-conda-linux-gnu + elif [[ "$1" == "osx-64" ]]; then + echo x86_64-apple-darwin13.4.0 + elif [[ "$1" == "osx-arm64" ]]; then + echo arm64-apple-darwin20.0.0 + elif [[ "$1" == "win-64" ]]; then + echo x86_64-w64-mingw32 + fi +} + +export CBUILD="$(get_triplet $target_platform)" +export CHOST="$(get_triplet $cross_target_platform)" diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-binutils.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-binutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f4e45cf05d626db17d80661c29a6fc24573e23f --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-binutils.sh @@ -0,0 +1,3 @@ +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-binutils.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-binutils.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-clang++.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-clang++.sh new file mode 100644 index 0000000000000000000000000000000000000000..437d6f6ab734eb94b8909eeceaeee01e8974b235 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-clang++.sh @@ -0,0 +1,14 @@ +source $RECIPE_DIR/get_cpu_arch.sh + +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-clang++.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-clang++.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh + +if [[ "$target_platform" != "$cross_target_platform" ]]; then + # Set clang++ symlink with target + mkdir -p ${PREFIX}/bin + ln -sf ${PREFIX}/bin/clang++ ${PREFIX}/bin/${CHOST}-clang++ + # Set sysroot. The other option is to use `CONDA_BUILD_SYSROOT` env variable + # but this is better than using an env variable. + echo "--sysroot ${PREFIX}/${CHOST}/sysroot" >> ${PREFIX}/bin/${CHOST}-clang++.cfg +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-clang.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-clang.sh new file mode 100644 index 0000000000000000000000000000000000000000..16696ec1266ff2d6187a80a4d92a489011dafdcc --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-clang.sh @@ -0,0 +1,15 @@ +source $RECIPE_DIR/get_cpu_arch.sh + +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-clang.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-clang.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh + +if [[ "$target_platform" != "$cross_target_platform" ]]; then + # Set clang symlink with target + mkdir -p ${PREFIX}/bin + ln -sf ${PREFIX}/bin/clang ${PREFIX}/bin/${CHOST}-clang + # Set sysroot. The other option is to use `CONDA_BUILD_SYSROOT` env variable + # but this is better than using an env variable. + echo "--sysroot ${PREFIX}/${CHOST}/sysroot" >> ${PREFIX}/bin/${CHOST}-clang.cfg +fi + diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-g++.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..67fd8dea523442706ff8c679d1f1793072b060e0 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-g++.sh @@ -0,0 +1,3 @@ +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-g++.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-g++.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-gcc.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9855caaaeddc9f6fa4623d942bf7b6b696a77ff4 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-gcc.sh @@ -0,0 +1,3 @@ +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-gcc.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-gcc.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-gfortran.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-gfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..e02015622243d4d4c17f491d9e8056baaad53297 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-gfortran.sh @@ -0,0 +1,3 @@ +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-gfortran.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-gfortran.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-symlinks.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-symlinks.sh new file mode 100644 index 0000000000000000000000000000000000000000..38d962e32863cd7308c96acf83c5c05ed6b78e23 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/install-symlinks.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +source ${RECIPE_DIR}/get_cpu_arch.sh + +if [[ "${PKG_NAME}" == "gcc" ]]; then + for tool in cc cpp gcc gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -sf ${PREFIX}/bin/${CHOST}-${tool} ${PREFIX}/bin/${tool} + done +elif [[ "${PKG_NAME}" == "gxx" ]]; then + ln -sf ${PREFIX}/bin/${CHOST}-g++ ${PREFIX}/bin/g++ + ln -sf ${PREFIX}/bin/${CHOST}-c++ ${PREFIX}/bin/c++ +elif [[ "${PKG_NAME}" == "gfortran" ]]; then + ln -sf ${PREFIX}/bin/${CHOST}-gfortran ${PREFIX}/bin/gfortran +fi diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/meta.yaml b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1a4be41c8d7a1ffe8fb9da200db3fad732f8fc7a --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/meta.yaml @@ -0,0 +1,278 @@ +{% set build_num = 4 %} +{% set gcc_major = 13 if gcc_version is undefined else gcc_version.split(".")[0] %} +# generally, the runtime version of libstdcxx needs to be at least as high +# as the compiler; however, wherever libstdcxx changes the default ABI version +# of a symbol, we need to ensure at least that version at runtime also for +# packages built with older compilers (because that build environment will +# pull in the newest libstdcxx, and then depend on that new symbol version). +# C.f. https://johannst.github.io/notes/development/symbolver.html resp. +# check if some symbol changed ABI (and thus got reversioned) at the bottom of +# https://gcc.gnu.org/onlinedocs/libstdc++/manual/api.html +# In this case, libstdcxx last changed the default version of an ELF symbol +# in v12, therefore this is the lowest we can go for GCC <=12, see #97 or +# https://github.com/gcc-mirror/gcc/commit/9e18a25331fa25c3907249fede65a02c6817b06e +{% set last_symbol_bump = 12 %} +{% set min_runtime_version = gcc_major if gcc_major|int > last_symbol_bump else last_symbol_bump %} + +package: + name: ctng-compiler-activation + version: {{ gcc_version }} + +source: + path: . + +build: + number: {{ build_num }} + skip: true # [win or (cross_target_platform == "win-64" and int(gcc_major) < 13)] + +requirements: + build: + - shellcheck # [not (aarch64 or ppc64le)] + +outputs: + - name: gcc_{{ cross_target_platform }} + build: + skip: true # [not linux] + run_exports: + strong: + - libgcc-ng >={{ min_runtime_version }} + script: install-gcc.sh + requirements: + run: + - gcc_impl_{{ target_platform }} {{ gcc_version }}.* + - gcc_impl_{{ cross_target_platform }} {{ gcc_version }}.* + # for activation of binutils env vars + - {{ pin_subpackage("binutils_" ~ cross_target_platform, exact=True) }} + - {{ c_stdlib }}_{{ target_platform }} # [linux] + - {{ cross_stdlib }}_{{ cross_target_platform }} + test: + requires: + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + files: + - tests + commands: + - echo {{ linux_machine }} + - ${CC} ${CFLAGS} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v + - ${CC} ${LDFLAGS} c_aligned.o -o c_aligned # [target_platform == cross_target_platform] + - ./c_aligned # [target_platform == cross_target_platform] + # CONDA_BUILD_SYSROOT is defined for clang++ to find correct C++ headers, see issue 8 + - test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" && exit 1 + - test -d ${CONDA_BUILD_SYSROOT} || exit 1 + about: + summary: GNU C Compiler (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: clang_{{ cross_target_platform }} + version: {{ clang_version }} + script: install-clang.sh + build: + skip: true # [win or s390x or cross_target_platform == "linux-s390x"] + run_exports: + strong: + - libgcc-ng >={{ min_runtime_version }} + requirements: + run: + - libgcc-devel_{{ cross_target_platform }} {{ gcc_version }}.* + # for activation of binutils env vars + - {{ pin_subpackage("binutils_" ~ cross_target_platform, exact=True) }} + - {{ cross_stdlib }}_{{ cross_target_platform }} + - compiler-rt_{{ cross_target_platform }} + - compiler-rt =={{ clang_version }}.* + - clang_impl_{{ target_platform }} {{ clang_version }} # [osx] + test: + requires: + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + files: + - tests + commands: + - echo {{ linux_machine }} + - ${CC} ${CFLAGS} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v + - ${CC} ${LDFLAGS} c_aligned.o -o c_aligned # [target_platform == cross_target_platform] + - ./c_aligned # [target_platform == cross_target_platform] + # CONDA_BUILD_SYSROOT is defined for clang++ to find correct C++ headers, see issue 8 + - test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" && exit 1 + - test -d ${CONDA_BUILD_SYSROOT} || exit 1 + about: + summary: Clang Compiler (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: gxx_{{ cross_target_platform }} + script: install-g++.sh + build: + skip: true # [not linux] + run_exports: + strong: + # This should be a transitive dependency, but conda-build doesn't support those + - libstdcxx-ng >={{ min_runtime_version }} + # Because transitive run_exports do not work: + - libgcc-ng >={{ min_runtime_version }} + requirements: + run: + - gxx_impl_{{ target_platform }} {{ gcc_version }}.* + - gxx_impl_{{ cross_target_platform }} {{ gcc_version }}.* + # for activation of gcc env vars + - {{ pin_subpackage("gcc_" ~ cross_target_platform, exact=True) }} + # for activation of binutils env vars + - {{ pin_subpackage("binutils_" ~ cross_target_platform, exact=True) }} + - {{ cross_stdlib }}_{{ cross_target_platform }} + test: + requires: + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + files: + - tests + commands: + - ${CXX} ${CXXFLAGS} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o + - ${CXX} ${LDFLAGS} cpp_aligned.o -o cpp_aligned # [target_platform == cross_target_platform] + - ./cpp_aligned # [target_platform == cross_target_platform] + - test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" && exit 1 + - test -d ${CONDA_BUILD_SYSROOT} || exit 1 + about: + summary: GNU C++ Compiler (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: clangxx_{{ cross_target_platform }} + version: {{ clang_version }} + script: install-clang++.sh + build: + skip: true # [win or s390x or cross_target_platform == "linux-s390x"] + run_exports: + strong: + # This should be a transitive dependency, but conda-build doesn't support those + - libstdcxx-ng >={{ min_runtime_version }} + # Because transitive run_exports do not work: + - libgcc-ng >={{ min_runtime_version }} + requirements: + run: + - libgcc-devel_{{ cross_target_platform }} {{ gcc_version }}.* + # C++ compiler on linux needs a stdlib + - libstdcxx-devel_{{ cross_target_platform }} {{ gcc_version }}.* + # for activation of gcc env vars + - {{ pin_subpackage("clang_" ~ cross_target_platform, exact=True) }} + # for activation of binutils env vars + - {{ pin_subpackage("binutils_" ~ cross_target_platform, exact=True) }} + - {{ cross_stdlib }}_{{ cross_target_platform }} + - compiler-rt_{{ cross_target_platform }} + - compiler-rt =={{ clang_version }}.* + - clangxx_impl_{{ target_platform }} {{ clang_version }} # [osx] + test: + requires: + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + files: + - tests + commands: + - ${CXX} ${CXXFLAGS} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o + - ${CXX} ${LDFLAGS} cpp_aligned.o -o cpp_aligned # [target_platform == cross_target_platform] + - ./cpp_aligned # [target_platform == cross_target_platform] + - test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" && exit 1 + - test -d ${CONDA_BUILD_SYSROOT} || exit 1 + about: + summary: Clang C++ Compiler (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: gfortran_{{ cross_target_platform }} + script: install-gfortran.sh + build: + skip: true # [not linux] + run_exports: + strong: + - libgfortran{{ libgfortran_soname }} >={{ gcc_version }} + - libgfortran-ng + # Because transitive run_exports do not work: + - libgcc-ng >={{ min_runtime_version }} + requirements: + host: + # So that pin_compatible has something to work with: + - libgfortran{{ libgfortran_soname }} {{ gcc_version }}.* + - libgfortran-ng {{ gcc_version }}.* + run: + - gfortran_impl_{{ cross_target_platform }} {{ gcc_version }}.* + - gfortran_impl_{{ target_platform }} {{ gcc_version }}.* + # for activation of gcc env vars: + - {{ pin_subpackage("gcc_" ~ cross_target_platform, exact=True) }} + # for activation of binutils env vars: + - {{ pin_subpackage("binutils_" ~ cross_target_platform, exact=True) }} + - {{ cross_stdlib }}_{{ cross_target_platform }} + test: + requires: + - cmake >=3.11 # [x86_64 or aarch64 or ppc64le] + - make # [x86_64 or aarch64 or ppc64le] + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + commands: + - ${FC} --version + - pushd tests/fortomp + - sh test_fort.sh # [target_platform == cross_target_platform and (x86_64 or aarch64 or ppc64le)] + files: + - tests/fortomp/* + about: + summary: GNU Fortran Compiler (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: binutils_{{ cross_target_platform }} + version: "{{ binutils_version }}" + script: install-binutils.sh + requirements: + run: + - binutils_impl_{{ cross_target_platform }} {{ binutils_version }}.* + - {{ c_stdlib }}_{{ target_platform }} # [linux] + - {{ cross_stdlib }}_{{ cross_target_platform }} + test: + requires: + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + commands: + - test -f $LD + about: + summary: The GNU Binutils are a collection of binary tools (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: gcc_bootstrap_{{ cross_target_platform }} + version: "{{ gcc_version }}" + build: + skip: true # [not linux] + binary_relocation: false + detect_binary_files_with_prefix: false + always_include_files: + - bin/ + - etc/ + - lib64/ + - lib/ + - libexec/ + - share/ + - {{ triplet }}/ + requirements: + host: + - binutils_impl_{{ cross_target_platform }} {{ binutils_version }}.* + - gfortran_impl_{{ cross_target_platform }} {{ gcc_version }}.* + - gxx_impl_{{ cross_target_platform }} {{ gcc_version }}.* + - gcc_impl_{{ cross_target_platform }} {{ gcc_version }}.* + test: + commands: + - test -f $PREFIX/bin/{{ triplet }}-cc # [cross_target_platform != "win-64"] + - test -f $PREFIX/bin/{{ triplet }}-gcc.exe # [cross_target_platform == "win-64"] + about: + summary: GCC bootstrap compilers for building deps + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: GPL + license_file: GPL_LICENSE + +about: + summary: Activation scripts for gcc, g++, gfortran and binutils + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + +extra: + recipe-maintainers: + - isuruf + - beckermr diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/recipe-scripts-license.txt b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..2ec51d75f362bc4327a3cfe1c515c16bb3c57367 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/recipe-scripts-license.txt @@ -0,0 +1,27 @@ +BSD-3-Clause license +Copyright (c) 2015-2022, conda-forge contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/aligned_alloc.c b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/aligned_alloc.c new file mode 100644 index 0000000000000000000000000000000000000000..287be94c7340a134a5d9a56ddc0f6c20acc0af74 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/aligned_alloc.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) +{ + int *p2 = (int*)aligned_alloc(1024, 1024*sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); +} diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/aligned_alloc.cpp b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/aligned_alloc.cpp new file mode 100644 index 0000000000000000000000000000000000000000..ca9664fe6233b2b54bf0ccb196ce2e246248b9b8 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/aligned_alloc.cpp @@ -0,0 +1,17 @@ +#include +#include +#include + +int main(void) +{ + /// int *p2 = (int*)memalign(1024, 1024 * sizeof *p2); + int *p2; + int err = posix_memalign((void**)&p2, 1024, sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); + p2 = (int*)std::aligned_alloc(1024, 1); + printf("1024-byte aligned addr: %p\n", (void*)p2); + std::free(p2); + p2 = (int*)aligned_alloc(1024, 1024); + printf("1024-byte aligned addr: %p\n", (void*)p2); +} diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/fortomp/CMakeLists.txt b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/fortomp/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..491a48b42cb3ddfef5f8541f8db848e0ba844f84 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/fortomp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.3 FATAL_ERROR) +project(fortomp + LANGUAGES Fortran) + +find_package(OpenMP REQUIRED) diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/fortomp/test_fort.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/fortomp/test_fort.sh new file mode 100644 index 0000000000000000000000000000000000000000..03332d136fc955c95ec42ce7185f824f8dd92a07 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/recipe/parent/tests/fortomp/test_fort.sh @@ -0,0 +1,8 @@ +cmake \ + -H${SRC_DIR} \ + -Bbuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_Fortran_COMPILER=${GFORTRAN} \ + -DCMAKE_Fortran_FLAGS="${FFLAGS}" \ + . diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/repodata_record.json b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..8b629e6eb7b7af6b21b5dc21f9e9504c460299c8 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/repodata_record.json @@ -0,0 +1,23 @@ +{ + "name": "gcc_linux-64", + "version": "11.4.0", + "build": "ha077dfb_4", + "build_number": 4, + "channel": "https://conda.anaconda.org/conda-forge/linux-64", + "subdir": "linux-64", + "fn": "gcc_linux-64-11.4.0-ha077dfb_4.conda", + "md5": "4486720bf24fecb4a21ab3840433411f", + "url": "https://conda.anaconda.org/conda-forge/linux-64/gcc_linux-64-11.4.0-ha077dfb_4.conda", + "sha256": "31bbd2d6d89ba6b371a341ff0abe3ad86b40652c86420d74bc8a44feb47323f7", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "binutils_linux-64 2.40 hb3c18ed_4", + "gcc_impl_linux-64 11.4.0.*", + "sysroot_linux-64" + ], + "constrains": [], + "license": "BSD-3-Clause", + "timestamp": 1717999560000, + "size": 31262 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/run_exports.json b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..189d017c6403d20b70ca120b6fa13d6f06428f2b --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/run_exports.json @@ -0,0 +1 @@ +{"strong": ["libgcc-ng >=12"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/run_test.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a5c23cf853cf251fad1a8c4b536244b34efbd1e --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/run_test.sh @@ -0,0 +1,13 @@ + + +set -ex + + + +echo x86_64 +${CC} ${CFLAGS} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v +${CC} ${LDFLAGS} c_aligned.o -o c_aligned +./c_aligned +test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" && exit 1 +test -d ${CONDA_BUILD_SYSROOT} || exit 1 +exit 0 diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/test_time_dependencies.json b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/test_time_dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..0e9f7944be5e9944a807348d3258dba343d36505 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/test_time_dependencies.json @@ -0,0 +1 @@ +["sysroot_linux-64 2.12.*"] \ No newline at end of file diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/aligned_alloc.c b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/aligned_alloc.c new file mode 100644 index 0000000000000000000000000000000000000000..287be94c7340a134a5d9a56ddc0f6c20acc0af74 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/aligned_alloc.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) +{ + int *p2 = (int*)aligned_alloc(1024, 1024*sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); +} diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/aligned_alloc.cpp b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/aligned_alloc.cpp new file mode 100644 index 0000000000000000000000000000000000000000..ca9664fe6233b2b54bf0ccb196ce2e246248b9b8 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/aligned_alloc.cpp @@ -0,0 +1,17 @@ +#include +#include +#include + +int main(void) +{ + /// int *p2 = (int*)memalign(1024, 1024 * sizeof *p2); + int *p2; + int err = posix_memalign((void**)&p2, 1024, sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); + p2 = (int*)std::aligned_alloc(1024, 1); + printf("1024-byte aligned addr: %p\n", (void*)p2); + std::free(p2); + p2 = (int*)aligned_alloc(1024, 1024); + printf("1024-byte aligned addr: %p\n", (void*)p2); +} diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/fortomp/CMakeLists.txt b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/fortomp/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..491a48b42cb3ddfef5f8541f8db848e0ba844f84 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/fortomp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.3 FATAL_ERROR) +project(fortomp + LANGUAGES Fortran) + +find_package(OpenMP REQUIRED) diff --git a/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/fortomp/test_fort.sh b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/fortomp/test_fort.sh new file mode 100644 index 0000000000000000000000000000000000000000..03332d136fc955c95ec42ce7185f824f8dd92a07 --- /dev/null +++ b/data/miniconda3/pkgs/gcc_linux-64-11.4.0-ha077dfb_4/info/test/tests/fortomp/test_fort.sh @@ -0,0 +1,8 @@ +cmake \ + -H${SRC_DIR} \ + -Bbuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_Fortran_COMPILER=${GFORTRAN} \ + -DCMAKE_Fortran_FLAGS="${FFLAGS}" \ + . diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/about.json b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..b71eb781be81143c8c556fd914c7b5f26c518193 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/about.json @@ -0,0 +1,200 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge/label/sysroot-with-crypt", + "https://conda.anaconda.org/conda-forge" + ], + "conda_build_version": "24.5.2.dev35", + "conda_version": "24.5.0", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "feedstock-name": "ctng-compilers-feedstock", + "final": true, + "flow_run_id": "azure_20240623.2.1", + "parent_recipe": { + "name": "gcc_compilers", + "path": "/home/conda/recipe_root", + "version": "11.4.0" + }, + "recipe-maintainers": [ + "timsnyder", + "xhochy", + "isuruf", + "beckermr" + ], + "remote_url": "https://github.com/conda-forge/ctng-compilers-feedstock", + "sha": "65d04ebbfb4ff200a87ef5ed03b83e3bdbf5f31f" + }, + "home": "https://gcc.gnu.org/", + "identifiers": [], + "keywords": [], + "license": "GPL-3.0-only WITH GCC-exception-3.1", + "root_pkgs": [ + "conda 24.5.0 py310hff52083_0", + "certifi 2024.6.2 pyhd8ed1ab_0", + "markupsafe 2.1.5 py310h2372a71_0", + "conda-pack 0.7.1 pyhd8ed1ab_0", + "click 8.1.7 unix_pyh707e725_0", + "libexpat 2.6.2 h59595ed_0", + "freetype 2.12.1 h267a509_2", + "c-ares 1.28.1 hd590300_0", + "setuptools 70.1.0 pyhd8ed1ab_0", + "zstd 1.5.6 ha6fb4c9_0", + "jsonpatch 1.33 pyhd8ed1ab_0", + "_openmp_mutex 4.5 2_gnu", + "pysocks 1.7.1 pyha2e5f31_6", + "libwebp-base 1.4.0 hd590300_0", + "py-lief 0.14.1 py310h76e45a6_1", + "tini 0.19.0 h166bdaf_1", + "psutil 5.9.8 py310h2372a71_0", + "brotli-python 1.1.0 py310hc6cd4ac_1", + "pyyaml 6.0.1 py310h2372a71_1", + "soupsieve 2.5 pyhd8ed1ab_1", + "platformdirs 4.2.2 pyhd8ed1ab_0", + "libarchive 3.7.4 hfca40fe_0", + "patch 2.7.6 h7f98852_1002", + "icu 73.2 h59595ed_0", + "pip 24.0 pyhd8ed1ab_0", + "boltons 24.0.0 pyhd8ed1ab_0", + "krb5 1.21.2 h659d440_0", + "cryptography 42.0.8 py310hb1bd9d3_0", + "tzdata 2024a h0c530f3_0", + "packaging 24.1 pyhd8ed1ab_0", + "lzo 2.10 hd590300_1001", + "jinja2 3.1.4 pyhd8ed1ab_0", + "jupyter_core 5.7.2 py310hff52083_0", + "pycparser 2.22 pyhd8ed1ab_0", + "ca-certificates 2024.6.2 hbcca054_0", + "libcurl 8.8.0 hca28451_0", + "libjpeg-turbo 3.0.0 hd590300_1", + "more-itertools 10.3.0 pyhd8ed1ab_0", + "wheel 0.43.0 pyhd8ed1ab_1", + "python-libarchive-c 5.1 py310hff52083_0", + "ruamel.yaml 0.18.6 py310h2372a71_0", + "xorg-libxdmcp 1.1.3 h7f98852_0", + "referencing 0.35.1 pyhd8ed1ab_0", + "yaml-cpp 0.8.0 h59595ed_0", + "libssh2 1.11.0 h0841786_0", + "libsolv 0.7.29 ha6fb4c9_0", + "six 1.16.0 pyh6c4a22f_0", + "libxml2 2.12.7 hc051c1a_1", + "tk 8.6.13 noxft_h4845f30_101", + "conda-package-handling 2.3.0 pyh7900ff3_0", + "xz 5.2.6 h166bdaf_0", + "patchelf 0.17.2 h58526e2_0", + "ncurses 6.5 h59595ed_0", + "pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1", + "jsonschema-specifications 2023.12.1 pyhd8ed1ab_0", + "anaconda-project 0.11.1 pyhd8ed1ab_0", + "menuinst 2.1.1 py310hff52083_0", + "reproc 14.2.4.post0 hd590300_1", + "pillow 10.3.0 py310hebfe307_1", + "pyopenssl 24.0.0 pyhd8ed1ab_0", + "frozendict 2.4.4 py310hc51659f_0", + "conda-index 0.5.0 pyhd8ed1ab_0", + "conda-package-streaming 0.10.0 pyhd8ed1ab_0", + "ruamel.yaml.clib 0.2.8 py310h2372a71_0", + "filelock 3.15.4 pyhd8ed1ab_0", + "pthread-stubs 0.4 h36c2ea0_1001", + "ld_impl_linux-64 2.40 hf3520f5_7", + "anaconda-client 1.12.3 pyhd8ed1ab_0", + "keyutils 1.6.1 h166bdaf_0", + "readline 8.2 h8228510_1", + "cffi 1.16.0 py310h2fee648_0", + "yaml 0.2.5 h7f98852_2", + "libev 4.33 hd590300_2", + "openssl 3.3.1 h4ab18f5_0", + "traitlets 5.14.3 pyhd8ed1ab_0", + "distro 1.9.0 pyhd8ed1ab_0", + "libdeflate 1.20 hd590300_0", + "nbformat 5.10.4 pyhd8ed1ab_0", + "chardet 5.2.0 py310hff52083_1", + "libuuid 2.38.1 h0b41bf4_0", + "pybind11-abi 4 hd8ed1ab_3", + "reproc-cpp 14.2.4.post0 h59595ed_1", + "conda-libmamba-solver 24.1.0 pyhd8ed1ab_0", + "libnghttp2 1.58.0 h47da74e_1", + "charset-normalizer 3.3.2 pyhd8ed1ab_0", + "libedit 3.1.20191231 he28a2e2_2", + "archspec 0.2.3 pyhd8ed1ab_0", + "zstandard 0.22.0 py310hab88d88_1", + "libtiff 4.6.0 h1dd3fc0_3", + "idna 3.7 pyhd8ed1ab_0", + "xorg-libxau 1.0.11 hd590300_0", + "beautifulsoup4 4.12.3 pyha770c72_0", + "libiconv 1.17 hd590300_2", + "ripgrep 14.1.0 he8a937b_0", + "openjpeg 2.5.2 h488ebb8_0", + "libmamba 1.5.8 had39da4_0", + "libgcc-ng 13.2.0 h77fa898_12", + "requests 2.32.3 pyhd8ed1ab_0", + "lcms2 2.16 hb7c19ff_0", + "libsqlite 3.46.0 hde9e2c9_0", + "liblief 0.14.1 hac33072_1", + "jsonpointer 3.0.0 py310hff52083_0", + "mamba 1.5.8 py310h51d5547_0", + "toolz 0.12.1 pyhd8ed1ab_0", + "rpds-py 0.18.1 py310he421c4c_0", + "importlib_resources 6.4.0 pyhd8ed1ab_0", + "lz4-c 1.9.4 hcb278e6_0", + "libffi 3.4.2 h7f98852_5", + "libstdcxx-ng 13.2.0 hc0a3c3a_12", + "libxcb 1.16 hd590300_0", + "bzip2 1.0.8 hd590300_5", + "tqdm 4.66.4 pyhd8ed1ab_0", + "pcre2 10.44 h0f59acf_0", + "su-exec 0.2 h166bdaf_1003", + "tomli 2.0.1 pyhd8ed1ab_0", + "truststore 0.8.0 pyhd8ed1ab_0", + "requests-toolbelt 1.0.0 pyhd8ed1ab_0", + "defusedxml 0.7.1 pyhd8ed1ab_0", + "jsonschema 4.22.0 pyhd8ed1ab_0", + "attrs 23.2.0 pyh71513ae_0", + "urllib3 2.2.2 pyhd8ed1ab_0", + "libnsl 2.0.1 hd590300_0", + "zipp 3.19.2 pyhd8ed1ab_0", + "tornado 6.4.1 py310hc51659f_0", + "pycosat 0.6.6 py310h2372a71_0", + "pkginfo 1.11.1 pyhd8ed1ab_0", + "python 3.10.14 hd12c33a_0_cpython", + "libzlib 1.3.1 h4ab18f5_1", + "libgomp 13.2.0 h77fa898_12", + "_libgcc_mutex 0.1 conda_forge", + "perl 5.32.1 7_hd590300_perl5", + "pytz 2024.1 pyhd8ed1ab_0", + "python-dateutil 2.9.0 pyhd8ed1ab_0", + "colorama 0.4.6 pyhd8ed1ab_0", + "libxcrypt 4.4.36 hd590300_1", + "python-fastjsonschema 2.20.0 pyhd8ed1ab_0", + "ruamel_yaml 0.15.80 py310h2372a71_1009", + "lerc 4.0.0 h27087fc_0", + "pluggy 1.5.0 pyhd8ed1ab_0", + "libpng 1.6.43 h2797004_0", + "fmt 10.2.1 h00ab1b0_0", + "python_abi 3.10 4_cp310", + "libmambapy 1.5.8 py310h39ff949_0", + "git 2.45.2 pl5321ha099dd3_1", + "conda-build 24.5.1 py310hff52083_0", + "exceptiongroup 1.2.0 pyhd8ed1ab_2", + "pytest 8.2.2 pyhd8ed1ab_0", + "rattler-build-conda-compat 0.0.6 pyh267e887_0", + "conda-env 2.6.0 1", + "typing_extensions 4.12.2 pyha770c72_0", + "wrapt 1.16.0 py310h2372a71_0", + "conda-forge-metadata 0.8.1 pyhd8ed1ab_0", + "deprecated 1.2.14 pyh1a96a4e_0", + "iniconfig 2.0.0 pyhd8ed1ab_0", + "typing-extensions 4.12.2 hd8ed1ab_0", + "jq 1.7.1 hd590300_0", + "shyaml 0.6.2 pyhd3deb0d_0", + "rattler-build 0.18.0 h72610f6_0", + "conda-forge-ci-setup 4.7.0 py310h7a2d8a0_100", + "conda-oci-mirror 0.1.0 pyhd8ed1ab_0", + "oniguruma 6.9.9 hd590300_0", + "oras-py 0.1.14 pyhd8ed1ab_0" + ], + "summary": "GNU C++ Compiler", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/files b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/files new file mode 100644 index 0000000000000000000000000000000000000000..9348203a83e64e4d210f5d5fdf0e2d993932ea8d --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/files @@ -0,0 +1,10 @@ +bin/x86_64-conda-linux-gnu-c++ +bin/x86_64-conda-linux-gnu-g++ +bin/x86_64-conda_cos6-linux-gnu-c++ +bin/x86_64-conda_cos6-linux-gnu-g++ +lib/-gdb.py +libexec/gcc/x86_64-conda-linux-gnu/11.4.0/cc1plus +share/gcc-11.4.0/python/libstdcxx/__init__.py +share/gcc-11.4.0/python/libstdcxx/v6/__init__.py +share/gcc-11.4.0/python/libstdcxx/v6/printers.py +share/gcc-11.4.0/python/libstdcxx/v6/xmethods.py diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/git b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/has_prefix b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/has_prefix new file mode 100644 index 0000000000000000000000000000000000000000..d554f38ff79f735c5bb8b37bd4cffe1e1c56cdd0 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/has_prefix @@ -0,0 +1 @@ +/home/conda/feedstock_root/build_artifacts/gcc_compilers_1719176526088/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho text lib/-gdb.py diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/hash_input.json b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..2e8ff57cd9042401831028e2ae846483911d2ace --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/hash_input.json @@ -0,0 +1,10 @@ +{ + "triplet": "x86_64-conda-linux-gnu", + "cross_target_platform": "linux-64", + "channel_targets": "conda-forge main", + "target_platform": "linux-64", + "cross_target_stdlib": "sysroot", + "gcc_version": "11.4.0", + "cross_target_stdlib_version": "2.12", + "old_triplet": "x86_64-conda_cos6-linux-gnu" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/index.json b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..2290611c56661581cf2e9f0a0cf548ee664b546f --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/index.json @@ -0,0 +1,16 @@ +{ + "arch": "x86_64", + "build": "h634f3ee_13", + "build_number": 13, + "depends": [ + "gcc_impl_linux-64 11.4.0 h00c12a0_13", + "libstdcxx-devel_linux-64 11.4.0 h8f596e0_113", + "sysroot_linux-64" + ], + "license": "GPL-3.0-only WITH GCC-exception-3.1", + "name": "gxx_impl_linux-64", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1719178592572, + "version": "11.4.0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/paths.json b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..255a941921d86bb21c1caae923304bec7883e756 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/paths.json @@ -0,0 +1,67 @@ +{ + "paths": [ + { + "_path": "bin/x86_64-conda-linux-gnu-c++", + "path_type": "hardlink", + "sha256": "5c339ad9764c8e2b3bd131056d0bff96191d63df83b0c6af2eee8930df63d697", + "size_in_bytes": 1268248 + }, + { + "_path": "bin/x86_64-conda-linux-gnu-g++", + "path_type": "hardlink", + "sha256": "5c339ad9764c8e2b3bd131056d0bff96191d63df83b0c6af2eee8930df63d697", + "size_in_bytes": 1268248 + }, + { + "_path": "bin/x86_64-conda_cos6-linux-gnu-c++", + "path_type": "softlink", + "sha256": "5c339ad9764c8e2b3bd131056d0bff96191d63df83b0c6af2eee8930df63d697", + "size_in_bytes": 1268248 + }, + { + "_path": "bin/x86_64-conda_cos6-linux-gnu-g++", + "path_type": "softlink", + "sha256": "5c339ad9764c8e2b3bd131056d0bff96191d63df83b0c6af2eee8930df63d697", + "size_in_bytes": 1268248 + }, + { + "_path": "lib/-gdb.py", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/conda/feedstock_root/build_artifacts/gcc_compilers_1719176526088/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho", + "sha256": "a57e18eab7e6a3dbdd8b065dc6bd7162270fa7570a44cabbe58f23723c6477f6", + "size_in_bytes": 2886 + }, + { + "_path": "libexec/gcc/x86_64-conda-linux-gnu/11.4.0/cc1plus", + "path_type": "hardlink", + "sha256": "9f8e408dc82b6919568e7755772b9ad75f2375c60adeea8d82c35face5338728", + "size_in_bytes": 32466864 + }, + { + "_path": "share/gcc-11.4.0/python/libstdcxx/__init__.py", + "path_type": "hardlink", + "sha256": "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b", + "size_in_bytes": 1 + }, + { + "_path": "share/gcc-11.4.0/python/libstdcxx/v6/__init__.py", + "path_type": "hardlink", + "sha256": "3642a190d3b754a444c02e9c7fdf4b2aca8e767e230ecb52dfc27569aeb86525", + "size_in_bytes": 1161 + }, + { + "_path": "share/gcc-11.4.0/python/libstdcxx/v6/printers.py", + "path_type": "hardlink", + "sha256": "37e3ec4919b159a7696e25ad3be430ef3142a587dcef19dd8f93b63235b37663", + "size_in_bytes": 84414 + }, + { + "_path": "share/gcc-11.4.0/python/libstdcxx/v6/xmethods.py", + "path_type": "hardlink", + "sha256": "50cbe3e5fad985715baa34dc3a150800a3024b93fe858cba6fd94b88787afd45", + "size_in_bytes": 28202 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5237fb2c9c34c07544ca57d790abf0a84cfb5987 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/conda_build_config.yaml @@ -0,0 +1,56 @@ +CI: azure +_libgcc_mutex: 0.1 conda_forge +binutils_version: '2.40' +c_compiler: gcc +c_stdlib: sysroot +c_stdlib_version: '2.12' +cdt_name: cos6 +channel_sources: conda-forge/label/sysroot-with-crypt,conda-forge +channel_targets: conda-forge main +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cross_target_platform: linux-64 +cross_target_stdlib: sysroot +cross_target_stdlib_version: '2.12' +cxx_compiler: gxx +docker_image: quay.io/condaforge/linux-anvil-cos7-x86_64 +extend_keys: +- ignore_version +- pin_run_as_build +- extend_keys +- ignore_build_only_deps +fortran_compiler: gfortran +gcc_maj_ver: '11' +gcc_version: 11.4.0 +ignore_build_only_deps: +- numpy +- python +libgfortran_soname: '5' +libgomp_ver: 1.0.0 +lua: '5' +numpy: '1.22' +old_triplet: x86_64-conda_cos6-linux-gnu +openmp_ver: '4.5' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +python: '3.10' +r_base: '3.5' +target_platform: linux-64 +triplet: x86_64-conda-linux-gnu +zip_keys: +- - gcc_version + - gcc_maj_ver + - libgfortran_soname +- - c_stdlib_version + - cdt_name +- - cross_target_stdlib_version + - cross_target_stdlib + - triplet + - old_triplet + - cross_target_platform diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/install-g++.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/install-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1cf84ba32fb914e5ef29ee9b11a6195049534f5 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/install-g++.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +export CHOST="${triplet}" +_libdir=libexec/gcc/${CHOST}/${PKG_VERSION} + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${CHOST}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + +make -C gcc prefix=${PREFIX} c++.install-common + +# How it used to be: +# install -m755 -t ${PREFIX}/bin/ gcc/{cc1plus,lto1} +for file in cc1plus; do + if [[ -f gcc/${file}${EXEEXT} ]]; then + install -c gcc/${file}${EXEEXT} ${PREFIX}/${_libdir}/${file}${EXEEXT} + fi +done + +# Following 3 are in libstdcxx-devel +#make -C $CHOST/libstdc++-v3/src prefix=${PREFIX} install +#make -C $CHOST/libstdc++-v3/include prefix=${PREFIX} install +#make -C $CHOST/libstdc++-v3/libsupc++ prefix=${PREFIX} install +make -C $CHOST/libstdc++-v3/python prefix=${PREFIX} install + +# Probably don't want to do this for cross-compilers +# mkdir -p ${PREFIX}/share/gdb/auto-load/usr/lib/ +# cp ${SRC_DIR}/gcc_built/${CHOST}/sysroot/lib/libstdc++.so.6.*-gdb.py ${PREFIX}/share/gdb/auto-load/usr/lib/ + +make -C libcpp prefix=${PREFIX} install + +popd + +mkdir -p ${PREFIX}/lib/gcc/${CHOST}/${PKG_VERSION} + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find bin libexec -type f -not -name '*.dll') + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${BUILD_PREFIX}/bin/${CHOST}-strip --strip-all -v "${_file}" || : + ;; + esac + done +popd + +source ${RECIPE_DIR}/make_tool_links.sh diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/meta.yaml b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fb35bbab6037c165bb4e3f51d5211a8a8571fcfc --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/meta.yaml @@ -0,0 +1,58 @@ +# This file created by conda-build 24.5.2.dev35 +# ------------------------------------------------ + +package: + name: gxx_impl_linux-64 + version: 11.4.0 +source: + - patches: + - patches/0021-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch + - patches/old-allow-commands-in-main-specfile.patch + sha256: af828619dd1970734dda3cfb792ea3f2cba61b5a00170ba8bce4910749d73c07 + url: https://ftp.gnu.org/gnu/gcc/gcc-11.4.0/gcc-11.4.0.tar.gz +build: + detect_binary_files_with_prefix: false + ignore_run_exports_from: + - sysroot_linux-64 + missing_dso_whitelist: + - '*' + number: 13 + string: h634f3ee_13 +requirements: + host: + - gcc_impl_linux-64 11.4.0 h00c12a0_13 + - kernel-headers_linux-64 2.6.32 he073ed8_16 + - sysroot_linux-64 2.12 he073ed8_16 + run: + - gcc_impl_linux-64 11.4.0 h00c12a0_13 + - libstdcxx-devel_linux-64 11.4.0 h8f596e0_113 + - sysroot_linux-64 +test: + commands: + - test -f ${PREFIX}/bin/x86_64-conda_cos6-linux-gnu-g++ + - test -f ${PREFIX}/bin/x86_64-conda-linux-gnu-g++ + - CXX=$(${PREFIX}/bin/*-gcc -dumpmachine)-g++ + - ${CXX} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o --std=c++17 + - ${CXX} -Wall cpp_aligned.o -o cpp_aligned --std=c++17 && ./cpp_aligned + - ${CXX} -Wall tests/hello_world.cpp -c -o hello_world.o --std=c++17 + - ${CXX} -Wall hello_world.o -o hello_world --std=c++17 + files: + - tests + requires: + - sysroot_linux-64 2.12.* +about: + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + summary: GNU C++ Compiler +extra: + copy_test_source_files: true + feedstock-name: ctng-compilers-feedstock + final: true + flow_run_id: azure_20240623.2.1 + recipe-maintainers: + - beckermr + - isuruf + - timsnyder + - xhochy + remote_url: https://github.com/conda-forge/ctng-compilers-feedstock + sha: 65d04ebbfb4ff200a87ef5ed03b83e3bdbf5f31f diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/LICENSE b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..cba42cffc2901212c539e558950c6f6ed985d628 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/LICENSE @@ -0,0 +1,13 @@ +BSD 3-clause license +Copyright (c) 2015-2019, conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/build.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9a3cee24413d1d10e8be8be5cd1a7d9dac2a2da --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/build.sh @@ -0,0 +1,112 @@ +#!/bin/bash + +set -ex + +source ${RECIPE_DIR}/setup_compiler.sh + +# ensure patch is applied +grep 'conda-forge:: allow' gcc/gcc.c* + +GCC_CONFIGURE_OPTIONS=() + +if [[ "$channel_targets" == *conda-forge* ]]; then + GCC_CONFIGURE_OPTIONS+=(--with-pkgversion="conda-forge gcc ${gcc_version}-${PKG_BUILDNUM}") + GCC_CONFIGURE_OPTIONS+=(--with-bugurl="https://github.com/conda-forge/ctng-compilers-feedstock/issues/new/choose") +fi + +for tool in addr2line ar as c++filt cc c++ fc gcc g++ gfortran ld nm objcopy objdump ranlib readelf size strings strip; do + tool_upper=$(echo $tool | tr a-z-+ A-Z_X) + if [[ "$tool" == "cc" ]]; then + tool=gcc + elif [[ "$tool" == "fc" ]]; then + tool=gfortran + elif [[ "$tool" == "c++" ]]; then + tool=g++ + elif [[ "$target_platform" != "$build_platform" && "$tool" =~ ^(ar|nm|ranlib)$ ]]; then + tool="gcc-${tool}" + fi + eval "export ${tool_upper}_FOR_BUILD=\$BUILD_PREFIX/bin/\$BUILD-\$tool" + eval "export ${tool_upper}=\$BUILD_PREFIX/bin/\$HOST-\$tool" + eval "export ${tool_upper}_FOR_TARGET=\$BUILD_PREFIX/bin/\$TARGET-\$tool" +done + +if [[ "$cross_target_platform" == "win-64" ]]; then + # do not expect ${prefix}/mingw symlink - this should be superceded by + # 0005-Windows-Don-t-ignore-native-system-header-dir.patch .. but isn't! + sed -i 's#${prefix}/mingw/#${prefix}/${target}/sysroot/usr/#g' configure + sed -i "s#/mingw/#/usr/#g" gcc/config/i386/mingw32.h +fi + +NATIVE_SYSTEM_HEADER_DIR=/usr/include +SYSROOT_DIR=${PREFIX}/${TARGET}/sysroot + +# workaround a bug in gcc build files when using external binutils +# and build != host == target +export gcc_cv_objdump=$OBJDUMP_FOR_TARGET + +ls $BUILD_PREFIX/bin/ + +./contrib/download_prerequisites + +# We want CONDA_PREFIX/usr/lib not CONDA_PREFIX/usr/lib64 and this +# is the only way. It is incompatible with multilib (obviously). +TINFO_FILES=$(find . -path "*/config/*/t-*") +for TINFO_FILE in ${TINFO_FILES}; do + echo TINFO_FILE ${TINFO_FILE} + sed -i.bak 's#^\(MULTILIB_OSDIRNAMES.*\)\(lib64\)#\1lib#g' ${TINFO_FILE} + rm -f ${TINFO_FILE}.bak + sed -i.bak 's#^\(MULTILIB_OSDIRNAMES.*\)\(libx32\)#\1lib#g' ${TINFO_FILE} + rm -f ${TINFO_FILE}.bak +done + +# workaround for https://gcc.gnu.org/bugzilla//show_bug.cgi?id=80196 +if [[ "$gcc_version" == "11."* && "$build_platform" != "$target_platform" ]]; then + sed -i.bak 's@-I$glibcxx_srcdir/libsupc++@-I$glibcxx_srcdir/libsupc++ -nostdinc++@g' libstdc++-v3/configure +fi + +mkdir -p build +cd build + +# We need to explicitly set the gxx include dir because previously +# with ct-ng, native build was not considered native because +# BUILD=HOST=x86_64-build_unknown-linux-gnu and TARGET=x86_64-conda-linux-gnu +# Depending on native or not, the include dir changes. Setting it explictly +# goes back to the original way. +# See https://github.com/gcc-mirror/gcc/blob/16e2427f50c208dfe07d07f18009969502c25dc8/gcc/configure.ac#L218 + +if [[ "$TARGET" == *linux* ]]; then + GCC_CONFIGURE_OPTIONS+=(--enable-libsanitizer) + GCC_CONFIGURE_OPTIONS+=(--enable-default-pie) + GCC_CONFIGURE_OPTIONS+=(--enable-threads=posix) +fi + +../configure \ + --prefix="$PREFIX" \ + --with-slibdir="$PREFIX/lib" \ + --libdir="$PREFIX/lib" \ + --mandir="$PREFIX/man" \ + --build=$BUILD \ + --host=$HOST \ + --target=$TARGET \ + --enable-languages=c,c++,fortran,objc,obj-c++ \ + --enable-__cxa_atexit \ + --disable-libmudflap \ + --enable-libgomp \ + --disable-libssp \ + --enable-libquadmath \ + --enable-libquadmath-support \ + --enable-lto \ + --enable-target-optspace \ + --enable-plugin \ + --enable-gold \ + --disable-nls \ + --disable-bootstrap \ + --disable-multilib \ + --enable-long-long \ + --with-sysroot=${SYSROOT_DIR} \ + --with-build-sysroot=${BUILD_PREFIX}/${TARGET}/sysroot \ + --with-native-system-header-dir=${NATIVE_SYSTEM_HEADER_DIR} \ + --with-gxx-include-dir="${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/include/c++" \ + "${GCC_CONFIGURE_OPTIONS[@]}" + +make -j${CPU_COUNT} || (cat ${TARGET}/libgomp/config.log; false) diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/c11threads.c b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/c11threads.c new file mode 100644 index 0000000000000000000000000000000000000000..1d0b34c8662f7eca07c573c32eadbdf35a8427e3 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/c11threads.c @@ -0,0 +1,6 @@ +#include +int main() { + mtx_t mutex; + mtx_init(&mutex, mtx_plain); +} + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/conda_build_config.yaml b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..474072e47ce6f97384c1b55abe7a18e0fa8a16fb --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/conda_build_config.yaml @@ -0,0 +1,66 @@ +triplet: + - x86_64-conda-linux-gnu + - powerpc64le-conda-linux-gnu + - aarch64-conda-linux-gnu + - s390x-conda-linux-gnu + - x86_64-w64-mingw32 +old_triplet: + - x86_64-conda_cos6-linux-gnu + - powerpc64le-conda_cos7-linux-gnu + - aarch64-conda_cos7-linux-gnu + - s390x-conda-linux-gnu + - x86_64-w64-mingw32 +gcc_version: + - 11.4.0 + - 12.3.0 + - 13.2.0 +gcc_maj_ver: + - 11 + - 12 + - 13 +libgfortran_soname: + - 5 + - 5 + - 5 +binutils_version: + - 2.40 +cross_target_platform: + - linux-64 + - linux-ppc64le + - linux-aarch64 + - linux-s390x + - win-64 +cross_target_stdlib_version: + - 2.12 + - 2.17 + - 2.17 + - 2.17 + - 12 +cross_target_stdlib: + - sysroot + - sysroot + - sysroot + - sysroot + - m2w64-sysroot +# openmp versions +openmp_ver: + - 4.5 +libgomp_ver: + - 1.0.0 +_libgcc_mutex: + - 0.1 conda_forge +channel_sources: + - conda-forge/label/sysroot-with-crypt,conda-forge +c_stdlib: # [win] + - m2w64-sysroot # [win] +c_stdlib_version: # [win] + - 12 # [win] +zip_keys: + - - cross_target_stdlib_version + - cross_target_stdlib + - triplet + - old_triplet + - cross_target_platform + - - gcc_version + - gcc_maj_ver + - libgfortran_soname diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/config.old b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/config.old new file mode 100644 index 0000000000000000000000000000000000000000..90a390a60b40932a63278c29c1f013e7d5254a2d --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/config.old @@ -0,0 +1,530 @@ +# +# Automatically generated file; DO NOT EDIT. +# Crosstool-NG Configuration +# +CT_CONFIGURE_has_static_link=y +CT_CONFIGURE_has_xz=y +CT_CONFIGURE_has_svn=y +CT_MODULES=y + +# +# Paths and misc options +# + +# +# crosstool-NG behavior +# +CT_OBSOLETE=y +CT_EXPERIMENTAL=y +CT_ALLOW_BUILD_AS_ROOT=y +CT_ALLOW_BUILD_AS_ROOT_SURE=y +# CT_DEBUG_CT is not set + +# +# Paths +# +CT_LOCAL_TARBALLS_DIR="${HOME}/src" +CT_SAVE_TARBALLS=y +CT_WORK_DIR="${CT_TOP_DIR}/.build" +CT_PREFIX_DIR="${CT_TOP_DIR}/gcc_built" +CT_BUILD_TOP_DIR="@BUILD_TOP@" +CT_INSTALL_DIR="${CT_PREFIX_DIR}" +CT_RM_RF_PREFIX_DIR=n +CT_REMOVE_DOCS=y +CT_INSTALL_DIR_RO=n +CT_STRIP_HOST_TOOLCHAIN_EXECUTABLES=y +# CT_STRIP_TARGET_TOOLCHAIN_EXECUTABLES is not set + +# +# Downloading +# +# CT_FORBID_DOWNLOAD is not set +# CT_FORCE_DOWNLOAD is not set +CT_CONNECT_TIMEOUT=10 +# CT_ONLY_DOWNLOAD is not set +# CT_USE_MIRROR is not set + +# +# Extracting +# +# CT_FORCE_EXTRACT is not set +CT_OVERIDE_CONFIG_GUESS_SUB=y +# CT_ONLY_EXTRACT is not set +CT_PATCH_BUNDLED=y +# CT_PATCH_LOCAL is not set +# CT_PATCH_BUNDLED_LOCAL is not set +# CT_PATCH_LOCAL_BUNDLED is not set +# CT_PATCH_BUNDLED_FALLBACK_LOCAL is not set +# CT_PATCH_LOCAL_FALLBACK_BUNDLED is not set +# CT_PATCH_NONE is not set +CT_PATCH_ORDER="bundled" + +# +# Build behavior +# +CT_PARALLEL_JOBS=4 +CT_LOAD="" +CT_USE_PIPES=y +CT_EXTRA_CFLAGS_FOR_BUILD="" +CT_EXTRA_LDFLAGS_FOR_BUILD="" +CT_EXTRA_CFLAGS_FOR_HOST="" +CT_EXTRA_LDFLAGS_FOR_HOST="" +# CT_CONFIG_SHELL_SH is not set +# CT_CONFIG_SHELL_ASH is not set +CT_CONFIG_SHELL_BASH=y +# CT_CONFIG_SHELL_CUSTOM is not set +CT_CONFIG_SHELL="${bash}" + +# +# Logging +# +# CT_LOG_ERROR is not set +# CT_LOG_WARN is not set +CT_LOG_INFO=y +# CT_LOG_EXTRA is not set +# CT_LOG_ALL is not set +# CT_LOG_DEBUG is not set +CT_LOG_LEVEL_MAX="INFO" +# CT_LOG_SEE_TOOLS_WARN is not set +CT_LOG_PROGRESS_BAR=y +CT_LOG_TO_FILE=y +CT_LOG_FILE_COMPRESS=y + +# +# Target options +# +CT_ARCH="arm" +CT_ARCH_SUPPORTS_BOTH_MMU=y +CT_ARCH_SUPPORTS_BOTH_ENDIAN=y +CT_ARCH_SUPPORTS_32=y +CT_ARCH_SUPPORTS_64=y +CT_ARCH_SUPPORTS_WITH_ARCH=y +CT_ARCH_SUPPORTS_WITH_CPU=y +CT_ARCH_SUPPORTS_WITH_TUNE=y +CT_ARCH_SUPPORTS_WITH_FLOAT=y +CT_ARCH_SUPPORTS_WITH_FPU=y +CT_ARCH_SUPPORTS_SOFTFP=y +CT_ARCH_DEFAULT_HAS_MMU=y +CT_ARCH_DEFAULT_LE=y +CT_ARCH_DEFAULT_32=y +CT_ARCH_CPU="arm1136jf-s" +CT_ARCH_FPU="vfp" +# CT_ARCH_BE is not set +CT_ARCH_LE=y +CT_ARCH_32=y +# CT_ARCH_64 is not set +CT_ARCH_BITNESS=32 +# CT_ARCH_FLOAT_HW is not set +CT_ARCH_FLOAT_SW=y +CT_TARGET_CFLAGS="" +CT_TARGET_LDFLAGS="" +# CT_ARCH_alpha is not set +CT_ARCH_arm=y +# CT_ARCH_avr is not set +# CT_ARCH_m68k is not set +# CT_ARCH_microblaze is not set +# CT_ARCH_mips is not set +# CT_ARCH_nios2 is not set +# CT_ARCH_powerpc is not set +# CT_ARCH_s390 is not set +# CT_ARCH_sh is not set +# CT_ARCH_sparc is not set +# CT_ARCH_x86 is not set +# CT_ARCH_xtensa is not set +CT_ARCH_alpha_AVAILABLE=y +CT_ARCH_arm_AVAILABLE=y +CT_ARCH_avr_AVAILABLE=y +CT_ARCH_m68k_AVAILABLE=y +CT_ARCH_microblaze_AVAILABLE=y +CT_ARCH_mips_AVAILABLE=y +CT_ARCH_nios2_AVAILABLE=y +CT_ARCH_powerpc_AVAILABLE=y +CT_ARCH_s390_AVAILABLE=y +CT_ARCH_sh_AVAILABLE=y +CT_ARCH_sparc_AVAILABLE=y +CT_ARCH_x86_AVAILABLE=y +CT_ARCH_xtensa_AVAILABLE=y +CT_ARCH_SUFFIX="" + +# +# Generic target options +# +# CT_MULTILIB is not set +# CT_DISABLE_MULTILIB_LIB_OSDIRNAMES is not set +CT_ARCH_USE_MMU=y +CT_ARCH_ENDIAN="little" +CT_ARCH_32=y + +# +# Target optimisations +# +CT_ARCH_EXCLUSIVE_WITH_CPU=y +# CT_ARCH_FLOAT_AUTO is not set +# CT_ARCH_FLOAT_SOFTFP is not set +CT_ARCH_FLOAT="soft" + +# +# arm other options +# +CT_ARCH_ARM_MODE="arm" +CT_ARCH_ARM_MODE_ARM=y +# CT_ARCH_ARM_MODE_THUMB is not set +# CT_ARCH_ARM_INTERWORKING is not set +CT_ARCH_ARM_EABI_FORCE=y +CT_ARCH_ARM_EABI=y + +# +# Toolchain options +# + +# +# General toolchain options +# +CT_FORCE_SYSROOT=y +CT_USE_SYSROOT=y +CT_SYSROOT_NAME="sysroot" +CT_SYSROOT_DIR_PREFIX="" +CT_WANTS_STATIC_LINK=y +CT_STATIC_TOOLCHAIN=y +CT_TOOLCHAIN_PKGVERSION="" +CT_TOOLCHAIN_BUGURL="" + +# +# Tuple completion and aliasing +# +CT_TARGET_VENDOR="unknown" +CT_TARGET_ALIAS_SED_EXPR="" +CT_TARGET_ALIAS="" + +# +# Toolchain type +# +# CT_NATIVE is not set +CT_CROSS=y +# CT_CROSS_NATIVE is not set +# CT_CANADIAN is not set +CT_TOOLCHAIN_TYPE="cross" + +# +# Build system +# +CT_BUILD="x86_64-pc-linux-gnu" +CT_BUILD_PREFIX="" +CT_BUILD_SUFFIX="" + +# +# Misc options +# +# CT_TOOLCHAIN_ENABLE_NLS is not set + +# +# Operating System +# +CT_KERNEL_SUPPORTS_SHARED_LIBS=y +CT_KERNEL="linux" +CT_KERNEL_VERSION="3.2.43" +# CT_KERNEL_bare_metal is not set +CT_KERNEL_linux=y +CT_KERNEL_bare_metal_AVAILABLE=y +CT_KERNEL_linux_AVAILABLE=y +# CT_KERNEL_LINUX_CUSTOM is not set +# CT_KERNEL_V_4_4 is not set +# CT_KERNEL_V_4_3 is not set +# CT_KERNEL_V_4_1 is not set +# CT_KERNEL_V_3_18 is not set +# CT_KERNEL_V_3_14 is not set +# CT_KERNEL_V_3_12 is not set +# CT_KERNEL_V_3_10 is not set +# CT_KERNEL_V_3_7 is not set +# CT_KERNEL_V_3_4 is not set +# CT_KERNEL_V_3_2 is not set +CT_KERNEL_V_3_2_43=y +# CT_KERNEL_V_2_6_32 is not set +# CT_KERNEL_V_2_6_18 is not set +CT_KERNEL_windows_AVAILABLE=y + +# +# Common kernel options +# +CT_SHARED_LIBS=y + +# +# linux other options +# +# CT_KERNEL_LINUX_VERBOSITY_0 is not set +CT_KERNEL_LINUX_VERBOSITY_1=y +# CT_KERNEL_LINUX_VERBOSITY_2 is not set +CT_KERNEL_LINUX_VERBOSE_LEVEL=1 +CT_KERNEL_LINUX_INSTALL_CHECK=y + +# +# Binary utilities +# +CT_ARCH_BINFMT_ELF=y +CT_BINUTILS="binutils" +CT_BINUTILS_binutils=y + +# +# GNU binutils +# +# CT_BINUTILS_CUSTOM is not set +CT_BINUTILS_VERSION="2.27" +# CT_CC_BINUTILS_SHOW_LINARO is not set +CT_BINUTILS_V_2_27=y +# CT_BINUTILS_V_2_25_1 is not set +# CT_BINUTILS_V_2_24 is not set +# CT_BINUTILS_V_2_23_2 is not set +CT_BINUTILS_2_26_or_later=y +CT_BINUTILS_2_25_1_or_later=y +CT_BINUTILS_2_25_or_later=y +CT_BINUTILS_2_24_or_later=y +CT_BINUTILS_2_23_2_or_later=y +CT_BINUTILS_HAS_HASH_STYLE=y +CT_BINUTILS_HAS_GOLD=y +CT_BINUTILS_GOLD_SUPPORTS_ARCH=y +CT_BINUTILS_HAS_PLUGINS=y +CT_BINUTILS_HAS_PKGVERSION_BUGURL=y +CT_BINUTILS_LINKER_LD=y +CT_BINUTILS_LINKERS_LIST="ld" +CT_BINUTILS_LINKER_DEFAULT="bfd" +CT_BINUTILS_EXTRA_CONFIG_ARRAY="" +CT_BINUTILS_FOR_TARGET=y +CT_BINUTILS_FOR_TARGET_IBERTY=y +CT_BINUTILS_FOR_TARGET_BFD=y +CT_BINUTILS_PLUGINS=y + +# +# binutils other options +# + +# +# C-library +# +CT_LIBC="uClibc" +CT_LIBC_VERSION="0.9.33.2" +# CT_LIBC_glibc is not set +# CT_LIBC_musl is not set +CT_LIBC_uClibc=y +CT_LIBC_avr_libc_AVAILABLE=y +CT_LIBC_glibc_AVAILABLE=y +CT_THREADS="nptl" +CT_LIBC_mingw_AVAILABLE=y +CT_LIBC_musl_AVAILABLE=y +CT_LIBC_newlib_AVAILABLE=y +CT_LIBC_none_AVAILABLE=y +CT_LIBC_uClibc_AVAILABLE=y + +CT_LIBC_UCLIBC_CUSTOM=n +CT_LIBC_UCLIBC_NG=n +CT_LIBC_UCLIBC_NG_V_1_0_22=n +CT_LIBC_UCLIBC_NG_V_1_0_21=n +CT_LIBC_UCLIBC_NG_V_1_0_20=n +CT_LIBC_UCLIBC_V_0_9_33_2=y + +CT_LIBC_UCLIBC_PARALLEL=y +# CT_LIBC_UCLIBC_VERBOSITY_0 is not set +# CT_LIBC_UCLIBC_VERBOSITY_1 is not set +CT_LIBC_UCLIBC_VERBOSITY_2=y +CT_LIBC_UCLIBC_VERBOSITY="V=2" +CT_LIBC_UCLIBC_DEBUG_LEVEL_0=y +# CT_LIBC_UCLIBC_DEBUG_LEVEL_1 is not set +# CT_LIBC_UCLIBC_DEBUG_LEVEL_2 is not set +# CT_LIBC_UCLIBC_DEBUG_LEVEL_3 is not set +CT_LIBC_UCLIBC_DEBUG_LEVEL=0 +CT_LIBC_UCLIBC_CONFIG_FILE="" +CT_LIBC_SUPPORT_THREADS_ANY=y +CT_LIBC_SUPPORT_THREADS_NATIVE=y +CT_LIBC_SUPPORT_THREADS_LT=y +CT_LIBC_SUPPORT_THREADS_NONE=y + +# +# Common C library options +# +CT_THREADS_NATIVE=y +# CT_THREADS_LT is not set +# CT_THREADS_NONE is not set +CT_LIBC_XLDD=y + +# +# uClibc other options +# +CT_LIBC_UCLIBC_LNXTHRD="" +# CT_LIBC_UCLIBC_LOCALES is not set +CT_LIBC_UCLIBC_IPV6=y +CT_LIBC_UCLIBC_WCHAR=y +# CT_LIBC_UCLIBC_FENV is not set + +# +# C compiler +# +CT_CC="gcc" +CT_CC_CORE_PASSES_NEEDED=y +CT_CC_CORE_PASS_1_NEEDED=y +CT_CC_CORE_PASS_2_NEEDED=y +CT_CC_gcc=y +# CT_CC_GCC_CUSTOM is not set +CT_CC_GCC_VERSION="6.3.0" +# CT_CC_GCC_SHOW_LINARO is not set +CT_CC_GCC_V_6_3_0=y +# CT_CC_GCC_V_6_1_0 is not set +# CT_CC_GCC_V_5_4_0 is not set +# CT_CC_GCC_V_4_9_3 is not set +# CT_CC_GCC_V_4_8_5 is not set +CT_CC_GCC_4_8_or_later=y +CT_CC_GCC_4_9_or_later=y +CT_CC_GCC_5_or_later=y +CT_CC_GCC_6=y +CT_CC_GCC_6_or_later=y +CT_CC_GCC_HAS_GRAPHITE=y +CT_CC_GCC_USE_GRAPHITE=y +CT_CC_GCC_HAS_LTO=y +CT_CC_GCC_USE_LTO=y +CT_CC_GCC_HAS_PKGVERSION_BUGURL=y +CT_CC_GCC_HAS_BUILD_ID=y +CT_CC_GCC_HAS_LNK_HASH_STYLE=y +CT_CC_GCC_USE_GMP_MPFR=y +CT_CC_GCC_USE_MPC=y +CT_CC_GCC_HAS_LIBQUADMATH=y +CT_CC_GCC_HAS_LIBSANITIZER=y +CT_CC_LANG_FORTRAN=y +CT_CC_GCC_ENABLE_CXX_FLAGS="" +CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="" +CT_CC_GCC_EXTRA_CONFIG_ARRAY="" +CT_CC_GCC_STATIC_LIBSTDCXX=y +# CT_CC_GCC_SYSTEM_ZLIB is not set +# This does not work but it seems currently possible +# to hack it and use the stage2 liblto.so as long as +# you manually copy it to the right place. For conda +# compiler packages, we add it to binutils, since it +# is executed by programs in that package. +# Really, needs a CT_MOSTLY_STATIC_TOOLCHAIN config +# option that uses -fPIC for all companion libs and +# builds them statically and then the exes are just +# dynamic exes that happen to link only to glibc in +# a dynamic way. +CT_CC_GCC_ENABLE_PLUGINS=n + +# +# Optimisation features +# + +# +# Settings for libraries running on target +# +CT_CC_GCC_ENABLE_TARGET_OPTSPACE=y +# CT_CC_GCC_LIBMUDFLAP is not set +# CT_CC_GCC_LIBGOMP is not set +# CT_CC_GCC_LIBSSP is not set +# CT_CC_GCC_LIBQUADMATH is not set + +# +# Misc. obscure options. +# +CT_CC_CXA_ATEXIT=y +# CT_CC_GCC_DISABLE_PCH is not set +CT_CC_GCC_SJLJ_EXCEPTIONS=m +CT_CC_GCC_LDBL_128=m +# CT_CC_GCC_BUILD_ID is not set +CT_CC_GCC_LNK_HASH_STYLE_DEFAULT=y +# CT_CC_GCC_LNK_HASH_STYLE_SYSV is not set +# CT_CC_GCC_LNK_HASH_STYLE_GNU is not set +# CT_CC_GCC_LNK_HASH_STYLE_BOTH is not set +CT_CC_GCC_LNK_HASH_STYLE="" +CT_CC_GCC_DEC_FLOAT_AUTO=y +# CT_CC_GCC_DEC_FLOAT_BID is not set +# CT_CC_GCC_DEC_FLOAT_DPD is not set +# CT_CC_GCC_DEC_FLOATS_NO is not set +CT_CC_SUPPORT_CXX=y +CT_CC_SUPPORT_FORTRAN=y +CT_CC_SUPPORT_JAVA=y +CT_CC_SUPPORT_ADA=y +CT_CC_SUPPORT_OBJC=y +CT_CC_SUPPORT_OBJCXX=y +CT_CC_SUPPORT_GOLANG=y + +# +# Additional supported languages: +# +CT_CC_LANG_CXX=y +# CT_CC_LANG_JAVA is not set +# CT_CC_LANG_ADA is not set +CT_CC_LANG_OBJC=y +CT_CC_LANG_OBJCXX=y +# CT_CC_LANG_GOLANG is not set +CT_CC_LANG_OTHERS="" + +# +# Debug facilities +# +# CT_DEBUG_dmalloc is not set +# CT_DEBUG_duma is not set +# CT_DEBUG_gdb is not set +# CT_DEBUG_ltrace is not set +# CT_DEBUG_strace is not set + +# +# Companion libraries +# +CT_COMPLIBS_NEEDED=y +CT_GMP_NEEDED=y +CT_MPFR_NEEDED=y +CT_ISL_NEEDED=y +CT_MPC_NEEDED=y +CT_COMPLIBS=y +CT_GMP=y +CT_MPFR=y +CT_ISL=y +CT_MPC=y +CT_GMP_V_6_1_2=y +# CT_GMP_V_6_0_0 is not set +# CT_GMP_V_5_1_3 is not set +# CT_GMP_V_5_1_1 is not set +# CT_GMP_V_5_0_2 is not set +# CT_GMP_V_5_0_1 is not set +# CT_GMP_V_4_3_2 is not set +# CT_GMP_V_4_3_1 is not set +# CT_GMP_V_4_3_0 is not set +CT_GMP_5_0_2_or_later=y +CT_GMP_VERSION="6.1.2" +CT_MPFR_V_3_1_5=y +# CT_MPFR_V_3_1_2 is not set +# CT_MPFR_V_3_1_0 is not set +# CT_MPFR_V_3_0_1 is not set +# CT_MPFR_V_3_0_0 is not set +# CT_MPFR_V_2_4_2 is not set +# CT_MPFR_V_2_4_1 is not set +# CT_MPFR_V_2_4_0 is not set +CT_MPFR_VERSION="3.1.5" +CT_ISL_V_0_18=y +# CT_ISL_V_0_12_2 is not set +CT_ISL_V_0_14_or_later=y +CT_ISL_V_0_12_or_later=y +CT_ISL_VERSION="0.18" +CT_MPC_V_1_0_3=y +# CT_MPC_V_1_0_2 is not set +# CT_MPC_V_1_0_1 is not set +# CT_MPC_V_1_0 is not set +# CT_MPC_V_0_9 is not set +# CT_MPC_V_0_8_2 is not set +# CT_MPC_V_0_8_1 is not set +# CT_MPC_V_0_7 is not set +CT_MPC_VERSION="1.0.3" + +# +# Companion libraries common options +# +# CT_COMPLIBS_CHECK is not set + +# +# Companion tools +# + +# +# READ HELP before you say 'Y' below !!! +# +# CT_COMP_TOOLS is not set + +# +# Test suite +# +# CT_TEST_SUITE_GCC is not set diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/get_cpu_arch.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/get_cpu_arch.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7ec10f51bb3d6f9d3709715366948dd28dd0a4c --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/get_cpu_arch.sh @@ -0,0 +1,35 @@ +get_cpu_arch() { + local CPU_ARCH + if [[ "$1" == *"-64" ]]; then + CPU_ARCH="x86_64" + elif [[ "$1" == *"-ppc64le" ]]; then + CPU_ARCH="powerpc64le" + elif [[ "$1" == *"-aarch64" ]]; then + CPU_ARCH="aarch64" + elif [[ "$1" == *"-s390x" ]]; then + CPU_ARCH="s390x" + else + echo "Unknown architecture" + exit 1 + fi + echo $CPU_ARCH +} + +get_triplet() { + if [[ "$1" == linux-* ]]; then + echo "$(get_cpu_arch $1)-conda-linux-gnu" + elif [[ "$1" == osx-64 ]]; then + echo "x86_64-apple-darwin13.4.0" + elif [[ "$1" == osx-arm64 ]]; then + echo "arm64-apple-darwin20.0.0" + elif [[ "$1" == win-64 ]]; then + echo "x86_64-w64-mingw32" + else + echo "unknown platform" + exit 1 + fi +} + +export BUILD="$(get_triplet $build_platform)" +export HOST="$(get_triplet $target_platform)" +export TARGET="$(get_triplet $cross_target_platform)" diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/hello-world.cpp b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/hello-world.cpp new file mode 100644 index 0000000000000000000000000000000000000000..abdfa651565e60579d61d05bc45afd98be1d3457 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/hello-world.cpp @@ -0,0 +1,7 @@ +#include + +int main(int argc, char * argv[]) +{ + std::cout << "Hello World!\n" << std::endl; + return 0; +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-conda-specs.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-conda-specs.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8a294de373d2fda7d6885475c902ea71bf60606 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-conda-specs.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh + +set -ex +export CHOST="${triplet}" +specdir=$PREFIX/lib/gcc/$CHOST/${gcc_version} +if [[ "$cross_target_platform" == "$target_platform" ]]; then + install -Dm644 -T ${SRC_DIR}/build/gcc/specs $specdir/conda.specs + + # Add specs when we're not cross compiling so that the toolchain works more like a system + # toolchain (i.e. conda installed libs can be #include <>'d and linked without adding any + # cmdline args or FLAGS and likewise the assumptions we have about rpath are built in) + # + # THIS IS INTENDED as a safety net for casual users who just want the native toolchain to work. + # It is not to be relied on by conda-forge package recipes and best practice is still to set the + # appropriate FLAGS vars (either via compiler activation scripts or explicitly in the recipe) + # + # We use double quotes here because we want $PREFIX and $CHOST to be expanded at build time + # and recorded in the specs file. It will undergo a prefix replacement when our compiler + # package is installed. + sed -i -e "/\*link_command:/,+1 s+%.*+& %{\!static:-rpath ${PREFIX}/lib -rpath-link ${PREFIX}/lib} -L ${PREFIX}/lib/stubs -L ${PREFIX}/lib+" $specdir/conda.specs + # put -disable-new-dtags at the front of the cmdline so that user provided -enable-new-dtags (in %l) can override it + sed -i -e "/\*link_command:/,+1 s+%(linker)+& -disable-new-dtags +" $specdir/conda.specs + # use -idirafter to put the conda "system" includes where /usr/local/include would typically go + # in a system-packaged non-cross compiler + sed -i -e "/\*cpp_options:/,+1 s+%.*+& -idirafter ${PREFIX}/include+" $specdir/conda.specs + # cc1_options also get used for cc1plus... at least in 11.2.0 + sed -i -e "/\*cc1_options:/,+1 s+%.*+& -idirafter ${PREFIX}/include+" $specdir/conda.specs + +else + # does it even make sense to do anything here? Could do something with %:getenv(BUILD_PREFIX /include) + # but in the case that we aren't inside conda-build, it will cause gcc to fatal + # because it won't be set. Just explicitly making this fail for now so that the meta.yaml + # is consitent with when it creates the conda-gcc-specs package + false +fi diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-g++.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1cf84ba32fb914e5ef29ee9b11a6195049534f5 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-g++.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +export CHOST="${triplet}" +_libdir=libexec/gcc/${CHOST}/${PKG_VERSION} + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${CHOST}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + +make -C gcc prefix=${PREFIX} c++.install-common + +# How it used to be: +# install -m755 -t ${PREFIX}/bin/ gcc/{cc1plus,lto1} +for file in cc1plus; do + if [[ -f gcc/${file}${EXEEXT} ]]; then + install -c gcc/${file}${EXEEXT} ${PREFIX}/${_libdir}/${file}${EXEEXT} + fi +done + +# Following 3 are in libstdcxx-devel +#make -C $CHOST/libstdc++-v3/src prefix=${PREFIX} install +#make -C $CHOST/libstdc++-v3/include prefix=${PREFIX} install +#make -C $CHOST/libstdc++-v3/libsupc++ prefix=${PREFIX} install +make -C $CHOST/libstdc++-v3/python prefix=${PREFIX} install + +# Probably don't want to do this for cross-compilers +# mkdir -p ${PREFIX}/share/gdb/auto-load/usr/lib/ +# cp ${SRC_DIR}/gcc_built/${CHOST}/sysroot/lib/libstdc++.so.6.*-gdb.py ${PREFIX}/share/gdb/auto-load/usr/lib/ + +make -C libcpp prefix=${PREFIX} install + +popd + +mkdir -p ${PREFIX}/lib/gcc/${CHOST}/${PKG_VERSION} + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find bin libexec -type f -not -name '*.dll') + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${BUILD_PREFIX}/bin/${CHOST}-strip --strip-all -v "${_file}" || : + ;; + esac + done +popd + +source ${RECIPE_DIR}/make_tool_links.sh diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-gcc.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3607feffffea41b7fa28f04b711203b77d61b8ea --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-gcc.sh @@ -0,0 +1,258 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +_libdir=libexec/gcc/${TARGET}/${PKG_VERSION} + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${TARGET}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + # We may not have built with plugin support so failure here is not fatal: + make prefix=${PREFIX} install-lto-plugin || true + + sed -i.bak 's/install-collect2: collect2 /install-collect2: collect2$(exeext) /g' gcc/Makefile + make -C gcc prefix=${PREFIX} install-driver install-cpp install-gcc-ar install-headers install-plugin install-lto-wrapper install-collect2 + # not sure if this is the same as the line above. Run both, just in case + make -C lto-plugin prefix=${PREFIX} install + install -dm755 ${PREFIX}/lib/bfd-plugins/ + + # statically linked, so this so does not exist + # ln -s $PREFIX/lib/gcc/$TARGET/liblto_plugin.so ${PREFIX}/lib/bfd-plugins/ + + make -C libcpp prefix=${PREFIX} install + + # Include languages we do not have any other place for here (and also lto1) + for file in gnat1 brig1 cc1 go1 lto1 cc1obj cc1objplus; do + if [[ -f gcc/${file}${EXEEXT} ]]; then + install -c gcc/${file}${EXEEXT} ${PREFIX}/${_libdir}/${file}${EXEEXT} + fi + done + + # https://github.com/gcc-mirror/gcc/blob/gcc-7_3_0-release/gcc/Makefile.in#L3481-L3526 + # Could have used install-common, but it also installs cxx binaries, which we + # don't want in this package. We could patch it, or use the loop below: + for file in gcov{,-tool,-dump}; do + if [[ -f gcc/${file}${EXEEXT} ]]; then + install -c gcc/${file}${EXEEXT} ${PREFIX}/bin/${TARGET}-${file}${EXEEXT} + fi + done + + make prefix=${PREFIX}/lib/gcc/${TARGET}/${gcc_version} install-libcc1 + install -d ${PREFIX}/share/gdb/auto-load/usr/lib + + make prefix=${PREFIX} install-fixincludes + make -C gcc prefix=${PREFIX} install-mkheaders + + if [[ -d ${TARGET}/libgomp ]]; then + make -C ${TARGET}/libgomp prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libitm ]]; then + make -C ${TARGET}/libitm prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libquadmath ]]; then + make -C ${TARGET}/libquadmath prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libsanitizer ]]; then + make -C ${TARGET}/libsanitizer prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libsanitizer/asan ]]; then + make -C ${TARGET}/libsanitizer/asan prefix=${PREFIX} install + fi + + if [[ -d ${TARGET}/libsanitizer/tsan ]]; then + make -C ${TARGET}/libsanitizer/tsan prefix=${PREFIX} install + fi + + make -C libiberty prefix=${PREFIX} install + # install PIC version of libiberty + if [[ "${TARGET}" != *mingw* ]]; then + install -m644 libiberty/pic/libiberty.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} + else + install -m644 libiberty/libiberty.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} + fi + + make -C gcc prefix=${PREFIX} install-man install-info + + make -C gcc prefix=${PREFIX} install-po + + # many packages expect this symlink + [[ -f ${PREFIX}/bin/${TARGET}-cc${EXEEXT} ]] && rm ${PREFIX}/bin/${TARGET}-cc${EXEEXT} + pushd ${PREFIX}/bin + if [[ "${HOST}" != *mingw* ]]; then + ln -s ${TARGET}-gcc${EXEEXT} ${TARGET}-cc${EXEEXT} + else + cp ${TARGET}-gcc${EXEEXT} ${TARGET}-cc${EXEEXT} + fi + popd + + # POSIX conformance launcher scripts for c89 and c99 + cat > ${PREFIX}/bin/${TARGET}-c89${EXEEXT} <<"EOF" +#!/bin/sh +fl="-std=c89" +for opt; do + case "$opt" in + -ansi|-std=c89|-std=iso9899:1990) fl="";; + -std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2 + exit 1;; + esac +done +exec gcc $fl ${1+"$@"} +EOF + + cat > ${PREFIX}/bin/${TARGET}-c99${EXEEXT} <<"EOF" +#!/bin/sh +fl="-std=c99" +for opt; do + case "$opt" in + -std=c99|-std=iso9899:1999) fl="";; + -std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2 + exit 1;; + esac +done +exec gcc $fl ${1+"$@"} +EOF + + chmod 755 ${PREFIX}/bin/${TARGET}-c{8,9}9${EXEEXT} + + rm ${PREFIX}/bin/${TARGET}-gcc-${PKG_VERSION}${EXEEXT} + +popd + +# generate specfile so that we can patch loader link path +# link_libgcc should have the gcc's own libraries by default (-R) +# so that LD_LIBRARY_PATH isn't required for basic libraries. +# +# GF method here to create specs file and edit it. The other methods +# tried had no effect on the result. including: +# setting LINK_LIBGCC_SPECS on configure +# setting LINK_LIBGCC_SPECS on make +# setting LINK_LIBGCC_SPECS in gcc/Makefile +specdir=$PREFIX/lib/gcc/$TARGET/${gcc_version} +if [[ "$build_platform" == "$target_platform" ]]; then + $PREFIX/bin/${TARGET}-gcc${EXEEXT} -dumpspecs > $specdir/specs + # validate assumption that specs in build/gcc/specs are exactly the + # same as dumped specs so that I don't need to depend on gcc_impl in conda-gcc-specs subpackage + diff -s ${SRC_DIR}/build/gcc/specs $specdir/specs +elif [[ "$target_platform" == "$cross_target_platform" && ${TARGET} != *mingw* ]]; then + # For support of of native specs, we need this + # This is the only place where we need QEMU. + # Remove this elif condition for local experimentation if you + # do not have QEMU setup + $PREFIX/bin/${TARGET}-gcc -dumpspecs > $specdir/specs +else + $BUILD_PREFIX/bin/${TARGET}-gcc -dumpspecs > $specdir/specs + # validate assumption that specs in build/gcc/specs are exactly the + # same as dumped specs so that I don't need to depend on gcc_impl in conda-gcc-specs subpackage + diff -s ${SRC_DIR}/build/gcc/specs $specdir/specs +fi + +# make a copy of the specs without our additions so that people can choose not to use them +# by passing -specs=builtin.specs +cp $specdir/specs $specdir/builtin.specs + +# modify the default specs to only have %include_noerr that includes an optional conda.specs +# package installable via the conda-gcc-specs package where conda.specs (for $cross_target_platform +# == $target_platform) will add the minimal set of flags for the 'native' toolchains to be useable +# without anything additional set in the enviornment or extra cmdline args. +echo "%include_noerr " >> $specdir/specs + +# We use double quotes here because we want $PREFIX and $TARGET to be expanded at build time +# and recorded in the specs file. It will undergo a prefix replacement when our compiler +# package is installed. +sed -i -e "/\*link_command:/,+1 s+%.*+& %{!static:-rpath ${PREFIX}/lib}+" $specdir/specs + + +# Install Runtime Library Exception +install -Dm644 $SRC_DIR/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc/RUNTIME.LIBRARY.EXCEPTION + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find bin libexec -type f -not -name '*.dll') + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${BUILD_PREFIX}/bin/${TARGET}-strip --strip-all -v "${_file}" || : + ;; + esac + done +popd + +set -x + +#${PREFIX}/bin/${TARGET}-gcc "${RECIPE_DIR}"/c11threads.c -std=c11 + +mkdir -p ${PREFIX}/${TARGET}/lib +mkdir -p ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} + +if [[ "$target_platform" == "$cross_target_platform" ]]; then + # making these this way so conda build doesn't muck with them + pushd ${PREFIX}/${TARGET}/lib + if [[ "${TARGET}" != *mingw* ]]; then + ln -sf ../../lib/libgomp.so libgomp.so + for lib in libgfortran libatomic libquadmath libitm lib{a,l,ub,t}san; do + for f in ${PREFIX}/lib/${lib}.so*; do + ln -s ../../lib/$(basename $f) ${PREFIX}/${TARGET}/lib/$(basename $f) + done + done + fi + + for f in ${PREFIX}/lib/*.spec; do + mv $f ${PREFIX}/${TARGET}/lib/$(basename $f) + done + if [[ "${TARGET}" != *mingw* ]]; then + for f in ${PREFIX}/lib/*.o; do + mv $f ${PREFIX}/${TARGET}/lib/$(basename $f) + done + fi + popd + for lib in asan atomic gomp hwasan itm lsan quadmath tsan ubsan; do + if [[ -f "${PREFIX}/lib/lib${lib}.a" ]]; then + mv ${PREFIX}/lib/lib${lib}.*a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + fi + done + for lib in libasan.so libatomic.so libgomp.so libhwasan.so libitm.so liblsan.so libquadmath.so libtsan.so libubsan.so libstdc++.so libstdc++.so.6 libgcc_s.so; do + if [[ -f "${PREFIX}/lib/${lib}" ]]; then + # install a shared library here since the directory ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} + # has the highest preference and we want shared libraries to have the highest preference + rm ${PREFIX}/lib/${lib} + ln -sf ${PREFIX}/lib/${lib} ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + fi + done +else + source ${RECIPE_DIR}/install-libgcc.sh + for lib in libcc1; do + mv ${PREFIX}/lib/${lib}.so* ${PREFIX}/${TARGET}/lib/ || true + mv ${PREFIX}/lib/${lib}.so* ${PREFIX}/${TARGET}/lib/ || true + done + rm -f ${PREFIX}/share/info/*.info + for lib in asan atomic gomp hwasan itm lsan quadmath tsan ubsan; do + if [[ -f "${PREFIX}/${TARGET}/lib/lib${lib}.a" ]]; then + mv ${PREFIX}/${TARGET}/lib/lib${lib}.*a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + fi + if [[ -f "${PREFIX}/${TARGET}/lib/lib${lib}.so" ]]; then + ln -sf ${PREFIX}/${TARGET}/lib/lib${lib}.so ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/ + fi + done +fi + +if [[ -f ${PREFIX}/lib/libgomp.spec ]]; then + mv ${PREFIX}/lib/libgomp.spec ${PREFIX}/${TARGET}/lib/libgomp.spec +fi + +rm -f ${PREFIX}/share/info/dir + +source ${RECIPE_DIR}/make_tool_links.sh diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-gfortran.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-gfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..46d877def15e561206381f98e1db227944f02256 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-gfortran.sh @@ -0,0 +1,81 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +export CHOST="${triplet}" +_libdir=libexec/gcc/${CHOST}/${PKG_VERSION} + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${CHOST}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + +# adapted from Arch install script from https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/gcc/PKGBUILD +# We cannot make install since .la files are not relocatable so libtool deliberately prevents it: +# libtool: install: error: cannot install `libgfortran.la' to a directory not ending in ${SRC_DIR}/work/gcc_built/${CHOST}/lib/../lib +make -C ${CHOST}/libgfortran prefix=${PREFIX} all-multi libgfortran.spec ieee_arithmetic.mod ieee_exceptions.mod ieee_features.mod config.h +make -C gcc prefix=${PREFIX} fortran.install-{common,man,info} + +# How it used to be: +# install -Dm755 gcc/f951 ${PREFIX}/${_libdir}/f951 +for file in f951; do + if [[ -f gcc/${file}${EXEEXT} ]]; then + install -c gcc/${file}${EXEEXT} ${PREFIX}/${_libdir}/${file}${EXEEXT} + fi +done + +mkdir -p ${PREFIX}/${CHOST}/lib +cp ${CHOST}/libgfortran/libgfortran.spec ${PREFIX}/${CHOST}/lib + +pushd ${PREFIX}/bin + if [[ "${target_platform}" != "win-64" ]]; then + ln -sf ${CHOST}-gfortran${EXEEXT} ${CHOST}-f95${EXEEXT} + else + cp ${CHOST}-gfortran${EXEEXT} ${CHOST}-f95${EXEEXT} + fi +popd + +make install DESTDIR=$SRC_DIR/build-finclude +mkdir -p $PREFIX/lib/gcc/${CHOST}/${gcc_version}/finclude +mkdir -p $PREFIX/lib/gcc/${CHOST}/${gcc_version}/include +install -Dm644 $SRC_DIR/build-finclude/$PREFIX/lib/gcc/${CHOST}/${gcc_version}/finclude/* $PREFIX/lib/gcc/${CHOST}/${gcc_version}/finclude/ +install -Dm644 $SRC_DIR/build-finclude/$PREFIX/lib/gcc/${CHOST}/${gcc_version}/include/*.h $PREFIX/lib/gcc/${CHOST}/${gcc_version}/include/ + +# Install Runtime Library Exception +install -Dm644 $SRC_DIR/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc-fortran/RUNTIME.LIBRARY.EXCEPTION + +if [[ "${target_platform}" != "${cross_target_platform}" ]]; then + if [[ ${triplet} == *linux* ]]; then + cp -f --no-dereference ${SRC_DIR}/build/${CHOST}/libgfortran/.libs/libgfortran*.so* ${PREFIX}/${CHOST}/lib/ + fi +fi +cp -f --no-dereference ${SRC_DIR}/build/${CHOST}/libgfortran/.libs/libgfortran.*a ${PREFIX}/${CHOST}/lib/ + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find bin libexec -type f -not -name '*.dll') + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${BUILD_PREFIX}/bin/${CHOST}-strip --strip-all -v "${_file}" || : + ;; + esac + done +popd + +if [[ -f ${PREFIX}/lib/libgomp.spec ]]; then + mv ${PREFIX}/lib/libgomp.spec ${PREFIX}/${CHOST}/lib/libgomp.spec +fi + +rm -f ${PREFIX}/share/info/dir + +source ${RECIPE_DIR}/make_tool_links.sh diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgcc-devel.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgcc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b16fb0b980b35363aafbe76c195e5e5f10ef4bb --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgcc-devel.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +export CHOST="${triplet}" + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${CHOST}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + +make -C ${CHOST}/libgcc prefix=${PREFIX} install + +# ${PREFIX}/lib/libgcc_s.so* goes into libgcc-ng output, but +# avoid that the equivalents in ${PREFIX}/${CHOST}/lib end up +# in gcc_impl_{{ cross_target_platform }}, c.f. install-gcc.sh +mkdir -p ${PREFIX}/${CHOST}/lib +if [[ "${triplet}" == *linux* ]]; then + mv ${PREFIX}/lib/libgcc_s.so* ${PREFIX}/${CHOST}/lib +else + # import library, not static library + mv ${PREFIX}/lib/libgcc_s.a ${PREFIX}/${CHOST}/lib + rm ${PREFIX}/lib/libgcc_s*.dll || true +fi +# This is in gcc_impl as it is gcc specific and clang has the same header +rm -rf ${PREFIX}/lib/gcc/${CHOST}/${gcc_version}/include/unwind.h + +popd + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgcc-no-gomp.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgcc-no-gomp.sh new file mode 100644 index 0000000000000000000000000000000000000000..e792608072235cedbc2836ec05a7bc9326d53862 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgcc-no-gomp.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +export CHOST="${triplet}" + +# we have to remove existing links/files so that the libgcc install works +rm -rf ${PREFIX}/lib/* +rm -rf ${PREFIX}/share/* +rm -f ${PREFIX}/${CHOST}/lib/libgomp* + +# now run install of libgcc +# this reinstalls the wrong symlinks for openmp +source ${RECIPE_DIR}/install-libgcc.sh + +# remove and relink things for openmp +rm -f ${PREFIX}/lib/libgomp.so +rm -f ${PREFIX}/${CHOST}/lib/libgomp.so +rm -f ${PREFIX}/lib/libgomp.so.${libgomp_ver:0:1} +rm -f ${PREFIX}/${CHOST}/lib/libgomp.so.${libgomp_ver:0:1} +rm -f ${PREFIX}/${CHOST}/lib/libgomp.so.${libgomp_ver} + +# (re)make the right links +# note that this code is remaking more links than the ones we want in this +# package but that is ok +pushd ${PREFIX}/lib + if [[ "${TARGET}" != *mingw* ]]; then + ln -s libgomp.so.${libgomp_ver} libgomp.so.${libgomp_ver:0:1} + fi +popd diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgcc.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f587e978db7d83b6dff050d6883f9364450c33a --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgcc.sh @@ -0,0 +1,88 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${TARGET}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +if [[ "${TARGET}" == *mingw* ]]; then + LIBGCC_NAME="libgcc" +else + LIBGCC_NAME="libgcc-ng" +fi + +pushd ${SRC_DIR}/build + + if [[ "${PKG_NAME}" == "${LIBGCC_NAME}" ]]; then + make -C ${TARGET}/libgcc prefix=${PREFIX} install-shared + if [[ "${TARGET}" == *mingw* ]]; then + mv $PREFIX/lib/libgcc_s*.dll $PREFIX/bin + fi + elif [[ "${PKG_NAME}" != "gcc_impl"* ]]; then + # when building a cross compiler, above make line will clobber $PREFIX/lib/libgcc_s.so.1 + # and fail after some point for some architectures. To avoid that, we copy manually + pushd ${TARGET}/libgcc + mkdir -p ${PREFIX}/lib/gcc/${TARGET}/${gcc_version} + install -c -m 644 libgcc_eh.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgcc_eh.a + chmod 644 ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgcc_eh.a + ${TARGET}-ranlib ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}/libgcc_eh.a + + mkdir -p ${PREFIX}/${TARGET}/lib + if [[ "${triplet}" == *linux* ]]; then + install -c -m 644 ./libgcc_s.so.1 ${PREFIX}/${TARGET}/lib/libgcc_s.so.1 + cp $RECIPE_DIR/libgcc_s.so.ldscript ${PREFIX}/${TARGET}/lib/libgcc_s.so + else + # import library, not static library + install -c -m 644 ./shlib/libgcc_s.a ${PREFIX}/${TARGET}/lib/libgcc_s.a + fi + popd + fi + + # TODO :: Also do this for libgfortran (and libstdc++ too probably?) + if [[ -f ${TARGET}/libsanitizer/libtool ]]; then + sed -i.bak 's/.*cannot install.*/func_warning "Ignoring libtool error about cannot install to a directory not ending in"/' \ + ${TARGET}/libsanitizer/libtool + fi + for lib in libatomic libgomp libquadmath libitm libvtv libsanitizer/{a,l,ub,t}san; do + # TODO :: Also do this for libgfortran (and libstdc++ too probably?) + if [[ -f ${TARGET}/${lib}/libtool ]]; then + sed -i.bak 's/.*cannot install.*/func_warning "Ignoring libtool error about cannot install to a directory not ending in"/' \ + ${TARGET}/${lib}/libtool + fi + if [[ -d ${TARGET}/${lib} ]]; then + make -C ${TARGET}/${lib} prefix=${PREFIX} install-toolexeclibLTLIBRARIES + make -C ${TARGET}/${lib} prefix=${PREFIX} install-nodist_fincludeHEADERS || true + fi + done + + for lib in libgomp libquadmath; do + if [[ -d ${TARGET}/${lib} ]]; then + make -C ${TARGET}/${lib} prefix=${PREFIX} install-info + fi + done + +popd + +mkdir -p ${PREFIX}/lib + +if [[ "${PKG_NAME}" != "gcc_impl"* ]]; then + # no static libs + find ${PREFIX}/lib -name "*\.a" -exec rm -rf {} \; +fi +# no libtool files +find ${PREFIX}/lib -name "*\.la" -exec rm -rf {} \; + +if [[ "${PKG_NAME}" != gcc_impl* ]]; then + # mv ${PREFIX}/${TARGET}/lib/* ${PREFIX}/lib + # clean up empty folder + rm -rf ${PREFIX}/lib/gcc + rm -rf ${PREFIX}/lib/lib{a,l,ub,t}san.so* + + # Install Runtime Library Exception + install -Dm644 ${SRC_DIR}/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION +fi + +rm -f ${PREFIX}/share/info/dir diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgfortran.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..031da5eca76ae9762aa193eb3310b7923fd844c6 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgfortran.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +rm -f ${PREFIX}/lib/libgfortran* || true + +if [[ "${TARGET}" == *mingw* ]]; then + mkdir -p ${PREFIX}/bin/ + cp ${SRC_DIR}/build/${TARGET}/libgfortran/.libs/libgfortran*.dll ${PREFIX}/bin/ +else + mkdir -p ${PREFIX}/lib + cp -f --no-dereference ${SRC_DIR}/build/${TARGET}/libgfortran/.libs/libgfortran*.so* ${PREFIX}/lib/ +fi + +# Install Runtime Library Exception +install -Dm644 $SRC_DIR/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/libgfortran/RUNTIME.LIBRARY.EXCEPTION diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgomp.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgomp.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdd189f59dd81af7df42846c40b9300bf64dcd1e --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libgomp.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh + +cd build + +make -C ${triplet}/libgomp prefix=${PREFIX} install-toolexeclibLTLIBRARIES +rm ${PREFIX}/lib/libgomp.a ${PREFIX}/lib/libgomp.la + +if [[ "$target_platform" == "linux-"* ]]; then + rm ${PREFIX}/lib/libgomp.so.1 + rm ${PREFIX}/lib/libgomp.so + ln -sf ${PREFIX}/lib/libgomp.so.${libgomp_ver} ${PREFIX}/lib/libgomp.so +else + rm ${PREFIX}/lib/libgomp.dll.a +fi + +# Install Runtime Library Exception +install -Dm644 ${SRC_DIR}/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION.gomp_copy diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libsanitizer.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libsanitizer.sh new file mode 100644 index 0000000000000000000000000000000000000000..572f24716d0ca94594bb4e3a306bad8c6812c64a --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libsanitizer.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +export CHOST="${triplet}" + +mkdir -p ${PREFIX}/lib + +pushd ${SRC_DIR}/build + + # TODO :: Also do this for libgfortran (and libstdc++ too probably?) + sed -i.bak 's/.*cannot install.*/func_warning "Ignoring libtool error about cannot install to a directory not ending in"/' \ + ${CHOST}/libsanitizer/libtool + for lib in libsanitizer/{a,l,ub,t}san; do + # TODO :: Also do this for libgfortran (and libstdc++ too probably?) + if [[ -f ${CHOST}/${lib}/libtool ]]; then + sed -i.bak 's/.*cannot install.*/func_warning "Ignoring libtool error about cannot install to a directory not ending in"/' \ + ${CHOST}/${lib}/libtool + fi + if [[ -d ${CHOST}/${lib} ]]; then + make -C ${CHOST}/${lib} prefix=${PREFIX} install-toolexeclibLTLIBRARIES + make -C ${CHOST}/${lib} prefix=${PREFIX} install-nodist_fincludeHEADERS || true + fi + done + +popd + +# no static libs +find ${PREFIX}/lib -name "*\.a" -exec rm -rf {} \; +# no libtool files +find ${PREFIX}/lib -name "*\.la" -exec rm -rf {} \; diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libstdc++-devel.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libstdc++-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..63b0439991dbb35a966fa02069d04899b13420f2 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libstdc++-devel.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +export CHOST="${triplet}" + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +# export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${CHOST}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + +make -C $CHOST/libstdc++-v3/src prefix=${PREFIX} install +make -C $CHOST/libstdc++-v3/include prefix=${PREFIX} install +make -C $CHOST/libstdc++-v3/libsupc++ prefix=${PREFIX} install + +mkdir -p ${PREFIX}/lib/gcc/${CHOST}/${gcc_version} +mkdir -p ${PREFIX}/${CHOST}/lib + +if [[ "$target_platform" == "$cross_target_platform" ]]; then + mv $PREFIX/lib/lib*.a ${PREFIX}/lib/gcc/${CHOST}/${gcc_version}/ + if [[ "$target_platform" == linux-* ]]; then + mv ${PREFIX}/lib/libstdc++.so* ${PREFIX}/${CHOST}/lib + else + rm ${PREFIX}/bin/libstdc++*.dll + fi +else + mv $PREFIX/${CHOST}/lib/lib*.a ${PREFIX}/lib/gcc/${CHOST}/${gcc_version}/ +fi + +popd + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libstdc++.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libstdc++.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d878849ae7b3d9282a04a885cd29df782b7d038 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-libstdc++.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +export CHOST="${triplet}" + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +#export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${CHOST}/buildtools/bin:${SRC_DIR}/.build/tools/bin:${PATH} + +pushd ${SRC_DIR}/build + + make -C ${CHOST}/libstdc++-v3/src prefix=${PREFIX} install-toolexeclibLTLIBRARIES + make -C ${CHOST}/libstdc++-v3/po prefix=${PREFIX} install + +popd + +mkdir -p ${PREFIX}/lib +#mv ${PREFIX}/${CHOST}/lib/* ${PREFIX}/lib + +# no static libs +find ${PREFIX}/lib -name "*\.a" -exec rm -rf {} \; +# no libtool files +find ${PREFIX}/lib -name "*\.la" -exec rm -rf {} \; + +# Install Runtime Library Exception +install -Dm644 ${SRC_DIR}/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/libstdc++/RUNTIME.LIBRARY.EXCEPTION diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-openmp_impl.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-openmp_impl.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4ebad09aa18a43830fe2e9be9be97c9e965c354 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-openmp_impl.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh +set -e -x + +mkdir -p ${PREFIX}/lib + +pushd ${PREFIX}/lib/ + +if [[ "${TARGET}" != *mingw* ]]; then + ln -s libgomp.so.${libgomp_ver} libgomp.so.${libgomp_ver:0:1} +fi +popd diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-symlinks.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-symlinks.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd4887286b42cf9e1effd5a1931b9dc3224a3d9a --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/install-symlinks.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +source ${RECIPE_DIR}/setup_compiler.sh + +if [[ "$target_platform" == "win-"* ]]; then + symlink_or_copy="cp" +else + symlink_or_copy="ln -sf" +fi + +if [[ "${PKG_NAME}" == "gcc" ]]; then + for tool in cc cpp gcc gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + $symlink_or_copy ${PREFIX}/bin/${triplet}-${tool}${EXEEXT} ${PREFIX}/bin/${tool}${EXEEXT} + done +elif [[ "${PKG_NAME}" == "gxx" ]]; then + $symlink_or_copy ${PREFIX}/bin/${triplet}-g++${EXEEXT} ${PREFIX}/bin/g++${EXEEXT} + $symlink_or_copy ${PREFIX}/bin/${triplet}-c++${EXEEXT} ${PREFIX}/bin/c++${EXEEXT} +elif [[ "${PKG_NAME}" == "gfortran" ]]; then + $symlink_or_copy ${PREFIX}/bin/${triplet}-gfortran${EXEEXT} ${PREFIX}/bin/gfortran${EXEEXT} +fi diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/libgcc_s.so.ldscript b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/libgcc_s.so.ldscript new file mode 100644 index 0000000000000000000000000000000000000000..c8e92242fc5b32888222e279088df08e791bd52c --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/libgcc_s.so.ldscript @@ -0,0 +1,4 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library. */ +GROUP ( libgcc_s.so.1 -lgcc ) diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/make_tool_links.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/make_tool_links.sh new file mode 100644 index 0000000000000000000000000000000000000000..286fdf030565214fd36a32ceff74659c12b23cea --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/make_tool_links.sh @@ -0,0 +1,20 @@ +# When host=target, gcc installs un-prefixed tools together with prefixed-tools +# In the case of cpp, only un-prefixed cpp. Let's copy the un-prefixed tool +# to prefix-tool and delete the un-prefixed one to get back ct-ng behaviour +for tool in gcc g++ gfortran cpp gcc-ar gcc-nm gcc-ranlib c++; do + if [ -f ${PREFIX}/bin/${tool}${EXEEXT} ]; then + if [ ! -f ${PREFIX}/bin/${triplet}-${tool}${EXEEXT} ]; then + cp ${PREFIX}/bin/${tool}${EXEEXT} ${PREFIX}/bin/${triplet}-${tool}${EXEEXT} + fi + rm ${PREFIX}/bin/${tool}${EXEEXT} + fi +done + +# Make a symlink from new gcc vendor to the old one +for exe in `ls ${PREFIX}/bin/${triplet}-*`; do + nm=`basename ${exe}` + new_nm=${nm/"${triplet}-"/"${old_triplet}-"} + if [ ! -f ${PREFIX}/bin/${new_nm} ]; then + ln -s ${exe} ${PREFIX}/bin/${new_nm} + fi +done diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/meta.yaml b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f4c582a60ca35403819cb96158a74046d71f5539 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/meta.yaml @@ -0,0 +1,634 @@ +{% set version = gcc_version %} +{% set build_num = 13 %} + +# libgcc-devel is a noarch: generic package that is built for +# cross-compilers as well. Instead of skipping for cross-compilers, +# let's prioritize the native compilers package +{% if target_platform == cross_target_platform %} +{% set libgcc_devel_build_num = build_num + 100 %} +{% else %} +{% set libgcc_devel_build_num = build_num %} +{% endif %} + +{% if cross_target_platform is not defined %} +{% set cross_target_platform = "linux-64" %} +{% endif %} + +{% if cross_target_platform.startswith("win-") %} +{% set runtime_suffix = "" %} +{% else %} +{% set runtime_suffix = "-ng" %} +{% endif %} + + +package: + name: gcc_compilers + version: {{ version }} + +source: + - url: https://ftp.gnu.org/gnu/gcc/gcc-{{ version }}/gcc-{{ version }}.tar.gz + sha256: 8cb4be3796651976f94b9356fa08d833524f62420d6292c5033a9a26af315078 # [gcc_version == "13.2.0"] + sha256: 11275aa7bb34cd8ab101d01b341015499f8d9466342a2574ece93f954d92273b # [gcc_version == "12.3.0"] + sha256: af828619dd1970734dda3cfb792ea3f2cba61b5a00170ba8bce4910749d73c07 # [gcc_version == "11.4.0"] + patches: + {% if cross_target_platform.startswith("linux-") %} + - patches/0021-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch + {% endif %} + - patches/0022-cross-compile-older-glibc.patch # [cross_target_stdlib_version == "2.12" and target_platform != "linux-64"] + - patches/old-allow-commands-in-main-specfile.patch # [int(gcc_maj_ver) < 12] + - patches/new-allow-commands-in-main-specfile.patch # [int(gcc_maj_ver) >= 12] + - patches/libgomp-support-environ-null.patch # [int(gcc_maj_ver) == 13] + {% if cross_target_platform.startswith("win-") %} + - patches/mingw/0002-Relocate-libintl.patch + - patches/mingw/0003-Windows-Follow-Posix-dir-exists-semantics-more-close.patch + - patches/mingw/0005-Windows-Don-t-ignore-native-system-header-dir.patch + - patches/mingw/0006-Windows-New-feature-to-allow-overriding.patch + - patches/mingw/0007-Build-EXTRA_GNATTOOLS-for-Ada.patch + - patches/mingw/0008-Prettify-linking-no-undefined.patch + - patches/mingw/0011-Enable-shared-gnat-implib.patch + - patches/mingw/0012-Handle-spaces-in-path-for-default-manifest.patch + - patches/mingw/0014-gcc-9-branch-clone_function_name_1-Retain-any-stdcall-suffix.patch + - patches/mingw/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch + - patches/mingw/0021-PR14940-Allow-a-PCH-to-be-mapped-to-a-different-addr.patch + - patches/mingw/0140-gcc-diagnostic-color.patch + - patches/mingw/0200-add-m-no-align-vector-insn-option-for-i386.patch + - patches/mingw/0300-override-builtin-printf-format.patch + - patches/mingw/2000-enable-rust.patch + - patches/mingw/2001-fix-building-rust-on-mingw-w64.patch + - patches/mingw/2f7e7bfa3c6327793cdcdcb5c770b93cecd49bd0.patch + - patches/mingw/3eeb4801d6f45f6250fc77a6d3ab4e0115f8cfdd.patch + - patches/mingw/777aa930b106fea2dd6ed9fe22b42a2717f1472d.patch + {% endif %} + +build: + number: {{ build_num }} + skip: True # [not (linux or win) or (int(gcc_maj_ver) < 13 and cross_target_platform == "win-64") or (win and cross_target_platform != "win-64")] + detect_binary_files_with_prefix: False + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + +requirements: + build: + # Build dependencies are installed in setup_compilers.sh due to + # conda-build bugs + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + +outputs: + - name: libgcc-devel_{{ cross_target_platform }} + script: install-libgcc-devel.sh + build: + noarch: generic + number: {{ libgcc_devel_build_num }} + detect_binary_files_with_prefix: False + missing_dso_whitelist: + - "*" + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + run: + - __unix # [unix] + - __win # [win] + test: + commands: + - test -f ${PREFIX}/lib/gcc/{{ triplet }}/{{ gcc_version }}/crtbegin.o + - test -f ${PREFIX}/lib/gcc/{{ triplet }}/{{ gcc_version }}/libgcc_eh.a + - test -f ${PREFIX}/lib/gcc/{{ triplet }}/{{ gcc_version }}/libgcc.a + {% if cross_target_platform.startswith("linux-") %} + - test -f ${PREFIX}/{{ triplet }}/lib/libgcc_s.so + {% else %} + - test -f ${PREFIX}/{{ triplet }}/lib/libgcc_s.a + {% endif %} + about: + summary: The GNU C development libraries and object files + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libstdcxx-devel_{{ cross_target_platform }} + script: install-libstdc++-devel.sh + build: + noarch: generic + number: {{ libgcc_devel_build_num }} + detect_binary_files_with_prefix: False + missing_dso_whitelist: + - "*" + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + run: + - __unix # [unix] + - __win # [win] + test: + commands: + - test -f ${PREFIX}/lib/gcc/{{ triplet }}/{{ gcc_version }}/libstdc++.a + - test -f ${PREFIX}/lib/gcc/{{ triplet }}/{{ gcc_version }}/libstdc++fs.a + - test -f ${PREFIX}/lib/gcc/{{ triplet }}/{{ gcc_version }}/libsupc++.a + - test -f ${PREFIX}/lib/gcc/{{ triplet }}/{{ gcc_version }}/include/c++/cstdio + {% if cross_target_platform.startswith("linux-") %} + - test -f ${PREFIX}/{{ triplet }}/lib/libstdc++.so + {% else %} + - test -f ${PREFIX}/lib/gcc/{{ triplet }}/{{ gcc_version }}/libstdc++.dll.a + {% endif %} + about: + summary: The GNU C++ headers and development libraries + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gcc_impl_{{ cross_target_platform }} + script: install-gcc.sh + build: + number: {{ build_num }} + detect_binary_files_with_prefix: False + missing_dso_whitelist: + - '*' + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + - {{ pin_subpackage("libgomp", exact=True) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libstdcxx" ~ runtime_suffix, exact=True) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libgcc" ~ runtime_suffix, exact=True) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libgfortran" ~ libgfortran_soname) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libsanitizer", exact=True) }} # [target_platform == cross_target_platform and not win] + run: + - binutils_impl_{{ cross_target_platform }} >={{ binutils_version }} + - {{ pin_subpackage("libgcc-devel_" ~ cross_target_platform, exact=True) }} + - {{ pin_subpackage("libsanitizer", exact=True) }} # [target_platform == cross_target_platform and not win] + # libstdcxx-ng is a runtime dep of gcc because LTO requires it. + - {{ pin_subpackage("libstdcxx" ~ runtime_suffix, max_pin=None) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libgcc" ~ runtime_suffix, max_pin=None) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libgomp", max_pin=None) }} # [target_platform == cross_target_platform] + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + run_exports: + # impose this requirement across the build/host boundary + strong: + - libgcc{{ runtime_suffix }} >={{ gcc_version }} + test: + requires: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + files: + - tests + commands: + - echo {{ old_triplet }} + - echo {{ c_stdlib }} + - echo {{ c_stdlib_version }} + - test -f ${PREFIX}/{{ triplet }}/lib/libgomp.so # [target_platform == cross_target_platform] + - test `readlink ${PREFIX}/{{ triplet }}/lib/libgomp.so` == "../../lib/libgomp.so" # [target_platform == cross_target_platform] + - test -f ${PREFIX}/bin/{{ old_triplet }}-gcc + - test -f ${PREFIX}/bin/{{ old_triplet }}-cpp + - test -f ${PREFIX}/bin/{{ triplet }}-gcc + - test -f ${PREFIX}/bin/{{ triplet }}-cpp + - test ! -f ${PREFIX}/bin/gcc + - test ! -f ${PREFIX}/bin/cpp + - CC=$(${PREFIX}/bin/*-gcc -dumpmachine)-gcc + - ${CC} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v -Wl,-v -march=native # [target_platform == cross_target_platform and (x86_64 or s390x)] + # This test does not work well with QEMU + - ${CC} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v -Wl,-v -mcpu=native # [target_platform == cross_target_platform and (not x86_64 and not s390x and not ppc64le)] + - ${CC} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v -fsanitize=address # [cross_target_platform != "win-64"] + - ${CC} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v # [cross_target_platform != "win-64"] + - ${CC} -Wall c_aligned.o -o c_aligned -v && ./c_aligned # [cross_target_platform == target_platform and cross_target_platform != "win-64"] + - ${CC} -Wall c_aligned.o -o c_aligned -Wl,-rpath,/foo && {{ triplet }}-readelf -d c_aligned | grep RPATH | grep "/foo:${PREFIX}/lib" # [cross_target_platform == target_platform and cross_target_platform != "win-64"] + - ${CC} -Wall tests/hello_world.c -c -o hello_world.o -v + - ${CC} -Wall hello_world.o -o hello_world -v + {% if cross_target_platform.startswith("linux-") %} + - test -f ${PREFIX}/{{ triplet }}/lib/libgcc_s.so + - test -f ${PREFIX}/{{ triplet }}/lib/libsanitizer.spec + - test -f ${PREFIX}/{{ triplet }}/lib/libasan_preinit.o + {% else %} + - test -f ${PREFIX}/{{ triplet }}/lib/libgcc_s.a + - test -f ${PREFIX}/lib/gcc/{{ triplet }}/{{ gcc_version }}/libquadmath.a + - test -f ${PREFIX}/lib/gcc/{{ triplet }}/{{ gcc_version }}/libgomp.a + {% endif %} + - test -f ${PREFIX}/{{ triplet }}/lib/libgomp.spec + about: + summary: GNU C Compiler + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gcc + script: install-symlinks.sh + build: + skip: true # [target_platform != cross_target_platform] + requirements: + host: + - gcc_impl_{{ target_platform }} {{ gcc_version }}.* + run: + - gcc_impl_{{ target_platform }} {{ gcc_version }}.* + test: + commands: + - ${PREFIX}/bin/gcc -v + - ${PREFIX}/bin/gcov -v + about: + summary: GNU C native compiler (symlinks) + home: https://github.com/conda-forge/ctng-compilers-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: conda-gcc-specs + script: install-conda-specs.sh + build: + number: {{ build_num }} + detect_binary_files_with_prefix: False + skip: True # [cross_target_platform != target_platform] + requirements: + build: + run: + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, max_pin='x.x.x.x') }} + test: + files: + - tests + commands: + - specdir=$PREFIX/lib/gcc/{{ triplet }}/{{ gcc_version }} + - test -f $specdir/conda.specs + - CC=$(${PREFIX}/bin/*-gcc -dumpmachine)-gcc + - echo | ${CC} -E -v -x c - |& grep '^Reading specs from' | awk '{print $NF}' | xargs readlink -e | awk -v ORS= '{print $1":"}' | grep "${specdir}/specs:${specdir}/conda.specs:" + - cp tests/libhowdy.h $PREFIX/include/ + - ${CC} -shared -fpic -o $PREFIX/lib/libhowdy.so tests/libhowdy.c + - ${CC} -o howdy-dso tests/howdy-dso.c -lhowdy + - ./howdy-dso + - grep RPATH <({{ triplet }}-readelf -d howdy-dso) + - "! grep RUNPATH <({{ triplet }}-readelf -d howdy-dso)" + - ${CC} -Wl,-enable-new-dtags -o howdy-dso-runpath tests/howdy-dso.c -lhowdy + - ./howdy-dso-runpath + - "! grep RPATH <({{ triplet }}-readelf -d howdy-dso-runpath)" + - grep RUNPATH <({{ triplet }}-readelf -d howdy-dso-runpath) + - echo | ${CC} -E -Wp,-v -x c - |& awk '/include <\.\.\.> search starts/,/^End of search/ {print}' | tail -n2 | head -n1 | grep "$PREFIX/include" + - echo | ${CC} -isystem "$PREFIX/include" -E -Wp,-v -x c - |& awk '/include <\.\.\.> search starts/, /^End of search/ {print}' | head -n2 | tail -n1 | grep "$PREFIX/include" + + about: + summary: conda-specific specfile for GNU C/C++ Compiler + description: | + When installed, this optional package provides a specfile that + directs gcc (and g++ or gfortran) to automatically: + * search for includes in $PREFIX/include + * link libraries in $PREFIX/lib + * set RPATH to $PREFIX/lib + * use RPATH instead of the newer RUNPATH + This package is intended to aid usability of the compiler + toolchain as a replacement for system-installed compilers. + It should not be used in recipes. Use the 'compiler()' + jinja function as described on + https://conda-forge.org/docs/maintainer/knowledge_base.html#dep-compilers + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + doc_url: https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html + + - name: gxx_impl_{{ cross_target_platform }} + script: install-g++.sh + build: + number: {{ build_num }} + detect_binary_files_with_prefix: False + missing_dso_whitelist: + - "*" + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + # For cpp and crt{i,n}.o + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, exact=True) }} + run: + # For cpp and crt{i,n}.o + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, exact=True) }} + # not needed due to pinning above but marks this build as using the new sysroots + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + - {{ pin_subpackage("libstdcxx-devel_" ~ cross_target_platform, exact=True) }} + run_exports: + # impose this requirement across the build/host boundary + strong: + - libstdcxx{{ runtime_suffix }} >={{ gcc_version }} + test: + requires: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + files: + - tests + commands: + - test -f ${PREFIX}/bin/{{ old_triplet }}-g++ + - test -f ${PREFIX}/bin/{{ triplet }}-g++ + - CXX=$(${PREFIX}/bin/*-gcc -dumpmachine)-g++ + - ${CXX} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o --std=c++17 # [cross_target_platform != "win-64"] + - ${CXX} -Wall cpp_aligned.o -o cpp_aligned --std=c++17 && ./cpp_aligned # [cross_target_platform == target_platform and cross_target_platform != "win-64"] + - ${CXX} -Wall tests/hello_world.cpp -c -o hello_world.o --std=c++17 + - ${CXX} -Wall hello_world.o -o hello_world --std=c++17 + about: + summary: GNU C++ Compiler + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gxx + script: install-symlinks.sh + build: + skip: true # [target_platform != cross_target_platform] + requirements: + host: + - gxx_impl_{{ target_platform }} {{ gcc_version }}.* + - gcc {{ gcc_version }}.* + run: + - gxx_impl_{{ target_platform }} {{ gcc_version }}.* + - gcc {{ gcc_version }}.* + test: + commands: + - ${PREFIX}/bin/g++ -v + - ${PREFIX}/bin/gcc -v + about: + summary: GNU C++ native compiler (symlinks) + home: https://github.com/conda-forge/ctng-compilers-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: gfortran_impl_{{ cross_target_platform }} + script: install-gfortran.sh + build: + number: {{ build_num }} + detect_binary_files_with_prefix: False + missing_dso_whitelist: + - "*" + ignore_run_exports_from: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + requirements: + build: + host: + # For cpp and crt{i,n}.o + - {{ pin_subpackage("gcc_impl_" ~ cross_target_platform, exact=True) }} + # not needed due to pinning above but marks this build as using the new sysroots + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + run: + # For cpp and crt{i,n}.o + - gcc_impl_{{ cross_target_platform }} >={{ gcc_version }} + - {{ pin_subpackage("libgfortran" ~ libgfortran_soname, max_pin=None) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libgcc" ~ runtime_suffix, max_pin=None) }} # [target_platform == cross_target_platform] + - {{ pin_subpackage("libstdcxx" ~ runtime_suffix, max_pin=None) }} # [target_platform == cross_target_platform] + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + run_exports: + # impose this requirement across the build/host boundary + strong: + - libgfortran{{ libgfortran_soname }} {{ gcc_version }}.* + - libgcc{{ runtime_suffix }} >={{ gcc_version }} + test: + requires: + - cmake >=3.11 # [x86_64 or aarch64 or ppc64le] + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + commands: + {% if cross_target_platform.startswith("linux-") %} + - test -f ${PREFIX}/{{ triplet }}/lib/libgfortran.so + {% else %} + - test -f ${PREFIX}/{{ triplet }}/lib/libgfortran.dll.a + {% endif %} + - test -f ${PREFIX}/{{ triplet }}/lib/libgfortran.a + - test -f ${PREFIX}/bin/{{ old_triplet }}-gfortran + - test -f ${PREFIX}/bin/{{ triplet }}-gfortran + - find $PREFIX/lib -iname omp_lib.mod | grep '.' + - find $PREFIX/lib -iname omp_lib.h | grep '.' + - find $PREFIX/lib -iname ISO_Fortran_binding.h | grep '.' + - echo {{ gcc_maj_ver }} + - pushd tests/fortomp + - sh test_fort.sh # [target_platform == cross_target_platform and (x86_64 or aarch64 or ppc64le)] + files: + - tests/fortomp/* + about: + summary: GNU Fortran Compiler + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gfortran + script: install-symlinks.sh + build: + skip: true # [target_platform != cross_target_platform] + requirements: + host: + - gfortran_impl_{{ target_platform }} {{ gcc_version }}.* + - gcc_impl_{{ target_platform }} {{ gcc_version }}.* + - gcc {{ gcc_version }}.* + run: + - gfortran_impl_{{ target_platform }} {{ gcc_version }}.* + - gcc_impl_{{ target_platform }} {{ gcc_version }}.* + - gcc {{ gcc_version }}.* + test: + commands: + - ${PREFIX}/bin/gfortran -v + - ${PREFIX}/bin/gcc -v + about: + summary: GNU Fortran native compiler (symlinks) + home: https://github.com/conda-forge/ctng-compilers-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: libstdcxx{{ runtime_suffix }} + target: {{ cross_target_platform }} + script: install-libstdc++.sh + build: + number: {{ build_num }} + detect_binary_files_with_prefix: False + skip: True # [target_platform != cross_target_platform] + missing_dso_whitelist: + - "*" + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + - {{ pin_subpackage("libgcc" ~ runtime_suffix, exact=True) }} + run: + - {{ pin_subpackage("libgcc" ~ runtime_suffix, exact=True) }} + test: + commands: + - test -f ${PREFIX}/lib/libstdc++.so + about: + summary: The GNU C++ Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libsanitizer + target: {{ cross_target_platform }} + script: install-libsanitizer.sh + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + run: + - libgcc{{ runtime_suffix }} >={{ gcc_version }} + - libstdcxx{{ runtime_suffix }} >={{ gcc_version }} + build: + number: {{ build_num }} + detect_binary_files_with_prefix: False + skip: True # [target_platform != cross_target_platform or win] + missing_dso_whitelist: + - "*" + run_exports: + - libsanitizer {{ gcc_version }} + test: + requires: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + - gcc_impl_{{ cross_target_platform }} + commands: + - test -f ${PREFIX}/lib/libasan.so + - file ${PREFIX}/bin/{{ triplet }}-gcc + - echo 'void main(){}' | {{ triplet }}-gcc -fsanitize=address -Wl,--fatal-warnings -x c - + about: + summary: The GCC runtime libraries for sanitizers + home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libgomp + target: {{ cross_target_platform }} + script: install-libgomp.sh + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + run: + - _libgcc_mutex {{ _libgcc_mutex }} # [linux64 or ppc64le] + run_constrained: + - msys2-conda-epoch <0.0a0 # [win] + build: + number: {{ build_num }} + detect_binary_files_with_prefix: False + skip: True # [target_platform != cross_target_platform] + missing_dso_whitelist: + - "*" + run_exports: + strong: + - {{ pin_subpackage("_openmp_mutex", max_pin=None) }} + test: + requires: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + commands: + - test -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver }} + - test ! -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }} + about: + summary: The GCC OpenMP implementation. + home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libgcc{{ runtime_suffix }} + target: {{ cross_target_platform }} + script: install-libgcc-no-gomp.sh + requirements: + build: + host: + - {{ pin_subpackage("libgomp", exact=True) }} + - {{ pin_subpackage('_openmp_mutex', exact=True) }} + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + run: + - _libgcc_mutex {{ _libgcc_mutex }} # [linux64 or ppc64le] + - {{ pin_subpackage("_openmp_mutex", max_pin=None) }} + run_constrained: + - {{ pin_subpackage("libgomp", exact=True) }} + - msys2-conda-epoch <0.0a0 # [win] + build: + number: {{ build_num }} + detect_binary_files_with_prefix: False + skip: True # [target_platform != cross_target_platform] + missing_dso_whitelist: + - "*" + rpaths_patcher: patchelf + test: + requires: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} + commands: + - test -f ${PREFIX}/lib/libgcc_s.so + - test -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }} + - test `readlink ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }}` == "libgomp.so.{{ libgomp_ver }}" + about: + summary: The GCC low-level runtime library + home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: _openmp_mutex + script: install-openmp_impl.sh + version: {{ openmp_ver }} + requirements: + build: + host: + - {{ pin_subpackage('libgomp', exact=True) }} + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + run: + - _libgcc_mutex {{ _libgcc_mutex }} # [linux64 or ppc64le] + - libgomp >=7.5.0 + run_constrained: + # conflict with previous name + - openmp_impl 9999 + - msys2-conda-epoch <0.0a0 # [win] + build: + string: 2_gnu + skip: True # [target_platform != cross_target_platform] + run_exports: + strong: + - {{ pin_subpackage("_openmp_mutex", max_pin=None) }} + test: + commands: + - test -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }} + - test `readlink ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }}` == "libgomp.so.{{ libgomp_ver }}" + about: + summary: OpenMP Implementation Mutex + license: BSD-3-Clause + license_file: LICENSE + home: https://github.com/conda-forge/ctng-compilers-feedstock + + - name: libgfortran{{ libgfortran_soname }} + target: {{ cross_target_platform }} + script: install-libgfortran.sh + build: + number: {{ build_num }} + detect_binary_files_with_prefix: False + skip: True # [target_platform != cross_target_platform] + missing_dso_whitelist: + - "*" + requirements: + build: + host: + - {{ cross_target_stdlib }}_{{ cross_target_platform }} {{ cross_target_stdlib_version }} + run: + - libgcc{{ runtime_suffix }} >={{ gcc_version }} + run_constrained: + - libgfortran{{ runtime_suffix }} {{ gcc_version }} + test: + commands: + - test -f ${PREFIX}/lib/libgfortran.so + about: + summary: The GNU Fortran Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libgfortran{{ runtime_suffix }} + target: {{ cross_target_platform }} + build: + skip: True # [target_platform != cross_target_platform] + number: {{ build_num }} + requirements: + run: + - {{ pin_subpackage('libgfortran' ~ libgfortran_soname, exact=True) }} + test: + commands: + - test -f ${PREFIX}/lib/libgfortran.so + about: + summary: The GNU Fortran Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + +about: + summary: GNU Compiler Collection + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + license_file: + - COPYING + - COPYING.LIB + - COPYING3 + - COPYING3.LIB + +extra: + feedstock-name: ctng-compilers-feedstock + recipe-maintainers: + - timsnyder + - xhochy + - isuruf + - beckermr diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/0021-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/0021-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch new file mode 100644 index 0000000000000000000000000000000000000000..86c60f386c87a1f1809c6639c4ab4e156c47c674 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/0021-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch @@ -0,0 +1,59 @@ +From 6c5095b0c956bc0d16a134370c8ec0d5dfba2ee2 Mon Sep 17 00:00:00 2001 +From: Nehal J Wani +Date: Tue, 12 Jun 2018 05:26:24 +0000 +Subject: [PATCH] Hardcode HAVE_ALIGNED_ALLOC=1 in libstdc++-v3/configure + +--- + libstdc++-v3/configure | 15 +++++++++++++++ + 1 file changed, 15 insertions(+) + +diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure +index ba094be6f..5a16ce7c7 100755 +--- a/libstdc++-v3/configure ++++ b/libstdc++-v3/configure +@@ -28130,6 +28130,11 @@ _ACEOF + fi + done + ++# The check above works only if aligned_alloc is present as a symbol in libc.so ++# Since we provide a header only implementation, override the value here ++cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_aligned_alloc" | $as_tr_cpp` 1 ++_ACEOF + + # For iconv support. + +@@ -53362,6 +53367,9 @@ _ACEOF + fi + done + ++cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_aligned_alloc" | $as_tr_cpp` 1 ++_ACEOF + ;; + + *-fuchsia*) +@@ -59995,6 +60003,9 @@ done + + + ++cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_aligned_alloc" | $as_tr_cpp` 1 ++_ACEOF + + + +@@ -66125,6 +66136,10 @@ _ACEOF + fi + done + ++cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_aligned_alloc" | $as_tr_cpp` 1 ++_ACEOF ++ + ;; + *-netbsd*) + SECTION_FLAGS='-ffunction-sections -fdata-sections' +-- +2.17.0 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/0022-cross-compile-older-glibc.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/0022-cross-compile-older-glibc.patch new file mode 100644 index 0000000000000000000000000000000000000000..04eabac4b4103c3e551c71a78747239419adf215 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/0022-cross-compile-older-glibc.patch @@ -0,0 +1,11 @@ +--- libgomp/secure_getenv.h 2021-07-14 23:18:04.405198104 +0000 ++++ libgomp/secure_getenv.h 2021-07-14 23:18:44.306179642 +0000 +@@ -25,7 +25,7 @@ + #define _SECURE_GETENV_H 1 + + /* Secure getenv() which returns NULL if running as SUID/SGID. */ +-#ifndef HAVE_SECURE_GETENV ++#if __x86_64__ + #if defined (HAVE_UNISTD_H) && defined (HAVE_GETUID) \ + && defined (HAVE_GETEUID) && defined (HAVE_GETGID) \ + && defined (HAVE_GETEGID) diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/libgomp-support-environ-null.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/libgomp-support-environ-null.patch new file mode 100644 index 0000000000000000000000000000000000000000..f65132e9029bbd1485c1ba1eab606c6e0bed3142 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/libgomp-support-environ-null.patch @@ -0,0 +1,24 @@ +From caf4254c93fbf2e82a973a6c53ca51dcdd65020a Mon Sep 17 00:00:00 2001 +From: Silvio Traversaro +Date: Fri, 15 Sep 2023 17:22:36 +0200 +Subject: [PATCH] Support case in which environ is NULL + +Fix for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111413 +Backport https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=15345980633c502f0486a2e40e96224f49134130 +--- + libgomp/env.c | 2 +- + 1 file changed, 1 insertion(+), 0 deletion(-) + +diff --git a/libgomp/env.c b/libgomp/env.c +index f24484d7f707..8285c65ebb8e 100644 +--- a/libgomp/env.c ++++ b/libgomp/env.c +@@ -2224,7 +2224,8 @@ initialize_env (void) + none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX); + initialize_icvs (&none->icvs); + ++ if (environ) + for (env = environ; *env != 0; env++) + { + if (!startswith (*env, "OMP_")) + continue; diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0002-Relocate-libintl.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0002-Relocate-libintl.patch new file mode 100644 index 0000000000000000000000000000000000000000..d651eec6c194efeeefce1f9567b7b2c37322013c --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0002-Relocate-libintl.patch @@ -0,0 +1,856 @@ +From 88f975b3a349be6b927d8f19958b1c20d7248264 Mon Sep 17 00:00:00 2001 +From: Erwin Waterlander +Date: Wed, 5 Aug 2015 23:36:03 +0100 +Subject: [PATCH] Relocate libintl + +The relocatex-libintl patch adds builtin relocation for executables to the +libintl dll. With this patch the programs are automatically relocatable. There +is no need anymore to add relocation code to your program when you use this +libintl DLL. + +The patch was ported from the GnuWin32 port of libintl, which has also builtin +relacation support. + +At the moment the relocation support is only active if you compile with MinGW +for Windows. If you compile for Unix/Linux/Cygwin the functionality is +unchanged. + +See also: +http://waterlan.home.xs4all.nl/libintl.html +http://sourceforge.net/tracker/?func=detail&atid=302435&aid=3003879&group_id=2435 +GnuWin32: http://gnuwin32.sourceforge.net/ + +Great thanks to GnuWin32 maintainer Kees Zeelenberg. + +Erwin Waterlander +waterlan@xs4all.nl +http://waterlan.home.xs4all.nl/ + +Additional "bogus paths for *nix-style paths" fix by Alexey Pavlov + +[jes: fix for 64-bit] + +Signed-off-by: Johannes Schindelin +--- + intl/Makefile.in | 8 +- + intl/bindtextdom.c | 22 +++ + intl/canonicalize.c | 344 ++++++++++++++++++++++++++++++++++++++++++++ + intl/canonicalize.h | 18 +++ + intl/relocatex.c | 284 ++++++++++++++++++++++++++++++++++++ + intl/relocatex.h | 41 ++++++ + 6 files changed, 716 insertions(+), 1 deletion(-) + create mode 100644 intl/canonicalize.c + create mode 100644 intl/canonicalize.h + create mode 100644 intl/relocatex.c + create mode 100644 intl/relocatex.h + +diff --git a/intl/Makefile.in b/intl/Makefile.in +index 409d693c48e..e85c99b2abe 100644 +--- a/intl/Makefile.in ++++ b/intl/Makefile.in +@@ -57,6 +57,7 @@ MKID = @MKID@ + COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES) + + HEADERS = \ ++ canonicalize.h \ + gmo.h \ + gettextP.h \ + hash-string.h \ +@@ -66,6 +67,7 @@ HEADERS = \ + eval-plural.h \ + localcharset.h \ + relocatable.h \ ++ relocatex.h \ + libgnuintl.h + SOURCES = \ + bindtextdom.c \ +@@ -86,6 +88,8 @@ SOURCES = \ + plural-exp.c \ + localcharset.c \ + relocatable.c \ ++ relocatex.c \ ++ canonicalize.c \ + localename.c \ + log.c \ + osdep.c \ +@@ -109,6 +113,8 @@ OBJECTS = \ + plural-exp.o \ + localcharset.o \ + relocatable.o \ ++ relocatex.o \ ++ canonicalize.o \ + localename.o \ + log.o \ + osdep.o \ +@@ -169,7 +175,7 @@ install-info install-dvi install-ps install-pdf install-html: + $(OBJECTS): config.h libintl.h + bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \ + dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \ +-localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h ++localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h relocatex.h + dcigettext.o loadmsgcat.o: hash-string.h + explodename.o l10nflist.o: loadinfo.h + dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h plural-config.h +diff --git a/intl/bindtextdom.c b/intl/bindtextdom.c +index 6faac5756a3..1854b651b90 100644 +--- a/intl/bindtextdom.c ++++ b/intl/bindtextdom.c +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #ifdef _LIBC + # include +@@ -91,6 +92,12 @@ static void set_binding_values PARAMS ((const char *domainname, + const char **dirnamep, + const char **codesetp)); + ++#if ENABLE_RELOCATABLE ++# include "relocatex.h" ++#else ++# define relocate(pathname) (pathname) ++#endif ++ + /* Specifies the directory name *DIRNAMEP and the output codeset *CODESETP + to be used for the DOMAINNAME message catalog. + If *DIRNAMEP or *CODESETP is NULL, the corresponding attribute is not +@@ -352,8 +359,23 @@ BINDTEXTDOMAIN (domainname, dirname) + const char *domainname; + const char *dirname; + { ++/* + set_binding_values (domainname, &dirname, NULL); + return (char *) dirname; ++*/ ++ if (!dirname || !access(dirname, R_OK)) { ++ set_binding_values (domainname, &dirname, NULL); ++ return (char *) dirname; ++ } else { ++ char *locale_dirname, *installdir = strdup (dirname), *s; ++ if ((s = strrchr (installdir, '/'))) *s = '\0'; ++ if ((s = strrchr (installdir, '/'))) *s = '\0'; ++ locale_dirname = relocatex (installdir, dirname); ++ set_binding_values (domainname, (const char **) &locale_dirname, NULL); ++ if (installdir) ++ free (installdir); ++ return (char *) locale_dirname; ++ } + } + + /* Specify the character encoding in which the messages from the +diff --git a/intl/canonicalize.c b/intl/canonicalize.c +new file mode 100644 +index 00000000000..636df496e69 +--- /dev/null ++++ b/intl/canonicalize.c +@@ -0,0 +1,344 @@ ++/* Return the canonical absolute name of a given file. ++ Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#ifdef __WIN32__ ++# include ++# define WIN32_LEAN_AND_MEAN ++# include ++//# include ++#endif /* __WIN32__ */ ++#include "canonicalize.h" ++ ++#ifndef MAXSYMLINKS ++# define MAXSYMLINKS 20 ++#endif ++ ++#ifndef __set_errno ++# define __set_errno(Val) errno = (Val) ++#endif ++ ++# ifdef VMS ++ /* We want the directory in Unix syntax, not in VMS syntax. */ ++# define __getcwd(buf, max) getcwd (buf, max, 0) ++# else ++# define __getcwd getcwd ++# endif ++ ++#define weak_alias(local, symbol) ++ ++#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ ++ /* Win32, Cygwin, OS/2, DOS */ ++# define ISDIRSEP(C) ((C) == '/' || (C) == '\\') ++#else ++ /* Unix */ ++# define ISDIRSEP(C) ((C) == '/') ++#endif ++ ++#ifdef __WIN32__ ++char *win2unixpath (char *FileName) ++{ ++ char *s = FileName; ++ while (*s) { ++ if (*s == '\\') ++ *s = '/'; ++ *s++; ++ } ++ return FileName; ++} ++#endif ++ ++/* Return the canonical absolute name of file NAME. A canonical name ++ does not contain any `.', `..' components nor any repeated path ++ separators ('/') or symlinks. All path components must exist. If ++ RESOLVED is null, the result is malloc'd; otherwise, if the ++ canonical name is PATH_MAX chars or more, returns null with `errno' ++ set to ENAMETOOLONG; if the name fits in fewer than PATH_MAX chars, ++ returns the name in RESOLVED. If the name cannot be resolved and ++ RESOLVED is non-NULL, it contains the path of the first component ++ that cannot be resolved. If the path can be resolved, RESOLVED ++ holds the same value as the value returned. ++ RESOLVED must be at least PATH_MAX long */ ++ ++static char * ++canonicalize (const char *name, char *resolved) ++{ ++ char *rpath, *dest, *extra_buf = NULL; ++ const char *start, *end, *rpath_limit; ++ long int path_max; ++ int num_links = 0, old_errno; ++ ++ if (name == NULL) ++ { ++ /* As per Single Unix Specification V2 we must return an error if ++ either parameter is a null pointer. We extend this to allow ++ the RESOLVED parameter to be NULL in case the we are expected to ++ allocate the room for the return value. */ ++ __set_errno (EINVAL); ++ return NULL; ++ } ++ ++ if (name[0] == '\0') ++ { ++ /* As per Single Unix Specification V2 we must return an error if ++ the name argument points to an empty string. */ ++ __set_errno (ENOENT); ++ return NULL; ++ } ++#ifdef __WIN32__ ++ { ++ char *lpFilePart; ++ int len; ++// fprintf(stderr, "name: %s\n", name); ++ rpath = resolved ? __builtin_alloca (MAX_PATH) : malloc (MAX_PATH); ++// unix2winpath (name); ++// fprintf(stderr, "name: %s\n", name); ++len = GetFullPathName(name, MAX_PATH, rpath, &lpFilePart); ++/* GetFullPathName returns bogus paths for *nix-style paths, like ++ * /foo/bar - it just prepends current drive to them. Keep them ++ * intact (they need to be for relocation to work!). ++ */ ++if (name[0] == '/') { ++ strncpy (rpath, name, MAX_PATH - 1); ++ rpath[MAX_PATH - 1] = '\0'; ++ len = strlen (rpath); ++} ++// fprintf(stderr, "rpath: %s\n", rpath); ++ if (len == 0) { ++ //set_werrno; ++ return NULL; ++ } ++ if (len > MAX_PATH) { ++ if (resolved) ++ __set_errno(ENAMETOOLONG); ++ else { ++ rpath = realloc(rpath, len + 2); ++ GetFullPathName(name, len, rpath, &lpFilePart); ++// fprintf(stderr, "rpath: %s\n", rpath); ++ } ++ } ++// if ( ISDIRSEP(name[strlen(name)]) && !ISDIRSEP(rpath[len]) ) { ++// rpath[len] = '\\'; ++// rpath[len + 1] = 0; ++// } ++ old_errno = errno; ++ //if (!access (rpath, D_OK) && !ISDIRSEP(rpath[len - 1]) ){ ++ if (!access (rpath, R_OK) && !ISDIRSEP(rpath[len - 1]) ){ ++ rpath[len] = '\\'; ++ rpath[len + 1] = 0; ++ } ++ errno = old_errno; ++ win2unixpath (rpath); ++// fprintf(stderr, "rpath: %s\n", rpath); ++ return resolved ? strcpy(resolved, rpath) : rpath ; ++ } ++#else /* __WIN32__ */ ++ ++#ifdef PATH_MAX ++ path_max = PATH_MAX; ++#else ++ path_max = pathconf (name, _PC_PATH_MAX); ++ if (path_max <= 0) ++ path_max = 1024; ++#endif ++ ++ rpath = resolved ? __builtin_alloca (path_max) : malloc (path_max); ++ rpath_limit = rpath + path_max; ++ ++ if (name[0] != '/') ++ { ++ if (!__getcwd (rpath, path_max)) ++ { ++ rpath[0] = '\0'; ++ goto error; ++ } ++ dest = strchr (rpath, '\0'); ++ } ++ else ++ { ++ rpath[0] = '/'; ++ dest = rpath + 1; ++ } ++ ++ for (start = end = name; *start; start = end) ++ { ++#ifdef _LIBC ++ struct stat64 st; ++#else ++ struct stat st; ++#endif ++ int n; ++ ++ /* Skip sequence of multiple path-separators. */ ++ while (*start == '/') ++ ++start; ++ ++ /* Find end of path component. */ ++ for (end = start; *end && *end != '/'; ++end) ++ /* Nothing. */; ++ ++ if (end - start == 0) ++ break; ++ else if (end - start == 1 && start[0] == '.') ++ /* nothing */; ++ else if (end - start == 2 && start[0] == '.' && start[1] == '.') ++ { ++ /* Back up to previous component, ignore if at root already. */ ++ if (dest > rpath + 1) ++ while ((--dest)[-1] != '/'); ++ } ++ else ++ { ++ size_t new_size; ++ ++ if (dest[-1] != '/') ++ *dest++ = '/'; ++ ++ if (dest + (end - start) >= rpath_limit) ++ { ++ ptrdiff_t dest_offset = dest - rpath; ++ ++ if (resolved) ++ { ++ __set_errno (ENAMETOOLONG); ++ if (dest > rpath + 1) ++ dest--; ++ *dest = '\0'; ++ goto error; ++ } ++ new_size = rpath_limit - rpath; ++ if (end - start + 1 > path_max) ++ new_size += end - start + 1; ++ else ++ new_size += path_max; ++ rpath = realloc (rpath, new_size); ++ rpath_limit = rpath + new_size; ++ if (rpath == NULL) ++ return NULL; ++ ++ dest = rpath + dest_offset; ++ } ++ ++#ifdef _LIBC ++ dest = __mempcpy (dest, start, end - start); ++#else ++ memcpy (dest, start, end - start); ++ dest += end - start; ++#endif ++ *dest = '\0'; ++ ++#ifdef _LIBC ++ if (__lxstat64 (_STAT_VER, rpath, &st) < 0) ++#else ++ if (lstat (rpath, &st) < 0) ++#endif ++ goto error; ++ ++#if HAVE_READLINK ++ if (S_ISLNK (st.st_mode)) ++ { ++ char *buf = __builtin_alloca (path_max); ++ size_t len; ++ ++ if (++num_links > MAXSYMLINKS) ++ { ++ __set_errno (ELOOP); ++ goto error; ++ } ++ ++ n = __readlink (rpath, buf, path_max); ++ if (n < 0) ++ goto error; ++ buf[n] = '\0'; ++ ++ if (!extra_buf) ++ extra_buf = __builtin_alloca (path_max); ++ ++ len = strlen (end); ++ if ((long int) (n + len) >= path_max) ++ { ++ __set_errno (ENAMETOOLONG); ++ goto error; ++ } ++ ++ /* Careful here, end may be a pointer into extra_buf... */ ++ memmove (&extra_buf[n], end, len + 1); ++ name = end = memcpy (extra_buf, buf, n); ++ ++ if (buf[0] == '/') ++ dest = rpath + 1; /* It's an absolute symlink */ ++ else ++ /* Back up to previous component, ignore if at root already: */ ++ if (dest > rpath + 1) ++ while ((--dest)[-1] != '/'); ++ } ++#endif ++ } ++ } ++ if (dest > rpath + 1 && dest[-1] == '/') ++ --dest; ++ *dest = '\0'; ++ ++ return resolved ? memcpy (resolved, rpath, dest - rpath + 1) : rpath; ++ ++error: ++ if (resolved) ++ strcpy (resolved, rpath); ++ else ++ free (rpath); ++ return NULL; ++ ++#endif /* __WIN32__ */ ++} ++ ++ ++char * ++__realpath (const char *name, char *resolved) ++{ ++ if (resolved == NULL) ++ { ++ __set_errno (EINVAL); ++ return NULL; ++ } ++ ++ return canonicalize (name, resolved); ++} ++weak_alias (__realpath, realpath) ++ ++ ++char * ++__canonicalize_file_name (const char *name) ++{ ++ return canonicalize (name, NULL); ++} ++weak_alias (__canonicalize_file_name, canonicalize_file_name) ++ ++char * ++canonicalize_file_name (const char *name) ++{ ++ return canonicalize (name, NULL); ++} +diff --git a/intl/canonicalize.h b/intl/canonicalize.h +new file mode 100644 +index 00000000000..ea707bf1bdf +--- /dev/null ++++ b/intl/canonicalize.h +@@ -0,0 +1,18 @@ ++#ifndef __CANONICALIZE_H__ ++#define __CANONICALIZE_H__ 1 ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++char *canonicalize_file_name (const char *name); ++ ++#ifdef __WIN32__ ++char *win2unixpath (char *path); ++#endif ++ ++#ifdef __cplusplus ++} ++#endif ++ ++#endif /* __CANONICALIZE_H__ */ +diff --git a/intl/relocatex.c b/intl/relocatex.c +new file mode 100644 +index 00000000000..a2b7438fb43 +--- /dev/null ++++ b/intl/relocatex.c +@@ -0,0 +1,284 @@ ++/* Provide relocatable packages. ++ Copyright (C) 2003 Free Software Foundation, Inc. ++ Written by Bruno Haible , 2003. ++ ++ This program is free software; you can redistribute it and/or modify it ++ under the terms of the GNU Library General Public License as published ++ by the Free Software Foundation; either version 2, or (at your option) ++ any later version. ++ ++ This program is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Library General Public License for more details. ++ ++ You should have received a copy of the GNU Library General Public ++ License along with this program; if not, write to the Free Software ++ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, ++ USA. */ ++ ++ ++/* Specification. */ ++#include ++#define _GNU_SOURCE ++#include ++#include ++#include ++#include ++/* #include */ ++#include "relocatex.h" ++#include "canonicalize.h" ++/* #include */ ++ ++ ++#if defined _WIN32 || defined __WIN32__ ++# define WIN32_LEAN_AND_MEAN ++# include ++//# define __GW32__ ++//# include ++#endif ++#define set_werrno ++ ++#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ ++ /* Win32, Cygwin, OS/2, DOS */ ++# define ISDIRSEP(C) ((C) == '/' || (C) == '\\') ++#else ++ /* Unix */ ++# define ISDIRSEP(C) ((C) == '/') ++#endif ++ ++/* Original installation prefix. */ ++static char *orig_prefix = NULL; ++static size_t orig_prefix_len = 0; ++/* Current installation prefix. */ ++static char *curr_prefix = NULL; ++static size_t curr_prefix_len = 0; ++/* These prefixes do not end in a slash. Anything that will be concatenated ++ to them must start with a slash. */ ++ ++ ++int win2posixpath (const char *winpath, char *posixpath) ++{ ++ strcpy (posixpath, winpath); ++ win2unixpath (posixpath); ++ return 0; ++} ++ ++ ++/* Sets the original and the current installation prefix of this module. ++ Relocation simply replaces a pathname starting with the original prefix ++ by the corresponding pathname with the current prefix instead. Both ++ prefixes should be directory names without trailing slash (i.e. use "" ++ instead of "/"). */ ++static char * ++set_orig_prefix (const char *orig_prefix_arg) ++{ ++ char *memory; ++// printf ("orig_prefix_arg: %s\n", orig_prefix_arg); ++ if (!orig_prefix_arg) { ++ orig_prefix = NULL; ++ orig_prefix_len = 0; ++ return NULL; ++ } ++ if (orig_prefix) ++ free (orig_prefix); ++ ++ memory = canonicalize_file_name (orig_prefix_arg); ++// printf ("memory: %s\n", memory); ++// memory = (char *) malloc (orig_prefix_len + 1); ++ if (!memory) { ++ set_werrno; ++ orig_prefix = NULL; ++ orig_prefix_len = 0; ++ return NULL; ++ } ++ win2unixpath (memory); ++// win2posixpath (orig_prefix_arg, memory); ++ orig_prefix = memory; ++ orig_prefix_len = strlen (orig_prefix); ++// printf ("orig_prefix: %s\n", orig_prefix); ++ if (ISDIRSEP (orig_prefix[orig_prefix_len-1])) { ++ orig_prefix[orig_prefix_len-1] = '\0'; ++ orig_prefix_len--; ++ } ++// printf ("orig_prefix: %s\n", orig_prefix); ++// printf ("orig_prefix_len: %d\n", orig_prefix_len); ++ return orig_prefix; ++} ++ ++#if defined __WIN32__ ++static char * ++set_current_prefix (const char *ModuleName) ++{ ++ LPTSTR curr_prefix_arg, q, lpFilePart; ++ DWORD len; ++ int nDIRSEP = 0; ++ ++ if (curr_prefix) ++ free (curr_prefix); ++ curr_prefix_arg = malloc (MAX_PATH * sizeof (TCHAR)); ++ if (!curr_prefix_arg) { ++ set_werrno; ++ curr_prefix = NULL; ++ curr_prefix_len = 0; ++ return NULL; ++ } ++ if (ModuleName) { ++// printf ("ModuleName: %s\n", ModuleName); ++ len = SearchPath (NULL, ModuleName, ".DLL", MAX_PATH, curr_prefix_arg, &lpFilePart); ++ if (len) { ++// printf ("ModulePath: %s\n", curr_prefix_arg); ++// printf ("FilePart: %s\n", lpFilePart); ++ } ++ } ++ if (!ModuleName || !len) { ++ len = GetModuleFileName (NULL, curr_prefix_arg, MAX_PATH); ++ if (!len) { ++ set_werrno; ++ curr_prefix = NULL; ++ curr_prefix_len = 0; ++ return NULL; ++ } ++ } ++// strncpy (curr_prefix_arg, ModuleName, MAX_PATH); ++// printf ("curr_prefix_arg: %s\n", curr_prefix_arg); ++ win2posixpath (curr_prefix_arg, curr_prefix_arg); ++ curr_prefix = curr_prefix_arg; ++ q = curr_prefix_arg + len - 1; ++ /* strip name of executable and its directory */ ++ while (!ISDIRSEP (*q) && (q > curr_prefix_arg) && nDIRSEP < 2) { ++ q--; ++ if (ISDIRSEP (*q)) { ++ *q = '\0'; ++ nDIRSEP++; ++ } ++ } ++ curr_prefix_len = q - curr_prefix_arg; ++// printf ("curr_prefix: %s\n", curr_prefix); ++// printf ("curr_prefix_len: %d\n", curr_prefix_len); ++ return curr_prefix; ++} ++ ++char *getshortpath (const char *longpath) ++{ ++ char *shortpath = NULL; ++ DWORD len, res; ++ ++// printf ("longpath: %s\n", longpath); ++ len = GetShortPathName(longpath, shortpath, 0); ++// printf ("len: %ld\n", len); ++ if (!len) { ++// WinErr ("getshortpath: len = 0"); ++ set_werrno; ++ return (char *) longpath; ++ } ++ shortpath = (char *) malloc (len + 1); ++ if (!shortpath) { ++// WinErr ("getshortpath: malloc"); ++ set_werrno; ++ return (char *) longpath; ++ } ++ res = GetShortPathName(longpath, shortpath, len); ++// printf ("res: %ld\n", res); ++ if (!res) { ++// WinErr ("getshortpath: res = 0"); ++ free (shortpath); ++ set_werrno; ++ return (char *) longpath; ++ } ++// printf ("shortpath: %s\n", shortpath); ++ return shortpath; ++} ++ ++char *relocaten (const char *ModuleName, const char *path) ++{ ++ char *relative_path, *relocated_path, *relocated_short_path; ++ int relative_path_len; ++ ++ if (!curr_prefix) ++ set_current_prefix (ModuleName); ++// printf ("path: %s\n", path); ++// printf ("orig_prefix: %s\n", orig_prefix); ++// printf ("curr_prefix: %s\n", curr_prefix); ++// if (strncmp (orig_prefix, path, orig_prefix_len)) ++// if (strcmp (orig_prefix, path)) ++// return (char *) path; ++ relative_path = (char *) path + orig_prefix_len; ++// printf ("relative_path: %s\n", relative_path); ++ relative_path_len = strlen (relative_path); ++ relocated_path = malloc (curr_prefix_len + relative_path_len + 1); ++ strcpy (relocated_path, curr_prefix); ++ strcat (relocated_path, relative_path); ++// printf ("relocated_path: %s\n", relocated_path); ++ relocated_short_path = getshortpath (relocated_path); ++// printf ("relocated_short_path: %s\n", relocated_short_path); ++ if (relocated_short_path) { ++ if (relocated_short_path != relocated_path) ++ free (relocated_path); ++ return relocated_short_path; ++ } else ++ return relocated_path; ++} ++ ++#else // __WIN32__ ++char *relocaten (const char *ModuleName, const char *path) ++{ ++ // dummy function for Unix/Linux ++ return (char *)path; ++} ++#endif ++ ++char *relocaten2 (const char *ModuleName, const char *installdir, const char *path) ++{ ++ set_orig_prefix (installdir); ++ return relocaten (ModuleName, path); ++} ++ ++char *relocatenx (const char *ModuleName, const char *installdir, const char *path) ++{ ++ char *p; ++ ++ set_orig_prefix (installdir); ++ if (access (path, R_OK)) ++ p = relocaten (ModuleName, path); ++ else ++ p = (char *) path; ++// printf ("relocatenx: %s\n", p); ++ return p; ++} ++ ++char *relocate2 (const char *installdir, const char *path) ++{ ++ return relocaten2 (NULL, installdir, path); ++} ++ ++char *relocatex (const char *installdir, const char *path) ++{ ++ return relocatenx (NULL, installdir, path); ++} ++ ++char *relocatepx (const char *cprefix, const char *installdir, const char *path) ++{ ++ if (curr_prefix) ++ free (curr_prefix); ++ curr_prefix = strdup (cprefix); ++ return relocatex (installdir, path); ++} ++ ++static char *get_orig_prefix (void) ++{ ++ return orig_prefix; ++} ++ ++static char *get_curr_prefix (void) ++{ ++ return curr_prefix; ++} ++ ++static char *set_curr_prefix (const char *ModuleName) ++{ ++ if (curr_prefix) ++ free (curr_prefix); ++ set_current_prefix (ModuleName); ++ return curr_prefix; ++} +diff --git a/intl/relocatex.h b/intl/relocatex.h +new file mode 100644 +index 00000000000..5cc7c5174a9 +--- /dev/null ++++ b/intl/relocatex.h +@@ -0,0 +1,41 @@ ++/* ++ Copyright (C) 2006 Free Software Foundation, Inc. ++ This file is part of the GnuWin C Library. ++ ++ The GnuWin C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GnuWin C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GnuWin32 C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#ifndef __RELOCATE_H__ ++#define __RELOCATE_H__ 1 ++ ++/* #include */ ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++char *relocaten (const char *ModuleName, const char *path); ++char *relocaten2 (const char *ModuleName, const char *installdir, const char *path); ++char *relocatenx (const char *ModuleName, const char *installdir, const char *path); ++char *relocate2 (const char *installdir, const char *path); ++char *relocatex (const char *installdir, const char *path); ++ ++#ifdef __cplusplus ++} ++#endif ++ ++//#endif /* __GW32__ */ ++ ++#endif /* __RELOCATE_H__ */ +-- +2.40.0 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0003-Windows-Follow-Posix-dir-exists-semantics-more-close.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0003-Windows-Follow-Posix-dir-exists-semantics-more-close.patch new file mode 100644 index 0000000000000000000000000000000000000000..8d5c2dd735e0afa063d0b914db231f70b6ae17f3 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0003-Windows-Follow-Posix-dir-exists-semantics-more-close.patch @@ -0,0 +1,131 @@ +From 45ca3b9cdd964ec448c2ca56d5258983aef2722b Mon Sep 17 00:00:00 2001 +From: Ray Donnelly +Date: Wed, 5 Aug 2015 23:36:07 +0100 +Subject: [PATCH 02/16] Windows: Follow Posix dir-exists semantics more closely + +Make Windows behave the same as Posix in the consideration +of whether folder "/doesnt-exist/.." is a valid +path. In Posix, it isn't. + +A concrete instance of when this matters is when cross +compiling GNU/Linux glibc on Windows. +--- + libcpp/files.cc | 87 +++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 87 insertions(+) + +diff --git a/libcpp/files.cc b/libcpp/files.cc +index 24208f7b0f8..a740d7a778c 100644 +--- a/libcpp/files.cc ++++ b/libcpp/files.cc +@@ -30,6 +30,14 @@ along with this program; see the file COPYING3. If not see + #include "md5.h" + #include + ++/* Needed for stat_st_mode_symlink below */ ++#if defined(_WIN32) ++# define WIN32_LEAN_AND_MEAN ++# include ++# define S_IFLNK 0xF000 ++# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) ++#endif ++ + /* Variable length record files on VMS will have a stat size that includes + record control characters that won't be included in the read size. */ + #ifdef VMS +@@ -200,6 +207,49 @@ static int pchf_save_compare (const void *e1, const void *e2); + static int pchf_compare (const void *d_p, const void *e_p); + static bool check_file_against_entries (cpp_reader *, _cpp_file *, bool); + ++#if defined(_WIN32) ++ ++static int stat_st_mode_symlink (char const* path, struct stat* buf) ++{ ++ WIN32_FILE_ATTRIBUTE_DATA attr; ++ memset(buf,0,sizeof(*buf)); ++ int err = GetFileAttributesExA (path, GetFileExInfoStandard, &attr) ? 0 : 1; ++ if (!err) ++ { ++ WIN32_FIND_DATAA finddata; ++ HANDLE h = FindFirstFileA (path, &finddata); ++ if (h != INVALID_HANDLE_VALUE) ++ { ++ FindClose (h); ++ if ((finddata.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) && ++ (finddata.dwReserved0 == IO_REPARSE_TAG_SYMLINK)) ++ buf->st_mode = S_IFLNK; ++ else if (finddata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ++ buf->st_mode = S_IFDIR; ++ else if (finddata.dwFileAttributes & FILE_ATTRIBUTE_ARCHIVE) ++ buf->st_mode = S_IFDIR; ++ else ++ buf->st_mode = S_IFREG; ++ buf->st_mode |= S_IREAD; ++ if (!(finddata.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) ++ buf->st_mode |= S_IWRITE; ++ } ++ else ++ { ++ buf->st_mode = S_IFDIR; ++ } ++ return 0; ++ } ++ return -1; ++} ++ ++#else ++ ++#define stat_st_mode_symlink (_name, _buf) stat ((_name), (_buf)) ++ ++#endif ++ ++ + /* Given a filename in FILE->PATH, with the empty string interpreted + as , open it. + +@@ -229,6 +279,43 @@ open_file (_cpp_file *file) + } + else + file->fd = open (file->path, O_RDONLY | O_NOCTTY | O_BINARY, 0666); ++#if defined(_WIN32) || defined(__CYGWIN__) ++ /* Windows and Posix differ in the face of paths of the form: ++ nonexistantdir/.. in that Posix will return ENOENT whereas ++ Windows won't care that we stepped into a non-existant dir ++ Only do these slow checks if ".." appears in file->path. ++ Cygwin also suffers from the same problem (but doesn't need ++ a new stat function): ++ http://cygwin.com/ml/cygwin/2013-05/msg00222.html ++ */ ++ if (file->fd > 0) ++ { ++ char filepath[MAX_PATH]; ++ strncpy (filepath, file->path, sizeof(filepath) - 1); ++ char* dirsep = &filepath[0]; ++ while ( (dirsep = strchr (dirsep, '\\')) != NULL) ++ *dirsep = '/'; ++ if (strstr(file->path, "/../")) ++ { ++ dirsep = &filepath[0]; ++ char dirsepc; ++ /* Check each directory in the chain. */ ++ while ( (dirsep = strpbrk (dirsep, "\\/")) != NULL) ++ { ++ dirsepc = *(++dirsep); ++ *dirsep = '\0'; ++ if (stat_st_mode_symlink (filepath, &file->st) == -1) ++ { ++ *dirsep = dirsepc; ++ close (file->fd); ++ file->fd = -1; ++ return false; ++ } ++ *dirsep++ = dirsepc; ++ } ++ } ++ } ++#endif + + if (file->fd != -1) + { +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0005-Windows-Don-t-ignore-native-system-header-dir.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0005-Windows-Don-t-ignore-native-system-header-dir.patch new file mode 100644 index 0000000000000000000000000000000000000000..4e30623ad6394723cf7410973ed5f56a216350c7 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0005-Windows-Don-t-ignore-native-system-header-dir.patch @@ -0,0 +1,28 @@ +From 7b42c392145bfebc79a5a8dce77dc61f09290a32 Mon Sep 17 00:00:00 2001 +From: Ray Donnelly +Date: Wed, 5 Aug 2015 23:36:11 +0100 +Subject: [PATCH 04/16] Windows: Don't ignore native system header dir + +--- + gcc/config.gcc | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/gcc/config.gcc b/gcc/config.gcc +index 2fbf2e6fa69..f950ba56edc 100644 +--- a/gcc/config.gcc ++++ b/gcc/config.gcc +@@ -2138,7 +2138,10 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) + tmake_file="${tmake_file} i386/t-mingw-w32" + ;; + esac +- native_system_header_dir=/mingw/include ++ # Don't ignore values passed in to configure via --native-system-header-dir ++ if test x$native_system_header_dir = x ; then ++ native_system_header_dir=/mingw/include ++ fi + target_gtfiles="$target_gtfiles \$(srcdir)/config/i386/winnt.cc" + extra_options="${extra_options} i386/cygming.opt i386/mingw.opt" + case ${target} in +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0006-Windows-New-feature-to-allow-overriding.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0006-Windows-New-feature-to-allow-overriding.patch new file mode 100644 index 0000000000000000000000000000000000000000..3695b49c2345fe30d825e74cc8d5197e995b2ee8 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0006-Windows-New-feature-to-allow-overriding.patch @@ -0,0 +1,44 @@ +From 45fab34cb60bc221e6debdf9457d382b62cf4017 Mon Sep 17 00:00:00 2001 +From: Ray Donnelly +Date: Wed, 5 Aug 2015 23:36:13 +0100 +Subject: [PATCH 05/16] master Windows: New feature to allow overriding + -lmsvcrt + +Added in support of the MinGW-w64 WIP feature "agile mscvrt dll" where +a process' loaded msvc runtime is used by a newly loaded DLL rather than +always using msvcrt.dll +--- + gcc/config/i386/cygming.opt | 3 +++ + gcc/config/i386/mingw32.h | 2 +- + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/gcc/config/i386/cygming.opt b/gcc/config/i386/cygming.opt +index 12435d813f5..5dff2ac1551 100644 +--- a/gcc/config/i386/cygming.opt ++++ b/gcc/config/i386/cygming.opt +@@ -22,6 +22,9 @@ mconsole + Target RejectNegative + Create console application. + ++mcrtdll= ++Target RejectNegative Joined ++ + mdll + Target RejectNegative + Generate code for a DLL. +diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h +index b5f31c3da0a..baf80400862 100644 +--- a/gcc/config/i386/mingw32.h ++++ b/gcc/config/i386/mingw32.h +@@ -196,7 +196,7 @@ along with GCC; see the file COPYING3. If not see + #define REAL_LIBGCC_SPEC \ + "%{mthreads:-lmingwthrd} -lmingw32 \ + " SHARED_LIBGCC_SPEC " \ +- -lmoldname -lmingwex -lmsvcrt -lkernel32 " MCFGTHREAD_SPEC ++ -lmoldname -lmingwex %{!mcrtdll=*:-lmsvcrt} %{mcrtdll=*:-l%*} -lkernel32 " MCFGTHREAD_SPEC + + #undef STARTFILE_SPEC + #define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \ +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0007-Build-EXTRA_GNATTOOLS-for-Ada.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0007-Build-EXTRA_GNATTOOLS-for-Ada.patch new file mode 100644 index 0000000000000000000000000000000000000000..6450d95972816387a3d67dae0041bdd77ecbbdf1 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0007-Build-EXTRA_GNATTOOLS-for-Ada.patch @@ -0,0 +1,34 @@ +From a7c1041c3138dba8fa811490852f37b236a7f368 Mon Sep 17 00:00:00 2001 +From: Alexey Pavlov +Date: Wed, 5 Aug 2015 23:36:17 +0100 +Subject: [PATCH 06/16] Build EXTRA_GNATTOOLS for Ada + +--- + gnattools/Makefile.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gnattools/Makefile.in b/gnattools/Makefile.in +index e8fc4af0788..f0daadbc1d7 100644 +--- a/gnattools/Makefile.in ++++ b/gnattools/Makefile.in +@@ -201,7 +201,7 @@ gnattools-native: $(GCC_DIR)/stamp-tools $(GCC_DIR)/stamp-gnatlib-rts + ../../gnatmake$(exeext) ../../gnatlink$(exeext) + # gnattools2 + $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \ +- $(TOOLS_FLAGS_TO_PASS_NATIVE) common-tools ++ $(TOOLS_FLAGS_TO_PASS_NATIVE) common-tools $(EXTRA_GNATTOOLS) + + # gnatmake/link can be built with recent gnatmake/link if they are available. + # This is especially convenient for building cross tools or for rebuilding +@@ -213,7 +213,7 @@ regnattools: $(GCC_DIR)/stamp-gnatlib-rts + gnatmake-re gnatlink-re + # gnattools2 + $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \ +- $(TOOLS_FLAGS_TO_PASS_NATIVE) common-tools ++ $(TOOLS_FLAGS_TO_PASS_NATIVE) common-tools $(EXTRA_GNATTOOLS) + + gnattools-cross: $(GCC_DIR)/stamp-tools + # gnattools1-re +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0008-Prettify-linking-no-undefined.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0008-Prettify-linking-no-undefined.patch new file mode 100644 index 0000000000000000000000000000000000000000..dec5f82b31a0f966f0d1ec55a057ee3bd4908534 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0008-Prettify-linking-no-undefined.patch @@ -0,0 +1,41 @@ +From e3d18c5f5b7ffb28146d7d7efef480ccedc4be26 Mon Sep 17 00:00:00 2001 +From: Alexey Pavlov +Date: Wed, 5 Aug 2015 23:36:19 +0100 +Subject: [PATCH 07/16] Prettify linking -no-undefined + +It might be better to put this change in a +conditional block for Windows only? +--- + libgfortran/Makefile.am | 2 +- + libgfortran/Makefile.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libgfortran/Makefile.am b/libgfortran/Makefile.am +index 454ad12e701..cb02b417e6b 100644 +--- a/libgfortran/Makefile.am ++++ b/libgfortran/Makefile.am +@@ -57,7 +57,7 @@ libgfortran_la_DEPENDENCIES = $(version_dep) libgfortran.spec $(LIBQUADLIB_DEP) + cafexeclib_LTLIBRARIES = libcaf_single.la + cafexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR) + libcaf_single_la_SOURCES = caf/single.c +-libcaf_single_la_LDFLAGS = -static ++libcaf_single_la_LDFLAGS = -static -no-undefined + libcaf_single_la_DEPENDENCIES = caf/libcaf.h + libcaf_single_la_LINK = $(LINK) $(libcaf_single_la_LDFLAGS) + +diff --git a/libgfortran/Makefile.in b/libgfortran/Makefile.in +index 23df0761096..14b78ed3569 100644 +--- a/libgfortran/Makefile.in ++++ b/libgfortran/Makefile.in +@@ -767,7 +767,7 @@ libgfortran_la_DEPENDENCIES = $(version_dep) libgfortran.spec $(LIBQUADLIB_DEP) + cafexeclib_LTLIBRARIES = libcaf_single.la + cafexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR) + libcaf_single_la_SOURCES = caf/single.c +-libcaf_single_la_LDFLAGS = -static ++libcaf_single_la_LDFLAGS = -static -no-undefined + libcaf_single_la_DEPENDENCIES = caf/libcaf.h + libcaf_single_la_LINK = $(LINK) $(libcaf_single_la_LDFLAGS) + @IEEE_SUPPORT_TRUE@fincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR)/finclude +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0011-Enable-shared-gnat-implib.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0011-Enable-shared-gnat-implib.patch new file mode 100644 index 0000000000000000000000000000000000000000..3a953c8cdb622640f3ff499ad42eaa676dcbc1b6 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0011-Enable-shared-gnat-implib.patch @@ -0,0 +1,38 @@ +From c0af45f4c4b03154ea5ade26d02e1561223b63d4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=BCrgen=20Pfeifer?= +Date: Wed, 5 Aug 2015 23:36:27 +0100 +Subject: [PATCH 09/16] Enable shared gnat implib + +Provide GNAT runtime import libraries to +allow to link against shared runtime + +Original commit: +https://github.com/Alexpux/MINGW-packages/commit/51b4eb3b702fdb38df0460180c2f8209a686aaec +--- + gcc/ada/gcc-interface/Makefile.in | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in +index 6b19b8be58e..7a7d4eeb18f 100644 +--- a/gcc/ada/gcc-interface/Makefile.in ++++ b/gcc/ada/gcc-interface/Makefile.in +@@ -764,12 +764,15 @@ gnatlib-shared-win32: + $(PICFLAG_FOR_TARGET) \ + -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \ + $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \ +- $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB) ++ $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \ ++ -Wl,-out-implib,libgnat$(hyphen)$(LIBRARY_VERSION).dll.a \ ++ $(MISCLIB) + cd $(RTSDIR); $(GCC_FOR_ADA_RTS) -shared -shared-libgcc \ + $(PICFLAG_FOR_TARGET) \ + -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \ + $(GNATRTL_TASKING_OBJS) \ + $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \ ++ -Wl,-out-implib,libgnarl$(hyphen)$(LIBRARY_VERSION).dll.a \ + $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) + + gnatlib-shared-darwin: +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0012-Handle-spaces-in-path-for-default-manifest.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0012-Handle-spaces-in-path-for-default-manifest.patch new file mode 100644 index 0000000000000000000000000000000000000000..adc926b3503811c72949adbe21251a6d5896be00 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0012-Handle-spaces-in-path-for-default-manifest.patch @@ -0,0 +1,60 @@ +From 7bb1c4dfb29899729c13376cbae8393f201f1e83 Mon Sep 17 00:00:00 2001 +From: Olivier Michel +Date: Fri, 31 May 2019 15:07:06 +0200 +Subject: [PATCH 10/16] Handle spaces in path for default manifest + +--- + gcc/gcc.cc | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +diff --git a/gcc/gcc.cc b/gcc/gcc.cc +index afb23cd07b0..8eee9345afe 100644 +--- a/gcc/gcc.cc ++++ b/gcc/gcc.cc +@@ -6829,7 +6829,6 @@ eval_spec_function (const char *func, const char *args, + int save_arg_going; + int save_delete_this_arg; + int save_this_is_output_file; +- int save_this_is_library_file; + int save_input_from_pipe; + int save_this_is_linker_script; + const char *save_suffix_subst; +@@ -6847,7 +6846,6 @@ eval_spec_function (const char *func, const char *args, + save_arg_going = arg_going; + save_delete_this_arg = delete_this_arg; + save_this_is_output_file = this_is_output_file; +- save_this_is_library_file = this_is_library_file; + save_this_is_linker_script = this_is_linker_script; + save_input_from_pipe = input_from_pipe; + save_suffix_subst = suffix_subst; +@@ -6879,13 +6877,15 @@ eval_spec_function (const char *func, const char *args, + argbuf.address ()); + + /* Pop the spec processing context. */ ++ const char *saved_library_file = this_is_library_file ? argbuf.address()[0] : NULL; + argbuf.release (); + argbuf = save_argbuf; ++ if (saved_library_file) ++ argbuf.safe_push (saved_library_file); + + arg_going = save_arg_going; + delete_this_arg = save_delete_this_arg; + this_is_output_file = save_this_is_output_file; +- this_is_library_file = save_this_is_library_file; + this_is_linker_script = save_this_is_linker_script; + input_from_pipe = save_input_from_pipe; + suffix_subst = save_suffix_subst; +@@ -6957,8 +6957,9 @@ handle_spec_function (const char *p, bool *retval_nonnull, + /* p now points to just past the end of the spec function expression. */ + + funcval = eval_spec_function (func, args, soft_matched_part); +- if (funcval != NULL && do_spec_1 (funcval, 0, NULL) < 0) ++ if (funcval != NULL && this_is_library_file == 0 && do_spec_1 (funcval, 0, NULL) < 0) + p = NULL; ++ + if (retval_nonnull) + *retval_nonnull = funcval != NULL; + +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0014-gcc-9-branch-clone_function_name_1-Retain-any-stdcall-suffix.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0014-gcc-9-branch-clone_function_name_1-Retain-any-stdcall-suffix.patch new file mode 100644 index 0000000000000000000000000000000000000000..cbb82d017a2c5439d4391880be69768c16cf2207 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0014-gcc-9-branch-clone_function_name_1-Retain-any-stdcall-suffix.patch @@ -0,0 +1,108 @@ +From 8b5e94ebdce49fc8f7a0926a695110e83cc408ad Mon Sep 17 00:00:00 2001 +From: Ray Donnelly +Date: Mon, 17 Aug 2015 22:57:46 +0100 +Subject: [PATCH 11/16] clone_function_name_1: Retain any stdcall suffix + +Previously, clone_function_name_1 would add a suffix after +any existing stdcall suffix, for example ipa-split.c would +clone test@4 as test@4.part.0. + +Later, i386_pe_strip_name_encoding_full would come along +and strip off everything from the last @ onwards which had +the effect of generating incorrect section names which +would then fall over with errors such as: + +error: void test() causes a section type conflict with \ + void test@4.part.0() + +The following testcase, reduced from Firefox can be used +to reproduce this. + +test.ii: +class ClassA { +public: + virtual int __attribute__((__stdcall__)) Dispatch() = 0; +}; +class ClassB { +public: + ClassA* __attribute__((__stdcall__)) operator->(); +}; +class ClassC : ClassA { + int *some_int_ptr_variable; + int __attribute__((__stdcall__)) Dispatch() { + return some_int_ptr_variable + ? 42 + : m_ClassInstanceB->Dispatch(); + } + ClassB m_ClassInstanceB; +}; +ClassC ClassInstanceC; + +Compile for i686-w64-mingw32 with: +cc1plus -O -fpartial-inlining -fdevirtualize \ + -fdevirtualize-speculatively test.ii + +Outputs: +test.ii: In member function 'virtual int ClassC::Dispatch()': +test.ii:11:36: error: virtual int ClassC::Dispatch() causes \ + a section type conflict with int ClassC::_ZN6ClassC8DispatchEv@4.part.0() + int __attribute__((CALLTYPE)) Dispatch() { + ^ +test.ii:11:36: note: \ + 'int ClassC::_ZN6ClassC8DispatchEv@4.part.0()' was declared here +--- + gcc/cgraphclones.cc | 13 ++++++++++++- + gcc/defaults.h | 2 +- + 2 files changed, 13 insertions(+), 2 deletions(-) + +diff --git a/gcc/cgraphclones.cc b/gcc/cgraphclones.cc +index eb0fa87b554..3bde7e6957e 100644 +--- a/gcc/cgraphclones.cc ++++ b/gcc/cgraphclones.cc +@@ -470,7 +470,8 @@ static GTY(()) hash_map *clone_fn_ids; + each NAME) unspecified number. If clone numbering is not needed + then the two argument clone_function_name should be used instead. + Should not be called directly except for by +- lto-partition.cc:privatize_symbol_name_1. */ ++ lto-partition.cc:privatize_symbol_name_1. Final stdcall @N suffixes ++ are maintained. */ + + tree + clone_function_name_numbered (const char *name, const char *suffix) +@@ -511,10 +512,20 @@ clone_function_name (const char *name, const char *suffix, + char *tmp_name, *prefix; + + prefix = XALLOCAVEC (char, len + strlen (suffix) + 2); ++ /* name + 1 to skip fastcall which begins with '@' */ ++ const char *at_suffix = strchr (name + 1, '@'); ++ size_t at_suffix_len = 0; ++ if (at_suffix) ++ { ++ at_suffix_len = strlen (at_suffix); ++ len -= at_suffix_len; ++ } + memcpy (prefix, name, len); + strcpy (prefix + len + 1, suffix); + prefix[len] = symbol_table::symbol_suffix_separator (); + ASM_FORMAT_PRIVATE_NAME (tmp_name, prefix, number); ++ if (at_suffix) ++ strcat (tmp_name, at_suffix); + return get_identifier (tmp_name); + } + +diff --git a/gcc/defaults.h b/gcc/defaults.h +index 376687d91b1..be29e4b7c60 100644 +--- a/gcc/defaults.h ++++ b/gcc/defaults.h +@@ -51,7 +51,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + # define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \ + do { const char *const name_ = (NAME); \ + char *const output_ = (OUTPUT) = \ +- (char *) alloca (strlen (name_) + 32); \ ++ (char *) alloca (strlen (name_) + 35); \ + sprintf (output_, ASM_PN_FORMAT, name_, (unsigned long)(LABELNO)); \ + } while (0) + #endif +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch new file mode 100644 index 0000000000000000000000000000000000000000..08034b2f16b917ddc9699750285d85eaa45dd4ff --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch @@ -0,0 +1,53 @@ +From f00621c645ca24f8d228bac7b1dbb5763d1f4db3 Mon Sep 17 00:00:00 2001 +From: Liu Hao +Date: Wed, 6 May 2020 21:49:18 +0800 +Subject: [PATCH 12/16] libgomp: Don't hard-code MS printf attributes + +--- + libgomp/libgomp.h | 13 ++++++++++--- + 1 file changed, 10 insertions(+), 3 deletions(-) + +diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h +index 75192749dc7..add858d2cd3 100644 +--- a/libgomp/libgomp.h ++++ b/libgomp/libgomp.h +@@ -69,6 +69,13 @@ + # endif + #endif + ++#include ++#ifdef __MINGW_PRINTF_FORMAT ++#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT ++#else ++#define PRINTF_FORMAT printf ++#endif ++ + #ifdef HAVE_ATTRIBUTE_VISIBILITY + # pragma GCC visibility push(hidden) + #endif +@@ -176,7 +183,7 @@ team_free (void *ptr) + + extern void gomp_vdebug (int, const char *, va_list); + extern void gomp_debug (int, const char *, ...) +- __attribute__ ((format (printf, 2, 3))); ++ __attribute__ ((format (PRINTF_FORMAT, 2, 3))); + #define gomp_vdebug(KIND, FMT, VALIST) \ + do { \ + if (__builtin_expect (gomp_debug_var, 0)) \ +@@ -189,11 +196,11 @@ extern void gomp_debug (int, const char *, ...) + } while (0) + extern void gomp_verror (const char *, va_list); + extern void gomp_error (const char *, ...) +- __attribute__ ((format (printf, 1, 2))); ++ __attribute__ ((format (PRINTF_FORMAT, 1, 2))); + extern void gomp_vfatal (const char *, va_list) + __attribute__ ((noreturn)); + extern void gomp_fatal (const char *, ...) +- __attribute__ ((noreturn, format (printf, 1, 2))); ++ __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2))); + + struct gomp_task; + struct gomp_taskgroup; +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0021-PR14940-Allow-a-PCH-to-be-mapped-to-a-different-addr.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0021-PR14940-Allow-a-PCH-to-be-mapped-to-a-different-addr.patch new file mode 100644 index 0000000000000000000000000000000000000000..d0269a9c53ee4745259f68569b248b96b90182fd --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0021-PR14940-Allow-a-PCH-to-be-mapped-to-a-different-addr.patch @@ -0,0 +1,76 @@ +From cbe91a182184704e76eeac8d47cad7aaff5c9f24 Mon Sep 17 00:00:00 2001 +From: LIU Hao +Date: Wed, 11 May 2022 22:42:53 +0800 +Subject: [PATCH 13/16] Allow a PCH to be mapped to a different address + +First, try mapping the PCH to its original address. If that fails, try +letting the system choose one; the PCH can be relocated thereafter. + +Reference: https://gcc.gnu.org/pipermail/gcc-patches/2022-May/594556.html + +2022-05-11 LIU Hao + + PR pch/14940 + * config/i386/host-mingw32.cc (mingw32_gt_pch_use_address): + Replace the loop that attempted to map the PCH only to its + original address with more adaptive operations +--- + gcc/config/i386/host-mingw32.cc | 32 +++++++++++++++----------------- + 1 file changed, 15 insertions(+), 17 deletions(-) + +diff --git a/gcc/config/i386/host-mingw32.cc b/gcc/config/i386/host-mingw32.cc +index f915b85abd0..cb254629029 100644 +--- a/gcc/config/i386/host-mingw32.cc ++++ b/gcc/config/i386/host-mingw32.cc +@@ -135,7 +135,6 @@ mingw32_gt_pch_use_address (void *&addr, size_t size, int fd, + and earlier, backslashes are invalid in object name. So, we need + to check if we are on Windows2000 or higher. */ + OSVERSIONINFO version_info; +- int r; + + version_info.dwOSVersionInfoSize = sizeof (version_info); + +@@ -169,25 +168,24 @@ mingw32_gt_pch_use_address (void *&addr, size_t size, int fd, + return -1; + } + +- /* Retry five times, as here might occure a race with multiple gcc's +- instances at same time. */ +- for (r = 0; r < 5; r++) +- { +- mmap_addr = MapViewOfFileEx (mmap_handle, FILE_MAP_COPY, 0, offset, +- size, addr); +- if (mmap_addr == addr) +- break; +- if (r != 4) +- Sleep (500); +- } +- +- if (mmap_addr != addr) ++ /* Try mapping the file at `addr`. */ ++ mmap_addr = MapViewOfFileEx (mmap_handle, FILE_MAP_COPY, 0, offset, ++ size, addr); ++ if (mmap_addr == NULL) + { +- w32_error (__FUNCTION__, __FILE__, __LINE__, "MapViewOfFileEx"); +- CloseHandle(mmap_handle); +- return -1; ++ /* We could not map the file at its original address, so let the ++ system choose a different one. The PCH can be relocated later. */ ++ mmap_addr = MapViewOfFileEx (mmap_handle, FILE_MAP_COPY, 0, offset, ++ size, NULL); ++ if (mmap_addr == NULL) ++ { ++ w32_error (__FUNCTION__, __FILE__, __LINE__, "MapViewOfFileEx"); ++ CloseHandle(mmap_handle); ++ return -1; ++ } + } + ++ addr = mmap_addr; + return 1; + } + +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0140-gcc-diagnostic-color.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0140-gcc-diagnostic-color.patch new file mode 100644 index 0000000000000000000000000000000000000000..0b3973b024b8a9f9772787685bb9f307b2522a4f --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0140-gcc-diagnostic-color.patch @@ -0,0 +1,44 @@ +diff --git a/gcc/diagnostic-color.cc b/gcc/diagnostic-color.cc +index 640adfad5..f5eaf142a 100644 +--- a/gcc/diagnostic-color.cc ++++ b/gcc/diagnostic-color.cc +@@ -211,9 +211,38 @@ should_colorize (void) + HANDLE h; + DWORD m; + ++ bool ret = false; + h = GetStdHandle (STD_ERROR_HANDLE); +- return (h != INVALID_HANDLE_VALUE) && (h != NULL) ++ ret = (h != INVALID_HANDLE_VALUE) && (h != NULL) + && GetConsoleMode (h, &m); ++ ++ if (!ret) ++ { ++ ULONG size = sizeof (FILE_NAME_INFO) + (MAX_PATH * sizeof (wchar_t)); ++ FILE_NAME_INFO *fni = (FILE_NAME_INFO*) xmalloc (size); ++ if (GetFileInformationByHandleEx (h, FileNameInfo, fni, size)) ++ { ++ wchar_t name_msys[] = L"\\msys"; ++ size_t len_msys = sizeof (name_msys) - sizeof (wchar_t); ++ wchar_t name_cyg[] = L"\\cygwin"; ++ size_t len_cyg = sizeof (name_cyg) - sizeof (wchar_t); ++ wchar_t name_dir[] = L"-to-master"; ++ size_t len_dir = sizeof (name_dir) - sizeof (wchar_t); ++ ++ if (fni->FileNameLength >= len_cyg + len_dir) ++ { ++ size_t offset = 0; ++ if (!memcmp (fni->FileName, name_msys, len_msys)) ++ offset = len_msys / sizeof (wchar_t); ++ else if (!memcmp (fni->FileName, name_cyg, len_cyg)) ++ offset = len_cyg / sizeof (wchar_t); ++ ++ ret = (offset > 0) && (wcsstr (fni->FileName + offset, name_dir) != NULL); ++ } ++ } ++ free (fni); ++ } ++ return ret; + #else + char const *t = getenv ("TERM"); + /* emacs M-x shell sets TERM="dumb". */ diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0200-add-m-no-align-vector-insn-option-for-i386.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0200-add-m-no-align-vector-insn-option-for-i386.patch new file mode 100644 index 0000000000000000000000000000000000000000..5b2aa73e27b4ffb1229e6bfed798f0931eb2ea5c --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0200-add-m-no-align-vector-insn-option-for-i386.patch @@ -0,0 +1,191 @@ +From 02840e72b20cea4248485462245d4fd3fbe4f385 Mon Sep 17 00:00:00 2001 +From: Kai Tietz +Date: Wed, 21 Apr 2021 07:54:59 +0200 +Subject: [PATCH 15/16] add -m(no-)align-vector-insn option for i386 + +--- + gcc/config/i386/i386-options.cc | 9 +++++-- + gcc/config/i386/i386.opt | 8 ++++++ + gcc/config/i386/mingw32.h | 2 +- + gcc/config/i386/predicates.md | 2 +- + gcc/config/i386/sse.md | 43 +++++++++++++++++++++++++++++---- + 5 files changed, 55 insertions(+), 9 deletions(-) + +diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc +index acb2291e70f..2de64ed5cde 100644 +--- a/gcc/config/i386/i386-options.cc ++++ b/gcc/config/i386/i386-options.cc +@@ -386,6 +386,7 @@ ix86_target_string (HOST_WIDE_INT isa, HOST_WIDE_INT isa2, + { "-minline-stringops-dynamically", MASK_INLINE_STRINGOPS_DYNAMICALLY }, + { "-mms-bitfields", MASK_MS_BITFIELD_LAYOUT }, + { "-mno-align-stringops", MASK_NO_ALIGN_STRINGOPS }, ++ { "-mno-align-vector-insn", MASK_NO_ALIGN_VECTOR_INSN }, + { "-mno-fancy-math-387", MASK_NO_FANCY_MATH_387 }, + { "-mno-push-args", MASK_NO_PUSH_ARGS }, + { "-mno-red-zone", MASK_NO_RED_ZONE }, +@@ -1103,8 +1104,12 @@ ix86_valid_target_attribute_inner_p (tree fndecl, tree args, char *p_strings[], + MASK_INLINE_STRINGOPS_DYNAMICALLY), + + IX86_ATTR_NO ("align-stringops", +- OPT_mno_align_stringops, +- MASK_NO_ALIGN_STRINGOPS), ++ OPT_mno_align_stringops, ++ MASK_NO_ALIGN_STRINGOPS), ++ ++ IX86_ATTR_NO ("align-vector-insn", ++ OPT_mno_align_vector_insn, ++ MASK_NO_ALIGN_VECTOR_INSN), + + IX86_ATTR_YES ("recip", + OPT_mrecip, +diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt +index 0dbaacb57ed..3b1a644e2b6 100644 +--- a/gcc/config/i386/i386.opt ++++ b/gcc/config/i386/i386.opt +@@ -241,6 +241,10 @@ malign-stringops + Target RejectNegative InverseMask(NO_ALIGN_STRINGOPS, ALIGN_STRINGOPS) Save + Align destination of the string operations. + ++malign-vector-insn ++Target RejectNegative InverseMask(NO_ALIGN_VECTOR_INSN, ALIGN_VECTOR_INSN) Save ++Use aligned vector instruction ++ + malign-data= + Target RejectNegative Joined Var(ix86_align_data_type) Enum(ix86_align_data) Init(ix86_align_data_type_compat) + Use the given data alignment. +@@ -420,6 +424,10 @@ mpc80 + Target RejectNegative + Set 80387 floating-point precision to 80-bit. + ++mno-align-vector-insn ++Target Mask(NO_ALIGN_VECTOR_INSN) Save ++Uses unaligned over aligned vector instruction memonics ++ + mpreferred-stack-boundary= + Target RejectNegative Joined UInteger Var(ix86_preferred_stack_boundary_arg) + Attempt to keep stack aligned to this power of 2. +diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h +index baf80400862..2ff2a99e31b 100644 +--- a/gcc/config/i386/mingw32.h ++++ b/gcc/config/i386/mingw32.h +@@ -30,7 +30,7 @@ along with GCC; see the file COPYING3. If not see + #define TARGET_SUBTARGET_DEFAULT \ + (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS \ + | MASK_STACK_PROBE | MASK_ALIGN_DOUBLE \ +- | MASK_MS_BITFIELD_LAYOUT) ++ | MASK_MS_BITFIELD_LAYOUT | MASK_NO_ALIGN_VECTOR_INSN) + + #ifndef TARGET_USING_MCFGTHREAD + #define TARGET_USING_MCFGTHREAD 0 +diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md +index c4141a96735..0ee5a9054ee 100644 +--- a/gcc/config/i386/predicates.md ++++ b/gcc/config/i386/predicates.md +@@ -1644,7 +1644,7 @@ + ;; less than its natural alignment. + (define_predicate "misaligned_operand" + (and (match_code "mem") +- (match_test "MEM_ALIGN (op) < GET_MODE_BITSIZE (mode)"))) ++ (match_test "TARGET_NO_ALIGN_VECTOR_INSN || MEM_ALIGN (op) < GET_MODE_BITSIZE (mode)"))) + + ;; Return true if OP is a parallel for an mov{d,q,dqa,ps,pd} vec_select, + ;; where one of the two operands of the vec_concat is const0_operand. +diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md +index 076064f97e6..b224b578676 100644 +--- a/gcc/config/i386/sse.md ++++ b/gcc/config/i386/sse.md +@@ -1749,7 +1749,8 @@ + (vec_concat:V2DF (vec_select:DF (match_dup 2) + (parallel [(const_int 0)])) + (match_operand:DF 3 "memory_operand")))] +- "TARGET_SSE2 && TARGET_SSE_UNALIGNED_LOAD_OPTIMAL ++ "TARGET_SSE2 ++ && (TARGET_SSE_UNALIGNED_LOAD_OPTIMAL || TARGET_NO_ALIGN_VECTOR_INSN) + && ix86_operands_ok_for_move_multiple (operands, true, DFmode)" + [(set (match_dup 2) (match_dup 5))] + "operands[5] = adjust_address (operands[1], V2DFmode, 0);") +@@ -1760,7 +1761,8 @@ + (set (match_operand:V2DF 2 "sse_reg_operand") + (vec_concat:V2DF (match_operand:DF 4 "sse_reg_operand") + (match_operand:DF 3 "memory_operand")))] +- "TARGET_SSE2 && TARGET_SSE_UNALIGNED_LOAD_OPTIMAL ++ "TARGET_SSE2 ++ && (TARGET_SSE_UNALIGNED_LOAD_OPTIMAL || TARGET_NO_ALIGN_VECTOR_INSN) + && REGNO (operands[4]) == REGNO (operands[2]) + && ix86_operands_ok_for_move_multiple (operands, true, DFmode)" + [(set (match_dup 2) (match_dup 5))] +@@ -1774,7 +1776,8 @@ + (set (match_operand:DF 2 "memory_operand") + (vec_select:DF (match_operand:V2DF 3 "sse_reg_operand") + (parallel [(const_int 1)])))] +- "TARGET_SSE2 && TARGET_SSE_UNALIGNED_STORE_OPTIMAL ++ "TARGET_SSE2 ++ && (TARGET_SSE_UNALIGNED_STORE_OPTIMAL || TARGET_NO_ALIGN_VECTOR_INSN) + && ix86_operands_ok_for_move_multiple (operands, false, DFmode)" + [(set (match_dup 4) (match_dup 1))] + "operands[4] = adjust_address (operands[0], V2DFmode, 0);") +@@ -10434,7 +10437,8 @@ + (vec_select:V2SF + (match_operand:V4SF 1 "nonimmediate_operand" " v,v,m") + (parallel [(const_int 0) (const_int 1)])))] +- "TARGET_SSE && !(MEM_P (operands[0]) && MEM_P (operands[1]))" ++ "TARGET_SSE && TARGET_ALIGN_VECTOR_INSN ++ && !(MEM_P (operands[0]) && MEM_P (operands[1]))" + "@ + %vmovlps\t{%1, %0|%q0, %1} + %vmovaps\t{%1, %0|%0, %1} +@@ -10443,6 +10447,21 @@ + (set_attr "prefix" "maybe_vex") + (set_attr "mode" "V2SF,V4SF,V2SF")]) + ++(define_insn "sse_storelps_unalign" ++ [(set (match_operand:V2SF 0 "nonimmediate_operand" "=m,v,v") ++ (vec_select:V2SF ++ (match_operand:V4SF 1 "nonimmediate_operand" " v,v,m") ++ (parallel [(const_int 0) (const_int 1)])))] ++ "TARGET_SSE && TARGET_NO_ALIGN_VECTOR_INSN ++ && !(MEM_P (operands[0]) && MEM_P (operands[1]))" ++ "@ ++ %vmovlps\t{%1, %0|%q0, %1} ++ %vmovups\t{%1, %0|%0, %1} ++ %vmovlps\t{%1, %d0|%d0, %q1}" ++ [(set_attr "type" "ssemov") ++ (set_attr "prefix" "maybe_vex") ++ (set_attr "mode" "V2SF,V4SF,V2SF")]) ++ + (define_expand "sse_loadlps_exp" + [(set (match_operand:V4SF 0 "nonimmediate_operand") + (vec_concat:V4SF +@@ -13338,7 +13357,7 @@ + (vec_select:DF + (match_operand:V2DF 1 "nonimmediate_operand" "x,x,m") + (parallel [(const_int 0)])))] +- "!TARGET_SSE2 && TARGET_SSE ++ "!TARGET_SSE2 && TARGET_SSE && TARGET_ALIGN_VECTOR_INSN + && !(MEM_P (operands[0]) && MEM_P (operands[1]))" + "@ + movlps\t{%1, %0|%0, %1} +@@ -13347,6 +13366,20 @@ + [(set_attr "type" "ssemov") + (set_attr "mode" "V2SF,V4SF,V2SF")]) + ++(define_insn "*vec_extractv2df_0_sse_unalign" ++ [(set (match_operand:DF 0 "nonimmediate_operand" "=m,x,x") ++ (vec_select:DF ++ (match_operand:V2DF 1 "nonimmediate_operand" "x,x,m") ++ (parallel [(const_int 0)])))] ++ "!TARGET_SSE2 && TARGET_SSE && TARGET_NO_ALIGN_VECTOR_INSN ++ && !(MEM_P (operands[0]) && MEM_P (operands[1]))" ++ "@ ++ movlps\t{%1, %0|%0, %1} ++ movups\t{%1, %0|%0, %1} ++ movlps\t{%1, %0|%0, %q1}" ++ [(set_attr "type" "ssemov") ++ (set_attr "mode" "V2SF,V4SF,V2SF")]) ++ + (define_expand "sse2_loadhpd_exp" + [(set (match_operand:V2DF 0 "nonimmediate_operand") + (vec_concat:V2DF +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0300-override-builtin-printf-format.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0300-override-builtin-printf-format.patch new file mode 100644 index 0000000000000000000000000000000000000000..e3f8aade41cca3d948b35f1079720f61ea61661a --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/0300-override-builtin-printf-format.patch @@ -0,0 +1,82 @@ +From b053e90d5db4e9fe844d1dd1203792197873d51f Mon Sep 17 00:00:00 2001 +From: Tomas Kalibera +Date: Mon, 16 May 2022 06:43:09 -0400 +Subject: [PATCH] c-family: Let stdio.h override built in printf format + [PR95130,PR92292] + +Mingw32 targets use ms_printf format for printf, but mingw-w64 when +configured for UCRT uses gnu_format (via stdio.h). GCC checks both formats, +which means that one gets a warning twice if the format string violates both +formats: + + printf("Hello %lu\n", (long long unsigned) x); + +Fixed by disabling the built in format in case there are additional ones. + +This fixes also prevents issues if the print formats disagree. In the past +it was the case when printing 64-bit integers, but GCC ms_printf format since +c51f1e7427e6a5ae2a6d82b5a790df77a3adc99 supports %llu. + +gcc/c-family/ChangeLog: + + PR c/95130 + PR c/92292 + + * c-format.cc (check_function_format): For builtin functions with a + built in format and at least one more, do not check the first one. +--- + gcc/c-family/c-format.cc | 29 ++++++++++++++++++++++++++++- + 1 file changed, 28 insertions(+), 1 deletion(-) + +diff --git a/gcc/c-family/c-format.cc b/gcc/c-family/c-format.cc +index 01adea4ff41..613b7c827bb 100644 +--- a/gcc/c-family/c-format.cc ++++ b/gcc/c-family/c-format.cc +@@ -1173,9 +1173,10 @@ void + check_function_format (const_tree fn, tree attrs, int nargs, + tree *argarray, vec *arglocs) + { +- tree a; ++ tree a, aa; + + tree atname = get_identifier ("format"); ++ bool skipped_default_format = false; + + /* See if this function has any format attributes. */ + for (a = attrs; a; a = TREE_CHAIN (a)) +@@ -1186,6 +1187,32 @@ check_function_format (const_tree fn, tree attrs, int nargs, + function_format_info info; + decode_format_attr (fn, atname, TREE_VALUE (a), &info, + /*validated=*/true); ++ ++ /* Mingw32 targets have traditionally used ms_printf format for the ++ printf function, and this format is built in GCC. But nowadays, ++ if mingw-w64 is configured to target UCRT, the printf function ++ uses the gnu_printf format (specified in the stdio.h header). This ++ causes GCC to check both formats, which means that GCC would ++ warn twice about the same issue when both formats are violated, ++ e.g. for %lu used to print long long unsigned. ++ ++ Hence, if there are multiple format specifiers, we skip the first ++ one. See PR 95130 (but note that GCC ms_printf already supports ++ %llu) and PR 92292. */ ++ ++ if (!skipped_default_format && fn && TREE_CODE (fn) == FUNCTION_DECL) ++ { ++ for(aa = TREE_CHAIN (a); aa; aa = TREE_CHAIN (aa)) ++ if (is_attribute_p ("format", get_attribute_name (aa)) ++ && fndecl_built_in_p (fn, BUILT_IN_NORMAL)) ++ { ++ skipped_default_format = true; ++ break; ++ } ++ if (skipped_default_format) ++ continue; ++ } ++ + if (warn_format) + { + /* FIXME: Rewrite all the internal functions in this file +-- +2.38.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/2000-enable-rust.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/2000-enable-rust.patch new file mode 100644 index 0000000000000000000000000000000000000000..c8ba249a51e1e7c01b42d5cb6b7475d4e7e633eb --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/2000-enable-rust.patch @@ -0,0 +1,42 @@ +--- a/configure ++++ b/configure +@@ -8909,18 +8909,6 @@ + ;; + esac + +- # Disable Rust for GCC 13 release. +- case ${add_this_lang}:${language} in +- yes:rust) +- # Specifically requested language; tell them. +- as_fn_error $? "Rust is not supported in GCC 13 release" "$LINENO" 5 +- ;; +- *:rust) +- # Silently disable. +- add_this_lang=unsupported +- ;; +- esac +- + # Disable jit if -enable-host-shared not specified + # but not if building for Mingw. All code in Windows + # is position independent code (PIC). +--- a/configure.ac ++++ b/configure.ac +@@ -2150,18 +2150,6 @@ if test -d ${srcdir}/gcc; then + ;; + esac + +- # Disable Rust for GCC 13 release. +- case ${add_this_lang}:${language} in +- yes:rust) +- # Specifically requested language; tell them. +- AC_MSG_ERROR([Rust is not supported in GCC 13 release]) +- ;; +- *:rust) +- # Silently disable. +- add_this_lang=unsupported +- ;; +- esac +- + # Disable jit if -enable-host-shared not specified + # but not if building for Mingw. All code in Windows + # is position independent code (PIC). diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/2001-fix-building-rust-on-mingw-w64.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/2001-fix-building-rust-on-mingw-w64.patch new file mode 100644 index 0000000000000000000000000000000000000000..c3c3c8add7fbb2b4265ce07e0a6cc80bc76a3693 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/2001-fix-building-rust-on-mingw-w64.patch @@ -0,0 +1,53 @@ +--- a/gcc/rust/backend/rust-compile-base.cc ++++ b/gcc/rust/backend/rust-compile-base.cc +@@ -332,7 +332,7 @@ + + break; + +- case Rust::ABI::WIN64: ++ case Rust::ABI::WIN_64: + abi_tree = get_identifier ("ms_abi"); + + break; +--- a/gcc/rust/parse/rust-parse.cc ++++ b/gcc/rust/parse/rust-parse.cc +@@ -87,7 +87,7 @@ + // Source: rustc compiler + // (https://github.com/rust-lang/rust/blob/9863bf51a52b8e61bcad312f81b5193d53099f9f/compiler/rustc_expand/src/module.rs#L174) + #if defined(HAVE_DOS_BASED_FILE_SYSTEM) +- path.replace ('/', '\\'); ++ std::replace (path.begin(), path.end(), '/', '\\'); + #endif /* HAVE_DOS_BASED_FILE_SYSTEM */ + + return path; +--- a/gcc/rust/util/rust-abi.cc ++++ b/gcc/rust/util/rust-abi.cc +@@ -38,7 +38,7 @@ + else if (abi.compare ("sysv64") == 0) + return Rust::ABI::SYSV64; + else if (abi.compare ("win64") == 0) +- return Rust::ABI::WIN64; ++ return Rust::ABI::WIN_64; + + return Rust::ABI::UNKNOWN; + } +@@ -62,7 +62,7 @@ + return "fastcall"; + case Rust::ABI::SYSV64: + return "sysv64"; +- case Rust::ABI::WIN64: ++ case Rust::ABI::WIN_64: + return "win64"; + + case Rust::ABI::UNKNOWN: +--- a/gcc/rust/util/rust-abi.h ++++ b/gcc/rust/util/rust-abi.h +@@ -30,7 +30,7 @@ + CDECL, + STDCALL, + FASTCALL, +- WIN64, ++ WIN_64, + SYSV64 + }; + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/2f7e7bfa3c6327793cdcdcb5c770b93cecd49bd0.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/2f7e7bfa3c6327793cdcdcb5c770b93cecd49bd0.patch new file mode 100644 index 0000000000000000000000000000000000000000..c8463ca9b0f62906cd786c639e0609392c041576 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/2f7e7bfa3c6327793cdcdcb5c770b93cecd49bd0.patch @@ -0,0 +1,89 @@ +From 2f7e7bfa3c6327793cdcdcb5c770b93cecd49bd0 Mon Sep 17 00:00:00 2001 +From: Mark Harmstone +Date: Tue, 18 Apr 2023 13:55:35 -0600 +Subject: [PATCH] Add -gcodeview option + +gcc/ + * common.opt (gcodeview): Add new option. + * gcc.cc (driver_handle_option); Handle OPT_gcodeview. + * opts.cc (command_handle_option): Similarly. + * doc/invoke.texi: Add documentation for -gcodeview. +--- + gcc/common.opt | 4 ++++ + gcc/doc/invoke.texi | 7 +++++++ + gcc/gcc.cc | 4 ++++ + gcc/opts.cc | 3 +++ + 4 files changed, 18 insertions(+) + +diff --git a/gcc/common.opt b/gcc/common.opt +index 862c474d3c8f..a28ca13385a2 100644 +--- a/gcc/common.opt ++++ b/gcc/common.opt +@@ -3318,6 +3318,10 @@ gas-locview-support + Common Driver Var(dwarf2out_as_locview_support) + Assume assembler support for view in (DWARF2+) .loc directives. + ++gcodeview ++Common Driver JoinedOrMissing ++Generate debug information in CodeView format. ++ + gcoff + Common Driver WarnRemoved + Does nothing. Preserved for backward compatibility. +diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi +index a38547f53e53..aae6bc729dbd 100644 +--- a/gcc/doc/invoke.texi ++++ b/gcc/doc/invoke.texi +@@ -509,6 +509,7 @@ Objective-C and Objective-C++ Dialects}. + -gstrict-dwarf -gno-strict-dwarf + -gas-loc-support -gno-as-loc-support + -gas-locview-support -gno-as-locview-support ++-gcodeview @gol + -gcolumn-info -gno-column-info -gdwarf32 -gdwarf64 + -gstatement-frontiers -gno-statement-frontiers + -gvariable-location-views -gno-variable-location-views +@@ -11328,6 +11329,12 @@ at file-scope or global-scope only. + Produce debugging information in Alpha/VMS debug format (if that is + supported). This is the format used by DEBUG on Alpha/VMS systems. + ++@item -gcodeview ++@opindex gcodeview ++Produce debugging information in CodeView debug format (if that is ++supported). This is the format used by Microsoft Visual C++ on ++Windows. ++ + @item -g@var{level} + @itemx -ggdb@var{level} + @itemx -gvms@var{level} +diff --git a/gcc/gcc.cc b/gcc/gcc.cc +index 16bb07f2cdc5..39a44fa486da 100644 +--- a/gcc/gcc.cc ++++ b/gcc/gcc.cc +@@ -4572,6 +4572,10 @@ driver_handle_option (struct gcc_options *opts, + do_save = false; + break; + ++ case OPT_gcodeview: ++ add_infile ("--pdb=", "*"); ++ break; ++ + default: + /* Various driver options need no special processing at this + point, having been handled in a prescan above or being +diff --git a/gcc/opts.cc b/gcc/opts.cc +index fb2e5388ab19..86b94d62b588 100644 +--- a/gcc/opts.cc ++++ b/gcc/opts.cc +@@ -3134,6 +3134,9 @@ common_handle_option (struct gcc_options *opts, + loc); + break; + ++ case OPT_gcodeview: ++ break; ++ + case OPT_gbtf: + set_debug_level (BTF_DEBUG, false, arg, opts, opts_set, loc); + /* set the debug level to level 2, but if already at level 3, +-- +2.39.3 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/3eeb4801d6f45f6250fc77a6d3ab4e0115f8cfdd.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/3eeb4801d6f45f6250fc77a6d3ab4e0115f8cfdd.patch new file mode 100644 index 0000000000000000000000000000000000000000..779b6967bf949b147cfaa415b59174d1e4336d81 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/3eeb4801d6f45f6250fc77a6d3ab4e0115f8cfdd.patch @@ -0,0 +1,30 @@ +From 3eeb4801d6f45f6250fc77a6d3ab4e0115f8cfdd Mon Sep 17 00:00:00 2001 +From: Jason Merrill +Date: Tue, 18 Apr 2023 16:28:24 -0400 +Subject: [PATCH] doc: remove stray @gol + +@gol was removed in r13-6778, new doc additions can't use it. + +gcc/ChangeLog: + + * doc/invoke.texi: Remove stray @gol. +--- + gcc/doc/invoke.texi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi +index aae6bc729dbd..57fb170ca4cc 100644 +--- a/gcc/doc/invoke.texi ++++ b/gcc/doc/invoke.texi +@@ -509,7 +509,7 @@ Objective-C and Objective-C++ Dialects}. + -gstrict-dwarf -gno-strict-dwarf + -gas-loc-support -gno-as-loc-support + -gas-locview-support -gno-as-locview-support +--gcodeview @gol ++-gcodeview + -gcolumn-info -gno-column-info -gdwarf32 -gdwarf64 + -gstatement-frontiers -gno-statement-frontiers + -gvariable-location-views -gno-variable-location-views +-- +2.39.3 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/777aa930b106fea2dd6ed9fe22b42a2717f1472d.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/777aa930b106fea2dd6ed9fe22b42a2717f1472d.patch new file mode 100644 index 0000000000000000000000000000000000000000..09836e08a061581355b37930cd931458d3c7bd54 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/mingw/777aa930b106fea2dd6ed9fe22b42a2717f1472d.patch @@ -0,0 +1,364 @@ +From 777aa930b106fea2dd6ed9fe22b42a2717f1472d Mon Sep 17 00:00:00 2001 +From: Aldy Hernandez +Date: Mon, 15 May 2023 12:25:58 +0200 +Subject: [PATCH] [GCC13] Add auto-resizing capability to irange's [PR109695] + +Backport the following from trunk. + + Note that the patch has been adapted to trees. + + The numbers for various sub-ranges on GCC13 are: + < 2> = 64 bytes, -3.02% for VRP. + < 3> = 80 bytes, -2.67% for VRP. + < 8> = 160 bytes, -2.46% for VRP. + <16> = 288 bytes, -2.40% for VRP. + + +We can now have int_range for automatically +resizable ranges. int_range_max is now int_range<3, true> +for a 69X reduction in size from current trunk, and 6.9X reduction from +GCC12. This incurs a 5% performance penalty for VRP that is more than +covered by our > 13% improvements recently. + + +int_range_max is the temporary range object we use in the ranger for +integers. With the conversion to wide_int, this structure bloated up +significantly because wide_ints are huge (80 bytes a piece) and are +about 10 times as big as a plain tree. Since the temporary object +requires 255 sub-ranges, that's 255 * 80 * 2, plus the control word. +This means the structure grew from 4112 bytes to 40912 bytes. + +This patch adds the ability to resize ranges as needed, defaulting to +no resizing, while int_range_max now defaults to 3 sub-ranges (instead +of 255) and grows to 255 when the range being calculated does not fit. + +For example: + +int_range<1> foo; // 1 sub-range with no resizing. +int_range<5> foo; // 5 sub-ranges with no resizing. +int_range<5, true> foo; // 5 sub-ranges with resizing. + +I ran some tests and found that 3 sub-ranges cover 99% of cases, so +I've set the int_range_max default to that: + + typedef int_range<3, /*RESIZABLE=*/true> int_range_max; + +We don't bother growing incrementally, since the default covers most +cases and we have a 255 hard-limit. This hard limit could be reduced +to 128, since my tests never saw a range needing more than 124, but we +could do that as a follow-up if needed. + +With 3-subranges, int_range_max is now 592 bytes versus 40912 for +trunk, and versus 4112 bytes for GCC12! The penalty is 5.04% for VRP +and 3.02% for threading, with no noticeable change in overall +compilation (0.27%). This is more than covered by our 13.26% +improvements for the legacy removal + wide_int conversion. + +I think this approach is a good alternative, while providing us with +flexibility going forward. For example, we could try defaulting to a +8 sub-ranges for a noticeable improvement in VRP. We could also use +large sub-ranges for switch analysis to avoid resizing. + +Another approach I tried was always resizing. With this, we could +drop the whole int_range nonsense, and have irange just hold a +resizable range. This simplified things, but incurred a 7% penalty on +ipa_cp. This was hard to pinpoint, and I'm not entirely convinced +this wasn't some artifact of valgrind. However, until we're sure, +let's avoid massive changes, especially since IPA changes are coming +up. + +For the curious, a particular hot spot for IPA in this area was: + +ipcp_vr_lattice::meet_with_1 (const value_range *other_vr) +{ +... +... + value_range save (m_vr); + m_vr.union_ (*other_vr); + return m_vr != save; +} + +The problem isn't the resizing (since we do that at most once) but the +fact that for some functions with lots of callers we end up a huge +range that gets copied and compared for every meet operation. Maybe +the IPA algorithm could be adjusted somehow??. + +Anywhooo... for now there is nothing to worry about, since value_range +still has 2 subranges and is not resizable. But we should probably +think what if anything we want to do here, as I envision IPA using +infinite ranges here (well, int_range_max) and handling frange's, etc. + +gcc/ChangeLog: + + PR tree-optimization/109695 + * value-range.cc (irange::operator=): Resize range. + (irange::union_): Same. + (irange::intersect): Same. + (irange::invert): Same. + (int_range_max): Default to 3 sub-ranges and resize as needed. + * value-range.h (irange::maybe_resize): New. + (~int_range): New. + (int_range::int_range): Adjust for resizing. + (int_range::operator=): Same. +--- + gcc/value-range-storage.h | 2 +- + gcc/value-range.cc | 15 ++++++ + gcc/value-range.h | 96 +++++++++++++++++++++++++++------------ + 3 files changed, 83 insertions(+), 30 deletions(-) + +diff --git a/gcc/value-range-storage.h b/gcc/value-range-storage.h +index 6da377ebd2e..1ed6f1ccd61 100644 +--- a/gcc/value-range-storage.h ++++ b/gcc/value-range-storage.h +@@ -184,7 +184,7 @@ vrange_allocator::alloc_irange (unsigned num_pairs) + // Allocate the irange and required memory for the vector. + void *r = alloc (sizeof (irange)); + tree *mem = static_cast (alloc (nbytes)); +- return new (r) irange (mem, num_pairs); ++ return new (r) irange (mem, num_pairs, /*resizable=*/false); + } + + inline frange * +diff --git a/gcc/value-range.cc b/gcc/value-range.cc +index ec826c2fe1b..753f5e8cc76 100644 +--- a/gcc/value-range.cc ++++ b/gcc/value-range.cc +@@ -831,6 +831,10 @@ irange::operator= (const irange &src) + copy_to_legacy (src); + return *this; + } ++ ++ int needed = src.num_pairs (); ++ maybe_resize (needed); ++ + if (src.legacy_mode_p ()) + { + copy_legacy_to_multi_range (src); +@@ -2506,6 +2510,7 @@ irange::irange_union (const irange &r) + // Now it simply needs to be copied, and if there are too many + // ranges, merge some. We wont do any analysis as to what the + // "best" merges are, simply combine the final ranges into one. ++ maybe_resize (i / 2); + if (i > m_max_ranges * 2) + { + res[m_max_ranges * 2 - 1] = res[i - 1]; +@@ -2605,6 +2610,11 @@ irange::irange_intersect (const irange &r) + if (r.irange_contains_p (*this)) + return intersect_nonzero_bits (r); + ++ // ?? We could probably come up with something smarter than the ++ // worst case scenario here. ++ int needed = num_pairs () + r.num_pairs (); ++ maybe_resize (needed); ++ + signop sign = TYPE_SIGN (TREE_TYPE(m_base[0])); + unsigned bld_pair = 0; + unsigned bld_lim = m_max_ranges; +@@ -2831,6 +2841,11 @@ irange::invert () + m_num_ranges = 1; + return; + } ++ ++ // At this point, we need one extra sub-range to represent the ++ // inverse. ++ maybe_resize (m_num_ranges + 1); ++ + // The algorithm is as follows. To calculate INVERT ([a,b][c,d]), we + // generate [-MIN, a-1][b+1, c-1][d+1, MAX]. + // +diff --git a/gcc/value-range.h b/gcc/value-range.h +index 969b2b68418..96e59ecfa72 100644 +--- a/gcc/value-range.h ++++ b/gcc/value-range.h +@@ -172,7 +172,8 @@ public: + bool legacy_verbose_intersect (const irange *); // DEPRECATED + + protected: +- irange (tree *, unsigned); ++ void maybe_resize (int needed); ++ irange (tree *, unsigned nranges, bool resizable); + // potential promotion to public? + tree tree_lower_bound (unsigned = 0) const; + tree tree_upper_bound (unsigned) const; +@@ -200,6 +201,8 @@ protected: + void copy_to_legacy (const irange &); + void copy_legacy_to_multi_range (const irange &); + ++ // Hard limit on max ranges allowed. ++ static const int HARD_MAX_RANGES = 255; + private: + friend void gt_ggc_mx (irange *); + friend void gt_pch_nx (irange *); +@@ -214,15 +217,21 @@ private: + + bool intersect (const wide_int& lb, const wide_int& ub); + unsigned char m_num_ranges; ++ bool m_resizable; + unsigned char m_max_ranges; + tree m_nonzero_mask; ++protected: + tree *m_base; + }; + + // Here we describe an irange with N pairs of ranges. The storage for + // the pairs is embedded in the class as an array. ++// ++// If RESIZABLE is true, the storage will be resized on the heap when ++// the number of ranges needed goes past N up to a max of ++// HARD_MAX_RANGES. This new storage is freed upon destruction. + +-template ++template + class GTY((user)) int_range : public irange + { + public: +@@ -233,7 +242,7 @@ public: + int_range (tree type); + int_range (const int_range &); + int_range (const irange &); +- virtual ~int_range () = default; ++ virtual ~int_range (); + int_range& operator= (const int_range &); + private: + template friend void gt_ggc_mx (int_range *); +@@ -472,6 +481,38 @@ is_a (vrange &v) + return v.m_discriminator == VR_FRANGE; + } + ++// For resizable ranges, resize the range up to HARD_MAX_RANGES if the ++// NEEDED pairs is greater than the current capacity of the range. ++ ++inline void ++irange::maybe_resize (int needed) ++{ ++ if (!m_resizable || m_max_ranges == HARD_MAX_RANGES) ++ return; ++ ++ if (needed > m_max_ranges) ++ { ++ m_max_ranges = HARD_MAX_RANGES; ++ tree *newmem = new tree[m_max_ranges * 2]; ++ memcpy (newmem, m_base, sizeof (tree) * num_pairs () * 2); ++ m_base = newmem; ++ } ++} ++ ++template ++inline ++int_range::~int_range () ++{ ++ if (RESIZABLE && m_base != m_ranges) ++ delete m_base; ++} ++ ++// This is an "infinite" precision irange for use in temporary ++// calculations. It starts with a sensible default covering 99% of ++// uses, and goes up to HARD_MAX_RANGES when needed. Any allocated ++// storage is freed upon destruction. ++typedef int_range<3, /*RESIZABLE=*/true> int_range_max; ++ + class vrange_visitor + { + public: +@@ -490,10 +531,6 @@ public: + // There are copy operators to seamlessly copy to/fro multi-ranges. + typedef int_range<1> value_range; + +-// This is an "infinite" precision irange for use in temporary +-// calculations. +-typedef int_range<255> int_range_max; +- + // This is an "infinite" precision range object for use in temporary + // calculations for any of the handled types. The object can be + // transparently used as a vrange. +@@ -872,64 +909,65 @@ gt_pch_nx (int_range *x, gt_pointer_operator op, void *cookie) + // Constructors for irange + + inline +-irange::irange (tree *base, unsigned nranges) ++irange::irange (tree *base, unsigned nranges, bool resizable) + { + m_discriminator = VR_IRANGE; + m_base = base; + m_max_ranges = nranges; ++ m_resizable = resizable; + set_undefined (); + } + + // Constructors for int_range<>. + +-template ++template + inline +-int_range::int_range () +- : irange (m_ranges, N) ++int_range::int_range () ++ : irange (m_ranges, N, RESIZABLE) + { + } + +-template +-int_range::int_range (const int_range &other) +- : irange (m_ranges, N) ++template ++int_range::int_range (const int_range &other) ++ : irange (m_ranges, N, RESIZABLE) + { + irange::operator= (other); + } + +-template +-int_range::int_range (tree min, tree max, value_range_kind kind) +- : irange (m_ranges, N) ++template ++int_range::int_range (tree min, tree max, value_range_kind kind) ++ : irange (m_ranges, N, RESIZABLE) + { + irange::set (min, max, kind); + } + +-template +-int_range::int_range (tree type) +- : irange (m_ranges, N) ++template ++int_range::int_range (tree type) ++ : irange (m_ranges, N, RESIZABLE) + { + set_varying (type); + } + +-template +-int_range::int_range (tree type, const wide_int &wmin, const wide_int &wmax, ++template ++int_range::int_range (tree type, const wide_int &wmin, const wide_int &wmax, + value_range_kind kind) +- : irange (m_ranges, N) ++ : irange (m_ranges, N, RESIZABLE) + { + tree min = wide_int_to_tree (type, wmin); + tree max = wide_int_to_tree (type, wmax); + set (min, max, kind); + } + +-template +-int_range::int_range (const irange &other) +- : irange (m_ranges, N) ++template ++int_range::int_range (const irange &other) ++ : irange (m_ranges, N, RESIZABLE) + { + irange::operator= (other); + } + +-template +-int_range& +-int_range::operator= (const int_range &src) ++template ++int_range& ++int_range::operator= (const int_range &src) + { + irange::operator= (src); + return *this; +-- +2.40.0 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/new-allow-commands-in-main-specfile.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/new-allow-commands-in-main-specfile.patch new file mode 100644 index 0000000000000000000000000000000000000000..3374b6895fe3412df3c528665c9b45c62738762a --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/new-allow-commands-in-main-specfile.patch @@ -0,0 +1,26 @@ +From 34e495874e7a1bc6ef774a8c4a1a1dd239ea03cb Mon Sep 17 00:00:00 2001 +From: Tim Snyder +Date: Tue, 29 Mar 2022 22:33:27 +0000 +Subject: [PATCH] allow % commands in main specfile + +--- + gcc/gcc.cc | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/gcc/gcc.cc b/gcc/gcc.cc +index a716f7082..970cc0ba9 100644 +--- a/gcc/gcc.cc ++++ b/gcc/gcc.cc +@@ -2095,7 +2095,8 @@ read_specs (const char *filename, bool main_p, bool user_p) + /* Is this a special command that starts with '%'? */ + /* Don't allow this for the main specs file, since it would + encourage people to overwrite it. */ +- if (*p == '%' && !main_p) ++ /* ::conda-forge:: allow use of commands in main specs */ ++ if (*p == '%') + { + p1 = p; + while (*p && *p != '\n') +-- +2.35.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/old-allow-commands-in-main-specfile.patch b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/old-allow-commands-in-main-specfile.patch new file mode 100644 index 0000000000000000000000000000000000000000..ecf62dbdae2d742842fa141e6c712897e76b6489 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/patches/old-allow-commands-in-main-specfile.patch @@ -0,0 +1,26 @@ +From 34e495874e7a1bc6ef774a8c4a1a1dd239ea03cb Mon Sep 17 00:00:00 2001 +From: Tim Snyder +Date: Tue, 29 Mar 2022 22:33:27 +0000 +Subject: [PATCH] allow % commands in main specfile + +--- + gcc/gcc.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/gcc/gcc.c b/gcc/gcc.c +index a716f7082..970cc0ba9 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -2095,7 +2095,8 @@ read_specs (const char *filename, bool main_p, bool user_p) + /* Is this a special command that starts with '%'? */ + /* Don't allow this for the main specs file, since it would + encourage people to overwrite it. */ +- if (*p == '%' && !main_p) ++ /* ::conda-forge:: allow use of commands in main specs */ ++ if (*p == '%') + { + p1 = p; + while (*p && *p != '\n') +-- +2.35.1 + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/recipe-scripts-license.txt b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..2ec51d75f362bc4327a3cfe1c515c16bb3c57367 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/recipe-scripts-license.txt @@ -0,0 +1,27 @@ +BSD-3-Clause license +Copyright (c) 2015-2022, conda-forge contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/setup_compiler.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/setup_compiler.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bdb9adfb0985baaaeb0949252c4d949c90d03da --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/setup_compiler.sh @@ -0,0 +1,47 @@ +#!/bin/bash +if [[ ! -d $SRC_DIR/cf-compilers ]]; then + extra_pkgs=() + if [[ "$build_platform" != "$target_platform" ]]; then + # we need a compiler to target cross_target_platform. + # when build_platform == target_platform, the compiler + # just built can be used. + # when build_platform != target_platform, the compiler + # just built cannot be used, hence we need one that + # can be used. + extra_pkgs+=( + "gcc_impl_${cross_target_platform}=${gcc_version}" + "gxx_impl_${cross_target_platform}=${gcc_version}" + "gfortran_impl_${cross_target_platform}=${gcc_version}" + ) + fi + # Remove conda-forge/label/sysroot-with-crypt when GCC < 14 is dropped + conda create -p $SRC_DIR/cf-compilers -c conda-forge/label/sysroot-with-crypt -c conda-forge --yes --quiet \ + "binutils_impl_${build_platform}" \ + "gcc_impl_${build_platform}" \ + "gxx_impl_${build_platform}" \ + "gfortran_impl_${build_platform}" \ + "binutils_impl_${target_platform}=${binutils_version}" \ + "gcc_impl_${target_platform}" \ + "gxx_impl_${target_platform}" \ + "gfortran_impl_${target_platform}" \ + "${c_stdlib}_${target_platform}=${c_stdlib_version}" \ + "binutils_impl_${cross_target_platform}=${binutils_version}" \ + "${cross_target_stdlib}_${cross_target_platform}=${cross_target_stdlib_version}" \ + ${extra_pkgs[@]} +fi + +export PATH=$SRC_DIR/cf-compilers/bin:$PATH +export BUILD_PREFIX=$SRC_DIR/cf-compilers + +if [[ "$target_platform" == "win-"* && "${PREFIX}" != *Library ]]; then + export PREFIX=${PREFIX}/Library +fi + +source $RECIPE_DIR/get_cpu_arch.sh + +if [[ "$target_platform" == "win-64" ]]; then + EXEEXT=".exe" +else + EXEEXT="" +fi +SYSROOT_DIR=${PREFIX}/${TARGET}/sysroot diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/aligned_alloc.c b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/aligned_alloc.c new file mode 100644 index 0000000000000000000000000000000000000000..287be94c7340a134a5d9a56ddc0f6c20acc0af74 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/aligned_alloc.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) +{ + int *p2 = (int*)aligned_alloc(1024, 1024*sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/aligned_alloc.cpp b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/aligned_alloc.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1379c7547ae63e12433db910d243f159657aa0b6 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/aligned_alloc.cpp @@ -0,0 +1,18 @@ +#include +#include +#include +//#include + +int main(void) +{ + /// int *p2 = (int*)memalign(1024, 1024 * sizeof *p2); + int *p2; + int err = posix_memalign((void**)&p2, 1024, sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); + p2 = (int*)std::aligned_alloc(1024, 1); + printf("1024-byte aligned addr: %p\n", (void*)p2); + std::free(p2); + p2 = (int*)aligned_alloc(1024, 1024); + printf("1024-byte aligned addr: %p\n", (void*)p2); +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/fortomp/CMakeLists.txt b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/fortomp/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..491a48b42cb3ddfef5f8541f8db848e0ba844f84 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/fortomp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.3 FATAL_ERROR) +project(fortomp + LANGUAGES Fortran) + +find_package(OpenMP REQUIRED) diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/fortomp/test_fort.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/fortomp/test_fort.sh new file mode 100644 index 0000000000000000000000000000000000000000..75731b653df023e75c4d2b73b2c345a3510faad9 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/fortomp/test_fort.sh @@ -0,0 +1,11 @@ +GFORTRAN=$(${PREFIX}/bin/*-gcc -dumpmachine)-gfortran +FFLAGS="-fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe" + +cmake \ + -H${SRC_DIR} \ + -Bbuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_Fortran_COMPILER=${GFORTRAN} \ + -DCMAKE_Fortran_FLAGS="${FFLAGS}" \ + . diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/hello_world.c b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/hello_world.c new file mode 100644 index 0000000000000000000000000000000000000000..f6054fde81f8dfa4882cef918c408fa6b7255c3e --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/hello_world.c @@ -0,0 +1,5 @@ +#include + +int main() { + printf("hello world!\n"); +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/hello_world.cpp b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/hello_world.cpp new file mode 100644 index 0000000000000000000000000000000000000000..585eea4cee5b1176fd28267f3e27dbdb344fd31f --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/hello_world.cpp @@ -0,0 +1,6 @@ +#include + +int main(void) +{ + std::cout << "hello world!" << std::endl; +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/howdy-dso.c b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/howdy-dso.c new file mode 100644 index 0000000000000000000000000000000000000000..ea47ce0a03e061a965fc1e2cdaf310c038d4b44d --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/howdy-dso.c @@ -0,0 +1,6 @@ +#include + +int main(void) { + howdy(); + return 0; +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/libhowdy.c b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/libhowdy.c new file mode 100644 index 0000000000000000000000000000000000000000..6cd0dc522a8e4485f8173321a3dff2b21f079415 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/libhowdy.c @@ -0,0 +1,5 @@ +#include + +void howdy(void) { + printf("Howdy Y'all!\n"); +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/libhowdy.h b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/libhowdy.h new file mode 100644 index 0000000000000000000000000000000000000000..6234950e5a3ce9ff0209513f328d0ecfc71bac99 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/tests/libhowdy.h @@ -0,0 +1,6 @@ +#ifndef _LIBHOWDY_H +#define _LIBHOWDY_H + +extern void howdy(void); + +#endif diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/uclibc.config b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/uclibc.config new file mode 100644 index 0000000000000000000000000000000000000000..1c51f52fd306d3a08ada254a04bb29b307ac7399 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/uclibc.config @@ -0,0 +1,295 @@ +# +# Automatically generated make config: don't edit +# Version: 0.9.32-git +# Fri Jul 9 22:31:59 2010 +# +# TARGET_alpha is not set +TARGET_arm=y +# TARGET_avr32 is not set +# TARGET_bfin is not set +# TARGET_cris is not set +# TARGET_e1 is not set +# TARGET_frv is not set +# TARGET_h8300 is not set +# TARGET_hppa is not set +# TARGET_i386 is not set +# TARGET_i960 is not set +# TARGET_ia64 is not set +# TARGET_m68k is not set +# TARGET_microblaze is not set +# TARGET_mips is not set +# TARGET_nios is not set +# TARGET_nios2 is not set +# TARGET_powerpc is not set +# TARGET_sh is not set +# TARGET_sh64 is not set +# TARGET_sparc is not set +# TARGET_v850 is not set +# TARGET_vax is not set +# TARGET_x86_64 is not set +# TARGET_xtensa is not set +# TARGET_c6x is not set + +# CONFIG_GENERIC_ARM is not set +# CONFIG_ARM610 is not set +# CONFIG_ARM710 is not set +# CONFIG_ARM7TDMI is not set +# CONFIG_ARM720T is not set +# CONFIG_ARM920T is not set +# CONFIG_ARM922T is not set +# CONFIG_ARM926T is not set +# CONFIG_ARM10T is not set +CONFIG_ARM1136JF_S=y +# CONFIG_ARM1176JZ_S is not set +# CONFIG_ARM1176JZF_S is not set +# CONFIG_ARM_CORTEX_M3 is not set +# CONFIG_ARM_CORTEX_M1 is not set +# CONFIG_ARM_SA110 is not set +# CONFIG_ARM_SA1100 is not set +# CONFIG_ARM_XSCALE is not set +# CONFIG_ARM_IWMMXT is not set + +# COMPILE_IN_THUMB_MODE is not set +USE_BX=y + +TARGET_SUBARCH="" +# +# Target Architecture Features and Options +# +TARGET_ARCH="arm" +FORCE_OPTIONS_FOR_ARCH=y +# +# Using ELF file format +# +ARCH_LITTLE_ENDIAN=y +# ARCH_BIG_ENDIAN is not set +ARCH_WANTS_LITTLE_ENDIAN=y +# ARCH_WANTS_BIG_ENDIAN is not set +ARCH_HAS_MMU=y +ARCH_USE_MMU=y +UCLIBC_HAS_FLOATS=y +UCLIBC_HAS_FPU=n +DO_C99_MATH=y +# DO_XSI_MATH is not set +# UCLIBC_HAS_FENV is not set +UCLIBC_HAS_LONG_DOUBLE_MATH=y +HAVE_DOT_CONFIG=y + +# +# General Library Settings +# +# HAVE_NO_PIC is not set +DOPIC=y +# ARCH_HAS_NO_SHARED is not set +# ARCH_HAS_NO_LDSO is not set +HAVE_SHARED=y +# FORCE_SHAREABLE_TEXT_SEGMENTS is not set +LDSO_LDD_SUPPORT=y +# LDSO_CACHE_SUPPORT is not set +LDSO_PRELOAD_ENV_SUPPORT=y +# LDSO_PRELOAD_FILE_SUPPORT is not set +# LDSO_STANDALONE_SUPPORT is not set +# LDSO_PRELINK_SUPPORT is not set +# UCLIBC_STATIC_LDCONFIG is not set +LDSO_RUNPATH=y +LDSO_SEARCH_INTERP_PATH=y +LDSO_LD_LIBRARY_PATH=y +# LDSO_NO_CLEANUP is not set +UCLIBC_CTOR_DTOR=y +# LDSO_GNU_HASH_SUPPORT is not set +# HAS_NO_THREADS is not set +UCLIBC_HAS_SYSLOG=y +UCLIBC_HAS_LFS=y +# MALLOC is not set +# MALLOC_SIMPLE is not set +MALLOC_STANDARD=y +MALLOC_GLIBC_COMPAT=y +UCLIBC_DYNAMIC_ATEXIT=y +# COMPAT_ATEXIT is not set +UCLIBC_SUSV3_LEGACY=y +# UCLIBC_SUSV3_LEGACY_MACROS is not set +UCLIBC_SUSV4_LEGACY=y +# UCLIBC_STRICT_HEADERS is not set +# UCLIBC_HAS_STUBS is not set +UCLIBC_HAS_SHADOW=y +UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y +UCLIBC_HAS___PROGNAME=y +UCLIBC_HAS_PTY=y +ASSUME_DEVPTS=y +UNIX98PTY_ONLY=y +UCLIBC_HAS_GETPT=y +UCLIBC_HAS_LIBUTIL=y +UCLIBC_HAS_TM_EXTENSIONS=y +UCLIBC_HAS_TZ_CACHING=y +UCLIBC_HAS_TZ_FILE=y +UCLIBC_HAS_TZ_FILE_READ_MANY=y +UCLIBC_TZ_FILE_PATH="/etc/TZ" +UCLIBC_FALLBACK_TO_ETC_LOCALTIME=y + +# +# Advanced Library Settings +# +UCLIBC_PWD_BUFFER_SIZE=256 +UCLIBC_GRP_BUFFER_SIZE=256 + +# +# Support various families of functions +# +UCLIBC_LINUX_MODULE_26=y +# UCLIBC_LINUX_MODULE_24 is not set +UCLIBC_LINUX_SPECIFIC=y +UCLIBC_HAS_GNU_ERROR=y +UCLIBC_BSD_SPECIFIC=y +UCLIBC_HAS_BSD_ERR=y +# UCLIBC_HAS_OBSOLETE_BSD_SIGNAL is not set +# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set +# UCLIBC_NTP_LEGACY is not set +# UCLIBC_SV4_DEPRECATED is not set +UCLIBC_HAS_REALTIME=y +UCLIBC_HAS_ADVANCED_REALTIME=y +UCLIBC_HAS_EPOLL=y +UCLIBC_HAS_XATTR=y +UCLIBC_HAS_PROFILING=y +UCLIBC_HAS_CRYPT_IMPL=y +# UCLIBC_HAS_SHA256_CRYPT_IMPL is not set +# UCLIBC_HAS_SHA512_CRYPT_IMPL is not set +UCLIBC_HAS_CRYPT=y +UCLIBC_HAS_NETWORK_SUPPORT=y +UCLIBC_HAS_SOCKET=y +UCLIBC_HAS_IPV4=y +UCLIBC_HAS_IPV6=y +UCLIBC_HAS_RPC=n +UCLIBC_HAS_FULL_RPC=n +UCLIBC_HAS_REENTRANT_RPC=n +UCLIBC_USE_NETLINK=y +UCLIBC_SUPPORT_AI_ADDRCONFIG=y +# UCLIBC_HAS_BSD_RES_CLOSE is not set +UCLIBC_HAS_COMPAT_RES_STATE=y +# UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set +UCLIBC_HAS_RESOLVER_SUPPORT=y +UCLIBC_HAS_LIBRESOLV_STUB=y +UCLIBC_HAS_LIBNSL_STUB=y + +# +# String and Stdio Support +# +# UCLIBC_HAS_STRING_GENERIC_OPT is not set +UCLIBC_HAS_STRING_ARCH_OPT=y +UCLIBC_HAS_CTYPE_TABLES=y +UCLIBC_HAS_CTYPE_SIGNED=y +# UCLIBC_HAS_CTYPE_UNSAFE is not set +UCLIBC_HAS_CTYPE_CHECKED=y +# UCLIBC_HAS_CTYPE_ENFORCED is not set +UCLIBC_HAS_WCHAR=y +UCLIBC_HAS_LOCALE=n +UCLIBC_HAS_HEXADECIMAL_FLOATS=y +# UCLIBC_HAS_GLIBC_DIGIT_GROUPING is not set +UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y +# USE_OLD_VFPRINTF is not set +UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9 +UCLIBC_HAS_SCANF_GLIBC_A_FLAG=y +# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set +# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set +# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set +# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set +# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set +UCLIBC_HAS_STDIO_BUFSIZ_4096=y +# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set +UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y +# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set +# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set +# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set +# UCLIBC_HAS_STDIO_GETC_MACRO is not set +# UCLIBC_HAS_STDIO_PUTC_MACRO is not set +UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y +# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set +UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y +# UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE is not set +UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y +UCLIBC_HAS_PRINTF_M_SPEC=y +UCLIBC_HAS_ERRNO_MESSAGES=y +# UCLIBC_HAS_SYS_ERRLIST is not set +UCLIBC_HAS_SIGNUM_MESSAGES=y +# UCLIBC_HAS_SYS_SIGLIST is not set +UCLIBC_HAS_GNU_GETOPT=y +# UCLIBC_HAS_GNU_GETSUBOPT is not set + +# +# Big and Tall +# +UCLIBC_HAS_REGEX=y +# UCLIBC_HAS_REGEX_OLD is not set +UCLIBC_HAS_FNMATCH=y +# UCLIBC_HAS_FNMATCH_OLD is not set +# UCLIBC_HAS_WORDEXP is not set +UCLIBC_HAS_NFTW=y +UCLIBC_HAS_FTW=y +# UCLIBC_HAS_FTS is not set +UCLIBC_HAS_GLOB=y +UCLIBC_HAS_GNU_GLOB=y +UCLIBC_HAS_UTMPX=y + +# +# Library Installation Options +# +RUNTIME_PREFIX="/" +DEVEL_PREFIX="/usr/" +MULTILIB_DIR="lib" +HARDWIRED_ABSPATH=y + +# +# Security options +# +# UCLIBC_BUILD_PIE is not set +# UCLIBC_HAS_ARC4RANDOM is not set +# HAVE_NO_SSP is not set +UCLIBC_HAS_SSP=y +# UCLIBC_HAS_SSP_COMPAT is not set +# SSP_QUICK_CANARY is not set +PROPOLICE_BLOCK_ABRT=y +# PROPOLICE_BLOCK_SEGV is not set +# UCLIBC_BUILD_SSP is not set +UCLIBC_BUILD_RELRO=y +UCLIBC_BUILD_NOW=y +UCLIBC_BUILD_NOEXECSTACK=y + +# +# uClibc development/debugging options +# +UCLIBC_EXTRA_CFLAGS="" +# DODEBUG is not set +# DODEBUG_PT is not set +DOSTRIP=y +# DOASSERTS is not set +# SUPPORT_LD_DEBUG is not set +# SUPPORT_LD_DEBUG_EARLY is not set +# UCLIBC_MALLOC_DEBUGGING is not set +# UCLIBC_HAS_BACKTRACE is not set +WARNINGS="-Wall" +# EXTRA_WARNINGS is not set +# DOMULTI is not set +# UCLIBC_MJN3_ONLY is not set +# CONFIG_GENERIC_ARM is not set +# CONFIG_ARM610 is not set +# CONFIG_ARM710 is not set +# CONFIG_ARM7TDMI is not set +# CONFIG_ARM720T is not set +# CONFIG_ARM920T is not set +# CONFIG_ARM922T is not set +# CONFIG_ARM926T is not set +# CONFIG_ARM10T is not set +CONFIG_ARM1136JF_S=y +# CONFIG_ARM1176JZ_S is not set +# CONFIG_ARM1176JZF_S is not set +# CONFIG_ARM_SA110 is not set +# CONFIG_ARM_SA1100 is not set +# CONFIG_ARM_XSCALE is not set +# CONFIG_ARM_IWMMXT is not set +# CONFIG_ARM_OABI is not set +CONFIG_ARM_EABI=y +UCLIBC_HAS_THREADS=y +# LINUXTHREADS is not set +# LINUXTHREADS_NEW is not set +# LINUXTHREADS_OLD is not set +UCLIBC_HAS_THREADS_NATIVE=y +# PTHREADS_DEBUG_SUPPORT is not set diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/uclibc.config.minimal b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/uclibc.config.minimal new file mode 100644 index 0000000000000000000000000000000000000000..af041eabf04383938f4857a8ec85a6834b5c07b5 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/uclibc.config.minimal @@ -0,0 +1,2 @@ +UCLIBC_HAS_STDIO_GETC_MACRO=n +UCLIBC_HAS_STDIO_PUTC_MACRO=n diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/yum_requirements.txt b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/yum_requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..b21624a55ef3c956e79e4abef88ddc8ee5146a2d --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/recipe/parent/yum_requirements.txt @@ -0,0 +1,11 @@ +wget +m4 +help2man +patch +gcc-gfortran +gcc-c++ +rsync +sed +findutils +make +file diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/repodata_record.json b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..ba199a74c2d6bf49a94bb9a2d2c4c6f62cb49928 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/repodata_record.json @@ -0,0 +1,23 @@ +{ + "name": "gxx_impl_linux-64", + "version": "11.4.0", + "build": "h634f3ee_13", + "build_number": 13, + "channel": "https://conda.anaconda.org/conda-forge/linux-64", + "subdir": "linux-64", + "fn": "gxx_impl_linux-64-11.4.0-h634f3ee_13.conda", + "md5": "aa66d62e50aba20923e0c0121145fcbf", + "url": "https://conda.anaconda.org/conda-forge/linux-64/gxx_impl_linux-64-11.4.0-h634f3ee_13.conda", + "sha256": "ba6cd472e28268a6de1d4af74bafd9034789c132b15c38e727900fe6b85ebdb7", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "gcc_impl_linux-64 11.4.0 h00c12a0_13", + "libstdcxx-devel_linux-64 11.4.0 h8f596e0_113", + "sysroot_linux-64" + ], + "constrains": [], + "license": "GPL-3.0-only WITH GCC-exception-3.1", + "timestamp": 1719178592000, + "size": 11702935 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/run_test.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b1ab63b72de593a1d72bff9ca7024c4acec7783 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/run_test.sh @@ -0,0 +1,14 @@ + + +set -ex + + + +test -f ${PREFIX}/bin/x86_64-conda_cos6-linux-gnu-g++ +test -f ${PREFIX}/bin/x86_64-conda-linux-gnu-g++ +CXX=$(${PREFIX}/bin/*-gcc -dumpmachine)-g++ +${CXX} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o --std=c++17 +${CXX} -Wall cpp_aligned.o -o cpp_aligned --std=c++17 && ./cpp_aligned +${CXX} -Wall tests/hello_world.cpp -c -o hello_world.o --std=c++17 +${CXX} -Wall hello_world.o -o hello_world --std=c++17 +exit 0 diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/test_time_dependencies.json b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/test_time_dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..0e9f7944be5e9944a807348d3258dba343d36505 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/test_time_dependencies.json @@ -0,0 +1 @@ +["sysroot_linux-64 2.12.*"] \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/aligned_alloc.c b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/aligned_alloc.c new file mode 100644 index 0000000000000000000000000000000000000000..287be94c7340a134a5d9a56ddc0f6c20acc0af74 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/aligned_alloc.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) +{ + int *p2 = (int*)aligned_alloc(1024, 1024*sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/aligned_alloc.cpp b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/aligned_alloc.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1379c7547ae63e12433db910d243f159657aa0b6 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/aligned_alloc.cpp @@ -0,0 +1,18 @@ +#include +#include +#include +//#include + +int main(void) +{ + /// int *p2 = (int*)memalign(1024, 1024 * sizeof *p2); + int *p2; + int err = posix_memalign((void**)&p2, 1024, sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); + p2 = (int*)std::aligned_alloc(1024, 1); + printf("1024-byte aligned addr: %p\n", (void*)p2); + std::free(p2); + p2 = (int*)aligned_alloc(1024, 1024); + printf("1024-byte aligned addr: %p\n", (void*)p2); +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/fortomp/CMakeLists.txt b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/fortomp/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..491a48b42cb3ddfef5f8541f8db848e0ba844f84 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/fortomp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.3 FATAL_ERROR) +project(fortomp + LANGUAGES Fortran) + +find_package(OpenMP REQUIRED) diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/fortomp/test_fort.sh b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/fortomp/test_fort.sh new file mode 100644 index 0000000000000000000000000000000000000000..75731b653df023e75c4d2b73b2c345a3510faad9 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/fortomp/test_fort.sh @@ -0,0 +1,11 @@ +GFORTRAN=$(${PREFIX}/bin/*-gcc -dumpmachine)-gfortran +FFLAGS="-fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe" + +cmake \ + -H${SRC_DIR} \ + -Bbuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_Fortran_COMPILER=${GFORTRAN} \ + -DCMAKE_Fortran_FLAGS="${FFLAGS}" \ + . diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/hello_world.c b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/hello_world.c new file mode 100644 index 0000000000000000000000000000000000000000..f6054fde81f8dfa4882cef918c408fa6b7255c3e --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/hello_world.c @@ -0,0 +1,5 @@ +#include + +int main() { + printf("hello world!\n"); +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/hello_world.cpp b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/hello_world.cpp new file mode 100644 index 0000000000000000000000000000000000000000..585eea4cee5b1176fd28267f3e27dbdb344fd31f --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/hello_world.cpp @@ -0,0 +1,6 @@ +#include + +int main(void) +{ + std::cout << "hello world!" << std::endl; +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/howdy-dso.c b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/howdy-dso.c new file mode 100644 index 0000000000000000000000000000000000000000..ea47ce0a03e061a965fc1e2cdaf310c038d4b44d --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/howdy-dso.c @@ -0,0 +1,6 @@ +#include + +int main(void) { + howdy(); + return 0; +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/libhowdy.c b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/libhowdy.c new file mode 100644 index 0000000000000000000000000000000000000000..6cd0dc522a8e4485f8173321a3dff2b21f079415 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/libhowdy.c @@ -0,0 +1,5 @@ +#include + +void howdy(void) { + printf("Howdy Y'all!\n"); +} diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/libhowdy.h b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/libhowdy.h new file mode 100644 index 0000000000000000000000000000000000000000..6234950e5a3ce9ff0209513f328d0ecfc71bac99 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/info/test/tests/libhowdy.h @@ -0,0 +1,6 @@ +#ifndef _LIBHOWDY_H +#define _LIBHOWDY_H + +extern void howdy(void); + +#endif diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/lib/-gdb.py b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/lib/-gdb.py new file mode 100644 index 0000000000000000000000000000000000000000..26a38e0358e37126b112a5f9361ce64f9188d9d9 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/lib/-gdb.py @@ -0,0 +1,61 @@ +# -*- python -*- +# Copyright (C) 2009-2021 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import sys +import gdb +import os +import os.path + +pythondir = '/home/conda/feedstock_root/build_artifacts/gcc_compilers_1719176526088/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/share/gcc-11.4.0/python' +libdir = '/home/conda/feedstock_root/build_artifacts/gcc_compilers_1719176526088/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/../lib' + +# This file might be loaded when there is no current objfile. This +# can happen if the user loads it manually. In this case we don't +# update sys.path; instead we just hope the user managed to do that +# beforehand. +if gdb.current_objfile () is not None: + # Update module path. We want to find the relative path from libdir + # to pythondir, and then we want to apply that relative path to the + # directory holding the objfile with which this file is associated. + # This preserves relocatability of the gcc tree. + + # Do a simple normalization that removes duplicate separators. + pythondir = os.path.normpath (pythondir) + libdir = os.path.normpath (libdir) + + prefix = os.path.commonprefix ([libdir, pythondir]) + # In some bizarre configuration we might have found a match in the + # middle of a directory name. + if prefix[-1] != '/': + prefix = os.path.dirname (prefix) + '/' + + # Strip off the prefix. + pythondir = pythondir[len (prefix):] + libdir = libdir[len (prefix):] + + # Compute the ".."s needed to get from libdir to the prefix. + dotdots = ('..' + os.sep) * len (libdir.split (os.sep)) + + objfile = gdb.current_objfile ().filename + dir_ = os.path.join (os.path.dirname (objfile), dotdots, pythondir) + + if not dir_ in sys.path: + sys.path.insert(0, dir_) + +# Call a function as a plain import would not execute body of the included file +# on repeated reloads of this object file. +from libstdcxx.v6 import register_libstdcxx_printers +register_libstdcxx_printers(gdb.current_objfile()) diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/__init__.py b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/__init__.py @@ -0,0 +1 @@ + diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/v6/__init__.py b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/v6/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..c35e7d3670954ea4cf500fc5f4a0a78df192e457 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/v6/__init__.py @@ -0,0 +1,33 @@ +# Copyright (C) 2014-2021 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import gdb + +# Load the xmethods if GDB supports them. +def gdb_has_xmethods(): + try: + import gdb.xmethod + return True + except ImportError: + return False + +def register_libstdcxx_printers(obj): + # Load the pretty-printers. + from .printers import register_libstdcxx_printers + register_libstdcxx_printers(obj) + + if gdb_has_xmethods(): + from .xmethods import register_libstdcxx_xmethods + register_libstdcxx_xmethods(obj) diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/v6/printers.py b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/v6/printers.py new file mode 100644 index 0000000000000000000000000000000000000000..081eec454ddffdd6d39645c0926e47f9c0b71303 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/v6/printers.py @@ -0,0 +1,2239 @@ +# Pretty-printers for libstdc++. + +# Copyright (C) 2008-2021 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import gdb +import itertools +import re +import sys, os, errno + +### Python 2 + Python 3 compatibility code + +# Resources about compatibility: +# +# * : Documentation of the "six" module + +# FIXME: The handling of e.g. std::basic_string (at least on char) +# probably needs updating to work with Python 3's new string rules. +# +# In particular, Python 3 has a separate type (called byte) for +# bytestrings, and a special b"" syntax for the byte literals; the old +# str() type has been redefined to always store Unicode text. +# +# We probably can't do much about this until this GDB PR is addressed: +# + +if sys.version_info[0] > 2: + ### Python 3 stuff + Iterator = object + # Python 3 folds these into the normal functions. + imap = map + izip = zip + # Also, int subsumes long + long = int +else: + ### Python 2 stuff + class Iterator: + """Compatibility mixin for iterators + + Instead of writing next() methods for iterators, write + __next__() methods and use this mixin to make them work in + Python 2 as well as Python 3. + + Idea stolen from the "six" documentation: + + """ + + def next(self): + return self.__next__() + + # In Python 2, we still need these from itertools + from itertools import imap, izip + +# Try to use the new-style pretty-printing if available. +_use_gdb_pp = True +try: + import gdb.printing +except ImportError: + _use_gdb_pp = False + +# Try to install type-printers. +_use_type_printing = False +try: + import gdb.types + if hasattr(gdb.types, 'TypePrinter'): + _use_type_printing = True +except ImportError: + pass + +# Starting with the type ORIG, search for the member type NAME. This +# handles searching upward through superclasses. This is needed to +# work around http://sourceware.org/bugzilla/show_bug.cgi?id=13615. +def find_type(orig, name): + typ = orig.strip_typedefs() + while True: + # Use Type.tag to ignore cv-qualifiers. PR 67440. + search = '%s::%s' % (typ.tag, name) + try: + return gdb.lookup_type(search) + except RuntimeError: + pass + # The type was not found, so try the superclass. We only need + # to check the first superclass, so we don't bother with + # anything fancier here. + fields = typ.fields() + if len(fields) and fields[0].is_base_class: + typ = fields[0].type + else: + raise ValueError("Cannot find type %s::%s" % (str(orig), name)) + +_versioned_namespace = '__8::' + +def lookup_templ_spec(templ, *args): + """ + Lookup template specialization templ + """ + t = '{}<{}>'.format(templ, ', '.join([str(a) for a in args])) + try: + return gdb.lookup_type(t) + except gdb.error as e: + # Type not found, try again in versioned namespace. + global _versioned_namespace + if _versioned_namespace and _versioned_namespace not in templ: + t = t.replace('::', '::' + _versioned_namespace, 1) + try: + return gdb.lookup_type(t) + except gdb.error: + # If that also fails, rethrow the original exception + pass + raise e + +# Use this to find container node types instead of find_type, +# see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91997 for details. +def lookup_node_type(nodename, containertype): + """ + Lookup specialization of template NODENAME corresponding to CONTAINERTYPE. + e.g. if NODENAME is '_List_node' and CONTAINERTYPE is std::list + then return the type std::_List_node. + Returns None if not found. + """ + # If nodename is unqualified, assume it's in namespace std. + if '::' not in nodename: + nodename = 'std::' + nodename + try: + valtype = find_type(containertype, 'value_type') + except: + valtype = containertype.template_argument(0) + valtype = valtype.strip_typedefs() + try: + return lookup_templ_spec(nodename, valtype) + except gdb.error as e: + # For debug mode containers the node is in std::__cxx1998. + if is_member_of_namespace(nodename, 'std'): + if is_member_of_namespace(containertype, 'std::__cxx1998', + 'std::__debug', '__gnu_debug'): + nodename = nodename.replace('::', '::__cxx1998::', 1) + try: + return lookup_templ_spec(nodename, valtype) + except gdb.error: + pass + return None + +def is_member_of_namespace(typ, *namespaces): + """ + Test whether a type is a member of one of the specified namespaces. + The type can be specified as a string or a gdb.Type object. + """ + if type(typ) is gdb.Type: + typ = str(typ) + typ = strip_versioned_namespace(typ) + for namespace in namespaces: + if typ.startswith(namespace + '::'): + return True + return False + +def is_specialization_of(x, template_name): + "Test if a type is a given template instantiation." + global _versioned_namespace + if type(x) is gdb.Type: + x = x.tag + if _versioned_namespace: + return re.match('^std::(%s)?%s<.*>$' % (_versioned_namespace, template_name), x) is not None + return re.match('^std::%s<.*>$' % template_name, x) is not None + +def strip_versioned_namespace(typename): + global _versioned_namespace + if _versioned_namespace: + return typename.replace(_versioned_namespace, '') + return typename + +def strip_inline_namespaces(type_str): + "Remove known inline namespaces from the canonical name of a type." + type_str = strip_versioned_namespace(type_str) + type_str = type_str.replace('std::__cxx11::', 'std::') + expt_ns = 'std::experimental::' + for lfts_ns in ('fundamentals_v1', 'fundamentals_v2'): + type_str = type_str.replace(expt_ns+lfts_ns+'::', expt_ns) + fs_ns = expt_ns + 'filesystem::' + type_str = type_str.replace(fs_ns+'v1::', fs_ns) + return type_str + +def get_template_arg_list(type_obj): + "Return a type's template arguments as a list" + n = 0 + template_args = [] + while True: + try: + template_args.append(type_obj.template_argument(n)) + except: + return template_args + n += 1 + +class SmartPtrIterator(Iterator): + "An iterator for smart pointer types with a single 'child' value" + + def __init__(self, val): + self.val = val + + def __iter__(self): + return self + + def __next__(self): + if self.val is None: + raise StopIteration + self.val, val = None, self.val + return ('get()', val) + +class SharedPointerPrinter: + "Print a shared_ptr or weak_ptr" + + def __init__ (self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val + self.pointer = val['_M_ptr'] + + def children (self): + return SmartPtrIterator(self.pointer) + + def to_string (self): + state = 'empty' + refcounts = self.val['_M_refcount']['_M_pi'] + if refcounts != 0: + usecount = refcounts['_M_use_count'] + weakcount = refcounts['_M_weak_count'] + if usecount == 0: + state = 'expired, weak count %d' % weakcount + else: + state = 'use count %d, weak count %d' % (usecount, weakcount - 1) + return '%s<%s> (%s)' % (self.typename, str(self.val.type.template_argument(0)), state) + +def _tuple_impl_get(val): + "Return the tuple element stored in a _Tuple_impl base class." + bases = val.type.fields() + if not bases[-1].is_base_class: + raise ValueError("Unsupported implementation for std::tuple: %s" % str(val.type)) + # Get the _Head_base base class: + head_base = val.cast(bases[-1].type) + fields = head_base.type.fields() + if len(fields) == 0: + raise ValueError("Unsupported implementation for std::tuple: %s" % str(val.type)) + if fields[0].name == '_M_head_impl': + # The tuple element is the _Head_base::_M_head_impl data member. + return head_base['_M_head_impl'] + elif fields[0].is_base_class: + # The tuple element is an empty base class of _Head_base. + # Cast to that empty base class. + return head_base.cast(fields[0].type) + else: + raise ValueError("Unsupported implementation for std::tuple: %s" % str(val.type)) + +def tuple_get(n, val): + "Return the result of std::get(val) on a std::tuple" + tuple_size = len(get_template_arg_list(val.type)) + if n > tuple_size: + raise ValueError("Out of range index for std::get on std::tuple") + # Get the first _Tuple_impl<0, T...> base class: + node = val.cast(val.type.fields()[0].type) + while n > 0: + # Descend through the base classes until the Nth one. + node = node.cast(node.type.fields()[0].type) + n -= 1 + return _tuple_impl_get(node) + +def unique_ptr_get(val): + "Return the result of val.get() on a std::unique_ptr" + # std::unique_ptr contains a std::tuple, + # either as a direct data member _M_t (the old implementation) + # or within a data member of type __uniq_ptr_data. + impl_type = val.type.fields()[0].type.strip_typedefs() + # Check for new implementations first: + if is_specialization_of(impl_type, '__uniq_ptr_data') \ + or is_specialization_of(impl_type, '__uniq_ptr_impl'): + tuple_member = val['_M_t']['_M_t'] + elif is_specialization_of(impl_type, 'tuple'): + tuple_member = val['_M_t'] + else: + raise ValueError("Unsupported implementation for unique_ptr: %s" % str(impl_type)) + return tuple_get(0, tuple_member) + +class UniquePointerPrinter: + "Print a unique_ptr" + + def __init__ (self, typename, val): + self.val = val + + def children (self): + return SmartPtrIterator(unique_ptr_get(self.val)) + + def to_string (self): + return ('std::unique_ptr<%s>' % (str(self.val.type.template_argument(0)))) + +def get_value_from_aligned_membuf(buf, valtype): + """Returns the value held in a __gnu_cxx::__aligned_membuf.""" + return buf['_M_storage'].address.cast(valtype.pointer()).dereference() + +def get_value_from_list_node(node): + """Returns the value held in an _List_node<_Val>""" + try: + member = node.type.fields()[1].name + if member == '_M_data': + # C++03 implementation, node contains the value as a member + return node['_M_data'] + elif member == '_M_storage': + # C++11 implementation, node stores value in __aligned_membuf + valtype = node.type.template_argument(0) + return get_value_from_aligned_membuf(node['_M_storage'], valtype) + except: + pass + raise ValueError("Unsupported implementation for %s" % str(node.type)) + +class StdListPrinter: + "Print a std::list" + + class _iterator(Iterator): + def __init__(self, nodetype, head): + self.nodetype = nodetype + self.base = head['_M_next'] + self.head = head.address + self.count = 0 + + def __iter__(self): + return self + + def __next__(self): + if self.base == self.head: + raise StopIteration + elt = self.base.cast(self.nodetype).dereference() + self.base = elt['_M_next'] + count = self.count + self.count = self.count + 1 + val = get_value_from_list_node(elt) + return ('[%d]' % count, val) + + def __init__(self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val + + def children(self): + nodetype = lookup_node_type('_List_node', self.val.type).pointer() + return self._iterator(nodetype, self.val['_M_impl']['_M_node']) + + def to_string(self): + headnode = self.val['_M_impl']['_M_node'] + if headnode['_M_next'] == headnode.address: + return 'empty %s' % (self.typename) + return '%s' % (self.typename) + +class NodeIteratorPrinter: + def __init__(self, typename, val, contname, nodename): + self.val = val + self.typename = typename + self.contname = contname + self.nodetype = lookup_node_type(nodename, val.type) + + def to_string(self): + if not self.val['_M_node']: + return 'non-dereferenceable iterator for std::%s' % (self.contname) + node = self.val['_M_node'].cast(self.nodetype.pointer()).dereference() + return str(get_value_from_list_node(node)) + +class StdListIteratorPrinter(NodeIteratorPrinter): + "Print std::list::iterator" + + def __init__(self, typename, val): + NodeIteratorPrinter.__init__(self, typename, val, 'list', '_List_node') + +class StdFwdListIteratorPrinter(NodeIteratorPrinter): + "Print std::forward_list::iterator" + + def __init__(self, typename, val): + NodeIteratorPrinter.__init__(self, typename, val, 'forward_list', + '_Fwd_list_node') + +class StdSlistPrinter: + "Print a __gnu_cxx::slist" + + class _iterator(Iterator): + def __init__(self, nodetype, head): + self.nodetype = nodetype + self.base = head['_M_head']['_M_next'] + self.count = 0 + + def __iter__(self): + return self + + def __next__(self): + if self.base == 0: + raise StopIteration + elt = self.base.cast(self.nodetype).dereference() + self.base = elt['_M_next'] + count = self.count + self.count = self.count + 1 + return ('[%d]' % count, elt['_M_data']) + + def __init__(self, typename, val): + self.val = val + + def children(self): + nodetype = lookup_node_type('__gnu_cxx::_Slist_node', self.val.type) + return self._iterator(nodetype.pointer(), self.val) + + def to_string(self): + if self.val['_M_head']['_M_next'] == 0: + return 'empty __gnu_cxx::slist' + return '__gnu_cxx::slist' + +class StdSlistIteratorPrinter: + "Print __gnu_cxx::slist::iterator" + + def __init__(self, typename, val): + self.val = val + + def to_string(self): + if not self.val['_M_node']: + return 'non-dereferenceable iterator for __gnu_cxx::slist' + nodetype = lookup_node_type('__gnu_cxx::_Slist_node', self.val.type).pointer() + return str(self.val['_M_node'].cast(nodetype).dereference()['_M_data']) + +class StdVectorPrinter: + "Print a std::vector" + + class _iterator(Iterator): + def __init__ (self, start, finish, bitvec): + self.bitvec = bitvec + if bitvec: + self.item = start['_M_p'] + self.so = 0 + self.finish = finish['_M_p'] + self.fo = finish['_M_offset'] + itype = self.item.dereference().type + self.isize = 8 * itype.sizeof + else: + self.item = start + self.finish = finish + self.count = 0 + + def __iter__(self): + return self + + def __next__(self): + count = self.count + self.count = self.count + 1 + if self.bitvec: + if self.item == self.finish and self.so >= self.fo: + raise StopIteration + elt = bool(self.item.dereference() & (1 << self.so)) + self.so = self.so + 1 + if self.so >= self.isize: + self.item = self.item + 1 + self.so = 0 + return ('[%d]' % count, elt) + else: + if self.item == self.finish: + raise StopIteration + elt = self.item.dereference() + self.item = self.item + 1 + return ('[%d]' % count, elt) + + def __init__(self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val + self.is_bool = val.type.template_argument(0).code == gdb.TYPE_CODE_BOOL + + def children(self): + return self._iterator(self.val['_M_impl']['_M_start'], + self.val['_M_impl']['_M_finish'], + self.is_bool) + + def to_string(self): + start = self.val['_M_impl']['_M_start'] + finish = self.val['_M_impl']['_M_finish'] + end = self.val['_M_impl']['_M_end_of_storage'] + if self.is_bool: + start = self.val['_M_impl']['_M_start']['_M_p'] + finish = self.val['_M_impl']['_M_finish']['_M_p'] + fo = self.val['_M_impl']['_M_finish']['_M_offset'] + itype = start.dereference().type + bl = 8 * itype.sizeof + length = bl * (finish - start) + fo + capacity = bl * (end - start) + return ('%s of length %d, capacity %d' + % (self.typename, int (length), int (capacity))) + else: + return ('%s of length %d, capacity %d' + % (self.typename, int (finish - start), int (end - start))) + + def display_hint(self): + return 'array' + +class StdVectorIteratorPrinter: + "Print std::vector::iterator" + + def __init__(self, typename, val): + self.val = val + + def to_string(self): + if not self.val['_M_current']: + return 'non-dereferenceable iterator for std::vector' + return str(self.val['_M_current'].dereference()) + +class StdBitIteratorPrinter: + "Print std::vector's _Bit_iterator and _Bit_const_iterator" + + def __init__(self, typename, val): + self.val = val + + def to_string(self): + if not self.val['_M_p']: + return 'non-dereferenceable iterator for std::vector' + return bool(self.val['_M_p'].dereference() & (1 << self.val['_M_offset'])) + +class StdBitReferencePrinter: + "Print std::vector::reference" + + def __init__(self, typename, val): + self.val = val + + def to_string(self): + if not self.val['_M_p']: + return 'invalid std::vector::reference' + return bool(self.val['_M_p'].dereference() & (self.val['_M_mask'])) + +class StdTuplePrinter: + "Print a std::tuple" + + class _iterator(Iterator): + @staticmethod + def _is_nonempty_tuple (nodes): + if len (nodes) == 2: + if is_specialization_of (nodes[1].type, '__tuple_base'): + return True + elif len (nodes) == 1: + return True + elif len (nodes) == 0: + return False + raise ValueError("Top of tuple tree does not consist of a single node.") + + def __init__ (self, head): + self.head = head + + # Set the base class as the initial head of the + # tuple. + nodes = self.head.type.fields () + if self._is_nonempty_tuple (nodes): + # Set the actual head to the first pair. + self.head = self.head.cast (nodes[0].type) + self.count = 0 + + def __iter__ (self): + return self + + def __next__ (self): + # Check for further recursions in the inheritance tree. + # For a GCC 5+ tuple self.head is None after visiting all nodes: + if not self.head: + raise StopIteration + nodes = self.head.type.fields () + # For a GCC 4.x tuple there is a final node with no fields: + if len (nodes) == 0: + raise StopIteration + # Check that this iteration has an expected structure. + if len (nodes) > 2: + raise ValueError("Cannot parse more than 2 nodes in a tuple tree.") + + if len (nodes) == 1: + # This is the last node of a GCC 5+ std::tuple. + impl = self.head.cast (nodes[0].type) + self.head = None + else: + # Either a node before the last node, or the last node of + # a GCC 4.x tuple (which has an empty parent). + + # - Left node is the next recursion parent. + # - Right node is the actual class contained in the tuple. + + # Process right node. + impl = self.head.cast (nodes[1].type) + + # Process left node and set it as head. + self.head = self.head.cast (nodes[0].type) + + self.count = self.count + 1 + + # Finally, check the implementation. If it is + # wrapped in _M_head_impl return that, otherwise return + # the value "as is". + fields = impl.type.fields () + if len (fields) < 1 or fields[0].name != "_M_head_impl": + return ('[%d]' % self.count, impl) + else: + return ('[%d]' % self.count, impl['_M_head_impl']) + + def __init__ (self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val; + + def children (self): + return self._iterator (self.val) + + def to_string (self): + if len (self.val.type.fields ()) == 0: + return 'empty %s' % (self.typename) + return '%s containing' % (self.typename) + +class StdStackOrQueuePrinter: + "Print a std::stack or std::queue" + + def __init__ (self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.visualizer = gdb.default_visualizer(val['c']) + + def children (self): + return self.visualizer.children() + + def to_string (self): + return '%s wrapping: %s' % (self.typename, + self.visualizer.to_string()) + + def display_hint (self): + if hasattr (self.visualizer, 'display_hint'): + return self.visualizer.display_hint () + return None + +class RbtreeIterator(Iterator): + """ + Turn an RB-tree-based container (std::map, std::set etc.) into + a Python iterable object. + """ + + def __init__(self, rbtree): + self.size = rbtree['_M_t']['_M_impl']['_M_node_count'] + self.node = rbtree['_M_t']['_M_impl']['_M_header']['_M_left'] + self.count = 0 + + def __iter__(self): + return self + + def __len__(self): + return int (self.size) + + def __next__(self): + if self.count == self.size: + raise StopIteration + result = self.node + self.count = self.count + 1 + if self.count < self.size: + # Compute the next node. + node = self.node + if node.dereference()['_M_right']: + node = node.dereference()['_M_right'] + while node.dereference()['_M_left']: + node = node.dereference()['_M_left'] + else: + parent = node.dereference()['_M_parent'] + while node == parent.dereference()['_M_right']: + node = parent + parent = parent.dereference()['_M_parent'] + if node.dereference()['_M_right'] != parent: + node = parent + self.node = node + return result + +def get_value_from_Rb_tree_node(node): + """Returns the value held in an _Rb_tree_node<_Val>""" + try: + member = node.type.fields()[1].name + if member == '_M_value_field': + # C++03 implementation, node contains the value as a member + return node['_M_value_field'] + elif member == '_M_storage': + # C++11 implementation, node stores value in __aligned_membuf + valtype = node.type.template_argument(0) + return get_value_from_aligned_membuf(node['_M_storage'], valtype) + except: + pass + raise ValueError("Unsupported implementation for %s" % str(node.type)) + +# This is a pretty printer for std::_Rb_tree_iterator (which is +# std::map::iterator), and has nothing to do with the RbtreeIterator +# class above. +class StdRbtreeIteratorPrinter: + "Print std::map::iterator, std::set::iterator, etc." + + def __init__ (self, typename, val): + self.val = val + nodetype = lookup_node_type('_Rb_tree_node', self.val.type) + self.link_type = nodetype.pointer() + + def to_string (self): + if not self.val['_M_node']: + return 'non-dereferenceable iterator for associative container' + node = self.val['_M_node'].cast(self.link_type).dereference() + return str(get_value_from_Rb_tree_node(node)) + +class StdDebugIteratorPrinter: + "Print a debug enabled version of an iterator" + + def __init__ (self, typename, val): + self.val = val + + # Just strip away the encapsulating __gnu_debug::_Safe_iterator + # and return the wrapped iterator value. + def to_string (self): + base_type = gdb.lookup_type('__gnu_debug::_Safe_iterator_base') + itype = self.val.type.template_argument(0) + safe_seq = self.val.cast(base_type)['_M_sequence'] + if not safe_seq: + return str(self.val.cast(itype)) + if self.val['_M_version'] != safe_seq['_M_version']: + return "invalid iterator" + return str(self.val.cast(itype)) + +def num_elements(num): + """Return either "1 element" or "N elements" depending on the argument.""" + return '1 element' if num == 1 else '%d elements' % num + +class StdMapPrinter: + "Print a std::map or std::multimap" + + # Turn an RbtreeIterator into a pretty-print iterator. + class _iter(Iterator): + def __init__(self, rbiter, type): + self.rbiter = rbiter + self.count = 0 + self.type = type + + def __iter__(self): + return self + + def __next__(self): + if self.count % 2 == 0: + n = next(self.rbiter) + n = n.cast(self.type).dereference() + n = get_value_from_Rb_tree_node(n) + self.pair = n + item = n['first'] + else: + item = self.pair['second'] + result = ('[%d]' % self.count, item) + self.count = self.count + 1 + return result + + def __init__ (self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val + + def to_string (self): + return '%s with %s' % (self.typename, + num_elements(len(RbtreeIterator (self.val)))) + + def children (self): + node = lookup_node_type('_Rb_tree_node', self.val.type).pointer() + return self._iter (RbtreeIterator (self.val), node) + + def display_hint (self): + return 'map' + +class StdSetPrinter: + "Print a std::set or std::multiset" + + # Turn an RbtreeIterator into a pretty-print iterator. + class _iter(Iterator): + def __init__(self, rbiter, type): + self.rbiter = rbiter + self.count = 0 + self.type = type + + def __iter__(self): + return self + + def __next__(self): + item = next(self.rbiter) + item = item.cast(self.type).dereference() + item = get_value_from_Rb_tree_node(item) + # FIXME: this is weird ... what to do? + # Maybe a 'set' display hint? + result = ('[%d]' % self.count, item) + self.count = self.count + 1 + return result + + def __init__ (self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val + + def to_string (self): + return '%s with %s' % (self.typename, + num_elements(len(RbtreeIterator (self.val)))) + + def children (self): + node = lookup_node_type('_Rb_tree_node', self.val.type).pointer() + return self._iter (RbtreeIterator (self.val), node) + +class StdBitsetPrinter: + "Print a std::bitset" + + def __init__(self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val + + def to_string (self): + # If template_argument handled values, we could print the + # size. Or we could use a regexp on the type. + return '%s' % (self.typename) + + def children (self): + try: + # An empty bitset may not have any members which will + # result in an exception being thrown. + words = self.val['_M_w'] + except: + return [] + + wtype = words.type + + # The _M_w member can be either an unsigned long, or an + # array. This depends on the template specialization used. + # If it is a single long, convert to a single element list. + if wtype.code == gdb.TYPE_CODE_ARRAY: + tsize = wtype.target ().sizeof + else: + words = [words] + tsize = wtype.sizeof + + nwords = wtype.sizeof / tsize + result = [] + byte = 0 + while byte < nwords: + w = words[byte] + bit = 0 + while w != 0: + if (w & 1) != 0: + # Another spot where we could use 'set'? + result.append(('[%d]' % (byte * tsize * 8 + bit), 1)) + bit = bit + 1 + w = w >> 1 + byte = byte + 1 + return result + +class StdDequePrinter: + "Print a std::deque" + + class _iter(Iterator): + def __init__(self, node, start, end, last, buffer_size): + self.node = node + self.p = start + self.end = end + self.last = last + self.buffer_size = buffer_size + self.count = 0 + + def __iter__(self): + return self + + def __next__(self): + if self.p == self.last: + raise StopIteration + + result = ('[%d]' % self.count, self.p.dereference()) + self.count = self.count + 1 + + # Advance the 'cur' pointer. + self.p = self.p + 1 + if self.p == self.end: + # If we got to the end of this bucket, move to the + # next bucket. + self.node = self.node + 1 + self.p = self.node[0] + self.end = self.p + self.buffer_size + + return result + + def __init__(self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val + self.elttype = val.type.template_argument(0) + size = self.elttype.sizeof + if size < 512: + self.buffer_size = int (512 / size) + else: + self.buffer_size = 1 + + def to_string(self): + start = self.val['_M_impl']['_M_start'] + end = self.val['_M_impl']['_M_finish'] + + delta_n = end['_M_node'] - start['_M_node'] - 1 + delta_s = start['_M_last'] - start['_M_cur'] + delta_e = end['_M_cur'] - end['_M_first'] + + size = self.buffer_size * delta_n + delta_s + delta_e + + return '%s with %s' % (self.typename, num_elements(long(size))) + + def children(self): + start = self.val['_M_impl']['_M_start'] + end = self.val['_M_impl']['_M_finish'] + return self._iter(start['_M_node'], start['_M_cur'], start['_M_last'], + end['_M_cur'], self.buffer_size) + + def display_hint (self): + return 'array' + +class StdDequeIteratorPrinter: + "Print std::deque::iterator" + + def __init__(self, typename, val): + self.val = val + + def to_string(self): + if not self.val['_M_cur']: + return 'non-dereferenceable iterator for std::deque' + return str(self.val['_M_cur'].dereference()) + +class StdStringPrinter: + "Print a std::basic_string of some kind" + + def __init__(self, typename, val): + self.val = val + self.new_string = typename.find("::__cxx11::basic_string") != -1 + + def to_string(self): + # Make sure &string works, too. + type = self.val.type + if type.code == gdb.TYPE_CODE_REF: + type = type.target () + + # Calculate the length of the string so that to_string returns + # the string according to length, not according to first null + # encountered. + ptr = self.val ['_M_dataplus']['_M_p'] + if self.new_string: + length = self.val['_M_string_length'] + # https://sourceware.org/bugzilla/show_bug.cgi?id=17728 + ptr = ptr.cast(ptr.type.strip_typedefs()) + else: + realtype = type.unqualified ().strip_typedefs () + reptype = gdb.lookup_type (str (realtype) + '::_Rep').pointer () + header = ptr.cast(reptype) - 1 + length = header.dereference ()['_M_length'] + if hasattr(ptr, "lazy_string"): + return ptr.lazy_string (length = length) + return ptr.string (length = length) + + def display_hint (self): + return 'string' + +class Tr1HashtableIterator(Iterator): + def __init__ (self, hashtable): + self.buckets = hashtable['_M_buckets'] + self.bucket = 0 + self.bucket_count = hashtable['_M_bucket_count'] + self.node_type = find_type(hashtable.type, '_Node').pointer() + self.node = 0 + while self.bucket != self.bucket_count: + self.node = self.buckets[self.bucket] + if self.node: + break + self.bucket = self.bucket + 1 + + def __iter__ (self): + return self + + def __next__ (self): + if self.node == 0: + raise StopIteration + node = self.node.cast(self.node_type) + result = node.dereference()['_M_v'] + self.node = node.dereference()['_M_next']; + if self.node == 0: + self.bucket = self.bucket + 1 + while self.bucket != self.bucket_count: + self.node = self.buckets[self.bucket] + if self.node: + break + self.bucket = self.bucket + 1 + return result + +class StdHashtableIterator(Iterator): + def __init__(self, hashtable): + self.node = hashtable['_M_before_begin']['_M_nxt'] + valtype = hashtable.type.template_argument(1) + cached = hashtable.type.template_argument(9).template_argument(0) + node_type = lookup_templ_spec('std::__detail::_Hash_node', str(valtype), + 'true' if cached else 'false') + self.node_type = node_type.pointer() + + def __iter__(self): + return self + + def __next__(self): + if self.node == 0: + raise StopIteration + elt = self.node.cast(self.node_type).dereference() + self.node = elt['_M_nxt'] + valptr = elt['_M_storage'].address + valptr = valptr.cast(elt.type.template_argument(0).pointer()) + return valptr.dereference() + +class Tr1UnorderedSetPrinter: + "Print a std::unordered_set or tr1::unordered_set" + + def __init__ (self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val + + def hashtable (self): + if self.typename.startswith('std::tr1'): + return self.val + return self.val['_M_h'] + + def to_string (self): + count = self.hashtable()['_M_element_count'] + return '%s with %s' % (self.typename, num_elements(count)) + + @staticmethod + def format_count (i): + return '[%d]' % i + + def children (self): + counter = imap (self.format_count, itertools.count()) + if self.typename.startswith('std::tr1'): + return izip (counter, Tr1HashtableIterator (self.hashtable())) + return izip (counter, StdHashtableIterator (self.hashtable())) + +class Tr1UnorderedMapPrinter: + "Print a std::unordered_map or tr1::unordered_map" + + def __init__ (self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val + + def hashtable (self): + if self.typename.startswith('std::tr1'): + return self.val + return self.val['_M_h'] + + def to_string (self): + count = self.hashtable()['_M_element_count'] + return '%s with %s' % (self.typename, num_elements(count)) + + @staticmethod + def flatten (list): + for elt in list: + for i in elt: + yield i + + @staticmethod + def format_one (elt): + return (elt['first'], elt['second']) + + @staticmethod + def format_count (i): + return '[%d]' % i + + def children (self): + counter = imap (self.format_count, itertools.count()) + # Map over the hash table and flatten the result. + if self.typename.startswith('std::tr1'): + data = self.flatten (imap (self.format_one, Tr1HashtableIterator (self.hashtable()))) + # Zip the two iterators together. + return izip (counter, data) + data = self.flatten (imap (self.format_one, StdHashtableIterator (self.hashtable()))) + # Zip the two iterators together. + return izip (counter, data) + + def display_hint (self): + return 'map' + +class StdForwardListPrinter: + "Print a std::forward_list" + + class _iterator(Iterator): + def __init__(self, nodetype, head): + self.nodetype = nodetype + self.base = head['_M_next'] + self.count = 0 + + def __iter__(self): + return self + + def __next__(self): + if self.base == 0: + raise StopIteration + elt = self.base.cast(self.nodetype).dereference() + self.base = elt['_M_next'] + count = self.count + self.count = self.count + 1 + valptr = elt['_M_storage'].address + valptr = valptr.cast(elt.type.template_argument(0).pointer()) + return ('[%d]' % count, valptr.dereference()) + + def __init__(self, typename, val): + self.val = val + self.typename = strip_versioned_namespace(typename) + + def children(self): + nodetype = lookup_node_type('_Fwd_list_node', self.val.type).pointer() + return self._iterator(nodetype, self.val['_M_impl']['_M_head']) + + def to_string(self): + if self.val['_M_impl']['_M_head']['_M_next'] == 0: + return 'empty %s' % self.typename + return '%s' % self.typename + +class SingleObjContainerPrinter(object): + "Base class for printers of containers of single objects" + + def __init__ (self, val, viz, hint = None): + self.contained_value = val + self.visualizer = viz + self.hint = hint + + def _recognize(self, type): + """Return TYPE as a string after applying type printers""" + global _use_type_printing + if not _use_type_printing: + return str(type) + return gdb.types.apply_type_recognizers(gdb.types.get_type_recognizers(), + type) or str(type) + + class _contained(Iterator): + def __init__ (self, val): + self.val = val + + def __iter__ (self): + return self + + def __next__(self): + if self.val is None: + raise StopIteration + retval = self.val + self.val = None + return ('[contained value]', retval) + + def children (self): + if self.contained_value is None: + return self._contained (None) + if hasattr (self.visualizer, 'children'): + return self.visualizer.children () + return self._contained (self.contained_value) + + def display_hint (self): + # if contained value is a map we want to display in the same way + if hasattr (self.visualizer, 'children') and hasattr (self.visualizer, 'display_hint'): + return self.visualizer.display_hint () + return self.hint + +def function_pointer_to_name(f): + "Find the name of the function referred to by the gdb.Value f, " + " which should contain a function pointer from the program." + + # Turn the function pointer into an actual address. + # This is needed to unpack ppc64 function descriptors. + f = f.dereference().address + + if sys.version_info[0] == 2: + # Older versions of GDB need to use long for Python 2, + # because int(f) on 64-bit big-endian values raises a + # gdb.error saying "Cannot convert value to int." + f = long(f) + else: + f = int(f) + + try: + # If the function can't be found older versions of GDB raise a + # RuntimeError saying "Cannot locate object file for block." + return gdb.block_for_pc(f).function.name + except: + return None + +class StdExpAnyPrinter(SingleObjContainerPrinter): + "Print a std::any or std::experimental::any" + + def __init__ (self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1) + self.val = val + self.contained_type = None + contained_value = None + visualizer = None + mgr = self.val['_M_manager'] + if mgr != 0: + func = function_pointer_to_name(mgr) + if not func: + raise ValueError("Invalid function pointer in %s" % (self.typename)) + rx = r"""({0}::_Manager_\w+<.*>)::_S_manage\((enum )?{0}::_Op, (const {0}|{0} const) ?\*, (union )?{0}::_Arg ?\*\)""".format(typename) + m = re.match(rx, func) + if not m: + raise ValueError("Unknown manager function in %s" % self.typename) + + mgrname = m.group(1) + # FIXME need to expand 'std::string' so that gdb.lookup_type works + if 'std::string' in mgrname: + mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1)) + + mgrtype = gdb.lookup_type(mgrname) + self.contained_type = mgrtype.template_argument(0) + valptr = None + if '::_Manager_internal' in mgrname: + valptr = self.val['_M_storage']['_M_buffer'].address + elif '::_Manager_external' in mgrname: + valptr = self.val['_M_storage']['_M_ptr'] + else: + raise ValueError("Unknown manager function in %s" % self.typename) + contained_value = valptr.cast(self.contained_type.pointer()).dereference() + visualizer = gdb.default_visualizer(contained_value) + super(StdExpAnyPrinter, self).__init__ (contained_value, visualizer) + + def to_string (self): + if self.contained_type is None: + return '%s [no contained value]' % self.typename + desc = "%s containing " % self.typename + if hasattr (self.visualizer, 'children'): + return desc + self.visualizer.to_string () + valtype = self._recognize (self.contained_type) + return desc + strip_versioned_namespace(str(valtype)) + +class StdExpOptionalPrinter(SingleObjContainerPrinter): + "Print a std::optional or std::experimental::optional" + + def __init__ (self, typename, val): + valtype = self._recognize (val.type.template_argument(0)) + typename = strip_versioned_namespace(typename) + self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1) + payload = val['_M_payload'] + if self.typename.startswith('std::experimental'): + engaged = val['_M_engaged'] + contained_value = payload + else: + engaged = payload['_M_engaged'] + contained_value = payload['_M_payload'] + try: + # Since GCC 9 + contained_value = contained_value['_M_value'] + except: + pass + visualizer = gdb.default_visualizer (contained_value) + if not engaged: + contained_value = None + super (StdExpOptionalPrinter, self).__init__ (contained_value, visualizer) + + def to_string (self): + if self.contained_value is None: + return "%s [no contained value]" % self.typename + if hasattr (self.visualizer, 'children'): + return "%s containing %s" % (self.typename, + self.visualizer.to_string()) + return self.typename + +class StdVariantPrinter(SingleObjContainerPrinter): + "Print a std::variant" + + def __init__(self, typename, val): + alternatives = get_template_arg_list(val.type) + self.typename = strip_versioned_namespace(typename) + self.typename = "%s<%s>" % (self.typename, ', '.join([self._recognize(alt) for alt in alternatives])) + self.index = val['_M_index'] + if self.index >= len(alternatives): + self.contained_type = None + contained_value = None + visualizer = None + else: + self.contained_type = alternatives[int(self.index)] + addr = val['_M_u']['_M_first']['_M_storage'].address + contained_value = addr.cast(self.contained_type.pointer()).dereference() + visualizer = gdb.default_visualizer(contained_value) + super (StdVariantPrinter, self).__init__(contained_value, visualizer, 'array') + + def to_string(self): + if self.contained_value is None: + return "%s [no contained value]" % self.typename + if hasattr(self.visualizer, 'children'): + return "%s [index %d] containing %s" % (self.typename, self.index, + self.visualizer.to_string()) + return "%s [index %d]" % (self.typename, self.index) + +class StdNodeHandlePrinter(SingleObjContainerPrinter): + "Print a container node handle" + + def __init__(self, typename, val): + self.value_type = val.type.template_argument(1) + nodetype = val.type.template_argument(2).template_argument(0) + self.is_rb_tree_node = is_specialization_of(nodetype.name, '_Rb_tree_node') + self.is_map_node = val.type.template_argument(0) != self.value_type + nodeptr = val['_M_ptr'] + if nodeptr: + if self.is_rb_tree_node: + contained_value = get_value_from_Rb_tree_node(nodeptr.dereference()) + else: + contained_value = get_value_from_aligned_membuf(nodeptr['_M_storage'], + self.value_type) + visualizer = gdb.default_visualizer(contained_value) + else: + contained_value = None + visualizer = None + optalloc = val['_M_alloc'] + self.alloc = optalloc['_M_payload'] if optalloc['_M_engaged'] else None + super(StdNodeHandlePrinter, self).__init__(contained_value, visualizer, + 'array') + + def to_string(self): + desc = 'node handle for ' + if not self.is_rb_tree_node: + desc += 'unordered ' + if self.is_map_node: + desc += 'map'; + else: + desc += 'set'; + + if self.contained_value: + desc += ' with element' + if hasattr(self.visualizer, 'children'): + return "%s = %s" % (desc, self.visualizer.to_string()) + return desc + else: + return 'empty %s' % desc + +class StdExpStringViewPrinter: + "Print a std::basic_string_view or std::experimental::basic_string_view" + + def __init__ (self, typename, val): + self.val = val + + def to_string (self): + ptr = self.val['_M_str'] + len = self.val['_M_len'] + if hasattr (ptr, "lazy_string"): + return ptr.lazy_string (length = len) + return ptr.string (length = len) + + def display_hint (self): + return 'string' + +class StdExpPathPrinter: + "Print a std::experimental::filesystem::path" + + def __init__ (self, typename, val): + self.val = val + self.typename = typename + start = self.val['_M_cmpts']['_M_impl']['_M_start'] + finish = self.val['_M_cmpts']['_M_impl']['_M_finish'] + self.num_cmpts = int (finish - start) + + def _path_type(self): + t = str(self.val['_M_type']) + if t[-9:] == '_Root_dir': + return "root-directory" + if t[-10:] == '_Root_name': + return "root-name" + return None + + def to_string (self): + path = "%s" % self.val ['_M_pathname'] + if self.num_cmpts == 0: + t = self._path_type() + if t: + path = '%s [%s]' % (path, t) + return "experimental::filesystem::path %s" % path + + class _iterator(Iterator): + def __init__(self, cmpts, pathtype): + self.pathtype = pathtype + self.item = cmpts['_M_impl']['_M_start'] + self.finish = cmpts['_M_impl']['_M_finish'] + self.count = 0 + + def __iter__(self): + return self + + def __next__(self): + if self.item == self.finish: + raise StopIteration + item = self.item.dereference() + count = self.count + self.count = self.count + 1 + self.item = self.item + 1 + path = item['_M_pathname'] + t = StdExpPathPrinter(self.pathtype, item)._path_type() + if not t: + t = count + return ('[%s]' % t, path) + + def children(self): + return self._iterator(self.val['_M_cmpts'], self.typename) + +class StdPathPrinter: + "Print a std::filesystem::path" + + def __init__ (self, typename, val): + self.val = val + self.typename = typename + impl = unique_ptr_get(self.val['_M_cmpts']['_M_impl']) + self.type = impl.cast(gdb.lookup_type('uintptr_t')) & 3 + if self.type == 0: + self.impl = impl + else: + self.impl = None + + def _path_type(self): + t = str(self.type.cast(gdb.lookup_type(self.typename + '::_Type'))) + if t[-9:] == '_Root_dir': + return "root-directory" + if t[-10:] == '_Root_name': + return "root-name" + return None + + def to_string (self): + path = "%s" % self.val ['_M_pathname'] + if self.type != 0: + t = self._path_type() + if t: + path = '%s [%s]' % (path, t) + return "filesystem::path %s" % path + + class _iterator(Iterator): + def __init__(self, impl, pathtype): + self.pathtype = pathtype + if impl: + # We can't access _Impl::_M_size because _Impl is incomplete + # so cast to int* to access the _M_size member at offset zero, + int_type = gdb.lookup_type('int') + cmpt_type = gdb.lookup_type(pathtype+'::_Cmpt') + char_type = gdb.lookup_type('char') + impl = impl.cast(int_type.pointer()) + size = impl.dereference() + #self.capacity = (impl + 1).dereference() + if hasattr(gdb.Type, 'alignof'): + sizeof_Impl = max(2 * int_type.sizeof, cmpt_type.alignof) + else: + sizeof_Impl = 2 * int_type.sizeof + begin = impl.cast(char_type.pointer()) + sizeof_Impl + self.item = begin.cast(cmpt_type.pointer()) + self.finish = self.item + size + self.count = 0 + else: + self.item = None + self.finish = None + + def __iter__(self): + return self + + def __next__(self): + if self.item == self.finish: + raise StopIteration + item = self.item.dereference() + count = self.count + self.count = self.count + 1 + self.item = self.item + 1 + path = item['_M_pathname'] + t = StdPathPrinter(self.pathtype, item)._path_type() + if not t: + t = count + return ('[%s]' % t, path) + + def children(self): + return self._iterator(self.impl, self.typename) + + +class StdPairPrinter: + "Print a std::pair object, with 'first' and 'second' as children" + + def __init__(self, typename, val): + self.val = val + + class _iter(Iterator): + "An iterator for std::pair types. Returns 'first' then 'second'." + + def __init__(self, val): + self.val = val + self.which = 'first' + + def __iter__(self): + return self + + def __next__(self): + if self.which is None: + raise StopIteration + which = self.which + if which == 'first': + self.which = 'second' + else: + self.which = None + return (which, self.val[which]) + + def children(self): + return self._iter(self.val) + + def to_string(self): + return None + +class StdCmpCatPrinter: + "Print a comparison category object" + + def __init__ (self, typename, val): + self.typename = typename[typename.rfind(':')+1:] + self.val = val['_M_value'] + + def to_string (self): + if self.typename == 'strong_ordering' and self.val == 0: + name = 'equal' + else: + names = {2:'unordered', -1:'less', 0:'equivalent', 1:'greater'} + name = names[int(self.val)] + return 'std::{}::{}'.format(self.typename, name) + +class StdErrorCodePrinter: + "Print a std::error_code or std::error_condition" + + _system_is_posix = None # Whether std::system_category() use errno values. + + def __init__ (self, typename, val): + self.val = val + self.typename = strip_versioned_namespace(typename) + # Do this only once ... + if StdErrorCodePrinter._system_is_posix is None: + try: + import posix + StdErrorCodePrinter._system_is_posix = True + except ImportError: + StdErrorCodePrinter._system_is_posix = False + + @staticmethod + def _find_errc_enum(name): + typ = gdb.lookup_type(name) + if typ is not None and typ.code == gdb.TYPE_CODE_ENUM: + return typ + return None + + @classmethod + def _match_net_ts_category(cls, cat): + net_cats = ['stream', 'socket', 'ip::resolver'] + for c in net_cats: + func = c + '_category()' + for ns in ['', _versioned_namespace]: + ns = 'std::{}experimental::net::v1'.format(ns) + sym = gdb.lookup_symbol('{}::{}::__c'.format(ns, func))[0] + if sym is not None: + if cat == sym.value().address: + name = 'net::' + func + enum = cls._find_errc_enum('{}::{}_errc'.format(ns, c)) + return (name, enum) + return (None, None) + + @classmethod + def _category_info(cls, cat): + "Return details of a std::error_category" + + name = None + enum = None + is_errno = False + + # Try these first, or we get "warning: RTTI symbol not found" when + # using cat.dynamic_type on the local class types for Net TS categories. + func, enum = cls._match_net_ts_category(cat) + if func is not None: + return (None, func, enum, is_errno) + + # This might give a warning for a program-defined category defined as + # a local class, but there doesn't seem to be any way to avoid that. + typ = cat.dynamic_type.target() + # Shortcuts for the known categories defined by libstdc++. + if typ.tag.endswith('::generic_error_category'): + name = 'generic' + is_errno = True + if typ.tag.endswith('::system_error_category'): + name = 'system' + is_errno = cls._system_is_posix + if typ.tag.endswith('::future_error_category'): + name = 'future' + enum = cls._find_errc_enum('std::future_errc') + if typ.tag.endswith('::io_error_category'): + name = 'io' + enum = cls._find_errc_enum('std::io_errc') + + if name is None: + try: + # Want to call std::error_category::name() override, but it's + # unsafe: https://sourceware.org/bugzilla/show_bug.cgi?id=28856 + # gdb.set_convenience_variable('__cat', cat) + # return '"%s"' % gdb.parse_and_eval('$__cat->name()').string() + pass + except: + pass + return (name, typ.tag, enum, is_errno) + + @staticmethod + def _unqualified_name(name): + "Strip any nested-name-specifier from NAME to give an unqualified name" + return name.split('::')[-1] + + def to_string (self): + value = self.val['_M_value'] + cat = self.val['_M_cat'] + name, alt_name, enum, is_errno = self._category_info(cat) + if value == 0: + default_cats = { 'error_code' : 'system', + 'error_condition' : 'generic' } + if name == default_cats[self._unqualified_name(self.typename)]: + return self.typename + ' = { }' # default-constructed value + + strval = str(value) + if is_errno and value != 0: + try: + strval = errno.errorcode[int(value)] + except: + pass + elif enum is not None: + strval = self._unqualified_name(str(value.cast(enum))) + + if name is not None: + name = '"%s"' % name + else: + name = alt_name + return '%s = {%s: %s}' % (self.typename, name, strval) + + +class StdSpanPrinter: + "Print a std::span" + + class iterator(Iterator): + def __init__(self, begin, size): + self.count = 0 + self.begin = begin + self.size = size + + def __iter__ (self): + return self + + def __next__ (self): + if self.count == self.size: + raise StopIteration + + count = self.count + self.count = self.count + 1 + return '[%d]' % count, (self.begin + count).dereference() + + def __init__(self, typename, val): + self.typename = strip_versioned_namespace(typename) + self.val = val + if val.type.template_argument(1) == gdb.parse_and_eval('static_cast(-1)'): + self.size = val['_M_extent']['_M_extent_value'] + else: + self.size = val.type.template_argument(1) + + def to_string(self): + return '%s of length %d' % (self.typename, self.size) + + def children(self): + return self.iterator(self.val['_M_ptr'], self.size) + + def display_hint(self): + return 'array' + +class StdInitializerListPrinter: + "Print a std::initializer_list" + + def __init__(self, typename, val): + self.typename = typename + self.val = val + self.size = val['_M_len'] + + def to_string(self): + return '%s of length %d' % (self.typename, self.size) + + def children(self): + return StdSpanPrinter.iterator(self.val['_M_array'], self.size) + + def display_hint(self): + return 'array' + +# A "regular expression" printer which conforms to the +# "SubPrettyPrinter" protocol from gdb.printing. +class RxPrinter(object): + def __init__(self, name, function): + super(RxPrinter, self).__init__() + self.name = name + self.function = function + self.enabled = True + + def invoke(self, value): + if not self.enabled: + return None + + if value.type.code == gdb.TYPE_CODE_REF: + if hasattr(gdb.Value,"referenced_value"): + value = value.referenced_value() + + return self.function(self.name, value) + +# A pretty-printer that conforms to the "PrettyPrinter" protocol from +# gdb.printing. It can also be used directly as an old-style printer. +class Printer(object): + def __init__(self, name): + super(Printer, self).__init__() + self.name = name + self.subprinters = [] + self.lookup = {} + self.enabled = True + self.compiled_rx = re.compile('^([a-zA-Z0-9_:]+)(<.*>)?$') + + def add(self, name, function): + # A small sanity check. + # FIXME + if not self.compiled_rx.match(name): + raise ValueError('libstdc++ programming error: "%s" does not match' % name) + printer = RxPrinter(name, function) + self.subprinters.append(printer) + self.lookup[name] = printer + + # Add a name using _GLIBCXX_BEGIN_NAMESPACE_VERSION. + def add_version(self, base, name, function): + self.add(base + name, function) + if _versioned_namespace: + vbase = re.sub('^(std|__gnu_cxx)::', r'\g<0>%s' % _versioned_namespace, base) + self.add(vbase + name, function) + + # Add a name using _GLIBCXX_BEGIN_NAMESPACE_CONTAINER. + def add_container(self, base, name, function): + self.add_version(base, name, function) + self.add_version(base + '__cxx1998::', name, function) + + @staticmethod + def get_basic_type(type): + # If it points to a reference, get the reference. + if type.code == gdb.TYPE_CODE_REF: + type = type.target () + + # Get the unqualified type, stripped of typedefs. + type = type.unqualified ().strip_typedefs () + + return type.tag + + def __call__(self, val): + typename = self.get_basic_type(val.type) + if not typename: + return None + + # All the types we match are template types, so we can use a + # dictionary. + match = self.compiled_rx.match(typename) + if not match: + return None + + basename = match.group(1) + + if val.type.code == gdb.TYPE_CODE_REF: + if hasattr(gdb.Value,"referenced_value"): + val = val.referenced_value() + + if basename in self.lookup: + return self.lookup[basename].invoke(val) + + # Cannot find a pretty printer. Return None. + return None + +libstdcxx_printer = None + +class TemplateTypePrinter(object): + r""" + A type printer for class templates with default template arguments. + + Recognizes specializations of class templates and prints them without + any template arguments that use a default template argument. + Type printers are recursively applied to the template arguments. + + e.g. replace "std::vector >" with "std::vector". + """ + + def __init__(self, name, defargs): + self.name = name + self.defargs = defargs + self.enabled = True + + class _recognizer(object): + "The recognizer class for TemplateTypePrinter." + + def __init__(self, name, defargs): + self.name = name + self.defargs = defargs + # self.type_obj = None + + def recognize(self, type_obj): + """ + If type_obj is a specialization of self.name that uses all the + default template arguments for the class template, then return + a string representation of the type without default arguments. + Otherwise, return None. + """ + + if type_obj.tag is None: + return None + + if not type_obj.tag.startswith(self.name): + return None + + template_args = get_template_arg_list(type_obj) + displayed_args = [] + require_defaulted = False + for n in range(len(template_args)): + # The actual template argument in the type: + targ = template_args[n] + # The default template argument for the class template: + defarg = self.defargs.get(n) + if defarg is not None: + # Substitute other template arguments into the default: + defarg = defarg.format(*template_args) + # Fail to recognize the type (by returning None) + # unless the actual argument is the same as the default. + try: + if targ != gdb.lookup_type(defarg): + return None + except gdb.error: + # Type lookup failed, just use string comparison: + if targ.tag != defarg: + return None + # All subsequent args must have defaults: + require_defaulted = True + elif require_defaulted: + return None + else: + # Recursively apply recognizers to the template argument + # and add it to the arguments that will be displayed: + displayed_args.append(self._recognize_subtype(targ)) + + # This assumes no class templates in the nested-name-specifier: + template_name = type_obj.tag[0:type_obj.tag.find('<')] + template_name = strip_inline_namespaces(template_name) + + return template_name + '<' + ', '.join(displayed_args) + '>' + + def _recognize_subtype(self, type_obj): + """Convert a gdb.Type to a string by applying recognizers, + or if that fails then simply converting to a string.""" + + if type_obj.code == gdb.TYPE_CODE_PTR: + return self._recognize_subtype(type_obj.target()) + '*' + if type_obj.code == gdb.TYPE_CODE_ARRAY: + type_str = self._recognize_subtype(type_obj.target()) + if str(type_obj.strip_typedefs()).endswith('[]'): + return type_str + '[]' # array of unknown bound + return "%s[%d]" % (type_str, type_obj.range()[1] + 1) + if type_obj.code == gdb.TYPE_CODE_REF: + return self._recognize_subtype(type_obj.target()) + '&' + if hasattr(gdb, 'TYPE_CODE_RVALUE_REF'): + if type_obj.code == gdb.TYPE_CODE_RVALUE_REF: + return self._recognize_subtype(type_obj.target()) + '&&' + + type_str = gdb.types.apply_type_recognizers( + gdb.types.get_type_recognizers(), type_obj) + if type_str: + return type_str + return str(type_obj) + + def instantiate(self): + "Return a recognizer object for this type printer." + return self._recognizer(self.name, self.defargs) + +def add_one_template_type_printer(obj, name, defargs): + r""" + Add a type printer for a class template with default template arguments. + + Args: + name (str): The template-name of the class template. + defargs (dict int:string) The default template arguments. + + Types in defargs can refer to the Nth template-argument using {N} + (with zero-based indices). + + e.g. 'unordered_map' has these defargs: + { 2: 'std::hash<{0}>', + 3: 'std::equal_to<{0}>', + 4: 'std::allocator >' } + + """ + printer = TemplateTypePrinter('std::'+name, defargs) + gdb.types.register_type_printer(obj, printer) + + # Add type printer for same type in debug namespace: + printer = TemplateTypePrinter('std::__debug::'+name, defargs) + gdb.types.register_type_printer(obj, printer) + + if _versioned_namespace: + # Add second type printer for same type in versioned namespace: + ns = 'std::' + _versioned_namespace + # PR 86112 Cannot use dict comprehension here: + defargs = dict((n, d.replace('std::', ns)) for (n,d) in defargs.items()) + printer = TemplateTypePrinter(ns+name, defargs) + gdb.types.register_type_printer(obj, printer) + +class FilteringTypePrinter(object): + r""" + A type printer that uses typedef names for common template specializations. + + Args: + match (str): The class template to recognize. + name (str): The typedef-name that will be used instead. + + Checks if a specialization of the class template 'match' is the same type + as the typedef 'name', and prints it as 'name' instead. + + e.g. if an instantiation of std::basic_istream is the same type as + std::istream then print it as std::istream. + """ + + def __init__(self, match, name): + self.match = match + self.name = name + self.enabled = True + + class _recognizer(object): + "The recognizer class for FilteringTypePrinter." + + def __init__(self, match, name): + self.match = match + self.name = name + self.type_obj = None + + def recognize(self, type_obj): + """ + If type_obj starts with self.match and is the same type as + self.name then return self.name, otherwise None. + """ + if type_obj.tag is None: + return None + + if self.type_obj is None: + if not type_obj.tag.startswith(self.match): + # Filter didn't match. + return None + try: + self.type_obj = gdb.lookup_type(self.name).strip_typedefs() + except: + pass + if self.type_obj == type_obj: + return strip_inline_namespaces(self.name) + return None + + def instantiate(self): + "Return a recognizer object for this type printer." + return self._recognizer(self.match, self.name) + +def add_one_type_printer(obj, match, name): + printer = FilteringTypePrinter('std::' + match, 'std::' + name) + gdb.types.register_type_printer(obj, printer) + if _versioned_namespace: + ns = 'std::' + _versioned_namespace + printer = FilteringTypePrinter(ns + match, ns + name) + gdb.types.register_type_printer(obj, printer) + +def register_type_printers(obj): + global _use_type_printing + + if not _use_type_printing: + return + + # Add type printers for typedefs std::string, std::wstring etc. + for ch in ('', 'w', 'u8', 'u16', 'u32'): + add_one_type_printer(obj, 'basic_string', ch + 'string') + add_one_type_printer(obj, '__cxx11::basic_string', ch + 'string') + # Typedefs for __cxx11::basic_string used to be in namespace __cxx11: + add_one_type_printer(obj, '__cxx11::basic_string', + '__cxx11::' + ch + 'string') + add_one_type_printer(obj, 'basic_string_view', ch + 'string_view') + + # Add type printers for typedefs std::istream, std::wistream etc. + for ch in ('', 'w'): + for x in ('ios', 'streambuf', 'istream', 'ostream', 'iostream', + 'filebuf', 'ifstream', 'ofstream', 'fstream'): + add_one_type_printer(obj, 'basic_' + x, ch + x) + for x in ('stringbuf', 'istringstream', 'ostringstream', + 'stringstream'): + add_one_type_printer(obj, 'basic_' + x, ch + x) + # types are in __cxx11 namespace, but typedefs aren't: + add_one_type_printer(obj, '__cxx11::basic_' + x, ch + x) + + # Add type printers for typedefs regex, wregex, cmatch, wcmatch etc. + for abi in ('', '__cxx11::'): + for ch in ('', 'w'): + add_one_type_printer(obj, abi + 'basic_regex', abi + ch + 'regex') + for ch in ('c', 's', 'wc', 'ws'): + add_one_type_printer(obj, abi + 'match_results', abi + ch + 'match') + for x in ('sub_match', 'regex_iterator', 'regex_token_iterator'): + add_one_type_printer(obj, abi + x, abi + ch + x) + + # Note that we can't have a printer for std::wstreampos, because + # it is the same type as std::streampos. + add_one_type_printer(obj, 'fpos', 'streampos') + + # Add type printers for typedefs. + for dur in ('nanoseconds', 'microseconds', 'milliseconds', + 'seconds', 'minutes', 'hours'): + add_one_type_printer(obj, 'duration', dur) + + # Add type printers for typedefs. + add_one_type_printer(obj, 'linear_congruential_engine', 'minstd_rand0') + add_one_type_printer(obj, 'linear_congruential_engine', 'minstd_rand') + add_one_type_printer(obj, 'mersenne_twister_engine', 'mt19937') + add_one_type_printer(obj, 'mersenne_twister_engine', 'mt19937_64') + add_one_type_printer(obj, 'subtract_with_carry_engine', 'ranlux24_base') + add_one_type_printer(obj, 'subtract_with_carry_engine', 'ranlux48_base') + add_one_type_printer(obj, 'discard_block_engine', 'ranlux24') + add_one_type_printer(obj, 'discard_block_engine', 'ranlux48') + add_one_type_printer(obj, 'shuffle_order_engine', 'knuth_b') + + # Add type printers for experimental::basic_string_view typedefs. + ns = 'experimental::fundamentals_v1::' + for ch in ('', 'w', 'u8', 'u16', 'u32'): + add_one_type_printer(obj, ns + 'basic_string_view', + ns + ch + 'string_view') + + # Do not show defaulted template arguments in class templates. + add_one_template_type_printer(obj, 'unique_ptr', + { 1: 'std::default_delete<{0}>' }) + add_one_template_type_printer(obj, 'deque', { 1: 'std::allocator<{0}>'}) + add_one_template_type_printer(obj, 'forward_list', { 1: 'std::allocator<{0}>'}) + add_one_template_type_printer(obj, 'list', { 1: 'std::allocator<{0}>'}) + add_one_template_type_printer(obj, '__cxx11::list', { 1: 'std::allocator<{0}>'}) + add_one_template_type_printer(obj, 'vector', { 1: 'std::allocator<{0}>'}) + add_one_template_type_printer(obj, 'map', + { 2: 'std::less<{0}>', + 3: 'std::allocator>' }) + add_one_template_type_printer(obj, 'multimap', + { 2: 'std::less<{0}>', + 3: 'std::allocator>' }) + add_one_template_type_printer(obj, 'set', + { 1: 'std::less<{0}>', 2: 'std::allocator<{0}>' }) + add_one_template_type_printer(obj, 'multiset', + { 1: 'std::less<{0}>', 2: 'std::allocator<{0}>' }) + add_one_template_type_printer(obj, 'unordered_map', + { 2: 'std::hash<{0}>', + 3: 'std::equal_to<{0}>', + 4: 'std::allocator>'}) + add_one_template_type_printer(obj, 'unordered_multimap', + { 2: 'std::hash<{0}>', + 3: 'std::equal_to<{0}>', + 4: 'std::allocator>'}) + add_one_template_type_printer(obj, 'unordered_set', + { 1: 'std::hash<{0}>', + 2: 'std::equal_to<{0}>', + 3: 'std::allocator<{0}>'}) + add_one_template_type_printer(obj, 'unordered_multiset', + { 1: 'std::hash<{0}>', + 2: 'std::equal_to<{0}>', + 3: 'std::allocator<{0}>'}) + +def register_libstdcxx_printers (obj): + "Register libstdc++ pretty-printers with objfile Obj." + + global _use_gdb_pp + global libstdcxx_printer + + if _use_gdb_pp: + gdb.printing.register_pretty_printer(obj, libstdcxx_printer) + else: + if obj is None: + obj = gdb + obj.pretty_printers.append(libstdcxx_printer) + + register_type_printers(obj) + +def build_libstdcxx_dictionary (): + global libstdcxx_printer + + libstdcxx_printer = Printer("libstdc++-v6") + + # libstdc++ objects requiring pretty-printing. + # In order from: + # http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01847.html + libstdcxx_printer.add_version('std::', 'basic_string', StdStringPrinter) + libstdcxx_printer.add_version('std::__cxx11::', 'basic_string', StdStringPrinter) + libstdcxx_printer.add_container('std::', 'bitset', StdBitsetPrinter) + libstdcxx_printer.add_container('std::', 'deque', StdDequePrinter) + libstdcxx_printer.add_container('std::', 'list', StdListPrinter) + libstdcxx_printer.add_container('std::__cxx11::', 'list', StdListPrinter) + libstdcxx_printer.add_container('std::', 'map', StdMapPrinter) + libstdcxx_printer.add_container('std::', 'multimap', StdMapPrinter) + libstdcxx_printer.add_container('std::', 'multiset', StdSetPrinter) + libstdcxx_printer.add_version('std::', 'pair', StdPairPrinter) + libstdcxx_printer.add_version('std::', 'priority_queue', + StdStackOrQueuePrinter) + libstdcxx_printer.add_version('std::', 'queue', StdStackOrQueuePrinter) + libstdcxx_printer.add_version('std::', 'tuple', StdTuplePrinter) + libstdcxx_printer.add_container('std::', 'set', StdSetPrinter) + libstdcxx_printer.add_version('std::', 'stack', StdStackOrQueuePrinter) + libstdcxx_printer.add_version('std::', 'unique_ptr', UniquePointerPrinter) + libstdcxx_printer.add_container('std::', 'vector', StdVectorPrinter) + # vector + + if hasattr(gdb.Value, 'dynamic_type'): + libstdcxx_printer.add_version('std::', 'error_code', + StdErrorCodePrinter) + libstdcxx_printer.add_version('std::', 'error_condition', + StdErrorCodePrinter) + + # Printer registrations for classes compiled with -D_GLIBCXX_DEBUG. + libstdcxx_printer.add('std::__debug::bitset', StdBitsetPrinter) + libstdcxx_printer.add('std::__debug::deque', StdDequePrinter) + libstdcxx_printer.add('std::__debug::list', StdListPrinter) + libstdcxx_printer.add('std::__debug::map', StdMapPrinter) + libstdcxx_printer.add('std::__debug::multimap', StdMapPrinter) + libstdcxx_printer.add('std::__debug::multiset', StdSetPrinter) + libstdcxx_printer.add('std::__debug::priority_queue', + StdStackOrQueuePrinter) + libstdcxx_printer.add('std::__debug::queue', StdStackOrQueuePrinter) + libstdcxx_printer.add('std::__debug::set', StdSetPrinter) + libstdcxx_printer.add('std::__debug::stack', StdStackOrQueuePrinter) + libstdcxx_printer.add('std::__debug::unique_ptr', UniquePointerPrinter) + libstdcxx_printer.add('std::__debug::vector', StdVectorPrinter) + + # These are the TR1 and C++11 printers. + # For array - the default GDB pretty-printer seems reasonable. + libstdcxx_printer.add_version('std::', 'shared_ptr', SharedPointerPrinter) + libstdcxx_printer.add_version('std::', 'weak_ptr', SharedPointerPrinter) + libstdcxx_printer.add_container('std::', 'unordered_map', + Tr1UnorderedMapPrinter) + libstdcxx_printer.add_container('std::', 'unordered_set', + Tr1UnorderedSetPrinter) + libstdcxx_printer.add_container('std::', 'unordered_multimap', + Tr1UnorderedMapPrinter) + libstdcxx_printer.add_container('std::', 'unordered_multiset', + Tr1UnorderedSetPrinter) + libstdcxx_printer.add_container('std::', 'forward_list', + StdForwardListPrinter) + + libstdcxx_printer.add_version('std::tr1::', 'shared_ptr', SharedPointerPrinter) + libstdcxx_printer.add_version('std::tr1::', 'weak_ptr', SharedPointerPrinter) + libstdcxx_printer.add_version('std::tr1::', 'unordered_map', + Tr1UnorderedMapPrinter) + libstdcxx_printer.add_version('std::tr1::', 'unordered_set', + Tr1UnorderedSetPrinter) + libstdcxx_printer.add_version('std::tr1::', 'unordered_multimap', + Tr1UnorderedMapPrinter) + libstdcxx_printer.add_version('std::tr1::', 'unordered_multiset', + Tr1UnorderedSetPrinter) + + libstdcxx_printer.add_version('std::', 'initializer_list', + StdInitializerListPrinter) + + + # These are the C++11 printer registrations for -D_GLIBCXX_DEBUG cases. + # The tr1 namespace containers do not have any debug equivalents, + # so do not register printers for them. + libstdcxx_printer.add('std::__debug::unordered_map', + Tr1UnorderedMapPrinter) + libstdcxx_printer.add('std::__debug::unordered_set', + Tr1UnorderedSetPrinter) + libstdcxx_printer.add('std::__debug::unordered_multimap', + Tr1UnorderedMapPrinter) + libstdcxx_printer.add('std::__debug::unordered_multiset', + Tr1UnorderedSetPrinter) + libstdcxx_printer.add('std::__debug::forward_list', + StdForwardListPrinter) + + # Library Fundamentals TS components + libstdcxx_printer.add_version('std::experimental::fundamentals_v1::', + 'any', StdExpAnyPrinter) + libstdcxx_printer.add_version('std::experimental::fundamentals_v1::', + 'optional', StdExpOptionalPrinter) + libstdcxx_printer.add_version('std::experimental::fundamentals_v1::', + 'basic_string_view', StdExpStringViewPrinter) + # Filesystem TS components + libstdcxx_printer.add_version('std::experimental::filesystem::v1::', + 'path', StdExpPathPrinter) + libstdcxx_printer.add_version('std::experimental::filesystem::v1::__cxx11::', + 'path', StdExpPathPrinter) + libstdcxx_printer.add_version('std::filesystem::', + 'path', StdPathPrinter) + libstdcxx_printer.add_version('std::filesystem::__cxx11::', + 'path', StdPathPrinter) + + # C++17 components + libstdcxx_printer.add_version('std::', + 'any', StdExpAnyPrinter) + libstdcxx_printer.add_version('std::', + 'optional', StdExpOptionalPrinter) + libstdcxx_printer.add_version('std::', + 'basic_string_view', StdExpStringViewPrinter) + libstdcxx_printer.add_version('std::', + 'variant', StdVariantPrinter) + libstdcxx_printer.add_version('std::', + '_Node_handle', StdNodeHandlePrinter) + + # C++20 components + libstdcxx_printer.add_version('std::', 'partial_ordering', StdCmpCatPrinter) + libstdcxx_printer.add_version('std::', 'weak_ordering', StdCmpCatPrinter) + libstdcxx_printer.add_version('std::', 'strong_ordering', StdCmpCatPrinter) + libstdcxx_printer.add_version('std::', 'span', StdSpanPrinter) + + # Extensions. + libstdcxx_printer.add_version('__gnu_cxx::', 'slist', StdSlistPrinter) + + if True: + # These shouldn't be necessary, if GDB "print *i" worked. + # But it often doesn't, so here they are. + libstdcxx_printer.add_container('std::', '_List_iterator', + StdListIteratorPrinter) + libstdcxx_printer.add_container('std::', '_List_const_iterator', + StdListIteratorPrinter) + libstdcxx_printer.add_version('std::', '_Rb_tree_iterator', + StdRbtreeIteratorPrinter) + libstdcxx_printer.add_version('std::', '_Rb_tree_const_iterator', + StdRbtreeIteratorPrinter) + libstdcxx_printer.add_container('std::', '_Deque_iterator', + StdDequeIteratorPrinter) + libstdcxx_printer.add_container('std::', '_Deque_const_iterator', + StdDequeIteratorPrinter) + libstdcxx_printer.add_version('__gnu_cxx::', '__normal_iterator', + StdVectorIteratorPrinter) + libstdcxx_printer.add_container('std::', '_Bit_iterator', + StdBitIteratorPrinter) + libstdcxx_printer.add_container('std::', '_Bit_const_iterator', + StdBitIteratorPrinter) + libstdcxx_printer.add_container('std::', '_Bit_reference', + StdBitReferencePrinter) + libstdcxx_printer.add_version('__gnu_cxx::', '_Slist_iterator', + StdSlistIteratorPrinter) + libstdcxx_printer.add_container('std::', '_Fwd_list_iterator', + StdFwdListIteratorPrinter) + libstdcxx_printer.add_container('std::', '_Fwd_list_const_iterator', + StdFwdListIteratorPrinter) + + # Debug (compiled with -D_GLIBCXX_DEBUG) printer + # registrations. + libstdcxx_printer.add('__gnu_debug::_Safe_iterator', + StdDebugIteratorPrinter) + +build_libstdcxx_dictionary () diff --git a/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/v6/xmethods.py b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/v6/xmethods.py new file mode 100644 index 0000000000000000000000000000000000000000..d6cbcf139c5808d7aea0002f61fe693c5d396c32 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_impl_linux-64-11.4.0-h634f3ee_13/share/gcc-11.4.0/python/libstdcxx/v6/xmethods.py @@ -0,0 +1,808 @@ +# Xmethods for libstdc++. + +# Copyright (C) 2014-2021 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import gdb +import gdb.xmethod +import re + +matcher_name_prefix = 'libstdc++::' + +def get_bool_type(): + return gdb.lookup_type('bool') + +def get_std_size_type(): + return gdb.lookup_type('std::size_t') + +class LibStdCxxXMethod(gdb.xmethod.XMethod): + def __init__(self, name, worker_class): + gdb.xmethod.XMethod.__init__(self, name) + self.worker_class = worker_class + +# Xmethods for std::array + +class ArrayWorkerBase(gdb.xmethod.XMethodWorker): + def __init__(self, val_type, size): + self._val_type = val_type + self._size = size + + def null_value(self): + nullptr = gdb.parse_and_eval('(void *) 0') + return nullptr.cast(self._val_type.pointer()).dereference() + +class ArraySizeWorker(ArrayWorkerBase): + def __init__(self, val_type, size): + ArrayWorkerBase.__init__(self, val_type, size) + + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return get_std_size_type() + + def __call__(self, obj): + return self._size + +class ArrayEmptyWorker(ArrayWorkerBase): + def __init__(self, val_type, size): + ArrayWorkerBase.__init__(self, val_type, size) + + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return get_bool_type() + + def __call__(self, obj): + return (int(self._size) == 0) + +class ArrayFrontWorker(ArrayWorkerBase): + def __init__(self, val_type, size): + ArrayWorkerBase.__init__(self, val_type, size) + + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return self._val_type + + def __call__(self, obj): + if int(self._size) > 0: + return obj['_M_elems'][0] + else: + return self.null_value() + +class ArrayBackWorker(ArrayWorkerBase): + def __init__(self, val_type, size): + ArrayWorkerBase.__init__(self, val_type, size) + + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return self._val_type + + def __call__(self, obj): + if int(self._size) > 0: + return obj['_M_elems'][self._size - 1] + else: + return self.null_value() + +class ArrayAtWorker(ArrayWorkerBase): + def __init__(self, val_type, size): + ArrayWorkerBase.__init__(self, val_type, size) + + def get_arg_types(self): + return get_std_size_type() + + def get_result_type(self, obj, index): + return self._val_type + + def __call__(self, obj, index): + if int(index) >= int(self._size): + raise IndexError('Array index "%d" should not be >= %d.' % + ((int(index), self._size))) + return obj['_M_elems'][index] + +class ArraySubscriptWorker(ArrayWorkerBase): + def __init__(self, val_type, size): + ArrayWorkerBase.__init__(self, val_type, size) + + def get_arg_types(self): + return get_std_size_type() + + def get_result_type(self, obj, index): + return self._val_type + + def __call__(self, obj, index): + if int(self._size) > 0: + return obj['_M_elems'][index] + else: + return self.null_value() + +class ArrayMethodsMatcher(gdb.xmethod.XMethodMatcher): + def __init__(self): + gdb.xmethod.XMethodMatcher.__init__(self, + matcher_name_prefix + 'array') + self._method_dict = { + 'size': LibStdCxxXMethod('size', ArraySizeWorker), + 'empty': LibStdCxxXMethod('empty', ArrayEmptyWorker), + 'front': LibStdCxxXMethod('front', ArrayFrontWorker), + 'back': LibStdCxxXMethod('back', ArrayBackWorker), + 'at': LibStdCxxXMethod('at', ArrayAtWorker), + 'operator[]': LibStdCxxXMethod('operator[]', ArraySubscriptWorker), + } + self.methods = [self._method_dict[m] for m in self._method_dict] + + def match(self, class_type, method_name): + if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag): + return None + method = self._method_dict.get(method_name) + if method is None or not method.enabled: + return None + try: + value_type = class_type.template_argument(0) + size = class_type.template_argument(1) + except: + return None + return method.worker_class(value_type, size) + +# Xmethods for std::deque + +class DequeWorkerBase(gdb.xmethod.XMethodWorker): + def __init__(self, val_type): + self._val_type = val_type + self._bufsize = 512 // val_type.sizeof or 1 + + def size(self, obj): + first_node = obj['_M_impl']['_M_start']['_M_node'] + last_node = obj['_M_impl']['_M_finish']['_M_node'] + cur = obj['_M_impl']['_M_finish']['_M_cur'] + first = obj['_M_impl']['_M_finish']['_M_first'] + return (last_node - first_node) * self._bufsize + (cur - first) + + def index(self, obj, idx): + first_node = obj['_M_impl']['_M_start']['_M_node'] + index_node = first_node + int(idx) // self._bufsize + return index_node[0][idx % self._bufsize] + +class DequeEmptyWorker(DequeWorkerBase): + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return get_bool_type() + + def __call__(self, obj): + return (obj['_M_impl']['_M_start']['_M_cur'] == + obj['_M_impl']['_M_finish']['_M_cur']) + +class DequeSizeWorker(DequeWorkerBase): + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return get_std_size_type() + + def __call__(self, obj): + return self.size(obj) + +class DequeFrontWorker(DequeWorkerBase): + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return self._val_type + + def __call__(self, obj): + return obj['_M_impl']['_M_start']['_M_cur'][0] + +class DequeBackWorker(DequeWorkerBase): + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return self._val_type + + def __call__(self, obj): + if (obj['_M_impl']['_M_finish']['_M_cur'] == + obj['_M_impl']['_M_finish']['_M_first']): + prev_node = obj['_M_impl']['_M_finish']['_M_node'] - 1 + return prev_node[0][self._bufsize - 1] + else: + return obj['_M_impl']['_M_finish']['_M_cur'][-1] + +class DequeSubscriptWorker(DequeWorkerBase): + def get_arg_types(self): + return get_std_size_type() + + def get_result_type(self, obj, subscript): + return self._val_type + + def __call__(self, obj, subscript): + return self.index(obj, subscript) + +class DequeAtWorker(DequeWorkerBase): + def get_arg_types(self): + return get_std_size_type() + + def get_result_type(self, obj, index): + return self._val_type + + def __call__(self, obj, index): + deque_size = int(self.size(obj)) + if int(index) >= deque_size: + raise IndexError('Deque index "%d" should not be >= %d.' % + (int(index), deque_size)) + else: + return self.index(obj, index) + +class DequeMethodsMatcher(gdb.xmethod.XMethodMatcher): + def __init__(self): + gdb.xmethod.XMethodMatcher.__init__(self, + matcher_name_prefix + 'deque') + self._method_dict = { + 'empty': LibStdCxxXMethod('empty', DequeEmptyWorker), + 'size': LibStdCxxXMethod('size', DequeSizeWorker), + 'front': LibStdCxxXMethod('front', DequeFrontWorker), + 'back': LibStdCxxXMethod('back', DequeBackWorker), + 'operator[]': LibStdCxxXMethod('operator[]', DequeSubscriptWorker), + 'at': LibStdCxxXMethod('at', DequeAtWorker) + } + self.methods = [self._method_dict[m] for m in self._method_dict] + + def match(self, class_type, method_name): + if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag): + return None + method = self._method_dict.get(method_name) + if method is None or not method.enabled: + return None + return method.worker_class(class_type.template_argument(0)) + +# Xmethods for std::forward_list + +class ForwardListWorkerBase(gdb.xmethod.XMethodMatcher): + def __init__(self, val_type, node_type): + self._val_type = val_type + self._node_type = node_type + + def get_arg_types(self): + return None + +class ForwardListEmptyWorker(ForwardListWorkerBase): + def get_result_type(self, obj): + return get_bool_type() + + def __call__(self, obj): + return obj['_M_impl']['_M_head']['_M_next'] == 0 + +class ForwardListFrontWorker(ForwardListWorkerBase): + def get_result_type(self, obj): + return self._val_type + + def __call__(self, obj): + node = obj['_M_impl']['_M_head']['_M_next'].cast(self._node_type) + val_address = node['_M_storage']['_M_storage'].address + return val_address.cast(self._val_type.pointer()).dereference() + +class ForwardListMethodsMatcher(gdb.xmethod.XMethodMatcher): + def __init__(self): + matcher_name = matcher_name_prefix + 'forward_list' + gdb.xmethod.XMethodMatcher.__init__(self, matcher_name) + self._method_dict = { + 'empty': LibStdCxxXMethod('empty', ForwardListEmptyWorker), + 'front': LibStdCxxXMethod('front', ForwardListFrontWorker) + } + self.methods = [self._method_dict[m] for m in self._method_dict] + + def match(self, class_type, method_name): + if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag): + return None + method = self._method_dict.get(method_name) + if method is None or not method.enabled: + return None + val_type = class_type.template_argument(0) + node_type = gdb.lookup_type(str(class_type) + '::_Node').pointer() + return method.worker_class(val_type, node_type) + +# Xmethods for std::list + +class ListWorkerBase(gdb.xmethod.XMethodWorker): + def __init__(self, val_type, node_type): + self._val_type = val_type + self._node_type = node_type + + def get_arg_types(self): + return None + + def get_value_from_node(self, node): + node = node.dereference() + if node.type.fields()[1].name == '_M_data': + # C++03 implementation, node contains the value as a member + return node['_M_data'] + # C++11 implementation, node stores value in __aligned_membuf + addr = node['_M_storage'].address + return addr.cast(self._val_type.pointer()).dereference() + +class ListEmptyWorker(ListWorkerBase): + def get_result_type(self, obj): + return get_bool_type() + + def __call__(self, obj): + base_node = obj['_M_impl']['_M_node'] + if base_node['_M_next'] == base_node.address: + return True + else: + return False + +class ListSizeWorker(ListWorkerBase): + def get_result_type(self, obj): + return get_std_size_type() + + def __call__(self, obj): + begin_node = obj['_M_impl']['_M_node']['_M_next'] + end_node = obj['_M_impl']['_M_node'].address + size = 0 + while begin_node != end_node: + begin_node = begin_node['_M_next'] + size += 1 + return size + +class ListFrontWorker(ListWorkerBase): + def get_result_type(self, obj): + return self._val_type + + def __call__(self, obj): + node = obj['_M_impl']['_M_node']['_M_next'].cast(self._node_type) + return self.get_value_from_node(node) + +class ListBackWorker(ListWorkerBase): + def get_result_type(self, obj): + return self._val_type + + def __call__(self, obj): + prev_node = obj['_M_impl']['_M_node']['_M_prev'].cast(self._node_type) + return self.get_value_from_node(prev_node) + +class ListMethodsMatcher(gdb.xmethod.XMethodMatcher): + def __init__(self): + gdb.xmethod.XMethodMatcher.__init__(self, + matcher_name_prefix + 'list') + self._method_dict = { + 'empty': LibStdCxxXMethod('empty', ListEmptyWorker), + 'size': LibStdCxxXMethod('size', ListSizeWorker), + 'front': LibStdCxxXMethod('front', ListFrontWorker), + 'back': LibStdCxxXMethod('back', ListBackWorker) + } + self.methods = [self._method_dict[m] for m in self._method_dict] + + def match(self, class_type, method_name): + if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag): + return None + method = self._method_dict.get(method_name) + if method is None or not method.enabled: + return None + val_type = class_type.template_argument(0) + node_type = gdb.lookup_type(str(class_type) + '::_Node').pointer() + return method.worker_class(val_type, node_type) + +# Xmethods for std::vector + +class VectorWorkerBase(gdb.xmethod.XMethodWorker): + def __init__(self, val_type): + self._val_type = val_type + + def size(self, obj): + if self._val_type.code == gdb.TYPE_CODE_BOOL: + start = obj['_M_impl']['_M_start']['_M_p'] + finish = obj['_M_impl']['_M_finish']['_M_p'] + finish_offset = obj['_M_impl']['_M_finish']['_M_offset'] + bit_size = start.dereference().type.sizeof * 8 + return (finish - start) * bit_size + finish_offset + else: + return obj['_M_impl']['_M_finish'] - obj['_M_impl']['_M_start'] + + def get(self, obj, index): + if self._val_type.code == gdb.TYPE_CODE_BOOL: + start = obj['_M_impl']['_M_start']['_M_p'] + bit_size = start.dereference().type.sizeof * 8 + valp = start + index // bit_size + offset = index % bit_size + return (valp.dereference() & (1 << offset)) > 0 + else: + return obj['_M_impl']['_M_start'][index] + +class VectorEmptyWorker(VectorWorkerBase): + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return get_bool_type() + + def __call__(self, obj): + return int(self.size(obj)) == 0 + +class VectorSizeWorker(VectorWorkerBase): + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return get_std_size_type() + + def __call__(self, obj): + return self.size(obj) + +class VectorFrontWorker(VectorWorkerBase): + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return self._val_type + + def __call__(self, obj): + return self.get(obj, 0) + +class VectorBackWorker(VectorWorkerBase): + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return self._val_type + + def __call__(self, obj): + return self.get(obj, int(self.size(obj)) - 1) + +class VectorAtWorker(VectorWorkerBase): + def get_arg_types(self): + return get_std_size_type() + + def get_result_type(self, obj, index): + return self._val_type + + def __call__(self, obj, index): + size = int(self.size(obj)) + if int(index) >= size: + raise IndexError('Vector index "%d" should not be >= %d.' % + ((int(index), size))) + return self.get(obj, int(index)) + +class VectorSubscriptWorker(VectorWorkerBase): + def get_arg_types(self): + return get_std_size_type() + + def get_result_type(self, obj, subscript): + return self._val_type + + def __call__(self, obj, subscript): + return self.get(obj, int(subscript)) + +class VectorMethodsMatcher(gdb.xmethod.XMethodMatcher): + def __init__(self): + gdb.xmethod.XMethodMatcher.__init__(self, + matcher_name_prefix + 'vector') + self._method_dict = { + 'size': LibStdCxxXMethod('size', VectorSizeWorker), + 'empty': LibStdCxxXMethod('empty', VectorEmptyWorker), + 'front': LibStdCxxXMethod('front', VectorFrontWorker), + 'back': LibStdCxxXMethod('back', VectorBackWorker), + 'at': LibStdCxxXMethod('at', VectorAtWorker), + 'operator[]': LibStdCxxXMethod('operator[]', + VectorSubscriptWorker), + } + self.methods = [self._method_dict[m] for m in self._method_dict] + + def match(self, class_type, method_name): + if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag): + return None + method = self._method_dict.get(method_name) + if method is None or not method.enabled: + return None + return method.worker_class(class_type.template_argument(0)) + +# Xmethods for associative containers + +class AssociativeContainerWorkerBase(gdb.xmethod.XMethodWorker): + def __init__(self, unordered): + self._unordered = unordered + + def node_count(self, obj): + if self._unordered: + return obj['_M_h']['_M_element_count'] + else: + return obj['_M_t']['_M_impl']['_M_node_count'] + + def get_arg_types(self): + return None + +class AssociativeContainerEmptyWorker(AssociativeContainerWorkerBase): + def get_result_type(self, obj): + return get_bool_type() + + def __call__(self, obj): + return int(self.node_count(obj)) == 0 + +class AssociativeContainerSizeWorker(AssociativeContainerWorkerBase): + def get_result_type(self, obj): + return get_std_size_type() + + def __call__(self, obj): + return self.node_count(obj) + +class AssociativeContainerMethodsMatcher(gdb.xmethod.XMethodMatcher): + def __init__(self, name): + gdb.xmethod.XMethodMatcher.__init__(self, + matcher_name_prefix + name) + self._name = name + self._method_dict = { + 'size': LibStdCxxXMethod('size', AssociativeContainerSizeWorker), + 'empty': LibStdCxxXMethod('empty', + AssociativeContainerEmptyWorker), + } + self.methods = [self._method_dict[m] for m in self._method_dict] + + def match(self, class_type, method_name): + if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag): + return None + method = self._method_dict.get(method_name) + if method is None or not method.enabled: + return None + unordered = 'unordered' in self._name + return method.worker_class(unordered) + +# Xmethods for std::unique_ptr + +class UniquePtrGetWorker(gdb.xmethod.XMethodWorker): + "Implements std::unique_ptr::get() and std::unique_ptr::operator->()" + + def __init__(self, elem_type): + self._is_array = elem_type.code == gdb.TYPE_CODE_ARRAY + if self._is_array: + self._elem_type = elem_type.target() + else: + self._elem_type = elem_type + + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return self._elem_type.pointer() + + def _supports(self, method_name): + "operator-> is not supported for unique_ptr" + return method_name == 'get' or not self._is_array + + def __call__(self, obj): + impl_type = obj.dereference().type.fields()[0].type.tag + # Check for new implementations first: + if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type): + tuple_member = obj['_M_t']['_M_t'] + elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type): + tuple_member = obj['_M_t'] + else: + return None + tuple_impl_type = tuple_member.type.fields()[0].type # _Tuple_impl + tuple_head_type = tuple_impl_type.fields()[1].type # _Head_base + head_field = tuple_head_type.fields()[0] + if head_field.name == '_M_head_impl': + return tuple_member.cast(tuple_head_type)['_M_head_impl'] + elif head_field.is_base_class: + return tuple_member.cast(head_field.type) + else: + return None + +class UniquePtrDerefWorker(UniquePtrGetWorker): + "Implements std::unique_ptr::operator*()" + + def __init__(self, elem_type): + UniquePtrGetWorker.__init__(self, elem_type) + + def get_result_type(self, obj): + return self._elem_type + + def _supports(self, method_name): + "operator* is not supported for unique_ptr" + return not self._is_array + + def __call__(self, obj): + return UniquePtrGetWorker.__call__(self, obj).dereference() + +class UniquePtrSubscriptWorker(UniquePtrGetWorker): + "Implements std::unique_ptr::operator[](size_t)" + + def __init__(self, elem_type): + UniquePtrGetWorker.__init__(self, elem_type) + + def get_arg_types(self): + return get_std_size_type() + + def get_result_type(self, obj, index): + return self._elem_type + + def _supports(self, method_name): + "operator[] is only supported for unique_ptr" + return self._is_array + + def __call__(self, obj, index): + return UniquePtrGetWorker.__call__(self, obj)[index] + +class UniquePtrMethodsMatcher(gdb.xmethod.XMethodMatcher): + def __init__(self): + gdb.xmethod.XMethodMatcher.__init__(self, + matcher_name_prefix + 'unique_ptr') + self._method_dict = { + 'get': LibStdCxxXMethod('get', UniquePtrGetWorker), + 'operator->': LibStdCxxXMethod('operator->', UniquePtrGetWorker), + 'operator*': LibStdCxxXMethod('operator*', UniquePtrDerefWorker), + 'operator[]': LibStdCxxXMethod('operator[]', UniquePtrSubscriptWorker), + } + self.methods = [self._method_dict[m] for m in self._method_dict] + + def match(self, class_type, method_name): + if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag): + return None + method = self._method_dict.get(method_name) + if method is None or not method.enabled: + return None + worker = method.worker_class(class_type.template_argument(0)) + if worker._supports(method_name): + return worker + return None + +# Xmethods for std::shared_ptr + +class SharedPtrGetWorker(gdb.xmethod.XMethodWorker): + "Implements std::shared_ptr::get() and std::shared_ptr::operator->()" + + def __init__(self, elem_type): + self._is_array = elem_type.code == gdb.TYPE_CODE_ARRAY + if self._is_array: + self._elem_type = elem_type.target() + else: + self._elem_type = elem_type + + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return self._elem_type.pointer() + + def _supports(self, method_name): + "operator-> is not supported for shared_ptr" + return method_name == 'get' or not self._is_array + + def __call__(self, obj): + return obj['_M_ptr'] + +class SharedPtrDerefWorker(SharedPtrGetWorker): + "Implements std::shared_ptr::operator*()" + + def __init__(self, elem_type): + SharedPtrGetWorker.__init__(self, elem_type) + + def get_result_type(self, obj): + return self._elem_type + + def _supports(self, method_name): + "operator* is not supported for shared_ptr" + return not self._is_array + + def __call__(self, obj): + return SharedPtrGetWorker.__call__(self, obj).dereference() + +class SharedPtrSubscriptWorker(SharedPtrGetWorker): + "Implements std::shared_ptr::operator[](size_t)" + + def __init__(self, elem_type): + SharedPtrGetWorker.__init__(self, elem_type) + + def get_arg_types(self): + return get_std_size_type() + + def get_result_type(self, obj, index): + return self._elem_type + + def _supports(self, method_name): + "operator[] is only supported for shared_ptr" + return self._is_array + + def __call__(self, obj, index): + # Check bounds if _elem_type is an array of known bound + m = re.match('.*\[(\d+)]$', str(self._elem_type)) + if m and index >= int(m.group(1)): + raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' % + (self._elem_type, int(index), int(m.group(1)))) + return SharedPtrGetWorker.__call__(self, obj)[index] + +class SharedPtrUseCountWorker(gdb.xmethod.XMethodWorker): + "Implements std::shared_ptr::use_count()" + + def __init__(self, elem_type): + pass + + def get_arg_types(self): + return None + + def get_result_type(self, obj): + return gdb.lookup_type('long') + + def _supports(self, method_name): + return True + + def __call__(self, obj): + refcounts = obj['_M_refcount']['_M_pi'] + return refcounts['_M_use_count'] if refcounts else 0 + +class SharedPtrUniqueWorker(SharedPtrUseCountWorker): + "Implements std::shared_ptr::unique()" + + def __init__(self, elem_type): + SharedPtrUseCountWorker.__init__(self, elem_type) + + def get_result_type(self, obj): + return gdb.lookup_type('bool') + + def __call__(self, obj): + return SharedPtrUseCountWorker.__call__(self, obj) == 1 + +class SharedPtrMethodsMatcher(gdb.xmethod.XMethodMatcher): + def __init__(self): + gdb.xmethod.XMethodMatcher.__init__(self, + matcher_name_prefix + 'shared_ptr') + self._method_dict = { + 'get': LibStdCxxXMethod('get', SharedPtrGetWorker), + 'operator->': LibStdCxxXMethod('operator->', SharedPtrGetWorker), + 'operator*': LibStdCxxXMethod('operator*', SharedPtrDerefWorker), + 'operator[]': LibStdCxxXMethod('operator[]', SharedPtrSubscriptWorker), + 'use_count': LibStdCxxXMethod('use_count', SharedPtrUseCountWorker), + 'unique': LibStdCxxXMethod('unique', SharedPtrUniqueWorker), + } + self.methods = [self._method_dict[m] for m in self._method_dict] + + def match(self, class_type, method_name): + if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag): + return None + method = self._method_dict.get(method_name) + if method is None or not method.enabled: + return None + worker = method.worker_class(class_type.template_argument(0)) + if worker._supports(method_name): + return worker + return None + +def register_libstdcxx_xmethods(locus): + gdb.xmethod.register_xmethod_matcher(locus, ArrayMethodsMatcher()) + gdb.xmethod.register_xmethod_matcher(locus, ForwardListMethodsMatcher()) + gdb.xmethod.register_xmethod_matcher(locus, DequeMethodsMatcher()) + gdb.xmethod.register_xmethod_matcher(locus, ListMethodsMatcher()) + gdb.xmethod.register_xmethod_matcher(locus, VectorMethodsMatcher()) + gdb.xmethod.register_xmethod_matcher( + locus, AssociativeContainerMethodsMatcher('set')) + gdb.xmethod.register_xmethod_matcher( + locus, AssociativeContainerMethodsMatcher('map')) + gdb.xmethod.register_xmethod_matcher( + locus, AssociativeContainerMethodsMatcher('multiset')) + gdb.xmethod.register_xmethod_matcher( + locus, AssociativeContainerMethodsMatcher('multimap')) + gdb.xmethod.register_xmethod_matcher( + locus, AssociativeContainerMethodsMatcher('unordered_set')) + gdb.xmethod.register_xmethod_matcher( + locus, AssociativeContainerMethodsMatcher('unordered_map')) + gdb.xmethod.register_xmethod_matcher( + locus, AssociativeContainerMethodsMatcher('unordered_multiset')) + gdb.xmethod.register_xmethod_matcher( + locus, AssociativeContainerMethodsMatcher('unordered_multimap')) + gdb.xmethod.register_xmethod_matcher(locus, UniquePtrMethodsMatcher()) + gdb.xmethod.register_xmethod_matcher(locus, SharedPtrMethodsMatcher()) diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/about.json b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..954cca4f75069c26f761e70d07159f65b27fc6de --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/about.json @@ -0,0 +1,161 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://repo.anaconda.com/pkgs/r", + "https://repo.anaconda.com/pkgs/r" + ], + "conda_build_version": "25.1.2", + "conda_version": "25.1.1", + "description": "A library to support the Internationalised Domain Names in Applications\n(IDNA) protocol as specified in RFC 5891. This version of the protocol\nis often referred to as \"IDNA2008\".\n", + "dev_url": "https://github.com/kjd/idna", + "doc_url": "https://github.com/kjd/idna/blob/master/README.rst", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "recipe-maintainers": [ + "goanpeca", + "jschueller" + ] + }, + "home": "https://github.com/kjd/idna", + "identifiers": [], + "keywords": [], + "license": "BSD-3-Clause", + "license_family": "BSD", + "license_file": "LICENSE.md", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "ca-certificates 2025.9.9 h06a4308_0", + "ld_impl_linux-64 2.40 h12ee557_0", + "libstdcxx-ng 11.2.0 h1234567_1", + "nlohmann_json 3.11.2 h6a678d5_0", + "pybind11-abi 5 hd3eb1b0_0", + "tzdata 2025a h04d1e81_0", + "libgomp 11.2.0 h1234567_1", + "_openmp_mutex 5.1 1_gnu", + "libgcc-ng 11.2.0 h1234567_1", + "bzip2 1.0.8 h5eee18b_6", + "c-ares 1.19.1 h5eee18b_0", + "cpp-expected 1.1.0 hdb19cb5_0", + "expat 2.6.4 h6a678d5_0", + "fmt 9.1.0 hdb19cb5_1", + "icu 73.1 h6a678d5_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_1", + "libuuid 1.41.5 h5eee18b_0", + "lz4-c 1.9.4 h6a678d5_1", + "ncurses 6.4 h6a678d5_0", + "liblief 0.12.3 h6a678d5_0", + "reproc 14.2.4 h6a678d5_2", + "simdjson 3.10.1 hdb19cb5_0", + "xz 5.4.6 h5eee18b_1", + "yaml-cpp 0.8.0 h6a678d5_1", + "zlib 1.2.13 h5eee18b_1", + "libedit 3.1.20230828 h5eee18b_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libssh2 1.11.1 h251f7ec_0", + "libxml2 2.13.5 hfdd30dd_0", + "pcre2 10.42 hebb0a14_1", + "readline 8.2 h5eee18b_0", + "reproc-cpp 14.2.4 h6a678d5_2", + "spdlog 1.11.0 hdb19cb5_0", + "tk 8.6.14 h39e8969_0", + "zstd 1.5.6 hc292b87_0", + "krb5 1.20.1 h143b758_1", + "libarchive 3.7.7 hfab0078_0", + "libsolv 0.7.30 he621ea3_1", + "sqlite 3.45.3 h5eee18b_0", + "libcurl 8.11.1 hc9e6f67_0", + "python 3.12.9 h5148396_0", + "libmamba 2.0.5 haf1ee3a_1", + "menuinst 2.2.0 py312h06a4308_1", + "anaconda-anon-usage 0.5.0 py312hfc0e8ea_100", + "annotated-types 0.6.0 py312h06a4308_0", + "archspec 0.2.3 pyhd3eb1b0_0", + "boltons 24.1.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_9", + "charset-normalizer 3.3.2 pyhd3eb1b0_0", + "distro 1.9.0 py312h06a4308_0", + "frozendict 2.4.2 py312h06a4308_0", + "idna 3.7 py312h06a4308_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "libmambapy 2.0.5 py312hdb19cb5_1", + "mdurl 0.1.0 py312h06a4308_0", + "packaging 24.2 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.5.0 py312h06a4308_0", + "pycosat 0.6.6 py312h5eee18b_2", + "pycparser 2.21 pyhd3eb1b0_0", + "pygments 2.15.1 py312h06a4308_1", + "pysocks 1.7.1 py312h06a4308_0", + "ruamel.yaml.clib 0.2.8 py312h5eee18b_0", + "setuptools 75.8.0 py312h06a4308_0", + "tqdm 4.67.1 py312he106c6f_0", + "truststore 0.10.0 py312h06a4308_0", + "typing_extensions 4.12.2 py312h06a4308_0", + "wheel 0.45.1 py312h06a4308_0", + "cffi 1.17.1 py312h1fdaa30_1", + "jsonpatch 1.33 py312h06a4308_1", + "markdown-it-py 2.2.0 py312h06a4308_1", + "pip 25.0 py312h06a4308_0", + "ruamel.yaml 0.18.6 py312h5eee18b_0", + "typing-extensions 4.12.2 py312h06a4308_0", + "urllib3 2.3.0 py312h06a4308_0", + "cryptography 43.0.3 py312h7825ff9_1", + "pydantic-core 2.27.1 py312h4aa5aa6_0", + "requests 2.32.3 py312h06a4308_1", + "rich 13.9.4 py312h06a4308_0", + "zstandard 0.23.0 py312h2c38b39_1", + "conda-content-trust 0.2.0 py312h06a4308_1", + "conda-package-streaming 0.11.0 py312h06a4308_0", + "pydantic 2.10.3 py312h06a4308_0", + "conda-package-handling 2.4.0 py312h06a4308_0", + "conda 25.1.1 py312h06a4308_0", + "conda-anaconda-tos 0.1.2 py312h06a4308_0", + "conda-libmamba-solver 25.1.1 pyhd3eb1b0_0", + "libsodium 1.0.20 heac8642_0", + "openssl 3.0.18 hd6dcaed_0", + "patch 2.8 hb25bd0a_0", + "patchelf 0.17.2 h6a678d5_0", + "yaml 0.2.5 h7b6447c_0", + "argcomplete 3.6.2 py312h06a4308_0", + "attrs 24.3.0 py312h06a4308_0", + "certifi 2025.8.3 py312h06a4308_0", + "chardet 5.2.0 py312h06a4308_0", + "click 8.2.1 py312h06a4308_0", + "filelock 3.17.0 py312h06a4308_0", + "jmespath 1.0.1 py312h06a4308_0", + "markupsafe 3.0.2 py312h5eee18b_0", + "more-itertools 10.3.0 py312h06a4308_0", + "pkginfo 1.12.0 py312h06a4308_0", + "psutil 7.0.0 py312hee96239_0", + "py-lief 0.12.3 py312h6a678d5_0", + "python-libarchive-c 5.1 pyhd3eb1b0_0", + "pytz 2025.2 py312h06a4308_0", + "pyyaml 6.0.2 py312h5eee18b_0", + "rpds-py 0.22.3 py312h4aa5aa6_0", + "six 1.17.0 py312h06a4308_0", + "soupsieve 2.5 py312h06a4308_0", + "tomlkit 0.13.2 py312h06a4308_0", + "xmltodict 0.14.2 py312h06a4308_0", + "jinja2 3.1.6 py312h06a4308_0", + "python-dateutil 2.9.0post0 py312h06a4308_2", + "referencing 0.30.2 py312h06a4308_0", + "yq 3.4.3 py312h06a4308_0", + "beautifulsoup4 4.13.5 py312h06a4308_0", + "botocore 1.37.10 py312h06a4308_0", + "jsonschema-specifications 2023.7.1 py312h06a4308_0", + "pynacl 1.5.0 py312h2630517_2", + "jsonschema 4.25.0 py312h06a4308_0", + "s3transfer 0.11.2 py312h06a4308_0", + "boto3 1.37.10 py312h06a4308_0", + "conda-anaconda-telemetry 0.3.0 pyhd3eb1b0_1", + "conda-index 0.5.0 py312h06a4308_0", + "conda-build 25.1.2 py312h06a4308_0" + ], + "summary": "Internationalized Domain Names in Applications (IDNA).", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/files b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..65276062e929cbb4886606ea521c722b98c33c7a --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/files @@ -0,0 +1,24 @@ +lib/python3.13/site-packages/idna-3.11.dist-info/INSTALLER +lib/python3.13/site-packages/idna-3.11.dist-info/METADATA +lib/python3.13/site-packages/idna-3.11.dist-info/RECORD +lib/python3.13/site-packages/idna-3.11.dist-info/REQUESTED +lib/python3.13/site-packages/idna-3.11.dist-info/WHEEL +lib/python3.13/site-packages/idna-3.11.dist-info/direct_url.json +lib/python3.13/site-packages/idna-3.11.dist-info/licenses/LICENSE.md +lib/python3.13/site-packages/idna/__init__.py +lib/python3.13/site-packages/idna/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/idna/__pycache__/codec.cpython-313.pyc +lib/python3.13/site-packages/idna/__pycache__/compat.cpython-313.pyc +lib/python3.13/site-packages/idna/__pycache__/core.cpython-313.pyc +lib/python3.13/site-packages/idna/__pycache__/idnadata.cpython-313.pyc +lib/python3.13/site-packages/idna/__pycache__/intranges.cpython-313.pyc +lib/python3.13/site-packages/idna/__pycache__/package_data.cpython-313.pyc +lib/python3.13/site-packages/idna/__pycache__/uts46data.cpython-313.pyc +lib/python3.13/site-packages/idna/codec.py +lib/python3.13/site-packages/idna/compat.py +lib/python3.13/site-packages/idna/core.py +lib/python3.13/site-packages/idna/idnadata.py +lib/python3.13/site-packages/idna/intranges.py +lib/python3.13/site-packages/idna/package_data.py +lib/python3.13/site-packages/idna/py.typed +lib/python3.13/site-packages/idna/uts46data.py diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/git b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/hash_input.json b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..e1489271625fa4f5548417553f3725447d4df321 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/hash_input.json @@ -0,0 +1,4 @@ +{ + "channel_targets": "defaults", + "target_platform": "linux-64" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/index.json b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..1714451556e23b4cb8607c203f845ea8fc0a76ed --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/index.json @@ -0,0 +1,16 @@ +{ + "arch": "x86_64", + "build": "py313h06a4308_0", + "build_number": 0, + "depends": [ + "python >=3.13,<3.14.0a0", + "python_abi 3.13.* *_cp313" + ], + "license": "BSD-3-Clause", + "license_family": "BSD", + "name": "idna", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1761911998666, + "version": "3.11" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/licenses/LICENSE.md b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/licenses/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..256ba90cd91190a6c980bd44663dc51c201c14d3 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/licenses/LICENSE.md @@ -0,0 +1,31 @@ +BSD 3-Clause License + +Copyright (c) 2013-2025, Kim Davies and contributors. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/paths.json b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..b5972f0688e5643a73513b08e6251a87f22ec381 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/paths.json @@ -0,0 +1,149 @@ +{ + "paths": [ + { + "_path": "lib/python3.13/site-packages/idna-3.11.dist-info/INSTALLER", + "path_type": "hardlink", + "sha256": "d0edee15f91b406f3f99726e44eb990be6e34fd0345b52b910c568e0eef6a2a8", + "size_in_bytes": 5 + }, + { + "_path": "lib/python3.13/site-packages/idna-3.11.dist-info/METADATA", + "path_type": "hardlink", + "sha256": "7c2c12c30f52ba237c4c81e59454804944025b9e6102cf1dcca9ebf5168411b0", + "size_in_bytes": 8378 + }, + { + "_path": "lib/python3.13/site-packages/idna-3.11.dist-info/RECORD", + "path_type": "hardlink", + "sha256": "8219ab8356b9fc55638737a86419dc5b53d518b0149ed4940be82825a24e9c81", + "size_in_bytes": 1567 + }, + { + "_path": "lib/python3.13/site-packages/idna-3.11.dist-info/REQUESTED", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "lib/python3.13/site-packages/idna-3.11.dist-info/WHEEL", + "path_type": "hardlink", + "sha256": "1b68144734c4b66791f27add5d425f3620775585718a03d0f9b110ba3a4d88db", + "size_in_bytes": 82 + }, + { + "_path": "lib/python3.13/site-packages/idna-3.11.dist-info/direct_url.json", + "path_type": "hardlink", + "sha256": "c08852806518e1ba4880abc501cbecf4fd8a7735a9382412564196acc7c4993d", + "size_in_bytes": 94 + }, + { + "_path": "lib/python3.13/site-packages/idna-3.11.dist-info/licenses/LICENSE.md", + "path_type": "hardlink", + "sha256": "b7a336abf3b04e180ec065cdd16e705d079e1cc7a14f910aa6e9187f36b9cd87", + "size_in_bytes": 1541 + }, + { + "_path": "lib/python3.13/site-packages/idna/__init__.py", + "path_type": "hardlink", + "sha256": "30fa8d0cb65b5ea19a35d5f1005862a853ca1105e3bb68cd42109ecbafb97893", + "size_in_bytes": 868 + }, + { + "_path": "lib/python3.13/site-packages/idna/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "fee5f6d461df9d9132752f43175dab44912891726602ae5df0302ed64a81bab5", + "size_in_bytes": 840 + }, + { + "_path": "lib/python3.13/site-packages/idna/__pycache__/codec.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "637f700c332410b8e286947e775845798e3d78888b7219d42bae1c95bb486cc3", + "size_in_bytes": 5264 + }, + { + "_path": "lib/python3.13/site-packages/idna/__pycache__/compat.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "9a5021edc13acc3ae04eae259f2573aff6413c490d168682cd275ccd6efdbbe1", + "size_in_bytes": 850 + }, + { + "_path": "lib/python3.13/site-packages/idna/__pycache__/core.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "8847d63650184aa6148cdc4c5692adbe6096438cfbaca8670abffddeb1e6d3eb", + "size_in_bytes": 16908 + }, + { + "_path": "lib/python3.13/site-packages/idna/__pycache__/idnadata.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "ed67e520ef9ced1308e874913eaf32e779527159f2ffc43ed15b32fc7014580e", + "size_in_bytes": 100869 + }, + { + "_path": "lib/python3.13/site-packages/idna/__pycache__/intranges.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "3e211cd553328bc8ae97fb3824dc30b03c2963cea27c731bc22ae321b1aff22e", + "size_in_bytes": 2563 + }, + { + "_path": "lib/python3.13/site-packages/idna/__pycache__/package_data.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "94a75974383f16161884a79affabb241d66898ac6985c1672901af0527e7aeec", + "size_in_bytes": 171 + }, + { + "_path": "lib/python3.13/site-packages/idna/__pycache__/uts46data.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "20921d400f695d18cb64139dc1da51fa1eccc56a8c972e1e9f27eaf8e94c3683", + "size_in_bytes": 161967 + }, + { + "_path": "lib/python3.13/site-packages/idna/codec.py", + "path_type": "hardlink", + "sha256": "33648658dedcb3fe81df6426293c9337ac50199798420436c225f7fc347a9681", + "size_in_bytes": 3438 + }, + { + "_path": "lib/python3.13/site-packages/idna/compat.py", + "path_type": "hardlink", + "sha256": "4732f2e90402765f7bf3868585bd845fd10a1822638343f73e294675e5d7731f", + "size_in_bytes": 316 + }, + { + "_path": "lib/python3.13/site-packages/idna/core.py", + "path_type": "hardlink", + "sha256": "3f6ebf5d5c9cb8c4d9d51da634ad594445733399af4f375a6c15dfc99554d4b7", + "size_in_bytes": 13246 + }, + { + "_path": "lib/python3.13/site-packages/idna/idnadata.py", + "path_type": "hardlink", + "sha256": "486f2385a184e778a20fa078f69b76a704effd4bc295c89613e379e28476a785", + "size_in_bytes": 79623 + }, + { + "_path": "lib/python3.13/site-packages/idna/intranges.py", + "path_type": "hardlink", + "sha256": "6a652d91d8587101bc66bf82a0c33f91545a731922bc2d568313756fadca29d5", + "size_in_bytes": 1898 + }, + { + "_path": "lib/python3.13/site-packages/idna/package_data.py", + "path_type": "hardlink", + "sha256": "fc251abcec686e76f2346d852f21e837c4073f740cf56d6d2aec3b7aaf50c019", + "size_in_bytes": 21 + }, + { + "_path": "lib/python3.13/site-packages/idna/py.typed", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "lib/python3.13/site-packages/idna/uts46data.py", + "path_type": "hardlink", + "sha256": "1fd277e55903d05f4bf6628eaa378d19dd80f956ba1653e8cfa273e0aee1fa9b", + "size_in_bytes": 243725 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7039d94f8e1ae7aeefd1ffbeea5852abcc28241d --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/recipe/conda_build_config.yaml @@ -0,0 +1,28 @@ +c_compiler: gcc +channel_targets: defaults +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cxx_compiler: gxx +extend_keys: +- ignore_build_only_deps +- ignore_version +- extend_keys +- pin_run_as_build +fortran_compiler: gfortran +ignore_build_only_deps: +- python +- numpy +lua: '5' +numpy: '1.26' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +platform: linux-64 +python: '3.13' +r_base: '3.5' +target_platform: linux-64 diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/recipe/meta.yaml b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a1466e32eea4b0923fc0daa55ff0930e9742c62d --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/recipe/meta.yaml @@ -0,0 +1,91 @@ +# This file created by conda-build 25.1.2 +# meta.yaml template originally from: +# /home/task_176191175488988/idna-feedstock/recipe, last modified Fri Oct 31 11:59:32 2025 +# ------------------------------------------------ + +package: + name: idna + version: '3.11' +source: + sha256: 795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902 + url: https://pypi.org/packages/source/i/idna/idna-3.11.tar.gz +build: + number: '0' + script: /home/task_176191175488988/conda-bld/idna_1761911981595/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/bin/python + -m pip install . --no-deps --no-build-isolation --ignore-installed --no-cache-dir + -vv + string: py313h06a4308_0 +requirements: + host: + - _libgcc_mutex 0.1 main + - _openmp_mutex 5.1 1_gnu + - bzip2 1.0.8 h5eee18b_6 + - ca-certificates 2025.9.9 h06a4308_0 + - expat 2.7.1 h6a678d5_0 + - flit-core 3.12.0 py313hee27c6d_0 + - ld_impl_linux-64 2.44 h153f514_2 + - libffi 3.4.4 h6a678d5_1 + - libgcc-ng 11.2.0 h1234567_1 + - libgomp 11.2.0 h1234567_1 + - libmpdec 4.0.0 h5eee18b_0 + - libstdcxx-ng 11.2.0 h1234567_1 + - libuuid 1.41.5 h5eee18b_0 + - libxcb 1.17.0 h9b100fa_0 + - libzlib 1.3.1 hb25bd0a_0 + - ncurses 6.5 h7934f7d_0 + - openssl 3.0.18 hd6dcaed_0 + - pip 25.2 pyhc872135_1 + - pthread-stubs 0.3 h0ce48e5_1 + - python 3.13.9 h7e8bc2b_100_cp313 + - python_abi 3.13 1_cp313 + - readline 8.3 hc2a1206_0 + - setuptools 80.9.0 py313h06a4308_0 + - sqlite 3.50.2 hb25bd0a_1 + - tk 8.6.15 h54e0aa7_0 + - tzdata 2025b h04d1e81_0 + - wheel 0.45.1 py313h06a4308_0 + - xorg-libx11 1.8.12 h9b100fa_1 + - xorg-libxau 1.0.12 h9b100fa_0 + - xorg-libxdmcp 1.1.5 h9b100fa_0 + - xorg-xorgproto 2024.1 h5eee18b_1 + - xz 5.6.4 h5eee18b_1 + - zlib 1.3.1 hb25bd0a_0 + run: + - python >=3.13,<3.14.0a0 + - python_abi 3.13.* *_cp313 +test: + commands: + - pip check + - python -c "from importlib.metadata import version; assert(version('idna')=='3.11')" + - pytest -v tests + imports: + - idna + - idna.codec + - idna.compat + - idna.core + requires: + - pip + - pytest >=8.3.2 + source_files: + - tests +about: + description: 'A library to support the Internationalised Domain Names in Applications + + (IDNA) protocol as specified in RFC 5891. This version of the protocol + + is often referred to as "IDNA2008". + + ' + dev_url: https://github.com/kjd/idna + doc_url: https://github.com/kjd/idna/blob/master/README.rst + home: https://github.com/kjd/idna + license: BSD-3-Clause + license_family: BSD + license_file: LICENSE.md + summary: Internationalized Domain Names in Applications (IDNA). +extra: + copy_test_source_files: true + final: true + recipe-maintainers: + - goanpeca + - jschueller diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/recipe/meta.yaml.template b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/recipe/meta.yaml.template new file mode 100644 index 0000000000000000000000000000000000000000..a8c063d3b35f6113894289af71ee90cc04478ea4 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/recipe/meta.yaml.template @@ -0,0 +1,57 @@ +{% set name = "idna" %} +{% set version = "3.11" %} + +package: + name: {{ name }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz + sha256: 795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902 + +build: + number: 0 + skip: true # [py<38] + script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation --ignore-installed --no-cache-dir -vv + +requirements: + host: + - python + - pip + - flit-core >=3.11,<4 + run: + - python + +test: + source_files: + - tests + imports: + - idna + - idna.codec + - idna.compat + - idna.core + requires: + - pip + - pytest >=8.3.2 + commands: + - pip check + - python -c "from importlib.metadata import version; assert(version('{{ name }}')=='{{ version }}')" + - pytest -v tests + +about: + home: https://github.com/kjd/idna + license: BSD-3-Clause + license_family: BSD + license_file: LICENSE.md + summary: Internationalized Domain Names in Applications (IDNA). + description: | + A library to support the Internationalised Domain Names in Applications + (IDNA) protocol as specified in RFC 5891. This version of the protocol + is often referred to as "IDNA2008". + dev_url: https://github.com/kjd/idna + doc_url: https://github.com/kjd/idna/blob/master/README.rst + +extra: + recipe-maintainers: + - goanpeca + - jschueller diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/repodata_record.json b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..aeca1721ecb6f6e0d21b1fa7ee3063ecaf742742 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/repodata_record.json @@ -0,0 +1,23 @@ +{ + "arch": "x86_64", + "build": "py313h06a4308_0", + "build_number": 0, + "channel": "https://repo.anaconda.com/pkgs/main/linux-64/", + "constrains": [], + "depends": [ + "python >=3.13,<3.14.0a0", + "python_abi 3.13.* *_cp313" + ], + "fn": "idna-3.11-py313h06a4308_0.conda", + "license": "BSD-3-Clause", + "license_family": "BSD", + "md5": "c8b25d0fe19ba1a7319a0221e7615265", + "name": "idna", + "platform": "linux", + "sha256": "2cbd75d6f8a108b989d3f580ffc40fbee43349e272794d1227fb11fe31191196", + "size": 202882, + "subdir": "linux-64", + "timestamp": 1761911998000, + "url": "https://repo.anaconda.com/pkgs/main/linux-64/idna-3.11-py313h06a4308_0.conda", + "version": "3.11" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/run_test.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/run_test.py new file mode 100644 index 0000000000000000000000000000000000000000..bf36762d14361482931966e08ad550fdf9cbaf57 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/run_test.py @@ -0,0 +1,12 @@ +print("import: 'idna'") +import idna + +print("import: 'idna.codec'") +import idna.codec + +print("import: 'idna.compat'") +import idna.compat + +print("import: 'idna.core'") +import idna.core + diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/run_test.sh b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..513a7e9f3ab2d9738ff2fa94a83ebade42aafcc2 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/run_test.sh @@ -0,0 +1,10 @@ + + +set -ex + + + +pip check +python -c "from importlib.metadata import version; assert(version('idna')=='3.11')" +pytest -v tests +exit 0 diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/test_time_dependencies.json b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/test_time_dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..15aaf674a81719d09e77d7d63a1778ccb39e7280 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/test_time_dependencies.json @@ -0,0 +1 @@ +["pip", "pytest >=8.3.2"] \ No newline at end of file diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/__init__.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna.py new file mode 100644 index 0000000000000000000000000000000000000000..b59f5e50de896650005bea3a4ea8091702f7c66b --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna.py @@ -0,0 +1,293 @@ +#!/usr/bin/env python + +import unittest + +import idna + + +class IDNATests(unittest.TestCase): + def setUp(self): + self.tld_strings = [ + ["\u6d4b\u8bd5", b"xn--0zwm56d"], + ["\u092a\u0930\u0940\u0915\u094d\u0937\u093e", b"xn--11b5bs3a9aj6g"], + ["\ud55c\uad6d", b"xn--3e0b707e"], + ["\u09ad\u09be\u09b0\u09a4", b"xn--45brj9c"], + ["\u09ac\u09be\u0982\u09b2\u09be", b"xn--54b7fta0cc"], + [ + "\u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0435", + b"xn--80akhbyknj4f", + ], + ["\u0441\u0440\u0431", b"xn--90a3ac"], + ["\ud14c\uc2a4\ud2b8", b"xn--9t4b11yi5a"], + [ + "\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd", + b"xn--clchc0ea0b2g2a9gcd", + ], + ["\u05d8\u05e2\u05e1\u05d8", b"xn--deba0ad"], + ["\u4e2d\u56fd", b"xn--fiqs8s"], + ["\u4e2d\u570b", b"xn--fiqz9s"], + ["\u0c2d\u0c3e\u0c30\u0c24\u0c4d", b"xn--fpcrj9c3d"], + ["\u0dbd\u0d82\u0d9a\u0dcf", b"xn--fzc2c9e2c"], + ["\u6e2c\u8a66", b"xn--g6w251d"], + ["\u0aad\u0abe\u0ab0\u0aa4", b"xn--gecrj9c"], + ["\u092d\u093e\u0930\u0924", b"xn--h2brj9c"], + ["\u0622\u0632\u0645\u0627\u06cc\u0634\u06cc", b"xn--hgbk6aj7f53bba"], + ["\u0baa\u0bb0\u0bbf\u0b9f\u0bcd\u0b9a\u0bc8", b"xn--hlcj6aya9esc7a"], + ["\u0443\u043a\u0440", b"xn--j1amh"], + ["\u9999\u6e2f", b"xn--j6w193g"], + ["\u03b4\u03bf\u03ba\u03b9\u03bc\u03ae", b"xn--jxalpdlp"], + ["\u0625\u062e\u062a\u0628\u0627\u0631", b"xn--kgbechtv"], + ["\u53f0\u6e7e", b"xn--kprw13d"], + ["\u53f0\u7063", b"xn--kpry57d"], + ["\u0627\u0644\u062c\u0632\u0627\u0626\u0631", b"xn--lgbbat1ad8j"], + ["\u0639\u0645\u0627\u0646", b"xn--mgb9awbf"], + ["\u0627\u06cc\u0631\u0627\u0646", b"xn--mgba3a4f16a"], + ["\u0627\u0645\u0627\u0631\u0627\u062a", b"xn--mgbaam7a8h"], + ["\u067e\u0627\u06a9\u0633\u062a\u0627\u0646", b"xn--mgbai9azgqp6j"], + ["\u0627\u0644\u0627\u0631\u062f\u0646", b"xn--mgbayh7gpa"], + ["\u0628\u06be\u0627\u0631\u062a", b"xn--mgbbh1a71e"], + ["\u0627\u0644\u0645\u063a\u0631\u0628", b"xn--mgbc0a9azcg"], + ["\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629", b"xn--mgberp4a5d4ar"], + ["\u10d2\u10d4", b"xn--node"], + ["\u0e44\u0e17\u0e22", b"xn--o3cw4h"], + ["\u0633\u0648\u0631\u064a\u0629", b"xn--ogbpf8fl"], + ["\u0440\u0444", b"xn--p1ai"], + ["\u062a\u0648\u0646\u0633", b"xn--pgbs0dh"], + ["\u0a2d\u0a3e\u0a30\u0a24", b"xn--s9brj9c"], + ["\u0645\u0635\u0631", b"xn--wgbh1c"], + ["\u0642\u0637\u0631", b"xn--wgbl6a"], + ["\u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8", b"xn--xkc2al3hye2a"], + ["\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe", b"xn--xkc2dl3a5ee0h"], + ["\u65b0\u52a0\u5761", b"xn--yfro4i67o"], + ["\u0641\u0644\u0633\u0637\u064a\u0646", b"xn--ygbi2ammx"], + ["\u30c6\u30b9\u30c8", b"xn--zckzah"], + ["\u049b\u0430\u0437", b"xn--80ao21a"], + ["\u0645\u0644\u064a\u0633\u064a\u0627", b"xn--mgbx4cd0ab"], + ["\u043c\u043e\u043d", b"xn--l1acc"], + ["\u0633\u0648\u062f\u0627\u0646", b"xn--mgbpl2fh"], + ] + + def testIDNTLDALabels(self): + for ulabel, alabel in self.tld_strings: + self.assertEqual(alabel, idna.alabel(ulabel)) + + def testIDNTLDULabels(self): + for ulabel, alabel in self.tld_strings: + self.assertEqual(ulabel, idna.ulabel(alabel)) + + def test_valid_label_length(self): + self.assertTrue(idna.valid_label_length("a" * 63)) + self.assertFalse(idna.valid_label_length("a" * 64)) + self.assertRaises(idna.IDNAError, idna.encode, "a" * 64) + + def test_check_bidi(self): + la = "\u0061" + r = "\u05d0" + al = "\u0627" + an = "\u0660" + en = "\u0030" + es = "\u002d" + cs = "\u002c" + et = "\u0024" + on = "\u0021" + bn = "\u200c" + nsm = "\u0610" + ws = "\u0020" + + # RFC 5893 Rule 1 + self.assertTrue(idna.check_bidi(la)) + self.assertTrue(idna.check_bidi(r)) + self.assertTrue(idna.check_bidi(al)) + self.assertRaises(idna.IDNABidiError, idna.check_bidi, an) + + # RFC 5893 Rule 2 + self.assertTrue(idna.check_bidi(r + al)) + self.assertTrue(idna.check_bidi(r + al)) + self.assertTrue(idna.check_bidi(r + an)) + self.assertTrue(idna.check_bidi(r + en)) + self.assertTrue(idna.check_bidi(r + es + al)) + self.assertTrue(idna.check_bidi(r + cs + al)) + self.assertTrue(idna.check_bidi(r + et + al)) + self.assertTrue(idna.check_bidi(r + on + al)) + self.assertTrue(idna.check_bidi(r + bn + al)) + self.assertTrue(idna.check_bidi(r + nsm)) + self.assertRaises(idna.IDNABidiError, idna.check_bidi, r + la) + self.assertRaises(idna.IDNABidiError, idna.check_bidi, r + ws) + + # RFC 5893 Rule 3 + self.assertTrue(idna.check_bidi(r + al)) + self.assertTrue(idna.check_bidi(r + en)) + self.assertTrue(idna.check_bidi(r + an)) + self.assertTrue(idna.check_bidi(r + nsm)) + self.assertTrue(idna.check_bidi(r + nsm + nsm)) + self.assertRaises(idna.IDNABidiError, idna.check_bidi, r + on) + + # RFC 5893 Rule 4 + self.assertTrue(idna.check_bidi(r + en)) + self.assertTrue(idna.check_bidi(r + an)) + self.assertRaises(idna.IDNABidiError, idna.check_bidi, r + en + an) + self.assertRaises(idna.IDNABidiError, idna.check_bidi, r + an + en) + + # RFC 5893 Rule 5 + self.assertTrue(idna.check_bidi(la + en, check_ltr=True)) + self.assertTrue(idna.check_bidi(la + es + la, check_ltr=True)) + self.assertTrue(idna.check_bidi(la + cs + la, check_ltr=True)) + self.assertTrue(idna.check_bidi(la + et + la, check_ltr=True)) + self.assertTrue(idna.check_bidi(la + on + la, check_ltr=True)) + self.assertTrue(idna.check_bidi(la + bn + la, check_ltr=True)) + self.assertTrue(idna.check_bidi(la + nsm, check_ltr=True)) + + # RFC 5893 Rule 6 + self.assertTrue(idna.check_bidi(la + la, check_ltr=True)) + self.assertTrue(idna.check_bidi(la + en, check_ltr=True)) + self.assertTrue(idna.check_bidi(la + en + nsm, check_ltr=True)) + self.assertTrue(idna.check_bidi(la + en + nsm + nsm, check_ltr=True)) + self.assertRaises(idna.IDNABidiError, idna.check_bidi, la + cs, check_ltr=True) + + def test_check_initial_combiner(self): + m = "\u0300" + a = "\u0061" + + self.assertTrue(idna.check_initial_combiner(a)) + self.assertTrue(idna.check_initial_combiner(a + m)) + self.assertRaises(idna.IDNAError, idna.check_initial_combiner, m + a) + + def test_check_hyphen_ok(self): + self.assertTrue(idna.check_hyphen_ok("abc")) + self.assertTrue(idna.check_hyphen_ok("a--b")) + self.assertRaises(idna.IDNAError, idna.check_hyphen_ok, "aa--") + self.assertRaises(idna.IDNAError, idna.check_hyphen_ok, "a-") + self.assertRaises(idna.IDNAError, idna.check_hyphen_ok, "-a") + + def test_valid_contextj(self): + zwnj = "\u200c" + zwj = "\u200d" + virama = "\u094d" + latin = "\u0061" + + # RFC 5892 Appendix A.1 (Zero Width Non-Joiner) + self.assertFalse(idna.valid_contextj(zwnj, 0)) + self.assertFalse(idna.valid_contextj(latin + zwnj, 1)) # No preceding Virama + self.assertTrue(idna.valid_contextj(virama + zwnj, 1)) # Preceding Virama + + # RFC 5892 Appendix A.2 (Zero Width Joiner) + self.assertFalse(idna.valid_contextj(zwj, 0)) + self.assertFalse(idna.valid_contextj(latin + zwj, 1)) # No preceding Virama + self.assertTrue(idna.valid_contextj(virama + zwj, 1)) # Preceding Virama + + def test_valid_contexto(self): + latin = "\u0061" + latin_l = "\u006c" + greek = "\u03b1" + hebrew = "\u05d0" + katakana = "\u30a1" + hiragana = "\u3041" + han = "\u6f22" + arabic_digit = "\u0660" + ext_arabic_digit = "\u06f0" + + # RFC 5892 Rule A.3 (Middle Dot) + latin_middle_dot = "\u00b7" + self.assertTrue(idna.valid_contexto(latin_l + latin_middle_dot + latin_l, 1)) + self.assertFalse(idna.valid_contexto(latin_middle_dot + latin_l, 1)) + self.assertFalse(idna.valid_contexto(latin_l + latin_middle_dot, 0)) + self.assertFalse(idna.valid_contexto(latin_middle_dot, 0)) + self.assertFalse(idna.valid_contexto(latin_l + latin_middle_dot + latin, 1)) + + # RFC 5892 Rule A.4 (Greek Lower Numeral Sign) + glns = "\u0375" + self.assertTrue(idna.valid_contexto(glns + greek, 0)) + self.assertFalse(idna.valid_contexto(glns + latin, 0)) + self.assertFalse(idna.valid_contexto(glns, 0)) + self.assertFalse(idna.valid_contexto(greek + glns, 1)) + + # RFC 5892 Rule A.5 (Hebrew Punctuation Geresh) + geresh = "\u05f3" + self.assertTrue(idna.valid_contexto(hebrew + geresh, 1)) + self.assertFalse(idna.valid_contexto(latin + geresh, 1)) + + # RFC 5892 Rule A.6 (Hebrew Punctuation Gershayim) + gershayim = "\u05f4" + self.assertTrue(idna.valid_contexto(hebrew + gershayim, 1)) + self.assertFalse(idna.valid_contexto(latin + gershayim, 1)) + + # RFC 5892 Rule A.7 (Katakana Middle Dot) + ja_middle_dot = "\u30fb" + self.assertTrue(idna.valid_contexto(katakana + ja_middle_dot + katakana, 1)) + self.assertTrue(idna.valid_contexto(hiragana + ja_middle_dot + hiragana, 1)) + self.assertTrue(idna.valid_contexto(han + ja_middle_dot + han, 1)) + self.assertTrue(idna.valid_contexto(han + ja_middle_dot + latin, 1)) + self.assertTrue(idna.valid_contexto("\u6f22\u30fb\u5b57", 1)) + self.assertFalse(idna.valid_contexto("\u0061\u30fb\u0061", 1)) + + # RFC 5892 Rule A.8 (Arabic-Indic Digits) + self.assertTrue(idna.valid_contexto(arabic_digit + arabic_digit, 0)) + self.assertFalse(idna.valid_contexto(arabic_digit + ext_arabic_digit, 0)) + + # RFC 5892 Rule A.9 (Extended Arabic-Indic Digits) + self.assertTrue(idna.valid_contexto(ext_arabic_digit + ext_arabic_digit, 0)) + self.assertFalse(idna.valid_contexto(ext_arabic_digit + arabic_digit, 0)) + + def test_encode(self, encode=None, skip_bytes=False): + if encode is None: + encode = idna.encode + + self.assertEqual(encode("xn--zckzah.xn--zckzah"), b"xn--zckzah.xn--zckzah") + self.assertEqual(encode("\u30c6\u30b9\u30c8.xn--zckzah"), b"xn--zckzah.xn--zckzah") + self.assertEqual(encode("\u30c6\u30b9\u30c8.\u30c6\u30b9\u30c8"), b"xn--zckzah.xn--zckzah") + self.assertEqual(encode("abc.abc"), b"abc.abc") + self.assertEqual(encode("xn--zckzah.abc"), b"xn--zckzah.abc") + self.assertEqual(encode("\u30c6\u30b9\u30c8.abc"), b"xn--zckzah.abc") + self.assertEqual( + encode("\u0521\u0525\u0523-\u0523\u0523-----\u0521\u0523\u0523\u0523.aa"), + b"xn---------90gglbagaar.aa", + ) + if encode is idna.encode: + self.assertRaises( + idna.IDNAError, + encode, + "\u0521\u0524\u0523-\u0523\u0523-----\u0521\u0523\u0523\u0523.aa", + uts46=False, + ) + self.assertEqual(encode("a" * 63), b"a" * 63) + self.assertRaises(idna.IDNAError, encode, "a" * 64) + self.assertRaises(idna.core.InvalidCodepoint, encode, "*") + if not skip_bytes: + self.assertRaises(idna.IDNAError, encode, b"\x0a\x33\x81") + + def test_decode(self, decode=None, skip_str=False): + if decode is None: + decode = idna.decode + self.assertEqual(decode(b"xn--zckzah.xn--zckzah"), "\u30c6\u30b9\u30c8.\u30c6\u30b9\u30c8") + self.assertEqual( + decode(b"xn--d1acufc.xn--80akhbyknj4f"), + "\u0434\u043e\u043c\u0435\u043d.\u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0435", + ) + if not skip_str: + self.assertEqual( + decode("\u30c6\u30b9\u30c8.xn--zckzah"), + "\u30c6\u30b9\u30c8.\u30c6\u30b9\u30c8", + ) + self.assertEqual( + decode("\u30c6\u30b9\u30c8.\u30c6\u30b9\u30c8"), + "\u30c6\u30b9\u30c8.\u30c6\u30b9\u30c8", + ) + self.assertEqual(decode("abc.abc"), "abc.abc") + self.assertEqual( + decode(b"xn---------90gglbagaar.aa"), + "\u0521\u0525\u0523-\u0523\u0523-----\u0521\u0523\u0523\u0523.aa", + ) + self.assertRaises(idna.IDNAError, decode, b"XN---------90GGLBAGAAC.AA") + self.assertRaises(idna.IDNAError, decode, b"xn---------90gglbagaac.aa") + self.assertRaises(idna.IDNAError, decode, b"xn--") + self.assertRaises(idna.IDNAError, decode, b"\x8d\xd2") + self.assertRaises( + idna.IDNAError, + decode, + b"A.A.0.a.a.A.0.a.A.A.0.a.A.0A.2.a.A.A.0.a.A.0.A.a.A0.a.a.A.0.a.fB.A.A.a.A.A.B.A.A.a.A.A.B.A.A.a.A.A.0.a.A.a.a.A.A.0.a.A.0.A.a.A0.a.a.A.0.a.fB.A.A.a.A.A.B.0A.A.a.A.A.B.A.A.a.A.A.a.A.A.B.A.A.a.A.0.a.B.A.A.a.A.B.A.a.A.A.5.a.A.0.a.Ba.A.B.A.A.a.A.0.a.Xn--B.A.A.A.a", + ) + self.assertRaises(idna.IDNAError, decode, b"xn--ukba655qaaaa14431eeaaba.c") + + +if __name__ == "__main__": + unittest.main() diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna_codec.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna_codec.py new file mode 100644 index 0000000000000000000000000000000000000000..5b8b9f336a79b0b9e8dd222512a7b9377aa214c1 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna_codec.py @@ -0,0 +1,126 @@ +#!/usr/bin/env python + +import codecs +import io +import unittest + +import idna.codec + +CODEC_NAME = "idna2008" + + +class IDNACodecTests(unittest.TestCase): + def setUp(self): + from . import test_idna + + self.idnatests = test_idna.IDNATests() + self.idnatests.setUp() + + def testCodec(self): + self.assertIs(codecs.lookup(CODEC_NAME).incrementalencoder, idna.codec.IncrementalEncoder) + + def testDirectDecode(self): + self.idnatests.test_decode(decode=lambda obj: codecs.decode(obj, CODEC_NAME)) + + def testIndirectDecode(self): + self.idnatests.test_decode(decode=lambda obj: obj.decode(CODEC_NAME), skip_str=True) + + def testDirectEncode(self): + self.idnatests.test_encode(encode=lambda obj: codecs.encode(obj, CODEC_NAME)) + + def testIndirectEncode(self): + self.idnatests.test_encode(encode=lambda obj: obj.encode(CODEC_NAME), skip_bytes=True) + + def testStreamReader(self): + def decode(obj): + if isinstance(obj, str): + obj = bytes(obj, "ascii") + buffer = io.BytesIO(obj) + stream = codecs.getreader(CODEC_NAME)(buffer) + return stream.read() + + return self.idnatests.test_decode(decode=decode, skip_str=True) + + def testStreamWriter(self): + def encode(obj): + buffer = io.BytesIO() + stream = codecs.getwriter(CODEC_NAME)(buffer) + stream.write(obj) + stream.flush() + return buffer.getvalue() + + return self.idnatests.test_encode(encode=encode) + + def testIncrementalDecoder(self): + # Tests derived from Python standard library test/test_codecs.py + + incremental_tests = ( + ("python.org", b"python.org"), + ("python.org.", b"python.org."), + ("pyth\xf6n.org", b"xn--pythn-mua.org"), + ("pyth\xf6n.org.", b"xn--pythn-mua.org."), + ) + + for decoded, encoded in incremental_tests: + self.assertEqual( + "".join(codecs.iterdecode((bytes([c]) for c in encoded), CODEC_NAME)), + decoded, + ) + + decoder = codecs.getincrementaldecoder(CODEC_NAME)() + self.assertEqual( + decoder.decode( + b"xn--xam", + ), + "", + ) + self.assertEqual( + decoder.decode( + b"ple-9ta.o", + ), + "\xe4xample.", + ) + self.assertEqual(decoder.decode(b"rg"), "") + self.assertEqual(decoder.decode(b"", True), "org") + + decoder.reset() + self.assertEqual( + decoder.decode( + b"xn--xam", + ), + "", + ) + self.assertEqual( + decoder.decode( + b"ple-9ta.o", + ), + "\xe4xample.", + ) + self.assertEqual(decoder.decode(b"rg."), "org.") + self.assertEqual(decoder.decode(b"", True), "") + + def testIncrementalEncoder(self): + # Tests derived from Python standard library test/test_codecs.py + + incremental_tests = ( + ("python.org", b"python.org"), + ("python.org.", b"python.org."), + ("pyth\xf6n.org", b"xn--pythn-mua.org"), + ("pyth\xf6n.org.", b"xn--pythn-mua.org."), + ) + for decoded, encoded in incremental_tests: + self.assertEqual(b"".join(codecs.iterencode(decoded, CODEC_NAME)), encoded) + + encoder = codecs.getincrementalencoder(CODEC_NAME)() + self.assertEqual(encoder.encode("\xe4x"), b"") + self.assertEqual(encoder.encode("ample.org"), b"xn--xample-9ta.") + self.assertEqual(encoder.encode("", True), b"org") + + encoder.reset() + self.assertEqual(encoder.encode("\xe4x"), b"") + self.assertEqual(encoder.encode("ample.org."), b"xn--xample-9ta.org.") + self.assertEqual(encoder.encode("", True), b"") + + +if __name__ == "__main__": + unittest.main() diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna_compat.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna_compat.py new file mode 100644 index 0000000000000000000000000000000000000000..cc71c78bd1e639dc633c170593d5951c4e45a378 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna_compat.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +import unittest + +import idna.compat + + +class IDNACompatTests(unittest.TestCase): + def testToASCII(self): + self.assertEqual( + idna.compat.ToASCII("\u30c6\u30b9\u30c8.xn--zckzah"), + b"xn--zckzah.xn--zckzah", + ) + + def testToUnicode(self): + self.assertEqual( + idna.compat.ToUnicode(b"xn--zckzah.xn--zckzah"), + "\u30c6\u30b9\u30c8.\u30c6\u30b9\u30c8", + ) + + def test_nameprep(self): + self.assertRaises(NotImplementedError, idna.compat.nameprep, "a") + + +if __name__ == "__main__": + unittest.main() diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna_uts46.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna_uts46.py new file mode 100644 index 0000000000000000000000000000000000000000..2dfeae630ef7b7ee7c7c2a59f1cfb2bf39c1db08 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_idna_uts46.py @@ -0,0 +1,25353 @@ +# This file is automatically generated by tools/idna-data + +import unittest + +import idna + + +class UTS46Tests(unittest.TestCase): + + def test_uts46_106(self): + self.assertEqual(idna.decode('fass.de', uts46=True, strict=True), 'fass.de') + self.assertEqual(idna.encode('fass.de', uts46=True, strict=True), b'fass.de') + + def test_uts46_107(self): + self.assertEqual(idna.decode('faß.de', uts46=True, strict=True), 'faß.de') + self.assertEqual(idna.encode('faß.de', uts46=True, strict=True), b'xn--fa-hia.de') + + def test_uts46_108(self): + self.assertEqual(idna.decode('Faß.de', uts46=True, strict=True), 'faß.de') + self.assertEqual(idna.encode('Faß.de', uts46=True, strict=True), b'xn--fa-hia.de') + + def test_uts46_109(self): + self.assertEqual(idna.decode('xn--fa-hia.de', uts46=True, strict=True), 'faß.de') + self.assertEqual(idna.encode('xn--fa-hia.de', uts46=True, strict=True), b'xn--fa-hia.de') + + def test_uts46_113(self): + self.assertRaises(idna.IDNAError, idna.decode, 'àא', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'àא', strict=True) + + def test_uts46_114(self): + self.assertRaises(idna.IDNAError, idna.decode, 'àא', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'àא', strict=True) + + def test_uts46_115(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Àא', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Àא', strict=True) + + def test_uts46_116(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Àא', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Àא', strict=True) + + def test_uts46_117(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ca24w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ca24w', strict=True) + + def test_uts46_123(self): + self.assertEqual(idna.decode('à.א̈', uts46=True, strict=True), 'à.א̈') + self.assertEqual(idna.encode('à.א̈', uts46=True, strict=True), b'xn--0ca.xn--ssa73l') + + def test_uts46_124(self): + self.assertEqual(idna.decode('à.א̈', uts46=True, strict=True), 'à.א̈') + self.assertEqual(idna.encode('à.א̈', uts46=True, strict=True), b'xn--0ca.xn--ssa73l') + + def test_uts46_125(self): + self.assertEqual(idna.decode('À.א̈', uts46=True, strict=True), 'à.א̈') + self.assertEqual(idna.encode('À.א̈', uts46=True, strict=True), b'xn--0ca.xn--ssa73l') + + def test_uts46_126(self): + self.assertEqual(idna.decode('À.א̈', uts46=True, strict=True), 'à.א̈') + self.assertEqual(idna.encode('À.א̈', uts46=True, strict=True), b'xn--0ca.xn--ssa73l') + + def test_uts46_127(self): + self.assertEqual(idna.decode('xn--0ca.xn--ssa73l', uts46=True, strict=True), 'à.א̈') + self.assertEqual(idna.encode('xn--0ca.xn--ssa73l', uts46=True, strict=True), b'xn--0ca.xn--ssa73l') + + def test_uts46_128(self): + self.assertRaises(idna.IDNAError, idna.decode, 'à.א0٠א', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'à.א0٠א', strict=True) + + def test_uts46_129(self): + self.assertRaises(idna.IDNAError, idna.decode, 'à.א0٠א', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'à.א0٠א', strict=True) + + def test_uts46_130(self): + self.assertRaises(idna.IDNAError, idna.decode, 'À.א0٠א', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'À.א0٠א', strict=True) + + def test_uts46_131(self): + self.assertRaises(idna.IDNAError, idna.decode, 'À.א0٠א', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'À.א0٠א', strict=True) + + def test_uts46_132(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ca.xn--0-zhcb98c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ca.xn--0-zhcb98c', strict=True) + + def test_uts46_133(self): + self.assertRaises(idna.IDNAError, idna.decode, '̈.א', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̈.א', strict=True) + + def test_uts46_134(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ssa.xn--4db', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ssa.xn--4db', strict=True) + + def test_uts46_135(self): + self.assertRaises(idna.IDNAError, idna.decode, 'à.א0٠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'à.א0٠', strict=True) + + def test_uts46_136(self): + self.assertRaises(idna.IDNAError, idna.decode, 'à.א0٠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'à.א0٠', strict=True) + + def test_uts46_137(self): + self.assertRaises(idna.IDNAError, idna.decode, 'À.א0٠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'À.א0٠', strict=True) + + def test_uts46_138(self): + self.assertRaises(idna.IDNAError, idna.decode, 'À.א0٠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'À.א0٠', strict=True) + + def test_uts46_139(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ca.xn--0-zhc74b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ca.xn--0-zhc74b', strict=True) + + def test_uts46_145(self): + self.assertEqual(idna.decode('à̈.א', uts46=True, strict=True), 'à̈.א') + self.assertEqual(idna.encode('à̈.א', uts46=True, strict=True), b'xn--0ca81i.xn--4db') + + def test_uts46_146(self): + self.assertEqual(idna.decode('à̈.א', uts46=True, strict=True), 'à̈.א') + self.assertEqual(idna.encode('à̈.א', uts46=True, strict=True), b'xn--0ca81i.xn--4db') + + def test_uts46_147(self): + self.assertEqual(idna.decode('À̈.א', uts46=True, strict=True), 'à̈.א') + self.assertEqual(idna.encode('À̈.א', uts46=True, strict=True), b'xn--0ca81i.xn--4db') + + def test_uts46_148(self): + self.assertEqual(idna.decode('À̈.א', uts46=True, strict=True), 'à̈.א') + self.assertEqual(idna.encode('À̈.א', uts46=True, strict=True), b'xn--0ca81i.xn--4db') + + def test_uts46_149(self): + self.assertEqual(idna.decode('xn--0ca81i.xn--4db', uts46=True, strict=True), 'à̈.א') + self.assertEqual(idna.encode('xn--0ca81i.xn--4db', uts46=True, strict=True), b'xn--0ca81i.xn--4db') + + def test_uts46_153(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a\u200cb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a\u200cb', strict=True) + + def test_uts46_154(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A\u200cB', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A\u200cB', strict=True) + + def test_uts46_155(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A\u200cb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A\u200cb', strict=True) + + def test_uts46_156(self): + self.assertEqual(idna.decode('ab', uts46=True, strict=True), 'ab') + self.assertEqual(idna.encode('ab', uts46=True, strict=True), b'ab') + + def test_uts46_157(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ab-j1t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ab-j1t', strict=True) + + def test_uts46_158(self): + self.assertEqual(idna.decode('a्\u200cb', uts46=True, strict=True), 'a्\u200cb') + self.assertEqual(idna.encode('a्\u200cb', uts46=True, strict=True), b'xn--ab-fsf604u') + + def test_uts46_159(self): + self.assertEqual(idna.decode('A्\u200cB', uts46=True, strict=True), 'a्\u200cb') + self.assertEqual(idna.encode('A्\u200cB', uts46=True, strict=True), b'xn--ab-fsf604u') + + def test_uts46_160(self): + self.assertEqual(idna.decode('A्\u200cb', uts46=True, strict=True), 'a्\u200cb') + self.assertEqual(idna.encode('A्\u200cb', uts46=True, strict=True), b'xn--ab-fsf604u') + + def test_uts46_161(self): + self.assertEqual(idna.decode('xn--ab-fsf', uts46=True, strict=True), 'a्b') + self.assertEqual(idna.encode('xn--ab-fsf', uts46=True, strict=True), b'xn--ab-fsf') + + def test_uts46_162(self): + self.assertEqual(idna.decode('a्b', uts46=True, strict=True), 'a्b') + self.assertEqual(idna.encode('a्b', uts46=True, strict=True), b'xn--ab-fsf') + + def test_uts46_163(self): + self.assertEqual(idna.decode('A्B', uts46=True, strict=True), 'a्b') + self.assertEqual(idna.encode('A्B', uts46=True, strict=True), b'xn--ab-fsf') + + def test_uts46_164(self): + self.assertEqual(idna.decode('A्b', uts46=True, strict=True), 'a्b') + self.assertEqual(idna.encode('A्b', uts46=True, strict=True), b'xn--ab-fsf') + + def test_uts46_165(self): + self.assertEqual(idna.decode('xn--ab-fsf604u', uts46=True, strict=True), 'a्\u200cb') + self.assertEqual(idna.encode('xn--ab-fsf604u', uts46=True, strict=True), b'xn--ab-fsf604u') + + def test_uts46_166(self): + self.assertRaises(idna.IDNAError, idna.decode, '̈\u200c̈بb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̈\u200c̈بb', strict=True) + + def test_uts46_167(self): + self.assertRaises(idna.IDNAError, idna.decode, '̈\u200c̈بB', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̈\u200c̈بB', strict=True) + + def test_uts46_168(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b-bcba413a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b-bcba413a', strict=True) + + def test_uts46_169(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b-bcba413a2w8b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b-bcba413a2w8b', strict=True) + + def test_uts46_170(self): + self.assertRaises(idna.IDNAError, idna.decode, 'aب̈\u200c̈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'aب̈\u200c̈', strict=True) + + def test_uts46_171(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Aب̈\u200c̈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Aب̈\u200c̈', strict=True) + + def test_uts46_172(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a-ccba213a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a-ccba213a', strict=True) + + def test_uts46_173(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a-ccba213a5w8b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a-ccba213a5w8b', strict=True) + + def test_uts46_174(self): + self.assertRaises(idna.IDNAError, idna.decode, 'aب̈\u200c̈بb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'aب̈\u200c̈بb', strict=True) + + def test_uts46_175(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Aب̈\u200c̈بB', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Aب̈\u200c̈بB', strict=True) + + def test_uts46_176(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Aب̈\u200c̈بb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Aب̈\u200c̈بb', strict=True) + + def test_uts46_177(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ab-uuba211bca', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ab-uuba211bca', strict=True) + + def test_uts46_178(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ab-uuba211bca8057b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ab-uuba211bca8057b', strict=True) + + def test_uts46_179(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a\u200db', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a\u200db', strict=True) + + def test_uts46_180(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A\u200dB', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A\u200dB', strict=True) + + def test_uts46_181(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A\u200db', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A\u200db', strict=True) + + def test_uts46_182(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ab-m1t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ab-m1t', strict=True) + + def test_uts46_183(self): + self.assertEqual(idna.decode('a्\u200db', uts46=True, strict=True), 'a्\u200db') + self.assertEqual(idna.encode('a्\u200db', uts46=True, strict=True), b'xn--ab-fsf014u') + + def test_uts46_184(self): + self.assertEqual(idna.decode('A्\u200dB', uts46=True, strict=True), 'a्\u200db') + self.assertEqual(idna.encode('A्\u200dB', uts46=True, strict=True), b'xn--ab-fsf014u') + + def test_uts46_185(self): + self.assertEqual(idna.decode('A्\u200db', uts46=True, strict=True), 'a्\u200db') + self.assertEqual(idna.encode('A्\u200db', uts46=True, strict=True), b'xn--ab-fsf014u') + + def test_uts46_186(self): + self.assertEqual(idna.decode('xn--ab-fsf014u', uts46=True, strict=True), 'a्\u200db') + self.assertEqual(idna.encode('xn--ab-fsf014u', uts46=True, strict=True), b'xn--ab-fsf014u') + + def test_uts46_187(self): + self.assertRaises(idna.IDNAError, idna.decode, '̈\u200d̈بb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̈\u200d̈بb', strict=True) + + def test_uts46_188(self): + self.assertRaises(idna.IDNAError, idna.decode, '̈\u200d̈بB', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̈\u200d̈بB', strict=True) + + def test_uts46_189(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b-bcba413a7w8b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b-bcba413a7w8b', strict=True) + + def test_uts46_190(self): + self.assertRaises(idna.IDNAError, idna.decode, 'aب̈\u200d̈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'aب̈\u200d̈', strict=True) + + def test_uts46_191(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Aب̈\u200d̈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Aب̈\u200d̈', strict=True) + + def test_uts46_192(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a-ccba213abx8b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a-ccba213abx8b', strict=True) + + def test_uts46_193(self): + self.assertRaises(idna.IDNAError, idna.decode, 'aب̈\u200d̈بb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'aب̈\u200d̈بb', strict=True) + + def test_uts46_194(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Aب̈\u200d̈بB', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Aب̈\u200d̈بB', strict=True) + + def test_uts46_195(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Aب̈\u200d̈بb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Aب̈\u200d̈بb', strict=True) + + def test_uts46_196(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ab-uuba211bca5157b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ab-uuba211bca5157b', strict=True) + + def test_uts46_200(self): + self.assertRaises(idna.IDNAError, idna.decode, '¡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '¡', strict=True) + + def test_uts46_201(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7a', strict=True) + + def test_uts46_202(self): + self.assertRaises(idna.IDNAError, idna.decode, '᧚', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᧚', strict=True) + + def test_uts46_203(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pkf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pkf', strict=True) + + def test_uts46_204(self): + self.assertRaises(idna.IDNAError, idna.decode, '""', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '""', strict=True) + + def test_uts46_205(self): + self.assertRaises(idna.IDNAError, idna.decode, '。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。', strict=True) + + def test_uts46_206(self): + self.assertRaises(idna.IDNAError, idna.decode, '.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.', strict=True) + + def test_uts46_207(self): + self.assertEqual(idna.decode('ꭠ', uts46=True, strict=True), 'ꭠ') + self.assertEqual(idna.encode('ꭠ', uts46=True, strict=True), b'xn--3y9a') + + def test_uts46_208(self): + self.assertEqual(idna.decode('xn--3y9a', uts46=True, strict=True), 'ꭠ') + self.assertEqual(idna.encode('xn--3y9a', uts46=True, strict=True), b'xn--3y9a') + + def test_uts46_209(self): + self.assertEqual(idna.decode('1234567890ä1234567890123456789012345678901234567890123456', uts46=True, strict=True), '1234567890ä1234567890123456789012345678901234567890123456') + self.assertRaises(idna.IDNAError, idna.encode, '1234567890ä1234567890123456789012345678901234567890123456', strict=True) + + def test_uts46_210(self): + self.assertEqual(idna.decode('1234567890ä1234567890123456789012345678901234567890123456', uts46=True, strict=True), '1234567890ä1234567890123456789012345678901234567890123456') + self.assertRaises(idna.IDNAError, idna.encode, '1234567890ä1234567890123456789012345678901234567890123456', strict=True) + + def test_uts46_211(self): + self.assertEqual(idna.decode('1234567890Ä1234567890123456789012345678901234567890123456', uts46=True, strict=True), '1234567890ä1234567890123456789012345678901234567890123456') + self.assertRaises(idna.IDNAError, idna.encode, '1234567890Ä1234567890123456789012345678901234567890123456', strict=True) + + def test_uts46_212(self): + self.assertEqual(idna.decode('1234567890Ä1234567890123456789012345678901234567890123456', uts46=True, strict=True), '1234567890ä1234567890123456789012345678901234567890123456') + self.assertRaises(idna.IDNAError, idna.encode, '1234567890Ä1234567890123456789012345678901234567890123456', strict=True) + + def test_uts46_213(self): + self.assertEqual(idna.decode('xn--12345678901234567890123456789012345678901234567890123456-fxe', uts46=True, strict=True), '1234567890ä1234567890123456789012345678901234567890123456') + self.assertRaises(idna.IDNAError, idna.encode, 'xn--12345678901234567890123456789012345678901234567890123456-fxe', strict=True) + + def test_uts46_214(self): + self.assertEqual(idna.decode('www.eXample.cOm', uts46=True, strict=True), 'www.example.com') + self.assertEqual(idna.encode('www.eXample.cOm', uts46=True, strict=True), b'www.example.com') + + def test_uts46_215(self): + self.assertEqual(idna.decode('Bücher.de', uts46=True, strict=True), 'bücher.de') + self.assertEqual(idna.encode('Bücher.de', uts46=True, strict=True), b'xn--bcher-kva.de') + + def test_uts46_216(self): + self.assertEqual(idna.decode('Bücher.de', uts46=True, strict=True), 'bücher.de') + self.assertEqual(idna.encode('Bücher.de', uts46=True, strict=True), b'xn--bcher-kva.de') + + def test_uts46_217(self): + self.assertEqual(idna.decode('bücher.de', uts46=True, strict=True), 'bücher.de') + self.assertEqual(idna.encode('bücher.de', uts46=True, strict=True), b'xn--bcher-kva.de') + + def test_uts46_218(self): + self.assertEqual(idna.decode('bücher.de', uts46=True, strict=True), 'bücher.de') + self.assertEqual(idna.encode('bücher.de', uts46=True, strict=True), b'xn--bcher-kva.de') + + def test_uts46_219(self): + self.assertEqual(idna.decode('BÜCHER.DE', uts46=True, strict=True), 'bücher.de') + self.assertEqual(idna.encode('BÜCHER.DE', uts46=True, strict=True), b'xn--bcher-kva.de') + + def test_uts46_220(self): + self.assertEqual(idna.decode('BÜCHER.DE', uts46=True, strict=True), 'bücher.de') + self.assertEqual(idna.encode('BÜCHER.DE', uts46=True, strict=True), b'xn--bcher-kva.de') + + def test_uts46_221(self): + self.assertEqual(idna.decode('xn--bcher-kva.de', uts46=True, strict=True), 'bücher.de') + self.assertEqual(idna.encode('xn--bcher-kva.de', uts46=True, strict=True), b'xn--bcher-kva.de') + + def test_uts46_222(self): + self.assertEqual(idna.decode('ÖBB', uts46=True, strict=True), 'öbb') + self.assertEqual(idna.encode('ÖBB', uts46=True, strict=True), b'xn--bb-eka') + + def test_uts46_223(self): + self.assertEqual(idna.decode('ÖBB', uts46=True, strict=True), 'öbb') + self.assertEqual(idna.encode('ÖBB', uts46=True, strict=True), b'xn--bb-eka') + + def test_uts46_224(self): + self.assertEqual(idna.decode('öbb', uts46=True, strict=True), 'öbb') + self.assertEqual(idna.encode('öbb', uts46=True, strict=True), b'xn--bb-eka') + + def test_uts46_225(self): + self.assertEqual(idna.decode('öbb', uts46=True, strict=True), 'öbb') + self.assertEqual(idna.encode('öbb', uts46=True, strict=True), b'xn--bb-eka') + + def test_uts46_226(self): + self.assertEqual(idna.decode('Öbb', uts46=True, strict=True), 'öbb') + self.assertEqual(idna.encode('Öbb', uts46=True, strict=True), b'xn--bb-eka') + + def test_uts46_227(self): + self.assertEqual(idna.decode('Öbb', uts46=True, strict=True), 'öbb') + self.assertEqual(idna.encode('Öbb', uts46=True, strict=True), b'xn--bb-eka') + + def test_uts46_228(self): + self.assertEqual(idna.decode('xn--bb-eka', uts46=True, strict=True), 'öbb') + self.assertEqual(idna.encode('xn--bb-eka', uts46=True, strict=True), b'xn--bb-eka') + + def test_uts46_229(self): + self.assertEqual(idna.decode('FAẞ.de', uts46=True, strict=True), 'faß.de') + self.assertEqual(idna.encode('FAẞ.de', uts46=True, strict=True), b'xn--fa-hia.de') + + def test_uts46_230(self): + self.assertEqual(idna.decode('FAẞ.DE', uts46=True, strict=True), 'faß.de') + self.assertEqual(idna.encode('FAẞ.DE', uts46=True, strict=True), b'xn--fa-hia.de') + + def test_uts46_231(self): + self.assertEqual(idna.decode('βόλος.com', uts46=True, strict=True), 'βόλος.com') + self.assertEqual(idna.encode('βόλος.com', uts46=True, strict=True), b'xn--nxasmm1c.com') + + def test_uts46_232(self): + self.assertEqual(idna.decode('βόλος.com', uts46=True, strict=True), 'βόλος.com') + self.assertEqual(idna.encode('βόλος.com', uts46=True, strict=True), b'xn--nxasmm1c.com') + + def test_uts46_233(self): + self.assertEqual(idna.decode('ΒΌΛΟΣ.COM', uts46=True, strict=True), 'βόλοσ.com') + self.assertEqual(idna.encode('ΒΌΛΟΣ.COM', uts46=True, strict=True), b'xn--nxasmq6b.com') + + def test_uts46_234(self): + self.assertEqual(idna.decode('ΒΌΛΟΣ.COM', uts46=True, strict=True), 'βόλοσ.com') + self.assertEqual(idna.encode('ΒΌΛΟΣ.COM', uts46=True, strict=True), b'xn--nxasmq6b.com') + + def test_uts46_235(self): + self.assertEqual(idna.decode('βόλοσ.com', uts46=True, strict=True), 'βόλοσ.com') + self.assertEqual(idna.encode('βόλοσ.com', uts46=True, strict=True), b'xn--nxasmq6b.com') + + def test_uts46_236(self): + self.assertEqual(idna.decode('βόλοσ.com', uts46=True, strict=True), 'βόλοσ.com') + self.assertEqual(idna.encode('βόλοσ.com', uts46=True, strict=True), b'xn--nxasmq6b.com') + + def test_uts46_237(self): + self.assertEqual(idna.decode('Βόλοσ.com', uts46=True, strict=True), 'βόλοσ.com') + self.assertEqual(idna.encode('Βόλοσ.com', uts46=True, strict=True), b'xn--nxasmq6b.com') + + def test_uts46_238(self): + self.assertEqual(idna.decode('Βόλοσ.com', uts46=True, strict=True), 'βόλοσ.com') + self.assertEqual(idna.encode('Βόλοσ.com', uts46=True, strict=True), b'xn--nxasmq6b.com') + + def test_uts46_239(self): + self.assertEqual(idna.decode('xn--nxasmq6b.com', uts46=True, strict=True), 'βόλοσ.com') + self.assertEqual(idna.encode('xn--nxasmq6b.com', uts46=True, strict=True), b'xn--nxasmq6b.com') + + def test_uts46_240(self): + self.assertEqual(idna.decode('Βόλος.com', uts46=True, strict=True), 'βόλος.com') + self.assertEqual(idna.encode('Βόλος.com', uts46=True, strict=True), b'xn--nxasmm1c.com') + + def test_uts46_241(self): + self.assertEqual(idna.decode('Βόλος.com', uts46=True, strict=True), 'βόλος.com') + self.assertEqual(idna.encode('Βόλος.com', uts46=True, strict=True), b'xn--nxasmm1c.com') + + def test_uts46_242(self): + self.assertEqual(idna.decode('xn--nxasmm1c.com', uts46=True, strict=True), 'βόλος.com') + self.assertEqual(idna.encode('xn--nxasmm1c.com', uts46=True, strict=True), b'xn--nxasmm1c.com') + + def test_uts46_243(self): + self.assertEqual(idna.decode('xn--nxasmm1c', uts46=True, strict=True), 'βόλος') + self.assertEqual(idna.encode('xn--nxasmm1c', uts46=True, strict=True), b'xn--nxasmm1c') + + def test_uts46_244(self): + self.assertEqual(idna.decode('βόλος', uts46=True, strict=True), 'βόλος') + self.assertEqual(idna.encode('βόλος', uts46=True, strict=True), b'xn--nxasmm1c') + + def test_uts46_245(self): + self.assertEqual(idna.decode('βόλος', uts46=True, strict=True), 'βόλος') + self.assertEqual(idna.encode('βόλος', uts46=True, strict=True), b'xn--nxasmm1c') + + def test_uts46_246(self): + self.assertEqual(idna.decode('ΒΌΛΟΣ', uts46=True, strict=True), 'βόλοσ') + self.assertEqual(idna.encode('ΒΌΛΟΣ', uts46=True, strict=True), b'xn--nxasmq6b') + + def test_uts46_247(self): + self.assertEqual(idna.decode('ΒΌΛΟΣ', uts46=True, strict=True), 'βόλοσ') + self.assertEqual(idna.encode('ΒΌΛΟΣ', uts46=True, strict=True), b'xn--nxasmq6b') + + def test_uts46_248(self): + self.assertEqual(idna.decode('βόλοσ', uts46=True, strict=True), 'βόλοσ') + self.assertEqual(idna.encode('βόλοσ', uts46=True, strict=True), b'xn--nxasmq6b') + + def test_uts46_249(self): + self.assertEqual(idna.decode('βόλοσ', uts46=True, strict=True), 'βόλοσ') + self.assertEqual(idna.encode('βόλοσ', uts46=True, strict=True), b'xn--nxasmq6b') + + def test_uts46_250(self): + self.assertEqual(idna.decode('Βόλοσ', uts46=True, strict=True), 'βόλοσ') + self.assertEqual(idna.encode('Βόλοσ', uts46=True, strict=True), b'xn--nxasmq6b') + + def test_uts46_251(self): + self.assertEqual(idna.decode('Βόλοσ', uts46=True, strict=True), 'βόλοσ') + self.assertEqual(idna.encode('Βόλοσ', uts46=True, strict=True), b'xn--nxasmq6b') + + def test_uts46_252(self): + self.assertEqual(idna.decode('xn--nxasmq6b', uts46=True, strict=True), 'βόλοσ') + self.assertEqual(idna.encode('xn--nxasmq6b', uts46=True, strict=True), b'xn--nxasmq6b') + + def test_uts46_253(self): + self.assertEqual(idna.decode('Βόλος', uts46=True, strict=True), 'βόλος') + self.assertEqual(idna.encode('Βόλος', uts46=True, strict=True), b'xn--nxasmm1c') + + def test_uts46_254(self): + self.assertEqual(idna.decode('Βόλος', uts46=True, strict=True), 'βόλος') + self.assertEqual(idna.encode('Βόλος', uts46=True, strict=True), b'xn--nxasmm1c') + + def test_uts46_255(self): + self.assertEqual(idna.decode('www.ශ්\u200dරී.com', uts46=True, strict=True), 'www.ශ්\u200dරී.com') + self.assertEqual(idna.encode('www.ශ්\u200dරී.com', uts46=True, strict=True), b'www.xn--10cl1a0b660p.com') + + def test_uts46_256(self): + self.assertEqual(idna.decode('WWW.ශ්\u200dරී.COM', uts46=True, strict=True), 'www.ශ්\u200dරී.com') + self.assertEqual(idna.encode('WWW.ශ්\u200dරී.COM', uts46=True, strict=True), b'www.xn--10cl1a0b660p.com') + + def test_uts46_257(self): + self.assertEqual(idna.decode('Www.ශ්\u200dරී.com', uts46=True, strict=True), 'www.ශ්\u200dරී.com') + self.assertEqual(idna.encode('Www.ශ්\u200dරී.com', uts46=True, strict=True), b'www.xn--10cl1a0b660p.com') + + def test_uts46_258(self): + self.assertEqual(idna.decode('www.xn--10cl1a0b.com', uts46=True, strict=True), 'www.ශ්රී.com') + self.assertEqual(idna.encode('www.xn--10cl1a0b.com', uts46=True, strict=True), b'www.xn--10cl1a0b.com') + + def test_uts46_259(self): + self.assertEqual(idna.decode('www.ශ්රී.com', uts46=True, strict=True), 'www.ශ්රී.com') + self.assertEqual(idna.encode('www.ශ්රී.com', uts46=True, strict=True), b'www.xn--10cl1a0b.com') + + def test_uts46_260(self): + self.assertEqual(idna.decode('WWW.ශ්රී.COM', uts46=True, strict=True), 'www.ශ්රී.com') + self.assertEqual(idna.encode('WWW.ශ්රී.COM', uts46=True, strict=True), b'www.xn--10cl1a0b.com') + + def test_uts46_261(self): + self.assertEqual(idna.decode('Www.ශ්රී.com', uts46=True, strict=True), 'www.ශ්රී.com') + self.assertEqual(idna.encode('Www.ශ්රී.com', uts46=True, strict=True), b'www.xn--10cl1a0b.com') + + def test_uts46_262(self): + self.assertEqual(idna.decode('www.xn--10cl1a0b660p.com', uts46=True, strict=True), 'www.ශ්\u200dරී.com') + self.assertEqual(idna.encode('www.xn--10cl1a0b660p.com', uts46=True, strict=True), b'www.xn--10cl1a0b660p.com') + + def test_uts46_263(self): + self.assertEqual(idna.decode('نامه\u200cای', uts46=True, strict=True), 'نامه\u200cای') + self.assertEqual(idna.encode('نامه\u200cای', uts46=True, strict=True), b'xn--mgba3gch31f060k') + + def test_uts46_264(self): + self.assertEqual(idna.decode('xn--mgba3gch31f', uts46=True, strict=True), 'نامهای') + self.assertEqual(idna.encode('xn--mgba3gch31f', uts46=True, strict=True), b'xn--mgba3gch31f') + + def test_uts46_265(self): + self.assertEqual(idna.decode('نامهای', uts46=True, strict=True), 'نامهای') + self.assertEqual(idna.encode('نامهای', uts46=True, strict=True), b'xn--mgba3gch31f') + + def test_uts46_266(self): + self.assertEqual(idna.decode('xn--mgba3gch31f060k', uts46=True, strict=True), 'نامه\u200cای') + self.assertEqual(idna.encode('xn--mgba3gch31f060k', uts46=True, strict=True), b'xn--mgba3gch31f060k') + + def test_uts46_267(self): + self.assertEqual(idna.decode('xn--mgba3gch31f060k.com', uts46=True, strict=True), 'نامه\u200cای.com') + self.assertEqual(idna.encode('xn--mgba3gch31f060k.com', uts46=True, strict=True), b'xn--mgba3gch31f060k.com') + + def test_uts46_268(self): + self.assertEqual(idna.decode('نامه\u200cای.com', uts46=True, strict=True), 'نامه\u200cای.com') + self.assertEqual(idna.encode('نامه\u200cای.com', uts46=True, strict=True), b'xn--mgba3gch31f060k.com') + + def test_uts46_269(self): + self.assertEqual(idna.decode('نامه\u200cای.COM', uts46=True, strict=True), 'نامه\u200cای.com') + self.assertEqual(idna.encode('نامه\u200cای.COM', uts46=True, strict=True), b'xn--mgba3gch31f060k.com') + + def test_uts46_270(self): + self.assertEqual(idna.decode('xn--mgba3gch31f.com', uts46=True, strict=True), 'نامهای.com') + self.assertEqual(idna.encode('xn--mgba3gch31f.com', uts46=True, strict=True), b'xn--mgba3gch31f.com') + + def test_uts46_271(self): + self.assertEqual(idna.decode('نامهای.com', uts46=True, strict=True), 'نامهای.com') + self.assertEqual(idna.encode('نامهای.com', uts46=True, strict=True), b'xn--mgba3gch31f.com') + + def test_uts46_272(self): + self.assertEqual(idna.decode('نامهای.COM', uts46=True, strict=True), 'نامهای.com') + self.assertEqual(idna.encode('نامهای.COM', uts46=True, strict=True), b'xn--mgba3gch31f.com') + + def test_uts46_273(self): + self.assertEqual(idna.decode('a.b.c。d。', uts46=True, strict=True), 'a.b.c.d.') + self.assertRaises(idna.IDNAError, idna.encode, 'a.b.c。d。', strict=True) + + def test_uts46_274(self): + self.assertEqual(idna.decode('a.b.c。d。', uts46=True, strict=True), 'a.b.c.d.') + self.assertRaises(idna.IDNAError, idna.encode, 'a.b.c。d。', strict=True) + + def test_uts46_275(self): + self.assertEqual(idna.decode('A.B.C。D。', uts46=True, strict=True), 'a.b.c.d.') + self.assertRaises(idna.IDNAError, idna.encode, 'A.B.C。D。', strict=True) + + def test_uts46_276(self): + self.assertEqual(idna.decode('A.b.c。D。', uts46=True, strict=True), 'a.b.c.d.') + self.assertRaises(idna.IDNAError, idna.encode, 'A.b.c。D。', strict=True) + + def test_uts46_278(self): + self.assertEqual(idna.decode('A.B.C。D。', uts46=True, strict=True), 'a.b.c.d.') + self.assertRaises(idna.IDNAError, idna.encode, 'A.B.C。D。', strict=True) + + def test_uts46_279(self): + self.assertEqual(idna.decode('A.b.c。D。', uts46=True, strict=True), 'a.b.c.d.') + self.assertRaises(idna.IDNAError, idna.encode, 'A.b.c。D。', strict=True) + + def test_uts46_280(self): + self.assertEqual(idna.decode('Ü.xn--tda', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('Ü.xn--tda', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_281(self): + self.assertEqual(idna.decode('Ü.xn--tda', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('Ü.xn--tda', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_282(self): + self.assertEqual(idna.decode('ü.xn--tda', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('ü.xn--tda', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_283(self): + self.assertEqual(idna.decode('ü.xn--tda', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('ü.xn--tda', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_284(self): + self.assertEqual(idna.decode('Ü.XN--TDA', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('Ü.XN--TDA', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_285(self): + self.assertEqual(idna.decode('Ü.XN--TDA', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('Ü.XN--TDA', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_286(self): + self.assertEqual(idna.decode('Ü.xn--Tda', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('Ü.xn--Tda', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_287(self): + self.assertEqual(idna.decode('Ü.xn--Tda', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('Ü.xn--Tda', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_288(self): + self.assertEqual(idna.decode('xn--tda.xn--tda', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('xn--tda.xn--tda', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_289(self): + self.assertEqual(idna.decode('ü.ü', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('ü.ü', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_290(self): + self.assertEqual(idna.decode('ü.ü', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('ü.ü', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_291(self): + self.assertEqual(idna.decode('Ü.Ü', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('Ü.Ü', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_292(self): + self.assertEqual(idna.decode('Ü.Ü', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('Ü.Ü', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_293(self): + self.assertEqual(idna.decode('Ü.ü', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('Ü.ü', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_294(self): + self.assertEqual(idna.decode('Ü.ü', uts46=True, strict=True), 'ü.ü') + self.assertEqual(idna.encode('Ü.ü', uts46=True, strict=True), b'xn--tda.xn--tda') + + def test_uts46_295(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--u-ccb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--u-ccb', strict=True) + + def test_uts46_296(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a⒈com', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a⒈com', strict=True) + + def test_uts46_297(self): + self.assertEqual(idna.decode('a1.com', uts46=True, strict=True), 'a1.com') + self.assertEqual(idna.encode('a1.com', uts46=True, strict=True), b'a1.com') + + def test_uts46_298(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A⒈COM', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A⒈COM', strict=True) + + def test_uts46_299(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A⒈Com', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A⒈Com', strict=True) + + def test_uts46_300(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--acom-0w1b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--acom-0w1b', strict=True) + + def test_uts46_301(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a-ecp.ru', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a-ecp.ru', strict=True) + + def test_uts46_302(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0.pt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0.pt', strict=True) + + def test_uts46_303(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a.pt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a.pt', strict=True) + + def test_uts46_304(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a-Ä.pt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a-Ä.pt', strict=True) + + def test_uts46_305(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a-Ä.pt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a-Ä.pt', strict=True) + + def test_uts46_306(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a-ä.pt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a-ä.pt', strict=True) + + def test_uts46_307(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a-ä.pt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a-ä.pt', strict=True) + + def test_uts46_308(self): + self.assertRaises(idna.IDNAError, idna.decode, 'XN--A-Ä.PT', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'XN--A-Ä.PT', strict=True) + + def test_uts46_309(self): + self.assertRaises(idna.IDNAError, idna.decode, 'XN--A-Ä.PT', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'XN--A-Ä.PT', strict=True) + + def test_uts46_310(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--A-Ä.pt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--A-Ä.pt', strict=True) + + def test_uts46_311(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--A-Ä.pt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--A-Ä.pt', strict=True) + + def test_uts46_312(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xn--a--gua.pt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xn--a--gua.pt', strict=True) + + def test_uts46_313(self): + self.assertEqual(idna.decode('日本語。JP', uts46=True, strict=True), '日本語.jp') + self.assertEqual(idna.encode('日本語。JP', uts46=True, strict=True), b'xn--wgv71a119e.jp') + + def test_uts46_314(self): + self.assertEqual(idna.decode('日本語。JP', uts46=True, strict=True), '日本語.jp') + self.assertEqual(idna.encode('日本語。JP', uts46=True, strict=True), b'xn--wgv71a119e.jp') + + def test_uts46_315(self): + self.assertEqual(idna.decode('日本語。jp', uts46=True, strict=True), '日本語.jp') + self.assertEqual(idna.encode('日本語。jp', uts46=True, strict=True), b'xn--wgv71a119e.jp') + + def test_uts46_316(self): + self.assertEqual(idna.decode('日本語。Jp', uts46=True, strict=True), '日本語.jp') + self.assertEqual(idna.encode('日本語。Jp', uts46=True, strict=True), b'xn--wgv71a119e.jp') + + def test_uts46_317(self): + self.assertEqual(idna.decode('xn--wgv71a119e.jp', uts46=True, strict=True), '日本語.jp') + self.assertEqual(idna.encode('xn--wgv71a119e.jp', uts46=True, strict=True), b'xn--wgv71a119e.jp') + + def test_uts46_318(self): + self.assertEqual(idna.decode('日本語.jp', uts46=True, strict=True), '日本語.jp') + self.assertEqual(idna.encode('日本語.jp', uts46=True, strict=True), b'xn--wgv71a119e.jp') + + def test_uts46_319(self): + self.assertEqual(idna.decode('日本語.JP', uts46=True, strict=True), '日本語.jp') + self.assertEqual(idna.encode('日本語.JP', uts46=True, strict=True), b'xn--wgv71a119e.jp') + + def test_uts46_320(self): + self.assertEqual(idna.decode('日本語.Jp', uts46=True, strict=True), '日本語.jp') + self.assertEqual(idna.encode('日本語.Jp', uts46=True, strict=True), b'xn--wgv71a119e.jp') + + def test_uts46_321(self): + self.assertEqual(idna.decode('日本語。jp', uts46=True, strict=True), '日本語.jp') + self.assertEqual(idna.encode('日本語。jp', uts46=True, strict=True), b'xn--wgv71a119e.jp') + + def test_uts46_322(self): + self.assertEqual(idna.decode('日本語。Jp', uts46=True, strict=True), '日本語.jp') + self.assertEqual(idna.encode('日本語。Jp', uts46=True, strict=True), b'xn--wgv71a119e.jp') + + def test_uts46_323(self): + self.assertRaises(idna.IDNAError, idna.decode, '☕', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '☕', strict=True) + + def test_uts46_324(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--53h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--53h', strict=True) + + def test_uts46_325(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.aß\u200c\u200db\u200c\u200dcßßßßdςσßßßßßßßßeßßßßßßßßßßxßßßßßßßßßßyßßßßßßßß̂ßz', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.aß\u200c\u200db\u200c\u200dcßßßßdςσßßßßßßßßeßßßßßßßßßßxßßßßßßßßßßyßßßßßßßß̂ßz', strict=True) + + def test_uts46_326(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.ASS\u200c\u200dB\u200c\u200dCSSSSSSSSDΣΣSSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSŜSSZ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.ASS\u200c\u200dB\u200c\u200dCSSSSSSSSDΣΣSSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSŜSSZ', strict=True) + + def test_uts46_327(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.ASS\u200c\u200dB\u200c\u200dCSSSSSSSSDΣΣSSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSŜSSZ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.ASS\u200c\u200dB\u200c\u200dCSSSSSSSSDΣΣSSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSŜSSZ', strict=True) + + def test_uts46_328(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.ass\u200c\u200db\u200c\u200dcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.ass\u200c\u200db\u200c\u200dcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + + def test_uts46_329(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.ass\u200c\u200db\u200c\u200dcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.ass\u200c\u200db\u200c\u200dcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + + def test_uts46_330(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.Ass\u200c\u200db\u200c\u200dcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.Ass\u200c\u200db\u200c\u200dcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + + def test_uts46_331(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.Ass\u200c\u200db\u200c\u200dcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.Ass\u200c\u200db\u200c\u200dcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + + def test_uts46_332(self): + self.assertEqual(idna.decode('1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa', uts46=True, strict=True), '1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz') + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa', strict=True) + + def test_uts46_333(self): + self.assertEqual(idna.decode('1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', uts46=True, strict=True), '1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz') + self.assertRaises(idna.IDNAError, idna.encode, '1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + + def test_uts46_334(self): + self.assertEqual(idna.decode('1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', uts46=True, strict=True), '1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz') + self.assertRaises(idna.IDNAError, idna.encode, '1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + + def test_uts46_335(self): + self.assertEqual(idna.decode('1.ASSBCSSSSSSSSDΣΣSSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSŜSSZ', uts46=True, strict=True), '1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz') + self.assertRaises(idna.IDNAError, idna.encode, '1.ASSBCSSSSSSSSDΣΣSSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSŜSSZ', strict=True) + + def test_uts46_336(self): + self.assertEqual(idna.decode('1.ASSBCSSSSSSSSDΣΣSSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSŜSSZ', uts46=True, strict=True), '1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz') + self.assertRaises(idna.IDNAError, idna.encode, '1.ASSBCSSSSSSSSDΣΣSSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSŜSSZ', strict=True) + + def test_uts46_337(self): + self.assertEqual(idna.decode('1.Assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', uts46=True, strict=True), '1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz') + self.assertRaises(idna.IDNAError, idna.encode, '1.Assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + + def test_uts46_338(self): + self.assertEqual(idna.decode('1.Assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', uts46=True, strict=True), '1.assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz') + self.assertRaises(idna.IDNAError, idna.encode, '1.Assbcssssssssdσσssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssŝssz', strict=True) + + def test_uts46_339(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa69989dba9gc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa69989dba9gc', strict=True) + + def test_uts46_340(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.Aß\u200c\u200db\u200c\u200dcßßßßdςσßßßßßßßßeßßßßßßßßßßxßßßßßßßßßßyßßßßßßßß̂ßz', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.Aß\u200c\u200db\u200c\u200dcßßßßdςσßßßßßßßßeßßßßßßßßßßxßßßßßßßßßßyßßßßßßßß̂ßz', strict=True) + + def test_uts46_341(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--abcdexyz-qyacaaabaaaaaaabaaaaaaaaabaaaaaaaaabaaaaaaaa010ze2isb1140zba8cc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--abcdexyz-qyacaaabaaaaaaabaaaaaaaaabaaaaaaaaabaaaaaaaa010ze2isb1140zba8cc', strict=True) + + def test_uts46_342(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cx\u200dn\u200c-\u200d-bß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cx\u200dn\u200c-\u200d-bß', strict=True) + + def test_uts46_343(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cX\u200dN\u200c-\u200d-BSS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cX\u200dN\u200c-\u200d-BSS', strict=True) + + def test_uts46_344(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cx\u200dn\u200c-\u200d-bss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cx\u200dn\u200c-\u200d-bss', strict=True) + + def test_uts46_345(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cX\u200dn\u200c-\u200d-Bss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cX\u200dn\u200c-\u200d-Bss', strict=True) + + def test_uts46_346(self): + self.assertEqual(idna.decode('xn--bss', uts46=True, strict=True), '夙') + self.assertEqual(idna.encode('xn--bss', uts46=True, strict=True), b'xn--bss') + + def test_uts46_347(self): + self.assertEqual(idna.decode('夙', uts46=True, strict=True), '夙') + self.assertEqual(idna.encode('夙', uts46=True, strict=True), b'xn--bss') + + def test_uts46_348(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xn--bss-7z6ccid', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xn--bss-7z6ccid', strict=True) + + def test_uts46_349(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cX\u200dn\u200c-\u200d-Bß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cX\u200dn\u200c-\u200d-Bß', strict=True) + + def test_uts46_350(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xn--b-pqa5796ccahd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xn--b-pqa5796ccahd', strict=True) + + def test_uts46_351(self): + self.assertEqual(idna.decode('ˣ͏ℕ\u200b﹣\xad-᠌ℬ︀ſ\u2064𝔰󠇯ffl', uts46=True, strict=True), '夡夞夜夙') + self.assertEqual(idna.encode('ˣ͏ℕ\u200b﹣\xad-᠌ℬ︀ſ\u2064𝔰󠇯ffl', uts46=True, strict=True), b'xn--bssffl') + + def test_uts46_352(self): + self.assertEqual(idna.decode('x͏N\u200b-\xad-᠌B︀s\u2064s󠇯ffl', uts46=True, strict=True), '夡夞夜夙') + self.assertEqual(idna.encode('x͏N\u200b-\xad-᠌B︀s\u2064s󠇯ffl', uts46=True, strict=True), b'xn--bssffl') + + def test_uts46_353(self): + self.assertEqual(idna.decode('x͏n\u200b-\xad-᠌b︀s\u2064s󠇯ffl', uts46=True, strict=True), '夡夞夜夙') + self.assertEqual(idna.encode('x͏n\u200b-\xad-᠌b︀s\u2064s󠇯ffl', uts46=True, strict=True), b'xn--bssffl') + + def test_uts46_354(self): + self.assertEqual(idna.decode('X͏N\u200b-\xad-᠌B︀S\u2064S󠇯FFL', uts46=True, strict=True), '夡夞夜夙') + self.assertEqual(idna.encode('X͏N\u200b-\xad-᠌B︀S\u2064S󠇯FFL', uts46=True, strict=True), b'xn--bssffl') + + def test_uts46_355(self): + self.assertEqual(idna.decode('X͏n\u200b-\xad-᠌B︀s\u2064s󠇯ffl', uts46=True, strict=True), '夡夞夜夙') + self.assertEqual(idna.encode('X͏n\u200b-\xad-᠌B︀s\u2064s󠇯ffl', uts46=True, strict=True), b'xn--bssffl') + + def test_uts46_356(self): + self.assertEqual(idna.decode('xn--bssffl', uts46=True, strict=True), '夡夞夜夙') + self.assertEqual(idna.encode('xn--bssffl', uts46=True, strict=True), b'xn--bssffl') + + def test_uts46_357(self): + self.assertEqual(idna.decode('夡夞夜夙', uts46=True, strict=True), '夡夞夜夙') + self.assertEqual(idna.encode('夡夞夜夙', uts46=True, strict=True), b'xn--bssffl') + + def test_uts46_358(self): + self.assertEqual(idna.decode('ˣ͏ℕ\u200b﹣\xad-᠌ℬ︀S\u2064𝔰󠇯FFL', uts46=True, strict=True), '夡夞夜夙') + self.assertEqual(idna.encode('ˣ͏ℕ\u200b﹣\xad-᠌ℬ︀S\u2064𝔰󠇯FFL', uts46=True, strict=True), b'xn--bssffl') + + def test_uts46_359(self): + self.assertEqual(idna.decode('x͏N\u200b-\xad-᠌B︀S\u2064s󠇯FFL', uts46=True, strict=True), '夡夞夜夙') + self.assertEqual(idna.encode('x͏N\u200b-\xad-᠌B︀S\u2064s󠇯FFL', uts46=True, strict=True), b'xn--bssffl') + + def test_uts46_360(self): + self.assertEqual(idna.decode('ˣ͏ℕ\u200b﹣\xad-᠌ℬ︀s\u2064𝔰󠇯ffl', uts46=True, strict=True), '夡夞夜夙') + self.assertEqual(idna.encode('ˣ͏ℕ\u200b﹣\xad-᠌ℬ︀s\u2064𝔰󠇯ffl', uts46=True, strict=True), b'xn--bssffl') + + def test_uts46_361(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertEqual(idna.encode('123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), b'123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + + def test_uts46_363(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', strict=True) + + def test_uts46_364(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', strict=True) + + def test_uts46_365(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', strict=True) + + def test_uts46_366(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', strict=True) + + def test_uts46_367(self): + self.assertEqual(idna.decode('ä1234567890123456789012345678901234567890123456789012345', uts46=True, strict=True), 'ä1234567890123456789012345678901234567890123456789012345') + self.assertEqual(idna.encode('ä1234567890123456789012345678901234567890123456789012345', uts46=True, strict=True), b'xn--1234567890123456789012345678901234567890123456789012345-9te') + + def test_uts46_368(self): + self.assertEqual(idna.decode('ä1234567890123456789012345678901234567890123456789012345', uts46=True, strict=True), 'ä1234567890123456789012345678901234567890123456789012345') + self.assertEqual(idna.encode('ä1234567890123456789012345678901234567890123456789012345', uts46=True, strict=True), b'xn--1234567890123456789012345678901234567890123456789012345-9te') + + def test_uts46_369(self): + self.assertEqual(idna.decode('Ä1234567890123456789012345678901234567890123456789012345', uts46=True, strict=True), 'ä1234567890123456789012345678901234567890123456789012345') + self.assertEqual(idna.encode('Ä1234567890123456789012345678901234567890123456789012345', uts46=True, strict=True), b'xn--1234567890123456789012345678901234567890123456789012345-9te') + + def test_uts46_370(self): + self.assertEqual(idna.decode('Ä1234567890123456789012345678901234567890123456789012345', uts46=True, strict=True), 'ä1234567890123456789012345678901234567890123456789012345') + self.assertEqual(idna.encode('Ä1234567890123456789012345678901234567890123456789012345', uts46=True, strict=True), b'xn--1234567890123456789012345678901234567890123456789012345-9te') + + def test_uts46_371(self): + self.assertEqual(idna.decode('xn--1234567890123456789012345678901234567890123456789012345-9te', uts46=True, strict=True), 'ä1234567890123456789012345678901234567890123456789012345') + self.assertEqual(idna.encode('xn--1234567890123456789012345678901234567890123456789012345-9te', uts46=True, strict=True), b'xn--1234567890123456789012345678901234567890123456789012345-9te') + + def test_uts46_372(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertEqual(idna.encode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), b'123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + + def test_uts46_373(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertEqual(idna.encode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), b'123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + + def test_uts46_374(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertEqual(idna.encode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B', uts46=True, strict=True), b'123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + + def test_uts46_375(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertEqual(idna.encode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B', uts46=True, strict=True), b'123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + + def test_uts46_376(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertEqual(idna.encode('123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), b'123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + + def test_uts46_378(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.', strict=True) + + def test_uts46_379(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B.', strict=True) + + def test_uts46_380(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B.', strict=True) + + def test_uts46_382(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', strict=True) + + def test_uts46_383(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', strict=True) + + def test_uts46_384(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901C', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901C', strict=True) + + def test_uts46_385(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901C', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901C', strict=True) + + def test_uts46_386(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', strict=True) + + def test_uts46_387(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', strict=True) + + def test_uts46_388(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', strict=True) + + def test_uts46_389(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A', strict=True) + + def test_uts46_390(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A', strict=True) + + def test_uts46_391(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', strict=True) + + def test_uts46_392(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', strict=True) + + def test_uts46_393(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', strict=True) + + def test_uts46_394(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A.', strict=True) + + def test_uts46_395(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A.', strict=True) + + def test_uts46_396(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', strict=True) + + def test_uts46_397(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', strict=True) + + def test_uts46_398(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', strict=True) + + def test_uts46_399(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B', strict=True) + + def test_uts46_400(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B', strict=True) + + def test_uts46_401(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', strict=True) + + def test_uts46_402(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a.b..-q--a-.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a.b..-q--a-.e', strict=True) + + def test_uts46_403(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a.b..-q--ä-.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a.b..-q--ä-.e', strict=True) + + def test_uts46_404(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a.b..-q--ä-.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a.b..-q--ä-.e', strict=True) + + def test_uts46_405(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A.B..-Q--Ä-.E', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A.B..-Q--Ä-.E', strict=True) + + def test_uts46_406(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A.B..-Q--Ä-.E', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A.B..-Q--Ä-.E', strict=True) + + def test_uts46_407(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A.b..-Q--Ä-.E', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A.b..-Q--Ä-.E', strict=True) + + def test_uts46_408(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A.b..-Q--Ä-.E', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A.b..-Q--Ä-.E', strict=True) + + def test_uts46_409(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a.b..xn---q----jra.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a.b..xn---q----jra.e', strict=True) + + def test_uts46_410(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a..c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a..c', strict=True) + + def test_uts46_411(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a.-b.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a.-b.', strict=True) + + def test_uts46_412(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a.b-.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a.b-.c', strict=True) + + def test_uts46_413(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a.-.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a.-.c', strict=True) + + def test_uts46_414(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a.bc--de.f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a.bc--de.f', strict=True) + + def test_uts46_415(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xn---epa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xn---epa', strict=True) + + def test_uts46_416(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ä.\xad.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ä.\xad.c', strict=True) + + def test_uts46_417(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ä.\xad.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ä.\xad.c', strict=True) + + def test_uts46_418(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.\xad.C', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.\xad.C', strict=True) + + def test_uts46_419(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.\xad.C', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.\xad.C', strict=True) + + def test_uts46_420(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4ca..c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4ca..c', strict=True) + + def test_uts46_421(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ä.-b.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ä.-b.', strict=True) + + def test_uts46_422(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ä.-b.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ä.-b.', strict=True) + + def test_uts46_423(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.-B.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.-B.', strict=True) + + def test_uts46_424(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.-B.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.-B.', strict=True) + + def test_uts46_425(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4ca.-b.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4ca.-b.', strict=True) + + def test_uts46_426(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ä.b-.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ä.b-.c', strict=True) + + def test_uts46_427(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ä.b-.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ä.b-.c', strict=True) + + def test_uts46_428(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.B-.C', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.B-.C', strict=True) + + def test_uts46_429(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.B-.C', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.B-.C', strict=True) + + def test_uts46_430(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.b-.C', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.b-.C', strict=True) + + def test_uts46_431(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.b-.C', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.b-.C', strict=True) + + def test_uts46_432(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4ca.b-.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4ca.b-.c', strict=True) + + def test_uts46_433(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ä.-.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ä.-.c', strict=True) + + def test_uts46_434(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ä.-.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ä.-.c', strict=True) + + def test_uts46_435(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.-.C', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.-.C', strict=True) + + def test_uts46_436(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.-.C', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.-.C', strict=True) + + def test_uts46_437(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4ca.-.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4ca.-.c', strict=True) + + def test_uts46_438(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ä.bc--de.f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ä.bc--de.f', strict=True) + + def test_uts46_439(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ä.bc--de.f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ä.bc--de.f', strict=True) + + def test_uts46_440(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.BC--DE.F', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.BC--DE.F', strict=True) + + def test_uts46_441(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.BC--DE.F', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.BC--DE.F', strict=True) + + def test_uts46_442(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.bc--De.f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.bc--De.f', strict=True) + + def test_uts46_443(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ä.bc--De.f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ä.bc--De.f', strict=True) + + def test_uts46_444(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4ca.bc--de.f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4ca.bc--de.f', strict=True) + + def test_uts46_445(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a.b.̈c.d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a.b.̈c.d', strict=True) + + def test_uts46_446(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A.B.̈C.D', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A.B.̈C.D', strict=True) + + def test_uts46_447(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A.b.̈c.d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A.b.̈c.d', strict=True) + + def test_uts46_448(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a.b.xn--c-bcb.d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a.b.xn--c-bcb.d', strict=True) + + def test_uts46_449(self): + self.assertEqual(idna.decode('A0', uts46=True, strict=True), 'a0') + self.assertEqual(idna.encode('A0', uts46=True, strict=True), b'a0') + + def test_uts46_450(self): + self.assertEqual(idna.decode('0A', uts46=True, strict=True), '0a') + self.assertEqual(idna.encode('0A', uts46=True, strict=True), b'0a') + + def test_uts46_455(self): + self.assertRaises(idna.IDNAError, idna.decode, 'b-.א', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'b-.א', strict=True) + + def test_uts46_456(self): + self.assertRaises(idna.IDNAError, idna.decode, 'B-.א', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'B-.א', strict=True) + + def test_uts46_457(self): + self.assertRaises(idna.IDNAError, idna.decode, 'b-.xn--4db', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'b-.xn--4db', strict=True) + + def test_uts46_458(self): + self.assertRaises(idna.IDNAError, idna.decode, 'd.xn----dha.xn--4db', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'd.xn----dha.xn--4db', strict=True) + + def test_uts46_459(self): + self.assertRaises(idna.IDNAError, idna.decode, 'aא', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'aא', strict=True) + + def test_uts46_460(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Aא', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Aא', strict=True) + + def test_uts46_461(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a-0hc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a-0hc', strict=True) + + def test_uts46_462(self): + self.assertEqual(idna.decode('אׇ', uts46=True, strict=True), 'אׇ') + self.assertEqual(idna.encode('אׇ', uts46=True, strict=True), b'xn--vdbr') + + def test_uts46_463(self): + self.assertEqual(idna.decode('xn--vdbr', uts46=True, strict=True), 'אׇ') + self.assertEqual(idna.encode('xn--vdbr', uts46=True, strict=True), b'xn--vdbr') + + def test_uts46_464(self): + self.assertEqual(idna.decode('א9ׇ', uts46=True, strict=True), 'א9ׇ') + self.assertEqual(idna.encode('א9ׇ', uts46=True, strict=True), b'xn--9-ihcz') + + def test_uts46_465(self): + self.assertEqual(idna.decode('xn--9-ihcz', uts46=True, strict=True), 'א9ׇ') + self.assertEqual(idna.encode('xn--9-ihcz', uts46=True, strict=True), b'xn--9-ihcz') + + def test_uts46_466(self): + self.assertRaises(idna.IDNAError, idna.decode, 'אaׇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'אaׇ', strict=True) + + def test_uts46_467(self): + self.assertRaises(idna.IDNAError, idna.decode, 'אAׇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'אAׇ', strict=True) + + def test_uts46_468(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a-ihcz', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a-ihcz', strict=True) + + def test_uts46_469(self): + self.assertEqual(idna.decode('את', uts46=True, strict=True), 'את') + self.assertEqual(idna.encode('את', uts46=True, strict=True), b'xn--4db6c') + + def test_uts46_470(self): + self.assertEqual(idna.decode('xn--4db6c', uts46=True, strict=True), 'את') + self.assertEqual(idna.encode('xn--4db6c', uts46=True, strict=True), b'xn--4db6c') + + def test_uts46_471(self): + self.assertEqual(idna.decode('א׳ת', uts46=True, strict=True), 'א׳ת') + self.assertEqual(idna.encode('א׳ת', uts46=True, strict=True), b'xn--4db6c0a') + + def test_uts46_472(self): + self.assertEqual(idna.decode('xn--4db6c0a', uts46=True, strict=True), 'א׳ת') + self.assertEqual(idna.encode('xn--4db6c0a', uts46=True, strict=True), b'xn--4db6c0a') + + def test_uts46_473(self): + self.assertRaises(idna.IDNAError, idna.decode, 'aאTz', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'aאTz', strict=True) + + def test_uts46_474(self): + self.assertRaises(idna.IDNAError, idna.decode, 'aאtz', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'aאtz', strict=True) + + def test_uts46_475(self): + self.assertRaises(idna.IDNAError, idna.decode, 'AאTZ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'AאTZ', strict=True) + + def test_uts46_476(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Aאtz', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Aאtz', strict=True) + + def test_uts46_477(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--atz-qpe', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--atz-qpe', strict=True) + + def test_uts46_478(self): + self.assertRaises(idna.IDNAError, idna.decode, 'אTת', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'אTת', strict=True) + + def test_uts46_479(self): + self.assertRaises(idna.IDNAError, idna.decode, 'אtת', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'אtת', strict=True) + + def test_uts46_480(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t-zhc3f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t-zhc3f', strict=True) + + def test_uts46_481(self): + self.assertEqual(idna.decode('א7ת', uts46=True, strict=True), 'א7ת') + self.assertEqual(idna.encode('א7ת', uts46=True, strict=True), b'xn--7-zhc3f') + + def test_uts46_482(self): + self.assertEqual(idna.decode('xn--7-zhc3f', uts46=True, strict=True), 'א7ת') + self.assertEqual(idna.encode('xn--7-zhc3f', uts46=True, strict=True), b'xn--7-zhc3f') + + def test_uts46_483(self): + self.assertEqual(idna.decode('א٧ת', uts46=True, strict=True), 'א٧ת') + self.assertEqual(idna.encode('א٧ת', uts46=True, strict=True), b'xn--4db6c6t') + + def test_uts46_484(self): + self.assertEqual(idna.decode('xn--4db6c6t', uts46=True, strict=True), 'א٧ת') + self.assertEqual(idna.encode('xn--4db6c6t', uts46=True, strict=True), b'xn--4db6c6t') + + def test_uts46_485(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a7٧z', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a7٧z', strict=True) + + def test_uts46_486(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A7٧Z', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A7٧Z', strict=True) + + def test_uts46_487(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A7٧z', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A7٧z', strict=True) + + def test_uts46_488(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--a7z-06e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--a7z-06e', strict=True) + + def test_uts46_489(self): + self.assertRaises(idna.IDNAError, idna.decode, 'א7٧ת', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'א7٧ת', strict=True) + + def test_uts46_490(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7-zhc3fty', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7-zhc3fty', strict=True) + + def test_uts46_491(self): + self.assertEqual(idna.decode('ஹ்\u200d', uts46=True, strict=True), 'ஹ்\u200d') + self.assertEqual(idna.encode('ஹ்\u200d', uts46=True, strict=True), b'xn--dmc4b194h') + + def test_uts46_492(self): + self.assertEqual(idna.decode('xn--dmc4b', uts46=True, strict=True), 'ஹ்') + self.assertEqual(idna.encode('xn--dmc4b', uts46=True, strict=True), b'xn--dmc4b') + + def test_uts46_493(self): + self.assertEqual(idna.decode('ஹ்', uts46=True, strict=True), 'ஹ்') + self.assertEqual(idna.encode('ஹ்', uts46=True, strict=True), b'xn--dmc4b') + + def test_uts46_494(self): + self.assertEqual(idna.decode('xn--dmc4b194h', uts46=True, strict=True), 'ஹ்\u200d') + self.assertEqual(idna.encode('xn--dmc4b194h', uts46=True, strict=True), b'xn--dmc4b194h') + + def test_uts46_495(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ஹ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ஹ\u200d', strict=True) + + def test_uts46_496(self): + self.assertEqual(idna.decode('xn--dmc', uts46=True, strict=True), 'ஹ') + self.assertEqual(idna.encode('xn--dmc', uts46=True, strict=True), b'xn--dmc') + + def test_uts46_497(self): + self.assertEqual(idna.decode('ஹ', uts46=True, strict=True), 'ஹ') + self.assertEqual(idna.encode('ஹ', uts46=True, strict=True), b'xn--dmc') + + def test_uts46_498(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dmc225h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dmc225h', strict=True) + + def test_uts46_499(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d', strict=True) + + def test_uts46_500(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug', strict=True) + + def test_uts46_501(self): + self.assertEqual(idna.decode('ஹ்\u200c', uts46=True, strict=True), 'ஹ்\u200c') + self.assertEqual(idna.encode('ஹ்\u200c', uts46=True, strict=True), b'xn--dmc4by94h') + + def test_uts46_502(self): + self.assertEqual(idna.decode('xn--dmc4by94h', uts46=True, strict=True), 'ஹ்\u200c') + self.assertEqual(idna.encode('xn--dmc4by94h', uts46=True, strict=True), b'xn--dmc4by94h') + + def test_uts46_503(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ஹ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ஹ\u200c', strict=True) + + def test_uts46_504(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dmc025h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dmc025h', strict=True) + + def test_uts46_505(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c', strict=True) + + def test_uts46_506(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug', strict=True) + + def test_uts46_507(self): + self.assertEqual(idna.decode('لٰ\u200cۭۯ', uts46=True, strict=True), 'لٰ\u200cۭۯ') + self.assertEqual(idna.encode('لٰ\u200cۭۯ', uts46=True, strict=True), b'xn--ghb2gxqia7523a') + + def test_uts46_508(self): + self.assertEqual(idna.decode('xn--ghb2gxqia', uts46=True, strict=True), 'لٰۭۯ') + self.assertEqual(idna.encode('xn--ghb2gxqia', uts46=True, strict=True), b'xn--ghb2gxqia') + + def test_uts46_509(self): + self.assertEqual(idna.decode('لٰۭۯ', uts46=True, strict=True), 'لٰۭۯ') + self.assertEqual(idna.encode('لٰۭۯ', uts46=True, strict=True), b'xn--ghb2gxqia') + + def test_uts46_510(self): + self.assertEqual(idna.decode('xn--ghb2gxqia7523a', uts46=True, strict=True), 'لٰ\u200cۭۯ') + self.assertEqual(idna.encode('xn--ghb2gxqia7523a', uts46=True, strict=True), b'xn--ghb2gxqia7523a') + + def test_uts46_511(self): + self.assertEqual(idna.decode('لٰ\u200cۯ', uts46=True, strict=True), 'لٰ\u200cۯ') + self.assertEqual(idna.encode('لٰ\u200cۯ', uts46=True, strict=True), b'xn--ghb2g3qq34f') + + def test_uts46_512(self): + self.assertEqual(idna.decode('xn--ghb2g3q', uts46=True, strict=True), 'لٰۯ') + self.assertEqual(idna.encode('xn--ghb2g3q', uts46=True, strict=True), b'xn--ghb2g3q') + + def test_uts46_513(self): + self.assertEqual(idna.decode('لٰۯ', uts46=True, strict=True), 'لٰۯ') + self.assertEqual(idna.encode('لٰۯ', uts46=True, strict=True), b'xn--ghb2g3q') + + def test_uts46_514(self): + self.assertEqual(idna.decode('xn--ghb2g3qq34f', uts46=True, strict=True), 'لٰ\u200cۯ') + self.assertEqual(idna.encode('xn--ghb2g3qq34f', uts46=True, strict=True), b'xn--ghb2g3qq34f') + + def test_uts46_515(self): + self.assertEqual(idna.decode('ل\u200cۭۯ', uts46=True, strict=True), 'ل\u200cۭۯ') + self.assertEqual(idna.encode('ل\u200cۭۯ', uts46=True, strict=True), b'xn--ghb25aga828w') + + def test_uts46_516(self): + self.assertEqual(idna.decode('xn--ghb25aga', uts46=True, strict=True), 'لۭۯ') + self.assertEqual(idna.encode('xn--ghb25aga', uts46=True, strict=True), b'xn--ghb25aga') + + def test_uts46_517(self): + self.assertEqual(idna.decode('لۭۯ', uts46=True, strict=True), 'لۭۯ') + self.assertEqual(idna.encode('لۭۯ', uts46=True, strict=True), b'xn--ghb25aga') + + def test_uts46_518(self): + self.assertEqual(idna.decode('xn--ghb25aga828w', uts46=True, strict=True), 'ل\u200cۭۯ') + self.assertEqual(idna.encode('xn--ghb25aga828w', uts46=True, strict=True), b'xn--ghb25aga828w') + + def test_uts46_519(self): + self.assertEqual(idna.decode('ل\u200cۯ', uts46=True, strict=True), 'ل\u200cۯ') + self.assertEqual(idna.encode('ل\u200cۯ', uts46=True, strict=True), b'xn--ghb65a953d') + + def test_uts46_520(self): + self.assertEqual(idna.decode('xn--ghb65a', uts46=True, strict=True), 'لۯ') + self.assertEqual(idna.encode('xn--ghb65a', uts46=True, strict=True), b'xn--ghb65a') + + def test_uts46_521(self): + self.assertEqual(idna.decode('لۯ', uts46=True, strict=True), 'لۯ') + self.assertEqual(idna.encode('لۯ', uts46=True, strict=True), b'xn--ghb65a') + + def test_uts46_522(self): + self.assertEqual(idna.decode('xn--ghb65a953d', uts46=True, strict=True), 'ل\u200cۯ') + self.assertEqual(idna.encode('xn--ghb65a953d', uts46=True, strict=True), b'xn--ghb65a953d') + + def test_uts46_523(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لٰ\u200cۭ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لٰ\u200cۭ', strict=True) + + def test_uts46_524(self): + self.assertEqual(idna.decode('xn--ghb2gxq', uts46=True, strict=True), 'لٰۭ') + self.assertEqual(idna.encode('xn--ghb2gxq', uts46=True, strict=True), b'xn--ghb2gxq') + + def test_uts46_525(self): + self.assertEqual(idna.decode('لٰۭ', uts46=True, strict=True), 'لٰۭ') + self.assertEqual(idna.encode('لٰۭ', uts46=True, strict=True), b'xn--ghb2gxq') + + def test_uts46_526(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ghb2gxqy34f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ghb2gxqy34f', strict=True) + + def test_uts46_527(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۯ\u200cۯ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۯ\u200cۯ', strict=True) + + def test_uts46_528(self): + self.assertEqual(idna.decode('xn--cmba', uts46=True, strict=True), 'ۯۯ') + self.assertEqual(idna.encode('xn--cmba', uts46=True, strict=True), b'xn--cmba') + + def test_uts46_529(self): + self.assertEqual(idna.decode('ۯۯ', uts46=True, strict=True), 'ۯۯ') + self.assertEqual(idna.encode('ۯۯ', uts46=True, strict=True), b'xn--cmba') + + def test_uts46_530(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cmba004q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cmba004q', strict=True) + + def test_uts46_531(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ل\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ل\u200c', strict=True) + + def test_uts46_532(self): + self.assertEqual(idna.decode('xn--ghb', uts46=True, strict=True), 'ل') + self.assertEqual(idna.encode('xn--ghb', uts46=True, strict=True), b'xn--ghb') + + def test_uts46_533(self): + self.assertEqual(idna.decode('ل', uts46=True, strict=True), 'ل') + self.assertEqual(idna.encode('ل', uts46=True, strict=True), b'xn--ghb') + + def test_uts46_534(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ghb413k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ghb413k', strict=True) + + def test_uts46_535(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a。。b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a。。b', strict=True) + + def test_uts46_536(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A。。B', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A。。B', strict=True) + + def test_uts46_537(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a..b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a..b', strict=True) + + def test_uts46_538(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。。ڹ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。。ڹ\u200c', strict=True) + + def test_uts46_539(self): + self.assertRaises(idna.IDNAError, idna.decode, '..xn--skb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '..xn--skb', strict=True) + + def test_uts46_540(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug..xn--skb080k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug..xn--skb080k', strict=True) + + def test_uts46_541(self): + self.assertRaises(idna.IDNAError, idna.decode, 'א0٠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'א0٠', strict=True) + + def test_uts46_542(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0-zhc74b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0-zhc74b', strict=True) + + def test_uts46_543(self): + self.assertRaises(idna.IDNAError, idna.decode, '$', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '$', strict=True) + + def test_uts46_544(self): + self.assertRaises(idna.IDNAError, idna.decode, '⑷.four', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⑷.four', strict=True) + + def test_uts46_545(self): + self.assertRaises(idna.IDNAError, idna.decode, '(4).four', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '(4).four', strict=True) + + def test_uts46_546(self): + self.assertRaises(idna.IDNAError, idna.decode, '⑷.FOUR', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⑷.FOUR', strict=True) + + def test_uts46_547(self): + self.assertRaises(idna.IDNAError, idna.decode, '⑷.Four', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⑷.Four', strict=True) + + def test_uts46_548(self): + self.assertRaises(idna.IDNAError, idna.decode, 'a\ud900z', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'a\ud900z', strict=True) + + def test_uts46_549(self): + self.assertRaises(idna.IDNAError, idna.decode, 'A\ud900Z', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'A\ud900Z', strict=True) + + def test_uts46_550(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--', strict=True) + + def test_uts46_551(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---', strict=True) + + def test_uts46_552(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ASCII-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ASCII-', strict=True) + + def test_uts46_553(self): + self.assertEqual(idna.decode('ascii', uts46=True, strict=True), 'ascii') + self.assertEqual(idna.encode('ascii', uts46=True, strict=True), b'ascii') + + def test_uts46_554(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--unicode-.org', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--unicode-.org', strict=True) + + def test_uts46_555(self): + self.assertEqual(idna.decode('unicode.org', uts46=True, strict=True), 'unicode.org') + self.assertEqual(idna.encode('unicode.org', uts46=True, strict=True), b'unicode.org') + + def test_uts46_556(self): + self.assertEqual(idna.decode('陋㛼当𤎫竮䗗', uts46=True, strict=True), '陋㛼当𤎫竮䗗') + self.assertEqual(idna.encode('陋㛼当𤎫竮䗗', uts46=True, strict=True), b'xn--snl253bgitxhzwu2arn60c') + + def test_uts46_557(self): + self.assertEqual(idna.decode('陋㛼当𤎫竮䗗', uts46=True, strict=True), '陋㛼当𤎫竮䗗') + self.assertEqual(idna.encode('陋㛼当𤎫竮䗗', uts46=True, strict=True), b'xn--snl253bgitxhzwu2arn60c') + + def test_uts46_558(self): + self.assertEqual(idna.decode('xn--snl253bgitxhzwu2arn60c', uts46=True, strict=True), '陋㛼当𤎫竮䗗') + self.assertEqual(idna.encode('xn--snl253bgitxhzwu2arn60c', uts46=True, strict=True), b'xn--snl253bgitxhzwu2arn60c') + + def test_uts46_559(self): + self.assertEqual(idna.decode('電𡍪弳䎫窮䵗', uts46=True, strict=True), '電𡍪弳䎫窮䵗') + self.assertEqual(idna.encode('電𡍪弳䎫窮䵗', uts46=True, strict=True), b'xn--kbo60w31ob3z6t3av9z5b') + + def test_uts46_560(self): + self.assertEqual(idna.decode('xn--kbo60w31ob3z6t3av9z5b', uts46=True, strict=True), '電𡍪弳䎫窮䵗') + self.assertEqual(idna.encode('xn--kbo60w31ob3z6t3av9z5b', uts46=True, strict=True), b'xn--kbo60w31ob3z6t3av9z5b') + + def test_uts46_561(self): + self.assertEqual(idna.decode('xn--A-1ga', uts46=True, strict=True), 'aö') + self.assertEqual(idna.encode('xn--A-1ga', uts46=True, strict=True), b'xn--a-1ga') + + def test_uts46_562(self): + self.assertEqual(idna.decode('aö', uts46=True, strict=True), 'aö') + self.assertEqual(idna.encode('aö', uts46=True, strict=True), b'xn--a-1ga') + + def test_uts46_563(self): + self.assertEqual(idna.decode('aö', uts46=True, strict=True), 'aö') + self.assertEqual(idna.encode('aö', uts46=True, strict=True), b'xn--a-1ga') + + def test_uts46_564(self): + self.assertEqual(idna.decode('AÖ', uts46=True, strict=True), 'aö') + self.assertEqual(idna.encode('AÖ', uts46=True, strict=True), b'xn--a-1ga') + + def test_uts46_565(self): + self.assertEqual(idna.decode('AÖ', uts46=True, strict=True), 'aö') + self.assertEqual(idna.encode('AÖ', uts46=True, strict=True), b'xn--a-1ga') + + def test_uts46_566(self): + self.assertEqual(idna.decode('Aö', uts46=True, strict=True), 'aö') + self.assertEqual(idna.encode('Aö', uts46=True, strict=True), b'xn--a-1ga') + + def test_uts46_567(self): + self.assertEqual(idna.decode('Aö', uts46=True, strict=True), 'aö') + self.assertEqual(idna.encode('Aö', uts46=True, strict=True), b'xn--a-1ga') + + def test_uts46_568(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠', strict=True) + + def test_uts46_569(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠', strict=True) + + def test_uts46_570(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠', strict=True) + + def test_uts46_571(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch', strict=True) + + def test_uts46_575(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertEqual(idna.encode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), b'123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + + def test_uts46_576(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertEqual(idna.encode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), b'123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + + def test_uts46_577(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.', strict=True) + + def test_uts46_578(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.', strict=True) + + def test_uts46_579(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', strict=True) + + def test_uts46_580(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c', strict=True) + + def test_uts46_581(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', strict=True) + + def test_uts46_582(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a', strict=True) + + def test_uts46_583(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', strict=True) + + def test_uts46_584(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.', strict=True) + + def test_uts46_585(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', strict=True) + + def test_uts46_586(self): + self.assertEqual(idna.decode('123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', uts46=True, strict=True), '123456789012345678901234567890123456789012345678901234567890123.1234567890ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b') + self.assertRaises(idna.IDNAError, idna.encode, '123456789012345678901234567890123456789012345678901234567890123.1234567890Ä1234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b', strict=True) + + def test_uts46_593(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒕∝ٟ\U00093926.-󠄯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒕∝ٟ\U00093926.-󠄯', strict=True) + + def test_uts46_594(self): + self.assertRaises(idna.IDNAError, idna.decode, '14.∝ٟ\U00093926.-󠄯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '14.∝ٟ\U00093926.-󠄯', strict=True) + + def test_uts46_595(self): + self.assertRaises(idna.IDNAError, idna.decode, '14.xn--7hb713l3v90n.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '14.xn--7hb713l3v90n.-', strict=True) + + def test_uts46_596(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7hb713lfwbi1311b.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7hb713lfwbi1311b.-', strict=True) + + def test_uts46_597(self): + self.assertEqual(idna.decode('ꡣ.ߏ', uts46=True, strict=True), 'ꡣ.ߏ') + self.assertEqual(idna.encode('ꡣ.ߏ', uts46=True, strict=True), b'xn--8c9a.xn--qsb') + + def test_uts46_598(self): + self.assertEqual(idna.decode('xn--8c9a.xn--qsb', uts46=True, strict=True), 'ꡣ.ߏ') + self.assertEqual(idna.encode('xn--8c9a.xn--qsb', uts46=True, strict=True), b'xn--8c9a.xn--qsb') + + def test_uts46_599(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯\u0603。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯\u0603。-', strict=True) + + def test_uts46_600(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯\u0603。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯\u0603。-', strict=True) + + def test_uts46_601(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯\u0603。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯\u0603。-', strict=True) + + def test_uts46_602(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯\u0603。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯\u0603。-', strict=True) + + def test_uts46_603(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lfb566l.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lfb566l.-', strict=True) + + def test_uts46_604(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾛𐹧⾕.ᅟ\U000e05f0ςႭ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾛𐹧⾕.ᅟ\U000e05f0ςႭ', strict=True) + + def test_uts46_605(self): + self.assertRaises(idna.IDNAError, idna.decode, '走𐹧谷.ᅟ\U000e05f0ςႭ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '走𐹧谷.ᅟ\U000e05f0ςႭ', strict=True) + + def test_uts46_606(self): + self.assertRaises(idna.IDNAError, idna.decode, '走𐹧谷.ᅟ\U000e05f0ςⴍ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '走𐹧谷.ᅟ\U000e05f0ςⴍ', strict=True) + + def test_uts46_607(self): + self.assertRaises(idna.IDNAError, idna.decode, '走𐹧谷.ᅟ\U000e05f0ΣႭ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '走𐹧谷.ᅟ\U000e05f0ΣႭ', strict=True) + + def test_uts46_608(self): + self.assertRaises(idna.IDNAError, idna.decode, '走𐹧谷.ᅟ\U000e05f0σⴍ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '走𐹧谷.ᅟ\U000e05f0σⴍ', strict=True) + + def test_uts46_609(self): + self.assertRaises(idna.IDNAError, idna.decode, '走𐹧谷.ᅟ\U000e05f0Σⴍ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '走𐹧谷.ᅟ\U000e05f0Σⴍ', strict=True) + + def test_uts46_610(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6g3a1x434z.xn--4xa452s5d17u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6g3a1x434z.xn--4xa452s5d17u', strict=True) + + def test_uts46_611(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6g3a1x434z.xn--3xa652s5d17u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6g3a1x434z.xn--3xa652s5d17u', strict=True) + + def test_uts46_612(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾛𐹧⾕.ᅟ\U000e05f0ςⴍ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾛𐹧⾕.ᅟ\U000e05f0ςⴍ', strict=True) + + def test_uts46_613(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾛𐹧⾕.ᅟ\U000e05f0ΣႭ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾛𐹧⾕.ᅟ\U000e05f0ΣႭ', strict=True) + + def test_uts46_614(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾛𐹧⾕.ᅟ\U000e05f0σⴍ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾛𐹧⾕.ᅟ\U000e05f0σⴍ', strict=True) + + def test_uts46_615(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾛𐹧⾕.ᅟ\U000e05f0Σⴍ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾛𐹧⾕.ᅟ\U000e05f0Σⴍ', strict=True) + + def test_uts46_616(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6g3a1x434z.xn--4xa180eotvh7453a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6g3a1x434z.xn--4xa180eotvh7453a', strict=True) + + def test_uts46_617(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6g3a1x434z.xn--4xa627dhpae6345i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6g3a1x434z.xn--4xa627dhpae6345i', strict=True) + + def test_uts46_618(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6g3a1x434z.xn--3xa380eotvh7453a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6g3a1x434z.xn--3xa380eotvh7453a', strict=True) + + def test_uts46_619(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6g3a1x434z.xn--3xa827dhpae6345i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6g3a1x434z.xn--3xa827dhpae6345i', strict=True) + + def test_uts46_620(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d≠ᢙ≯.솣-ᡴႠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d≠ᢙ≯.솣-ᡴႠ', strict=True) + + def test_uts46_621(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d≠ᢙ≯.솣-ᡴႠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d≠ᢙ≯.솣-ᡴႠ', strict=True) + + def test_uts46_622(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d≠ᢙ≯.솣-ᡴⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d≠ᢙ≯.솣-ᡴⴀ', strict=True) + + def test_uts46_623(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d≠ᢙ≯.솣-ᡴⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d≠ᢙ≯.솣-ᡴⴀ', strict=True) + + def test_uts46_624(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jbf911clb.xn----p9j493ivi4l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jbf911clb.xn----p9j493ivi4l', strict=True) + + def test_uts46_625(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ᢙ≯.솣-ᡴⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ᢙ≯.솣-ᡴⴀ', strict=True) + + def test_uts46_626(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ᢙ≯.솣-ᡴⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ᢙ≯.솣-ᡴⴀ', strict=True) + + def test_uts46_627(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ᢙ≯.솣-ᡴႠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ᢙ≯.솣-ᡴႠ', strict=True) + + def test_uts46_628(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ᢙ≯.솣-ᡴႠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ᢙ≯.솣-ᡴႠ', strict=True) + + def test_uts46_629(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jbf929a90b0b.xn----p9j493ivi4l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jbf929a90b0b.xn----p9j493ivi4l', strict=True) + + def test_uts46_630(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jbf911clb.xn----6zg521d196p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jbf911clb.xn----6zg521d196p', strict=True) + + def test_uts46_631(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jbf929a90b0b.xn----6zg521d196p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jbf929a90b0b.xn----6zg521d196p', strict=True) + + def test_uts46_632(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006f79c.𐿇ྡྷݽ\u0600', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006f79c.𐿇ྡྷݽ\u0600', strict=True) + + def test_uts46_633(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006f79c.𐿇ྡྷݽ\u0600', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006f79c.𐿇ྡྷݽ\u0600', strict=True) + + def test_uts46_634(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006f79c.𐿇ྡྷݽ\u0600', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006f79c.𐿇ྡྷݽ\u0600', strict=True) + + def test_uts46_635(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gw68a.xn--ifb57ev2psc6027m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gw68a.xn--ifb57ev2psc6027m', strict=True) + + def test_uts46_636(self): + self.assertRaises(idna.IDNAError, idna.decode, '𣳔̃.𑓂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𣳔̃.𑓂', strict=True) + + def test_uts46_637(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nsa95820a.xn--wz1d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nsa95820a.xn--wz1d', strict=True) + + def test_uts46_638(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤀𞥅\U00058431。󠄌Ⴣꡥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤀𞥅\U00058431。󠄌Ⴣꡥ', strict=True) + + def test_uts46_639(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤢𞥅\U00058431。󠄌ⴣꡥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤢𞥅\U00058431。󠄌ⴣꡥ', strict=True) + + def test_uts46_640(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9d6hgcy3556a.xn--rlju750b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9d6hgcy3556a.xn--rlju750b', strict=True) + + def test_uts46_641(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9d6hgcy3556a.xn--7nd0578e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9d6hgcy3556a.xn--7nd0578e', strict=True) + + def test_uts46_642(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤀𞥅\U00058431。󠄌ⴣꡥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤀𞥅\U00058431。󠄌ⴣꡥ', strict=True) + + def test_uts46_643(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u08e2𑁿ς𖬱。󠅡렧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u08e2𑁿ς𖬱。󠅡렧', strict=True) + + def test_uts46_644(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u08e2𑁿ς𖬱。󠅡렧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u08e2𑁿ς𖬱。󠅡렧', strict=True) + + def test_uts46_645(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u08e2𑁿Σ𖬱。󠅡렧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u08e2𑁿Σ𖬱。󠅡렧', strict=True) + + def test_uts46_646(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u08e2𑁿Σ𖬱。󠅡렧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u08e2𑁿Σ𖬱。󠅡렧', strict=True) + + def test_uts46_647(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u08e2𑁿σ𖬱。󠅡렧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u08e2𑁿σ𖬱。󠅡렧', strict=True) + + def test_uts46_648(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u08e2𑁿σ𖬱。󠅡렧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u08e2𑁿σ𖬱。󠅡렧', strict=True) + + def test_uts46_649(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa53xp48ys2xc.xn--kn2b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa53xp48ys2xc.xn--kn2b', strict=True) + + def test_uts46_650(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa73xp48ys2xc.xn--kn2b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa73xp48ys2xc.xn--kn2b', strict=True) + + def test_uts46_651(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200d。𞤍\u200c\u200d⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200d。𞤍\u200c\u200d⒈', strict=True) + + def test_uts46_652(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200d。𞤍\u200c\u200d1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200d。𞤍\u200c\u200d1.', strict=True) + + def test_uts46_653(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200d。𞤯\u200c\u200d1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200d。𞤯\u200c\u200d1.', strict=True) + + def test_uts46_654(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--1-0i8r.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--1-0i8r.', strict=True) + + def test_uts46_655(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ugn.xn--1-rgnd61297b.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ugn.xn--1-rgnd61297b.', strict=True) + + def test_uts46_656(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200d。𞤯\u200c\u200d⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200d。𞤯\u200c\u200d⒈', strict=True) + + def test_uts46_657(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--tsh3666n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--tsh3666n', strict=True) + + def test_uts46_658(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ugn.xn--0ugc555aiv51d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ugn.xn--0ugc555aiv51d', strict=True) + + def test_uts46_659(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000853ad.Ⴒ𑇀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000853ad.Ⴒ𑇀', strict=True) + + def test_uts46_660(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000853ad.ⴒ𑇀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000853ad.ⴒ𑇀', strict=True) + + def test_uts46_661(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bn95b.xn--9kj2034e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bn95b.xn--9kj2034e', strict=True) + + def test_uts46_662(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug15083f.xn--9kj2034e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug15083f.xn--9kj2034e', strict=True) + + def test_uts46_663(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bn95b.xn--qnd6272k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bn95b.xn--qnd6272k', strict=True) + + def test_uts46_664(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug15083f.xn--qnd6272k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug15083f.xn--qnd6272k', strict=True) + + def test_uts46_665(self): + self.assertRaises(idna.IDNAError, idna.decode, '繱𑖿\u200d.8︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '繱𑖿\u200d.8︒', strict=True) + + def test_uts46_666(self): + self.assertEqual(idna.decode('繱𑖿\u200d.8。', uts46=True, strict=True), '繱𑖿\u200d.8.') + self.assertRaises(idna.IDNAError, idna.encode, '繱𑖿\u200d.8。', strict=True) + + def test_uts46_673(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gl0as212a.xn--8-o89h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gl0as212a.xn--8-o89h', strict=True) + + def test_uts46_674(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug6928ac48e.xn--8-o89h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug6928ac48e.xn--8-o89h', strict=True) + + def test_uts46_675(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆾.𞀈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆾.𞀈', strict=True) + + def test_uts46_676(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆾.𞀈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆾.𞀈', strict=True) + + def test_uts46_677(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--ph4h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--ph4h', strict=True) + + def test_uts46_678(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß۫。\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß۫。\u200d', strict=True) + + def test_uts46_679(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS۫。\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS۫。\u200d', strict=True) + + def test_uts46_680(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss۫。\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss۫。\u200d', strict=True) + + def test_uts46_681(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss۫。\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss۫。\u200d', strict=True) + + def test_uts46_684(self): + self.assertEqual(idna.decode('SS۫.', uts46=True, strict=True), 'ss۫.') + self.assertRaises(idna.IDNAError, idna.encode, 'SS۫.', strict=True) + + def test_uts46_685(self): + self.assertEqual(idna.decode('Ss۫.', uts46=True, strict=True), 'ss۫.') + self.assertRaises(idna.IDNAError, idna.encode, 'Ss۫.', strict=True) + + def test_uts46_686(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-59d.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-59d.xn--1ug', strict=True) + + def test_uts46_687(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca012a.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca012a.xn--1ug', strict=True) + + def test_uts46_688(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0435\u200c⒈.\U000e0387', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0435\u200c⒈.\U000e0387', strict=True) + + def test_uts46_689(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0435\u200c1..\U000e0387', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0435\u200c1..\U000e0387', strict=True) + + def test_uts46_690(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-bs31m..xn--tv36e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-bs31m..xn--tv36e', strict=True) + + def test_uts46_691(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-rgn37671n..xn--tv36e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-rgn37671n..xn--tv36e', strict=True) + + def test_uts46_692(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tshz2001k.xn--tv36e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tshz2001k.xn--tv36e', strict=True) + + def test_uts46_693(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug88o47900b.xn--tv36e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug88o47900b.xn--tv36e', strict=True) + + def test_uts46_694(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000df223ٟꪲß。\U000cc4e7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000df223ٟꪲß。\U000cc4e7', strict=True) + + def test_uts46_695(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000df223ٟꪲSS。\U000cc4e7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000df223ٟꪲSS。\U000cc4e7', strict=True) + + def test_uts46_696(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000df223ٟꪲss。\U000cc4e7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000df223ٟꪲss。\U000cc4e7', strict=True) + + def test_uts46_697(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000df223ٟꪲSs。\U000cc4e7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000df223ٟꪲSs。\U000cc4e7', strict=True) + + def test_uts46_698(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-3xd2839nncy1m.xn--bb79d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-3xd2839nncy1m.xn--bb79d', strict=True) + + def test_uts46_699(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca92z0t7n5w96j.xn--bb79d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca92z0t7n5w96j.xn--bb79d', strict=True) + + def test_uts46_700(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݴ\u200c𞤿。\U0003d610䉜\u200d\U0007f93c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݴ\u200c𞤿。\U0003d610䉜\u200d\U0007f93c', strict=True) + + def test_uts46_701(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݴ\u200c𞤝。\U0003d610䉜\u200d\U0007f93c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݴ\u200c𞤝。\U0003d610䉜\u200d\U0007f93c', strict=True) + + def test_uts46_702(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4pb2977v.xn--z0nt555ukbnv', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4pb2977v.xn--z0nt555ukbnv', strict=True) + + def test_uts46_703(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4pb607jjt73a.xn--1ug236ke314donv1a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4pb607jjt73a.xn--1ug236ke314donv1a', strict=True) + + def test_uts46_704(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cςᡱ⒈.≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cςᡱ⒈.≮𑄳\u200d𐮍', strict=True) + + def test_uts46_705(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cςᡱ⒈.≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cςᡱ⒈.≮𑄳\u200d𐮍', strict=True) + + def test_uts46_706(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cςᡱ1..≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cςᡱ1..≮𑄳\u200d𐮍', strict=True) + + def test_uts46_707(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cςᡱ1..≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cςᡱ1..≮𑄳\u200d𐮍', strict=True) + + def test_uts46_708(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cΣᡱ1..≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cΣᡱ1..≮𑄳\u200d𐮍', strict=True) + + def test_uts46_709(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cΣᡱ1..≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cΣᡱ1..≮𑄳\u200d𐮍', strict=True) + + def test_uts46_710(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cσᡱ1..≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cσᡱ1..≮𑄳\u200d𐮍', strict=True) + + def test_uts46_711(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cσᡱ1..≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cσᡱ1..≮𑄳\u200d𐮍', strict=True) + + def test_uts46_712(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-zmb699meq63t..xn--gdh5392g6sd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-zmb699meq63t..xn--gdh5392g6sd', strict=True) + + def test_uts46_713(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-zmb699meq63t..xn--1ug85gn777ahze', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-zmb699meq63t..xn--1ug85gn777ahze', strict=True) + + def test_uts46_714(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-xmb999meq63t..xn--1ug85gn777ahze', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-xmb999meq63t..xn--1ug85gn777ahze', strict=True) + + def test_uts46_715(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cΣᡱ⒈.≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cΣᡱ⒈.≮𑄳\u200d𐮍', strict=True) + + def test_uts46_716(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cΣᡱ⒈.≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cΣᡱ⒈.≮𑄳\u200d𐮍', strict=True) + + def test_uts46_717(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cσᡱ⒈.≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cσᡱ⒈.≮𑄳\u200d𐮍', strict=True) + + def test_uts46_718(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00094b5cσᡱ⒈.≮𑄳\u200d𐮍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00094b5cσᡱ⒈.≮𑄳\u200d𐮍', strict=True) + + def test_uts46_719(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa207hkzinr77u.xn--gdh5392g6sd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa207hkzinr77u.xn--gdh5392g6sd', strict=True) + + def test_uts46_720(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa207hkzinr77u.xn--1ug85gn777ahze', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa207hkzinr77u.xn--1ug85gn777ahze', strict=True) + + def test_uts46_721(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa407hkzinr77u.xn--1ug85gn777ahze', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa407hkzinr77u.xn--1ug85gn777ahze', strict=True) + + def test_uts46_722(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ㅤ्Ⴀ័.᠋', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ㅤ्Ⴀ័.᠋', strict=True) + + def test_uts46_723(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅠ्Ⴀ័.᠋', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅠ्Ⴀ័.᠋', strict=True) + + def test_uts46_724(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅠ्ⴀ័.᠋', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅠ्ⴀ័.᠋', strict=True) + + def test_uts46_725(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b445e53p.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b445e53p.', strict=True) + + def test_uts46_726(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ㅤ्ⴀ័.᠋', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ㅤ्ⴀ័.᠋', strict=True) + + def test_uts46_727(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b742bkqf4ty.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b742bkqf4ty.', strict=True) + + def test_uts46_728(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b468aoqa89r.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b468aoqa89r.', strict=True) + + def test_uts46_729(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b445e53po6d.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b445e53po6d.', strict=True) + + def test_uts46_730(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b468azngju2a.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b468azngju2a.', strict=True) + + def test_uts46_731(self): + self.assertRaises(idna.IDNAError, idna.decode, '❣\u200d.্𑰽ؒꤩ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '❣\u200d.্𑰽ؒꤩ', strict=True) + + def test_uts46_732(self): + self.assertRaises(idna.IDNAError, idna.decode, '❣\u200d.্𑰽ؒꤩ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '❣\u200d.্𑰽ؒꤩ', strict=True) + + def test_uts46_733(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pei.xn--0fb32q3w7q2g4d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pei.xn--0fb32q3w7q2g4d', strict=True) + + def test_uts46_734(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugy10a.xn--0fb32q3w7q2g4d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugy10a.xn--0fb32q3w7q2g4d', strict=True) + + def test_uts46_735(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𐳺\U00010e44.≯\U0006abb8ꡅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𐳺\U00010e44.≯\U0006abb8ꡅ', strict=True) + + def test_uts46_736(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𐳺\U00010e44.≯\U0006abb8ꡅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𐳺\U00010e44.≯\U0006abb8ꡅ', strict=True) + + def test_uts46_737(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh7943gk2a.xn--hdh1383c5e36c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh7943gk2a.xn--hdh1383c5e36c', strict=True) + + def test_uts46_738(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ೌ𐧅𐳏\U000e0cba。್ᠦ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ೌ𐧅𐳏\U000e0cba。್ᠦ', strict=True) + + def test_uts46_739(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ೌ𐧅𐳏\U000e0cba。್ᠦ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ೌ𐧅𐳏\U000e0cba。್ᠦ', strict=True) + + def test_uts46_740(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ೌ𐧅𐲏\U000e0cba。್ᠦ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ೌ𐧅𐲏\U000e0cba。್ᠦ', strict=True) + + def test_uts46_741(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7tc6360ky5bn2732c.xn--8tc429c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7tc6360ky5bn2732c.xn--8tc429c', strict=True) + + def test_uts46_742(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ೌ𐧅𐲏\U000e0cba。್ᠦ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ೌ𐧅𐲏\U000e0cba。್ᠦ', strict=True) + + def test_uts46_743(self): + self.assertRaises(idna.IDNAError, idna.decode, '͉。𧡫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '͉。𧡫', strict=True) + + def test_uts46_744(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nua.xn--bc6k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nua.xn--bc6k', strict=True) + + def test_uts46_745(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰿󠅦.ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰿󠅦.ᅠ', strict=True) + + def test_uts46_746(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰿󠅦.ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰿󠅦.ᅠ', strict=True) + + def test_uts46_747(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ok3d.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ok3d.', strict=True) + + def test_uts46_748(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ok3d.xn--psd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ok3d.xn--psd', strict=True) + + def test_uts46_749(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𞤆\u200d。\U000f8f04\U0001ecd2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𞤆\u200d。\U000f8f04\U0001ecd2', strict=True) + + def test_uts46_750(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𞤨\u200d。\U000f8f04\U0001ecd2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𞤨\u200d。\U000f8f04\U0001ecd2', strict=True) + + def test_uts46_751(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ni8r.xn--846h96596c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ni8r.xn--846h96596c', strict=True) + + def test_uts46_752(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ugnx367r.xn--846h96596c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ugnx367r.xn--846h96596c', strict=True) + + def test_uts46_753(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡏ\U000e01f6≯\U00033fbd。᷽⾇滸𐹰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡏ\U000e01f6≯\U00033fbd。᷽⾇滸𐹰', strict=True) + + def test_uts46_754(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡏ\U000e01f6≯\U00033fbd。᷽⾇滸𐹰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡏ\U000e01f6≯\U00033fbd。᷽⾇滸𐹰', strict=True) + + def test_uts46_755(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡏ\U000e01f6≯\U00033fbd。᷽舛滸𐹰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡏ\U000e01f6≯\U00033fbd。᷽舛滸𐹰', strict=True) + + def test_uts46_756(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡏ\U000e01f6≯\U00033fbd。᷽舛滸𐹰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡏ\U000e01f6≯\U00033fbd。᷽舛滸𐹰', strict=True) + + def test_uts46_757(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh7483cu6twwki8e.xn--yfg0765a58l0n6k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh7483cu6twwki8e.xn--yfg0765a58l0n6k', strict=True) + + def test_uts46_758(self): + self.assertRaises(idna.IDNAError, idna.decode, '蔏。𑰺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蔏。𑰺', strict=True) + + def test_uts46_759(self): + self.assertRaises(idna.IDNAError, idna.decode, '蔏。𑰺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蔏。𑰺', strict=True) + + def test_uts46_760(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uy1a.xn--jk3d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uy1a.xn--jk3d', strict=True) + + def test_uts46_761(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟿𐮋。󠄊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟿𐮋。󠄊', strict=True) + + def test_uts46_762(self): + self.assertRaises(idna.IDNAError, idna.decode, '9𐮋。󠄊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9𐮋。󠄊', strict=True) + + def test_uts46_763(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-rv5i.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-rv5i.', strict=True) + + def test_uts46_764(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000df1c7-䟖F。ߋ⒈٢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000df1c7-䟖F。ߋ⒈٢', strict=True) + + def test_uts46_765(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000df1c7-䟖F。ߋ1.٢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000df1c7-䟖F。ߋ1.٢', strict=True) + + def test_uts46_766(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000df1c7-䟖f。ߋ1.٢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000df1c7-䟖f。ߋ1.٢', strict=True) + + def test_uts46_767(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---f-mz8b08788k.xn--1-ybd.xn--bib', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---f-mz8b08788k.xn--1-ybd.xn--bib', strict=True) + + def test_uts46_768(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000df1c7-䟖f。ߋ⒈٢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000df1c7-䟖f。ߋ⒈٢', strict=True) + + def test_uts46_769(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---f-mz8b08788k.xn--bib53ev44d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---f-mz8b08788k.xn--bib53ev44d', strict=True) + + def test_uts46_770(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。𐹺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。𐹺', strict=True) + + def test_uts46_771(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。𐹺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。𐹺', strict=True) + + def test_uts46_772(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--yo0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--yo0d', strict=True) + + def test_uts46_773(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--yo0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--yo0d', strict=True) + + def test_uts46_774(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐡆.≯\u200c-𞥀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐡆.≯\u200c-𞥀', strict=True) + + def test_uts46_775(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐡆.≯\u200c-𞥀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐡆.≯\u200c-𞥀', strict=True) + + def test_uts46_776(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐡆.≯\u200c-𞤞', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐡆.≯\u200c-𞤞', strict=True) + + def test_uts46_777(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐡆.≯\u200c-𞤞', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐡆.≯\u200c-𞤞', strict=True) + + def test_uts46_778(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--le9c.xn----ogo9956r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--le9c.xn----ogo9956r', strict=True) + + def test_uts46_779(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--le9c.xn----rgn40iy359e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--le9c.xn----rgn40iy359e', strict=True) + + def test_uts46_780(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0040-。≠ﳗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0040-。≠ﳗ', strict=True) + + def test_uts46_781(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0040-。≠ﳗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0040-。≠ﳗ', strict=True) + + def test_uts46_782(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0040-。≠هج', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0040-。≠هج', strict=True) + + def test_uts46_783(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0040-。≠هج', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0040-。≠هج', strict=True) + + def test_uts46_784(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----f411m.xn--rgb7c611j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----f411m.xn--rgb7c611j', strict=True) + + def test_uts46_785(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007bb39𑈵。\u200d\U0001ea36', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007bb39𑈵。\u200d\U0001ea36', strict=True) + + def test_uts46_786(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8g1d12120a.xn--5l6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8g1d12120a.xn--5l6h', strict=True) + + def test_uts46_787(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8g1d12120a.xn--1ug6651p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8g1d12120a.xn--1ug6651p', strict=True) + + def test_uts46_788(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑋧꧀2。㧉\U00092584', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑋧꧀2。㧉\U00092584', strict=True) + + def test_uts46_789(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑋧꧀2。㧉\U00092584', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑋧꧀2。㧉\U00092584', strict=True) + + def test_uts46_790(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2-5z4eu89y.xn--97l02706d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2-5z4eu89y.xn--97l02706d', strict=True) + + def test_uts46_791(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U0003db04𐹴\U0001ea65。≯6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U0003db04𐹴\U0001ea65。≯6', strict=True) + + def test_uts46_792(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U0003db04𐹴\U0001ea65。≯6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U0003db04𐹴\U0001ea65。≯6', strict=True) + + def test_uts46_793(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--so0du768aim9m.xn--6-ogo', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--so0du768aim9m.xn--6-ogo', strict=True) + + def test_uts46_794(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug7105gf5wfxepq.xn--6-ogo', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug7105gf5wfxepq.xn--6-ogo', strict=True) + + def test_uts46_795(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑁿.𐹦\U0003b7b5-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑁿.𐹦\U0003b7b5-\u200d', strict=True) + + def test_uts46_796(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑁿.𐹦\U0003b7b5-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑁿.𐹦\U0003b7b5-\u200d', strict=True) + + def test_uts46_797(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--q30d.xn----i26i1299n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--q30d.xn----i26i1299n', strict=True) + + def test_uts46_798(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--q30d.xn----ugn1088hfsxv', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--q30d.xn----ugn1088hfsxv', strict=True) + + def test_uts46_799(self): + self.assertRaises(idna.IDNAError, idna.decode, '⤸ς\U0003ac40。ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⤸ς\U0003ac40。ᅠ', strict=True) + + def test_uts46_800(self): + self.assertRaises(idna.IDNAError, idna.decode, '⤸ς\U0003ac40。ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⤸ς\U0003ac40。ᅠ', strict=True) + + def test_uts46_801(self): + self.assertRaises(idna.IDNAError, idna.decode, '⤸Σ\U0003ac40。ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⤸Σ\U0003ac40。ᅠ', strict=True) + + def test_uts46_802(self): + self.assertRaises(idna.IDNAError, idna.decode, '⤸σ\U0003ac40。ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⤸σ\U0003ac40。ᅠ', strict=True) + + def test_uts46_803(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa192qmp03d.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa192qmp03d.', strict=True) + + def test_uts46_804(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa392qmp03d.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa392qmp03d.', strict=True) + + def test_uts46_805(self): + self.assertRaises(idna.IDNAError, idna.decode, '⤸Σ\U0003ac40。ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⤸Σ\U0003ac40。ᅠ', strict=True) + + def test_uts46_806(self): + self.assertRaises(idna.IDNAError, idna.decode, '⤸σ\U0003ac40。ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⤸σ\U0003ac40。ᅠ', strict=True) + + def test_uts46_807(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa192qmp03d.xn--psd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa192qmp03d.xn--psd', strict=True) + + def test_uts46_808(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa392qmp03d.xn--psd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa392qmp03d.xn--psd', strict=True) + + def test_uts46_809(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa192qmp03d.xn--cl7c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa192qmp03d.xn--cl7c', strict=True) + + def test_uts46_810(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa392qmp03d.xn--cl7c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa392qmp03d.xn--cl7c', strict=True) + + def test_uts46_811(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݥဵ𐫔ە.𐦬𑋪Ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݥဵ𐫔ە.𐦬𑋪Ⴃ', strict=True) + + def test_uts46_812(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݥဵ𐫔ە.𐦬𑋪ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݥဵ𐫔ە.𐦬𑋪ⴃ', strict=True) + + def test_uts46_813(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--llb10as9tqp5y.xn--ukj7371e21f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--llb10as9tqp5y.xn--ukj7371e21f', strict=True) + + def test_uts46_814(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--llb10as9tqp5y.xn--bnd9168j21f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--llb10as9tqp5y.xn--bnd9168j21f', strict=True) + + def test_uts46_815(self): + self.assertRaises(idna.IDNAError, idna.decode, '١᭄-킼.᮪ؖ٬≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '١᭄-킼.᮪ؖ٬≯', strict=True) + + def test_uts46_816(self): + self.assertRaises(idna.IDNAError, idna.decode, '١᭄-킼.᮪ؖ٬≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '١᭄-킼.᮪ؖ٬≯', strict=True) + + def test_uts46_817(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----9pc551nk39n.xn--4fb6o571degg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----9pc551nk39n.xn--4fb6o571degg', strict=True) + + def test_uts46_818(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。ۂ\u0604\U000855a1𑓂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。ۂ\u0604\U000855a1𑓂', strict=True) + + def test_uts46_819(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。ۂ\u0604\U000855a1𑓂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。ۂ\u0604\U000855a1𑓂', strict=True) + + def test_uts46_820(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--mfb39a7208dzgs3d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--mfb39a7208dzgs3d', strict=True) + + def test_uts46_821(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U000ef456\U000e0050.ֽ\U00019bb0ꡝ𐋡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U000ef456\U000e0050.ֽ\U00019bb0ꡝ𐋡', strict=True) + + def test_uts46_822(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U000ef456\U000e0050.ֽ\U00019bb0ꡝ𐋡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U000ef456\U000e0050.ֽ\U00019bb0ꡝ𐋡', strict=True) + + def test_uts46_823(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b726ey18m.xn--ldb8734fg0qcyzzg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b726ey18m.xn--ldb8734fg0qcyzzg', strict=True) + + def test_uts46_824(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug66101lt8me.xn--ldb8734fg0qcyzzg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug66101lt8me.xn--ldb8734fg0qcyzzg', strict=True) + + def test_uts46_825(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒\U00103235ς\U00040807。𐮈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒\U00103235ς\U00040807。𐮈', strict=True) + + def test_uts46_826(self): + self.assertRaises(idna.IDNAError, idna.decode, '。\U00103235ς\U00040807。𐮈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。\U00103235ς\U00040807。𐮈', strict=True) + + def test_uts46_827(self): + self.assertRaises(idna.IDNAError, idna.decode, '。\U00103235Σ\U00040807。𐮈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。\U00103235Σ\U00040807。𐮈', strict=True) + + def test_uts46_828(self): + self.assertRaises(idna.IDNAError, idna.decode, '。\U00103235σ\U00040807。𐮈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。\U00103235σ\U00040807。𐮈', strict=True) + + def test_uts46_829(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--4xa68573c7n64d.xn--f29c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--4xa68573c7n64d.xn--f29c', strict=True) + + def test_uts46_830(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--3xa88573c7n64d.xn--f29c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--3xa88573c7n64d.xn--f29c', strict=True) + + def test_uts46_831(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒\U00103235Σ\U00040807。𐮈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒\U00103235Σ\U00040807。𐮈', strict=True) + + def test_uts46_832(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒\U00103235σ\U00040807。𐮈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒\U00103235σ\U00040807。𐮈', strict=True) + + def test_uts46_833(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa1729jwz5t7gl5f.xn--f29c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa1729jwz5t7gl5f.xn--f29c', strict=True) + + def test_uts46_834(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa3729jwz5t7gl5f.xn--f29c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa3729jwz5t7gl5f.xn--f29c', strict=True) + + def test_uts46_835(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߙ.ۮ\U000c6f83≯󠅲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߙ.ۮ\U000c6f83≯󠅲', strict=True) + + def test_uts46_836(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߙ.ۮ\U000c6f83≯󠅲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߙ.ۮ\U000c6f83≯󠅲', strict=True) + + def test_uts46_837(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߙ.ۮ\U000c6f83≯󠅲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߙ.ۮ\U000c6f83≯󠅲', strict=True) + + def test_uts46_838(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߙ.ۮ\U000c6f83≯󠅲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߙ.ۮ\U000c6f83≯󠅲', strict=True) + + def test_uts46_839(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0sb.xn--bmb691l0524t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0sb.xn--bmb691l0524t', strict=True) + + def test_uts46_840(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᩳ\U000da678.𐭍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᩳ\U000da678.𐭍', strict=True) + + def test_uts46_841(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2of22352n.xn--q09c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2of22352n.xn--q09c', strict=True) + + def test_uts46_842(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒉\U000e0293≠。Ⴟ⬣Ⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒉\U000e0293≠。Ⴟ⬣Ⴈ', strict=True) + + def test_uts46_843(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒉\U000e0293≠。Ⴟ⬣Ⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒉\U000e0293≠。Ⴟ⬣Ⴈ', strict=True) + + def test_uts46_844(self): + self.assertRaises(idna.IDNAError, idna.decode, '2.\U000e0293≠。Ⴟ⬣Ⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2.\U000e0293≠。Ⴟ⬣Ⴈ', strict=True) + + def test_uts46_845(self): + self.assertRaises(idna.IDNAError, idna.decode, '2.\U000e0293≠。Ⴟ⬣Ⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2.\U000e0293≠。Ⴟ⬣Ⴈ', strict=True) + + def test_uts46_846(self): + self.assertRaises(idna.IDNAError, idna.decode, '2.\U000e0293≠。ⴟ⬣ⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2.\U000e0293≠。ⴟ⬣ⴈ', strict=True) + + def test_uts46_847(self): + self.assertRaises(idna.IDNAError, idna.decode, '2.\U000e0293≠。ⴟ⬣ⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2.\U000e0293≠。ⴟ⬣ⴈ', strict=True) + + def test_uts46_848(self): + self.assertRaises(idna.IDNAError, idna.decode, '2.xn--1chz4101l.xn--45iz7d6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2.xn--1chz4101l.xn--45iz7d6b', strict=True) + + def test_uts46_849(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒉\U000e0293≠。ⴟ⬣ⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒉\U000e0293≠。ⴟ⬣ⴈ', strict=True) + + def test_uts46_850(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒉\U000e0293≠。ⴟ⬣ⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒉\U000e0293≠。ⴟ⬣ⴈ', strict=True) + + def test_uts46_851(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch07f91401d.xn--45iz7d6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch07f91401d.xn--45iz7d6b', strict=True) + + def test_uts46_852(self): + self.assertRaises(idna.IDNAError, idna.decode, '2.xn--1chz4101l.xn--gnd9b297j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2.xn--1chz4101l.xn--gnd9b297j', strict=True) + + def test_uts46_853(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch07f91401d.xn--gnd9b297j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch07f91401d.xn--gnd9b297j', strict=True) + + def test_uts46_854(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U000e0271ྸჅ。-𐹽ݴ𞣑', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U000e0271ྸჅ。-𐹽ݴ𞣑', strict=True) + + def test_uts46_855(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U000e0271ྸⴥ。-𐹽ݴ𞣑', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U000e0271ྸⴥ。-𐹽ݴ𞣑', strict=True) + + def test_uts46_856(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----xmg317tgv352a.xn----05c4213ryr0g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----xmg317tgv352a.xn----05c4213ryr0g', strict=True) + + def test_uts46_857(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----xmg12fm2555h.xn----05c4213ryr0g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----xmg12fm2555h.xn----05c4213ryr0g', strict=True) + + def test_uts46_858(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٙ。𑄴︒اߝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٙ。𑄴︒اߝ', strict=True) + + def test_uts46_859(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٙ。𑄴。اߝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٙ。𑄴。اߝ', strict=True) + + def test_uts46_860(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1hb.xn--w80d.xn--mgb09f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1hb.xn--w80d.xn--mgb09f', strict=True) + + def test_uts46_861(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1hb.xn--mgb09fp820c08pa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1hb.xn--mgb09fp820c08pa', strict=True) + + def test_uts46_862(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴙظ.󠆓\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴙظ.󠆓\u200d', strict=True) + + def test_uts46_863(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴙظ.󠆓\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴙظ.󠆓\u200d', strict=True) + + def test_uts46_864(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3gb910r.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3gb910r.', strict=True) + + def test_uts46_865(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3gb910r.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3gb910r.xn--1ug', strict=True) + + def test_uts46_866(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3gb194c.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3gb194c.', strict=True) + + def test_uts46_867(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3gb194c.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3gb194c.xn--1ug', strict=True) + + def test_uts46_868(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆸。₆0𐺧ݖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆸。₆0𐺧ݖ', strict=True) + + def test_uts46_869(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆸。60𐺧ݖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆸。60𐺧ݖ', strict=True) + + def test_uts46_870(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--60-cke9470y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--60-cke9470y', strict=True) + + def test_uts46_871(self): + self.assertRaises(idna.IDNAError, idna.decode, '6ࡏ。-𑈴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6ࡏ。-𑈴', strict=True) + + def test_uts46_872(self): + self.assertRaises(idna.IDNAError, idna.decode, '6ࡏ。-𑈴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6ࡏ。-𑈴', strict=True) + + def test_uts46_873(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-jjd.xn----6n8i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-jjd.xn----6n8i', strict=True) + + def test_uts46_874(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U0004b33f𐹰。્ς\U0001ec0eࣖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U0004b33f𐹰。્ς\U0001ec0eࣖ', strict=True) + + def test_uts46_875(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U0004b33f𐹰。્ς\U0001ec0eࣖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U0004b33f𐹰。્ς\U0001ec0eࣖ', strict=True) + + def test_uts46_876(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U0004b33f𐹰。્Σ\U0001ec0eࣖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U0004b33f𐹰。્Σ\U0001ec0eࣖ', strict=True) + + def test_uts46_877(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U0004b33f𐹰。્σ\U0001ec0eࣖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U0004b33f𐹰。્σ\U0001ec0eࣖ', strict=True) + + def test_uts46_878(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--oo0d1330n.xn--4xa21xcwbfz15g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--oo0d1330n.xn--4xa21xcwbfz15g', strict=True) + + def test_uts46_879(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugx105gq26y.xn--4xa21xcwbfz15g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugx105gq26y.xn--4xa21xcwbfz15g', strict=True) + + def test_uts46_880(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugx105gq26y.xn--3xa41xcwbfz15g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugx105gq26y.xn--3xa41xcwbfz15g', strict=True) + + def test_uts46_881(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U0004b33f𐹰。્Σ\U0001ec0eࣖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U0004b33f𐹰。્Σ\U0001ec0eࣖ', strict=True) + + def test_uts46_882(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U0004b33f𐹰。્σ\U0001ec0eࣖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U0004b33f𐹰。્σ\U0001ec0eࣖ', strict=True) + + def test_uts46_883(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈\U0005f11cႳ⒪.්\U00098636ࢋ𐹢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈\U0005f11cႳ⒪.්\U00098636ࢋ𐹢', strict=True) + + def test_uts46_884(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.\U0005f11cႳ(o).්\U00098636ࢋ𐹢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.\U0005f11cႳ(o).්\U00098636ࢋ𐹢', strict=True) + + def test_uts46_885(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.\U0005f11cⴓ(o).්\U00098636ࢋ𐹢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.\U0005f11cⴓ(o).්\U00098636ࢋ𐹢', strict=True) + + def test_uts46_886(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.\U0005f11cႳ(O).්\U00098636ࢋ𐹢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.\U0005f11cႳ(O).්\U00098636ࢋ𐹢', strict=True) + + def test_uts46_887(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--(o)-ej1bu5389e.xn--3xb99xpx1yoes3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--(o)-ej1bu5389e.xn--3xb99xpx1yoes3e', strict=True) + + def test_uts46_888(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈\U0005f11cⴓ⒪.්\U00098636ࢋ𐹢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈\U0005f11cⴓ⒪.්\U00098636ࢋ𐹢', strict=True) + + def test_uts46_889(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--(o)-ge4ax01c3t74t.xn--3xb99xpx1yoes3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--(o)-ge4ax01c3t74t.xn--3xb99xpx1yoes3e', strict=True) + + def test_uts46_890(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--(o)-7sn88849j.xn--3xb99xpx1yoes3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--(o)-7sn88849j.xn--3xb99xpx1yoes3e', strict=True) + + def test_uts46_891(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh0ds63atl31n.xn--3xb99xpx1yoes3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh0ds63atl31n.xn--3xb99xpx1yoes3e', strict=True) + + def test_uts46_892(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rnd762h7cx3027d.xn--3xb99xpx1yoes3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rnd762h7cx3027d.xn--3xb99xpx1yoes3e', strict=True) + + def test_uts46_893(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤷.𐮐𞢁𐹠ؤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤷.𐮐𞢁𐹠ؤ', strict=True) + + def test_uts46_894(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤷.𐮐𞢁𐹠ؤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤷.𐮐𞢁𐹠ؤ', strict=True) + + def test_uts46_895(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤕.𐮐𞢁𐹠ؤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤕.𐮐𞢁𐹠ؤ', strict=True) + + def test_uts46_896(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤕.𐮐𞢁𐹠ؤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤕.𐮐𞢁𐹠ؤ', strict=True) + + def test_uts46_897(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ve6h.xn--jgb1694kz0b2176a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ve6h.xn--jgb1694kz0b2176a', strict=True) + + def test_uts46_898(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐲈-。𑄳\U0006233b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐲈-。𑄳\U0006233b', strict=True) + + def test_uts46_899(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐲈-。𑄳\U0006233b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐲈-。𑄳\U0006233b', strict=True) + + def test_uts46_900(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐳈-。𑄳\U0006233b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐳈-。𑄳\U0006233b', strict=True) + + def test_uts46_901(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ue6i.xn--v80d6662t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ue6i.xn--v80d6662t', strict=True) + + def test_uts46_902(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐳈-。𑄳\U0006233b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐳈-。𑄳\U0006233b', strict=True) + + def test_uts46_903(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U000e0256ꡧ.\U000e0282\U00047183🄉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U000e0256ꡧ.\U000e0282\U00047183🄉', strict=True) + + def test_uts46_904(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U000e0256ꡧ.\U000e0282\U000471838,', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U000e0256ꡧ.\U000e0282\U000471838,', strict=True) + + def test_uts46_905(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----hg4ei0361g.xn--8,-k362evu488a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----hg4ei0361g.xn--8,-k362evu488a', strict=True) + + def test_uts46_906(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----hg4ei0361g.xn--207ht163h7m94c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----hg4ei0361g.xn--207ht163h7m94c', strict=True) + + def test_uts46_907(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0f9b\U000e0234臯𧔤.ݨ𝟝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0f9b\U000e0234臯𧔤.ݨ𝟝', strict=True) + + def test_uts46_908(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0f9b\U000e0234臯𧔤.ݨ5', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0f9b\U000e0234臯𧔤.ݨ5', strict=True) + + def test_uts46_909(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zb1at733hm579ddhla.xn--5-b5c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zb1at733hm579ddhla.xn--5-b5c', strict=True) + + def test_uts46_910(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𐹣.𝨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𐹣.𝨿', strict=True) + + def test_uts46_911(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𐹣.𝨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𐹣.𝨿', strict=True) + + def test_uts46_912(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𐹣.𝨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𐹣.𝨿', strict=True) + + def test_uts46_913(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𐹣.𝨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𐹣.𝨿', strict=True) + + def test_uts46_914(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh1504g.xn--e92h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh1504g.xn--e92h', strict=True) + + def test_uts46_915(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹯ᯛ੍。脥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹯ᯛ੍。脥', strict=True) + + def test_uts46_916(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹯ᯛ੍。脥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹯ᯛ੍。脥', strict=True) + + def test_uts46_917(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ybc101g3m1p.xn--740a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ybc101g3m1p.xn--740a', strict=True) + + def test_uts46_918(self): + self.assertRaises(idna.IDNAError, idna.decode, '᭄ᅟ\U0001edff\U0008300d.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᭄ᅟ\U0001edff\U0008300d.-', strict=True) + + def test_uts46_919(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1uf9538sxny9a.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1uf9538sxny9a.-', strict=True) + + def test_uts46_920(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--osd971cpx70btgt8b.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--osd971cpx70btgt8b.-', strict=True) + + def test_uts46_921(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。͔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。͔', strict=True) + + def test_uts46_922(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。͔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。͔', strict=True) + + def test_uts46_923(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--yua', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--yua', strict=True) + + def test_uts46_924(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--yua', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--yua', strict=True) + + def test_uts46_925(self): + self.assertEqual(idna.decode('𞤥󠅮.ᡄႮ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤥󠅮.ᡄႮ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_926(self): + self.assertEqual(idna.decode('𞤥󠅮.ᡄႮ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤥󠅮.ᡄႮ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_927(self): + self.assertEqual(idna.decode('𞤥󠅮.ᡄⴎ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤥󠅮.ᡄⴎ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_928(self): + self.assertEqual(idna.decode('𞤃󠅮.ᡄႮ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤃󠅮.ᡄႮ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_929(self): + self.assertEqual(idna.decode('𞤃󠅮.ᡄⴎ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤃󠅮.ᡄⴎ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_930(self): + self.assertEqual(idna.decode('xn--de6h.xn--37e857h', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('xn--de6h.xn--37e857h', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_931(self): + self.assertEqual(idna.decode('𞤥.ᡄⴎ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤥.ᡄⴎ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_932(self): + self.assertEqual(idna.decode('𞤃.ᡄႮ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤃.ᡄႮ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_933(self): + self.assertEqual(idna.decode('𞤃.ᡄⴎ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤃.ᡄⴎ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_934(self): + self.assertEqual(idna.decode('𞤥󠅮.ᡄⴎ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤥󠅮.ᡄⴎ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_935(self): + self.assertEqual(idna.decode('𞤃󠅮.ᡄႮ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤃󠅮.ᡄႮ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_936(self): + self.assertEqual(idna.decode('𞤃󠅮.ᡄⴎ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤃󠅮.ᡄⴎ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_937(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--de6h.xn--mnd799a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--de6h.xn--mnd799a', strict=True) + + def test_uts46_938(self): + self.assertEqual(idna.decode('𞤥.ᡄႮ', uts46=True, strict=True), '𞤥.ᡄⴎ') + self.assertEqual(idna.encode('𞤥.ᡄႮ', uts46=True, strict=True), b'xn--de6h.xn--37e857h') + + def test_uts46_939(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤧𝨨Ξ.𪺏㛨❸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤧𝨨Ξ.𪺏㛨❸', strict=True) + + def test_uts46_940(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤧𝨨Ξ.𪺏㛨❸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤧𝨨Ξ.𪺏㛨❸', strict=True) + + def test_uts46_941(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤧𝨨ξ.𪺏㛨❸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤧𝨨ξ.𪺏㛨❸', strict=True) + + def test_uts46_942(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤅𝨨Ξ.𪺏㛨❸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤅𝨨Ξ.𪺏㛨❸', strict=True) + + def test_uts46_943(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤅𝨨ξ.𪺏㛨❸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤅𝨨ξ.𪺏㛨❸', strict=True) + + def test_uts46_944(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zxa5691vboja.xn--bfi293ci119b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zxa5691vboja.xn--bfi293ci119b', strict=True) + + def test_uts46_945(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤧𝨨ξ.𪺏㛨❸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤧𝨨ξ.𪺏㛨❸', strict=True) + + def test_uts46_946(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤅𝨨Ξ.𪺏㛨❸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤅𝨨Ξ.𪺏㛨❸', strict=True) + + def test_uts46_947(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤅𝨨ξ.𪺏㛨❸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤅𝨨ξ.𪺏㛨❸', strict=True) + + def test_uts46_948(self): + self.assertRaises(idna.IDNAError, idna.decode, '᠆몆\u200c-。Ⴛ𐦅︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᠆몆\u200c-。Ⴛ𐦅︒', strict=True) + + def test_uts46_949(self): + self.assertRaises(idna.IDNAError, idna.decode, '᠆몆\u200c-。Ⴛ𐦅︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᠆몆\u200c-。Ⴛ𐦅︒', strict=True) + + def test_uts46_950(self): + self.assertRaises(idna.IDNAError, idna.decode, '᠆몆\u200c-。Ⴛ𐦅。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᠆몆\u200c-。Ⴛ𐦅。', strict=True) + + def test_uts46_951(self): + self.assertRaises(idna.IDNAError, idna.decode, '᠆몆\u200c-。Ⴛ𐦅。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᠆몆\u200c-。Ⴛ𐦅。', strict=True) + + def test_uts46_952(self): + self.assertRaises(idna.IDNAError, idna.decode, '᠆몆\u200c-。ⴛ𐦅。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᠆몆\u200c-。ⴛ𐦅。', strict=True) + + def test_uts46_953(self): + self.assertRaises(idna.IDNAError, idna.decode, '᠆몆\u200c-。ⴛ𐦅。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᠆몆\u200c-。ⴛ𐦅。', strict=True) + + def test_uts46_954(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----e3j6620g.xn--jlju661e.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----e3j6620g.xn--jlju661e.', strict=True) + + def test_uts46_955(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----e3j425bsk1o.xn--jlju661e.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----e3j425bsk1o.xn--jlju661e.', strict=True) + + def test_uts46_956(self): + self.assertRaises(idna.IDNAError, idna.decode, '᠆몆\u200c-。ⴛ𐦅︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᠆몆\u200c-。ⴛ𐦅︒', strict=True) + + def test_uts46_957(self): + self.assertRaises(idna.IDNAError, idna.decode, '᠆몆\u200c-。ⴛ𐦅︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᠆몆\u200c-。ⴛ𐦅︒', strict=True) + + def test_uts46_958(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----e3j6620g.xn--jlj4997dhgh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----e3j6620g.xn--jlj4997dhgh', strict=True) + + def test_uts46_959(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----e3j425bsk1o.xn--jlj4997dhgh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----e3j425bsk1o.xn--jlj4997dhgh', strict=True) + + def test_uts46_960(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----e3j6620g.xn--znd4948j.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----e3j6620g.xn--znd4948j.', strict=True) + + def test_uts46_961(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----e3j425bsk1o.xn--znd4948j.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----e3j425bsk1o.xn--znd4948j.', strict=True) + + def test_uts46_962(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----e3j6620g.xn--znd2362jhgh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----e3j6620g.xn--znd2362jhgh', strict=True) + + def test_uts46_963(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----e3j425bsk1o.xn--znd2362jhgh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----e3j425bsk1o.xn--znd2362jhgh', strict=True) + + def test_uts46_964(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0fb3.︒⥱\u200c𐹬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0fb3.︒⥱\u200c𐹬', strict=True) + + def test_uts46_965(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0fb3.。⥱\u200c𐹬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0fb3.。⥱\u200c𐹬', strict=True) + + def test_uts46_966(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uf66e..xn--qti2829e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uf66e..xn--qti2829e', strict=True) + + def test_uts46_967(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uf66e..xn--0ugz28as66q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uf66e..xn--0ugz28as66q', strict=True) + + def test_uts46_968(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uf66e.xn--qtiz073e3ik', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uf66e.xn--qtiz073e3ik', strict=True) + + def test_uts46_969(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uf66e.xn--0ugz28axl3pqxna', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uf66e.xn--0ugz28axl3pqxna', strict=True) + + def test_uts46_970(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010bd6.𐹠Ⴑ\U0005a1dc𐫊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010bd6.𐹠Ⴑ\U0005a1dc𐫊', strict=True) + + def test_uts46_971(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010bd6.𐹠ⴑ\U0005a1dc𐫊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010bd6.𐹠ⴑ\U0005a1dc𐫊', strict=True) + + def test_uts46_972(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n49c.xn--8kj8702ewicl862o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n49c.xn--8kj8702ewicl862o', strict=True) + + def test_uts46_973(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n49c.xn--pnd4619jwicl862o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n49c.xn--pnd4619jwicl862o', strict=True) + + def test_uts46_974(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྤ\U0007192f.𝟭Ⴛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྤ\U0007192f.𝟭Ⴛ', strict=True) + + def test_uts46_975(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྤ\U0007192f.1Ⴛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྤ\U0007192f.1Ⴛ', strict=True) + + def test_uts46_976(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྤ\U0007192f.1ⴛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྤ\U0007192f.1ⴛ', strict=True) + + def test_uts46_977(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0fd40533g.xn--1-tws', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0fd40533g.xn--1-tws', strict=True) + + def test_uts46_978(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྤ\U0007192f.𝟭ⴛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྤ\U0007192f.𝟭ⴛ', strict=True) + + def test_uts46_979(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0fd40533g.xn--1-q1g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0fd40533g.xn--1-q1g', strict=True) + + def test_uts46_980(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ࠦ齀。릿\U00010e0b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ࠦ齀。릿\U00010e0b', strict=True) + + def test_uts46_981(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ࠦ齀。릿\U00010e0b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ࠦ齀。릿\U00010e0b', strict=True) + + def test_uts46_982(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----6gd0617i.xn--7y2bm55m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----6gd0617i.xn--7y2bm55m', strict=True) + + def test_uts46_983(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e050aܜ鹝꾗。\U0007ed50\u200d\u200d⏃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e050aܜ鹝꾗。\U0007ed50\u200d\u200d⏃', strict=True) + + def test_uts46_984(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e050aܜ鹝꾗。\U0007ed50\u200d\u200d⏃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e050aܜ鹝꾗。\U0007ed50\u200d\u200d⏃', strict=True) + + def test_uts46_985(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mnb6558e91kyq533a.xn--6mh27269e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mnb6558e91kyq533a.xn--6mh27269e', strict=True) + + def test_uts46_986(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mnb6558e91kyq533a.xn--1uga46zs309y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mnb6558e91kyq533a.xn--1uga46zs309y', strict=True) + + def test_uts46_987(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮.-܈--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮.-܈--', strict=True) + + def test_uts46_988(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮.-܈--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮.-܈--', strict=True) + + def test_uts46_989(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮.-܈--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮.-܈--', strict=True) + + def test_uts46_990(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮.-܈--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮.-܈--', strict=True) + + def test_uts46_991(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh.xn------eqf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh.xn------eqf', strict=True) + + def test_uts46_992(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹸\U000e02f3。\u200dς𝟩', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹸\U000e02f3。\u200dς𝟩', strict=True) + + def test_uts46_993(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹸\U000e02f3。\u200dς7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹸\U000e02f3。\u200dς7', strict=True) + + def test_uts46_994(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹸\U000e02f3。\u200dΣ7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹸\U000e02f3。\u200dΣ7', strict=True) + + def test_uts46_995(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹸\U000e02f3。\u200dσ7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹸\U000e02f3。\u200dσ7', strict=True) + + def test_uts46_996(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wo0di5177c.xn--7-zmb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wo0di5177c.xn--7-zmb', strict=True) + + def test_uts46_997(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wo0di5177c.xn--7-zmb938s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wo0di5177c.xn--7-zmb938s', strict=True) + + def test_uts46_998(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wo0di5177c.xn--7-xmb248s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wo0di5177c.xn--7-xmb248s', strict=True) + + def test_uts46_999(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹸\U000e02f3。\u200dΣ𝟩', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹸\U000e02f3。\u200dΣ𝟩', strict=True) + + def test_uts46_1000(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹸\U000e02f3。\u200dσ𝟩', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹸\U000e02f3。\u200dσ𝟩', strict=True) + + def test_uts46_1001(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς\U0008570c8.\U0001eb64', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς\U0008570c8.\U0001eb64', strict=True) + + def test_uts46_1002(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς\U0008570c8.\U0001eb64', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς\U0008570c8.\U0001eb64', strict=True) + + def test_uts46_1003(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ\U0008570c8.\U0001eb64', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ\U0008570c8.\U0001eb64', strict=True) + + def test_uts46_1004(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ\U0008570c8.\U0001eb64', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ\U0008570c8.\U0001eb64', strict=True) + + def test_uts46_1005(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-zmb14974n.xn--su6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-zmb14974n.xn--su6h', strict=True) + + def test_uts46_1006(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-xmb44974n.xn--su6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-xmb44974n.xn--su6h', strict=True) + + def test_uts46_1007(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ\U0008570c8.\U0001eb64', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ\U0008570c8.\U0001eb64', strict=True) + + def test_uts46_1008(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ\U0008570c8.\U0001eb64', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ\U0008570c8.\U0001eb64', strict=True) + + def test_uts46_1009(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cᡑ🄀ڄ.-𐫄𑲤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cᡑ🄀ڄ.-𐫄𑲤', strict=True) + + def test_uts46_1010(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cᡑ0.ڄ.-𐫄𑲤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cᡑ0.ڄ.-𐫄𑲤', strict=True) + + def test_uts46_1011(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0-o7j.xn--9ib.xn----ek5i065b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0-o7j.xn--9ib.xn----ek5i065b', strict=True) + + def test_uts46_1012(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0-o7j263b.xn--9ib.xn----ek5i065b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0-o7j263b.xn--9ib.xn----ek5i065b', strict=True) + + def test_uts46_1013(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ib722gbw95a.xn----ek5i065b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ib722gbw95a.xn----ek5i065b', strict=True) + + def test_uts46_1014(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ib722gvtfi563c.xn----ek5i065b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ib722gvtfi563c.xn----ek5i065b', strict=True) + + def test_uts46_1015(self): + self.assertRaises(idna.IDNAError, idna.decode, '𖠍。\U00010abf넯\U0009ed72', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𖠍。\U00010abf넯\U0009ed72', strict=True) + + def test_uts46_1016(self): + self.assertRaises(idna.IDNAError, idna.decode, '𖠍。\U00010abf넯\U0009ed72', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𖠍。\U00010abf넯\U0009ed72', strict=True) + + def test_uts46_1017(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4e9e.xn--l60bj21opd57g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4e9e.xn--l60bj21opd57g', strict=True) + + def test_uts46_1018(self): + self.assertRaises(idna.IDNAError, idna.decode, '᠇Ⴘ。\u0603Ⴈ𝆊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᠇Ⴘ。\u0603Ⴈ𝆊', strict=True) + + def test_uts46_1019(self): + self.assertRaises(idna.IDNAError, idna.decode, '᠇ⴘ。\u0603ⴈ𝆊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᠇ⴘ。\u0603ⴈ𝆊', strict=True) + + def test_uts46_1020(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--d6e009h.xn--lfb290rfu3z', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--d6e009h.xn--lfb290rfu3z', strict=True) + + def test_uts46_1021(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wnd558a.xn--lfb465c1v87a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wnd558a.xn--lfb465c1v87a', strict=True) + + def test_uts46_1022(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒚\U000e02d1𞤰。牣٧Ⴜᣥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒚\U000e02d1𞤰。牣٧Ⴜᣥ', strict=True) + + def test_uts46_1023(self): + self.assertRaises(idna.IDNAError, idna.decode, '19.\U000e02d1𞤰。牣٧Ⴜᣥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '19.\U000e02d1𞤰。牣٧Ⴜᣥ', strict=True) + + def test_uts46_1024(self): + self.assertRaises(idna.IDNAError, idna.decode, '19.\U000e02d1𞤰。牣٧ⴜᣥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '19.\U000e02d1𞤰。牣٧ⴜᣥ', strict=True) + + def test_uts46_1025(self): + self.assertRaises(idna.IDNAError, idna.decode, '19.\U000e02d1𞤎。牣٧Ⴜᣥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '19.\U000e02d1𞤎。牣٧Ⴜᣥ', strict=True) + + def test_uts46_1026(self): + self.assertRaises(idna.IDNAError, idna.decode, '19.\U000e02d1𞤎。牣٧ⴜᣥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '19.\U000e02d1𞤎。牣٧ⴜᣥ', strict=True) + + def test_uts46_1027(self): + self.assertRaises(idna.IDNAError, idna.decode, '19.xn--oe6h75760c.xn--gib285gtxo2l9d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '19.xn--oe6h75760c.xn--gib285gtxo2l9d', strict=True) + + def test_uts46_1028(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒚\U000e02d1𞤰。牣٧ⴜᣥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒚\U000e02d1𞤰。牣٧ⴜᣥ', strict=True) + + def test_uts46_1029(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒚\U000e02d1𞤎。牣٧Ⴜᣥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒚\U000e02d1𞤎。牣٧Ⴜᣥ', strict=True) + + def test_uts46_1030(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒚\U000e02d1𞤎。牣٧ⴜᣥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒚\U000e02d1𞤎。牣٧ⴜᣥ', strict=True) + + def test_uts46_1031(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cthy466n29j3e.xn--gib285gtxo2l9d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cthy466n29j3e.xn--gib285gtxo2l9d', strict=True) + + def test_uts46_1032(self): + self.assertRaises(idna.IDNAError, idna.decode, '19.xn--oe6h75760c.xn--gib404ccxgh00h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '19.xn--oe6h75760c.xn--gib404ccxgh00h', strict=True) + + def test_uts46_1033(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cthy466n29j3e.xn--gib404ccxgh00h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cthy466n29j3e.xn--gib404ccxgh00h', strict=True) + + def test_uts46_1034(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𐋱𐰽⒈.Ⴓ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𐋱𐰽⒈.Ⴓ', strict=True) + + def test_uts46_1035(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𐋱𐰽1..Ⴓ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𐋱𐰽1..Ⴓ', strict=True) + + def test_uts46_1036(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𐋱𐰽1..ⴓ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𐋱𐰽1..ⴓ', strict=True) + + def test_uts46_1037(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---1-895nq11a..xn--blj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---1-895nq11a..xn--blj', strict=True) + + def test_uts46_1038(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𐋱𐰽⒈.ⴓ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𐋱𐰽⒈.ⴓ', strict=True) + + def test_uts46_1039(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ecp0206g90h.xn--blj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ecp0206g90h.xn--blj', strict=True) + + def test_uts46_1040(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---1-895nq11a..xn--rnd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---1-895nq11a..xn--rnd', strict=True) + + def test_uts46_1041(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ecp0206g90h.xn--rnd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ecp0206g90h.xn--rnd', strict=True) + + def test_uts46_1042(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c긃.榶-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c긃.榶-', strict=True) + + def test_uts46_1043(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c긃.榶-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c긃.榶-', strict=True) + + def test_uts46_1044(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ej0b.xn----d87b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ej0b.xn----d87b', strict=True) + + def test_uts46_1045(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug3307c.xn----d87b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug3307c.xn----d87b', strict=True) + + def test_uts46_1046(self): + self.assertRaises(idna.IDNAError, idna.decode, '뉓泓\U0001cd7d.্\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '뉓泓\U0001cd7d.্\u200d', strict=True) + + def test_uts46_1047(self): + self.assertRaises(idna.IDNAError, idna.decode, '뉓泓\U0001cd7d.্\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '뉓泓\U0001cd7d.্\u200d', strict=True) + + def test_uts46_1048(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lwwp69lqs7m.xn--b7b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lwwp69lqs7m.xn--b7b', strict=True) + + def test_uts46_1049(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lwwp69lqs7m.xn--b7b605i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lwwp69lqs7m.xn--b7b605i', strict=True) + + def test_uts46_1050(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹴ß。ິ\u2b75\U0006a14c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹴ß。ິ\u2b75\U0006a14c', strict=True) + + def test_uts46_1051(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹴ß。ິ\u2b75\U0006a14c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹴ß。ິ\u2b75\U0006a14c', strict=True) + + def test_uts46_1052(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹴SS。ິ\u2b75\U0006a14c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹴SS。ິ\u2b75\U0006a14c', strict=True) + + def test_uts46_1053(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹴ss。ິ\u2b75\U0006a14c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹴ss。ິ\u2b75\U0006a14c', strict=True) + + def test_uts46_1054(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹴Ss。ິ\u2b75\U0006a14c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹴Ss。ິ\u2b75\U0006a14c', strict=True) + + def test_uts46_1055(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-ti3o.xn--57c638l8774i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-ti3o.xn--57c638l8774i', strict=True) + + def test_uts46_1056(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-l1t5169j.xn--57c638l8774i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-l1t5169j.xn--57c638l8774i', strict=True) + + def test_uts46_1057(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca770nip7n.xn--57c638l8774i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca770nip7n.xn--57c638l8774i', strict=True) + + def test_uts46_1058(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹴SS。ິ\u2b75\U0006a14c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹴SS。ິ\u2b75\U0006a14c', strict=True) + + def test_uts46_1059(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹴ss。ິ\u2b75\U0006a14c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹴ss。ິ\u2b75\U0006a14c', strict=True) + + def test_uts46_1060(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹴Ss。ິ\u2b75\U0006a14c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹴Ss。ິ\u2b75\U0006a14c', strict=True) + + def test_uts46_1061(self): + self.assertRaises(idna.IDNAError, idna.decode, '᭄.᮪-≮≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᭄.᮪-≮≠', strict=True) + + def test_uts46_1062(self): + self.assertRaises(idna.IDNAError, idna.decode, '᭄.᮪-≮≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᭄.᮪-≮≠', strict=True) + + def test_uts46_1063(self): + self.assertRaises(idna.IDNAError, idna.decode, '᭄.᮪-≮≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᭄.᮪-≮≠', strict=True) + + def test_uts46_1064(self): + self.assertRaises(idna.IDNAError, idna.decode, '᭄.᮪-≮≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᭄.᮪-≮≠', strict=True) + + def test_uts46_1065(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1uf.xn----nmlz65aub', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1uf.xn----nmlz65aub', strict=True) + + def test_uts46_1066(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳Ⴑᅟ.𑄴Ⅎ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳Ⴑᅟ.𑄴Ⅎ', strict=True) + + def test_uts46_1067(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳Ⴑᅟ.𑄴Ⅎ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳Ⴑᅟ.𑄴Ⅎ', strict=True) + + def test_uts46_1068(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳ⴑᅟ.𑄴ⅎ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳ⴑᅟ.𑄴ⅎ', strict=True) + + def test_uts46_1069(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳Ⴑᅟ.𑄴ⅎ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳Ⴑᅟ.𑄴ⅎ', strict=True) + + def test_uts46_1070(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1zf224e.xn--73g3065g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1zf224e.xn--73g3065g', strict=True) + + def test_uts46_1071(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳ⴑᅟ.𑄴ⅎ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳ⴑᅟ.𑄴ⅎ', strict=True) + + def test_uts46_1072(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳Ⴑᅟ.𑄴ⅎ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳Ⴑᅟ.𑄴ⅎ', strict=True) + + def test_uts46_1073(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pnd26a55x.xn--73g3065g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pnd26a55x.xn--73g3065g', strict=True) + + def test_uts46_1074(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--osd925cvyn.xn--73g3065g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--osd925cvyn.xn--73g3065g', strict=True) + + def test_uts46_1075(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pnd26a55x.xn--f3g7465g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pnd26a55x.xn--f3g7465g', strict=True) + + def test_uts46_1076(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001c246。Ⴃ𐴣𐹹똯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001c246。Ⴃ𐴣𐹹똯', strict=True) + + def test_uts46_1077(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001c246。Ⴃ𐴣𐹹똯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001c246。Ⴃ𐴣𐹹똯', strict=True) + + def test_uts46_1078(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001c246。ⴃ𐴣𐹹똯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001c246。ⴃ𐴣𐹹똯', strict=True) + + def test_uts46_1079(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001c246。ⴃ𐴣𐹹똯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001c246。ⴃ𐴣𐹹똯', strict=True) + + def test_uts46_1080(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--187g.xn--ukjy205b8rscdeb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--187g.xn--ukjy205b8rscdeb', strict=True) + + def test_uts46_1081(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--187g.xn--bnd4785f8r8bdeb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--187g.xn--bnd4785f8r8bdeb', strict=True) + + def test_uts46_1082(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫀。⳻\U000e067e󠄷ㅤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫀。⳻\U000e067e󠄷ㅤ', strict=True) + + def test_uts46_1083(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫀。⳻\U000e067e󠄷ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫀。⳻\U000e067e󠄷ᅠ', strict=True) + + def test_uts46_1084(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pw9c.xn--mkjw9654i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pw9c.xn--mkjw9654i', strict=True) + + def test_uts46_1085(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pw9c.xn--psd742lxt32w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pw9c.xn--psd742lxt32w', strict=True) + + def test_uts46_1086(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pw9c.xn--mkj83l4v899a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pw9c.xn--mkj83l4v899a', strict=True) + + def test_uts46_1087(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ޚ⾇.ܞ-𐋰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ޚ⾇.ܞ-𐋰', strict=True) + + def test_uts46_1088(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ޚ舛.ܞ-𐋰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ޚ舛.ܞ-𐋰', strict=True) + + def test_uts46_1089(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7qb6383d.xn----20c3154q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7qb6383d.xn----20c3154q', strict=True) + + def test_uts46_1090(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴉ猕\U000f96eb≮.︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴉ猕\U000f96eb≮.︒', strict=True) + + def test_uts46_1091(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴉ猕\U000f96eb≮.︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴉ猕\U000f96eb≮.︒', strict=True) + + def test_uts46_1092(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴉ猕\U000f96eb≮.。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴉ猕\U000f96eb≮.。', strict=True) + + def test_uts46_1093(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴉ猕\U000f96eb≮.。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴉ猕\U000f96eb≮.。', strict=True) + + def test_uts46_1094(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴉ猕\U000f96eb≮.。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴉ猕\U000f96eb≮.。', strict=True) + + def test_uts46_1095(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴉ猕\U000f96eb≮.。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴉ猕\U000f96eb≮.。', strict=True) + + def test_uts46_1096(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh892bbz0d5438s..', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh892bbz0d5438s..', strict=True) + + def test_uts46_1097(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴉ猕\U000f96eb≮.︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴉ猕\U000f96eb≮.︒', strict=True) + + def test_uts46_1098(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴉ猕\U000f96eb≮.︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴉ猕\U000f96eb≮.︒', strict=True) + + def test_uts46_1099(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh892bbz0d5438s.xn--y86c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh892bbz0d5438s.xn--y86c', strict=True) + + def test_uts46_1100(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hnd212gz32d54x5r..', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hnd212gz32d54x5r..', strict=True) + + def test_uts46_1101(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hnd212gz32d54x5r.xn--y86c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hnd212gz32d54x5r.xn--y86c', strict=True) + + def test_uts46_1102(self): + self.assertRaises(idna.IDNAError, idna.decode, '🏮。ث鳳ߢ󠅉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🏮。ث鳳ߢ󠅉', strict=True) + + def test_uts46_1103(self): + self.assertRaises(idna.IDNAError, idna.decode, '🏮。ث鳳ߢ󠅉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🏮。ث鳳ߢ󠅉', strict=True) + + def test_uts46_1104(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8m8h.xn--qgb29f6z90a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8m8h.xn--qgb29f6z90a', strict=True) + + def test_uts46_1105(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹶。ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹶。ß', strict=True) + + def test_uts46_1106(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹶。SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹶。SS', strict=True) + + def test_uts46_1107(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹶。ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹶。ss', strict=True) + + def test_uts46_1108(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹶。Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹶。Ss', strict=True) + + def test_uts46_1109(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uo0d.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uo0d.ss', strict=True) + + def test_uts46_1110(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug9105g.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug9105g.ss', strict=True) + + def test_uts46_1111(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug9105g.xn--zca', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug9105g.xn--zca', strict=True) + + def test_uts46_1112(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Å둄-.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Å둄-.\u200c', strict=True) + + def test_uts46_1113(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Å둄-.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Å둄-.\u200c', strict=True) + + def test_uts46_1114(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Å둄-.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Å둄-.\u200c', strict=True) + + def test_uts46_1115(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Å둄-.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Å둄-.\u200c', strict=True) + + def test_uts46_1116(self): + self.assertRaises(idna.IDNAError, idna.decode, 'å둄-.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'å둄-.\u200c', strict=True) + + def test_uts46_1117(self): + self.assertRaises(idna.IDNAError, idna.decode, 'å둄-.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'å둄-.\u200c', strict=True) + + def test_uts46_1118(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----1fa1788k.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----1fa1788k.', strict=True) + + def test_uts46_1119(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----1fa1788k.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----1fa1788k.xn--0ug', strict=True) + + def test_uts46_1120(self): + self.assertRaises(idna.IDNAError, idna.decode, 'å둄-.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'å둄-.\u200c', strict=True) + + def test_uts46_1121(self): + self.assertRaises(idna.IDNAError, idna.decode, 'å둄-.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'å둄-.\u200c', strict=True) + + def test_uts46_1122(self): + self.assertRaises(idna.IDNAError, idna.decode, '゙\U000ac391ᷗ𞤀.\U000b1ca2-॓', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '゙\U000ac391ᷗ𞤀.\U000b1ca2-॓', strict=True) + + def test_uts46_1123(self): + self.assertRaises(idna.IDNAError, idna.decode, '゙\U000ac391ᷗ𞤢.\U000b1ca2-॓', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '゙\U000ac391ᷗ𞤢.\U000b1ca2-॓', strict=True) + + def test_uts46_1124(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--veg121fwg63altj9d.xn----eyd92688s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--veg121fwg63altj9d.xn----eyd92688s', strict=True) + + def test_uts46_1125(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς.ß\U00074c44\u06dd⵿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς.ß\U00074c44\u06dd⵿', strict=True) + + def test_uts46_1126(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ.SS\U00074c44\u06dd⵿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ.SS\U00074c44\u06dd⵿', strict=True) + + def test_uts46_1127(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ.ss\U00074c44\u06dd⵿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ.ss\U00074c44\u06dd⵿', strict=True) + + def test_uts46_1128(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ.ss\U00074c44\u06dd⵿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ.ss\U00074c44\u06dd⵿', strict=True) + + def test_uts46_1129(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa.xn--ss-y8d4760biv60n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa.xn--ss-y8d4760biv60n', strict=True) + + def test_uts46_1130(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ.ß\U00074c44\u06dd⵿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ.ß\U00074c44\u06dd⵿', strict=True) + + def test_uts46_1131(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ.ß\U00074c44\u06dd⵿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ.ß\U00074c44\u06dd⵿', strict=True) + + def test_uts46_1132(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa.xn--zca281az71b8x73m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa.xn--zca281az71b8x73m', strict=True) + + def test_uts46_1133(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa.xn--zca281az71b8x73m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa.xn--zca281az71b8x73m', strict=True) + + def test_uts46_1134(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡀ𞀟。٫֙', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡀ𞀟。٫֙', strict=True) + + def test_uts46_1135(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡀ𞀟。٫֙', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡀ𞀟。٫֙', strict=True) + + def test_uts46_1136(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8b9a1720d.xn--kcb33b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8b9a1720d.xn--kcb33b', strict=True) + + def test_uts46_1137(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000886c9\u200cࢩ。⧅\U00058621-𐭡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000886c9\u200cࢩ。⧅\U00058621-𐭡', strict=True) + + def test_uts46_1138(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000886c9\u200cࢩ。⧅\U00058621-𐭡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000886c9\u200cࢩ。⧅\U00058621-𐭡', strict=True) + + def test_uts46_1139(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--yyb56242i.xn----zir1232guu71b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--yyb56242i.xn----zir1232guu71b', strict=True) + + def test_uts46_1140(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--yyb780jll63m.xn----zir1232guu71b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--yyb780jll63m.xn----zir1232guu71b', strict=True) + + def test_uts46_1141(self): + self.assertRaises(idna.IDNAError, idna.decode, '룱\u200d𰍨\u200c。𝨖︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '룱\u200d𰍨\u200c。𝨖︒', strict=True) + + def test_uts46_1142(self): + self.assertRaises(idna.IDNAError, idna.decode, '룱\u200d𰍨\u200c。𝨖︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '룱\u200d𰍨\u200c。𝨖︒', strict=True) + + def test_uts46_1143(self): + self.assertRaises(idna.IDNAError, idna.decode, '룱\u200d𰍨\u200c。𝨖。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '룱\u200d𰍨\u200c。𝨖。', strict=True) + + def test_uts46_1144(self): + self.assertRaises(idna.IDNAError, idna.decode, '룱\u200d𰍨\u200c。𝨖。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '룱\u200d𰍨\u200c。𝨖。', strict=True) + + def test_uts46_1145(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ct2b0738h.xn--772h.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ct2b0738h.xn--772h.', strict=True) + + def test_uts46_1146(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugb3358ili2v.xn--772h.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugb3358ili2v.xn--772h.', strict=True) + + def test_uts46_1147(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ct2b0738h.xn--y86cl899a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ct2b0738h.xn--y86cl899a', strict=True) + + def test_uts46_1148(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugb3358ili2v.xn--y86cl899a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugb3358ili2v.xn--y86cl899a', strict=True) + + def test_uts46_1149(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄄.᳜⒈ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄄.᳜⒈ß', strict=True) + + def test_uts46_1150(self): + self.assertRaises(idna.IDNAError, idna.decode, '3,.᳜1.ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3,.᳜1.ß', strict=True) + + def test_uts46_1151(self): + self.assertRaises(idna.IDNAError, idna.decode, '3,.᳜1.SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3,.᳜1.SS', strict=True) + + def test_uts46_1152(self): + self.assertRaises(idna.IDNAError, idna.decode, '3,.᳜1.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3,.᳜1.ss', strict=True) + + def test_uts46_1153(self): + self.assertRaises(idna.IDNAError, idna.decode, '3,.᳜1.Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3,.᳜1.Ss', strict=True) + + def test_uts46_1154(self): + self.assertRaises(idna.IDNAError, idna.decode, '3,.xn--1-43l.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3,.xn--1-43l.ss', strict=True) + + def test_uts46_1155(self): + self.assertRaises(idna.IDNAError, idna.decode, '3,.xn--1-43l.xn--zca', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3,.xn--1-43l.xn--zca', strict=True) + + def test_uts46_1156(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄄.᳜⒈SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄄.᳜⒈SS', strict=True) + + def test_uts46_1157(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄄.᳜⒈ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄄.᳜⒈ss', strict=True) + + def test_uts46_1158(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄄.᳜⒈Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄄.᳜⒈Ss', strict=True) + + def test_uts46_1159(self): + self.assertRaises(idna.IDNAError, idna.decode, '3,.xn--ss-k1r094b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3,.xn--ss-k1r094b', strict=True) + + def test_uts46_1160(self): + self.assertRaises(idna.IDNAError, idna.decode, '3,.xn--zca344lmif', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3,.xn--zca344lmif', strict=True) + + def test_uts46_1161(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--x07h.xn--ss-k1r094b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--x07h.xn--ss-k1r094b', strict=True) + + def test_uts46_1162(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--x07h.xn--zca344lmif', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--x07h.xn--zca344lmif', strict=True) + + def test_uts46_1163(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004730d⵿。\U0001ef13\U000a1128𑐺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004730d⵿。\U0001ef13\U000a1128𑐺', strict=True) + + def test_uts46_1164(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004730d⵿。\U0001ef13\U000a1128𑐺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004730d⵿。\U0001ef13\U000a1128𑐺', strict=True) + + def test_uts46_1165(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--eoj16016a.xn--0v1d3848a3lr0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--eoj16016a.xn--0v1d3848a3lr0d', strict=True) + + def test_uts46_1166(self): + self.assertRaises(idna.IDNAError, idna.decode, '်्᷽.≠\u200d㇛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '်्᷽.≠\u200d㇛', strict=True) + + def test_uts46_1167(self): + self.assertRaises(idna.IDNAError, idna.decode, '်्᷽.≠\u200d㇛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '်्᷽.≠\u200d㇛', strict=True) + + def test_uts46_1168(self): + self.assertRaises(idna.IDNAError, idna.decode, '်्᷽.≠\u200d㇛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '်्᷽.≠\u200d㇛', strict=True) + + def test_uts46_1169(self): + self.assertRaises(idna.IDNAError, idna.decode, '်्᷽.≠\u200d㇛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '်्᷽.≠\u200d㇛', strict=True) + + def test_uts46_1170(self): + self.assertRaises(idna.IDNAError, idna.decode, '်्᷽.≠\u200d㇛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '်्᷽.≠\u200d㇛', strict=True) + + def test_uts46_1171(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b956a9zm.xn--1ch912d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b956a9zm.xn--1ch912d', strict=True) + + def test_uts46_1172(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b956a9zm.xn--1ug63gz5w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b956a9zm.xn--1ug63gz5w', strict=True) + + def test_uts46_1173(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴁ𐋨娤.\u200d̼٢𑖿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴁ𐋨娤.\u200d̼٢𑖿', strict=True) + + def test_uts46_1174(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴁ𐋨娤.\u200d̼٢𑖿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴁ𐋨娤.\u200d̼٢𑖿', strict=True) + + def test_uts46_1175(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--skjw75lg29h.xn--9ta62nrv36a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--skjw75lg29h.xn--9ta62nrv36a', strict=True) + + def test_uts46_1176(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--skjw75lg29h.xn--9ta62ngt6aou8t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--skjw75lg29h.xn--9ta62ngt6aou8t', strict=True) + + def test_uts46_1177(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8md2578ag21g.xn--9ta62nrv36a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8md2578ag21g.xn--9ta62nrv36a', strict=True) + + def test_uts46_1178(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8md2578ag21g.xn--9ta62ngt6aou8t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8md2578ag21g.xn--9ta62ngt6aou8t', strict=True) + + def test_uts46_1179(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄀Ⴄ٩ࠠ。⒈ྶß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄀Ⴄ٩ࠠ。⒈ྶß', strict=True) + + def test_uts46_1180(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.Ⴄ٩ࠠ。1.ྶß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.Ⴄ٩ࠠ。1.ྶß', strict=True) + + def test_uts46_1181(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.ⴄ٩ࠠ。1.ྶß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.ⴄ٩ࠠ。1.ྶß', strict=True) + + def test_uts46_1182(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.Ⴄ٩ࠠ。1.ྶSS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.Ⴄ٩ࠠ。1.ྶSS', strict=True) + + def test_uts46_1183(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.ⴄ٩ࠠ。1.ྶss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.ⴄ٩ࠠ。1.ྶss', strict=True) + + def test_uts46_1184(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.Ⴄ٩ࠠ。1.ྶSs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.Ⴄ٩ࠠ。1.ྶSs', strict=True) + + def test_uts46_1185(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.xn--iib29fp25e.1.xn--ss-1sj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.xn--iib29fp25e.1.xn--ss-1sj', strict=True) + + def test_uts46_1186(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.xn--iib29fp25e.1.xn--zca117e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.xn--iib29fp25e.1.xn--zca117e', strict=True) + + def test_uts46_1187(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄀ⴄ٩ࠠ。⒈ྶß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄀ⴄ٩ࠠ。⒈ྶß', strict=True) + + def test_uts46_1188(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄀Ⴄ٩ࠠ。⒈ྶSS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄀Ⴄ٩ࠠ。⒈ྶSS', strict=True) + + def test_uts46_1189(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄀ⴄ٩ࠠ。⒈ྶss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄀ⴄ٩ࠠ。⒈ྶss', strict=True) + + def test_uts46_1190(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄀Ⴄ٩ࠠ。⒈ྶSs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄀Ⴄ٩ࠠ。⒈ྶSs', strict=True) + + def test_uts46_1191(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iib29fp25e0219a.xn--ss-1sj588o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iib29fp25e0219a.xn--ss-1sj588o', strict=True) + + def test_uts46_1192(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iib29fp25e0219a.xn--zca117e3vp', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iib29fp25e0219a.xn--zca117e3vp', strict=True) + + def test_uts46_1193(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.xn--iib29f26o.1.xn--ss-1sj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.xn--iib29f26o.1.xn--ss-1sj', strict=True) + + def test_uts46_1194(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.xn--iib29f26o.1.xn--zca117e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.xn--iib29f26o.1.xn--zca117e', strict=True) + + def test_uts46_1195(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iib29f26o6n43c.xn--ss-1sj588o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iib29f26o6n43c.xn--ss-1sj588o', strict=True) + + def test_uts46_1196(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iib29f26o6n43c.xn--zca117e3vp', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iib29f26o6n43c.xn--zca117e3vp', strict=True) + + def test_uts46_1197(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.\u200c-٫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.\u200c-٫', strict=True) + + def test_uts46_1198(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.\u200c-٫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.\u200c-٫', strict=True) + + def test_uts46_1199(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch.xn----vqc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch.xn----vqc', strict=True) + + def test_uts46_1200(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch.xn----vqc597q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch.xn----vqc597q', strict=True) + + def test_uts46_1201(self): + self.assertRaises(idna.IDNAError, idna.decode, '٠۱。\U000e0cf6𞠁٥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٠۱。\U000e0cf6𞠁٥', strict=True) + + def test_uts46_1202(self): + self.assertRaises(idna.IDNAError, idna.decode, '٠۱。\U000e0cf6𞠁٥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٠۱。\U000e0cf6𞠁٥', strict=True) + + def test_uts46_1203(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8hb40a.xn--eib7967vner3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8hb40a.xn--eib7967vner3e', strict=True) + + def test_uts46_1204(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c٣⒖。\U000f1149\U0003dddb᯳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c٣⒖。\U000f1149\U0003dddb᯳', strict=True) + + def test_uts46_1205(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c٣15.。\U000f1149\U0003dddb᯳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c٣15.。\U000f1149\U0003dddb᯳', strict=True) + + def test_uts46_1206(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--15-gyd..xn--1zf13512buy41d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--15-gyd..xn--1zf13512buy41d', strict=True) + + def test_uts46_1207(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--15-gyd983x..xn--1zf13512buy41d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--15-gyd983x..xn--1zf13512buy41d', strict=True) + + def test_uts46_1208(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cib675m.xn--1zf13512buy41d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cib675m.xn--1zf13512buy41d', strict=True) + + def test_uts46_1209(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cib152kwgd.xn--1zf13512buy41d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cib152kwgd.xn--1zf13512buy41d', strict=True) + + def test_uts46_1210(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳.-逋\U000739ad\U000d966e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳.-逋\U000739ad\U000d966e', strict=True) + + def test_uts46_1211(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1zf.xn----483d46987byr50b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1zf.xn----483d46987byr50b', strict=True) + + def test_uts46_1212(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݖ。ㅤ\u200dς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݖ。ㅤ\u200dς', strict=True) + + def test_uts46_1213(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݖ。ᅠ\u200dς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݖ。ᅠ\u200dς', strict=True) + + def test_uts46_1214(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݖ。ᅠ\u200dΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݖ。ᅠ\u200dΣ', strict=True) + + def test_uts46_1215(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݖ。ᅠ\u200dσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݖ。ᅠ\u200dσ', strict=True) + + def test_uts46_1216(self): + self.assertEqual(idna.decode('xn--9ob.xn--4xa', uts46=True, strict=True), 'ݖ.σ') + self.assertEqual(idna.encode('xn--9ob.xn--4xa', uts46=True, strict=True), b'xn--9ob.xn--4xa') + + def test_uts46_1217(self): + self.assertEqual(idna.decode('ݖ.σ', uts46=True, strict=True), 'ݖ.σ') + self.assertEqual(idna.encode('ݖ.σ', uts46=True, strict=True), b'xn--9ob.xn--4xa') + + def test_uts46_1218(self): + self.assertEqual(idna.decode('ݖ.Σ', uts46=True, strict=True), 'ݖ.σ') + self.assertEqual(idna.encode('ݖ.Σ', uts46=True, strict=True), b'xn--9ob.xn--4xa') + + def test_uts46_1219(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ob.xn--4xa795l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ob.xn--4xa795l', strict=True) + + def test_uts46_1220(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ob.xn--3xa995l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ob.xn--3xa995l', strict=True) + + def test_uts46_1221(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݖ。ㅤ\u200dΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݖ。ㅤ\u200dΣ', strict=True) + + def test_uts46_1222(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݖ。ㅤ\u200dσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݖ。ㅤ\u200dσ', strict=True) + + def test_uts46_1223(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ob.xn--4xa380e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ob.xn--4xa380e', strict=True) + + def test_uts46_1224(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ob.xn--4xa380ebol', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ob.xn--4xa380ebol', strict=True) + + def test_uts46_1225(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ob.xn--3xa580ebol', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ob.xn--3xa580ebol', strict=True) + + def test_uts46_1226(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ob.xn--4xa574u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ob.xn--4xa574u', strict=True) + + def test_uts46_1227(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ob.xn--4xa795lq2l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ob.xn--4xa795lq2l', strict=True) + + def test_uts46_1228(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ob.xn--3xa995lq2l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ob.xn--3xa995lq2l', strict=True) + + def test_uts46_1229(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡆႣ。\U000de8a7̕\u200d\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡆႣ。\U000de8a7̕\u200d\u200d', strict=True) + + def test_uts46_1230(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡆႣ。\U000de8a7̕\u200d\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡆႣ。\U000de8a7̕\u200d\u200d', strict=True) + + def test_uts46_1231(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡆⴃ。\U000de8a7̕\u200d\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡆⴃ。\U000de8a7̕\u200d\u200d', strict=True) + + def test_uts46_1232(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--57e237h.xn--5sa98523p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--57e237h.xn--5sa98523p', strict=True) + + def test_uts46_1233(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--57e237h.xn--5sa649la993427a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--57e237h.xn--5sa649la993427a', strict=True) + + def test_uts46_1234(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡆⴃ。\U000de8a7̕\u200d\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡆⴃ。\U000de8a7̕\u200d\u200d', strict=True) + + def test_uts46_1235(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bnd320b.xn--5sa98523p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bnd320b.xn--5sa98523p', strict=True) + + def test_uts46_1236(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bnd320b.xn--5sa649la993427a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bnd320b.xn--5sa649la993427a', strict=True) + + def test_uts46_1237(self): + self.assertRaises(idna.IDNAError, idna.decode, '㭄\u200dࡏ𑚵.ς𐮮\u200c\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㭄\u200dࡏ𑚵.ς𐮮\u200c\u200d', strict=True) + + def test_uts46_1238(self): + self.assertRaises(idna.IDNAError, idna.decode, '㭄\u200dࡏ𑚵.ς𐮮\u200c\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㭄\u200dࡏ𑚵.ς𐮮\u200c\u200d', strict=True) + + def test_uts46_1239(self): + self.assertRaises(idna.IDNAError, idna.decode, '㭄\u200dࡏ𑚵.Σ𐮮\u200c\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㭄\u200dࡏ𑚵.Σ𐮮\u200c\u200d', strict=True) + + def test_uts46_1240(self): + self.assertRaises(idna.IDNAError, idna.decode, '㭄\u200dࡏ𑚵.σ𐮮\u200c\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㭄\u200dࡏ𑚵.σ𐮮\u200c\u200d', strict=True) + + def test_uts46_1241(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ewb302xhu1l.xn--4xa0426k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ewb302xhu1l.xn--4xa0426k', strict=True) + + def test_uts46_1242(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ewb962jfitku4r.xn--4xa695lda6932v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ewb962jfitku4r.xn--4xa695lda6932v', strict=True) + + def test_uts46_1243(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ewb962jfitku4r.xn--3xa895lda6932v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ewb962jfitku4r.xn--3xa895lda6932v', strict=True) + + def test_uts46_1244(self): + self.assertRaises(idna.IDNAError, idna.decode, '㭄\u200dࡏ𑚵.Σ𐮮\u200c\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㭄\u200dࡏ𑚵.Σ𐮮\u200c\u200d', strict=True) + + def test_uts46_1245(self): + self.assertRaises(idna.IDNAError, idna.decode, '㭄\u200dࡏ𑚵.σ𐮮\u200c\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㭄\u200dࡏ𑚵.σ𐮮\u200c\u200d', strict=True) + + def test_uts46_1246(self): + self.assertRaises(idna.IDNAError, idna.decode, '឵。\U0001ebf8ꡀ🄋', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '឵。\U0001ebf8ꡀ🄋', strict=True) + + def test_uts46_1247(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--8b9ar252dngd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--8b9ar252dngd', strict=True) + + def test_uts46_1248(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--03e.xn--8b9ar252dngd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--03e.xn--8b9ar252dngd', strict=True) + + def test_uts46_1249(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d0aba暑.⾑٨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d0aba暑.⾑٨', strict=True) + + def test_uts46_1250(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d0aba暑.襾٨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d0aba暑.襾٨', strict=True) + + def test_uts46_1251(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tlvq3513e.xn--hib9228d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tlvq3513e.xn--hib9228d', strict=True) + + def test_uts46_1252(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄚≯ꡢ。\u0891᷿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄚≯ꡢ。\u0891᷿', strict=True) + + def test_uts46_1253(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄚≯ꡢ。\u0891᷿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄚≯ꡢ。\u0891᷿', strict=True) + + def test_uts46_1254(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh7783c.xn--9xb680i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh7783c.xn--9xb680i', strict=True) + + def test_uts46_1255(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﷃ𮁱୍𐨿.\U000d09e4Ⴗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﷃ𮁱୍𐨿.\U000d09e4Ⴗ', strict=True) + + def test_uts46_1256(self): + self.assertRaises(idna.IDNAError, idna.decode, 'كمم𮁱୍𐨿.\U000d09e4Ⴗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'كمم𮁱୍𐨿.\U000d09e4Ⴗ', strict=True) + + def test_uts46_1257(self): + self.assertRaises(idna.IDNAError, idna.decode, 'كمم𮁱୍𐨿.\U000d09e4ⴗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'كمم𮁱୍𐨿.\U000d09e4ⴗ', strict=True) + + def test_uts46_1258(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fhbea662czx68a2tju.xn--fljz2846h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fhbea662czx68a2tju.xn--fljz2846h', strict=True) + + def test_uts46_1259(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﷃ𮁱୍𐨿.\U000d09e4ⴗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﷃ𮁱୍𐨿.\U000d09e4ⴗ', strict=True) + + def test_uts46_1260(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fhbea662czx68a2tju.xn--vnd55511o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fhbea662czx68a2tju.xn--vnd55511o', strict=True) + + def test_uts46_1261(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞀨。᭄\U000a16e8\U0001e387', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞀨。᭄\U000a16e8\U0001e387', strict=True) + + def test_uts46_1262(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞀨。᭄\U000a16e8\U0001e387', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞀨。᭄\U000a16e8\U0001e387', strict=True) + + def test_uts46_1263(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mi4h.xn--1uf6843smg20c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mi4h.xn--1uf6843smg20c', strict=True) + + def test_uts46_1264(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e08fc\u200c.𐺰\u200cᡟ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e08fc\u200c.𐺰\u200cᡟ', strict=True) + + def test_uts46_1265(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e08fc\u200c.𐺰\u200cᡟ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e08fc\u200c.𐺰\u200cᡟ', strict=True) + + def test_uts46_1266(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--q046e.xn--v8e7227j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--q046e.xn--v8e7227j', strict=True) + + def test_uts46_1267(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug18531l.xn--v8e340bp21t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug18531l.xn--v8e340bp21t', strict=True) + + def test_uts46_1268(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢛ\U000e815fß.ጧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢛ\U000e815fß.ጧ', strict=True) + + def test_uts46_1269(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢛ\U000e815fSS.ጧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢛ\U000e815fSS.ጧ', strict=True) + + def test_uts46_1270(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢛ\U000e815fss.ጧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢛ\U000e815fss.ጧ', strict=True) + + def test_uts46_1271(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢛ\U000e815fSs.ጧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢛ\U000e815fSs.ጧ', strict=True) + + def test_uts46_1272(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-7dp66033t.xn--p5d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-7dp66033t.xn--p5d', strict=True) + + def test_uts46_1273(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca562jc642x.xn--p5d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca562jc642x.xn--p5d', strict=True) + + def test_uts46_1274(self): + self.assertRaises(idna.IDNAError, idna.decode, '⮒\u200c.\U00052697\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⮒\u200c.\U00052697\u200c', strict=True) + + def test_uts46_1275(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b9i.xn--5p9y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b9i.xn--5p9y', strict=True) + + def test_uts46_1276(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugx66b.xn--0ugz2871c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugx66b.xn--0ugz2871c', strict=True) + + def test_uts46_1277(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤂\U00079781𐹯。Ⴜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤂\U00079781𐹯。Ⴜ', strict=True) + + def test_uts46_1278(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤤\U00079781𐹯。ⴜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤤\U00079781𐹯。ⴜ', strict=True) + + def test_uts46_1279(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--no0dr648a51o3b.xn--klj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--no0dr648a51o3b.xn--klj', strict=True) + + def test_uts46_1280(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--no0dr648a51o3b.xn--0nd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--no0dr648a51o3b.xn--0nd', strict=True) + + def test_uts46_1281(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤂\U00079781𐹯。ⴜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤂\U00079781𐹯。ⴜ', strict=True) + + def test_uts46_1282(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹵⮣\u200c𑄰。\U00077d3fﲷ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹵⮣\u200c𑄰。\U00077d3fﲷ', strict=True) + + def test_uts46_1283(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹵⮣\u200c𑄰。\U00077d3fضم', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹵⮣\u200c𑄰。\U00077d3fضم', strict=True) + + def test_uts46_1284(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--s9i5458e7yb.xn--1gb4a66004i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--s9i5458e7yb.xn--1gb4a66004i', strict=True) + + def test_uts46_1285(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug586bcj8p7jc.xn--1gb4a66004i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug586bcj8p7jc.xn--1gb4a66004i', strict=True) + + def test_uts46_1286(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴒ。デß𞤵్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴒ。デß𞤵్', strict=True) + + def test_uts46_1287(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴒ。デß𞤵్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴒ。デß𞤵్', strict=True) + + def test_uts46_1288(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴒ。デß𞤵్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴒ。デß𞤵్', strict=True) + + def test_uts46_1289(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴒ。デß𞤵్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴒ。デß𞤵్', strict=True) + + def test_uts46_1290(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴒ。デSS𞤓్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴒ。デSS𞤓్', strict=True) + + def test_uts46_1291(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴒ。デSS𞤓్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴒ。デSS𞤓్', strict=True) + + def test_uts46_1292(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴒ。デss𞤵్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴒ。デss𞤵్', strict=True) + + def test_uts46_1293(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴒ。デss𞤵్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴒ。デss𞤵్', strict=True) + + def test_uts46_1294(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴒ。デSs𞤵్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴒ。デSs𞤵్', strict=True) + + def test_uts46_1295(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴒ。デSs𞤵్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴒ。デSs𞤵్', strict=True) + + def test_uts46_1296(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9kj.xn--ss-9nh3648ahh20b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9kj.xn--ss-9nh3648ahh20b', strict=True) + + def test_uts46_1297(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9kj.xn--zca669cmr3a0f28a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9kj.xn--zca669cmr3a0f28a', strict=True) + + def test_uts46_1298(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qnd.xn--ss-9nh3648ahh20b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qnd.xn--ss-9nh3648ahh20b', strict=True) + + def test_uts46_1299(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qnd.xn--zca669cmr3a0f28a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qnd.xn--zca669cmr3a0f28a', strict=True) + + def test_uts46_1300(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴒ。デSS𞤵్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴒ。デSS𞤵్', strict=True) + + def test_uts46_1301(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴒ。デSS𞤵్', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴒ。デSS𞤵్', strict=True) + + def test_uts46_1302(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑁿്.7-ߒ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑁿്.7-ߒ', strict=True) + + def test_uts46_1303(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑁿്.7-ߒ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑁿്.7-ߒ', strict=True) + + def test_uts46_1304(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wxc1283k.xn--7--yue', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wxc1283k.xn--7--yue', strict=True) + + def test_uts46_1305(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𑜫\U000e0b47.᜴\U000527a4𑍬ᢧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𑜫\U000e0b47.᜴\U000527a4𑍬ᢧ', strict=True) + + def test_uts46_1306(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𑜫\U000e0b47.᜴\U000527a4𑍬ᢧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𑜫\U000e0b47.᜴\U000527a4𑍬ᢧ', strict=True) + + def test_uts46_1307(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdhx157g68o0g.xn--c0e65eu616c34o7a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdhx157g68o0g.xn--c0e65eu616c34o7a', strict=True) + + def test_uts46_1308(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᷛ\U0008e419Ⴗ쏔。ށ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᷛ\U0008e419Ⴗ쏔。ށ', strict=True) + + def test_uts46_1309(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᷛ\U0008e419Ⴗ쏔。ށ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᷛ\U0008e419Ⴗ쏔。ށ', strict=True) + + def test_uts46_1310(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᷛ\U0008e419ⴗ쏔。ށ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᷛ\U0008e419ⴗ쏔。ށ', strict=True) + + def test_uts46_1311(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᷛ\U0008e419ⴗ쏔。ށ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᷛ\U0008e419ⴗ쏔。ށ', strict=True) + + def test_uts46_1312(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zegy26dw47iy6w2f.xn--iqb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zegy26dw47iy6w2f.xn--iqb', strict=True) + + def test_uts46_1313(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vnd148d733ky6n9e.xn--iqb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vnd148d733ky6n9e.xn--iqb', strict=True) + + def test_uts46_1314(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß。𐋳Ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß。𐋳Ⴌྸ', strict=True) + + def test_uts46_1315(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß。𐋳Ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß。𐋳Ⴌྸ', strict=True) + + def test_uts46_1316(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß。𐋳ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß。𐋳ⴌྸ', strict=True) + + def test_uts46_1317(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS。𐋳Ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS。𐋳Ⴌྸ', strict=True) + + def test_uts46_1318(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss。𐋳ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss。𐋳ⴌྸ', strict=True) + + def test_uts46_1319(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss。𐋳Ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss。𐋳Ⴌྸ', strict=True) + + def test_uts46_1320(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss.xn--lgd921mvv0m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss.xn--lgd921mvv0m', strict=True) + + def test_uts46_1321(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss.𐋳ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss.𐋳ⴌྸ', strict=True) + + def test_uts46_1322(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS.𐋳Ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS.𐋳Ⴌྸ', strict=True) + + def test_uts46_1323(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss.𐋳Ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss.𐋳Ⴌྸ', strict=True) + + def test_uts46_1324(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca.xn--lgd921mvv0m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca.xn--lgd921mvv0m', strict=True) + + def test_uts46_1325(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß.𐋳ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß.𐋳ⴌྸ', strict=True) + + def test_uts46_1326(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß。𐋳ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß。𐋳ⴌྸ', strict=True) + + def test_uts46_1327(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS。𐋳Ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS。𐋳Ⴌྸ', strict=True) + + def test_uts46_1328(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss。𐋳ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss。𐋳ⴌྸ', strict=True) + + def test_uts46_1329(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss。𐋳Ⴌྸ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss。𐋳Ⴌྸ', strict=True) + + def test_uts46_1330(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss.xn--lgd10cu829c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss.xn--lgd10cu829c', strict=True) + + def test_uts46_1331(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca.xn--lgd10cu829c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca.xn--lgd10cu829c', strict=True) + + def test_uts46_1332(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ڞ\U00010da1.\u200c⾝্', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ڞ\U00010da1.\u200c⾝্', strict=True) + + def test_uts46_1333(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ڞ\U00010da1.\u200c身্', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ڞ\U00010da1.\u200c身্', strict=True) + + def test_uts46_1334(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----stc7013r.xn--b7b1419d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----stc7013r.xn--b7b1419d', strict=True) + + def test_uts46_1335(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----stc7013r.xn--b7b305imj2f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----stc7013r.xn--b7b305imj2f', strict=True) + + def test_uts46_1336(self): + self.assertRaises(idna.IDNAError, idna.decode, '😮ݤ𑈵𞀖.💅\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '😮ݤ𑈵𞀖.💅\u200d', strict=True) + + def test_uts46_1337(self): + self.assertRaises(idna.IDNAError, idna.decode, '😮ݤ𑈵𞀖.💅\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '😮ݤ𑈵𞀖.💅\u200d', strict=True) + + def test_uts46_1338(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--opb4277kuc7elqsa.xn--kr8h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--opb4277kuc7elqsa.xn--kr8h', strict=True) + + def test_uts46_1339(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--opb4277kuc7elqsa.xn--1ug5265p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--opb4277kuc7elqsa.xn--1ug5265p', strict=True) + + def test_uts46_1340(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣲ\u200d꙳ܒ.ᢏ\u200c\U000e0344', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣲ\u200d꙳ܒ.ᢏ\u200c\U000e0344', strict=True) + + def test_uts46_1341(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cnb37gdy00a.xn--89e02253p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cnb37gdy00a.xn--89e02253p', strict=True) + + def test_uts46_1342(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cnb37g904be26j.xn--89e849ax9363a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cnb37g904be26j.xn--89e849ax9363a', strict=True) + + def test_uts46_1343(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴑ.ڿ\U0001ebd3ᠲ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴑ.ڿ\U0001ebd3ᠲ', strict=True) + + def test_uts46_1344(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴑ.ڿ\U0001ebd3ᠲ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴑ.ڿ\U0001ebd3ᠲ', strict=True) + + def test_uts46_1345(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴑ.ڿ\U0001ebd3ᠲ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴑ.ڿ\U0001ebd3ᠲ', strict=True) + + def test_uts46_1346(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8kj.xn--ykb840gd555a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8kj.xn--ykb840gd555a', strict=True) + + def test_uts46_1347(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴑ.ڿ\U0001ebd3ᠲ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴑ.ڿ\U0001ebd3ᠲ', strict=True) + + def test_uts46_1348(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pnd.xn--ykb840gd555a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pnd.xn--ykb840gd555a', strict=True) + + def test_uts46_1349(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᩚ\U0001b99d్。\U0001a76c𝟵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᩚ\U0001b99d్。\U0001a76c𝟵', strict=True) + + def test_uts46_1350(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᩚ\U0001b99d్。\U0001a76c9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᩚ\U0001b99d్。\U0001a76c9', strict=True) + + def test_uts46_1351(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lqc703ebm93a.xn--9-000p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lqc703ebm93a.xn--9-000p', strict=True) + + def test_uts46_1352(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cڠ\U0003fe86𝟗。Ⴣ꒘ﳐ\U00050616', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cڠ\U0003fe86𝟗。Ⴣ꒘ﳐ\U00050616', strict=True) + + def test_uts46_1353(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cڠ\U0003fe869。Ⴣ꒘مخ\U00050616', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cڠ\U0003fe869。Ⴣ꒘مخ\U00050616', strict=True) + + def test_uts46_1354(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cڠ\U0003fe869。ⴣ꒘مخ\U00050616', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cڠ\U0003fe869。ⴣ꒘مخ\U00050616', strict=True) + + def test_uts46_1355(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-vtc42319e.xn--tgb9bz87p833hw316c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-vtc42319e.xn--tgb9bz87p833hw316c', strict=True) + + def test_uts46_1356(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-vtc736qts91g.xn--tgb9bz87p833hw316c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-vtc736qts91g.xn--tgb9bz87p833hw316c', strict=True) + + def test_uts46_1357(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cڠ\U0003fe86𝟗。ⴣ꒘ﳐ\U00050616', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cڠ\U0003fe86𝟗。ⴣ꒘ﳐ\U00050616', strict=True) + + def test_uts46_1358(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-vtc42319e.xn--tgb9bz61cfn8mw3t2c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-vtc42319e.xn--tgb9bz61cfn8mw3t2c', strict=True) + + def test_uts46_1359(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-vtc736qts91g.xn--tgb9bz61cfn8mw3t2c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-vtc736qts91g.xn--tgb9bz61cfn8mw3t2c', strict=True) + + def test_uts46_1360(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡖ。̟\U000576e8ஂ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡖ。̟\U000576e8ஂ-', strict=True) + + def test_uts46_1361(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡖ。̟\U000576e8ஂ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡖ。̟\U000576e8ஂ-', strict=True) + + def test_uts46_1362(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--m8e.xn----mdb555dkk71m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--m8e.xn----mdb555dkk71m', strict=True) + + def test_uts46_1363(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠠浘。絧𞀀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠠浘。絧𞀀', strict=True) + + def test_uts46_1364(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--e0wp491f.xn--ud0a3573e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--e0wp491f.xn--ud0a3573e', strict=True) + + def test_uts46_1365(self): + self.assertRaises(idna.IDNAError, idna.decode, '֖Ⴋ.𝟳≯︒︊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֖Ⴋ.𝟳≯︒︊', strict=True) + + def test_uts46_1366(self): + self.assertRaises(idna.IDNAError, idna.decode, '֖Ⴋ.𝟳≯︒︊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֖Ⴋ.𝟳≯︒︊', strict=True) + + def test_uts46_1367(self): + self.assertRaises(idna.IDNAError, idna.decode, '֖Ⴋ.7≯。︊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֖Ⴋ.7≯。︊', strict=True) + + def test_uts46_1368(self): + self.assertRaises(idna.IDNAError, idna.decode, '֖Ⴋ.7≯。︊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֖Ⴋ.7≯。︊', strict=True) + + def test_uts46_1369(self): + self.assertRaises(idna.IDNAError, idna.decode, '֖ⴋ.7≯。︊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֖ⴋ.7≯。︊', strict=True) + + def test_uts46_1370(self): + self.assertRaises(idna.IDNAError, idna.decode, '֖ⴋ.7≯。︊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֖ⴋ.7≯。︊', strict=True) + + def test_uts46_1371(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hcb613r.xn--7-pgo.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hcb613r.xn--7-pgo.', strict=True) + + def test_uts46_1372(self): + self.assertRaises(idna.IDNAError, idna.decode, '֖ⴋ.𝟳≯︒︊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֖ⴋ.𝟳≯︒︊', strict=True) + + def test_uts46_1373(self): + self.assertRaises(idna.IDNAError, idna.decode, '֖ⴋ.𝟳≯︒︊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֖ⴋ.𝟳≯︒︊', strict=True) + + def test_uts46_1374(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hcb613r.xn--7-pgoy530h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hcb613r.xn--7-pgoy530h', strict=True) + + def test_uts46_1375(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hcb887c.xn--7-pgo.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hcb887c.xn--7-pgo.', strict=True) + + def test_uts46_1376(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hcb887c.xn--7-pgoy530h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hcb887c.xn--7-pgoy530h', strict=True) + + def test_uts46_1377(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dF𑓂。\U000e0ea8︒ݾ𐹢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dF𑓂。\U000e0ea8︒ݾ𐹢', strict=True) + + def test_uts46_1378(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dF𑓂。\U000e0ea8。ݾ𐹢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dF𑓂。\U000e0ea8。ݾ𐹢', strict=True) + + def test_uts46_1379(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200df𑓂。\U000e0ea8。ݾ𐹢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200df𑓂。\U000e0ea8。ݾ𐹢', strict=True) + + def test_uts46_1380(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--f-kq9i.xn--7656e.xn--fqb4175k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--f-kq9i.xn--7656e.xn--fqb4175k', strict=True) + + def test_uts46_1381(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--f-tgn9761i.xn--7656e.xn--fqb4175k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--f-tgn9761i.xn--7656e.xn--fqb4175k', strict=True) + + def test_uts46_1382(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200df𑓂。\U000e0ea8︒ݾ𐹢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200df𑓂。\U000e0ea8︒ݾ𐹢', strict=True) + + def test_uts46_1383(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--f-kq9i.xn--fqb1637j8hky9452a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--f-kq9i.xn--fqb1637j8hky9452a', strict=True) + + def test_uts46_1384(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--f-tgn9761i.xn--fqb1637j8hky9452a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--f-tgn9761i.xn--fqb1637j8hky9452a', strict=True) + + def test_uts46_1385(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡅ🄇𐼗︒。𐹻𑜫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡅ🄇𐼗︒。𐹻𑜫', strict=True) + + def test_uts46_1386(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡅ6,𐼗。。𐹻𑜫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡅ6,𐼗。。𐹻𑜫', strict=True) + + def test_uts46_1387(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6,-r4e4420y..xn--zo0di2m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6,-r4e4420y..xn--zo0di2m', strict=True) + + def test_uts46_1388(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6,-r4e6182wo1ra.xn--zo0di2m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6,-r4e6182wo1ra.xn--zo0di2m', strict=True) + + def test_uts46_1389(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3vb4696jpxkjh7s.xn--zo0di2m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3vb4696jpxkjh7s.xn--zo0di2m', strict=True) + + def test_uts46_1390(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010e48.᷀𑈱𐦭', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010e48.᷀𑈱𐦭', strict=True) + + def test_uts46_1391(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jn0d.xn--7dg0871h3lf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jn0d.xn--7dg0871h3lf', strict=True) + + def test_uts46_1392(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴂ䠺。𞤃\U000453ce\U000d9ba6ړ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴂ䠺。𞤃\U000453ce\U000d9ba6ړ', strict=True) + + def test_uts46_1393(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴂ䠺。𞤥\U000453ce\U000d9ba6ړ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴂ䠺。𞤥\U000453ce\U000d9ba6ړ', strict=True) + + def test_uts46_1394(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tkj638f.xn--pjb9818vg4xno967d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tkj638f.xn--pjb9818vg4xno967d', strict=True) + + def test_uts46_1395(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9md875z.xn--pjb9818vg4xno967d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9md875z.xn--pjb9818vg4xno967d', strict=True) + + def test_uts46_1396(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴂ䠺。𞤃\U000453ce\U000d9ba6ړ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴂ䠺。𞤃\U000453ce\U000d9ba6ړ', strict=True) + + def test_uts46_1397(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄇伐︒.\U0001c65a꣄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄇伐︒.\U0001c65a꣄', strict=True) + + def test_uts46_1398(self): + self.assertRaises(idna.IDNAError, idna.decode, '6,伐。.\U0001c65a꣄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6,伐。.\U0001c65a꣄', strict=True) + + def test_uts46_1399(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6,-7i3c..xn--0f9ao925c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6,-7i3c..xn--0f9ao925c', strict=True) + + def test_uts46_1400(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6,-7i3cj157d.xn--0f9ao925c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6,-7i3cj157d.xn--0f9ao925c', strict=True) + + def test_uts46_1401(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--woqs083bel0g.xn--0f9ao925c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--woqs083bel0g.xn--0f9ao925c', strict=True) + + def test_uts46_1402(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹠꯭\ufffb。\u200d𐫓Ⴚ𑂹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹠꯭\ufffb。\u200d𐫓Ⴚ𑂹', strict=True) + + def test_uts46_1403(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐹠꯭\ufffb。\u200d𐫓ⴚ𑂹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐹠꯭\ufffb。\u200d𐫓ⴚ𑂹', strict=True) + + def test_uts46_1404(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--429az70n29i.xn--ilj7702eqyd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--429az70n29i.xn--ilj7702eqyd', strict=True) + + def test_uts46_1405(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugz126coy7bdbm.xn--1ug062chv7ov6e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugz126coy7bdbm.xn--1ug062chv7ov6e', strict=True) + + def test_uts46_1406(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--429az70n29i.xn--ynd3619jqyd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--429az70n29i.xn--ynd3619jqyd', strict=True) + + def test_uts46_1407(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugz126coy7bdbm.xn--ynd959evs1pv6e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugz126coy7bdbm.xn--ynd959evs1pv6e', strict=True) + + def test_uts46_1408(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆠.\U00077434\U000cc7c8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆠.\U00077434\U000cc7c8', strict=True) + + def test_uts46_1409(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆠.\U00077434\U000cc7c8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆠.\U00077434\U000cc7c8', strict=True) + + def test_uts46_1410(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--rx21bhv12i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--rx21bhv12i', strict=True) + + def test_uts46_1411(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫃\u200cႦ.≠\U0001edd9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫃\u200cႦ.≠\U0001edd9', strict=True) + + def test_uts46_1412(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫃\u200cႦ.≠\U0001edd9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫃\u200cႦ.≠\U0001edd9', strict=True) + + def test_uts46_1413(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫃\u200cⴆ.≠\U0001edd9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫃\u200cⴆ.≠\U0001edd9', strict=True) + + def test_uts46_1414(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫃\u200cⴆ.≠\U0001edd9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫃\u200cⴆ.≠\U0001edd9', strict=True) + + def test_uts46_1415(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xkjz802e.xn--1ch2802p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xkjz802e.xn--1ch2802p', strict=True) + + def test_uts46_1416(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug132csv7o.xn--1ch2802p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug132csv7o.xn--1ch2802p', strict=True) + + def test_uts46_1417(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--end1719j.xn--1ch2802p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--end1719j.xn--1ch2802p', strict=True) + + def test_uts46_1418(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--end799ekr1p.xn--1ch2802p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--end799ekr1p.xn--1ch2802p', strict=True) + + def test_uts46_1419(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0072\U00019a62𝟥ꘌ.ࡁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0072\U00019a62𝟥ꘌ.ࡁ', strict=True) + + def test_uts46_1420(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0072\U00019a623ꘌ.ࡁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0072\U00019a623ꘌ.ࡁ', strict=True) + + def test_uts46_1421(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-0g3es485d8i15h.xn--zvb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-0g3es485d8i15h.xn--zvb', strict=True) + + def test_uts46_1422(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.ᢆ\U000e1ca3-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.ᢆ\U000e1ca3-', strict=True) + + def test_uts46_1423(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn----pbkx6497q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn----pbkx6497q', strict=True) + + def test_uts46_1424(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000f2697\u200c。\u200c\U0001ec06ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000f2697\u200c。\u200c\U0001ec06ς', strict=True) + + def test_uts46_1425(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000f2697\u200c。\u200c\U0001ec06ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000f2697\u200c。\u200c\U0001ec06ς', strict=True) + + def test_uts46_1426(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000f2697\u200c。\u200c\U0001ec06Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000f2697\u200c。\u200c\U0001ec06Σ', strict=True) + + def test_uts46_1427(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000f2697\u200c。\u200c\U0001ec06σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000f2697\u200c。\u200c\U0001ec06σ', strict=True) + + def test_uts46_1428(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qp42f.xn--4xa3011w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qp42f.xn--4xa3011w', strict=True) + + def test_uts46_1429(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug76062m.xn--4xa595lhn92a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug76062m.xn--4xa595lhn92a', strict=True) + + def test_uts46_1430(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug76062m.xn--3xa795lhn92a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug76062m.xn--3xa795lhn92a', strict=True) + + def test_uts46_1431(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000f2697\u200c。\u200c\U0001ec06Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000f2697\u200c。\u200c\U0001ec06Σ', strict=True) + + def test_uts46_1432(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000f2697\u200c。\u200c\U0001ec06σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000f2697\u200c。\u200c\U0001ec06σ', strict=True) + + def test_uts46_1433(self): + self.assertRaises(idna.IDNAError, idna.decode, '堕𑓂ᬂ。𐮇𞤽\u200c-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '堕𑓂ᬂ。𐮇𞤽\u200c-', strict=True) + + def test_uts46_1434(self): + self.assertRaises(idna.IDNAError, idna.decode, '堕𑓂ᬂ。𐮇𞤛\u200c-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '堕𑓂ᬂ。𐮇𞤛\u200c-', strict=True) + + def test_uts46_1435(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5sf345zdk8h.xn----iv5iw606c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5sf345zdk8h.xn----iv5iw606c', strict=True) + + def test_uts46_1436(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5sf345zdk8h.xn----rgnt157hwl9g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5sf345zdk8h.xn----rgnt157hwl9g', strict=True) + + def test_uts46_1437(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥςتς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥςتς', strict=True) + + def test_uts46_1438(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥςتς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥςتς', strict=True) + + def test_uts46_1439(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤀。ᡥΣتΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤀。ᡥΣتΣ', strict=True) + + def test_uts46_1440(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥσتσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥσتσ', strict=True) + + def test_uts46_1441(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l8e1317j1ebz456b.xn--4xaa85plx4a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l8e1317j1ebz456b.xn--4xaa85plx4a', strict=True) + + def test_uts46_1442(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l8e1317j1ebz456b.xn--3xaa16plx4a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l8e1317j1ebz456b.xn--3xaa16plx4a', strict=True) + + def test_uts46_1443(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤀。ᡥΣتΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤀。ᡥΣتΣ', strict=True) + + def test_uts46_1444(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥσتσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥσتσ', strict=True) + + def test_uts46_1445(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥΣتΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥΣتΣ', strict=True) + + def test_uts46_1446(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥΣتσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥΣتσ', strict=True) + + def test_uts46_1447(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥΣتς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥΣتς', strict=True) + + def test_uts46_1448(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥσتς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥσتς', strict=True) + + def test_uts46_1449(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l8e1317j1ebz456b.xn--3xab95plx4a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l8e1317j1ebz456b.xn--3xab95plx4a', strict=True) + + def test_uts46_1450(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥΣتΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥΣتΣ', strict=True) + + def test_uts46_1451(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥΣتσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥΣتσ', strict=True) + + def test_uts46_1452(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥΣتς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥΣتς', strict=True) + + def test_uts46_1453(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶𑁆ᡕ𞤢。ᡥσتς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶𑁆ᡕ𞤢。ᡥσتς', strict=True) + + def test_uts46_1454(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000cf4b0.-𝟻ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000cf4b0.-𝟻ß', strict=True) + + def test_uts46_1455(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000cf4b0.-5ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000cf4b0.-5ß', strict=True) + + def test_uts46_1456(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000cf4b0.-5SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000cf4b0.-5SS', strict=True) + + def test_uts46_1457(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000cf4b0.-5ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000cf4b0.-5ss', strict=True) + + def test_uts46_1458(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t960e.-5ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t960e.-5ss', strict=True) + + def test_uts46_1459(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t960e.xn---5-hia', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t960e.xn---5-hia', strict=True) + + def test_uts46_1460(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000cf4b0.-𝟻SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000cf4b0.-𝟻SS', strict=True) + + def test_uts46_1461(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000cf4b0.-𝟻ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000cf4b0.-𝟻ss', strict=True) + + def test_uts46_1462(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000cf4b0.-𝟻Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000cf4b0.-𝟻Ss', strict=True) + + def test_uts46_1463(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000cf4b0.-5Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000cf4b0.-5Ss', strict=True) + + def test_uts46_1464(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐨿.🤒Ⴥ\U00091bb6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐨿.🤒Ⴥ\U00091bb6', strict=True) + + def test_uts46_1465(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𐨿.🤒ⴥ\U00091bb6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𐨿.🤒ⴥ\U00091bb6', strict=True) + + def test_uts46_1466(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0s9c.xn--tljz038l0gz4b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0s9c.xn--tljz038l0gz4b', strict=True) + + def test_uts46_1467(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug9533g.xn--tljz038l0gz4b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug9533g.xn--tljz038l0gz4b', strict=True) + + def test_uts46_1468(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0s9c.xn--9nd3211w0gz4b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0s9c.xn--9nd3211w0gz4b', strict=True) + + def test_uts46_1469(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug9533g.xn--9nd3211w0gz4b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug9533g.xn--9nd3211w0gz4b', strict=True) + + def test_uts46_1470(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000352c5。ß𬵩\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000352c5。ß𬵩\u200d', strict=True) + + def test_uts46_1471(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000352c5。SS𬵩\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000352c5。SS𬵩\u200d', strict=True) + + def test_uts46_1472(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000352c5。ss𬵩\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000352c5。ss𬵩\u200d', strict=True) + + def test_uts46_1473(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000352c5。Ss𬵩\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000352c5。Ss𬵩\u200d', strict=True) + + def test_uts46_1474(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ey1p.xn--ss-eq36b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ey1p.xn--ss-eq36b', strict=True) + + def test_uts46_1475(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ey1p.xn--ss-n1tx0508a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ey1p.xn--ss-n1tx0508a', strict=True) + + def test_uts46_1476(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ey1p.xn--zca870nz438b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ey1p.xn--zca870nz438b', strict=True) + + def test_uts46_1477(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𭉝。߱́𞹻', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𭉝。߱́𞹻', strict=True) + + def test_uts46_1478(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𭉝。߱́غ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𭉝。߱́غ', strict=True) + + def test_uts46_1479(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--634m.xn--lsa46nuub', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--634m.xn--lsa46nuub', strict=True) + + def test_uts46_1480(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugy003y.xn--lsa46nuub', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugy003y.xn--lsa46nuub', strict=True) + + def test_uts46_1481(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ef0c\u200c𑈶。𐹡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ef0c\u200c𑈶。𐹡', strict=True) + + def test_uts46_1482(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9g1d1288a.xn--8n0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9g1d1288a.xn--8n0d', strict=True) + + def test_uts46_1483(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug7946gzpxf.xn--8n0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug7946gzpxf.xn--8n0d', strict=True) + + def test_uts46_1484(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻ς≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻ς≠', strict=True) + + def test_uts46_1485(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻ς≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻ς≠', strict=True) + + def test_uts46_1486(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻ς≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻ς≠', strict=True) + + def test_uts46_1487(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻ς≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻ς≠', strict=True) + + def test_uts46_1488(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻Σ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻Σ≠', strict=True) + + def test_uts46_1489(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻Σ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻Σ≠', strict=True) + + def test_uts46_1490(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻σ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻σ≠', strict=True) + + def test_uts46_1491(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻σ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻σ≠', strict=True) + + def test_uts46_1492(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zb9h5968x.xn--4xa378i1mfjw7y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zb9h5968x.xn--4xa378i1mfjw7y', strict=True) + + def test_uts46_1493(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug3766p5nm1b.xn--4xa378i1mfjw7y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug3766p5nm1b.xn--4xa378i1mfjw7y', strict=True) + + def test_uts46_1494(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug3766p5nm1b.xn--3xa578i1mfjw7y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug3766p5nm1b.xn--3xa578i1mfjw7y', strict=True) + + def test_uts46_1495(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻Σ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻Σ≠', strict=True) + + def test_uts46_1496(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻Σ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻Σ≠', strict=True) + + def test_uts46_1497(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻σ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻σ≠', strict=True) + + def test_uts46_1498(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅯\U00087f6d\u200c🜭。𑖿᪻σ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅯\U00087f6d\u200c🜭。𑖿᪻σ≠', strict=True) + + def test_uts46_1499(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒋。⒈\u200d\U000b3d22', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒋。⒈\u200d\U000b3d22', strict=True) + + def test_uts46_1500(self): + self.assertRaises(idna.IDNAError, idna.decode, '4.。1.\u200d\U000b3d22', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4.。1.\u200d\U000b3d22', strict=True) + + def test_uts46_1501(self): + self.assertRaises(idna.IDNAError, idna.decode, '4..1.xn--sf51d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4..1.xn--sf51d', strict=True) + + def test_uts46_1502(self): + self.assertRaises(idna.IDNAError, idna.decode, '4..1.xn--1ug64613i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4..1.xn--1ug64613i', strict=True) + + def test_uts46_1503(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wsh.xn--tsh07994h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wsh.xn--tsh07994h', strict=True) + + def test_uts46_1504(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wsh.xn--1ug58o74922a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wsh.xn--1ug58o74922a', strict=True) + + def test_uts46_1505(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لß。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لß。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1506(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لß。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لß。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1507(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لß。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لß。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1508(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لSS。᩠𐇽\U000be162𞤜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لSS。᩠𐇽\U000be162𞤜', strict=True) + + def test_uts46_1509(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لss。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لss。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1510(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لss。᩠𐇽\U000be162𞤜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لss。᩠𐇽\U000be162𞤜', strict=True) + + def test_uts46_1511(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-svd.xn--jof2298hn83fln78f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-svd.xn--jof2298hn83fln78f', strict=True) + + def test_uts46_1512(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لß。᩠𐇽\U000be162𞤜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لß。᩠𐇽\U000be162𞤜', strict=True) + + def test_uts46_1513(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca57y.xn--jof2298hn83fln78f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca57y.xn--jof2298hn83fln78f', strict=True) + + def test_uts46_1514(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لSS。᩠𐇽\U000be162𞤜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لSS。᩠𐇽\U000be162𞤜', strict=True) + + def test_uts46_1515(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لss。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لss。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1516(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لss。᩠𐇽\U000be162𞤜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لss。᩠𐇽\U000be162𞤜', strict=True) + + def test_uts46_1517(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لß。᩠𐇽\U000be162𞤜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لß。᩠𐇽\U000be162𞤜', strict=True) + + def test_uts46_1518(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لSS。᩠𐇽\U000be162𞤜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لSS。᩠𐇽\U000be162𞤜', strict=True) + + def test_uts46_1519(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لss。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لss。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1520(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لss。᩠𐇽\U000be162𞤜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لss。᩠𐇽\U000be162𞤜', strict=True) + + def test_uts46_1521(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لß。᩠𐇽\U000be162𞤜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لß。᩠𐇽\U000be162𞤜', strict=True) + + def test_uts46_1522(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لSS。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لSS。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1523(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لSs。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لSs。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1524(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لSS。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لSS。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1525(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لSs。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لSs。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1526(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لSS。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لSS。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1527(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لSs。᩠𐇽\U000be162𞤾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لSs。᩠𐇽\U000be162𞤾', strict=True) + + def test_uts46_1528(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹽𑄳\U0007c732.ᷟី꠆𑜫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹽𑄳\U0007c732.ᷟី꠆𑜫', strict=True) + + def test_uts46_1529(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1o0di0c0652w.xn--33e362arr1l153d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1o0di0c0652w.xn--33e362arr1l153d', strict=True) + + def test_uts46_1530(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴓ𑜫\u200d\U00097b53.ڧ𑰶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴓ𑜫\u200d\U00097b53.ڧ𑰶', strict=True) + + def test_uts46_1531(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴓ𑜫\u200d\U00097b53.ڧ𑰶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴓ𑜫\u200d\U00097b53.ڧ𑰶', strict=True) + + def test_uts46_1532(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴓ𑜫\u200d\U00097b53.ڧ𑰶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴓ𑜫\u200d\U00097b53.ڧ𑰶', strict=True) + + def test_uts46_1533(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--blj6306ey091d.xn--9jb4223l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--blj6306ey091d.xn--9jb4223l', strict=True) + + def test_uts46_1534(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugy52cym7p7xu5e.xn--9jb4223l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugy52cym7p7xu5e.xn--9jb4223l', strict=True) + + def test_uts46_1535(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴓ𑜫\u200d\U00097b53.ڧ𑰶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴓ𑜫\u200d\U00097b53.ڧ𑰶', strict=True) + + def test_uts46_1536(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rnd8945ky009c.xn--9jb4223l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rnd8945ky009c.xn--9jb4223l', strict=True) + + def test_uts46_1537(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rnd479ep20q7x12e.xn--9jb4223l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rnd479ep20q7x12e.xn--9jb4223l', strict=True) + + def test_uts46_1538(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨿.🄆—', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨿.🄆—', strict=True) + + def test_uts46_1539(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨿.5,—', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨿.5,—', strict=True) + + def test_uts46_1540(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0s9c.xn--5,-81t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0s9c.xn--5,-81t', strict=True) + + def test_uts46_1541(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0s9c.xn--8ug8324p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0s9c.xn--8ug8324p', strict=True) + + def test_uts46_1542(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000942b1\U000419ae۸。\U000e0fad-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000942b1\U000419ae۸。\U000e0fad-', strict=True) + + def test_uts46_1543(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lmb18944c0g2z.xn----2k81m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lmb18944c0g2z.xn----2k81m', strict=True) + + def test_uts46_1544(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c5f8ߍ𐹮。\u06ddᡎᠴ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c5f8ߍ𐹮。\u06ddᡎᠴ', strict=True) + + def test_uts46_1545(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--osb0855kcc2r.xn--tlb299fhc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--osb0855kcc2r.xn--tlb299fhc', strict=True) + + def test_uts46_1546(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dᠮႾ🄂.🚗ࡁ𮹌\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dᠮႾ🄂.🚗ࡁ𮹌\u200c', strict=True) + + def test_uts46_1547(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dᠮႾ1,.🚗ࡁ𮹌\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dᠮႾ1,.🚗ࡁ𮹌\u200c', strict=True) + + def test_uts46_1548(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dᠮⴞ1,.🚗ࡁ𮹌\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dᠮⴞ1,.🚗ࡁ𮹌\u200c', strict=True) + + def test_uts46_1549(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1,-v3o625k.xn--zvb3124wpkpf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1,-v3o625k.xn--zvb3124wpkpf', strict=True) + + def test_uts46_1550(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1,-v3o161c53q.xn--zvb692j9664aic1g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1,-v3o161c53q.xn--zvb692j9664aic1g', strict=True) + + def test_uts46_1551(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dᠮⴞ🄂.🚗ࡁ𮹌\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dᠮⴞ🄂.🚗ࡁ𮹌\u200c', strict=True) + + def test_uts46_1552(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1,-ogkx89c.xn--zvb3124wpkpf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1,-ogkx89c.xn--zvb3124wpkpf', strict=True) + + def test_uts46_1553(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1,-ogkx89c39j.xn--zvb692j9664aic1g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1,-ogkx89c39j.xn--zvb692j9664aic1g', strict=True) + + def test_uts46_1554(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--h7e438h1p44a.xn--zvb3124wpkpf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--h7e438h1p44a.xn--zvb3124wpkpf', strict=True) + + def test_uts46_1555(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--h7e341b0wlbv45b.xn--zvb692j9664aic1g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--h7e341b0wlbv45b.xn--zvb692j9664aic1g', strict=True) + + def test_uts46_1556(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd129ai554b.xn--zvb3124wpkpf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd129ai554b.xn--zvb3124wpkpf', strict=True) + + def test_uts46_1557(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd129ay2gnw71c.xn--zvb692j9664aic1g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd129ay2gnw71c.xn--zvb692j9664aic1g', strict=True) + + def test_uts46_1558(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0601ڗ.𑚶\U0007c877⾆', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0601ڗ.𑚶\U0007c877⾆', strict=True) + + def test_uts46_1559(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0601ڗ.𑚶\U0007c877舌', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0601ڗ.𑚶\U0007c877舌', strict=True) + + def test_uts46_1560(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jfb41a.xn--tc1ap851axo39c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jfb41a.xn--tc1ap851axo39c', strict=True) + + def test_uts46_1561(self): + self.assertRaises(idna.IDNAError, idna.decode, '🞅\U000e0ce1\U000dc359.\U000725b7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🞅\U000e0ce1\U000dc359.\U000725b7', strict=True) + + def test_uts46_1562(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ie9hi1349bqdlb.xn--oj69a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ie9hi1349bqdlb.xn--oj69a', strict=True) + + def test_uts46_1563(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃧\U0006f84e-\U000ab8dd.4Ⴄ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃧\U0006f84e-\U000ab8dd.4Ⴄ\u200c', strict=True) + + def test_uts46_1564(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃧\U0006f84e-\U000ab8dd.4ⴄ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃧\U0006f84e-\U000ab8dd.4ⴄ\u200c', strict=True) + + def test_uts46_1565(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----9snu5320fi76w.xn--4-ivs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----9snu5320fi76w.xn--4-ivs', strict=True) + + def test_uts46_1566(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----9snu5320fi76w.xn--4-sgn589c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----9snu5320fi76w.xn--4-sgn589c', strict=True) + + def test_uts46_1567(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----9snu5320fi76w.xn--4-f0g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----9snu5320fi76w.xn--4-f0g', strict=True) + + def test_uts46_1568(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----9snu5320fi76w.xn--4-f0g649i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----9snu5320fi76w.xn--4-f0g649i', strict=True) + + def test_uts46_1569(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ。𝌠ß𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ。𝌠ß𖫱', strict=True) + + def test_uts46_1570(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ。𝌠ß𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ。𝌠ß𖫱', strict=True) + + def test_uts46_1571(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ。𝌠SS𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ。𝌠SS𖫱', strict=True) + + def test_uts46_1572(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ。𝌠ss𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ。𝌠ss𖫱', strict=True) + + def test_uts46_1573(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ。𝌠Ss𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ。𝌠Ss𖫱', strict=True) + + def test_uts46_1574(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hwe.xn--ss-ci1ub261a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hwe.xn--ss-ci1ub261a', strict=True) + + def test_uts46_1575(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ.𝌠ss𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ.𝌠ss𖫱', strict=True) + + def test_uts46_1576(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ.𝌠SS𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ.𝌠SS𖫱', strict=True) + + def test_uts46_1577(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ.𝌠Ss𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ.𝌠Ss𖫱', strict=True) + + def test_uts46_1578(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hwe.xn--zca4946pblnc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hwe.xn--zca4946pblnc', strict=True) + + def test_uts46_1579(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ.𝌠ß𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ.𝌠ß𖫱', strict=True) + + def test_uts46_1580(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ。𝌠SS𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ。𝌠SS𖫱', strict=True) + + def test_uts46_1581(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ。𝌠ss𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ。𝌠ss𖫱', strict=True) + + def test_uts46_1582(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᚭ。𝌠Ss𖫱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᚭ。𝌠Ss𖫱', strict=True) + + def test_uts46_1583(self): + self.assertRaises(idna.IDNAError, idna.decode, '₁。𞤫ꡪ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₁。𞤫ꡪ', strict=True) + + def test_uts46_1584(self): + self.assertRaises(idna.IDNAError, idna.decode, '1。𞤫ꡪ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1。𞤫ꡪ', strict=True) + + def test_uts46_1585(self): + self.assertRaises(idna.IDNAError, idna.decode, '1。𞤉ꡪ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1。𞤉ꡪ', strict=True) + + def test_uts46_1586(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--gd9al691d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--gd9al691d', strict=True) + + def test_uts46_1587(self): + self.assertRaises(idna.IDNAError, idna.decode, '₁。𞤉ꡪ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₁。𞤉ꡪ', strict=True) + + def test_uts46_1588(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0002fefc\u200c.\U0001ed9e\U000bb664\U00065607', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0002fefc\u200c.\U0001ed9e\U000bb664\U00065607', strict=True) + + def test_uts46_1589(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kg4n.xn--2b7hs861pl540a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kg4n.xn--2b7hs861pl540a', strict=True) + + def test_uts46_1590(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug27500a.xn--2b7hs861pl540a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug27500a.xn--2b7hs861pl540a', strict=True) + + def test_uts46_1591(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑑄≯。𑜤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑑄≯。𑜤', strict=True) + + def test_uts46_1592(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑑄≯。𑜤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑑄≯。𑜤', strict=True) + + def test_uts46_1593(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑑄≯。𑜤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑑄≯。𑜤', strict=True) + + def test_uts46_1594(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑑄≯。𑜤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑑄≯。𑜤', strict=True) + + def test_uts46_1595(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh5636g.xn--ci2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh5636g.xn--ci2d', strict=True) + + def test_uts46_1596(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴋ≮𱲆。\u200dާ𐋣', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴋ≮𱲆。\u200dާ𐋣', strict=True) + + def test_uts46_1597(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴋ≮𱲆。\u200dާ𐋣', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴋ≮𱲆。\u200dާ𐋣', strict=True) + + def test_uts46_1598(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴋ≮𱲆。\u200dާ𐋣', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴋ≮𱲆。\u200dާ𐋣', strict=True) + + def test_uts46_1599(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴋ≮𱲆。\u200dާ𐋣', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴋ≮𱲆。\u200dާ𐋣', strict=True) + + def test_uts46_1600(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdhz03bxt42d.xn--lrb6479j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdhz03bxt42d.xn--lrb6479j', strict=True) + + def test_uts46_1601(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdhz03bxt42d.xn--lrb506jqr4n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdhz03bxt42d.xn--lrb506jqr4n', strict=True) + + def test_uts46_1602(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jnd802gsm17c.xn--lrb6479j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jnd802gsm17c.xn--lrb6479j', strict=True) + + def test_uts46_1603(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jnd802gsm17c.xn--lrb506jqr4n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jnd802gsm17c.xn--lrb506jqr4n', strict=True) + + def test_uts46_1604(self): + self.assertRaises(idna.IDNAError, idna.decode, '្.\U00086f52≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '្.\U00086f52≯', strict=True) + + def test_uts46_1605(self): + self.assertRaises(idna.IDNAError, idna.decode, '្.\U00086f52≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '្.\U00086f52≯', strict=True) + + def test_uts46_1606(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--u4e.xn--hdhx0084f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--u4e.xn--hdhx0084f', strict=True) + + def test_uts46_1607(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004f047᜴.𐨺É⬓𑄴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004f047᜴.𐨺É⬓𑄴', strict=True) + + def test_uts46_1608(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004f047᜴.𐨺É⬓𑄴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004f047᜴.𐨺É⬓𑄴', strict=True) + + def test_uts46_1609(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004f047᜴.𐨺É⬓𑄴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004f047᜴.𐨺É⬓𑄴', strict=True) + + def test_uts46_1610(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004f047᜴.𐨺É⬓𑄴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004f047᜴.𐨺É⬓𑄴', strict=True) + + def test_uts46_1611(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004f047᜴.𐨺é⬓𑄴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004f047᜴.𐨺é⬓𑄴', strict=True) + + def test_uts46_1612(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004f047᜴.𐨺é⬓𑄴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004f047᜴.𐨺é⬓𑄴', strict=True) + + def test_uts46_1613(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--c0e34564d.xn--9ca207st53lg3f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--c0e34564d.xn--9ca207st53lg3f', strict=True) + + def test_uts46_1614(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004f047᜴.𐨺é⬓𑄴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004f047᜴.𐨺é⬓𑄴', strict=True) + + def test_uts46_1615(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004f047᜴.𐨺é⬓𑄴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004f047᜴.𐨺é⬓𑄴', strict=True) + + def test_uts46_1616(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢇ\u200d꣄。︒𞤺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢇ\u200d꣄。︒𞤺', strict=True) + + def test_uts46_1617(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢇ\u200d꣄。。𞤺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢇ\u200d꣄。。𞤺', strict=True) + + def test_uts46_1618(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢇ\u200d꣄。。𞤘', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢇ\u200d꣄。。𞤘', strict=True) + + def test_uts46_1619(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--09e4694e..xn--ye6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--09e4694e..xn--ye6h', strict=True) + + def test_uts46_1620(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--09e669a6x8j..xn--ye6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--09e669a6x8j..xn--ye6h', strict=True) + + def test_uts46_1621(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢇ\u200d꣄。︒𞤘', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢇ\u200d꣄。︒𞤘', strict=True) + + def test_uts46_1622(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--09e4694e.xn--y86cv562b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--09e4694e.xn--y86cv562b', strict=True) + + def test_uts46_1623(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--09e669a6x8j.xn--y86cv562b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--09e669a6x8j.xn--y86cv562b', strict=True) + + def test_uts46_1624(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ea6c\U00096671᜔\u200c。رު≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ea6c\U00096671᜔\u200c。رު≮', strict=True) + + def test_uts46_1625(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ea6c\U00096671᜔\u200c。رު≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ea6c\U00096671᜔\u200c。رު≮', strict=True) + + def test_uts46_1626(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ea6c\U00096671᜔\u200c。رު≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ea6c\U00096671᜔\u200c。رު≮', strict=True) + + def test_uts46_1627(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ea6c\U00096671᜔\u200c。رު≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ea6c\U00096671᜔\u200c。رު≮', strict=True) + + def test_uts46_1628(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fze3930v7hz6b.xn--wgb86el10d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fze3930v7hz6b.xn--wgb86el10d', strict=True) + + def test_uts46_1629(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fze607b9651bjwl7c.xn--wgb86el10d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fze607b9651bjwl7c.xn--wgb86el10d', strict=True) + + def test_uts46_1630(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴣ.ٓᢤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴣ.ٓᢤ', strict=True) + + def test_uts46_1631(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴣ.ٓᢤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴣ.ٓᢤ', strict=True) + + def test_uts46_1632(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴣ.ٓᢤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴣ.ٓᢤ', strict=True) + + def test_uts46_1633(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rlj.xn--vhb294g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rlj.xn--vhb294g', strict=True) + + def test_uts46_1634(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴣ.ٓᢤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴣ.ٓᢤ', strict=True) + + def test_uts46_1635(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7nd.xn--vhb294g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7nd.xn--vhb294g', strict=True) + + def test_uts46_1636(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄈ࠓ.싉\U000841bbჄ\U00082850', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄈ࠓ.싉\U000841bbჄ\U00082850', strict=True) + + def test_uts46_1637(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄈ࠓ.싉\U000841bbჄ\U00082850', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄈ࠓ.싉\U000841bbჄ\U00082850', strict=True) + + def test_uts46_1638(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄈ࠓ.싉\U000841bbჄ\U00082850', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄈ࠓ.싉\U000841bbჄ\U00082850', strict=True) + + def test_uts46_1639(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄈ࠓ.싉\U000841bbჄ\U00082850', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄈ࠓ.싉\U000841bbჄ\U00082850', strict=True) + + def test_uts46_1640(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄈ࠓ.싉\U000841bbⴤ\U00082850', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄈ࠓ.싉\U000841bbⴤ\U00082850', strict=True) + + def test_uts46_1641(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄈ࠓ.싉\U000841bbⴤ\U00082850', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄈ࠓ.싉\U000841bbⴤ\U00082850', strict=True) + + def test_uts46_1642(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--oub.xn--sljz109bpe25dviva', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--oub.xn--sljz109bpe25dviva', strict=True) + + def test_uts46_1643(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄈ࠓ.싉\U000841bbⴤ\U00082850', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄈ࠓ.싉\U000841bbⴤ\U00082850', strict=True) + + def test_uts46_1644(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄈ࠓ.싉\U000841bbⴤ\U00082850', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄈ࠓ.싉\U000841bbⴤ\U00082850', strict=True) + + def test_uts46_1645(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--oub.xn--8nd9522gpe69cviva', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--oub.xn--8nd9522gpe69cviva', strict=True) + + def test_uts46_1646(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꨬ𑲫≮.⤂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꨬ𑲫≮.⤂', strict=True) + + def test_uts46_1647(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꨬ𑲫≮.⤂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꨬ𑲫≮.⤂', strict=True) + + def test_uts46_1648(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꨬ𑲫≮.⤂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꨬ𑲫≮.⤂', strict=True) + + def test_uts46_1649(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꨬ𑲫≮.⤂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꨬ𑲫≮.⤂', strict=True) + + def test_uts46_1650(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh1854cn19c.xn--kqi', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh1854cn19c.xn--kqi', strict=True) + + def test_uts46_1651(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮Ⴢ.Ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮Ⴢ.Ⴃ', strict=True) + + def test_uts46_1652(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮Ⴢ.Ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮Ⴢ.Ⴃ', strict=True) + + def test_uts46_1653(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮Ⴢ.Ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮Ⴢ.Ⴃ', strict=True) + + def test_uts46_1654(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮Ⴢ.Ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮Ⴢ.Ⴃ', strict=True) + + def test_uts46_1655(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮ⴢ.ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮ⴢ.ⴃ', strict=True) + + def test_uts46_1656(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮ⴢ.ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮ⴢ.ⴃ', strict=True) + + def test_uts46_1657(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮Ⴢ.ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮Ⴢ.ⴃ', strict=True) + + def test_uts46_1658(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮Ⴢ.ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮Ⴢ.ⴃ', strict=True) + + def test_uts46_1659(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mfb266l4khr54u.xn--ukj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mfb266l4khr54u.xn--ukj', strict=True) + + def test_uts46_1660(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮ⴢ.ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮ⴢ.ⴃ', strict=True) + + def test_uts46_1661(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮ⴢ.ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮ⴢ.ⴃ', strict=True) + + def test_uts46_1662(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮Ⴢ.ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮Ⴢ.ⴃ', strict=True) + + def test_uts46_1663(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0604𐩔≮Ⴢ.ⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0604𐩔≮Ⴢ.ⴃ', strict=True) + + def test_uts46_1664(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mfb416c0jox02t.xn--ukj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mfb416c0jox02t.xn--ukj', strict=True) + + def test_uts46_1665(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mfb416c0jox02t.xn--bnd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mfb416c0jox02t.xn--bnd', strict=True) + + def test_uts46_1666(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑁅。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑁅。-', strict=True) + + def test_uts46_1667(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--210d.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--210d.-', strict=True) + + def test_uts46_1668(self): + self.assertRaises(idna.IDNAError, idna.decode, '්\U00095e3d\U000e09f1。饈≠٤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '්\U00095e3d\U000e09f1。饈≠٤', strict=True) + + def test_uts46_1669(self): + self.assertRaises(idna.IDNAError, idna.decode, '්\U00095e3d\U000e09f1。饈≠٤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '්\U00095e3d\U000e09f1。饈≠٤', strict=True) + + def test_uts46_1670(self): + self.assertRaises(idna.IDNAError, idna.decode, '්\U00095e3d\U000e09f1。饈≠٤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '්\U00095e3d\U000e09f1。饈≠٤', strict=True) + + def test_uts46_1671(self): + self.assertRaises(idna.IDNAError, idna.decode, '්\U00095e3d\U000e09f1。饈≠٤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '්\U00095e3d\U000e09f1。饈≠٤', strict=True) + + def test_uts46_1672(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--h1c25913jfwov.xn--dib144ler5f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--h1c25913jfwov.xn--dib144ler5f', strict=True) + + def test_uts46_1673(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞥃ᠠ⁷。≯邅⬻4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞥃ᠠ⁷。≯邅⬻4', strict=True) + + def test_uts46_1674(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞥃ᠠ⁷。≯邅⬻4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞥃ᠠ⁷。≯邅⬻4', strict=True) + + def test_uts46_1675(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞥃ᠠ7。≯邅⬻4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞥃ᠠ7。≯邅⬻4', strict=True) + + def test_uts46_1676(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞥃ᠠ7。≯邅⬻4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞥃ᠠ7。≯邅⬻4', strict=True) + + def test_uts46_1677(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤡ᠠ7。≯邅⬻4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤡ᠠ7。≯邅⬻4', strict=True) + + def test_uts46_1678(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤡ᠠ7。≯邅⬻4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤡ᠠ7。≯邅⬻4', strict=True) + + def test_uts46_1679(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7-v4j2826w.xn--4-ogoy01bou3i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7-v4j2826w.xn--4-ogoy01bou3i', strict=True) + + def test_uts46_1680(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤡ᠠ⁷。≯邅⬻4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤡ᠠ⁷。≯邅⬻4', strict=True) + + def test_uts46_1681(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤡ᠠ⁷。≯邅⬻4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤡ᠠ⁷。≯邅⬻4', strict=True) + + def test_uts46_1682(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a0fefᡳ-𑐻.𐹴𐋫\u0605\U000d13b3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a0fefᡳ-𑐻.𐹴𐋫\u0605\U000d13b3', strict=True) + + def test_uts46_1683(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----m9j3429kxmy7e.xn--nfb7950kdihrp812a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----m9j3429kxmy7e.xn--nfb7950kdihrp812a', strict=True) + + def test_uts46_1684(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a0d86ࡅੑ.넨-\U000f69c8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a0d86ࡅੑ.넨-\U000f69c8', strict=True) + + def test_uts46_1685(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a0d86ࡅੑ.넨-\U000f69c8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a0d86ࡅੑ.넨-\U000f69c8', strict=True) + + def test_uts46_1686(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3vb26hb6834b.xn----i37ez0957g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3vb26hb6834b.xn----i37ez0957g', strict=True) + + def test_uts46_1687(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡦᡑ\u200d⒈。𐋣-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡦᡑ\u200d⒈。𐋣-', strict=True) + + def test_uts46_1688(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡦᡑ\u200d1.。𐋣-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡦᡑ\u200d1.。𐋣-', strict=True) + + def test_uts46_1689(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-o7j0610f..xn----381i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-o7j0610f..xn----381i', strict=True) + + def test_uts46_1690(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-o7j663bdl7m..xn----381i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-o7j663bdl7m..xn----381i', strict=True) + + def test_uts46_1691(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--h8e863drj7h.xn----381i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--h8e863drj7h.xn----381i', strict=True) + + def test_uts46_1692(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--h8e470bl0d838o.xn----381i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--h8e470bl0d838o.xn----381i', strict=True) + + def test_uts46_1693(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴌ。\U0010df20ﭩ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴌ。\U0010df20ﭩ', strict=True) + + def test_uts46_1694(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴌ。\U0010df20ٹ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴌ。\U0010df20ٹ', strict=True) + + def test_uts46_1695(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴌ。\U0010df20ٹ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴌ。\U0010df20ٹ', strict=True) + + def test_uts46_1696(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3kj.xn--yib19191t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3kj.xn--yib19191t', strict=True) + + def test_uts46_1697(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴌ。\U0010df20ﭩ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴌ。\U0010df20ﭩ', strict=True) + + def test_uts46_1698(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--knd.xn--yib19191t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--knd.xn--yib19191t', strict=True) + + def test_uts46_1699(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐮁𐭱.྄፞-ᳺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐮁𐭱.྄፞-ᳺ', strict=True) + + def test_uts46_1700(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--r19c5a.xn----xjg270ag3m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--r19c5a.xn----xjg270ag3m', strict=True) + + def test_uts46_1701(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈䰹\u200d-。웈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈䰹\u200d-。웈', strict=True) + + def test_uts46_1702(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈䰹\u200d-。웈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈䰹\u200d-。웈', strict=True) + + def test_uts46_1703(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.䰹\u200d-。웈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.䰹\u200d-。웈', strict=True) + + def test_uts46_1704(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.䰹\u200d-。웈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.䰹\u200d-。웈', strict=True) + + def test_uts46_1705(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn----zw5a.xn--kp5b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn----zw5a.xn--kp5b', strict=True) + + def test_uts46_1706(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn----tgnz80r.xn--kp5b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn----tgnz80r.xn--kp5b', strict=True) + + def test_uts46_1707(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----dcp160o.xn--kp5b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----dcp160o.xn--kp5b', strict=True) + + def test_uts46_1708(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----tgnx5rjr6c.xn--kp5b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----tgnx5rjr6c.xn--kp5b', strict=True) + + def test_uts46_1709(self): + self.assertRaises(idna.IDNAError, idna.decode, 'て。\u200c\U000e0cfd߳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'て。\u200c\U000e0cfd߳', strict=True) + + def test_uts46_1710(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--m9j.xn--rtb10784p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--m9j.xn--rtb10784p', strict=True) + + def test_uts46_1711(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--m9j.xn--rtb154j9l73w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--m9j.xn--rtb154j9l73w', strict=True) + + def test_uts46_1712(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς。꧀ۧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς。꧀ۧ', strict=True) + + def test_uts46_1713(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς。꧀ۧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς。꧀ۧ', strict=True) + + def test_uts46_1714(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ。꧀ۧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ。꧀ۧ', strict=True) + + def test_uts46_1715(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ。꧀ۧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ。꧀ۧ', strict=True) + + def test_uts46_1716(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa.xn--3lb1944f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa.xn--3lb1944f', strict=True) + + def test_uts46_1717(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa.xn--3lb1944f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa.xn--3lb1944f', strict=True) + + def test_uts46_1718(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ。꧀ۧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ。꧀ۧ', strict=True) + + def test_uts46_1719(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ。꧀ۧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ。꧀ۧ', strict=True) + + def test_uts46_1720(self): + self.assertRaises(idna.IDNAError, idna.decode, '்\U000e5ac5\U0008c251.ႢႵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '்\U000e5ac5\U0008c251.ႢႵ', strict=True) + + def test_uts46_1721(self): + self.assertRaises(idna.IDNAError, idna.decode, '்\U000e5ac5\U0008c251.ⴂⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '்\U000e5ac5\U0008c251.ⴂⴕ', strict=True) + + def test_uts46_1722(self): + self.assertRaises(idna.IDNAError, idna.decode, '்\U000e5ac5\U0008c251.Ⴂⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '்\U000e5ac5\U0008c251.Ⴂⴕ', strict=True) + + def test_uts46_1723(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xmc83135idcxza.xn--tkjwb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xmc83135idcxza.xn--tkjwb', strict=True) + + def test_uts46_1724(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xmc83135idcxza.xn--9md086l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xmc83135idcxza.xn--9md086l', strict=True) + + def test_uts46_1725(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xmc83135idcxza.xn--9md2b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xmc83135idcxza.xn--9md2b', strict=True) + + def test_uts46_1726(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᰲ🄈⾛֦.\u200d\U000af964߽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᰲ🄈⾛֦.\u200d\U000af964߽', strict=True) + + def test_uts46_1727(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᰲ7,走֦.\u200d\U000af964߽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᰲ7,走֦.\u200d\U000af964߽', strict=True) + + def test_uts46_1728(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7,-bid991urn3k.xn--1tb13454l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7,-bid991urn3k.xn--1tb13454l', strict=True) + + def test_uts46_1729(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7,-bid991urn3k.xn--1tb334j1197q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7,-bid991urn3k.xn--1tb334j1197q', strict=True) + + def test_uts46_1730(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xcb756i493fwi5o.xn--1tb13454l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xcb756i493fwi5o.xn--1tb13454l', strict=True) + + def test_uts46_1731(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xcb756i493fwi5o.xn--1tb334j1197q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xcb756i493fwi5o.xn--1tb334j1197q', strict=True) + + def test_uts46_1732(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢗ。Ӏ\U0005d13b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢗ。Ӏ\U0005d13b', strict=True) + + def test_uts46_1733(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢗ。Ӏ\U0005d13b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢗ。Ӏ\U0005d13b', strict=True) + + def test_uts46_1734(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢗ。ӏ\U0005d13b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢗ。ӏ\U0005d13b', strict=True) + + def test_uts46_1735(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hbf.xn--s5a83117e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hbf.xn--s5a83117e', strict=True) + + def test_uts46_1736(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢗ。ӏ\U0005d13b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢗ。ӏ\U0005d13b', strict=True) + + def test_uts46_1737(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hbf.xn--d5a86117e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hbf.xn--d5a86117e', strict=True) + + def test_uts46_1738(self): + self.assertRaises(idna.IDNAError, idna.decode, '٨-。\U000603c7🝆ᄾ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٨-。\U000603c7🝆ᄾ', strict=True) + + def test_uts46_1739(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----oqc.xn--qrd1699v327w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----oqc.xn--qrd1699v327w', strict=True) + + def test_uts46_1740(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𐋷𖾑。󠆬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𐋷𖾑。󠆬', strict=True) + + def test_uts46_1741(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----991iq40y.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----991iq40y.', strict=True) + + def test_uts46_1742(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹳🐴멈.꯭\U0005087c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹳🐴멈.꯭\U0005087c', strict=True) + + def test_uts46_1743(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹳🐴멈.꯭\U0005087c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹳🐴멈.꯭\U0005087c', strict=True) + + def test_uts46_1744(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--422b325mqb6i.xn--429a8682s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--422b325mqb6i.xn--429a8682s', strict=True) + + def test_uts46_1745(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug6681d406b7bwk.xn--429a8682s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug6681d406b7bwk.xn--429a8682s', strict=True) + + def test_uts46_1746(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮.ݩ\u0603', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮.ݩ\u0603', strict=True) + + def test_uts46_1747(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮.ݩ\u0603', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮.ݩ\u0603', strict=True) + + def test_uts46_1748(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh.xn--lfb92e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh.xn--lfb92e', strict=True) + + def test_uts46_1749(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010dad⾆。\u200c𑚶\U0009fc43\U0001ec18', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010dad⾆。\u200c𑚶\U0009fc43\U0001ec18', strict=True) + + def test_uts46_1750(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010dad舌。\u200c𑚶\U0009fc43\U0001ec18', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010dad舌。\u200c𑚶\U0009fc43\U0001ec18', strict=True) + + def test_uts46_1751(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tc1ao37z.xn--6e2dw557azds2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tc1ao37z.xn--6e2dw557azds2d', strict=True) + + def test_uts46_1752(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tc1ao37z.xn--0ugx728gi1nfwqz2e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tc1ao37z.xn--0ugx728gi1nfwqz2e', strict=True) + + def test_uts46_1753(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cჀ-.𝟷ς𞴺ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cჀ-.𝟷ς𞴺ς', strict=True) + + def test_uts46_1754(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cჀ-.1ς𞴺ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cჀ-.1ς𞴺ς', strict=True) + + def test_uts46_1755(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴠ-.1ς𞴺ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴠ-.1ς𞴺ς', strict=True) + + def test_uts46_1756(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cჀ-.1Σ𞴺Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cჀ-.1Σ𞴺Σ', strict=True) + + def test_uts46_1757(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴠ-.1σ𞴺σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴠ-.1σ𞴺σ', strict=True) + + def test_uts46_1758(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cჀ-.1σ𞴺Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cჀ-.1σ𞴺Σ', strict=True) + + def test_uts46_1759(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----2ws.xn--1-0mba52321c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----2ws.xn--1-0mba52321c', strict=True) + + def test_uts46_1760(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----rgn530d.xn--1-0mba52321c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----rgn530d.xn--1-0mba52321c', strict=True) + + def test_uts46_1761(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cჀ-.1ς𞴺Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cჀ-.1ς𞴺Σ', strict=True) + + def test_uts46_1762(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴠ-.1ς𞴺σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴠ-.1ς𞴺σ', strict=True) + + def test_uts46_1763(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----rgn530d.xn--1-ymbd52321c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----rgn530d.xn--1-ymbd52321c', strict=True) + + def test_uts46_1764(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----rgn530d.xn--1-ymba92321c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----rgn530d.xn--1-ymba92321c', strict=True) + + def test_uts46_1765(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴠ-.𝟷ς𞴺ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴠ-.𝟷ς𞴺ς', strict=True) + + def test_uts46_1766(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cჀ-.𝟷Σ𞴺Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cჀ-.𝟷Σ𞴺Σ', strict=True) + + def test_uts46_1767(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴠ-.𝟷σ𞴺σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴠ-.𝟷σ𞴺σ', strict=True) + + def test_uts46_1768(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cჀ-.𝟷σ𞴺Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cჀ-.𝟷σ𞴺Σ', strict=True) + + def test_uts46_1769(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cჀ-.𝟷ς𞴺Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cჀ-.𝟷ς𞴺Σ', strict=True) + + def test_uts46_1770(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴠ-.𝟷ς𞴺σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴠ-.𝟷ς𞴺σ', strict=True) + + def test_uts46_1771(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----z1g.xn--1-0mba52321c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----z1g.xn--1-0mba52321c', strict=True) + + def test_uts46_1772(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----z1g168i.xn--1-0mba52321c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----z1g168i.xn--1-0mba52321c', strict=True) + + def test_uts46_1773(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----z1g168i.xn--1-ymbd52321c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----z1g168i.xn--1-ymbd52321c', strict=True) + + def test_uts46_1774(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----z1g168i.xn--1-ymba92321c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----z1g168i.xn--1-ymba92321c', strict=True) + + def test_uts46_1775(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑲘󠄒\U00013461。𝟪Ⴜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑲘󠄒\U00013461。𝟪Ⴜ', strict=True) + + def test_uts46_1776(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑲘󠄒\U00013461。8Ⴜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑲘󠄒\U00013461。8Ⴜ', strict=True) + + def test_uts46_1777(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑲘󠄒\U00013461。8ⴜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑲘󠄒\U00013461。8ⴜ', strict=True) + + def test_uts46_1778(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7m3d291b.xn--8-vws', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7m3d291b.xn--8-vws', strict=True) + + def test_uts46_1779(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑲘󠄒\U00013461。𝟪ⴜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑲘󠄒\U00013461。𝟪ⴜ', strict=True) + + def test_uts46_1780(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7m3d291b.xn--8-s1g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7m3d291b.xn--8-s1g', strict=True) + + def test_uts46_1781(self): + self.assertRaises(idna.IDNAError, idna.decode, '䪏ګߠु。뭕ᢝឹ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䪏ګߠु。뭕ᢝឹ', strict=True) + + def test_uts46_1782(self): + self.assertRaises(idna.IDNAError, idna.decode, '䪏ګߠु。뭕ᢝឹ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䪏ګߠु。뭕ᢝឹ', strict=True) + + def test_uts46_1783(self): + self.assertRaises(idna.IDNAError, idna.decode, '䪏ګߠु。뭕ᢝឹ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䪏ګߠु。뭕ᢝឹ', strict=True) + + def test_uts46_1784(self): + self.assertRaises(idna.IDNAError, idna.decode, '䪏ګߠु。뭕ᢝឹ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䪏ګߠु。뭕ᢝឹ', strict=True) + + def test_uts46_1785(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ekb23dj4at01n.xn--43e96bh910b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ekb23dj4at01n.xn--43e96bh910b', strict=True) + + def test_uts46_1786(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮫。🂉\U000e0070', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮫。🂉\U000e0070', strict=True) + + def test_uts46_1787(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮫。🂉\U000e0070', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮫。🂉\U000e0070', strict=True) + + def test_uts46_1788(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zxf.xn--fx7ho0250c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zxf.xn--fx7ho0250c', strict=True) + + def test_uts46_1789(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e9383ૄ。ς\u200d𐹮𑈵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e9383ૄ。ς\u200d𐹮𑈵', strict=True) + + def test_uts46_1790(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e9383ૄ。Σ\u200d𐹮𑈵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e9383ૄ。Σ\u200d𐹮𑈵', strict=True) + + def test_uts46_1791(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e9383ૄ。σ\u200d𐹮𑈵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e9383ૄ。σ\u200d𐹮𑈵', strict=True) + + def test_uts46_1792(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dfc53161q.xn--4xa8467k5mc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dfc53161q.xn--4xa8467k5mc', strict=True) + + def test_uts46_1793(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dfc53161q.xn--4xa895lzo7nsfd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dfc53161q.xn--4xa895lzo7nsfd', strict=True) + + def test_uts46_1794(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dfc53161q.xn--3xa006lzo7nsfd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dfc53161q.xn--3xa006lzo7nsfd', strict=True) + + def test_uts46_1795(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫀ᡂ𑜫.𑘿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫀ᡂ𑜫.𑘿', strict=True) + + def test_uts46_1796(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫀ᡂ𑜫.𑘿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫀ᡂ𑜫.𑘿', strict=True) + + def test_uts46_1797(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--17e9625js1h.xn--sb2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--17e9625js1h.xn--sb2d', strict=True) + + def test_uts46_1798(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ec6b6\U000f82d6\U00096a70-。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ec6b6\U000f82d6\U00096a70-。\u200c', strict=True) + + def test_uts46_1799(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----7i12hu122k9ire.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----7i12hu122k9ire.', strict=True) + + def test_uts46_1800(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----7i12hu122k9ire.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----7i12hu122k9ire.xn--0ug', strict=True) + + def test_uts46_1801(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣.߂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣.߂', strict=True) + + def test_uts46_1802(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣.߂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣.߂', strict=True) + + def test_uts46_1803(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bo0d.xn--dsb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bo0d.xn--dsb', strict=True) + + def test_uts46_1804(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ߡ。Ↄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ߡ。Ↄ', strict=True) + + def test_uts46_1805(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ߡ。Ↄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ߡ。Ↄ', strict=True) + + def test_uts46_1806(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ߡ。ↄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ߡ。ↄ', strict=True) + + def test_uts46_1807(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----8cd.xn--r5g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----8cd.xn--r5g', strict=True) + + def test_uts46_1808(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ߡ。ↄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ߡ。ↄ', strict=True) + + def test_uts46_1809(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----8cd.xn--q5g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----8cd.xn--q5g', strict=True) + + def test_uts46_1810(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-︒󠄄。ß哑\u200c\U00010d7f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-︒󠄄。ß哑\u200c\U00010d7f', strict=True) + + def test_uts46_1811(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-。󠄄。ß哑\u200c\U00010d7f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-。󠄄。ß哑\u200c\U00010d7f', strict=True) + + def test_uts46_1812(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-。󠄄。SS哑\u200c\U00010d5f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-。󠄄。SS哑\u200c\U00010d5f', strict=True) + + def test_uts46_1813(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-。󠄄。ss哑\u200c\U00010d7f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-。󠄄。ss哑\u200c\U00010d7f', strict=True) + + def test_uts46_1814(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-。󠄄。Ss哑\u200c\U00010d5f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-。󠄄。Ss哑\u200c\U00010d5f', strict=True) + + def test_uts46_1815(self): + self.assertRaises(idna.IDNAError, idna.decode, '-..xn--ss-h46c5711e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-..xn--ss-h46c5711e', strict=True) + + def test_uts46_1816(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----tgn..xn--ss-k1ts75zb8ym', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----tgn..xn--ss-k1ts75zb8ym', strict=True) + + def test_uts46_1817(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----tgn..xn--zca670n5f0binyk', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----tgn..xn--zca670n5f0binyk', strict=True) + + def test_uts46_1818(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-︒󠄄。SS哑\u200c\U00010d5f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-︒󠄄。SS哑\u200c\U00010d5f', strict=True) + + def test_uts46_1819(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-︒󠄄。ss哑\u200c\U00010d7f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-︒󠄄。ss哑\u200c\U00010d7f', strict=True) + + def test_uts46_1820(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-︒󠄄。Ss哑\u200c\U00010d5f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-︒󠄄。Ss哑\u200c\U00010d5f', strict=True) + + def test_uts46_1821(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----o89h.xn--ss-h46c5711e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----o89h.xn--ss-h46c5711e', strict=True) + + def test_uts46_1822(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----tgnt341h.xn--ss-k1ts75zb8ym', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----tgnt341h.xn--ss-k1ts75zb8ym', strict=True) + + def test_uts46_1823(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----tgnt341h.xn--zca670n5f0binyk', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----tgnt341h.xn--zca670n5f0binyk', strict=True) + + def test_uts46_1824(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-。󠄄。SS哑\u200c\U00010d7f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-。󠄄。SS哑\u200c\U00010d7f', strict=True) + + def test_uts46_1825(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-。󠄄。Ss哑\u200c\U00010d7f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-。󠄄。Ss哑\u200c\U00010d7f', strict=True) + + def test_uts46_1826(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-︒󠄄。SS哑\u200c\U00010d7f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-︒󠄄。SS哑\u200c\U00010d7f', strict=True) + + def test_uts46_1827(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-︒󠄄。Ss哑\u200c\U00010d7f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-︒󠄄。Ss哑\u200c\U00010d7f', strict=True) + + def test_uts46_1828(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒.𑑂︯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒.𑑂︯', strict=True) + + def test_uts46_1829(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒.𑑂︯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒.𑑂︯', strict=True) + + def test_uts46_1830(self): + self.assertRaises(idna.IDNAError, idna.decode, '。.𑑂︯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。.𑑂︯', strict=True) + + def test_uts46_1831(self): + self.assertRaises(idna.IDNAError, idna.decode, '..xn--s96cu30b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '..xn--s96cu30b', strict=True) + + def test_uts46_1832(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y86c.xn--s96cu30b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y86c.xn--s96cu30b', strict=True) + + def test_uts46_1833(self): + self.assertRaises(idna.IDNAError, idna.decode, '꤬。\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꤬。\u200d', strict=True) + + def test_uts46_1834(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zi9a.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zi9a.', strict=True) + + def test_uts46_1835(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zi9a.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zi9a.xn--1ug', strict=True) + + def test_uts46_1836(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U000e0e21。ﳗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U000e0e21。ﳗ', strict=True) + + def test_uts46_1837(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U000e0e21。هج', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U000e0e21。هج', strict=True) + + def test_uts46_1838(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--d356e.xn--rgb7c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--d356e.xn--rgb7c', strict=True) + + def test_uts46_1839(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug80651l.xn--rgb7c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug80651l.xn--rgb7c', strict=True) + + def test_uts46_1840(self): + self.assertRaises(idna.IDNAError, idna.decode, '-Ⴄ𝟢٣.𑍴ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-Ⴄ𝟢٣.𑍴ς', strict=True) + + def test_uts46_1841(self): + self.assertRaises(idna.IDNAError, idna.decode, '-Ⴄ0٣.𑍴ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-Ⴄ0٣.𑍴ς', strict=True) + + def test_uts46_1842(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ⴄ0٣.𑍴ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ⴄ0٣.𑍴ς', strict=True) + + def test_uts46_1843(self): + self.assertRaises(idna.IDNAError, idna.decode, '-Ⴄ0٣.𑍴Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-Ⴄ0٣.𑍴Σ', strict=True) + + def test_uts46_1844(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ⴄ0٣.𑍴σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ⴄ0٣.𑍴σ', strict=True) + + def test_uts46_1845(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---0-iyd8660b.xn--4xa9120l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---0-iyd8660b.xn--4xa9120l', strict=True) + + def test_uts46_1846(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---0-iyd8660b.xn--3xa1220l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---0-iyd8660b.xn--3xa1220l', strict=True) + + def test_uts46_1847(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ⴄ𝟢٣.𑍴ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ⴄ𝟢٣.𑍴ς', strict=True) + + def test_uts46_1848(self): + self.assertRaises(idna.IDNAError, idna.decode, '-Ⴄ𝟢٣.𑍴Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-Ⴄ𝟢٣.𑍴Σ', strict=True) + + def test_uts46_1849(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ⴄ𝟢٣.𑍴σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ⴄ𝟢٣.𑍴σ', strict=True) + + def test_uts46_1850(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---0-iyd216h.xn--4xa9120l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---0-iyd216h.xn--4xa9120l', strict=True) + + def test_uts46_1851(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---0-iyd216h.xn--3xa1220l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---0-iyd216h.xn--3xa1220l', strict=True) + + def test_uts46_1852(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e6204。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e6204。-', strict=True) + + def test_uts46_1853(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xm38e.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xm38e.-', strict=True) + + def test_uts46_1854(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘ß≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘ß≯', strict=True) + + def test_uts46_1855(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘ß≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘ß≯', strict=True) + + def test_uts46_1856(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘ß≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘ß≯', strict=True) + + def test_uts46_1857(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘ß≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘ß≯', strict=True) + + def test_uts46_1858(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘SS≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘SS≯', strict=True) + + def test_uts46_1859(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘SS≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘SS≯', strict=True) + + def test_uts46_1860(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘ss≯', strict=True) + + def test_uts46_1861(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘ss≯', strict=True) + + def test_uts46_1862(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘Ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘Ss≯', strict=True) + + def test_uts46_1863(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘Ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘Ss≯', strict=True) + + def test_uts46_1864(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pgh4639f.xn--ss-ifj426nle504a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pgh4639f.xn--ss-ifj426nle504a', strict=True) + + def test_uts46_1865(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pgh4639f.xn--zca593eo6oc013y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pgh4639f.xn--zca593eo6oc013y', strict=True) + + def test_uts46_1866(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘SS≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘SS≯', strict=True) + + def test_uts46_1867(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘SS≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘SS≯', strict=True) + + def test_uts46_1868(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘ss≯', strict=True) + + def test_uts46_1869(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘ss≯', strict=True) + + def test_uts46_1870(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘Ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘Ss≯', strict=True) + + def test_uts46_1871(self): + self.assertRaises(idna.IDNAError, idna.decode, '⋠𐋮.\U000b622e༘Ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⋠𐋮.\U000b622e༘Ss≯', strict=True) + + def test_uts46_1872(self): + self.assertRaises(idna.IDNAError, idna.decode, '1𐋸٤。\U000e08aeﮤ\U0007774a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1𐋸٤。\U000e08aeﮤ\U0007774a', strict=True) + + def test_uts46_1873(self): + self.assertRaises(idna.IDNAError, idna.decode, '1𐋸٤。\U000e08aeۀ\U0007774a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1𐋸٤。\U000e08aeۀ\U0007774a', strict=True) + + def test_uts46_1874(self): + self.assertRaises(idna.IDNAError, idna.decode, '1𐋸٤。\U000e08aeۀ\U0007774a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1𐋸٤。\U000e08aeۀ\U0007774a', strict=True) + + def test_uts46_1875(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-hqc3905q.xn--zkb83268gqee4a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-hqc3905q.xn--zkb83268gqee4a', strict=True) + + def test_uts46_1876(self): + self.assertRaises(idna.IDNAError, idna.decode, '儭-。𐹴Ⴢ\U00065ce0\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '儭-。𐹴Ⴢ\U00065ce0\u200c', strict=True) + + def test_uts46_1877(self): + self.assertRaises(idna.IDNAError, idna.decode, '儭-。𐹴Ⴢ\U00065ce0\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '儭-。𐹴Ⴢ\U00065ce0\u200c', strict=True) + + def test_uts46_1878(self): + self.assertRaises(idna.IDNAError, idna.decode, '儭-。𐹴ⴢ\U00065ce0\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '儭-。𐹴ⴢ\U00065ce0\u200c', strict=True) + + def test_uts46_1879(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----gz7a.xn--qlj9223eywx0b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----gz7a.xn--qlj9223eywx0b', strict=True) + + def test_uts46_1880(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----gz7a.xn--0ug472cfq0pus98b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----gz7a.xn--0ug472cfq0pus98b', strict=True) + + def test_uts46_1881(self): + self.assertRaises(idna.IDNAError, idna.decode, '儭-。𐹴ⴢ\U00065ce0\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '儭-。𐹴ⴢ\U00065ce0\u200c', strict=True) + + def test_uts46_1882(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----gz7a.xn--6nd5001kyw98a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----gz7a.xn--6nd5001kyw98a', strict=True) + + def test_uts46_1883(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----gz7a.xn--6nd249ejl4pusr7b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----gz7a.xn--6nd249ejl4pusr7b', strict=True) + + def test_uts46_1884(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟺𐋷ڹ.𞤭\U000bf361', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟺𐋷ڹ.𞤭\U000bf361', strict=True) + + def test_uts46_1885(self): + self.assertRaises(idna.IDNAError, idna.decode, '4𐋷ڹ.𞤭\U000bf361', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4𐋷ڹ.𞤭\U000bf361', strict=True) + + def test_uts46_1886(self): + self.assertRaises(idna.IDNAError, idna.decode, '4𐋷ڹ.𞤋\U000bf361', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4𐋷ڹ.𞤋\U000bf361', strict=True) + + def test_uts46_1887(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-cvc5384q.xn--le6hi7322b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-cvc5384q.xn--le6hi7322b', strict=True) + + def test_uts46_1888(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟺𐋷ڹ.𞤋\U000bf361', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟺𐋷ڹ.𞤋\U000bf361', strict=True) + + def test_uts46_1889(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯-ꡋ𑲣.⒈𐹭', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯-ꡋ𑲣.⒈𐹭', strict=True) + + def test_uts46_1890(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯-ꡋ𑲣.⒈𐹭', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯-ꡋ𑲣.⒈𐹭', strict=True) + + def test_uts46_1891(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯-ꡋ𑲣.1.𐹭', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯-ꡋ𑲣.1.𐹭', strict=True) + + def test_uts46_1892(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯-ꡋ𑲣.1.𐹭', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯-ꡋ𑲣.1.𐹭', strict=True) + + def test_uts46_1893(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ogox061d5i8d.1.xn--lo0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ogox061d5i8d.1.xn--lo0d', strict=True) + + def test_uts46_1894(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ogox061d5i8d.xn--tsh0666f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ogox061d5i8d.xn--tsh0666f', strict=True) + + def test_uts46_1895(self): + self.assertRaises(idna.IDNAError, idna.decode, '̰.\U000f0731蚀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̰.\U000f0731蚀', strict=True) + + def test_uts46_1896(self): + self.assertRaises(idna.IDNAError, idna.decode, '̰.\U000f0731蚀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̰.\U000f0731蚀', strict=True) + + def test_uts46_1897(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xta.xn--e91aw9417e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xta.xn--e91aw9417e', strict=True) + + def test_uts46_1898(self): + self.assertRaises(idna.IDNAError, idna.decode, 'יּႸ.𞡼𑇀ß⃗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'יּႸ.𞡼𑇀ß⃗', strict=True) + + def test_uts46_1899(self): + self.assertRaises(idna.IDNAError, idna.decode, 'יּႸ.𞡼𑇀ß⃗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'יּႸ.𞡼𑇀ß⃗', strict=True) + + def test_uts46_1900(self): + self.assertRaises(idna.IDNAError, idna.decode, 'יּⴘ.𞡼𑇀ß⃗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'יּⴘ.𞡼𑇀ß⃗', strict=True) + + def test_uts46_1901(self): + self.assertRaises(idna.IDNAError, idna.decode, 'יּႸ.𞡼𑇀SS⃗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'יּႸ.𞡼𑇀SS⃗', strict=True) + + def test_uts46_1902(self): + self.assertRaises(idna.IDNAError, idna.decode, 'יּⴘ.𞡼𑇀ss⃗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'יּⴘ.𞡼𑇀ss⃗', strict=True) + + def test_uts46_1903(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kdb1d278n.xn--ss-yju5690ken9h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kdb1d278n.xn--ss-yju5690ken9h', strict=True) + + def test_uts46_1904(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kdb1d278n.xn--zca284nhg9nrrxg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kdb1d278n.xn--zca284nhg9nrrxg', strict=True) + + def test_uts46_1905(self): + self.assertRaises(idna.IDNAError, idna.decode, 'יּⴘ.𞡼𑇀ß⃗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'יּⴘ.𞡼𑇀ß⃗', strict=True) + + def test_uts46_1906(self): + self.assertRaises(idna.IDNAError, idna.decode, 'יּႸ.𞡼𑇀SS⃗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'יּႸ.𞡼𑇀SS⃗', strict=True) + + def test_uts46_1907(self): + self.assertRaises(idna.IDNAError, idna.decode, 'יּⴘ.𞡼𑇀ss⃗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'יּⴘ.𞡼𑇀ss⃗', strict=True) + + def test_uts46_1908(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kdb1d867b.xn--ss-yju5690ken9h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kdb1d867b.xn--ss-yju5690ken9h', strict=True) + + def test_uts46_1909(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kdb1d867b.xn--zca284nhg9nrrxg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kdb1d867b.xn--zca284nhg9nrrxg', strict=True) + + def test_uts46_1910(self): + self.assertRaises(idna.IDNAError, idna.decode, 'יּႸ.𞡼𑇀ss⃗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'יּႸ.𞡼𑇀ss⃗', strict=True) + + def test_uts46_1911(self): + self.assertRaises(idna.IDNAError, idna.decode, 'יּႸ.𞡼𑇀ss⃗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'יּႸ.𞡼𑇀ss⃗', strict=True) + + def test_uts46_1912(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᮣ𐹰\U00081c53。凬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᮣ𐹰\U00081c53。凬', strict=True) + + def test_uts46_1913(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᮣ𐹰\U00081c53。凬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᮣ𐹰\U00081c53。凬', strict=True) + + def test_uts46_1914(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rxfz314ilg20c.xn--t9q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rxfz314ilg20c.xn--t9q', strict=True) + + def test_uts46_1915(self): + self.assertRaises(idna.IDNAError, idna.decode, '🢟🄈\u200dꡎ。྄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🢟🄈\u200dꡎ。྄', strict=True) + + def test_uts46_1916(self): + self.assertRaises(idna.IDNAError, idna.decode, '🢟7,\u200dꡎ。྄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🢟7,\u200dꡎ。྄', strict=True) + + def test_uts46_1917(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7,-gh9hg322i.xn--3ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7,-gh9hg322i.xn--3ed', strict=True) + + def test_uts46_1918(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7,-n1t0654eqo3o.xn--3ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7,-n1t0654eqo3o.xn--3ed', strict=True) + + def test_uts46_1919(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nc9aq743ds0e.xn--3ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nc9aq743ds0e.xn--3ed', strict=True) + + def test_uts46_1920(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug4874cfd0kbmg.xn--3ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug4874cfd0kbmg.xn--3ed', strict=True) + + def test_uts46_1921(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡔ。္ᢇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡔ。္ᢇ', strict=True) + + def test_uts46_1922(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tc9a.xn--9jd663b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tc9a.xn--9jd663b', strict=True) + + def test_uts46_1923(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃫≮.𝨖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃫≮.𝨖', strict=True) + + def test_uts46_1924(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃫≮.𝨖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃫≮.𝨖', strict=True) + + def test_uts46_1925(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--e1g71d.xn--772h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--e1g71d.xn--772h', strict=True) + + def test_uts46_1926(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴢ≯褦.ᠪߪႾݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴢ≯褦.ᠪߪႾݧ', strict=True) + + def test_uts46_1927(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴢ≯褦.ᠪߪႾݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴢ≯褦.ᠪߪႾݧ', strict=True) + + def test_uts46_1928(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴢ≯褦.ᠪߪႾݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴢ≯褦.ᠪߪႾݧ', strict=True) + + def test_uts46_1929(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴢ≯褦.ᠪߪႾݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴢ≯褦.ᠪߪႾݧ', strict=True) + + def test_uts46_1930(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴢ≯褦.ᠪߪⴞݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴢ≯褦.ᠪߪⴞݧ', strict=True) + + def test_uts46_1931(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴢ≯褦.ᠪߪⴞݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴢ≯褦.ᠪߪⴞݧ', strict=True) + + def test_uts46_1932(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴢ≯褦.ᠪߪⴞݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴢ≯褦.ᠪߪⴞݧ', strict=True) + + def test_uts46_1933(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴢ≯褦.ᠪߪⴞݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴢ≯褦.ᠪߪⴞݧ', strict=True) + + def test_uts46_1934(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh433bev8e.xn--rpb5x392bcyt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh433bev8e.xn--rpb5x392bcyt', strict=True) + + def test_uts46_1935(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴢ≯褦.ᠪߪⴞݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴢ≯褦.ᠪߪⴞݧ', strict=True) + + def test_uts46_1936(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴢ≯褦.ᠪߪⴞݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴢ≯褦.ᠪߪⴞݧ', strict=True) + + def test_uts46_1937(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴢ≯褦.ᠪߪⴞݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴢ≯褦.ᠪߪⴞݧ', strict=True) + + def test_uts46_1938(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴢ≯褦.ᠪߪⴞݧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴢ≯褦.ᠪߪⴞݧ', strict=True) + + def test_uts46_1939(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6nd461g478e.xn--rpb5x392bcyt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6nd461g478e.xn--rpb5x392bcyt', strict=True) + + def test_uts46_1940(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6nd461g478e.xn--rpb5x49td2h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6nd461g478e.xn--rpb5x49td2h', strict=True) + + def test_uts46_1941(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008a246󠆒\u200c꥓。𞤙ٻꡘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008a246󠆒\u200c꥓。𞤙ٻꡘ', strict=True) + + def test_uts46_1942(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008a246󠆒\u200c꥓。𞤻ٻꡘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008a246󠆒\u200c꥓。𞤻ٻꡘ', strict=True) + + def test_uts46_1943(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3j9al6189a.xn--0ib8893fegvj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3j9al6189a.xn--0ib8893fegvj', strict=True) + + def test_uts46_1944(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug8815chtz0e.xn--0ib8893fegvj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug8815chtz0e.xn--0ib8893fegvj', strict=True) + + def test_uts46_1945(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.≯', strict=True) + + def test_uts46_1946(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.≯', strict=True) + + def test_uts46_1947(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--hdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--hdh', strict=True) + + def test_uts46_1948(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--hdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--hdh', strict=True) + + def test_uts46_1949(self): + self.assertRaises(idna.IDNAError, idna.decode, '𰅧\U00063a60-.꯭-悜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𰅧\U00063a60-.꯭-悜', strict=True) + + def test_uts46_1950(self): + self.assertRaises(idna.IDNAError, idna.decode, '𰅧\U00063a60-.꯭-悜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𰅧\U00063a60-.꯭-悜', strict=True) + + def test_uts46_1951(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----7m53aj640l.xn----8f4br83t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----7m53aj640l.xn----8f4br83t', strict=True) + + def test_uts46_1952(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡉ\U000364e7⬞ᢜ.-\u200d𞣑\u202e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡉ\U000364e7⬞ᢜ.-\u200d𞣑\u202e', strict=True) + + def test_uts46_1953(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--87e0ol04cdl39e.xn----qinu247r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--87e0ol04cdl39e.xn----qinu247r', strict=True) + + def test_uts46_1954(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--87e0ol04cdl39e.xn----ugn5e3763s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--87e0ol04cdl39e.xn----ugn5e3763s', strict=True) + + def test_uts46_1955(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒐\u200c衃Ⴝ.ڂႴ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒐\u200c衃Ⴝ.ڂႴ', strict=True) + + def test_uts46_1956(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.\u200c衃Ⴝ.ڂႴ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.\u200c衃Ⴝ.ڂႴ', strict=True) + + def test_uts46_1957(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.\u200c衃ⴝ.ڂⴔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.\u200c衃ⴝ.ڂⴔ', strict=True) + + def test_uts46_1958(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.\u200c衃Ⴝ.ڂⴔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.\u200c衃Ⴝ.ڂⴔ', strict=True) + + def test_uts46_1959(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.xn--llj1920a.xn--7ib268q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.xn--llj1920a.xn--7ib268q', strict=True) + + def test_uts46_1960(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.xn--0ug862cbm5e.xn--7ib268q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.xn--0ug862cbm5e.xn--7ib268q', strict=True) + + def test_uts46_1961(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒐\u200c衃ⴝ.ڂⴔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒐\u200c衃ⴝ.ڂⴔ', strict=True) + + def test_uts46_1962(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒐\u200c衃Ⴝ.ڂⴔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒐\u200c衃Ⴝ.ڂⴔ', strict=True) + + def test_uts46_1963(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1shy52abz3f.xn--7ib268q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1shy52abz3f.xn--7ib268q', strict=True) + + def test_uts46_1964(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugx0px1izu2h.xn--7ib268q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugx0px1izu2h.xn--7ib268q', strict=True) + + def test_uts46_1965(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.xn--1nd9032d.xn--7ib268q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.xn--1nd9032d.xn--7ib268q', strict=True) + + def test_uts46_1966(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.xn--1nd159e1y2f.xn--7ib268q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.xn--1nd159e1y2f.xn--7ib268q', strict=True) + + def test_uts46_1967(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.xn--1nd9032d.xn--7ib433c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.xn--1nd9032d.xn--7ib433c', strict=True) + + def test_uts46_1968(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.xn--1nd159e1y2f.xn--7ib433c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.xn--1nd159e1y2f.xn--7ib433c', strict=True) + + def test_uts46_1969(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1nd362hy16e.xn--7ib268q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1nd362hy16e.xn--7ib268q', strict=True) + + def test_uts46_1970(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1nd159ecmd785k.xn--7ib268q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1nd159ecmd785k.xn--7ib268q', strict=True) + + def test_uts46_1971(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1nd362hy16e.xn--7ib433c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1nd362hy16e.xn--7ib433c', strict=True) + + def test_uts46_1972(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1nd159ecmd785k.xn--7ib433c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1nd159ecmd785k.xn--7ib433c', strict=True) + + def test_uts46_1973(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߡ\u200c。--⸬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߡ\u200c。--⸬', strict=True) + + def test_uts46_1974(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8sb.xn-----iw2a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8sb.xn-----iw2a', strict=True) + + def test_uts46_1975(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8sb884j.xn-----iw2a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8sb884j.xn-----iw2a', strict=True) + + def test_uts46_1976(self): + self.assertEqual(idna.decode('𞥓.ܘ', uts46=True, strict=True), '𞥓.ܘ') + self.assertEqual(idna.encode('𞥓.ܘ', uts46=True, strict=True), b'xn--of6h.xn--inb') + + def test_uts46_1977(self): + self.assertEqual(idna.decode('𞥓.ܘ', uts46=True, strict=True), '𞥓.ܘ') + self.assertEqual(idna.encode('𞥓.ܘ', uts46=True, strict=True), b'xn--of6h.xn--inb') + + def test_uts46_1978(self): + self.assertEqual(idna.decode('xn--of6h.xn--inb', uts46=True, strict=True), '𞥓.ܘ') + self.assertEqual(idna.encode('xn--of6h.xn--inb', uts46=True, strict=True), b'xn--of6h.xn--inb') + + def test_uts46_1979(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄽-.-්', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄽-.-්', strict=True) + + def test_uts46_1980(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄽-.-්', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄽-.-්', strict=True) + + def test_uts46_1981(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn----ptf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn----ptf', strict=True) + + def test_uts46_1982(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠇝ݛ-.ᤧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠇝ݛ-.ᤧ', strict=True) + + def test_uts46_1983(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----k4c.xn--lff', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----k4c.xn--lff', strict=True) + + def test_uts46_1984(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤴󠆹⦉𐹺.꠆⒌\U000d8938', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤴󠆹⦉𐹺.꠆⒌\U000d8938', strict=True) + + def test_uts46_1985(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤴󠆹⦉𐹺.꠆5.\U000d8938', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤴󠆹⦉𐹺.꠆5.\U000d8938', strict=True) + + def test_uts46_1986(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤒󠆹⦉𐹺.꠆5.\U000d8938', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤒󠆹⦉𐹺.꠆5.\U000d8938', strict=True) + + def test_uts46_1987(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fuix729epewf.xn--5-w93e.xn--7b83e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fuix729epewf.xn--5-w93e.xn--7b83e', strict=True) + + def test_uts46_1988(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤒󠆹⦉𐹺.꠆⒌\U000d8938', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤒󠆹⦉𐹺.꠆⒌\U000d8938', strict=True) + + def test_uts46_1989(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fuix729epewf.xn--xsh5029b6e77i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fuix729epewf.xn--xsh5029b6e77i', strict=True) + + def test_uts46_1990(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄸₀。𑖿\u200c𐦂\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄸₀。𑖿\u200c𐦂\u200d', strict=True) + + def test_uts46_1991(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄸0。𑖿\u200c𐦂\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄸0。𑖿\u200c𐦂\u200d', strict=True) + + def test_uts46_1992(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.xn--mn9cz2s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.xn--mn9cz2s', strict=True) + + def test_uts46_1993(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.xn--0ugc8040p9hk', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.xn--0ugc8040p9hk', strict=True) + + def test_uts46_1994(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴚ𐋸󠄄。𝟝ퟶ်', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴚ𐋸󠄄。𝟝ퟶ်', strict=True) + + def test_uts46_1995(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴚ𐋸󠄄。5ퟶ်', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴚ𐋸󠄄。5ퟶ်', strict=True) + + def test_uts46_1996(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴚ𐋸󠄄。5ퟶ်', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴚ𐋸󠄄。5ퟶ်', strict=True) + + def test_uts46_1997(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ilj2659d.xn--5-dug9054m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ilj2659d.xn--5-dug9054m', strict=True) + + def test_uts46_1998(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴚ𐋸.5ퟶ်', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴚ𐋸.5ퟶ်', strict=True) + + def test_uts46_1999(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴚ𐋸.5ퟶ်', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴚ𐋸.5ퟶ်', strict=True) + + def test_uts46_2000(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴚ𐋸󠄄。𝟝ퟶ်', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴚ𐋸󠄄。𝟝ퟶ်', strict=True) + + def test_uts46_2001(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ynd2415j.xn--5-dug9054m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ynd2415j.xn--5-dug9054m', strict=True) + + def test_uts46_2002(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-ᠹ﹪.ᷡᤢ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-ᠹ﹪.ᷡᤢ', strict=True) + + def test_uts46_2003(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-ᠹ%.ᷡᤢ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-ᠹ%.ᷡᤢ', strict=True) + + def test_uts46_2004(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---%-u4o.xn--gff52t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---%-u4o.xn--gff52t', strict=True) + + def test_uts46_2005(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---%-u4oy48b.xn--gff52t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---%-u4oy48b.xn--gff52t', strict=True) + + def test_uts46_2006(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----c6jx047j.xn--gff52t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----c6jx047j.xn--gff52t', strict=True) + + def test_uts46_2007(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----c6j614b1z4v.xn--gff52t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----c6j614b1z4v.xn--gff52t', strict=True) + + def test_uts46_2008(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.ᠿ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.ᠿ', strict=True) + + def test_uts46_2009(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.ᠿ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.ᠿ', strict=True) + + def test_uts46_2010(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch.xn--y7e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch.xn--y7e', strict=True) + + def test_uts46_2011(self): + self.assertEqual(idna.decode('ܣ֣。㌪', uts46=True, strict=True), 'ܣ֣.ハイツ') + self.assertEqual(idna.encode('ܣ֣。㌪', uts46=True, strict=True), b'xn--ucb18e.xn--eck4c5a') + + def test_uts46_2012(self): + self.assertEqual(idna.decode('ܣ֣。ハイツ', uts46=True, strict=True), 'ܣ֣.ハイツ') + self.assertEqual(idna.encode('ܣ֣。ハイツ', uts46=True, strict=True), b'xn--ucb18e.xn--eck4c5a') + + def test_uts46_2013(self): + self.assertEqual(idna.decode('xn--ucb18e.xn--eck4c5a', uts46=True, strict=True), 'ܣ֣.ハイツ') + self.assertEqual(idna.encode('xn--ucb18e.xn--eck4c5a', uts46=True, strict=True), b'xn--ucb18e.xn--eck4c5a') + + def test_uts46_2014(self): + self.assertEqual(idna.decode('ܣ֣.ハイツ', uts46=True, strict=True), 'ܣ֣.ハイツ') + self.assertEqual(idna.encode('ܣ֣.ハイツ', uts46=True, strict=True), b'xn--ucb18e.xn--eck4c5a') + + def test_uts46_2015(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ede5󠆀≮.⵿-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ede5󠆀≮.⵿-', strict=True) + + def test_uts46_2016(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ede5󠆀≮.⵿-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ede5󠆀≮.⵿-', strict=True) + + def test_uts46_2017(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdhx802p.xn----i2s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdhx802p.xn----i2s', strict=True) + + def test_uts46_2018(self): + self.assertRaises(idna.IDNAError, idna.decode, '₆榎\U000a658e്。𞤅ۭﱚ\U000e0ba8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₆榎\U000a658e്。𞤅ۭﱚ\U000e0ba8', strict=True) + + def test_uts46_2019(self): + self.assertRaises(idna.IDNAError, idna.decode, '6榎\U000a658e്。𞤅ۭيي\U000e0ba8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6榎\U000a658e്。𞤅ۭيي\U000e0ba8', strict=True) + + def test_uts46_2020(self): + self.assertRaises(idna.IDNAError, idna.decode, '6榎\U000a658e്。𞤧ۭيي\U000e0ba8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6榎\U000a658e്。𞤧ۭيي\U000e0ba8', strict=True) + + def test_uts46_2021(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-kmf4691ejv41j.xn--mhba10ch545mn8v8h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-kmf4691ejv41j.xn--mhba10ch545mn8v8h', strict=True) + + def test_uts46_2022(self): + self.assertRaises(idna.IDNAError, idna.decode, '₆榎\U000a658e്。𞤧ۭﱚ\U000e0ba8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₆榎\U000a658e്。𞤧ۭﱚ\U000e0ba8', strict=True) + + def test_uts46_2023(self): + self.assertRaises(idna.IDNAError, idna.decode, '𣩫.\U0008c472', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𣩫.\U0008c472', strict=True) + + def test_uts46_2024(self): + self.assertRaises(idna.IDNAError, idna.decode, '𣩫.\U0008c472', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𣩫.\U0008c472', strict=True) + + def test_uts46_2025(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--td3j.xn--4628b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--td3j.xn--4628b', strict=True) + + def test_uts46_2026(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d︒。ڹ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d︒。ڹ\u200c', strict=True) + + def test_uts46_2027(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y86c.xn--skb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y86c.xn--skb', strict=True) + + def test_uts46_2028(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug2658f.xn--skb080k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug2658f.xn--skb080k', strict=True) + + def test_uts46_2029(self): + self.assertEqual(idna.decode('xn--skb', uts46=True, strict=True), 'ڹ') + self.assertEqual(idna.encode('xn--skb', uts46=True, strict=True), b'xn--skb') + + def test_uts46_2030(self): + self.assertEqual(idna.decode('ڹ', uts46=True, strict=True), 'ڹ') + self.assertEqual(idna.encode('ڹ', uts46=True, strict=True), b'xn--skb') + + def test_uts46_2031(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹦\u200c𐹶。\u206d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹦\u200c𐹶。\u206d', strict=True) + + def test_uts46_2032(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--eo0d6a.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--eo0d6a.', strict=True) + + def test_uts46_2033(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug4994goba.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug4994goba.', strict=True) + + def test_uts46_2034(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--eo0d6a.xn--sxg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--eo0d6a.xn--sxg', strict=True) + + def test_uts46_2035(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug4994goba.xn--sxg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug4994goba.xn--sxg', strict=True) + + def test_uts46_2036(self): + self.assertRaises(idna.IDNAError, idna.decode, '్𝨾֩𝟭。-𑜨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '్𝨾֩𝟭。-𑜨', strict=True) + + def test_uts46_2037(self): + self.assertRaises(idna.IDNAError, idna.decode, '్𝨾֩1。-𑜨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '్𝨾֩1。-𑜨', strict=True) + + def test_uts46_2038(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-rfc312cdp45c.xn----nq0j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-rfc312cdp45c.xn----nq0j', strict=True) + + def test_uts46_2039(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a3fc8。뙏', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a3fc8。뙏', strict=True) + + def test_uts46_2040(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a3fc8。뙏', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a3fc8。뙏', strict=True) + + def test_uts46_2041(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ph26c.xn--281b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ph26c.xn--281b', strict=True) + + def test_uts46_2042(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00055a1a󠄌\U000d1f40ᡀ.ࢶ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00055a1a󠄌\U000d1f40ᡀ.ࢶ', strict=True) + + def test_uts46_2043(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--z7e98100evc01b.xn--czb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--z7e98100evc01b.xn--czb', strict=True) + + def test_uts46_2044(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。\U0004505b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。\U0004505b', strict=True) + + def test_uts46_2045(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。\U0004505b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。\U0004505b', strict=True) + + def test_uts46_2046(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--6x4u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--6x4u', strict=True) + + def test_uts46_2047(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--6x4u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--6x4u', strict=True) + + def test_uts46_2048(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡋ皥.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡋ皥.-', strict=True) + + def test_uts46_2049(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡋ皥.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡋ皥.-', strict=True) + + def test_uts46_2050(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9vb4167c.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9vb4167c.-', strict=True) + + def test_uts46_2051(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000108f8̕𐮇.⒈ꡦ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000108f8̕𐮇.⒈ꡦ', strict=True) + + def test_uts46_2052(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000108f8̕𐮇.1.ꡦ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000108f8̕𐮇.1.ꡦ', strict=True) + + def test_uts46_2053(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5sa9915kgvb.1.xn--cd9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5sa9915kgvb.1.xn--cd9a', strict=True) + + def test_uts46_2054(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5sa9915kgvb.xn--tshw539b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5sa9915kgvb.xn--tshw539b', strict=True) + + def test_uts46_2055(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + + def test_uts46_2056(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + + def test_uts46_2057(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + + def test_uts46_2058(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + + def test_uts46_2059(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + + def test_uts46_2060(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + + def test_uts46_2061(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴛ\u200c֢\u200d。ᅠĀ𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴛ\u200c֢\u200d。ᅠĀ𐹦', strict=True) + + def test_uts46_2062(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴛ\u200c֢\u200d。ᅠĀ𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴛ\u200c֢\u200d。ᅠĀ𐹦', strict=True) + + def test_uts46_2063(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tcb323r.xn--yda4409k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tcb323r.xn--yda4409k', strict=True) + + def test_uts46_2064(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tcb736kea974k.xn--yda4409k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tcb736kea974k.xn--yda4409k', strict=True) + + def test_uts46_2065(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + + def test_uts46_2066(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴛ\u200c֢\u200d。ᅠā𐹦', strict=True) + + def test_uts46_2067(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴛ\u200c֢\u200d。ᅠĀ𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴛ\u200c֢\u200d。ᅠĀ𐹦', strict=True) + + def test_uts46_2068(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴛ\u200c֢\u200d。ᅠĀ𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴛ\u200c֢\u200d。ᅠĀ𐹦', strict=True) + + def test_uts46_2069(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tcb597c.xn--yda594fdn5q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tcb597c.xn--yda594fdn5q', strict=True) + + def test_uts46_2070(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tcb597cdmmfa.xn--yda594fdn5q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tcb597cdmmfa.xn--yda594fdn5q', strict=True) + + def test_uts46_2071(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tcb323r.xn--yda594fdn5q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tcb323r.xn--yda594fdn5q', strict=True) + + def test_uts46_2072(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tcb736kea974k.xn--yda594fdn5q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tcb736kea974k.xn--yda594fdn5q', strict=True) + + def test_uts46_2073(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tcb597c.xn--yda9741khjj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tcb597c.xn--yda9741khjj', strict=True) + + def test_uts46_2074(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tcb597cdmmfa.xn--yda9741khjj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tcb597cdmmfa.xn--yda9741khjj', strict=True) + + def test_uts46_2075(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tcb323r.xn--yda9741khjj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tcb323r.xn--yda9741khjj', strict=True) + + def test_uts46_2076(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tcb736kea974k.xn--yda9741khjj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tcb736kea974k.xn--yda9741khjj', strict=True) + + def test_uts46_2077(self): + self.assertRaises(idna.IDNAError, idna.decode, '\ufff9\u200c。曳⾑𐋰≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\ufff9\u200c。曳⾑𐋰≯', strict=True) + + def test_uts46_2078(self): + self.assertRaises(idna.IDNAError, idna.decode, '\ufff9\u200c。曳⾑𐋰≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\ufff9\u200c。曳⾑𐋰≯', strict=True) + + def test_uts46_2079(self): + self.assertRaises(idna.IDNAError, idna.decode, '\ufff9\u200c。曳襾𐋰≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\ufff9\u200c。曳襾𐋰≯', strict=True) + + def test_uts46_2080(self): + self.assertRaises(idna.IDNAError, idna.decode, '\ufff9\u200c。曳襾𐋰≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\ufff9\u200c。曳襾𐋰≯', strict=True) + + def test_uts46_2081(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vn7c.xn--hdh501y8wvfs5h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vn7c.xn--hdh501y8wvfs5h', strict=True) + + def test_uts46_2082(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug2139f.xn--hdh501y8wvfs5h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug2139f.xn--hdh501y8wvfs5h', strict=True) + + def test_uts46_2083(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯⒈。ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯⒈。ß', strict=True) + + def test_uts46_2084(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯⒈。ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯⒈。ß', strict=True) + + def test_uts46_2085(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯1.。ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯1.。ß', strict=True) + + def test_uts46_2086(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯1.。ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯1.。ß', strict=True) + + def test_uts46_2087(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯1.。SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯1.。SS', strict=True) + + def test_uts46_2088(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯1.。SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯1.。SS', strict=True) + + def test_uts46_2089(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯1.。ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯1.。ss', strict=True) + + def test_uts46_2090(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯1.。ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯1.。ss', strict=True) + + def test_uts46_2091(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯1.。Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯1.。Ss', strict=True) + + def test_uts46_2092(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯1.。Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯1.。Ss', strict=True) + + def test_uts46_2093(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-ogo..ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-ogo..ss', strict=True) + + def test_uts46_2094(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-ogo..xn--zca', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-ogo..xn--zca', strict=True) + + def test_uts46_2095(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯⒈。SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯⒈。SS', strict=True) + + def test_uts46_2096(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯⒈。SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯⒈。SS', strict=True) + + def test_uts46_2097(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯⒈。ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯⒈。ss', strict=True) + + def test_uts46_2098(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯⒈。ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯⒈。ss', strict=True) + + def test_uts46_2099(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯⒈。Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯⒈。Ss', strict=True) + + def test_uts46_2100(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯⒈。Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯⒈。Ss', strict=True) + + def test_uts46_2101(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh84f.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh84f.ss', strict=True) + + def test_uts46_2102(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh84f.xn--zca', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh84f.xn--zca', strict=True) + + def test_uts46_2103(self): + self.assertRaises(idna.IDNAError, idna.decode, '٧\u200dﮖ。ߚ-₆Ⴙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٧\u200dﮖ。ߚ-₆Ⴙ', strict=True) + + def test_uts46_2104(self): + self.assertRaises(idna.IDNAError, idna.decode, '٧\u200dڳ。ߚ-6Ⴙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٧\u200dڳ。ߚ-6Ⴙ', strict=True) + + def test_uts46_2105(self): + self.assertRaises(idna.IDNAError, idna.decode, '٧\u200dڳ。ߚ-6ⴙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٧\u200dڳ。ߚ-6ⴙ', strict=True) + + def test_uts46_2106(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gib6m.xn---6-lve6529a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gib6m.xn---6-lve6529a', strict=True) + + def test_uts46_2107(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gib6m343e.xn---6-lve6529a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gib6m343e.xn---6-lve6529a', strict=True) + + def test_uts46_2108(self): + self.assertRaises(idna.IDNAError, idna.decode, '٧\u200dﮖ。ߚ-₆ⴙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٧\u200dﮖ。ߚ-₆ⴙ', strict=True) + + def test_uts46_2109(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gib6m.xn---6-lve002g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gib6m.xn---6-lve002g', strict=True) + + def test_uts46_2110(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gib6m343e.xn---6-lve002g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gib6m343e.xn---6-lve002g', strict=True) + + def test_uts46_2111(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。≠', strict=True) + + def test_uts46_2112(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。≠', strict=True) + + def test_uts46_2113(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。≠', strict=True) + + def test_uts46_2114(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。≠', strict=True) + + def test_uts46_2115(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--1ch', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--1ch', strict=True) + + def test_uts46_2116(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--1ch', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--1ch', strict=True) + + def test_uts46_2117(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑖿𝨔.ᡟ𑖿ᭂ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑖿𝨔.ᡟ𑖿ᭂ\u200c', strict=True) + + def test_uts46_2118(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--461dw464a.xn--v8e29loy65a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--461dw464a.xn--v8e29loy65a', strict=True) + + def test_uts46_2119(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--461dw464a.xn--v8e29ldzfo952a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--461dw464a.xn--v8e29ldzfo952a', strict=True) + + def test_uts46_2120(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000948f3\u200d\U00091771.𖬴Ↄ≠-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000948f3\u200d\U00091771.𖬴Ↄ≠-', strict=True) + + def test_uts46_2121(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000948f3\u200d\U00091771.𖬴Ↄ≠-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000948f3\u200d\U00091771.𖬴Ↄ≠-', strict=True) + + def test_uts46_2122(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000948f3\u200d\U00091771.𖬴ↄ≠-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000948f3\u200d\U00091771.𖬴ↄ≠-', strict=True) + + def test_uts46_2123(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000948f3\u200d\U00091771.𖬴ↄ≠-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000948f3\u200d\U00091771.𖬴ↄ≠-', strict=True) + + def test_uts46_2124(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6j00chy9a.xn----81n51bt713h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6j00chy9a.xn----81n51bt713h', strict=True) + + def test_uts46_2125(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug15151gkb5a.xn----81n51bt713h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug15151gkb5a.xn----81n51bt713h', strict=True) + + def test_uts46_2126(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6j00chy9a.xn----61n81bt713h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6j00chy9a.xn----61n81bt713h', strict=True) + + def test_uts46_2127(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug15151gkb5a.xn----61n81bt713h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug15151gkb5a.xn----61n81bt713h', strict=True) + + def test_uts46_2128(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߢς\u200d𝟳。蔑\U0009b5a2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߢς\u200d𝟳。蔑\U0009b5a2', strict=True) + + def test_uts46_2129(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߢς\u200d7。蔑\U0009b5a2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߢς\u200d7。蔑\U0009b5a2', strict=True) + + def test_uts46_2130(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߢΣ\u200d7。蔑\U0009b5a2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߢΣ\u200d7。蔑\U0009b5a2', strict=True) + + def test_uts46_2131(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߢσ\u200d7。蔑\U0009b5a2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߢσ\u200d7。蔑\U0009b5a2', strict=True) + + def test_uts46_2132(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7-zmb872a.xn--wy1ao4929b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7-zmb872a.xn--wy1ao4929b', strict=True) + + def test_uts46_2133(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7-zmb872aez5a.xn--wy1ao4929b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7-zmb872aez5a.xn--wy1ao4929b', strict=True) + + def test_uts46_2134(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7-xmb182aez5a.xn--wy1ao4929b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7-xmb182aez5a.xn--wy1ao4929b', strict=True) + + def test_uts46_2135(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߢΣ\u200d𝟳。蔑\U0009b5a2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߢΣ\u200d𝟳。蔑\U0009b5a2', strict=True) + + def test_uts46_2136(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߢσ\u200d𝟳。蔑\U0009b5a2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߢσ\u200d𝟳。蔑\U0009b5a2', strict=True) + + def test_uts46_2137(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹰.\u0600', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹰.\u0600', strict=True) + + def test_uts46_2138(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--oo0d.xn--ifb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--oo0d.xn--ifb', strict=True) + + def test_uts46_2139(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ࢨ.𱠖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ࢨ.𱠖', strict=True) + + def test_uts46_2140(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----mod.xn--5o9n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----mod.xn--5o9n', strict=True) + + def test_uts46_2141(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𞱸󠇀。誆⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𞱸󠇀。誆⒈', strict=True) + + def test_uts46_2142(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𞱸󠇀。誆⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𞱸󠇀。誆⒈', strict=True) + + def test_uts46_2143(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𞱸󠇀。誆1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𞱸󠇀。誆1.', strict=True) + + def test_uts46_2144(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𞱸󠇀。誆1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𞱸󠇀。誆1.', strict=True) + + def test_uts46_2145(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh7151p.xn--1-dy1d.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh7151p.xn--1-dy1d.', strict=True) + + def test_uts46_2146(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh7151p.xn--tsh1248a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh7151p.xn--tsh1248a', strict=True) + + def test_uts46_2147(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ؖ𞥙䐊ِ.︒م↺ڜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ؖ𞥙䐊ِ.︒م↺ڜ', strict=True) + + def test_uts46_2148(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ؖ𞥙䐊ِ.。م↺ڜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ؖ𞥙䐊ِ.。م↺ڜ', strict=True) + + def test_uts46_2149(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4fb0j490qjg4x..xn--hhb8o948e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4fb0j490qjg4x..xn--hhb8o948e', strict=True) + + def test_uts46_2150(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4fb0j490qjg4x.xn--hhb8o948euo5r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4fb0j490qjg4x.xn--hhb8o948euo5r', strict=True) + + def test_uts46_2151(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.\u200cૅ\U000e9e24۴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.\u200cૅ\U000e9e24۴', strict=True) + + def test_uts46_2152(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.\u200cૅ\U000e9e24۴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.\u200cૅ\U000e9e24۴', strict=True) + + def test_uts46_2153(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---?-6g4k75207c.xn--hmb76q74166b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---?-6g4k75207c.xn--hmb76q74166b', strict=True) + + def test_uts46_2154(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---?-6g4k75207c.xn--hmb76q48y18505a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---?-6g4k75207c.xn--hmb76q48y18505a', strict=True) + + def test_uts46_2155(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.xn--hmb76q74166b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.xn--hmb76q74166b', strict=True) + + def test_uts46_2156(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.xn--hmb76q74166b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.xn--hmb76q74166b', strict=True) + + def test_uts46_2157(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.XN--HMB76Q74166B', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.XN--HMB76Q74166B', strict=True) + + def test_uts46_2158(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.XN--HMB76Q74166B', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.XN--HMB76Q74166B', strict=True) + + def test_uts46_2159(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.Xn--Hmb76q74166b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.Xn--Hmb76q74166b', strict=True) + + def test_uts46_2160(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.Xn--Hmb76q74166b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.Xn--Hmb76q74166b', strict=True) + + def test_uts46_2161(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.xn--hmb76q48y18505a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.xn--hmb76q48y18505a', strict=True) + + def test_uts46_2162(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.xn--hmb76q48y18505a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.xn--hmb76q48y18505a', strict=True) + + def test_uts46_2163(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.XN--HMB76Q48Y18505A', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.XN--HMB76Q48Y18505A', strict=True) + + def test_uts46_2164(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.XN--HMB76Q48Y18505A', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.XN--HMB76Q48Y18505A', strict=True) + + def test_uts46_2165(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.Xn--Hmb76q48y18505a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.Xn--Hmb76q48y18505a', strict=True) + + def test_uts46_2166(self): + self.assertRaises(idna.IDNAError, idna.decode, '퀬-?\U00076cd2.Xn--Hmb76q48y18505a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '퀬-?\U00076cd2.Xn--Hmb76q48y18505a', strict=True) + + def test_uts46_2167(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴌ.𐹾︒𑁿\U0001ef84', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴌ.𐹾︒𑁿\U0001ef84', strict=True) + + def test_uts46_2168(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴌ.𐹾。𑁿\U0001ef84', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴌ.𐹾。𑁿\U0001ef84', strict=True) + + def test_uts46_2169(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴌ.𐹾。𑁿\U0001ef84', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴌ.𐹾。𑁿\U0001ef84', strict=True) + + def test_uts46_2170(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3kj.xn--2o0d.xn--q30dg029a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3kj.xn--2o0d.xn--q30dg029a', strict=True) + + def test_uts46_2171(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴌ.𐹾︒𑁿\U0001ef84', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴌ.𐹾︒𑁿\U0001ef84', strict=True) + + def test_uts46_2172(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3kj.xn--y86c030a9ob6374b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3kj.xn--y86c030a9ob6374b', strict=True) + + def test_uts46_2173(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--knd.xn--2o0d.xn--q30dg029a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--knd.xn--2o0d.xn--q30dg029a', strict=True) + + def test_uts46_2174(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--knd.xn--y86c030a9ob6374b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--knd.xn--y86c030a9ob6374b', strict=True) + + def test_uts46_2175(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000677bf╏。\U0001ea55\U000e007e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000677bf╏。\U0001ea55\U000e007e', strict=True) + + def test_uts46_2176(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iyh90030d.xn--1m6hs0260c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iyh90030d.xn--1m6hs0260c', strict=True) + + def test_uts46_2177(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d┮󠇐.ఀ్᜴\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d┮󠇐.ఀ్᜴\u200d', strict=True) + + def test_uts46_2178(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d┮󠇐.ఀ్᜴\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d┮󠇐.ఀ్᜴\u200d', strict=True) + + def test_uts46_2179(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kxh.xn--eoc8m432a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kxh.xn--eoc8m432a', strict=True) + + def test_uts46_2180(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug04r.xn--eoc8m432a40i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug04r.xn--eoc8m432a40i', strict=True) + + def test_uts46_2181(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000b96aa。🄂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000b96aa。🄂', strict=True) + + def test_uts46_2182(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000b96aa。1,', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000b96aa。1,', strict=True) + + def test_uts46_2183(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n433d.1,', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n433d.1,', strict=True) + + def test_uts46_2184(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n433d.xn--v07h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n433d.xn--v07h', strict=True) + + def test_uts46_2185(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑍨刍.🛦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑍨刍.🛦', strict=True) + + def test_uts46_2186(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rbry728b.xn--y88h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rbry728b.xn--y88h', strict=True) + + def test_uts46_2187(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e030f3。ᯱ𝟒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e030f3。ᯱ𝟒', strict=True) + + def test_uts46_2188(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e030f3。ᯱ4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e030f3。ᯱ4', strict=True) + + def test_uts46_2189(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-ib31m.xn--4-pql', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-ib31m.xn--4-pql', strict=True) + + def test_uts46_2190(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڇ6Ⴔ辘.ﴢڇ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڇ6Ⴔ辘.ﴢڇ\u200c', strict=True) + + def test_uts46_2191(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڇ6Ⴔ辘.صيڇ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڇ6Ⴔ辘.صيڇ\u200c', strict=True) + + def test_uts46_2192(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڇ6ⴔ辘.صيڇ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڇ6ⴔ辘.صيڇ\u200c', strict=True) + + def test_uts46_2193(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-gsc2270akm6f.xn--0gb6bxk', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-gsc2270akm6f.xn--0gb6bxk', strict=True) + + def test_uts46_2194(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-gsc2270akm6f.xn--0gb6bxkx18g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-gsc2270akm6f.xn--0gb6bxkx18g', strict=True) + + def test_uts46_2195(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڇ6ⴔ辘.ﴢڇ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڇ6ⴔ辘.ﴢڇ\u200c', strict=True) + + def test_uts46_2196(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-gsc039eqq6k.xn--0gb6bxk', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-gsc039eqq6k.xn--0gb6bxk', strict=True) + + def test_uts46_2197(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-gsc039eqq6k.xn--0gb6bxkx18g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-gsc039eqq6k.xn--0gb6bxkx18g', strict=True) + + def test_uts46_2198(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄍.𐮭\U0001ec2c\U000bbade۹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄍.𐮭\U0001ec2c\U000bbade۹', strict=True) + + def test_uts46_2199(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--mmb3954kd0uf1zx7f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--mmb3954kd0uf1zx7f', strict=True) + + def test_uts46_2200(self): + self.assertRaises(idna.IDNAError, idna.decode, '\ua87d≯.\U000bbc80\U00092cc4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\ua87d≯.\U000bbc80\U00092cc4', strict=True) + + def test_uts46_2201(self): + self.assertRaises(idna.IDNAError, idna.decode, '\ua87d≯.\U000bbc80\U00092cc4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\ua87d≯.\U000bbc80\U00092cc4', strict=True) + + def test_uts46_2202(self): + self.assertRaises(idna.IDNAError, idna.decode, '\ua87d≯.\U000bbc80\U00092cc4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\ua87d≯.\U000bbc80\U00092cc4', strict=True) + + def test_uts46_2203(self): + self.assertRaises(idna.IDNAError, idna.decode, '\ua87d≯.\U000bbc80\U00092cc4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\ua87d≯.\U000bbc80\U00092cc4', strict=True) + + def test_uts46_2204(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh8193c.xn--5z40cp629b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh8193c.xn--5z40cp629b', strict=True) + + def test_uts46_2205(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ςოٻ.ςܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ςოٻ.ςܔ', strict=True) + + def test_uts46_2206(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ΣᲝٻ.Σܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ΣᲝٻ.Σܔ', strict=True) + + def test_uts46_2207(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σოٻ.σܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σოٻ.σܔ', strict=True) + + def test_uts46_2208(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σოٻ.σܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σოٻ.σܔ', strict=True) + + def test_uts46_2209(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa60l26n.xn--4xa21o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa60l26n.xn--4xa21o', strict=True) + + def test_uts46_2210(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σოٻ.ςܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σოٻ.ςܔ', strict=True) + + def test_uts46_2211(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σოٻ.ςܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σოٻ.ςܔ', strict=True) + + def test_uts46_2212(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa60l26n.xn--3xa41o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa60l26n.xn--3xa41o', strict=True) + + def test_uts46_2213(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa80l26n.xn--3xa41o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa80l26n.xn--3xa41o', strict=True) + + def test_uts46_2214(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σოٻ.Σܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σოٻ.Σܔ', strict=True) + + def test_uts46_2215(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008459a݈𠄯ݟ。\U000e06e9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008459a݈𠄯ݟ。\U000e06e9', strict=True) + + def test_uts46_2216(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008459a݈𠄯ݟ。\U000e06e9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008459a݈𠄯ݟ。\U000e06e9', strict=True) + + def test_uts46_2217(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vob0c4369twfv8b.xn--kl46e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vob0c4369twfv8b.xn--kl46e', strict=True) + + def test_uts46_2218(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0cdb.\u200d䤫≠Ⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0cdb.\u200d䤫≠Ⴞ', strict=True) + + def test_uts46_2219(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0cdb.\u200d䤫≠Ⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0cdb.\u200d䤫≠Ⴞ', strict=True) + + def test_uts46_2220(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0cdb.\u200d䤫≠Ⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0cdb.\u200d䤫≠Ⴞ', strict=True) + + def test_uts46_2221(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0cdb.\u200d䤫≠Ⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0cdb.\u200d䤫≠Ⴞ', strict=True) + + def test_uts46_2222(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0cdb.\u200d䤫≠ⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0cdb.\u200d䤫≠ⴞ', strict=True) + + def test_uts46_2223(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0cdb.\u200d䤫≠ⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0cdb.\u200d䤫≠ⴞ', strict=True) + + def test_uts46_2224(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1t56e.xn--1ch153bqvw', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1t56e.xn--1ch153bqvw', strict=True) + + def test_uts46_2225(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1t56e.xn--1ug73gzzpwi3a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1t56e.xn--1ug73gzzpwi3a', strict=True) + + def test_uts46_2226(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0cdb.\u200d䤫≠ⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0cdb.\u200d䤫≠ⴞ', strict=True) + + def test_uts46_2227(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0cdb.\u200d䤫≠ⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0cdb.\u200d䤫≠ⴞ', strict=True) + + def test_uts46_2228(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1t56e.xn--2nd141ghl2a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1t56e.xn--2nd141ghl2a', strict=True) + + def test_uts46_2229(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1t56e.xn--2nd159e9vb743e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1t56e.xn--2nd159e9vb743e', strict=True) + + def test_uts46_2230(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐽘𑈵.𐹣🕥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐽘𑈵.𐹣🕥', strict=True) + + def test_uts46_2231(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐽘𑈵.𐹣🕥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐽘𑈵.𐹣🕥', strict=True) + + def test_uts46_2232(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bv0d02c.xn--bo0dq650b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bv0d02c.xn--bo0dq650b', strict=True) + + def test_uts46_2233(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒊⒈𑁄。9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒊⒈𑁄。9', strict=True) + + def test_uts46_2234(self): + self.assertRaises(idna.IDNAError, idna.decode, '3.1.𑁄。9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3.1.𑁄。9', strict=True) + + def test_uts46_2235(self): + self.assertRaises(idna.IDNAError, idna.decode, '3.1.xn--110d.j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3.1.xn--110d.j', strict=True) + + def test_uts46_2236(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tshd3512p.j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tshd3512p.j', strict=True) + + def test_uts46_2237(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200cⷱ≮.𐹱\U000ad3f44₉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200cⷱ≮.𐹱\U000ad3f44₉', strict=True) + + def test_uts46_2238(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200cⷱ≮.𐹱\U000ad3f44₉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200cⷱ≮.𐹱\U000ad3f44₉', strict=True) + + def test_uts46_2239(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200cⷱ≮.𐹱\U000ad3f449', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200cⷱ≮.𐹱\U000ad3f449', strict=True) + + def test_uts46_2240(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200cⷱ≮.𐹱\U000ad3f449', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200cⷱ≮.𐹱\U000ad3f449', strict=True) + + def test_uts46_2241(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ngo823c.xn--49-ki3om2611f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ngo823c.xn--49-ki3om2611f', strict=True) + + def test_uts46_2242(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----sgn20i14s.xn--49-ki3om2611f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----sgn20i14s.xn--49-ki3om2611f', strict=True) + + def test_uts46_2243(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≯딾。ࡇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≯딾。ࡇ', strict=True) + + def test_uts46_2244(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≯딾。ࡇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≯딾。ࡇ', strict=True) + + def test_uts46_2245(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≯딾。ࡇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≯딾。ࡇ', strict=True) + + def test_uts46_2246(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≯딾。ࡇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≯딾。ࡇ', strict=True) + + def test_uts46_2247(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----pgow547d.xn--5vb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----pgow547d.xn--5vb', strict=True) + + def test_uts46_2248(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑙢⒈𐹠-。\U000e05d0\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑙢⒈𐹠-。\U000e05d0\u200c', strict=True) + + def test_uts46_2249(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑙢1.𐹠-。\U000e05d0\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑙢1.𐹠-。\U000e05d0\u200c', strict=True) + + def test_uts46_2250(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-bf0j.xn----516i.xn--jd46e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-bf0j.xn----516i.xn--jd46e', strict=True) + + def test_uts46_2251(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-bf0j.xn----516i.xn--0ug23321l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-bf0j.xn----516i.xn--0ug23321l', strict=True) + + def test_uts46_2252(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----dcpy090hiyg.xn--jd46e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----dcpy090hiyg.xn--jd46e', strict=True) + + def test_uts46_2253(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----dcpy090hiyg.xn--0ug23321l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----dcpy090hiyg.xn--0ug23321l', strict=True) + + def test_uts46_2254(self): + self.assertRaises(idna.IDNAError, idna.decode, '͊.𐨎', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '͊.𐨎', strict=True) + + def test_uts46_2255(self): + self.assertRaises(idna.IDNAError, idna.decode, '͊.𐨎', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '͊.𐨎', strict=True) + + def test_uts46_2256(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--oua.xn--mr9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--oua.xn--mr9c', strict=True) + + def test_uts46_2257(self): + self.assertRaises(idna.IDNAError, idna.decode, '훉≮。ิ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '훉≮。ิ', strict=True) + + def test_uts46_2258(self): + self.assertRaises(idna.IDNAError, idna.decode, '훉≮。ิ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '훉≮。ิ', strict=True) + + def test_uts46_2259(self): + self.assertRaises(idna.IDNAError, idna.decode, '훉≮。ิ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '훉≮。ิ', strict=True) + + def test_uts46_2260(self): + self.assertRaises(idna.IDNAError, idna.decode, '훉≮。ิ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '훉≮。ิ', strict=True) + + def test_uts46_2261(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh2512e.xn--i4c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh2512e.xn--i4c', strict=True) + + def test_uts46_2262(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⷷ\U0009e8c9🃘.\U00034207𝟸ٙ𞤯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⷷ\U0009e8c9🃘.\U00034207𝟸ٙ𞤯', strict=True) + + def test_uts46_2263(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⷷ\U0009e8c9🃘.\U000342072ٙ𞤯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⷷ\U0009e8c9🃘.\U000342072ٙ𞤯', strict=True) + + def test_uts46_2264(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⷷ\U0009e8c9🃘.\U000342072ٙ𞤍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⷷ\U0009e8c9🃘.\U000342072ٙ𞤍', strict=True) + + def test_uts46_2265(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--trj8045le6s9b.xn--2-upc23918acjsj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--trj8045le6s9b.xn--2-upc23918acjsj', strict=True) + + def test_uts46_2266(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⷷ\U0009e8c9🃘.\U00034207𝟸ٙ𞤍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⷷ\U0009e8c9🃘.\U00034207𝟸ٙ𞤍', strict=True) + + def test_uts46_2267(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d71e9ßᢞ\u200c。٠\U0001edfbﳔ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d71e9ßᢞ\u200c。٠\U0001edfbﳔ-', strict=True) + + def test_uts46_2268(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d71e9ßᢞ\u200c。٠\U0001edfbنخ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d71e9ßᢞ\u200c。٠\U0001edfbنخ-', strict=True) + + def test_uts46_2269(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d71e9SSᢞ\u200c。٠\U0001edfbنخ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d71e9SSᢞ\u200c。٠\U0001edfbنخ-', strict=True) + + def test_uts46_2270(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d71e9ssᢞ\u200c。٠\U0001edfbنخ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d71e9ssᢞ\u200c。٠\U0001edfbنخ-', strict=True) + + def test_uts46_2271(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d71e9Ssᢞ\u200c。٠\U0001edfbنخ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d71e9Ssᢞ\u200c。٠\U0001edfbنخ-', strict=True) + + def test_uts46_2272(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-jepz4596r.xn----dnc5e1er384z', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-jepz4596r.xn----dnc5e1er384z', strict=True) + + def test_uts46_2273(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-jep006bqt765b.xn----dnc5e1er384z', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-jep006bqt765b.xn----dnc5e1er384z', strict=True) + + def test_uts46_2274(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca272jbif10059a.xn----dnc5e1er384z', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca272jbif10059a.xn----dnc5e1er384z', strict=True) + + def test_uts46_2275(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d71e9SSᢞ\u200c。٠\U0001edfbﳔ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d71e9SSᢞ\u200c。٠\U0001edfbﳔ-', strict=True) + + def test_uts46_2276(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d71e9ssᢞ\u200c。٠\U0001edfbﳔ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d71e9ssᢞ\u200c。٠\U0001edfbﳔ-', strict=True) + + def test_uts46_2277(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d71e9Ssᢞ\u200c。٠\U0001edfbﳔ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d71e9Ssᢞ\u200c。٠\U0001edfbﳔ-', strict=True) + + def test_uts46_2278(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡆ。Ↄྵ놮-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡆ。Ↄྵ놮-', strict=True) + + def test_uts46_2279(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡆ。Ↄྵ놮-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡆ。Ↄྵ놮-', strict=True) + + def test_uts46_2280(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡆ。ↄྵ놮-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡆ。ↄྵ놮-', strict=True) + + def test_uts46_2281(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡆ。ↄྵ놮-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡆ。ↄྵ놮-', strict=True) + + def test_uts46_2282(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fc9a.xn----qmg097k469k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fc9a.xn----qmg097k469k', strict=True) + + def test_uts46_2283(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fc9a.xn----qmg787k869k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fc9a.xn----qmg787k869k', strict=True) + + def test_uts46_2284(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﶭ\u200d.\U00065c0cک', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﶭ\u200d.\U00065c0cک', strict=True) + + def test_uts46_2285(self): + self.assertRaises(idna.IDNAError, idna.decode, 'لمي\u200d.\U00065c0cک', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'لمي\u200d.\U00065c0cک', strict=True) + + def test_uts46_2286(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ghbcp.xn--ckb36214f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ghbcp.xn--ckb36214f', strict=True) + + def test_uts46_2287(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ghbcp494x.xn--ckb36214f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ghbcp494x.xn--ckb36214f', strict=True) + + def test_uts46_2288(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴜᰯ𐳒≯。۠ᜲྺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴜᰯ𐳒≯。۠ᜲྺ', strict=True) + + def test_uts46_2289(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴜᰯ𐳒≯。۠ᜲྺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴜᰯ𐳒≯。۠ᜲྺ', strict=True) + + def test_uts46_2290(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴜᰯ𐳒≯。۠ᜲྺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴜᰯ𐳒≯。۠ᜲྺ', strict=True) + + def test_uts46_2291(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴜᰯ𐳒≯。۠ᜲྺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴜᰯ𐳒≯。۠ᜲྺ', strict=True) + + def test_uts46_2292(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴜᰯ𐲒≯。۠ᜲྺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴜᰯ𐲒≯。۠ᜲྺ', strict=True) + + def test_uts46_2293(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴜᰯ𐲒≯。۠ᜲྺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴜᰯ𐲒≯。۠ᜲྺ', strict=True) + + def test_uts46_2294(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--r1f68xh1jgv7u.xn--wlb646b4ng', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--r1f68xh1jgv7u.xn--wlb646b4ng', strict=True) + + def test_uts46_2295(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0nd679cf3eq67y.xn--wlb646b4ng', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0nd679cf3eq67y.xn--wlb646b4ng', strict=True) + + def test_uts46_2296(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋵。ﳬ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋵。ﳬ', strict=True) + + def test_uts46_2297(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋵。كم', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋵。كم', strict=True) + + def test_uts46_2298(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--p97c.xn--fhbe', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--p97c.xn--fhbe', strict=True) + + def test_uts46_2299(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋵.كم', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋵.كم', strict=True) + + def test_uts46_2300(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮\U0001d176.\U00071c81ꫬ⹈\U000f096d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮\U0001d176.\U00071c81ꫬ⹈\U000f096d', strict=True) + + def test_uts46_2301(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮\U0001d176.\U00071c81ꫬ⹈\U000f096d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮\U0001d176.\U00071c81ꫬ⹈\U000f096d', strict=True) + + def test_uts46_2302(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮\U0001d176.\U00071c81ꫬ⹈\U000f096d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮\U0001d176.\U00071c81ꫬ⹈\U000f096d', strict=True) + + def test_uts46_2303(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮\U0001d176.\U00071c81ꫬ⹈\U000f096d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮\U0001d176.\U00071c81ꫬ⹈\U000f096d', strict=True) + + def test_uts46_2304(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh.xn--4tjx101bsg00ds9pyc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh.xn--4tjx101bsg00ds9pyc', strict=True) + + def test_uts46_2305(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh0880o.xn--4tjx101bsg00ds9pyc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh0880o.xn--4tjx101bsg00ds9pyc', strict=True) + + def test_uts46_2306(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⷰ͘ᢕ.͡𐹷\U000e0d0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⷰ͘ᢕ.͡𐹷\U000e0d0d', strict=True) + + def test_uts46_2307(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⷰ͘ᢕ.͡𐹷\U000e0d0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⷰ͘ᢕ.͡𐹷\U000e0d0d', strict=True) + + def test_uts46_2308(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2ua889htsp.xn--cva2687k2tv0g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2ua889htsp.xn--cva2687k2tv0g', strict=True) + + def test_uts46_2309(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﵹᡐ\u200cڭ.𑋪ׇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﵹᡐ\u200cڭ.𑋪ׇ', strict=True) + + def test_uts46_2310(self): + self.assertRaises(idna.IDNAError, idna.decode, 'غممᡐ\u200cڭ.𑋪ׇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'غممᡐ\u200cڭ.𑋪ׇ', strict=True) + + def test_uts46_2311(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5gbwa03bg24e.xn--vdb1198k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5gbwa03bg24e.xn--vdb1198k', strict=True) + + def test_uts46_2312(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5gbwa03bg24eptk.xn--vdb1198k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5gbwa03bg24eptk.xn--vdb1198k', strict=True) + + def test_uts46_2313(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑑂。\u200d\U000e5780🞕\U000a5054', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑑂。\u200d\U000e5780🞕\U000a5054', strict=True) + + def test_uts46_2314(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑑂。\u200d\U000e5780🞕\U000a5054', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑑂。\u200d\U000e5780🞕\U000a5054', strict=True) + + def test_uts46_2315(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8v1d.xn--ye9h41035a2qqs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8v1d.xn--ye9h41035a2qqs', strict=True) + + def test_uts46_2316(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8v1d.xn--1ug1386plvx1cd8vya', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8v1d.xn--1ug1386plvx1cd8vya', strict=True) + + def test_uts46_2317(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ש。⒚', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ש。⒚', strict=True) + + def test_uts46_2318(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ש。19.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ש。19.', strict=True) + + def test_uts46_2319(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----gjc.1j.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----gjc.1j.', strict=True) + + def test_uts46_2320(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----gjc.xn--cth', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----gjc.xn--cth', strict=True) + + def test_uts46_2321(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0010afbbࡅ\u200c。ᢎ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0010afbbࡅ\u200c。ᢎ\u200d', strict=True) + + def test_uts46_2322(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0010afbbࡅ\u200c。ᢎ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0010afbbࡅ\u200c。ᢎ\u200d', strict=True) + + def test_uts46_2323(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3vb50049s.xn--79e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3vb50049s.xn--79e', strict=True) + + def test_uts46_2324(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3vb882jz4411a.xn--79e259a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3vb882jz4411a.xn--79e259a', strict=True) + + def test_uts46_2325(self): + self.assertEqual(idna.decode('ßুᷭ。ؠ8₅', uts46=True, strict=True), 'ßুᷭ.ؠ85') + self.assertEqual(idna.encode('ßুᷭ。ؠ8₅', uts46=True, strict=True), b'xn--zca266bwrr.xn--85-psd') + + def test_uts46_2326(self): + self.assertEqual(idna.decode('ßুᷭ。ؠ85', uts46=True, strict=True), 'ßুᷭ.ؠ85') + self.assertEqual(idna.encode('ßুᷭ。ؠ85', uts46=True, strict=True), b'xn--zca266bwrr.xn--85-psd') + + def test_uts46_2327(self): + self.assertEqual(idna.decode('SSুᷭ。ؠ85', uts46=True, strict=True), 'ssুᷭ.ؠ85') + self.assertEqual(idna.encode('SSুᷭ。ؠ85', uts46=True, strict=True), b'xn--ss-e2f077r.xn--85-psd') + + def test_uts46_2328(self): + self.assertEqual(idna.decode('ssুᷭ。ؠ85', uts46=True, strict=True), 'ssুᷭ.ؠ85') + self.assertEqual(idna.encode('ssুᷭ。ؠ85', uts46=True, strict=True), b'xn--ss-e2f077r.xn--85-psd') + + def test_uts46_2329(self): + self.assertEqual(idna.decode('Ssুᷭ。ؠ85', uts46=True, strict=True), 'ssুᷭ.ؠ85') + self.assertEqual(idna.encode('Ssুᷭ。ؠ85', uts46=True, strict=True), b'xn--ss-e2f077r.xn--85-psd') + + def test_uts46_2330(self): + self.assertEqual(idna.decode('xn--ss-e2f077r.xn--85-psd', uts46=True, strict=True), 'ssুᷭ.ؠ85') + self.assertEqual(idna.encode('xn--ss-e2f077r.xn--85-psd', uts46=True, strict=True), b'xn--ss-e2f077r.xn--85-psd') + + def test_uts46_2331(self): + self.assertEqual(idna.decode('ssুᷭ.ؠ85', uts46=True, strict=True), 'ssুᷭ.ؠ85') + self.assertEqual(idna.encode('ssুᷭ.ؠ85', uts46=True, strict=True), b'xn--ss-e2f077r.xn--85-psd') + + def test_uts46_2332(self): + self.assertEqual(idna.decode('SSুᷭ.ؠ85', uts46=True, strict=True), 'ssুᷭ.ؠ85') + self.assertEqual(idna.encode('SSুᷭ.ؠ85', uts46=True, strict=True), b'xn--ss-e2f077r.xn--85-psd') + + def test_uts46_2333(self): + self.assertEqual(idna.decode('Ssুᷭ.ؠ85', uts46=True, strict=True), 'ssুᷭ.ؠ85') + self.assertEqual(idna.encode('Ssুᷭ.ؠ85', uts46=True, strict=True), b'xn--ss-e2f077r.xn--85-psd') + + def test_uts46_2334(self): + self.assertEqual(idna.decode('xn--zca266bwrr.xn--85-psd', uts46=True, strict=True), 'ßুᷭ.ؠ85') + self.assertEqual(idna.encode('xn--zca266bwrr.xn--85-psd', uts46=True, strict=True), b'xn--zca266bwrr.xn--85-psd') + + def test_uts46_2335(self): + self.assertEqual(idna.decode('ßুᷭ.ؠ85', uts46=True, strict=True), 'ßুᷭ.ؠ85') + self.assertEqual(idna.encode('ßুᷭ.ؠ85', uts46=True, strict=True), b'xn--zca266bwrr.xn--85-psd') + + def test_uts46_2336(self): + self.assertEqual(idna.decode('SSুᷭ。ؠ8₅', uts46=True, strict=True), 'ssুᷭ.ؠ85') + self.assertEqual(idna.encode('SSুᷭ。ؠ8₅', uts46=True, strict=True), b'xn--ss-e2f077r.xn--85-psd') + + def test_uts46_2337(self): + self.assertEqual(idna.decode('ssুᷭ。ؠ8₅', uts46=True, strict=True), 'ssুᷭ.ؠ85') + self.assertEqual(idna.encode('ssুᷭ。ؠ8₅', uts46=True, strict=True), b'xn--ss-e2f077r.xn--85-psd') + + def test_uts46_2338(self): + self.assertEqual(idna.decode('Ssুᷭ。ؠ8₅', uts46=True, strict=True), 'ssুᷭ.ؠ85') + self.assertEqual(idna.encode('Ssুᷭ。ؠ8₅', uts46=True, strict=True), b'xn--ss-e2f077r.xn--85-psd') + + def test_uts46_2339(self): + self.assertRaises(idna.IDNAError, idna.decode, '્҄魅𝟣.₃𐹥ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્҄魅𝟣.₃𐹥ß', strict=True) + + def test_uts46_2340(self): + self.assertRaises(idna.IDNAError, idna.decode, '્҄魅1.3𐹥ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્҄魅1.3𐹥ß', strict=True) + + def test_uts46_2341(self): + self.assertRaises(idna.IDNAError, idna.decode, '્҄魅1.3𐹥SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્҄魅1.3𐹥SS', strict=True) + + def test_uts46_2342(self): + self.assertRaises(idna.IDNAError, idna.decode, '્҄魅1.3𐹥ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્҄魅1.3𐹥ss', strict=True) + + def test_uts46_2343(self): + self.assertRaises(idna.IDNAError, idna.decode, '્҄魅1.3𐹥Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્҄魅1.3𐹥Ss', strict=True) + + def test_uts46_2344(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-0xb049b102o.xn--3ss-nv9t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-0xb049b102o.xn--3ss-nv9t', strict=True) + + def test_uts46_2345(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-0xb049b102o.xn--3-qfa7018r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-0xb049b102o.xn--3-qfa7018r', strict=True) + + def test_uts46_2346(self): + self.assertRaises(idna.IDNAError, idna.decode, '્҄魅𝟣.₃𐹥SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્҄魅𝟣.₃𐹥SS', strict=True) + + def test_uts46_2347(self): + self.assertRaises(idna.IDNAError, idna.decode, '્҄魅𝟣.₃𐹥ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્҄魅𝟣.₃𐹥ss', strict=True) + + def test_uts46_2348(self): + self.assertRaises(idna.IDNAError, idna.decode, '્҄魅𝟣.₃𐹥Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્҄魅𝟣.₃𐹥Ss', strict=True) + + def test_uts46_2349(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܫ。𑓂⒈𑜫\U000e0ffb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܫ。𑓂⒈𑜫\U000e0ffb', strict=True) + + def test_uts46_2350(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܫ。𑓂1.𑜫\U000e0ffb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܫ。𑓂1.𑜫\U000e0ffb', strict=True) + + def test_uts46_2351(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1nb.xn--1-jq9i.xn--ji2dg9877c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1nb.xn--1-jq9i.xn--ji2dg9877c', strict=True) + + def test_uts46_2352(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1nb.xn--tsh7798f6rbrt828c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1nb.xn--tsh7798f6rbrt828c', strict=True) + + def test_uts46_2353(self): + self.assertEqual(idna.decode('︍છ。嵨', uts46=True, strict=True), 'છ.嵨') + self.assertEqual(idna.encode('︍છ。嵨', uts46=True, strict=True), b'xn--6dc.xn--tot') + + def test_uts46_2354(self): + self.assertEqual(idna.decode('xn--6dc.xn--tot', uts46=True, strict=True), 'છ.嵨') + self.assertEqual(idna.encode('xn--6dc.xn--tot', uts46=True, strict=True), b'xn--6dc.xn--tot') + + def test_uts46_2355(self): + self.assertEqual(idna.decode('છ.嵨', uts46=True, strict=True), 'છ.嵨') + self.assertEqual(idna.encode('છ.嵨', uts46=True, strict=True), b'xn--6dc.xn--tot') + + def test_uts46_2356(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴔ≠Ⴀ.𐹥𐹰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴔ≠Ⴀ.𐹥𐹰', strict=True) + + def test_uts46_2357(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴔ≠Ⴀ.𐹥𐹰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴔ≠Ⴀ.𐹥𐹰', strict=True) + + def test_uts46_2358(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴔ≠ⴀ.𐹥𐹰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴔ≠ⴀ.𐹥𐹰', strict=True) + + def test_uts46_2359(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴔ≠ⴀ.𐹥𐹰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴔ≠ⴀ.𐹥𐹰', strict=True) + + def test_uts46_2360(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch603bxb.xn--do0dwa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch603bxb.xn--do0dwa', strict=True) + + def test_uts46_2361(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7md3b171g.xn--do0dwa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7md3b171g.xn--do0dwa', strict=True) + + def test_uts46_2362(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200c⒙𐫥。𝨵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200c⒙𐫥。𝨵', strict=True) + + def test_uts46_2363(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200c18.𐫥。𝨵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200c18.𐫥。𝨵', strict=True) + + def test_uts46_2364(self): + self.assertRaises(idna.IDNAError, idna.decode, '-18.xn--rx9c.xn--382h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-18.xn--rx9c.xn--382h', strict=True) + + def test_uts46_2365(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---18-9m0a.xn--rx9c.xn--382h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---18-9m0a.xn--rx9c.xn--382h', strict=True) + + def test_uts46_2366(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ddps939g.xn--382h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ddps939g.xn--382h', strict=True) + + def test_uts46_2367(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----sgn18r3191a.xn--382h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----sgn18r3191a.xn--382h', strict=True) + + def test_uts46_2368(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒.ʌᠣ-𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒.ʌᠣ-𐹽', strict=True) + + def test_uts46_2369(self): + self.assertRaises(idna.IDNAError, idna.decode, '。.ʌᠣ-𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。.ʌᠣ-𐹽', strict=True) + + def test_uts46_2370(self): + self.assertRaises(idna.IDNAError, idna.decode, '。.Ʌᠣ-𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。.Ʌᠣ-𐹽', strict=True) + + def test_uts46_2371(self): + self.assertRaises(idna.IDNAError, idna.decode, '..xn----73a596nuh9t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '..xn----73a596nuh9t', strict=True) + + def test_uts46_2372(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒.Ʌᠣ-𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒.Ʌᠣ-𐹽', strict=True) + + def test_uts46_2373(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y86c.xn----73a596nuh9t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y86c.xn----73a596nuh9t', strict=True) + + def test_uts46_2374(self): + self.assertRaises(idna.IDNAError, idna.decode, '︅︒。𦀾᳠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︅︒。𦀾᳠', strict=True) + + def test_uts46_2375(self): + self.assertRaises(idna.IDNAError, idna.decode, '︅。。𦀾᳠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︅。。𦀾᳠', strict=True) + + def test_uts46_2376(self): + self.assertRaises(idna.IDNAError, idna.decode, '..xn--t6f5138v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '..xn--t6f5138v', strict=True) + + def test_uts46_2377(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y86c.xn--t6f5138v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y86c.xn--t6f5138v', strict=True) + + def test_uts46_2378(self): + self.assertEqual(idna.decode('xn--t6f5138v', uts46=True, strict=True), '𦀾᳠') + self.assertEqual(idna.encode('xn--t6f5138v', uts46=True, strict=True), b'xn--t6f5138v') + + def test_uts46_2379(self): + self.assertEqual(idna.decode('𦀾᳠', uts46=True, strict=True), '𦀾᳠') + self.assertEqual(idna.encode('𦀾᳠', uts46=True, strict=True), b'xn--t6f5138v') + + def test_uts46_2380(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001eb91ß\U0010f79e。ᡁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001eb91ß\U0010f79e。ᡁ', strict=True) + + def test_uts46_2381(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001eb91SS\U0010f79e。ᡁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001eb91SS\U0010f79e。ᡁ', strict=True) + + def test_uts46_2382(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001eb91ss\U0010f79e。ᡁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001eb91ss\U0010f79e。ᡁ', strict=True) + + def test_uts46_2383(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001eb91Ss\U0010f79e。ᡁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001eb91Ss\U0010f79e。ᡁ', strict=True) + + def test_uts46_2384(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-o412ac6305g.xn--07e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-o412ac6305g.xn--07e', strict=True) + + def test_uts46_2385(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca9432wb989f.xn--07e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca9432wb989f.xn--07e', strict=True) + + def test_uts46_2386(self): + self.assertRaises(idna.IDNAError, idna.decode, '꥓\u200dج٬。𱆎\U000fb85f\u200c󠅆', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꥓\u200dج٬。𱆎\U000fb85f\u200c󠅆', strict=True) + + def test_uts46_2387(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rgb2k6711c.xn--ec8nj3948b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rgb2k6711c.xn--ec8nj3948b', strict=True) + + def test_uts46_2388(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rgb2k500fhq9j.xn--0ug78870a5sp9d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rgb2k500fhq9j.xn--0ug78870a5sp9d', strict=True) + + def test_uts46_2389(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-ß\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-ß\u200c≠', strict=True) + + def test_uts46_2390(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-ß\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-ß\u200c≠', strict=True) + + def test_uts46_2391(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-ß\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-ß\u200c≠', strict=True) + + def test_uts46_2392(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-ß\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-ß\u200c≠', strict=True) + + def test_uts46_2393(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-SS\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-SS\u200c≠', strict=True) + + def test_uts46_2394(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-SS\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-SS\u200c≠', strict=True) + + def test_uts46_2395(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-ss\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-ss\u200c≠', strict=True) + + def test_uts46_2396(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-ss\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-ss\u200c≠', strict=True) + + def test_uts46_2397(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-Ss\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-Ss\u200c≠', strict=True) + + def test_uts46_2398(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-Ss\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-Ss\u200c≠', strict=True) + + def test_uts46_2399(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--u836e.xn---ss-gl2a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--u836e.xn---ss-gl2a', strict=True) + + def test_uts46_2400(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--u836e.xn---ss-cn0at5l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--u836e.xn---ss-cn0at5l', strict=True) + + def test_uts46_2401(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--u836e.xn----qfa750ve7b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--u836e.xn----qfa750ve7b', strict=True) + + def test_uts46_2402(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-SS\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-SS\u200c≠', strict=True) + + def test_uts46_2403(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-SS\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-SS\u200c≠', strict=True) + + def test_uts46_2404(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-ss\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-ss\u200c≠', strict=True) + + def test_uts46_2405(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-ss\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-ss\u200c≠', strict=True) + + def test_uts46_2406(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-Ss\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-Ss\u200c≠', strict=True) + + def test_uts46_2407(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e054f.-Ss\u200c≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e054f.-Ss\u200c≠', strict=True) + + def test_uts46_2408(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡙ\u200c。≯𐋲≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡙ\u200c。≯𐋲≠', strict=True) + + def test_uts46_2409(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡙ\u200c。≯𐋲≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡙ\u200c。≯𐋲≠', strict=True) + + def test_uts46_2410(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡙ\u200c。≯𐋲≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡙ\u200c。≯𐋲≠', strict=True) + + def test_uts46_2411(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡙ\u200c。≯𐋲≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡙ\u200c。≯𐋲≠', strict=True) + + def test_uts46_2412(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--p8e.xn--1ch3a7084l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--p8e.xn--1ch3a7084l', strict=True) + + def test_uts46_2413(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡙ.≯𐋲≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡙ.≯𐋲≠', strict=True) + + def test_uts46_2414(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡙ.≯𐋲≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡙ.≯𐋲≠', strict=True) + + def test_uts46_2415(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--p8e650b.xn--1ch3a7084l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--p8e650b.xn--1ch3a7084l', strict=True) + + def test_uts46_2416(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹧𞲄\U000e006d\U00046f29。͎🄀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹧𞲄\U000e006d\U00046f29。͎🄀', strict=True) + + def test_uts46_2417(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹧𞲄\U000e006d\U00046f29。͎0.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹧𞲄\U000e006d\U00046f29。͎0.', strict=True) + + def test_uts46_2418(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fo0dw409aq58qrn69d.xn--0-bgb.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fo0dw409aq58qrn69d.xn--0-bgb.', strict=True) + + def test_uts46_2419(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fo0dw409aq58qrn69d.xn--sua6883w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fo0dw409aq58qrn69d.xn--sua6883w', strict=True) + + def test_uts46_2420(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴄ.\u200dܡ\U000fb8cbς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴄ.\u200dܡ\U000fb8cbς', strict=True) + + def test_uts46_2421(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴄ.\u200dܡ\U000fb8cbς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴄ.\u200dܡ\U000fb8cbς', strict=True) + + def test_uts46_2422(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴄ.\u200dܡ\U000fb8cbς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴄ.\u200dܡ\U000fb8cbς', strict=True) + + def test_uts46_2423(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴄ.\u200dܡ\U000fb8cbΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴄ.\u200dܡ\U000fb8cbΣ', strict=True) + + def test_uts46_2424(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴄ.\u200dܡ\U000fb8cbσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴄ.\u200dܡ\U000fb8cbσ', strict=True) + + def test_uts46_2425(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vkj.xn--4xa73ob5892c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vkj.xn--4xa73ob5892c', strict=True) + + def test_uts46_2426(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vkj.xn--4xa73o3t5ajq467a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vkj.xn--4xa73o3t5ajq467a', strict=True) + + def test_uts46_2427(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vkj.xn--3xa93o3t5ajq467a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vkj.xn--3xa93o3t5ajq467a', strict=True) + + def test_uts46_2428(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴄ.\u200dܡ\U000fb8cbς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴄ.\u200dܡ\U000fb8cbς', strict=True) + + def test_uts46_2429(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴄ.\u200dܡ\U000fb8cbΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴄ.\u200dܡ\U000fb8cbΣ', strict=True) + + def test_uts46_2430(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴄ.\u200dܡ\U000fb8cbσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴄ.\u200dܡ\U000fb8cbσ', strict=True) + + def test_uts46_2431(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cnd.xn--4xa73ob5892c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cnd.xn--4xa73ob5892c', strict=True) + + def test_uts46_2432(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cnd.xn--4xa73o3t5ajq467a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cnd.xn--4xa73o3t5ajq467a', strict=True) + + def test_uts46_2433(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cnd.xn--3xa93o3t5ajq467a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cnd.xn--3xa93o3t5ajq467a', strict=True) + + def test_uts46_2434(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000aed5bؓ.Ⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000aed5bؓ.Ⴕ', strict=True) + + def test_uts46_2435(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000aed5bؓ.ⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000aed5bؓ.ⴕ', strict=True) + + def test_uts46_2436(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1fb94204l.xn--dlj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1fb94204l.xn--dlj', strict=True) + + def test_uts46_2437(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1fb94204l.xn--tnd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1fb94204l.xn--tnd', strict=True) + + def test_uts46_2438(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯ᷳ𞤥。\u200c꣄\U000e0a89\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯ᷳ𞤥。\u200c꣄\U000e0a89\u200d', strict=True) + + def test_uts46_2439(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯ᷳ𞤥。\u200c꣄\U000e0a89\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯ᷳ𞤥。\u200c꣄\U000e0a89\u200d', strict=True) + + def test_uts46_2440(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯ᷳ𞤃。\u200c꣄\U000e0a89\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯ᷳ𞤃。\u200c꣄\U000e0a89\u200d', strict=True) + + def test_uts46_2441(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯ᷳ𞤃。\u200c꣄\U000e0a89\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯ᷳ𞤃。\u200c꣄\U000e0a89\u200d', strict=True) + + def test_uts46_2442(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ofg13qyr21c.xn--0f9au6706d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ofg13qyr21c.xn--0f9au6706d', strict=True) + + def test_uts46_2443(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ofg13qyr21c.xn--0ugc0116hix29k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ofg13qyr21c.xn--0ugc0116hix29k', strict=True) + + def test_uts46_2444(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c󠄷。\U00092441', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c󠄷。\U00092441', strict=True) + + def test_uts46_2445(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c󠄷。\U00092441', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c󠄷。\U00092441', strict=True) + + def test_uts46_2446(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--w720c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--w720c', strict=True) + + def test_uts46_2447(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--w720c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--w720c', strict=True) + + def test_uts46_2448(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈ූ焅.\U000d7859\u200dꡟ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈ූ焅.\U000d7859\u200dꡟ', strict=True) + + def test_uts46_2449(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.ූ焅.\U000d7859\u200dꡟ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.ූ焅.\U000d7859\u200dꡟ', strict=True) + + def test_uts46_2450(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--t1c6981c.xn--4c9a21133d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--t1c6981c.xn--4c9a21133d', strict=True) + + def test_uts46_2451(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--t1c6981c.xn--1ugz184c9lw7i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--t1c6981c.xn--1ugz184c9lw7i', strict=True) + + def test_uts46_2452(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t1c337io97c.xn--4c9a21133d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t1c337io97c.xn--4c9a21133d', strict=True) + + def test_uts46_2453(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t1c337io97c.xn--1ugz184c9lw7i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t1c337io97c.xn--1ugz184c9lw7i', strict=True) + + def test_uts46_2454(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍ς≮.ς𝪦𞤕0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍ς≮.ς𝪦𞤕0', strict=True) + + def test_uts46_2455(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍ς≮.ς𝪦𞤕0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍ς≮.ς𝪦𞤕0', strict=True) + + def test_uts46_2456(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍ς≮.ς𝪦𞤷0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍ς≮.ς𝪦𞤷0', strict=True) + + def test_uts46_2457(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍ς≮.ς𝪦𞤷0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍ς≮.ς𝪦𞤷0', strict=True) + + def test_uts46_2458(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍Σ≮.Σ𝪦𞤕0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍Σ≮.Σ𝪦𞤕0', strict=True) + + def test_uts46_2459(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍Σ≮.Σ𝪦𞤕0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍Σ≮.Σ𝪦𞤕0', strict=True) + + def test_uts46_2460(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍σ≮.σ𝪦𞤷0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍σ≮.σ𝪦𞤷0', strict=True) + + def test_uts46_2461(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍σ≮.σ𝪦𞤷0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍σ≮.σ𝪦𞤷0', strict=True) + + def test_uts46_2462(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍Σ≮.Σ𝪦𞤷0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍Σ≮.Σ𝪦𞤷0', strict=True) + + def test_uts46_2463(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍Σ≮.Σ𝪦𞤷0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍Σ≮.Σ𝪦𞤷0', strict=True) + + def test_uts46_2464(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa544kvid.xn--0-zmb55727aggma', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa544kvid.xn--0-zmb55727aggma', strict=True) + + def test_uts46_2465(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa744kvid.xn--0-xmb85727aggma', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa744kvid.xn--0-xmb85727aggma', strict=True) + + def test_uts46_2466(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍σ≮.σ𝪦𞤕0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍σ≮.σ𝪦𞤕0', strict=True) + + def test_uts46_2467(self): + self.assertRaises(idna.IDNAError, idna.decode, '᷍σ≮.σ𝪦𞤕0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᷍σ≮.σ𝪦𞤕0', strict=True) + + def test_uts46_2468(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a29beßֹ𐫙.֭ࢡ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a29beßֹ𐫙.֭ࢡ', strict=True) + + def test_uts46_2469(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a29beSSֹ𐫙.֭ࢡ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a29beSSֹ𐫙.֭ࢡ', strict=True) + + def test_uts46_2470(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a29bessֹ𐫙.֭ࢡ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a29bessֹ𐫙.֭ࢡ', strict=True) + + def test_uts46_2471(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a29beSsֹ𐫙.֭ࢡ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a29beSsֹ𐫙.֭ࢡ', strict=True) + + def test_uts46_2472(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-xjd6058xlz50g.xn--4cb62m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-xjd6058xlz50g.xn--4cb62m', strict=True) + + def test_uts46_2473(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca89v339zj118e.xn--4cb62m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca89v339zj118e.xn--4cb62m', strict=True) + + def test_uts46_2474(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𞣄。⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𞣄。⒈', strict=True) + + def test_uts46_2475(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𞣄。1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𞣄。1.', strict=True) + + def test_uts46_2476(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----xc8r.b.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----xc8r.b.', strict=True) + + def test_uts46_2477(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----xc8r.xn--tsh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----xc8r.xn--tsh', strict=True) + + def test_uts46_2478(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00048822𐫖𝟡。ؾ𑘿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00048822𐫖𝟡。ؾ𑘿', strict=True) + + def test_uts46_2479(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00048822𐫖9。ؾ𑘿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00048822𐫖9。ؾ𑘿', strict=True) + + def test_uts46_2480(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-el5iv442t.xn--9gb0830l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-el5iv442t.xn--9gb0830l', strict=True) + + def test_uts46_2481(self): + self.assertRaises(idna.IDNAError, idna.decode, '٨ﲌ٨ᩝ.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٨ﲌ٨ᩝ.\u200d', strict=True) + + def test_uts46_2482(self): + self.assertRaises(idna.IDNAError, idna.decode, '٨نم٨ᩝ.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٨نم٨ᩝ.\u200d', strict=True) + + def test_uts46_2483(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hhbb5hc956w.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hhbb5hc956w.', strict=True) + + def test_uts46_2484(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hhbb5hc956w.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hhbb5hc956w.xn--1ug', strict=True) + + def test_uts46_2485(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟘.Ⴇ\U000c0cd1ﵐ\U0006b0f1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟘.Ⴇ\U000c0cd1ﵐ\U0006b0f1', strict=True) + + def test_uts46_2486(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.Ⴇ\U000c0cd1تجم\U0006b0f1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.Ⴇ\U000c0cd1تجم\U0006b0f1', strict=True) + + def test_uts46_2487(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.ⴇ\U000c0cd1تجم\U0006b0f1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.ⴇ\U000c0cd1تجم\U0006b0f1', strict=True) + + def test_uts46_2488(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.xn--pgbe9ez79qd207lvff8b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.xn--pgbe9ez79qd207lvff8b', strict=True) + + def test_uts46_2489(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟘.ⴇ\U000c0cd1ﵐ\U0006b0f1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟘.ⴇ\U000c0cd1ﵐ\U0006b0f1', strict=True) + + def test_uts46_2490(self): + self.assertRaises(idna.IDNAError, idna.decode, '0.xn--pgbe9e344c2725svff8b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0.xn--pgbe9e344c2725svff8b', strict=True) + + def test_uts46_2491(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑇀▍.⁞ᠰ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑇀▍.⁞ᠰ', strict=True) + + def test_uts46_2492(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9zh3057f.xn--j7e103b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9zh3057f.xn--j7e103b', strict=True) + + def test_uts46_2493(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d-ٺ.\U0008fbe9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d-ٺ.\U0008fbe9', strict=True) + + def test_uts46_2494(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qrc.xn--ts49b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qrc.xn--ts49b', strict=True) + + def test_uts46_2495(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qrc357q.xn--ts49b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qrc357q.xn--ts49b', strict=True) + + def test_uts46_2496(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᠢ𐮂𐫘寐。\u200c≯✳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᠢ𐮂𐫘寐。\u200c≯✳', strict=True) + + def test_uts46_2497(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᠢ𐮂𐫘寐。\u200c≯✳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᠢ𐮂𐫘寐。\u200c≯✳', strict=True) + + def test_uts46_2498(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᠢ𐮂𐫘寐。\u200c≯✳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᠢ𐮂𐫘寐。\u200c≯✳', strict=True) + + def test_uts46_2499(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᠢ𐮂𐫘寐。\u200c≯✳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᠢ𐮂𐫘寐。\u200c≯✳', strict=True) + + def test_uts46_2500(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--46e6675axzzhota.xn--hdh99p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--46e6675axzzhota.xn--hdh99p', strict=True) + + def test_uts46_2501(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--46e6675axzzhota.xn--0ug06gu8f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--46e6675axzzhota.xn--0ug06gu8f', strict=True) + + def test_uts46_2502(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。\U000f8c9cႺႴ\U0001ea07', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。\U000f8c9cႺႴ\U0001ea07', strict=True) + + def test_uts46_2503(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。\U000f8c9cႺႴ\U0001ea07', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。\U000f8c9cႺႴ\U0001ea07', strict=True) + + def test_uts46_2504(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。\U000f8c9cⴚⴔ\U0001ea07', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。\U000f8c9cⴚⴔ\U0001ea07', strict=True) + + def test_uts46_2505(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。\U000f8c9cႺⴔ\U0001ea07', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。\U000f8c9cႺⴔ\U0001ea07', strict=True) + + def test_uts46_2506(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--cljl81825an3r4h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--cljl81825an3r4h', strict=True) + + def test_uts46_2507(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--cljl81825an3r4h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--cljl81825an3r4h', strict=True) + + def test_uts46_2508(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。\U000f8c9cⴚⴔ\U0001ea07', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。\U000f8c9cⴚⴔ\U0001ea07', strict=True) + + def test_uts46_2509(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。\U000f8c9cႺⴔ\U0001ea07', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。\U000f8c9cႺⴔ\U0001ea07', strict=True) + + def test_uts46_2510(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--ynd036lq981an3r4h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--ynd036lq981an3r4h', strict=True) + + def test_uts46_2511(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--ynd036lq981an3r4h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--ynd036lq981an3r4h', strict=True) + + def test_uts46_2512(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--sndl01647an3h1h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--sndl01647an3h1h', strict=True) + + def test_uts46_2513(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--sndl01647an3h1h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--sndl01647an3h1h', strict=True) + + def test_uts46_2514(self): + self.assertRaises(idna.IDNAError, idna.decode, '-3.\u200dヌᢕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-3.\u200dヌᢕ', strict=True) + + def test_uts46_2515(self): + self.assertRaises(idna.IDNAError, idna.decode, '-3.xn--fbf115j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-3.xn--fbf115j', strict=True) + + def test_uts46_2516(self): + self.assertRaises(idna.IDNAError, idna.decode, '-3.xn--fbf739aq5o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-3.xn--fbf739aq5o', strict=True) + + def test_uts46_2517(self): + self.assertRaises(idna.IDNAError, idna.decode, '🂃٦ß\u200d。\U000e0802\U000adc0d\U0001ea52-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🂃٦ß\u200d。\U000e0802\U000adc0d\U0001ea52-', strict=True) + + def test_uts46_2518(self): + self.assertRaises(idna.IDNAError, idna.decode, '🂃٦SS\u200d。\U000e0802\U000adc0d\U0001ea52-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🂃٦SS\u200d。\U000e0802\U000adc0d\U0001ea52-', strict=True) + + def test_uts46_2519(self): + self.assertRaises(idna.IDNAError, idna.decode, '🂃٦ss\u200d。\U000e0802\U000adc0d\U0001ea52-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🂃٦ss\u200d。\U000e0802\U000adc0d\U0001ea52-', strict=True) + + def test_uts46_2520(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-pyd98921c.xn----nz8rh7531csznt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-pyd98921c.xn----nz8rh7531csznt', strict=True) + + def test_uts46_2521(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-pyd483x5k99b.xn----nz8rh7531csznt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-pyd483x5k99b.xn----nz8rh7531csznt', strict=True) + + def test_uts46_2522(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca34z68yzu83b.xn----nz8rh7531csznt', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca34z68yzu83b.xn----nz8rh7531csznt', strict=True) + + def test_uts46_2523(self): + self.assertRaises(idna.IDNAError, idna.decode, '🂃٦Ss\u200d。\U000e0802\U000adc0d\U0001ea52-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🂃٦Ss\u200d。\U000e0802\U000adc0d\U0001ea52-', strict=True) + + def test_uts46_2524(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꇟ-𐾺ڟ。\U000b003a\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꇟ-𐾺ڟ。\U000b003a\u200c', strict=True) + + def test_uts46_2525(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----utc4430jd3zd.xn--bp20d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----utc4430jd3zd.xn--bp20d', strict=True) + + def test_uts46_2526(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----utc4430jd3zd.xn--0ugx6670i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----utc4430jd3zd.xn--0ugx6670i', strict=True) + + def test_uts46_2527(self): + self.assertRaises(idna.IDNAError, idna.decode, '٥.҄𐨗𝩋\U00034903', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٥.҄𐨗𝩋\U00034903', strict=True) + + def test_uts46_2528(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--eib.xn--n3a0405kus8eft5l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--eib.xn--n3a0405kus8eft5l', strict=True) + + def test_uts46_2529(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.\U00071f13ى𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.\U00071f13ى𐨿', strict=True) + + def test_uts46_2530(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--lhb4124khbq4b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--lhb4124khbq4b', strict=True) + + def test_uts46_2531(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28ς.\U0001ed99녫ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28ς.\U0001ed99녫ß', strict=True) + + def test_uts46_2532(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28ς.\U0001ed99녫ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28ς.\U0001ed99녫ß', strict=True) + + def test_uts46_2533(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28Σ.\U0001ed99녫SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28Σ.\U0001ed99녫SS', strict=True) + + def test_uts46_2534(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28Σ.\U0001ed99녫SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28Σ.\U0001ed99녫SS', strict=True) + + def test_uts46_2535(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28σ.\U0001ed99녫ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28σ.\U0001ed99녫ss', strict=True) + + def test_uts46_2536(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28σ.\U0001ed99녫ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28σ.\U0001ed99녫ss', strict=True) + + def test_uts46_2537(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28Σ.\U0001ed99녫ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28Σ.\U0001ed99녫ss', strict=True) + + def test_uts46_2538(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28Σ.\U0001ed99녫ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28Σ.\U0001ed99녫ss', strict=True) + + def test_uts46_2539(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28Σ.\U0001ed99녫Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28Σ.\U0001ed99녫Ss', strict=True) + + def test_uts46_2540(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28Σ.\U0001ed99녫Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28Σ.\U0001ed99녫Ss', strict=True) + + def test_uts46_2541(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa76659r.xn--ss-d64i8755h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa76659r.xn--ss-d64i8755h', strict=True) + + def test_uts46_2542(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28Σ.\U0001ed99녫ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28Σ.\U0001ed99녫ß', strict=True) + + def test_uts46_2543(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28Σ.\U0001ed99녫ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28Σ.\U0001ed99녫ß', strict=True) + + def test_uts46_2544(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28σ.\U0001ed99녫ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28σ.\U0001ed99녫ß', strict=True) + + def test_uts46_2545(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000feb28σ.\U0001ed99녫ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000feb28σ.\U0001ed99녫ß', strict=True) + + def test_uts46_2546(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa76659r.xn--zca5051g4h4i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa76659r.xn--zca5051g4h4i', strict=True) + + def test_uts46_2547(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa96659r.xn--zca5051g4h4i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa96659r.xn--zca5051g4h4i', strict=True) + + def test_uts46_2548(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⅎ្\u200d。≠\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⅎ្\u200d。≠\u200d\u200c', strict=True) + + def test_uts46_2549(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⅎ្\u200d。≠\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⅎ្\u200d。≠\u200d\u200c', strict=True) + + def test_uts46_2550(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⅎ្\u200d。≠\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⅎ្\u200d。≠\u200d\u200c', strict=True) + + def test_uts46_2551(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⅎ្\u200d。≠\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⅎ្\u200d。≠\u200d\u200c', strict=True) + + def test_uts46_2552(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⅎ្\u200d。≠\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⅎ្\u200d。≠\u200d\u200c', strict=True) + + def test_uts46_2553(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⅎ្\u200d。≠\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⅎ្\u200d。≠\u200d\u200c', strict=True) + + def test_uts46_2554(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--u4e969b.xn--1ch', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--u4e969b.xn--1ch', strict=True) + + def test_uts46_2555(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⅎ្.≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⅎ្.≠', strict=True) + + def test_uts46_2556(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⅎ្.≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⅎ្.≠', strict=True) + + def test_uts46_2557(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⅎ្.≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⅎ្.≠', strict=True) + + def test_uts46_2558(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⅎ្.≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⅎ្.≠', strict=True) + + def test_uts46_2559(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--u4e823bq1a.xn--0ugb89o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--u4e823bq1a.xn--0ugb89o', strict=True) + + def test_uts46_2560(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⅎ្\u200d。≠\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⅎ្\u200d。≠\u200d\u200c', strict=True) + + def test_uts46_2561(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⅎ្\u200d。≠\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⅎ្\u200d。≠\u200d\u200c', strict=True) + + def test_uts46_2562(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--u4e319b.xn--1ch', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--u4e319b.xn--1ch', strict=True) + + def test_uts46_2563(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--u4e823bcza.xn--0ugb89o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--u4e823bcza.xn--0ugb89o', strict=True) + + def test_uts46_2564(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋺꫶꥓\U000e7989.\u200c᜔ڏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋺꫶꥓\U000e7989.\u200c᜔ڏ', strict=True) + + def test_uts46_2565(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋺꫶꥓\U000e7989.\u200c᜔ڏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋺꫶꥓\U000e7989.\u200c᜔ڏ', strict=True) + + def test_uts46_2566(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3j9a14ak27osbz2o.xn--ljb175f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3j9a14ak27osbz2o.xn--ljb175f', strict=True) + + def test_uts46_2567(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3j9a14ak27osbz2o.xn--ljb175f1wg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3j9a14ak27osbz2o.xn--ljb175f1wg', strict=True) + + def test_uts46_2568(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007a52fྨ.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007a52fྨ.≯', strict=True) + + def test_uts46_2569(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007a52fྨ.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007a52fྨ.≯', strict=True) + + def test_uts46_2570(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007a52fྨ.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007a52fྨ.≯', strict=True) + + def test_uts46_2571(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007a52fྨ.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007a52fྨ.≯', strict=True) + + def test_uts46_2572(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4fd57150h.xn--hdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4fd57150h.xn--hdh', strict=True) + + def test_uts46_2573(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𞡄Ⴓ.𐇽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𞡄Ⴓ.𐇽', strict=True) + + def test_uts46_2574(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𞡄Ⴓ.𐇽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𞡄Ⴓ.𐇽', strict=True) + + def test_uts46_2575(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𞡄ⴓ.𐇽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𞡄ⴓ.𐇽', strict=True) + + def test_uts46_2576(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--blj7492l.xn--m27c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--blj7492l.xn--m27c', strict=True) + + def test_uts46_2577(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugz52c4i16a.xn--m27c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugz52c4i16a.xn--m27c', strict=True) + + def test_uts46_2578(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d𞡄ⴓ.𐇽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d𞡄ⴓ.𐇽', strict=True) + + def test_uts46_2579(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rnd5552v.xn--m27c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rnd5552v.xn--m27c', strict=True) + + def test_uts46_2580(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rnd379ex885a.xn--m27c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rnd379ex885a.xn--m27c', strict=True) + + def test_uts46_2581(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐪒ß꣪.ᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐪒ß꣪.ᡤ', strict=True) + + def test_uts46_2582(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐪒ß꣪.ᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐪒ß꣪.ᡤ', strict=True) + + def test_uts46_2583(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐪒SS꣪.ᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐪒SS꣪.ᡤ', strict=True) + + def test_uts46_2584(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐪒ss꣪.ᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐪒ss꣪.ᡤ', strict=True) + + def test_uts46_2585(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-tu9hw933a.xn--08e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-tu9hw933a.xn--08e', strict=True) + + def test_uts46_2586(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca2517f2hvc.xn--08e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca2517f2hvc.xn--08e', strict=True) + + def test_uts46_2587(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐪒SS꣪.ᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐪒SS꣪.ᡤ', strict=True) + + def test_uts46_2588(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐪒ss꣪.ᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐪒ss꣪.ᡤ', strict=True) + + def test_uts46_2589(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐪒Ss꣪.ᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐪒Ss꣪.ᡤ', strict=True) + + def test_uts46_2590(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐪒Ss꣪.ᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐪒Ss꣪.ᡤ', strict=True) + + def test_uts46_2591(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨿󠆌鸮𑚶.ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨿󠆌鸮𑚶.ς', strict=True) + + def test_uts46_2592(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨿󠆌鸮𑚶.Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨿󠆌鸮𑚶.Σ', strict=True) + + def test_uts46_2593(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨿󠆌鸮𑚶.σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨿󠆌鸮𑚶.σ', strict=True) + + def test_uts46_2594(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l76a726rt2h.xn--4xa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l76a726rt2h.xn--4xa', strict=True) + + def test_uts46_2595(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l76a726rt2h.xn--3xa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l76a726rt2h.xn--3xa', strict=True) + + def test_uts46_2596(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒗𞤬。-𑚶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒗𞤬。-𑚶', strict=True) + + def test_uts46_2597(self): + self.assertRaises(idna.IDNAError, idna.decode, '16.𞤬。-𑚶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '16.𞤬。-𑚶', strict=True) + + def test_uts46_2598(self): + self.assertRaises(idna.IDNAError, idna.decode, '16.𞤊。-𑚶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '16.𞤊。-𑚶', strict=True) + + def test_uts46_2599(self): + self.assertRaises(idna.IDNAError, idna.decode, '16.xn--ke6h.xn----4j0j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '16.xn--ke6h.xn----4j0j', strict=True) + + def test_uts46_2600(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒗𞤊。-𑚶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒗𞤊。-𑚶', strict=True) + + def test_uts46_2601(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8shw466n.xn----4j0j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8shw466n.xn----4j0j', strict=True) + + def test_uts46_2602(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࢳ𞤿⾫。𐹣ڏ⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࢳ𞤿⾫。𐹣ڏ⒈', strict=True) + + def test_uts46_2603(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࢳ𞤿隹。𐹣ڏ1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࢳ𞤿隹。𐹣ڏ1.', strict=True) + + def test_uts46_2604(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࢳ𞤝隹。𐹣ڏ1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࢳ𞤝隹。𐹣ڏ1.', strict=True) + + def test_uts46_2605(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8yb0383efiwk.xn--1-wsc3373r.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8yb0383efiwk.xn--1-wsc3373r.', strict=True) + + def test_uts46_2606(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࢳ𞤝⾫。𐹣ڏ⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࢳ𞤝⾫。𐹣ڏ⒈', strict=True) + + def test_uts46_2607(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8yb0383efiwk.xn--ljb064mol4n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8yb0383efiwk.xn--ljb064mol4n', strict=True) + + def test_uts46_2608(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u2433\U0001a39b𝟧١.ᡢ8ི\u0600', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u2433\U0001a39b𝟧١.ᡢ8ི\u0600', strict=True) + + def test_uts46_2609(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u2433\U0001a39b5١.ᡢ8ི\u0600', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u2433\U0001a39b5١.ᡢ8ི\u0600', strict=True) + + def test_uts46_2610(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5-bqc410un435a.xn--8-rkc763epjj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5-bqc410un435a.xn--8-rkc763epjj', strict=True) + + def test_uts46_2611(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹠.🄀⒒-\U000e8c08', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹠.🄀⒒-\U000e8c08', strict=True) + + def test_uts46_2612(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹠.0.11.-\U000e8c08', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹠.0.11.-\U000e8c08', strict=True) + + def test_uts46_2613(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7n0d.0.11.xn----8j07m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7n0d.0.11.xn----8j07m', strict=True) + + def test_uts46_2614(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7n0d.xn----xcp9757q1s13g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7n0d.xn----xcp9757q1s13g', strict=True) + + def test_uts46_2615(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς-。\u200c𝟭-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς-。\u200c𝟭-', strict=True) + + def test_uts46_2616(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς-。\u200c1-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς-。\u200c1-', strict=True) + + def test_uts46_2617(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ-。\u200c1-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ-。\u200c1-', strict=True) + + def test_uts46_2618(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ-。\u200c1-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ-。\u200c1-', strict=True) + + def test_uts46_2619(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----zmb.1-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----zmb.1-', strict=True) + + def test_uts46_2620(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----zmb.xn--1--i1t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----zmb.xn--1--i1t', strict=True) + + def test_uts46_2621(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----xmb.xn--1--i1t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----xmb.xn--1--i1t', strict=True) + + def test_uts46_2622(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ-。\u200c𝟭-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ-。\u200c𝟭-', strict=True) + + def test_uts46_2623(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ-。\u200c𝟭-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ-。\u200c𝟭-', strict=True) + + def test_uts46_2624(self): + self.assertRaises(idna.IDNAError, idna.decode, '᜴-ೢ.󠄩Ⴄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᜴-ೢ.󠄩Ⴄ', strict=True) + + def test_uts46_2625(self): + self.assertRaises(idna.IDNAError, idna.decode, '᜴-ೢ.󠄩Ⴄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᜴-ೢ.󠄩Ⴄ', strict=True) + + def test_uts46_2626(self): + self.assertRaises(idna.IDNAError, idna.decode, '᜴-ೢ.󠄩ⴄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᜴-ೢ.󠄩ⴄ', strict=True) + + def test_uts46_2627(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ggf830f.xn--vkj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ggf830f.xn--vkj', strict=True) + + def test_uts46_2628(self): + self.assertRaises(idna.IDNAError, idna.decode, '᜴-ೢ.󠄩ⴄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᜴-ೢ.󠄩ⴄ', strict=True) + + def test_uts46_2629(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ggf830f.xn--cnd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ggf830f.xn--cnd', strict=True) + + def test_uts46_2630(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ad217♋ڻ𐦥。॔⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ad217♋ڻ𐦥。॔⒈', strict=True) + + def test_uts46_2631(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ad217♋ڻ𐦥。॔1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ad217♋ڻ𐦥。॔1.', strict=True) + + def test_uts46_2632(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ukb372n129m3rs7f.xn--1-fyd.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ukb372n129m3rs7f.xn--1-fyd.', strict=True) + + def test_uts46_2633(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ukb372n129m3rs7f.xn--u3b240l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ukb372n129m3rs7f.xn--u3b240l', strict=True) + + def test_uts46_2634(self): + self.assertRaises(idna.IDNAError, idna.decode, '֤.ہ᪳\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֤.ہ᪳\u200c', strict=True) + + def test_uts46_2635(self): + self.assertRaises(idna.IDNAError, idna.decode, '֤.ہ᪳\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֤.ہ᪳\u200c', strict=True) + + def test_uts46_2636(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vcb.xn--0kb623h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vcb.xn--0kb623h', strict=True) + + def test_uts46_2637(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vcb.xn--0kb623hm1d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vcb.xn--0kb623hm1d', strict=True) + + def test_uts46_2638(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00062b4fࡆ≮્.\U0001e98a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00062b4fࡆ≮્.\U0001e98a', strict=True) + + def test_uts46_2639(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00062b4fࡆ≮્.\U0001e98a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00062b4fࡆ≮્.\U0001e98a', strict=True) + + def test_uts46_2640(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00062b4fࡆ≮્.\U0001e98a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00062b4fࡆ≮્.\U0001e98a', strict=True) + + def test_uts46_2641(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00062b4fࡆ≮્.\U0001e98a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00062b4fࡆ≮્.\U0001e98a', strict=True) + + def test_uts46_2642(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4vb80kq29ayo62l.xn--8g6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4vb80kq29ayo62l.xn--8g6h', strict=True) + + def test_uts46_2643(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。𞀘⒈ꡍ擉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。𞀘⒈ꡍ擉', strict=True) + + def test_uts46_2644(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。𞀘1.ꡍ擉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。𞀘1.ꡍ擉', strict=True) + + def test_uts46_2645(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--1-1p4r.xn--s7uv61m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--1-1p4r.xn--s7uv61m', strict=True) + + def test_uts46_2646(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--1-1p4r.xn--s7uv61m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--1-1p4r.xn--s7uv61m', strict=True) + + def test_uts46_2647(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--tsh026uql4bew9p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--tsh026uql4bew9p', strict=True) + + def test_uts46_2648(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--tsh026uql4bew9p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--tsh026uql4bew9p', strict=True) + + def test_uts46_2649(self): + self.assertRaises(idna.IDNAError, idna.decode, '₈ߋ.ﭤ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₈ߋ.ﭤ≠', strict=True) + + def test_uts46_2650(self): + self.assertRaises(idna.IDNAError, idna.decode, '₈ߋ.ﭤ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₈ߋ.ﭤ≠', strict=True) + + def test_uts46_2651(self): + self.assertRaises(idna.IDNAError, idna.decode, '8ߋ.ٿ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8ߋ.ٿ≠', strict=True) + + def test_uts46_2652(self): + self.assertRaises(idna.IDNAError, idna.decode, '8ߋ.ٿ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8ߋ.ٿ≠', strict=True) + + def test_uts46_2653(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-zbd.xn--4ib883l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-zbd.xn--4ib883l', strict=True) + + def test_uts46_2654(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢡߞ\U000b9423.⒒ق𑍦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢡߞ\U000b9423.⒒ق𑍦', strict=True) + + def test_uts46_2655(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢡߞ\U000b9423.11.ق𑍦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢡߞ\U000b9423.11.ق𑍦', strict=True) + + def test_uts46_2656(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5sb596fi873t.11.xn--ehb4198k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5sb596fi873t.11.xn--ehb4198k', strict=True) + + def test_uts46_2657(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5sb596fi873t.xn--ehb336mvy7n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5sb596fi873t.xn--ehb336mvy7n', strict=True) + + def test_uts46_2658(self): + self.assertRaises(idna.IDNAError, idna.decode, '่-𐹺𝟜.ͣۡ⒏', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '่-𐹺𝟜.ͣۡ⒏', strict=True) + + def test_uts46_2659(self): + self.assertRaises(idna.IDNAError, idna.decode, '่-𐹺4.ͣۡ8.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '่-𐹺4.ͣۡ8.', strict=True) + + def test_uts46_2660(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---4-owiz479s.xn--8-ihb69x.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---4-owiz479s.xn--8-ihb69x.', strict=True) + + def test_uts46_2661(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---4-owiz479s.xn--eva20pjv9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---4-owiz479s.xn--eva20pjv9a', strict=True) + + def test_uts46_2662(self): + self.assertRaises(idna.IDNAError, idna.decode, '⫐。Ⴠ-\U000c3422', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⫐。Ⴠ-\U000c3422', strict=True) + + def test_uts46_2663(self): + self.assertRaises(idna.IDNAError, idna.decode, '⫐。Ⴠ-\U000c3422', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⫐。Ⴠ-\U000c3422', strict=True) + + def test_uts46_2664(self): + self.assertRaises(idna.IDNAError, idna.decode, '⫐。ⴠ-\U000c3422', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⫐。ⴠ-\U000c3422', strict=True) + + def test_uts46_2665(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--r3i.xn----2wst7439i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--r3i.xn----2wst7439i', strict=True) + + def test_uts46_2666(self): + self.assertRaises(idna.IDNAError, idna.decode, '⫐。ⴠ-\U000c3422', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⫐。ⴠ-\U000c3422', strict=True) + + def test_uts46_2667(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--r3i.xn----z1g58579u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--r3i.xn----z1g58579u', strict=True) + + def test_uts46_2668(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑑂◊.⦟∠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑑂◊.⦟∠', strict=True) + + def test_uts46_2669(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑑂◊.⦟∠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑑂◊.⦟∠', strict=True) + + def test_uts46_2670(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--01h3338f.xn--79g270a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--01h3338f.xn--79g270a', strict=True) + + def test_uts46_2671(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f330-٢。\U000cbe1bꡂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f330-٢。\U000cbe1bꡂ', strict=True) + + def test_uts46_2672(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----dqc20828e.xn--bc9an2879c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----dqc20828e.xn--bc9an2879c', strict=True) + + def test_uts46_2673(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٸ。\U000e03ec݁\U0001eaad𐹪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٸ。\U000e03ec݁\U0001eaad𐹪', strict=True) + + def test_uts46_2674(self): + self.assertRaises(idna.IDNAError, idna.decode, 'يٴ。\U000e03ec݁\U0001eaad𐹪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'يٴ。\U000e03ec݁\U0001eaad𐹪', strict=True) + + def test_uts46_2675(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mhb8f.xn--oob2585kfdsfsbo7h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mhb8f.xn--oob2585kfdsfsbo7h', strict=True) + + def test_uts46_2676(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫆ꌄ。\u200dᣬ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫆ꌄ。\u200dᣬ', strict=True) + + def test_uts46_2677(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫆ꌄ。\u200dᣬ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫆ꌄ。\u200dᣬ', strict=True) + + def test_uts46_2678(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y77ao18q.xn--wdf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y77ao18q.xn--wdf', strict=True) + + def test_uts46_2679(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y77ao18q.xn--wdf367a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y77ao18q.xn--wdf367a', strict=True) + + def test_uts46_2680(self): + self.assertRaises(idna.IDNAError, idna.decode, '₀٢。\U000c5a9e≯-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₀٢。\U000c5a9e≯-', strict=True) + + def test_uts46_2681(self): + self.assertRaises(idna.IDNAError, idna.decode, '₀٢。\U000c5a9e≯-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₀٢。\U000c5a9e≯-', strict=True) + + def test_uts46_2682(self): + self.assertRaises(idna.IDNAError, idna.decode, '0٢。\U000c5a9e≯-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0٢。\U000c5a9e≯-', strict=True) + + def test_uts46_2683(self): + self.assertRaises(idna.IDNAError, idna.decode, '0٢。\U000c5a9e≯-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0٢。\U000c5a9e≯-', strict=True) + + def test_uts46_2684(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0-dqc.xn----ogov3342l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0-dqc.xn----ogov3342l', strict=True) + + def test_uts46_2685(self): + self.assertRaises(idna.IDNAError, idna.decode, '̜𐹫-\U0001ebc3.𐋤ࡅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̜𐹫-\U0001ebc3.𐋤ࡅ', strict=True) + + def test_uts46_2686(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----gdb7046r692g.xn--3vb1349j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----gdb7046r692g.xn--3vb1349j', strict=True) + + def test_uts46_2687(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。𝩑𐹩Ⴡ֔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。𝩑𐹩Ⴡ֔', strict=True) + + def test_uts46_2688(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。𝩑𐹩Ⴡ֔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。𝩑𐹩Ⴡ֔', strict=True) + + def test_uts46_2689(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。𝩑𐹩Ⴡ֔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。𝩑𐹩Ⴡ֔', strict=True) + + def test_uts46_2690(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。𝩑𐹩Ⴡ֔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。𝩑𐹩Ⴡ֔', strict=True) + + def test_uts46_2691(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。𝩑𐹩ⴡ֔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。𝩑𐹩ⴡ֔', strict=True) + + def test_uts46_2692(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。𝩑𐹩ⴡ֔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。𝩑𐹩ⴡ֔', strict=True) + + def test_uts46_2693(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch.xn--fcb363rk03mypug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch.xn--fcb363rk03mypug', strict=True) + + def test_uts46_2694(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。𝩑𐹩ⴡ֔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。𝩑𐹩ⴡ֔', strict=True) + + def test_uts46_2695(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。𝩑𐹩ⴡ֔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。𝩑𐹩ⴡ֔', strict=True) + + def test_uts46_2696(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch.xn--fcb538c649rypog', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch.xn--fcb538c649rypog', strict=True) + + def test_uts46_2697(self): + self.assertRaises(idna.IDNAError, idna.decode, '𖫳≠.Ⴀ𐮀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𖫳≠.Ⴀ𐮀', strict=True) + + def test_uts46_2698(self): + self.assertRaises(idna.IDNAError, idna.decode, '𖫳≠.Ⴀ𐮀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𖫳≠.Ⴀ𐮀', strict=True) + + def test_uts46_2699(self): + self.assertRaises(idna.IDNAError, idna.decode, '𖫳≠.ⴀ𐮀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𖫳≠.ⴀ𐮀', strict=True) + + def test_uts46_2700(self): + self.assertRaises(idna.IDNAError, idna.decode, '𖫳≠.ⴀ𐮀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𖫳≠.ⴀ𐮀', strict=True) + + def test_uts46_2701(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch9250k.xn--rkj6232e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch9250k.xn--rkj6232e', strict=True) + + def test_uts46_2702(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch9250k.xn--7md2659j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch9250k.xn--7md2659j', strict=True) + + def test_uts46_2703(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅾ܶܦ.ᢚ閪\u08e2𝩟', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅾ܶܦ.ᢚ閪\u08e2𝩟', strict=True) + + def test_uts46_2704(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅾ܶܦ.ᢚ閪\u08e2𝩟', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅾ܶܦ.ᢚ閪\u08e2𝩟', strict=True) + + def test_uts46_2705(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wnb5a.xn--l0b161fis8gbp5m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wnb5a.xn--l0b161fis8gbp5m', strict=True) + + def test_uts46_2706(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d󠇜ۋ꣩。⃝ྰ-ᛟ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d󠇜ۋ꣩。⃝ྰ-ᛟ', strict=True) + + def test_uts46_2707(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d󠇜ۋ꣩。⃝ྰ-ᛟ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d󠇜ۋ꣩。⃝ྰ-ᛟ', strict=True) + + def test_uts46_2708(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--blb8114f.xn----gmg236cj6k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--blb8114f.xn----gmg236cj6k', strict=True) + + def test_uts46_2709(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--blb540ke10h.xn----gmg236cj6k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--blb540ke10h.xn----gmg236cj6k', strict=True) + + def test_uts46_2710(self): + self.assertRaises(idna.IDNAError, idna.decode, '헁\U000d8599ฺ\U000da35a。ں𝟜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '헁\U000d8599ฺ\U000da35a。ں𝟜', strict=True) + + def test_uts46_2711(self): + self.assertRaises(idna.IDNAError, idna.decode, '헁\U000d8599ฺ\U000da35a。ں𝟜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '헁\U000d8599ฺ\U000da35a。ں𝟜', strict=True) + + def test_uts46_2712(self): + self.assertRaises(idna.IDNAError, idna.decode, '헁\U000d8599ฺ\U000da35a。ں4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '헁\U000d8599ฺ\U000da35a。ں4', strict=True) + + def test_uts46_2713(self): + self.assertRaises(idna.IDNAError, idna.decode, '헁\U000d8599ฺ\U000da35a。ں4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '헁\U000d8599ฺ\U000da35a。ں4', strict=True) + + def test_uts46_2714(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--o4c1723h8g85gt4ya.xn--4-dvc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--o4c1723h8g85gt4ya.xn--4-dvc', strict=True) + + def test_uts46_2715(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹭。\U000c3c42\u200cႾ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹭。\U000c3c42\u200cႾ', strict=True) + + def test_uts46_2716(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹭。\U000c3c42\u200cႾ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹭。\U000c3c42\u200cႾ', strict=True) + + def test_uts46_2717(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹭。\U000c3c42\u200cⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹭。\U000c3c42\u200cⴞ', strict=True) + + def test_uts46_2718(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lo0d.xn--mljx1099g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lo0d.xn--mljx1099g', strict=True) + + def test_uts46_2719(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lo0d.xn--0ugx72cwi33v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lo0d.xn--0ugx72cwi33v', strict=True) + + def test_uts46_2720(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹭。\U000c3c42\u200cⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹭。\U000c3c42\u200cⴞ', strict=True) + + def test_uts46_2721(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lo0d.xn--2nd75260n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lo0d.xn--2nd75260n', strict=True) + + def test_uts46_2722(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lo0d.xn--2nd949eqw95u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lo0d.xn--2nd949eqw95u', strict=True) + + def test_uts46_2723(self): + self.assertRaises(idna.IDNAError, idna.decode, '꥓.̽\U000110bd馋', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꥓.̽\U000110bd馋', strict=True) + + def test_uts46_2724(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3j9a.xn--bua0708eqzrd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3j9a.xn--bua0708eqzrd', strict=True) + + def test_uts46_2725(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c8add\U000aa6f8\u200d。䜖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c8add\U000aa6f8\u200d。䜖', strict=True) + + def test_uts46_2726(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c8add\U000aa6f8\u200d。䜖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c8add\U000aa6f8\u200d。䜖', strict=True) + + def test_uts46_2727(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--g138cxw05a.xn--k0o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--g138cxw05a.xn--k0o', strict=True) + + def test_uts46_2728(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug30527h9mxi.xn--k0o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug30527h9mxi.xn--k0o', strict=True) + + def test_uts46_2729(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡯ⚉姶🄉.۷\u200d🎪\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡯ⚉姶🄉.۷\u200d🎪\u200d', strict=True) + + def test_uts46_2730(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡯ⚉姶8,.۷\u200d🎪\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡯ⚉姶8,.۷\u200d🎪\u200d', strict=True) + + def test_uts46_2731(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8,-g9oy26fzu4d.xn--kmb6733w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8,-g9oy26fzu4d.xn--kmb6733w', strict=True) + + def test_uts46_2732(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8,-g9oy26fzu4d.xn--kmb859ja94998b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8,-g9oy26fzu4d.xn--kmb859ja94998b', strict=True) + + def test_uts46_2733(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--c9e433epi4b3j20a.xn--kmb6733w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--c9e433epi4b3j20a.xn--kmb6733w', strict=True) + + def test_uts46_2734(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--c9e433epi4b3j20a.xn--kmb859ja94998b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--c9e433epi4b3j20a.xn--kmb859ja94998b', strict=True) + + def test_uts46_2735(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ef40.𐹸🚖ฺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ef40.𐹸🚖ฺ', strict=True) + + def test_uts46_2736(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0n7h.xn--o4c9032klszf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0n7h.xn--o4c9032klszf', strict=True) + + def test_uts46_2737(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴔᠵ。𐹧݇۹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴔᠵ。𐹧݇۹', strict=True) + + def test_uts46_2738(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴔᠵ。𐹧݇۹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴔᠵ。𐹧݇۹', strict=True) + + def test_uts46_2739(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴔᠵ。𐹧݇۹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴔᠵ。𐹧݇۹', strict=True) + + def test_uts46_2740(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--o7e997h.xn--mmb9ml895e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--o7e997h.xn--mmb9ml895e', strict=True) + + def test_uts46_2741(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴔᠵ。𐹧݇۹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴔᠵ。𐹧݇۹', strict=True) + + def test_uts46_2742(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--snd659a.xn--mmb9ml895e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--snd659a.xn--mmb9ml895e', strict=True) + + def test_uts46_2743(self): + self.assertRaises(idna.IDNAError, idna.decode, '፟ᡈ\u200c.︒-𖾐-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '፟ᡈ\u200c.︒-𖾐-', strict=True) + + def test_uts46_2744(self): + self.assertRaises(idna.IDNAError, idna.decode, '፟ᡈ\u200c.。-𖾐-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '፟ᡈ\u200c.。-𖾐-', strict=True) + + def test_uts46_2745(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b7d82w..xn-----pe4u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b7d82w..xn-----pe4u', strict=True) + + def test_uts46_2746(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b7d82wo4h..xn-----pe4u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b7d82wo4h..xn-----pe4u', strict=True) + + def test_uts46_2747(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b7d82w.xn-----c82nz547a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b7d82w.xn-----c82nz547a', strict=True) + + def test_uts46_2748(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b7d82wo4h.xn-----c82nz547a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b7d82wo4h.xn-----c82nz547a', strict=True) + + def test_uts46_2749(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈\u0601⒖\u200c.ᷰߛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈\u0601⒖\u200c.ᷰߛ', strict=True) + + def test_uts46_2750(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.\u060115.\u200c.ᷰߛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.\u060115.\u200c.ᷰߛ', strict=True) + + def test_uts46_2751(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--15-1pd..xn--2sb914i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--15-1pd..xn--2sb914i', strict=True) + + def test_uts46_2752(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--15-1pd.xn--0ug.xn--2sb914i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--15-1pd.xn--0ug.xn--2sb914i', strict=True) + + def test_uts46_2753(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jfb347mib.xn--2sb914i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jfb347mib.xn--2sb914i', strict=True) + + def test_uts46_2754(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jfb844kmfdwb.xn--2sb914i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jfb844kmfdwb.xn--2sb914i', strict=True) + + def test_uts46_2755(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝩜。-୍Ⴋ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝩜。-୍Ⴋ', strict=True) + + def test_uts46_2756(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝩜。-୍ⴋ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝩜。-୍ⴋ', strict=True) + + def test_uts46_2757(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--792h.xn----bse820x', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--792h.xn----bse820x', strict=True) + + def test_uts46_2758(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--792h.xn----bse632b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--792h.xn----bse632b', strict=True) + + def test_uts46_2759(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ßჀ.ؠ刯Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ßჀ.ؠ刯Ⴝ', strict=True) + + def test_uts46_2760(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ßⴠ.ؠ刯ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ßⴠ.ؠ刯ⴝ', strict=True) + + def test_uts46_2761(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SSჀ.ؠ刯Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SSჀ.ؠ刯Ⴝ', strict=True) + + def test_uts46_2762(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ssⴠ.ؠ刯ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ssⴠ.ؠ刯ⴝ', strict=True) + + def test_uts46_2763(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ssⴠ.ؠ刯Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ssⴠ.ؠ刯Ⴝ', strict=True) + + def test_uts46_2764(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-j81a.xn--fgb670rovy', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-j81a.xn--fgb670rovy', strict=True) + + def test_uts46_2765(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca277t.xn--fgb670rovy', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca277t.xn--fgb670rovy', strict=True) + + def test_uts46_2766(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-j81a.xn--fgb845cb66c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-j81a.xn--fgb845cb66c', strict=True) + + def test_uts46_2767(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-wgk.xn--fgb845cb66c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-wgk.xn--fgb845cb66c', strict=True) + + def test_uts46_2768(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca442f.xn--fgb845cb66c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca442f.xn--fgb845cb66c', strict=True) + + def test_uts46_2769(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪ႣℲ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪ႣℲ。ᠳ툻ٳ', strict=True) + + def test_uts46_2770(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪ႣℲ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪ႣℲ。ᠳ툻ٳ', strict=True) + + def test_uts46_2771(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪ႣℲ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪ႣℲ。ᠳ툻ٳ', strict=True) + + def test_uts46_2772(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪ႣℲ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪ႣℲ。ᠳ툻ٳ', strict=True) + + def test_uts46_2773(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪ⴃⅎ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪ⴃⅎ。ᠳ툻ٳ', strict=True) + + def test_uts46_2774(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪ⴃⅎ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪ⴃⅎ。ᠳ툻ٳ', strict=True) + + def test_uts46_2775(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪Ⴃⅎ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪Ⴃⅎ。ᠳ툻ٳ', strict=True) + + def test_uts46_2776(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪Ⴃⅎ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪Ⴃⅎ。ᠳ툻ٳ', strict=True) + + def test_uts46_2777(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--yxf24x4ol.xn--sib102gc69k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--yxf24x4ol.xn--sib102gc69k', strict=True) + + def test_uts46_2778(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪ⴃⅎ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪ⴃⅎ。ᠳ툻ٳ', strict=True) + + def test_uts46_2779(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪ⴃⅎ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪ⴃⅎ。ᠳ툻ٳ', strict=True) + + def test_uts46_2780(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪Ⴃⅎ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪Ⴃⅎ。ᠳ툻ٳ', strict=True) + + def test_uts46_2781(self): + self.assertRaises(idna.IDNAError, idna.decode, '᮪Ⴃⅎ。ᠳ툻ٳ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᮪Ⴃⅎ。ᠳ툻ٳ', strict=True) + + def test_uts46_2782(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bnd957c2pe.xn--sib102gc69k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bnd957c2pe.xn--sib102gc69k', strict=True) + + def test_uts46_2783(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bnd957cone.xn--sib102gc69k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bnd957cone.xn--sib102gc69k', strict=True) + + def test_uts46_2784(self): + self.assertRaises(idna.IDNAError, idna.decode, '۬.ࢢ𐹫ټ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '۬.ࢢ𐹫ټ', strict=True) + + def test_uts46_2785(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8lb.xn--1ib31ily45b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8lb.xn--1ib31ily45b', strict=True) + + def test_uts46_2790(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴣ𐹻.\u200c𝪣≮\U000e0a49', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴣ𐹻.\u200c𝪣≮\U000e0a49', strict=True) + + def test_uts46_2791(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴣ𐹻.\u200c𝪣≮\U000e0a49', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴣ𐹻.\u200c𝪣≮\U000e0a49', strict=True) + + def test_uts46_2792(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴣ𐹻.\u200c𝪣≮\U000e0a49', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴣ𐹻.\u200c𝪣≮\U000e0a49', strict=True) + + def test_uts46_2793(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴣ𐹻.\u200c𝪣≮\U000e0a49', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴣ𐹻.\u200c𝪣≮\U000e0a49', strict=True) + + def test_uts46_2794(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rlj6323e.xn--gdh4944ob3x3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rlj6323e.xn--gdh4944ob3x3e', strict=True) + + def test_uts46_2795(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rlj6323e.xn--0ugy6gn120eb103g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rlj6323e.xn--0ugy6gn120eb103g', strict=True) + + def test_uts46_2796(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7nd8101k.xn--gdh4944ob3x3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7nd8101k.xn--gdh4944ob3x3e', strict=True) + + def test_uts46_2797(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7nd8101k.xn--0ugy6gn120eb103g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7nd8101k.xn--0ugy6gn120eb103g', strict=True) + + def test_uts46_2798(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟵隁⯮.᠍\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟵隁⯮.᠍\u200c', strict=True) + + def test_uts46_2799(self): + self.assertRaises(idna.IDNAError, idna.decode, '9隁⯮.᠍\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9隁⯮.᠍\u200c', strict=True) + + def test_uts46_2800(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-mfs8024b.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-mfs8024b.', strict=True) + + def test_uts46_2801(self): + self.assertRaises(idna.IDNAError, idna.decode, '9隁⯮.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9隁⯮.', strict=True) + + def test_uts46_2802(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-mfs8024b.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-mfs8024b.xn--0ug', strict=True) + + def test_uts46_2803(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒏𐹧。Ⴣ྄彦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒏𐹧。Ⴣ྄彦', strict=True) + + def test_uts46_2804(self): + self.assertRaises(idna.IDNAError, idna.decode, '8.𐹧。Ⴣ྄彦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8.𐹧。Ⴣ྄彦', strict=True) + + def test_uts46_2805(self): + self.assertRaises(idna.IDNAError, idna.decode, '8.𐹧。ⴣ྄彦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8.𐹧。ⴣ྄彦', strict=True) + + def test_uts46_2806(self): + self.assertRaises(idna.IDNAError, idna.decode, '8.xn--fo0d.xn--3ed972m6o8a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8.xn--fo0d.xn--3ed972m6o8a', strict=True) + + def test_uts46_2807(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒏𐹧。ⴣ྄彦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒏𐹧。ⴣ྄彦', strict=True) + + def test_uts46_2808(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0sh2466f.xn--3ed972m6o8a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0sh2466f.xn--3ed972m6o8a', strict=True) + + def test_uts46_2809(self): + self.assertRaises(idna.IDNAError, idna.decode, '8.xn--fo0d.xn--3ed15dt93o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8.xn--fo0d.xn--3ed15dt93o', strict=True) + + def test_uts46_2810(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0sh2466f.xn--3ed15dt93o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0sh2466f.xn--3ed15dt93o', strict=True) + + def test_uts46_2811(self): + self.assertRaises(idna.IDNAError, idna.decode, '-问\U0006cc14⒛。\u0604-\U0005c5c9橬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-问\U0006cc14⒛。\u0604-\U0005c5c9橬', strict=True) + + def test_uts46_2812(self): + self.assertRaises(idna.IDNAError, idna.decode, '-问\U0006cc1420.。\u0604-\U0005c5c9橬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-问\U0006cc1420.。\u0604-\U0005c5c9橬', strict=True) + + def test_uts46_2813(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---20-658jx1776d..xn----ykc7228efm46d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---20-658jx1776d..xn----ykc7228efm46d', strict=True) + + def test_uts46_2814(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----hdpu849bhis3e.xn----ykc7228efm46d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----hdpu849bhis3e.xn----ykc7228efm46d', strict=True) + + def test_uts46_2815(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᮬႬ\u200c̥。𝟸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᮬႬ\u200c̥。𝟸', strict=True) + + def test_uts46_2816(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᮬႬ\u200c̥。2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᮬႬ\u200c̥。2', strict=True) + + def test_uts46_2817(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᮬⴌ\u200c̥。2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᮬⴌ\u200c̥。2', strict=True) + + def test_uts46_2818(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mta176jjjm.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mta176jjjm.c', strict=True) + + def test_uts46_2819(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mta176j97cl2q.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mta176j97cl2q.c', strict=True) + + def test_uts46_2820(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᮬⴌ\u200c̥。𝟸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᮬⴌ\u200c̥。𝟸', strict=True) + + def test_uts46_2821(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mta930emri.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mta930emri.c', strict=True) + + def test_uts46_2822(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mta930emribme.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mta930emribme.c', strict=True) + + def test_uts46_2823(self): + self.assertRaises(idna.IDNAError, idna.decode, '?。꠆٩\U000e04a9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '?。꠆٩\U000e04a9', strict=True) + + def test_uts46_2824(self): + self.assertRaises(idna.IDNAError, idna.decode, '?.xn--iib9583fusy0i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '?.xn--iib9583fusy0i', strict=True) + + def test_uts46_2825(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄁͟⾶。₇︒눇≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄁͟⾶。₇︒눇≮', strict=True) + + def test_uts46_2826(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄁͟⾶。₇︒눇≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄁͟⾶。₇︒눇≮', strict=True) + + def test_uts46_2827(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄁͟飛。7。눇≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄁͟飛。7。눇≮', strict=True) + + def test_uts46_2828(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄁͟飛。7。눇≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄁͟飛。7。눇≮', strict=True) + + def test_uts46_2829(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ua0567e.7.xn--gdh6767c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ua0567e.7.xn--gdh6767c', strict=True) + + def test_uts46_2830(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ua0567e.xn--7-ngou006d1ttc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ua0567e.xn--7-ngou006d1ttc', strict=True) + + def test_uts46_2831(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c︉𐹴\u200d.\u200c⿃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c︉𐹴\u200d.\u200c⿃', strict=True) + + def test_uts46_2832(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c︉𐹴\u200d.\u200c鳥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c︉𐹴\u200d.\u200c鳥', strict=True) + + def test_uts46_2833(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--so0d.xn--6x6a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--so0d.xn--6x6a', strict=True) + + def test_uts46_2834(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugc6024p.xn--0ug1920c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugc6024p.xn--0ug1920c', strict=True) + + def test_uts46_2835(self): + self.assertRaises(idna.IDNAError, idna.decode, '🍮.\u200d\U000e05d2𐦁𝨝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🍮.\u200d\U000e05d2𐦁𝨝', strict=True) + + def test_uts46_2836(self): + self.assertRaises(idna.IDNAError, idna.decode, '🍮.\u200d\U000e05d2𐦁𝨝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🍮.\u200d\U000e05d2𐦁𝨝', strict=True) + + def test_uts46_2837(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lj8h.xn--ln9ci476aqmr2g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lj8h.xn--ln9ci476aqmr2g', strict=True) + + def test_uts46_2838(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lj8h.xn--1ug6603gr1pfwq37h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lj8h.xn--1ug6603gr1pfwq37h', strict=True) + + def test_uts46_2839(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٽृ.𞤓\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٽृ.𞤓\u200d', strict=True) + + def test_uts46_2840(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٽृ.𞤵\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٽृ.𞤵\u200d', strict=True) + + def test_uts46_2841(self): + self.assertEqual(idna.decode('xn--2ib43l.xn--te6h', uts46=True, strict=True), 'ٽृ.𞤵') + self.assertEqual(idna.encode('xn--2ib43l.xn--te6h', uts46=True, strict=True), b'xn--2ib43l.xn--te6h') + + def test_uts46_2842(self): + self.assertEqual(idna.decode('ٽृ.𞤵', uts46=True, strict=True), 'ٽृ.𞤵') + self.assertEqual(idna.encode('ٽृ.𞤵', uts46=True, strict=True), b'xn--2ib43l.xn--te6h') + + def test_uts46_2843(self): + self.assertEqual(idna.decode('ٽृ.𞤓', uts46=True, strict=True), 'ٽृ.𞤵') + self.assertEqual(idna.encode('ٽृ.𞤓', uts46=True, strict=True), b'xn--2ib43l.xn--te6h') + + def test_uts46_2844(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2ib43l.xn--1ugy711p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2ib43l.xn--1ugy711p', strict=True) + + def test_uts46_2845(self): + self.assertRaises(idna.IDNAError, idna.decode, '٤੍-.\U000e573d္\U00066990', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٤੍-.\U000e573d္\U00066990', strict=True) + + def test_uts46_2846(self): + self.assertRaises(idna.IDNAError, idna.decode, '٤੍-.\U000e573d္\U00066990', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٤੍-.\U000e573d္\U00066990', strict=True) + + def test_uts46_2847(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----gqc711a.xn--9jd88234f3qm0b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----gqc711a.xn--9jd88234f3qm0b', strict=True) + + def test_uts46_2848(self): + self.assertRaises(idna.IDNAError, idna.decode, '4်-𐹸。ꨩ\u200c𐹴≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4်-𐹸。ꨩ\u200c𐹴≮', strict=True) + + def test_uts46_2849(self): + self.assertRaises(idna.IDNAError, idna.decode, '4်-𐹸。ꨩ\u200c𐹴≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4်-𐹸。ꨩ\u200c𐹴≮', strict=True) + + def test_uts46_2850(self): + self.assertRaises(idna.IDNAError, idna.decode, '4်-𐹸。ꨩ\u200c𐹴≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4်-𐹸。ꨩ\u200c𐹴≮', strict=True) + + def test_uts46_2851(self): + self.assertRaises(idna.IDNAError, idna.decode, '4်-𐹸。ꨩ\u200c𐹴≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4်-𐹸。ꨩ\u200c𐹴≮', strict=True) + + def test_uts46_2852(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4--e4j7831r.xn--gdh8754cz40c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4--e4j7831r.xn--gdh8754cz40c', strict=True) + + def test_uts46_2853(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4--e4j7831r.xn--0ugy6gjy5sl3ud', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4--e4j7831r.xn--0ugy6gjy5sl3ud', strict=True) + + def test_uts46_2854(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。ᅠ྄ྖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。ᅠ྄ྖ', strict=True) + + def test_uts46_2855(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。ᅠ྄ྖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。ᅠ྄ྖ', strict=True) + + def test_uts46_2856(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--3ed0b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--3ed0b', strict=True) + + def test_uts46_2857(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--3ed0b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--3ed0b', strict=True) + + def test_uts46_2858(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--3ed0b20h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--3ed0b20h', strict=True) + + def test_uts46_2859(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--3ed0b20h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--3ed0b20h', strict=True) + + def test_uts46_2860(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--3ed0by082k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--3ed0by082k', strict=True) + + def test_uts46_2861(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--3ed0by082k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--3ed0by082k', strict=True) + + def test_uts46_2862(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯\U0008d605.\u200d𐅼\U000b21db', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯\U0008d605.\u200d𐅼\U000b21db', strict=True) + + def test_uts46_2863(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯\U0008d605.\u200d𐅼\U000b21db', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯\U0008d605.\u200d𐅼\U000b21db', strict=True) + + def test_uts46_2864(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯\U0008d605.\u200d𐅼\U000b21db', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯\U0008d605.\u200d𐅼\U000b21db', strict=True) + + def test_uts46_2865(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯\U0008d605.\u200d𐅼\U000b21db', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯\U0008d605.\u200d𐅼\U000b21db', strict=True) + + def test_uts46_2866(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh84488f.xn--xy7cw2886b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh84488f.xn--xy7cw2886b', strict=True) + + def test_uts46_2867(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh84488f.xn--1ug8099fbjp4e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh84488f.xn--1ug8099fbjp4e', strict=True) + + def test_uts46_2868(self): + self.assertRaises(idna.IDNAError, idna.decode, 'فß𐰯。𝟕𐫫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'فß𐰯。𝟕𐫫', strict=True) + + def test_uts46_2869(self): + self.assertRaises(idna.IDNAError, idna.decode, 'فß𐰯。7𐫫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'فß𐰯。7𐫫', strict=True) + + def test_uts46_2870(self): + self.assertRaises(idna.IDNAError, idna.decode, 'فSS𐰯。7𐫫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'فSS𐰯。7𐫫', strict=True) + + def test_uts46_2871(self): + self.assertRaises(idna.IDNAError, idna.decode, 'فss𐰯。7𐫫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'فss𐰯。7𐫫', strict=True) + + def test_uts46_2872(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-jvd2339x.xn--7-mm5i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-jvd2339x.xn--7-mm5i', strict=True) + + def test_uts46_2873(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca96ys96y.xn--7-mm5i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca96ys96y.xn--7-mm5i', strict=True) + + def test_uts46_2874(self): + self.assertRaises(idna.IDNAError, idna.decode, 'فSS𐰯。𝟕𐫫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'فSS𐰯。𝟕𐫫', strict=True) + + def test_uts46_2875(self): + self.assertRaises(idna.IDNAError, idna.decode, 'فss𐰯。𝟕𐫫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'فss𐰯。𝟕𐫫', strict=True) + + def test_uts46_2876(self): + self.assertRaises(idna.IDNAError, idna.decode, 'فSs𐰯。7𐫫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'فSs𐰯。7𐫫', strict=True) + + def test_uts46_2877(self): + self.assertRaises(idna.IDNAError, idna.decode, 'فSs𐰯。𝟕𐫫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'فSs𐰯。𝟕𐫫', strict=True) + + def test_uts46_2878(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ßެާࢱ。𐭁\U00105b99𐹲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ßެާࢱ。𐭁\U00105b99𐹲', strict=True) + + def test_uts46_2879(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SSެާࢱ。𐭁\U00105b99𐹲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SSެާࢱ。𐭁\U00105b99𐹲', strict=True) + + def test_uts46_2880(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ssެާࢱ。𐭁\U00105b99𐹲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ssެާࢱ。𐭁\U00105b99𐹲', strict=True) + + def test_uts46_2881(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ssެާࢱ。𐭁\U00105b99𐹲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ssެާࢱ。𐭁\U00105b99𐹲', strict=True) + + def test_uts46_2882(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-9qet02k.xn--e09co8cr9861c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-9qet02k.xn--e09co8cr9861c', strict=True) + + def test_uts46_2883(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca685aoa95h.xn--e09co8cr9861c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca685aoa95h.xn--e09co8cr9861c', strict=True) + + def test_uts46_2884(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。\U000e0257⒌\U0001ebdb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。\U000e0257⒌\U0001ebdb', strict=True) + + def test_uts46_2885(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。\U000e02575.\U0001ebdb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。\U000e02575.\U0001ebdb', strict=True) + + def test_uts46_2886(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--5-zz21m.xn--6x6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--5-zz21m.xn--6x6h', strict=True) + + def test_uts46_2887(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--xsh6367n1bi3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--xsh6367n1bi3e', strict=True) + + def test_uts46_2888(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fς.-≮ﲫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fς.-≮ﲫ', strict=True) + + def test_uts46_2889(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fς.-≮ﲫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fς.-≮ﲫ', strict=True) + + def test_uts46_2890(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fς.-≮خج', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fς.-≮خج', strict=True) + + def test_uts46_2891(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fς.-≮خج', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fς.-≮خج', strict=True) + + def test_uts46_2892(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fΣ.-≮خج', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fΣ.-≮خج', strict=True) + + def test_uts46_2893(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fΣ.-≮خج', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fΣ.-≮خج', strict=True) + + def test_uts46_2894(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fσ.-≮خج', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fσ.-≮خج', strict=True) + + def test_uts46_2895(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fσ.-≮خج', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fσ.-≮خج', strict=True) + + def test_uts46_2896(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa92520c.xn----9mcf1400a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa92520c.xn----9mcf1400a', strict=True) + + def test_uts46_2897(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa13520c.xn----9mcf1400a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa13520c.xn----9mcf1400a', strict=True) + + def test_uts46_2898(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fΣ.-≮ﲫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fΣ.-≮ﲫ', strict=True) + + def test_uts46_2899(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fΣ.-≮ﲫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fΣ.-≮ﲫ', strict=True) + + def test_uts46_2900(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fσ.-≮ﲫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fσ.-≮ﲫ', strict=True) + + def test_uts46_2901(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003c38fσ.-≮ﲫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003c38fσ.-≮ﲫ', strict=True) + + def test_uts46_2902(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡗࢸܙ.\U00054914\U000e06d9్ﰾ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡗࢸܙ.\U00054914\U000e06d9్ﰾ', strict=True) + + def test_uts46_2903(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡗࢸܙ.\U00054914\U000e06d9్كي', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡗࢸܙ.\U00054914\U000e06d9్كي', strict=True) + + def test_uts46_2904(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jnb34fs003a.xn--fhbo927bk128mpi24d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jnb34fs003a.xn--fhbo927bk128mpi24d', strict=True) + + def test_uts46_2905(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐠰ࢷ𞤌𐫭。𐋦៍𝩃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐠰ࢷ𞤌𐫭。𐋦៍𝩃', strict=True) + + def test_uts46_2906(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐠰ࢷ𞤮𐫭。𐋦៍𝩃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐠰ࢷ𞤮𐫭。𐋦៍𝩃', strict=True) + + def test_uts46_2907(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dzb5191kezbrw47a.xn--p4e3841jz9tf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dzb5191kezbrw47a.xn--p4e3841jz9tf', strict=True) + + def test_uts46_2908(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐠰ࢷ𞤮𐫭.𐋦៍𝩃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐠰ࢷ𞤮𐫭.𐋦៍𝩃', strict=True) + + def test_uts46_2909(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐠰ࢷ𞤌𐫭.𐋦៍𝩃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐠰ࢷ𞤌𐫭.𐋦៍𝩃', strict=True) + + def test_uts46_2910(self): + self.assertRaises(idna.IDNAError, idna.decode, '₂㘷--。ۓ\u200c𐫆𑖿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₂㘷--。ۓ\u200c𐫆𑖿', strict=True) + + def test_uts46_2911(self): + self.assertRaises(idna.IDNAError, idna.decode, '₂㘷--。ۓ\u200c𐫆𑖿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₂㘷--。ۓ\u200c𐫆𑖿', strict=True) + + def test_uts46_2912(self): + self.assertRaises(idna.IDNAError, idna.decode, '2㘷--。ۓ\u200c𐫆𑖿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2㘷--。ۓ\u200c𐫆𑖿', strict=True) + + def test_uts46_2913(self): + self.assertRaises(idna.IDNAError, idna.decode, '2㘷--。ۓ\u200c𐫆𑖿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2㘷--。ۓ\u200c𐫆𑖿', strict=True) + + def test_uts46_2914(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2---u58b.xn--jlb8024k14g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2---u58b.xn--jlb8024k14g', strict=True) + + def test_uts46_2915(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2---u58b.xn--jlb820ku99nbgj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2---u58b.xn--jlb820ku99nbgj', strict=True) + + def test_uts46_2916(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𘊻.ᡮح-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𘊻.ᡮح-', strict=True) + + def test_uts46_2917(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𘊻.ᡮح-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𘊻.ᡮح-', strict=True) + + def test_uts46_2918(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----bp5n.xn----bnc231l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----bp5n.xn----bnc231l', strict=True) + + def test_uts46_2919(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c-ß。ᢣ𐹭ؿ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c-ß。ᢣ𐹭ؿ', strict=True) + + def test_uts46_2920(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c-ß。ᢣ𐹭ؿ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c-ß。ᢣ𐹭ؿ', strict=True) + + def test_uts46_2921(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c-SS。ᢣ𐹭ؿ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c-SS。ᢣ𐹭ؿ', strict=True) + + def test_uts46_2922(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c-ss。ᢣ𐹭ؿ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c-ss。ᢣ𐹭ؿ', strict=True) + + def test_uts46_2923(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c-Ss。ᢣ𐹭ؿ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c-Ss。ᢣ𐹭ؿ', strict=True) + + def test_uts46_2924(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ss.xn--bhb925glx3p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ss.xn--bhb925glx3p', strict=True) + + def test_uts46_2925(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---ss-8m0a.xn--bhb925glx3p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---ss-8m0a.xn--bhb925glx3p', strict=True) + + def test_uts46_2926(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qfa550v.xn--bhb925glx3p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qfa550v.xn--bhb925glx3p', strict=True) + + def test_uts46_2927(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c-SS。ᢣ𐹭ؿ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c-SS。ᢣ𐹭ؿ', strict=True) + + def test_uts46_2928(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c-ss。ᢣ𐹭ؿ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c-ss。ᢣ𐹭ؿ', strict=True) + + def test_uts46_2929(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c-Ss。ᢣ𐹭ؿ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c-Ss。ᢣ𐹭ؿ', strict=True) + + def test_uts46_2930(self): + self.assertEqual(idna.decode('꧐Ӏ᮪ࣶ.눵', uts46=True, strict=True), '꧐ӏ᮪ࣶ.눵') + self.assertEqual(idna.encode('꧐Ӏ᮪ࣶ.눵', uts46=True, strict=True), b'xn--s5a04sn4u297k.xn--2e1b') + + def test_uts46_2931(self): + self.assertEqual(idna.decode('꧐Ӏ᮪ࣶ.눵', uts46=True, strict=True), '꧐ӏ᮪ࣶ.눵') + self.assertEqual(idna.encode('꧐Ӏ᮪ࣶ.눵', uts46=True, strict=True), b'xn--s5a04sn4u297k.xn--2e1b') + + def test_uts46_2932(self): + self.assertEqual(idna.decode('꧐Ӏ᮪ࣶ.눵', uts46=True, strict=True), '꧐ӏ᮪ࣶ.눵') + self.assertEqual(idna.encode('꧐Ӏ᮪ࣶ.눵', uts46=True, strict=True), b'xn--s5a04sn4u297k.xn--2e1b') + + def test_uts46_2933(self): + self.assertEqual(idna.decode('꧐Ӏ᮪ࣶ.눵', uts46=True, strict=True), '꧐ӏ᮪ࣶ.눵') + self.assertEqual(idna.encode('꧐Ӏ᮪ࣶ.눵', uts46=True, strict=True), b'xn--s5a04sn4u297k.xn--2e1b') + + def test_uts46_2934(self): + self.assertEqual(idna.decode('꧐ӏ᮪ࣶ.눵', uts46=True, strict=True), '꧐ӏ᮪ࣶ.눵') + self.assertEqual(idna.encode('꧐ӏ᮪ࣶ.눵', uts46=True, strict=True), b'xn--s5a04sn4u297k.xn--2e1b') + + def test_uts46_2935(self): + self.assertEqual(idna.decode('꧐ӏ᮪ࣶ.눵', uts46=True, strict=True), '꧐ӏ᮪ࣶ.눵') + self.assertEqual(idna.encode('꧐ӏ᮪ࣶ.눵', uts46=True, strict=True), b'xn--s5a04sn4u297k.xn--2e1b') + + def test_uts46_2936(self): + self.assertEqual(idna.decode('xn--s5a04sn4u297k.xn--2e1b', uts46=True, strict=True), '꧐ӏ᮪ࣶ.눵') + self.assertEqual(idna.encode('xn--s5a04sn4u297k.xn--2e1b', uts46=True, strict=True), b'xn--s5a04sn4u297k.xn--2e1b') + + def test_uts46_2937(self): + self.assertEqual(idna.decode('꧐ӏ᮪ࣶ.눵', uts46=True, strict=True), '꧐ӏ᮪ࣶ.눵') + self.assertEqual(idna.encode('꧐ӏ᮪ࣶ.눵', uts46=True, strict=True), b'xn--s5a04sn4u297k.xn--2e1b') + + def test_uts46_2938(self): + self.assertEqual(idna.decode('꧐ӏ᮪ࣶ.눵', uts46=True, strict=True), '꧐ӏ᮪ࣶ.눵') + self.assertEqual(idna.encode('꧐ӏ᮪ࣶ.눵', uts46=True, strict=True), b'xn--s5a04sn4u297k.xn--2e1b') + + def test_uts46_2939(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--d5a07sn4u297k.xn--2e1b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--d5a07sn4u297k.xn--2e1b', strict=True) + + def test_uts46_2940(self): + self.assertRaises(idna.IDNAError, idna.decode, '꣪。\U0001613f𑆾󠇗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꣪。\U0001613f𑆾󠇗', strict=True) + + def test_uts46_2941(self): + self.assertRaises(idna.IDNAError, idna.decode, '꣪。\U0001613f𑆾󠇗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꣪。\U0001613f𑆾󠇗', strict=True) + + def test_uts46_2942(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3g9a.xn--ud1dz07k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3g9a.xn--ud1dz07k', strict=True) + + def test_uts46_2943(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c74d3𑚳。\U00050dff≯⾇', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c74d3𑚳。\U00050dff≯⾇', strict=True) + + def test_uts46_2944(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c74d3𑚳。\U00050dff≯⾇', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c74d3𑚳。\U00050dff≯⾇', strict=True) + + def test_uts46_2945(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c74d3𑚳。\U00050dff≯舛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c74d3𑚳。\U00050dff≯舛', strict=True) + + def test_uts46_2946(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c74d3𑚳。\U00050dff≯舛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c74d3𑚳。\U00050dff≯舛', strict=True) + + def test_uts46_2947(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3e2d79770c.xn--hdh0088abyy1c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3e2d79770c.xn--hdh0088abyy1c', strict=True) + + def test_uts46_2948(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫇١\u200c.\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫇١\u200c.\u200d\u200c', strict=True) + + def test_uts46_2949(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫇١\u200c.\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫇١\u200c.\u200d\u200c', strict=True) + + def test_uts46_2952(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9hb652kv99n.xn--0ugb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9hb652kv99n.xn--0ugb', strict=True) + + def test_uts46_2953(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00061148砪≯ᢑ。≯𝩚\U00093d14\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00061148砪≯ᢑ。≯𝩚\U00093d14\u200c', strict=True) + + def test_uts46_2954(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00061148砪≯ᢑ。≯𝩚\U00093d14\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00061148砪≯ᢑ。≯𝩚\U00093d14\u200c', strict=True) + + def test_uts46_2955(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00061148砪≯ᢑ。≯𝩚\U00093d14\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00061148砪≯ᢑ。≯𝩚\U00093d14\u200c', strict=True) + + def test_uts46_2956(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00061148砪≯ᢑ。≯𝩚\U00093d14\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00061148砪≯ᢑ。≯𝩚\U00093d14\u200c', strict=True) + + def test_uts46_2957(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bbf561cf95e57y3e.xn--hdh0834o7mj6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bbf561cf95e57y3e.xn--hdh0834o7mj6b', strict=True) + + def test_uts46_2958(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bbf561cf95e57y3e.xn--0ugz6gc910ejro8c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bbf561cf95e57y3e.xn--0ugz6gc910ejro8c', strict=True) + + def test_uts46_2959(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴥ.𑄳㊸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴥ.𑄳㊸', strict=True) + + def test_uts46_2960(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴥ.𑄳43', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴥ.𑄳43', strict=True) + + def test_uts46_2961(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴥ.𑄳43', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴥ.𑄳43', strict=True) + + def test_uts46_2962(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tlj.xn--43-274o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tlj.xn--43-274o', strict=True) + + def test_uts46_2963(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴥ.𑄳㊸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴥ.𑄳㊸', strict=True) + + def test_uts46_2964(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9nd.xn--43-274o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9nd.xn--43-274o', strict=True) + + def test_uts46_2965(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟎٣。Ⴒᡇࣲ𐹠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟎٣。Ⴒᡇࣲ𐹠', strict=True) + + def test_uts46_2966(self): + self.assertRaises(idna.IDNAError, idna.decode, '0٣。Ⴒᡇࣲ𐹠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0٣。Ⴒᡇࣲ𐹠', strict=True) + + def test_uts46_2967(self): + self.assertRaises(idna.IDNAError, idna.decode, '0٣。ⴒᡇࣲ𐹠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '0٣。ⴒᡇࣲ𐹠', strict=True) + + def test_uts46_2968(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0-fqc.xn--10b369eivp359r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0-fqc.xn--10b369eivp359r', strict=True) + + def test_uts46_2969(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟎٣。ⴒᡇࣲ𐹠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟎٣。ⴒᡇࣲ𐹠', strict=True) + + def test_uts46_2970(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0-fqc.xn--10b180bnwgfy0z', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0-fqc.xn--10b180bnwgfy0z', strict=True) + + def test_uts46_2971(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00057aa8󠄉ᅠྷ.\U000787b0꥓', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00057aa8󠄉ᅠྷ.\U000787b0꥓', strict=True) + + def test_uts46_2972(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00057aa8󠄉ᅠྷ.\U000787b0꥓', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00057aa8󠄉ᅠྷ.\U000787b0꥓', strict=True) + + def test_uts46_2973(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kgd72212e.xn--3j9au7544a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kgd72212e.xn--3j9au7544a', strict=True) + + def test_uts46_2974(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kgd36f9z57y.xn--3j9au7544a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kgd36f9z57y.xn--3j9au7544a', strict=True) + + def test_uts46_2975(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kgd7493jee34a.xn--3j9au7544a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kgd7493jee34a.xn--3j9au7544a', strict=True) + + def test_uts46_2976(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ؘ.۳\u200c꥓', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ؘ.۳\u200c꥓', strict=True) + + def test_uts46_2977(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6fb.xn--gmb0524f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6fb.xn--gmb0524f', strict=True) + + def test_uts46_2978(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6fb.xn--gmb469jjf1h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6fb.xn--gmb469jjf1h', strict=True) + + def test_uts46_2979(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡌ.︒ᢑ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡌ.︒ᢑ', strict=True) + + def test_uts46_2980(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡌ.。ᢑ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡌ.。ᢑ', strict=True) + + def test_uts46_2981(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--c8e..xn--bbf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--c8e..xn--bbf', strict=True) + + def test_uts46_2982(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--c8e.xn--bbf9168i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--c8e.xn--bbf9168i', strict=True) + + def test_uts46_2983(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑋪ၳ。\U0001ef67', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑋪ၳ。\U0001ef67', strict=True) + + def test_uts46_2984(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑋪ၳ。\U0001ef67', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑋪ၳ。\U0001ef67', strict=True) + + def test_uts46_2985(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xld7443k.xn--4o7h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xld7443k.xn--4o7h', strict=True) + + def test_uts46_2986(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001edcf。ᠢ\U00093606', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001edcf。ᠢ\U00093606', strict=True) + + def test_uts46_2987(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hd7h.xn--46e66060j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hd7h.xn--46e66060j', strict=True) + + def test_uts46_2988(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑄳㴼.\u200c𐹡⃫\U0006bea6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑄳㴼.\u200c𐹡⃫\U0006bea6', strict=True) + + def test_uts46_2989(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑄳㴼.\u200c𐹡⃫\U0006bea6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑄳㴼.\u200c𐹡⃫\U0006bea6', strict=True) + + def test_uts46_2990(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iym9428c.xn--e1g3464g08p3b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iym9428c.xn--e1g3464g08p3b', strict=True) + + def test_uts46_2991(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iym9428c.xn--0ug46a7218cllv0c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iym9428c.xn--0ug46a7218cllv0c', strict=True) + + def test_uts46_2992(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00060edf𐹳𑈯。̝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00060edf𐹳𑈯。̝', strict=True) + + def test_uts46_2993(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00060edf𐹳𑈯。̝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00060edf𐹳𑈯。̝', strict=True) + + def test_uts46_2994(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ro0dw7dey96m.xn--eta', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ro0dw7dey96m.xn--eta', strict=True) + + def test_uts46_2995(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢊ뾜\U000e0c74𑚶。࢝𐹥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢊ뾜\U000e0c74𑚶。࢝𐹥', strict=True) + + def test_uts46_2996(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢊ뾜\U000e0c74𑚶。࢝𐹥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢊ뾜\U000e0c74𑚶。࢝𐹥', strict=True) + + def test_uts46_2997(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--39e4566fjv8bwmt6n.xn--myb6415k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--39e4566fjv8bwmt6n.xn--myb6415k', strict=True) + + def test_uts46_2998(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹥≠。𐋲\U000e09e0\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹥≠。𐋲\U000e09e0\u200c', strict=True) + + def test_uts46_2999(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹥≠。𐋲\U000e09e0\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹥≠。𐋲\U000e09e0\u200c', strict=True) + + def test_uts46_3000(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹥≠。𐋲\U000e09e0\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹥≠。𐋲\U000e09e0\u200c', strict=True) + + def test_uts46_3001(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹥≠。𐋲\U000e09e0\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹥≠。𐋲\U000e09e0\u200c', strict=True) + + def test_uts46_3002(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch6704g.xn--m97cw2999c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch6704g.xn--m97cw2999c', strict=True) + + def test_uts46_3003(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch6704g.xn--0ug3840g51u4g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch6704g.xn--0ug3840g51u4g', strict=True) + + def test_uts46_3004(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟ\U00059be0्.\u200d꥓\U00010aa4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟ\U00059be0्.\u200d꥓\U00010aa4', strict=True) + + def test_uts46_3005(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟ\U00059be0्.\u200d꥓\U00010aa4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟ\U00059be0्.\u200d꥓\U00010aa4', strict=True) + + def test_uts46_3006(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b91514e.xn--3j9al95p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b91514e.xn--3j9al95p', strict=True) + + def test_uts46_3007(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b91514e.xn--1ug6815co9wc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b91514e.xn--1ug6815co9wc', strict=True) + + def test_uts46_3008(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b542bb085j.xn--3j9al95p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b542bb085j.xn--3j9al95p', strict=True) + + def test_uts46_3009(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n3b542bb085j.xn--1ug6815co9wc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n3b542bb085j.xn--1ug6815co9wc', strict=True) + + def test_uts46_3010(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008c2d4󠆎󠆗𑲕。≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008c2d4󠆎󠆗𑲕。≮', strict=True) + + def test_uts46_3011(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008c2d4󠆎󠆗𑲕。≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008c2d4󠆎󠆗𑲕。≮', strict=True) + + def test_uts46_3012(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4m3dv4354a.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4m3dv4354a.xn--gdh', strict=True) + + def test_uts46_3013(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆦.ࣣ暀≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆦.ࣣ暀≠', strict=True) + + def test_uts46_3014(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆦.ࣣ暀≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆦.ࣣ暀≠', strict=True) + + def test_uts46_3015(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--m0b461k3g2c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--m0b461k3g2c', strict=True) + + def test_uts46_3016(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐡤꯭。ﴰ\U0009c585ᷰ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐡤꯭。ﴰ\U0009c585ᷰ', strict=True) + + def test_uts46_3017(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐡤꯭。شم\U0009c585ᷰ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐡤꯭。شم\U0009c585ᷰ', strict=True) + + def test_uts46_3018(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--429ak76o.xn--zgb8a701kox37t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--429ak76o.xn--zgb8a701kox37t', strict=True) + + def test_uts46_3019(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝉃\u200d⒈。Ⴌ\U0001ec53', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝉃\u200d⒈。Ⴌ\U0001ec53', strict=True) + + def test_uts46_3020(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝉃\u200d1.。Ⴌ\U0001ec53', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝉃\u200d1.。Ⴌ\U0001ec53', strict=True) + + def test_uts46_3021(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝉃\u200d1.。ⴌ\U0001ec53', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝉃\u200d1.。ⴌ\U0001ec53', strict=True) + + def test_uts46_3022(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-px8q..xn--3kj4524l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-px8q..xn--3kj4524l', strict=True) + + def test_uts46_3023(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-tgn9827q..xn--3kj4524l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-tgn9827q..xn--3kj4524l', strict=True) + + def test_uts46_3024(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝉃\u200d⒈。ⴌ\U0001ec53', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝉃\u200d⒈。ⴌ\U0001ec53', strict=True) + + def test_uts46_3025(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tshz828m.xn--3kj4524l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tshz828m.xn--3kj4524l', strict=True) + + def test_uts46_3026(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug68oq348b.xn--3kj4524l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug68oq348b.xn--3kj4524l', strict=True) + + def test_uts46_3027(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-px8q..xn--knd8464v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-px8q..xn--knd8464v', strict=True) + + def test_uts46_3028(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-tgn9827q..xn--knd8464v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-tgn9827q..xn--knd8464v', strict=True) + + def test_uts46_3029(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tshz828m.xn--knd8464v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tshz828m.xn--knd8464v', strict=True) + + def test_uts46_3030(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug68oq348b.xn--knd8464v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug68oq348b.xn--knd8464v', strict=True) + + def test_uts46_3031(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e08d9੍𱫘𞤸.ς\U00075bde\U00108c14', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e08d9੍𱫘𞤸.ς\U00075bde\U00108c14', strict=True) + + def test_uts46_3032(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e08d9੍𱫘𞤖.Σ\U00075bde\U00108c14', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e08d9੍𱫘𞤖.Σ\U00075bde\U00108c14', strict=True) + + def test_uts46_3033(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e08d9੍𱫘𞤸.σ\U00075bde\U00108c14', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e08d9੍𱫘𞤸.σ\U00075bde\U00108c14', strict=True) + + def test_uts46_3034(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e08d9੍𱫘𞤖.σ\U00075bde\U00108c14', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e08d9੍𱫘𞤖.σ\U00075bde\U00108c14', strict=True) + + def test_uts46_3035(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ybc0236vjvxgt5q0g.xn--4xa82737giye6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ybc0236vjvxgt5q0g.xn--4xa82737giye6b', strict=True) + + def test_uts46_3036(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e08d9੍𱫘𞤖.ς\U00075bde\U00108c14', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e08d9੍𱫘𞤖.ς\U00075bde\U00108c14', strict=True) + + def test_uts46_3037(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ybc0236vjvxgt5q0g.xn--3xa03737giye6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ybc0236vjvxgt5q0g.xn--3xa03737giye6b', strict=True) + + def test_uts46_3038(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e08d9੍𱫘𞤸.Σ\U00075bde\U00108c14', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e08d9੍𱫘𞤸.Σ\U00075bde\U00108c14', strict=True) + + def test_uts46_3039(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߓ。\u200c𐫀\U0009eb71', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߓ。\u200c𐫀\U0009eb71', strict=True) + + def test_uts46_3040(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--usb.xn--pw9ci1099a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--usb.xn--pw9ci1099a', strict=True) + + def test_uts46_3041(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--usb.xn--0ug9553gm3v5d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--usb.xn--0ug9553gm3v5d', strict=True) + + def test_uts46_3042(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᰮ𞀝.֦ꡟ𞤕󠆖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᰮ𞀝.֦ꡟ𞤕󠆖', strict=True) + + def test_uts46_3043(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᰮ𞀝.֦ꡟ𞤷󠆖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᰮ𞀝.֦ꡟ𞤷󠆖', strict=True) + + def test_uts46_3044(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--q1f4493q.xn--xcb8244fifvj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--q1f4493q.xn--xcb8244fifvj', strict=True) + + def test_uts46_3045(self): + self.assertRaises(idna.IDNAError, idna.decode, '䂹\U000fe585𐋦.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䂹\U000fe585𐋦.\u200d', strict=True) + + def test_uts46_3046(self): + self.assertRaises(idna.IDNAError, idna.decode, '䂹\U000fe585𐋦.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䂹\U000fe585𐋦.\u200d', strict=True) + + def test_uts46_3047(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0on3543c5981i.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0on3543c5981i.', strict=True) + + def test_uts46_3048(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0on3543c5981i.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0on3543c5981i.xn--1ug', strict=True) + + def test_uts46_3049(self): + self.assertRaises(idna.IDNAError, idna.decode, '꧀\u200c𐹲\u200c。ݧ🄉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꧀\u200c𐹲\u200c。ݧ🄉', strict=True) + + def test_uts46_3050(self): + self.assertRaises(idna.IDNAError, idna.decode, '꧀\u200c𐹲\u200c。ݧ8,', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꧀\u200c𐹲\u200c。ݧ8,', strict=True) + + def test_uts46_3051(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7m9an32q.xn--8,-qle', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7m9an32q.xn--8,-qle', strict=True) + + def test_uts46_3052(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0uga8686hdgvd.xn--8,-qle', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0uga8686hdgvd.xn--8,-qle', strict=True) + + def test_uts46_3053(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7m9an32q.xn--rpb6081w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7m9an32q.xn--rpb6081w', strict=True) + + def test_uts46_3054(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0uga8686hdgvd.xn--rpb6081w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0uga8686hdgvd.xn--rpb6081w', strict=True) + + def test_uts46_3055(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒。Ⴃ≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒。Ⴃ≯', strict=True) + + def test_uts46_3056(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒。Ⴃ≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒。Ⴃ≯', strict=True) + + def test_uts46_3057(self): + self.assertRaises(idna.IDNAError, idna.decode, '。。Ⴃ≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。。Ⴃ≯', strict=True) + + def test_uts46_3058(self): + self.assertRaises(idna.IDNAError, idna.decode, '。。Ⴃ≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。。Ⴃ≯', strict=True) + + def test_uts46_3059(self): + self.assertRaises(idna.IDNAError, idna.decode, '。。ⴃ≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。。ⴃ≯', strict=True) + + def test_uts46_3060(self): + self.assertRaises(idna.IDNAError, idna.decode, '。。ⴃ≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。。ⴃ≯', strict=True) + + def test_uts46_3061(self): + self.assertRaises(idna.IDNAError, idna.decode, '..xn--hdh782b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '..xn--hdh782b', strict=True) + + def test_uts46_3062(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒。ⴃ≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒。ⴃ≯', strict=True) + + def test_uts46_3063(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒。ⴃ≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒。ⴃ≯', strict=True) + + def test_uts46_3064(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y86c.xn--hdh782b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y86c.xn--hdh782b', strict=True) + + def test_uts46_3065(self): + self.assertRaises(idna.IDNAError, idna.decode, '..xn--bnd622g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '..xn--bnd622g', strict=True) + + def test_uts46_3066(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y86c.xn--bnd622g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y86c.xn--bnd622g', strict=True) + + def test_uts46_3067(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹮。\U000e08bc\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹮。\U000e08bc\u200d', strict=True) + + def test_uts46_3068(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹮。\U000e08bc\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹮。\U000e08bc\u200d', strict=True) + + def test_uts46_3069(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mo0d.xn--wy46e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mo0d.xn--wy46e', strict=True) + + def test_uts46_3070(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mo0d.xn--1ug18431l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mo0d.xn--1ug18431l', strict=True) + + def test_uts46_3071(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴞ𐹨。︒ݽ\u200dႯ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴞ𐹨。︒ݽ\u200dႯ', strict=True) + + def test_uts46_3072(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴞ𐹨。。ݽ\u200dႯ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴞ𐹨。。ݽ\u200dႯ', strict=True) + + def test_uts46_3073(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴞ𐹨。。ݽ\u200dⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴞ𐹨。。ݽ\u200dⴏ', strict=True) + + def test_uts46_3074(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴞ𐹨。。ݽ\u200dⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴞ𐹨。。ݽ\u200dⴏ', strict=True) + + def test_uts46_3075(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mlju223e..xn--eqb053q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mlju223e..xn--eqb053q', strict=True) + + def test_uts46_3076(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mlju223e..xn--eqb096jpgj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mlju223e..xn--eqb096jpgj', strict=True) + + def test_uts46_3077(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴞ𐹨。︒ݽ\u200dⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴞ𐹨。︒ݽ\u200dⴏ', strict=True) + + def test_uts46_3078(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴞ𐹨。︒ݽ\u200dⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴞ𐹨。︒ݽ\u200dⴏ', strict=True) + + def test_uts46_3079(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mlju223e.xn--eqb053qjk7l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mlju223e.xn--eqb053qjk7l', strict=True) + + def test_uts46_3080(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mlju223e.xn--eqb096jpgj9y7r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mlju223e.xn--eqb096jpgj9y7r', strict=True) + + def test_uts46_3081(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd0990k..xn--eqb053q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd0990k..xn--eqb053q', strict=True) + + def test_uts46_3082(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd0990k..xn--eqb096jpgj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd0990k..xn--eqb096jpgj', strict=True) + + def test_uts46_3083(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd0990k..xn--eqb228b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd0990k..xn--eqb228b', strict=True) + + def test_uts46_3084(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd0990k..xn--eqb228bgzm', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd0990k..xn--eqb228bgzm', strict=True) + + def test_uts46_3085(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd0990k.xn--eqb053qjk7l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd0990k.xn--eqb053qjk7l', strict=True) + + def test_uts46_3086(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd0990k.xn--eqb096jpgj9y7r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd0990k.xn--eqb096jpgj9y7r', strict=True) + + def test_uts46_3087(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd0990k.xn--eqb228b583r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd0990k.xn--eqb228b583r', strict=True) + + def test_uts46_3088(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd0990k.xn--eqb228bgzmvp0t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd0990k.xn--eqb228bgzmvp0t', strict=True) + + def test_uts46_3089(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cႦ𝟹。-⃒-ߑ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cႦ𝟹。-⃒-ߑ', strict=True) + + def test_uts46_3090(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cႦ3。-⃒-ߑ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cႦ3。-⃒-ߑ', strict=True) + + def test_uts46_3091(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴆ3。-⃒-ߑ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴆ3。-⃒-ߑ', strict=True) + + def test_uts46_3092(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-lvs.xn-----vue617w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-lvs.xn-----vue617w', strict=True) + + def test_uts46_3093(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-rgnv99c.xn-----vue617w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-rgnv99c.xn-----vue617w', strict=True) + + def test_uts46_3094(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴆ𝟹。-⃒-ߑ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴆ𝟹。-⃒-ߑ', strict=True) + + def test_uts46_3095(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-i0g.xn-----vue617w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-i0g.xn-----vue617w', strict=True) + + def test_uts46_3096(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-i0g939i.xn-----vue617w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-i0g939i.xn-----vue617w', strict=True) + + def test_uts46_3097(self): + self.assertRaises(idna.IDNAError, idna.decode, '箃Ⴡ-\U000e005d。≠-🤖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '箃Ⴡ-\U000e005d。≠-🤖', strict=True) + + def test_uts46_3098(self): + self.assertRaises(idna.IDNAError, idna.decode, '箃Ⴡ-\U000e005d。≠-🤖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '箃Ⴡ-\U000e005d。≠-🤖', strict=True) + + def test_uts46_3099(self): + self.assertRaises(idna.IDNAError, idna.decode, '箃Ⴡ-\U000e005d。≠-🤖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '箃Ⴡ-\U000e005d。≠-🤖', strict=True) + + def test_uts46_3100(self): + self.assertRaises(idna.IDNAError, idna.decode, '箃Ⴡ-\U000e005d。≠-🤖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '箃Ⴡ-\U000e005d。≠-🤖', strict=True) + + def test_uts46_3101(self): + self.assertRaises(idna.IDNAError, idna.decode, '箃ⴡ-\U000e005d。≠-🤖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '箃ⴡ-\U000e005d。≠-🤖', strict=True) + + def test_uts46_3102(self): + self.assertRaises(idna.IDNAError, idna.decode, '箃ⴡ-\U000e005d。≠-🤖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '箃ⴡ-\U000e005d。≠-🤖', strict=True) + + def test_uts46_3103(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----4wsr321ay823p.xn----tfot873s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----4wsr321ay823p.xn----tfot873s', strict=True) + + def test_uts46_3104(self): + self.assertRaises(idna.IDNAError, idna.decode, '箃ⴡ-\U000e005d。≠-🤖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '箃ⴡ-\U000e005d。≠-🤖', strict=True) + + def test_uts46_3105(self): + self.assertRaises(idna.IDNAError, idna.decode, '箃ⴡ-\U000e005d。≠-🤖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '箃ⴡ-\U000e005d。≠-🤖', strict=True) + + def test_uts46_3106(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----11g3013fy8x5m.xn----tfot873s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----11g3013fy8x5m.xn----tfot873s', strict=True) + + def test_uts46_3107(self): + self.assertEqual(idna.decode('ߥ.ڵ', uts46=True, strict=True), 'ߥ.ڵ') + self.assertEqual(idna.encode('ߥ.ڵ', uts46=True, strict=True), b'xn--dtb.xn--okb') + + def test_uts46_3108(self): + self.assertEqual(idna.decode('xn--dtb.xn--okb', uts46=True, strict=True), 'ߥ.ڵ') + self.assertEqual(idna.encode('xn--dtb.xn--okb', uts46=True, strict=True), b'xn--dtb.xn--okb') + + def test_uts46_3109(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200d.𞤿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200d.𞤿', strict=True) + + def test_uts46_3110(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200d.𞤝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200d.𞤝', strict=True) + + def test_uts46_3111(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--3e6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--3e6h', strict=True) + + def test_uts46_3112(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugc.xn--3e6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugc.xn--3e6h', strict=True) + + def test_uts46_3113(self): + self.assertEqual(idna.decode('xn--3e6h', uts46=True, strict=True), '𞤿') + self.assertEqual(idna.encode('xn--3e6h', uts46=True, strict=True), b'xn--3e6h') + + def test_uts46_3114(self): + self.assertEqual(idna.decode('𞤿', uts46=True, strict=True), '𞤿') + self.assertEqual(idna.encode('𞤿', uts46=True, strict=True), b'xn--3e6h') + + def test_uts46_3115(self): + self.assertEqual(idna.decode('𞤝', uts46=True, strict=True), '𞤿') + self.assertEqual(idna.encode('𞤝', uts46=True, strict=True), b'xn--3e6h') + + def test_uts46_3116(self): + self.assertRaises(idna.IDNAError, idna.decode, '🜑𐹧ع.ς𑍍蜹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🜑𐹧ع.ς𑍍蜹', strict=True) + + def test_uts46_3117(self): + self.assertRaises(idna.IDNAError, idna.decode, '🜑𐹧ع.Σ𑍍蜹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🜑𐹧ع.Σ𑍍蜹', strict=True) + + def test_uts46_3118(self): + self.assertRaises(idna.IDNAError, idna.decode, '🜑𐹧ع.σ𑍍蜹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🜑𐹧ع.σ𑍍蜹', strict=True) + + def test_uts46_3119(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4gb3736kk4zf.xn--4xa2248dy27d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4gb3736kk4zf.xn--4xa2248dy27d', strict=True) + + def test_uts46_3120(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4gb3736kk4zf.xn--3xa4248dy27d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4gb3736kk4zf.xn--3xa4248dy27d', strict=True) + + def test_uts46_3121(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ab810ス\U001067e4٩.\U000da0df', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ab810ス\U001067e4٩.\U000da0df', strict=True) + + def test_uts46_3122(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ab810ス\U001067e4٩.\U000da0df', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ab810ス\U001067e4٩.\U000da0df', strict=True) + + def test_uts46_3123(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iib777sp230oo708a.xn--7824e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iib777sp230oo708a.xn--7824e', strict=True) + + def test_uts46_3124(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪣\U0009585d.֚?ۂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪣\U0009585d.֚?ۂ', strict=True) + + def test_uts46_3125(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪣\U0009585d.֚?ۂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪣\U0009585d.֚?ۂ', strict=True) + + def test_uts46_3126(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪣\U0009585d.֚?ۂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪣\U0009585d.֚?ۂ', strict=True) + + def test_uts46_3127(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪣\U0009585d.֚?ۂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪣\U0009585d.֚?ۂ', strict=True) + + def test_uts46_3128(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8c3hu7971a.xn--?-wec30g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8c3hu7971a.xn--?-wec30g', strict=True) + + def test_uts46_3129(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8c3hu7971a.֚?ۂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8c3hu7971a.֚?ۂ', strict=True) + + def test_uts46_3130(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8c3hu7971a.֚?ۂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8c3hu7971a.֚?ۂ', strict=True) + + def test_uts46_3131(self): + self.assertRaises(idna.IDNAError, idna.decode, 'XN--8C3HU7971A.֚?ۂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'XN--8C3HU7971A.֚?ۂ', strict=True) + + def test_uts46_3132(self): + self.assertRaises(idna.IDNAError, idna.decode, 'XN--8C3HU7971A.֚?ۂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'XN--8C3HU7971A.֚?ۂ', strict=True) + + def test_uts46_3133(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--8c3hu7971a.֚?ۂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--8c3hu7971a.֚?ۂ', strict=True) + + def test_uts46_3134(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--8c3hu7971a.֚?ۂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--8c3hu7971a.֚?ۂ', strict=True) + + def test_uts46_3135(self): + self.assertRaises(idna.IDNAError, idna.decode, '٠\U000aa4f5\u200c。ݗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٠\U000aa4f5\u200c。ݗ', strict=True) + + def test_uts46_3136(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8hb82030l.xn--bpb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8hb82030l.xn--bpb', strict=True) + + def test_uts46_3137(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8hb852ke991q.xn--bpb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8hb852ke991q.xn--bpb', strict=True) + + def test_uts46_3138(self): + self.assertRaises(idna.IDNAError, idna.decode, '်\u200d\u200c。-\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '်\u200d\u200c。-\u200c', strict=True) + + def test_uts46_3139(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bkd.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bkd.-', strict=True) + + def test_uts46_3140(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bkd412fca.xn----sgn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bkd412fca.xn----sgn', strict=True) + + def test_uts46_3141(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒。᭄ᡉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒。᭄ᡉ', strict=True) + + def test_uts46_3142(self): + self.assertRaises(idna.IDNAError, idna.decode, '。。᭄ᡉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。。᭄ᡉ', strict=True) + + def test_uts46_3143(self): + self.assertRaises(idna.IDNAError, idna.decode, '..xn--87e93m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '..xn--87e93m', strict=True) + + def test_uts46_3144(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y86c.xn--87e93m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y86c.xn--87e93m', strict=True) + + def test_uts46_3145(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݘß。ጫᢊݨ𝟐', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݘß。ጫᢊݨ𝟐', strict=True) + + def test_uts46_3146(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݘß。ጫᢊݨ2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݘß。ጫᢊݨ2', strict=True) + + def test_uts46_3147(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݘSS。ጫᢊݨ2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݘSS。ጫᢊݨ2', strict=True) + + def test_uts46_3148(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݘss。ጫᢊݨ2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݘss。ጫᢊݨ2', strict=True) + + def test_uts46_3149(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-gke.xn--2-b5c641gfmf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-gke.xn--2-b5c641gfmf', strict=True) + + def test_uts46_3150(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca724a.xn--2-b5c641gfmf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca724a.xn--2-b5c641gfmf', strict=True) + + def test_uts46_3151(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݘSS。ጫᢊݨ𝟐', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݘSS。ጫᢊݨ𝟐', strict=True) + + def test_uts46_3152(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݘss。ጫᢊݨ𝟐', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݘss。ጫᢊݨ𝟐', strict=True) + + def test_uts46_3153(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݘSs。ጫᢊݨ2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݘSs。ጫᢊݨ2', strict=True) + + def test_uts46_3154(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݘSs。ጫᢊݨ𝟐', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݘSs。ጫᢊݨ𝟐', strict=True) + + def test_uts46_3155(self): + self.assertRaises(idna.IDNAError, idna.decode, '߃\U0001ed87ᚲ.ं͓𝟚্', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '߃\U0001ed87ᚲ.ं͓𝟚্', strict=True) + + def test_uts46_3156(self): + self.assertRaises(idna.IDNAError, idna.decode, '߃\U0001ed87ᚲ.ं͓2্', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '߃\U0001ed87ᚲ.ं͓2্', strict=True) + + def test_uts46_3157(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--esb067enh07a.xn--2-lgb874bjxa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--esb067enh07a.xn--2-lgb874bjxa', strict=True) + + def test_uts46_3158(self): + self.assertRaises(idna.IDNAError, idna.decode, '-᮫︒\u200d.\U00052d88\U00065e53', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-᮫︒\u200d.\U00052d88\U00065e53', strict=True) + + def test_uts46_3159(self): + self.assertRaises(idna.IDNAError, idna.decode, '-᮫。\u200d.\U00052d88\U00065e53', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-᮫。\u200d.\U00052d88\U00065e53', strict=True) + + def test_uts46_3160(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qml..xn--x50zy803a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qml..xn--x50zy803a', strict=True) + + def test_uts46_3161(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qml.xn--1ug.xn--x50zy803a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qml.xn--1ug.xn--x50zy803a', strict=True) + + def test_uts46_3162(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qml1407i.xn--x50zy803a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qml1407i.xn--x50zy803a', strict=True) + + def test_uts46_3163(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qmlv7tw180a.xn--x50zy803a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qmlv7tw180a.xn--x50zy803a', strict=True) + + def test_uts46_3164(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e09ae.≯𞀆', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e09ae.≯𞀆', strict=True) + + def test_uts46_3165(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e09ae.≯𞀆', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e09ae.≯𞀆', strict=True) + + def test_uts46_3166(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t546e.xn--hdh5166o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t546e.xn--hdh5166o', strict=True) + + def test_uts46_3167(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𑄳\U000e0297𐹩。\U0001ebb1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𑄳\U000e0297𐹩。\U0001ebb1', strict=True) + + def test_uts46_3168(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----p26i72em2894c.xn--zw6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----p26i72em2894c.xn--zw6h', strict=True) + + def test_uts46_3169(self): + self.assertEqual(idna.decode('ڹ.ᡳᅟ', uts46=True, strict=True), 'ڹ.ᡳ') + self.assertEqual(idna.encode('ڹ.ᡳᅟ', uts46=True, strict=True), b'xn--skb.xn--g9e') + + def test_uts46_3170(self): + self.assertEqual(idna.decode('ڹ.ᡳᅟ', uts46=True, strict=True), 'ڹ.ᡳ') + self.assertEqual(idna.encode('ڹ.ᡳᅟ', uts46=True, strict=True), b'xn--skb.xn--g9e') + + def test_uts46_3171(self): + self.assertEqual(idna.decode('xn--skb.xn--g9e', uts46=True, strict=True), 'ڹ.ᡳ') + self.assertEqual(idna.encode('xn--skb.xn--g9e', uts46=True, strict=True), b'xn--skb.xn--g9e') + + def test_uts46_3172(self): + self.assertEqual(idna.decode('ڹ.ᡳ', uts46=True, strict=True), 'ڹ.ᡳ') + self.assertEqual(idna.encode('ڹ.ᡳ', uts46=True, strict=True), b'xn--skb.xn--g9e') + + def test_uts46_3173(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--skb.xn--osd737a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--skb.xn--osd737a', strict=True) + + def test_uts46_3174(self): + self.assertRaises(idna.IDNAError, idna.decode, '㨛𘱎.︒𝟕ഁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㨛𘱎.︒𝟕ഁ', strict=True) + + def test_uts46_3175(self): + self.assertRaises(idna.IDNAError, idna.decode, '㨛𘱎.。7ഁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㨛𘱎.。7ഁ', strict=True) + + def test_uts46_3176(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mbm8237g..xn--7-7hf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mbm8237g..xn--7-7hf', strict=True) + + def test_uts46_3177(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mbm8237g.xn--7-7hf1526p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mbm8237g.xn--7-7hf1526p', strict=True) + + def test_uts46_3178(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤣≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤣≮', strict=True) + + def test_uts46_3179(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤣≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤣≮', strict=True) + + def test_uts46_3180(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤣≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤣≮', strict=True) + + def test_uts46_3181(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤣≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤣≮', strict=True) + + def test_uts46_3182(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤁≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤁≮', strict=True) + + def test_uts46_3183(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤁≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤁≮', strict=True) + + def test_uts46_3184(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----dxc06304e.xn--gdh5020pk5c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----dxc06304e.xn--gdh5020pk5c', strict=True) + + def test_uts46_3185(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤁≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤁≮', strict=True) + + def test_uts46_3186(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤁≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u06dd\U0003bc67-。\U0001edc1\u2064𞤁≮', strict=True) + + def test_uts46_3187(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\u200c꫶ᢥ.⊶ჁႶ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\u200c꫶ᢥ.⊶ჁႶ', strict=True) + + def test_uts46_3188(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\u200c꫶ᢥ.⊶ჁႶ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\u200c꫶ᢥ.⊶ჁႶ', strict=True) + + def test_uts46_3189(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\u200c꫶ᢥ.⊶ⴡⴖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\u200c꫶ᢥ.⊶ⴡⴖ', strict=True) + + def test_uts46_3190(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS\u200c꫶ᢥ.⊶ჁႶ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS\u200c꫶ᢥ.⊶ჁႶ', strict=True) + + def test_uts46_3191(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss\u200c꫶ᢥ.⊶ⴡⴖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss\u200c꫶ᢥ.⊶ⴡⴖ', strict=True) + + def test_uts46_3192(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss\u200c꫶ᢥ.⊶Ⴡⴖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss\u200c꫶ᢥ.⊶Ⴡⴖ', strict=True) + + def test_uts46_3193(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-4epx629f.xn--ifh802b6a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-4epx629f.xn--ifh802b6a', strict=True) + + def test_uts46_3194(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss꫶ᢥ.⊶ⴡⴖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss꫶ᢥ.⊶ⴡⴖ', strict=True) + + def test_uts46_3195(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS꫶ᢥ.⊶ჁႶ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS꫶ᢥ.⊶ჁႶ', strict=True) + + def test_uts46_3196(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss꫶ᢥ.⊶Ⴡⴖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss꫶ᢥ.⊶Ⴡⴖ', strict=True) + + def test_uts46_3197(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-4ep585bkm5p.xn--ifh802b6a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-4ep585bkm5p.xn--ifh802b6a', strict=True) + + def test_uts46_3198(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca682johfi89m.xn--ifh802b6a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca682johfi89m.xn--ifh802b6a', strict=True) + + def test_uts46_3199(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\u200c꫶ᢥ.⊶ⴡⴖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\u200c꫶ᢥ.⊶ⴡⴖ', strict=True) + + def test_uts46_3200(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS\u200c꫶ᢥ.⊶ჁႶ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS\u200c꫶ᢥ.⊶ჁႶ', strict=True) + + def test_uts46_3201(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss\u200c꫶ᢥ.⊶ⴡⴖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss\u200c꫶ᢥ.⊶ⴡⴖ', strict=True) + + def test_uts46_3202(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss\u200c꫶ᢥ.⊶Ⴡⴖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss\u200c꫶ᢥ.⊶Ⴡⴖ', strict=True) + + def test_uts46_3203(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-4epx629f.xn--5nd703gyrh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-4epx629f.xn--5nd703gyrh', strict=True) + + def test_uts46_3204(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-4ep585bkm5p.xn--5nd703gyrh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-4ep585bkm5p.xn--5nd703gyrh', strict=True) + + def test_uts46_3205(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-4epx629f.xn--undv409k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-4epx629f.xn--undv409k', strict=True) + + def test_uts46_3206(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-4ep585bkm5p.xn--undv409k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-4ep585bkm5p.xn--undv409k', strict=True) + + def test_uts46_3207(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca682johfi89m.xn--undv409k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca682johfi89m.xn--undv409k', strict=True) + + def test_uts46_3208(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。ς\U000e0049', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。ς\U000e0049', strict=True) + + def test_uts46_3209(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。Σ\U000e0049', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。Σ\U000e0049', strict=True) + + def test_uts46_3210(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。σ\U000e0049', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。σ\U000e0049', strict=True) + + def test_uts46_3211(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--4xa24344p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--4xa24344p', strict=True) + + def test_uts46_3212(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--4xa24344p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--4xa24344p', strict=True) + + def test_uts46_3213(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--3xa44344p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--3xa44344p', strict=True) + + def test_uts46_3214(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ed51ß.ݑ\u200d𞤛-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ed51ß.ݑ\u200d𞤛-', strict=True) + + def test_uts46_3215(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ed51ß.ݑ\u200d𞤽-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ed51ß.ݑ\u200d𞤽-', strict=True) + + def test_uts46_3216(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ed51SS.ݑ\u200d𞤛-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ed51SS.ݑ\u200d𞤛-', strict=True) + + def test_uts46_3217(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ed51ss.ݑ\u200d𞤽-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ed51ss.ݑ\u200d𞤽-', strict=True) + + def test_uts46_3218(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ed51Ss.ݑ\u200d𞤽-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ed51Ss.ݑ\u200d𞤽-', strict=True) + + def test_uts46_3219(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-2722a.xn----z3c03218a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-2722a.xn----z3c03218a', strict=True) + + def test_uts46_3220(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-2722a.xn----z3c011q9513b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-2722a.xn----z3c011q9513b', strict=True) + + def test_uts46_3221(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca5423w.xn----z3c011q9513b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca5423w.xn----z3c011q9513b', strict=True) + + def test_uts46_3222(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ed51ss.ݑ\u200d𞤛-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ed51ss.ݑ\u200d𞤛-', strict=True) + + def test_uts46_3223(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ed51Ss.ݑ\u200d𞤛-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ed51Ss.ݑ\u200d𞤛-', strict=True) + + def test_uts46_3224(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑘽\u200d𞤧.𐹧\U000e19aa-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑘽\u200d𞤧.𐹧\U000e19aa-', strict=True) + + def test_uts46_3225(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑘽\u200d𞤧.𐹧\U000e19aa-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑘽\u200d𞤧.𐹧\U000e19aa-', strict=True) + + def test_uts46_3226(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑘽\u200d𞤅.𐹧\U000e19aa-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑘽\u200d𞤅.𐹧\U000e19aa-', strict=True) + + def test_uts46_3227(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qb2ds317a.xn----k26iq1483f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qb2ds317a.xn----k26iq1483f', strict=True) + + def test_uts46_3228(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugz808gdimf.xn----k26iq1483f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugz808gdimf.xn----k26iq1483f', strict=True) + + def test_uts46_3229(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑘽\u200d𞤅.𐹧\U000e19aa-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑘽\u200d𞤅.𐹧\U000e19aa-', strict=True) + + def test_uts46_3230(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒒\U000a8619\U000b3ce0𑓀.-\U000de84a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒒\U000a8619\U000b3ce0𑓀.-\U000de84a', strict=True) + + def test_uts46_3231(self): + self.assertRaises(idna.IDNAError, idna.decode, '11.\U000a8619\U000b3ce0𑓀.-\U000de84a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '11.\U000a8619\U000b3ce0𑓀.-\U000de84a', strict=True) + + def test_uts46_3232(self): + self.assertRaises(idna.IDNAError, idna.decode, '11.xn--uz1d59632bxujd.xn----x310m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '11.xn--uz1d59632bxujd.xn----x310m', strict=True) + + def test_uts46_3233(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3shy698frsu9dt1me.xn----x310m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3shy698frsu9dt1me.xn----x310m', strict=True) + + def test_uts46_3234(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。\u200d', strict=True) + + def test_uts46_3235(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。\u200d', strict=True) + + def test_uts46_3236(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.', strict=True) + + def test_uts46_3237(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--1ug', strict=True) + + def test_uts46_3238(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.ς¹-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.ς¹-?', strict=True) + + def test_uts46_3239(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.ς¹-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.ς¹-?', strict=True) + + def test_uts46_3240(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.ς1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.ς1-?', strict=True) + + def test_uts46_3241(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.ς1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.ς1-?', strict=True) + + def test_uts46_3242(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.Σ1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.Σ1-?', strict=True) + + def test_uts46_3243(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.Σ1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.Σ1-?', strict=True) + + def test_uts46_3244(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.σ1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.σ1-?', strict=True) + + def test_uts46_3245(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.σ1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.σ1-?', strict=True) + + def test_uts46_3246(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--88e732c.xn--1-?-pzc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--88e732c.xn--1-?-pzc', strict=True) + + def test_uts46_3247(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--88e732c.xn--1-?-lzc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--88e732c.xn--1-?-lzc', strict=True) + + def test_uts46_3248(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.Σ¹-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.Σ¹-?', strict=True) + + def test_uts46_3249(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.Σ¹-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.Σ¹-?', strict=True) + + def test_uts46_3250(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.σ¹-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.σ¹-?', strict=True) + + def test_uts46_3251(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ᡬ.σ¹-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ᡬ.σ¹-?', strict=True) + + def test_uts46_3252(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--88e732c.σ1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--88e732c.σ1-?', strict=True) + + def test_uts46_3253(self): + self.assertRaises(idna.IDNAError, idna.decode, 'XN--88E732C.Σ1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'XN--88E732C.Σ1-?', strict=True) + + def test_uts46_3254(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--88e732c.ς1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--88e732c.ς1-?', strict=True) + + def test_uts46_3255(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--88e732c.ς1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--88e732c.ς1-?', strict=True) + + def test_uts46_3256(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--88e732c.σ1-?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--88e732c.σ1-?', strict=True) + + def test_uts46_3257(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ቬ\U0009483c\U000415f6。𐨬𝟠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ቬ\U0009483c\U000415f6。𐨬𝟠', strict=True) + + def test_uts46_3258(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ቬ\U0009483c\U000415f6。𐨬8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ቬ\U0009483c\U000415f6。𐨬8', strict=True) + + def test_uts46_3259(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--d0d41273c887z.xn--8-ob5i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--d0d41273c887z.xn--8-ob5i', strict=True) + + def test_uts46_3260(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010c72。蔫ݦ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010c72。蔫ݦ', strict=True) + + def test_uts46_3261(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--389c.xn--qpb7055d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--389c.xn--qpb7055d', strict=True) + + def test_uts46_3262(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00092ca7₃。ꡚ𛇑󠄳ه', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00092ca7₃。ꡚ𛇑󠄳ه', strict=True) + + def test_uts46_3263(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00092ca73。ꡚ𛇑󠄳ه', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00092ca73。ꡚ𛇑󠄳ه', strict=True) + + def test_uts46_3264(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-ep59g.xn--jhb5904fcp0h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-ep59g.xn--jhb5904fcp0h', strict=True) + + def test_uts46_3265(self): + self.assertRaises(idna.IDNAError, idna.decode, '蓸ق≠.ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蓸ق≠.ß', strict=True) + + def test_uts46_3266(self): + self.assertRaises(idna.IDNAError, idna.decode, '蓸ق≠.ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蓸ق≠.ß', strict=True) + + def test_uts46_3267(self): + self.assertRaises(idna.IDNAError, idna.decode, '蓸ق≠.SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蓸ق≠.SS', strict=True) + + def test_uts46_3268(self): + self.assertRaises(idna.IDNAError, idna.decode, '蓸ق≠.SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蓸ق≠.SS', strict=True) + + def test_uts46_3269(self): + self.assertRaises(idna.IDNAError, idna.decode, '蓸ق≠.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蓸ق≠.ss', strict=True) + + def test_uts46_3270(self): + self.assertRaises(idna.IDNAError, idna.decode, '蓸ق≠.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蓸ق≠.ss', strict=True) + + def test_uts46_3271(self): + self.assertRaises(idna.IDNAError, idna.decode, '蓸ق≠.Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蓸ق≠.Ss', strict=True) + + def test_uts46_3272(self): + self.assertRaises(idna.IDNAError, idna.decode, '蓸ق≠.Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蓸ق≠.Ss', strict=True) + + def test_uts46_3273(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ehb015lnt1e.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ehb015lnt1e.ss', strict=True) + + def test_uts46_3274(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ehb015lnt1e.xn--zca', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ehb015lnt1e.xn--zca', strict=True) + + def test_uts46_3275(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡎٺී⒊.𐹹\U0001ec69\U000e00ea\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡎٺී⒊.𐹹\U0001ec69\U000e00ea\u200c', strict=True) + + def test_uts46_3276(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡎٺී3..𐹹\U0001ec69\U000e00ea\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡎٺී3..𐹹\U0001ec69\U000e00ea\u200c', strict=True) + + def test_uts46_3277(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-prc71ls9j..xn--xo0dw109an237f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-prc71ls9j..xn--xo0dw109an237f', strict=True) + + def test_uts46_3278(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-prc71ls9j..xn--0ug3205g7eyf3c96h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-prc71ls9j..xn--0ug3205g7eyf3c96h', strict=True) + + def test_uts46_3279(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zib94gfziuq1a.xn--xo0dw109an237f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zib94gfziuq1a.xn--xo0dw109an237f', strict=True) + + def test_uts46_3280(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zib94gfziuq1a.xn--0ug3205g7eyf3c96h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zib94gfziuq1a.xn--0ug3205g7eyf3c96h', strict=True) + + def test_uts46_3281(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς\u200d-.Ⴣ𦟙', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς\u200d-.Ⴣ𦟙', strict=True) + + def test_uts46_3282(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς\u200d-.ⴣ𦟙', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς\u200d-.ⴣ𦟙', strict=True) + + def test_uts46_3283(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ\u200d-.Ⴣ𦟙', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ\u200d-.Ⴣ𦟙', strict=True) + + def test_uts46_3284(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ\u200d-.ⴣ𦟙', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ\u200d-.ⴣ𦟙', strict=True) + + def test_uts46_3285(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----zmb.xn--rlj2573p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----zmb.xn--rlj2573p', strict=True) + + def test_uts46_3286(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----zmb048s.xn--rlj2573p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----zmb048s.xn--rlj2573p', strict=True) + + def test_uts46_3287(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----xmb348s.xn--rlj2573p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----xmb348s.xn--rlj2573p', strict=True) + + def test_uts46_3288(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----zmb.xn--7nd64871a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----zmb.xn--7nd64871a', strict=True) + + def test_uts46_3289(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----zmb048s.xn--7nd64871a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----zmb048s.xn--7nd64871a', strict=True) + + def test_uts46_3290(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----xmb348s.xn--7nd64871a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----xmb348s.xn--7nd64871a', strict=True) + + def test_uts46_3291(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。🞳𝟲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。🞳𝟲', strict=True) + + def test_uts46_3292(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。🞳𝟲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。🞳𝟲', strict=True) + + def test_uts46_3293(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。🞳6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。🞳6', strict=True) + + def test_uts46_3294(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠。🞳6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠。🞳6', strict=True) + + def test_uts46_3295(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch.xn--6-dl4s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch.xn--6-dl4s', strict=True) + + def test_uts46_3296(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.🞳6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.🞳6', strict=True) + + def test_uts46_3297(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.🞳6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.🞳6', strict=True) + + def test_uts46_3298(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c5b3d.蠔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c5b3d.蠔', strict=True) + + def test_uts46_3299(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--g747d.xn--xl2a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--g747d.xn--xl2a', strict=True) + + def test_uts46_3300(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣦ\u200d.뼽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣦ\u200d.뼽', strict=True) + + def test_uts46_3301(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣦ\u200d.뼽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣦ\u200d.뼽', strict=True) + + def test_uts46_3302(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣦ\u200d.뼽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣦ\u200d.뼽', strict=True) + + def test_uts46_3303(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣦ\u200d.뼽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣦ\u200d.뼽', strict=True) + + def test_uts46_3304(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--p0b.xn--e43b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--p0b.xn--e43b', strict=True) + + def test_uts46_3305(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--p0b869i.xn--e43b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--p0b869i.xn--e43b', strict=True) + + def test_uts46_3306(self): + self.assertRaises(idna.IDNAError, idna.decode, '₇்\U001030b7ے。👖ٵ-\U0001ea91', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '₇்\U001030b7ے。👖ٵ-\U0001ea91', strict=True) + + def test_uts46_3307(self): + self.assertRaises(idna.IDNAError, idna.decode, '7்\U001030b7ے。👖اٴ-\U0001ea91', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '7்\U001030b7ے。👖اٴ-\U0001ea91', strict=True) + + def test_uts46_3308(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7-rwc839aj3073c.xn----ymc5uv818oghka', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7-rwc839aj3073c.xn----ymc5uv818oghka', strict=True) + + def test_uts46_3309(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。ݻ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。ݻ', strict=True) + + def test_uts46_3310(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。ݻ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。ݻ', strict=True) + + def test_uts46_3311(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--cqb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--cqb', strict=True) + + def test_uts46_3312(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑇌\U000356d3。-⒈ꡏܫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑇌\U000356d3。-⒈ꡏܫ', strict=True) + + def test_uts46_3313(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑇌\U000356d3。-1.ꡏܫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑇌\U000356d3。-1.ꡏܫ', strict=True) + + def test_uts46_3314(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8d1dg030h.-1.xn--1nb7163f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8d1dg030h.-1.xn--1nb7163f', strict=True) + + def test_uts46_3315(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8d1dg030h.xn----u1c466tp10j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8d1dg030h.xn----u1c466tp10j', strict=True) + + def test_uts46_3316(self): + self.assertRaises(idna.IDNAError, idna.decode, '璛᜴گ.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '璛᜴گ.-', strict=True) + + def test_uts46_3317(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ikb175frt4e.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ikb175frt4e.-', strict=True) + + def test_uts46_3318(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆰ࢡ੍샕.𐹲휁', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆰ࢡ੍샕.𐹲휁', strict=True) + + def test_uts46_3319(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆰ࢡ੍샕.𐹲휁', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆰ࢡ੍샕.𐹲휁', strict=True) + + def test_uts46_3320(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆰ࢡ੍샕.𐹲휁', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆰ࢡ੍샕.𐹲휁', strict=True) + + def test_uts46_3321(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆰ࢡ੍샕.𐹲휁', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆰ࢡ੍샕.𐹲휁', strict=True) + + def test_uts46_3322(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qyb07fj857a.xn--728bv72h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qyb07fj857a.xn--728bv72h', strict=True) + + def test_uts46_3323(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004da3d.\U0004be15', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004da3d.\U0004be15', strict=True) + + def test_uts46_3324(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004da3d.\U0004be15', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004da3d.\U0004be15', strict=True) + + def test_uts46_3325(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pr3x.xn--rv7w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pr3x.xn--rv7w', strict=True) + + def test_uts46_3326(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٽ𞥕。𑑂𞤶Ⴍ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٽ𞥕。𑑂𞤶Ⴍ-', strict=True) + + def test_uts46_3327(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٽ𞥕。𑑂𞤶Ⴍ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٽ𞥕。𑑂𞤶Ⴍ-', strict=True) + + def test_uts46_3328(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٽ𞥕。𑑂𞤶ⴍ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٽ𞥕。𑑂𞤶ⴍ-', strict=True) + + def test_uts46_3329(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٽ𞥕。𑑂𞤔Ⴍ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٽ𞥕。𑑂𞤔Ⴍ-', strict=True) + + def test_uts46_3330(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٽ𞥕。𑑂𞤔ⴍ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٽ𞥕。𑑂𞤔ⴍ-', strict=True) + + def test_uts46_3331(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2ib0338v.xn----zvs0199fo91g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2ib0338v.xn----zvs0199fo91g', strict=True) + + def test_uts46_3332(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٽ𞥕。𑑂𞤶ⴍ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٽ𞥕。𑑂𞤶ⴍ-', strict=True) + + def test_uts46_3333(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٽ𞥕。𑑂𞤔Ⴍ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٽ𞥕。𑑂𞤔Ⴍ-', strict=True) + + def test_uts46_3334(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٽ𞥕。𑑂𞤔ⴍ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٽ𞥕。𑑂𞤔ⴍ-', strict=True) + + def test_uts46_3335(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2ib0338v.xn----w0g2740ro9vg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2ib0338v.xn----w0g2740ro9vg', strict=True) + + def test_uts46_3336(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010bc0\U00010e09\U0001e9cf。\U000626a7₄Ⴋ\U00042e6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010bc0\U00010e09\U0001e9cf。\U000626a7₄Ⴋ\U00042e6b', strict=True) + + def test_uts46_3337(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010bc0\U00010e09\U0001e9cf。\U000626a74Ⴋ\U00042e6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010bc0\U00010e09\U0001e9cf。\U000626a74Ⴋ\U00042e6b', strict=True) + + def test_uts46_3338(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010bc0\U00010e09\U0001e9cf。\U000626a74ⴋ\U00042e6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010bc0\U00010e09\U0001e9cf。\U000626a74ⴋ\U00042e6b', strict=True) + + def test_uts46_3339(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--039c42bq865a.xn--4-wvs27840bnrzm', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--039c42bq865a.xn--4-wvs27840bnrzm', strict=True) + + def test_uts46_3340(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010bc0\U00010e09\U0001e9cf。\U000626a7₄ⴋ\U00042e6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010bc0\U00010e09\U0001e9cf。\U000626a7₄ⴋ\U00042e6b', strict=True) + + def test_uts46_3341(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--039c42bq865a.xn--4-t0g49302fnrzm', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--039c42bq865a.xn--4-t0g49302fnrzm', strict=True) + + def test_uts46_3342(self): + self.assertRaises(idna.IDNAError, idna.decode, '4ڽ︒\U000e0465.≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4ڽ︒\U000e0465.≠', strict=True) + + def test_uts46_3343(self): + self.assertRaises(idna.IDNAError, idna.decode, '4ڽ︒\U000e0465.≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4ڽ︒\U000e0465.≠', strict=True) + + def test_uts46_3344(self): + self.assertRaises(idna.IDNAError, idna.decode, '4ڽ。\U000e0465.≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4ڽ。\U000e0465.≠', strict=True) + + def test_uts46_3345(self): + self.assertRaises(idna.IDNAError, idna.decode, '4ڽ。\U000e0465.≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4ڽ。\U000e0465.≠', strict=True) + + def test_uts46_3346(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-kvc.xn--5136e.xn--1ch', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-kvc.xn--5136e.xn--1ch', strict=True) + + def test_uts46_3347(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-kvc5601q2h50i.xn--1ch', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-kvc5601q2h50i.xn--1ch', strict=True) + + def test_uts46_3348(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟓。ۗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟓。ۗ', strict=True) + + def test_uts46_3349(self): + self.assertRaises(idna.IDNAError, idna.decode, '5。ۗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '5。ۗ', strict=True) + + def test_uts46_3350(self): + self.assertRaises(idna.IDNAError, idna.decode, '5.xn--nlb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '5.xn--nlb', strict=True) + + def test_uts46_3351(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000bae29.⾕', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000bae29.⾕', strict=True) + + def test_uts46_3352(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000bae29.谷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000bae29.谷', strict=True) + + def test_uts46_3353(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--i183d.xn--6g3a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--i183d.xn--6g3a', strict=True) + + def test_uts46_3354(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug26167i.xn--6g3a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug26167i.xn--6g3a', strict=True) + + def test_uts46_3355(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒\U000cec07\u200d.-ܼ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒\U000cec07\u200d.-ܼ\u200c', strict=True) + + def test_uts46_3356(self): + self.assertRaises(idna.IDNAError, idna.decode, '。\U000cec07\u200d.-ܼ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。\U000cec07\u200d.-ܼ\u200c', strict=True) + + def test_uts46_3357(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--hh50e.xn----t2c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--hh50e.xn----t2c', strict=True) + + def test_uts46_3358(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--1ug05310k.xn----t2c071q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--1ug05310k.xn----t2c071q', strict=True) + + def test_uts46_3359(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y86c71305c.xn----t2c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y86c71305c.xn----t2c', strict=True) + + def test_uts46_3360(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug1658ftw26f.xn----t2c071q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug1658ftw26f.xn----t2c071q', strict=True) + + def test_uts46_3361(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𞤟。ᡨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𞤟。ᡨ', strict=True) + + def test_uts46_3362(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𞤟。ᡨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𞤟。ᡨ', strict=True) + + def test_uts46_3363(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𞥁。ᡨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𞥁。ᡨ', strict=True) + + def test_uts46_3364(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𞥁。ᡨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𞥁。ᡨ', strict=True) + + def test_uts46_3365(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdhz520p.xn--48e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdhz520p.xn--48e', strict=True) + + def test_uts46_3366(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ུ𫫰𝨄。ܓ𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ུ𫫰𝨄。ܓ𐹦', strict=True) + + def test_uts46_3367(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ned8985uo92e.xn--dnb6395k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ned8985uo92e.xn--dnb6395k', strict=True) + + def test_uts46_3368(self): + self.assertRaises(idna.IDNAError, idna.decode, '̼ߛ⁷𝟹。𝟬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̼ߛ⁷𝟹。𝟬', strict=True) + + def test_uts46_3369(self): + self.assertRaises(idna.IDNAError, idna.decode, '̼ߛ73。0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̼ߛ73。0', strict=True) + + def test_uts46_3370(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--73-9yb648b.a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--73-9yb648b.a', strict=True) + + def test_uts46_3371(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d.𝟗', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d.𝟗', strict=True) + + def test_uts46_3372(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d.j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d.j', strict=True) + + def test_uts46_3373(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d.J', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d.J', strict=True) + + def test_uts46_3374(self): + self.assertRaises(idna.IDNAError, idna.decode, '.j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.j', strict=True) + + def test_uts46_3375(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.j', strict=True) + + def test_uts46_3376(self): + self.assertEqual(idna.decode('j', uts46=True, strict=True), 'j') + self.assertEqual(idna.encode('j', uts46=True, strict=True), b'j') + + def test_uts46_3377(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݹᡭ𪕈。ڶࣙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݹᡭ𪕈。ڶࣙ', strict=True) + + def test_uts46_3378(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9pb497fs270c.xn--pkb80i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9pb497fs270c.xn--pkb80i', strict=True) + + def test_uts46_3379(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܦ5ߢ겙。᳴\U00010dda', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܦ5ߢ겙。᳴\U00010dda', strict=True) + + def test_uts46_3380(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܦ5ߢ겙。᳴\U00010dda', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܦ5ߢ겙。᳴\U00010dda', strict=True) + + def test_uts46_3381(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܦ5ߢ겙。᳴\U00010dda', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܦ5ߢ겙。᳴\U00010dda', strict=True) + + def test_uts46_3382(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܦ5ߢ겙。᳴\U00010dda', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܦ5ߢ겙。᳴\U00010dda', strict=True) + + def test_uts46_3383(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5-j1c97c2483c.xn--e7f2093h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5-j1c97c2483c.xn--e7f2093h', strict=True) + + def test_uts46_3384(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴍ\U0003f8cdꡨ֮。Ⴞ\u200c\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴍ\U0003f8cdꡨ֮。Ⴞ\u200c\u200c', strict=True) + + def test_uts46_3385(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴍ\U0003f8cdꡨ֮。ⴞ\u200c\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴍ\U0003f8cdꡨ֮。ⴞ\u200c\u200c', strict=True) + + def test_uts46_3386(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5cb172r175fug38a.xn--mlj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5cb172r175fug38a.xn--mlj', strict=True) + + def test_uts46_3387(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5cb172r175fug38a.xn--0uga051h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5cb172r175fug38a.xn--0uga051h', strict=True) + + def test_uts46_3388(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5cb347co96jug15a.xn--2nd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5cb347co96jug15a.xn--2nd', strict=True) + + def test_uts46_3389(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5cb347co96jug15a.xn--2nd059ea', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5cb347co96jug15a.xn--2nd059ea', strict=True) + + def test_uts46_3390(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋰。\U000d14f1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋰。\U000d14f1', strict=True) + + def test_uts46_3391(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--k97c.xn--q031e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--k97c.xn--q031e', strict=True) + + def test_uts46_3392(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e13a6឴୍.𐹾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e13a6឴୍.𐹾', strict=True) + + def test_uts46_3393(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ic59305p.xn--2o0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ic59305p.xn--2o0d', strict=True) + + def test_uts46_3394(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ic364dho91z.xn--2o0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ic364dho91z.xn--2o0d', strict=True) + + def test_uts46_3395(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣟႫ\U00036ff8귤.\U000a017c𝟢휪ૣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣟႫ\U00036ff8귤.\U000a017c𝟢휪ૣ', strict=True) + + def test_uts46_3396(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣟႫ\U00036ff8귤.\U000a017c𝟢휪ૣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣟႫ\U00036ff8귤.\U000a017c𝟢휪ૣ', strict=True) + + def test_uts46_3397(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣟႫ\U00036ff8귤.\U000a017c0휪ૣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣟႫ\U00036ff8귤.\U000a017c0휪ૣ', strict=True) + + def test_uts46_3398(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣟႫ\U00036ff8귤.\U000a017c0휪ૣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣟႫ\U00036ff8귤.\U000a017c0휪ૣ', strict=True) + + def test_uts46_3399(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣟⴋ\U00036ff8귤.\U000a017c0휪ૣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣟⴋ\U00036ff8귤.\U000a017c0휪ૣ', strict=True) + + def test_uts46_3400(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣟⴋ\U00036ff8귤.\U000a017c0휪ૣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣟⴋ\U00036ff8귤.\U000a017c0휪ૣ', strict=True) + + def test_uts46_3401(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--i0b436pkl2g2h42a.xn--0-8le8997mulr5f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--i0b436pkl2g2h42a.xn--0-8le8997mulr5f', strict=True) + + def test_uts46_3402(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣟⴋ\U00036ff8귤.\U000a017c𝟢휪ૣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣟⴋ\U00036ff8귤.\U000a017c𝟢휪ૣ', strict=True) + + def test_uts46_3403(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣟⴋ\U00036ff8귤.\U000a017c𝟢휪ૣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣟⴋ\U00036ff8귤.\U000a017c𝟢휪ૣ', strict=True) + + def test_uts46_3404(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--i0b601b6r7l2hs0a.xn--0-8le8997mulr5f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--i0b601b6r7l2hs0a.xn--0-8le8997mulr5f', strict=True) + + def test_uts46_3405(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ބ.𞡝\u0601', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ބ.𞡝\u0601', strict=True) + + def test_uts46_3406(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ބ.𞡝\u0601', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ބ.𞡝\u0601', strict=True) + + def test_uts46_3407(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lqb.xn--jfb1808v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lqb.xn--jfb1808v', strict=True) + + def test_uts46_3408(self): + self.assertRaises(idna.IDNAError, idna.decode, '્₃.8꣄\u200d🃤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્₃.8꣄\u200d🃤', strict=True) + + def test_uts46_3409(self): + self.assertRaises(idna.IDNAError, idna.decode, '્3.8꣄\u200d🃤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્3.8꣄\u200d🃤', strict=True) + + def test_uts46_3410(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-yke.xn--8-sl4et308f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-yke.xn--8-sl4et308f', strict=True) + + def test_uts46_3411(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-yke.xn--8-ugnv982dbkwm', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-yke.xn--8-ugnv982dbkwm', strict=True) + + def test_uts46_3412(self): + self.assertRaises(idna.IDNAError, idna.decode, '℻⩷𝆆。𞤠󠆁᠌', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '℻⩷𝆆。𞤠󠆁᠌', strict=True) + + def test_uts46_3413(self): + self.assertRaises(idna.IDNAError, idna.decode, 'FAX⩷𝆆。𞤠󠆁᠌', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'FAX⩷𝆆。𞤠󠆁᠌', strict=True) + + def test_uts46_3414(self): + self.assertRaises(idna.IDNAError, idna.decode, 'fax⩷𝆆。𞥂󠆁᠌', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'fax⩷𝆆。𞥂󠆁᠌', strict=True) + + def test_uts46_3415(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Fax⩷𝆆。𞤠󠆁᠌', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Fax⩷𝆆。𞤠󠆁᠌', strict=True) + + def test_uts46_3416(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fax-4c9a1676t.xn--6e6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fax-4c9a1676t.xn--6e6h', strict=True) + + def test_uts46_3417(self): + self.assertRaises(idna.IDNAError, idna.decode, '℻⩷𝆆。𞥂󠆁᠌', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '℻⩷𝆆。𞥂󠆁᠌', strict=True) + + def test_uts46_3418(self): + self.assertRaises(idna.IDNAError, idna.decode, 'FAX⩷𝆆。𞥂󠆁᠌', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'FAX⩷𝆆。𞥂󠆁᠌', strict=True) + + def test_uts46_3419(self): + self.assertRaises(idna.IDNAError, idna.decode, 'fax⩷𝆆。𞤠󠆁᠌', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'fax⩷𝆆。𞤠󠆁᠌', strict=True) + + def test_uts46_3420(self): + self.assertRaises(idna.IDNAError, idna.decode, 'fax⩷𝆆.𞥂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'fax⩷𝆆.𞥂', strict=True) + + def test_uts46_3421(self): + self.assertRaises(idna.IDNAError, idna.decode, 'FAX⩷𝆆.𞤠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'FAX⩷𝆆.𞤠', strict=True) + + def test_uts46_3422(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Fax⩷𝆆.𞤠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Fax⩷𝆆.𞤠', strict=True) + + def test_uts46_3423(self): + self.assertRaises(idna.IDNAError, idna.decode, 'FAX⩷𝆆.𞥂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'FAX⩷𝆆.𞥂', strict=True) + + def test_uts46_3424(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Fax⩷𝆆.𞥂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Fax⩷𝆆.𞥂', strict=True) + + def test_uts46_3425(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡕ≠ၞ\U000eeff1。\U00010d67󠄫ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡕ≠ၞ\U000eeff1。\U00010d67󠄫ᅠ', strict=True) + + def test_uts46_3426(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡕ≠ၞ\U000eeff1。\U00010d67󠄫ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡕ≠ၞ\U000eeff1。\U00010d67󠄫ᅠ', strict=True) + + def test_uts46_3427(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡕ≠ၞ\U000eeff1。\U00010d67󠄫ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡕ≠ၞ\U000eeff1。\U00010d67󠄫ᅠ', strict=True) + + def test_uts46_3428(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡕ≠ၞ\U000eeff1。\U00010d67󠄫ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡕ≠ၞ\U000eeff1。\U00010d67󠄫ᅠ', strict=True) + + def test_uts46_3429(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cld333gn31h0158l.xn--3g0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cld333gn31h0158l.xn--3g0d', strict=True) + + def test_uts46_3430(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cld333gn31h0158l.xn--psd1510k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cld333gn31h0158l.xn--psd1510k', strict=True) + + def test_uts46_3431(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cld333gn31h0158l.xn--cl7c96v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cld333gn31h0158l.xn--cl7c96v', strict=True) + + def test_uts46_3432(self): + self.assertRaises(idna.IDNAError, idna.decode, '鱊。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '鱊。\u200c', strict=True) + + def test_uts46_3435(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rt6a.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rt6a.xn--0ug', strict=True) + + def test_uts46_3436(self): + self.assertRaises(idna.IDNAError, idna.decode, '8𐹣.𑍨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8𐹣.𑍨', strict=True) + + def test_uts46_3437(self): + self.assertRaises(idna.IDNAError, idna.decode, '8𐹣.𑍨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8𐹣.𑍨', strict=True) + + def test_uts46_3438(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-d26i.xn--0p1d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-d26i.xn--0p1d', strict=True) + + def test_uts46_3439(self): + self.assertRaises(idna.IDNAError, idna.decode, '⏹𐧀.𐫯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⏹𐧀.𐫯', strict=True) + + def test_uts46_3440(self): + self.assertRaises(idna.IDNAError, idna.decode, '⏹𐧀.𐫯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⏹𐧀.𐫯', strict=True) + + def test_uts46_3441(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qoh9161g.xn--1x9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qoh9161g.xn--1x9c', strict=True) + + def test_uts46_3442(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤺ߌ4.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤺ߌ4.\u200d', strict=True) + + def test_uts46_3443(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤺ߌ4.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤺ߌ4.\u200d', strict=True) + + def test_uts46_3444(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤘ߌ4.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤘ߌ4.\u200d', strict=True) + + def test_uts46_3447(self): + self.assertEqual(idna.decode('𞤘ߌ4.', uts46=True, strict=True), '𞤺ߌ4.') + self.assertRaises(idna.IDNAError, idna.encode, '𞤘ߌ4.', strict=True) + + def test_uts46_3448(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-0bd15808a.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-0bd15808a.xn--1ug', strict=True) + + def test_uts46_3449(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤘ߌ4.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤘ߌ4.\u200d', strict=True) + + def test_uts46_3450(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒗ঁ⃯-.\u08e2•', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒗ঁ⃯-.\u08e2•', strict=True) + + def test_uts46_3451(self): + self.assertRaises(idna.IDNAError, idna.decode, '16.ঁ⃯-.\u08e2•', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '16.ঁ⃯-.\u08e2•', strict=True) + + def test_uts46_3452(self): + self.assertRaises(idna.IDNAError, idna.decode, '16.xn----z0d801p.xn--l0b810j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '16.xn----z0d801p.xn--l0b810j', strict=True) + + def test_uts46_3453(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----z0d801p6kd.xn--l0b810j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----z0d801p6kd.xn--l0b810j', strict=True) + + def test_uts46_3454(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。䏛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。䏛', strict=True) + + def test_uts46_3455(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。䏛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。䏛', strict=True) + + def test_uts46_3456(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--xco', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--xco', strict=True) + + def test_uts46_3457(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000520e0.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000520e0.\u200d', strict=True) + + def test_uts46_3458(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000520e0.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000520e0.\u200d', strict=True) + + def test_uts46_3459(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dj8y.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dj8y.', strict=True) + + def test_uts46_3460(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugz7551c.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugz7551c.xn--1ug', strict=True) + + def test_uts46_3461(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈⓰\U000e58c7。𐹠\u200d\U00097de6Ⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈⓰\U000e58c7。𐹠\u200d\U00097de6Ⴕ', strict=True) + + def test_uts46_3462(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.⓰\U000e58c7。𐹠\u200d\U00097de6Ⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.⓰\U000e58c7。𐹠\u200d\U00097de6Ⴕ', strict=True) + + def test_uts46_3463(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.⓰\U000e58c7。𐹠\u200d\U00097de6ⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.⓰\U000e58c7。𐹠\u200d\U00097de6ⴕ', strict=True) + + def test_uts46_3464(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--svh00804k.xn--dljv223ee5t2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--svh00804k.xn--dljv223ee5t2d', strict=True) + + def test_uts46_3465(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--svh00804k.xn--1ug352csp0psg45e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--svh00804k.xn--1ug352csp0psg45e', strict=True) + + def test_uts46_3466(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈⓰\U000e58c7。𐹠\u200d\U00097de6ⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈⓰\U000e58c7。𐹠\u200d\U00097de6ⴕ', strict=True) + + def test_uts46_3467(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh0nz9380h.xn--dljv223ee5t2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh0nz9380h.xn--dljv223ee5t2d', strict=True) + + def test_uts46_3468(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh0nz9380h.xn--1ug352csp0psg45e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh0nz9380h.xn--1ug352csp0psg45e', strict=True) + + def test_uts46_3469(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--svh00804k.xn--tnd1990ke579c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--svh00804k.xn--tnd1990ke579c', strict=True) + + def test_uts46_3470(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--svh00804k.xn--tnd969erj4psgl3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--svh00804k.xn--tnd969erj4psgl3e', strict=True) + + def test_uts46_3471(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh0nz9380h.xn--tnd1990ke579c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh0nz9380h.xn--tnd1990ke579c', strict=True) + + def test_uts46_3472(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh0nz9380h.xn--tnd969erj4psgl3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh0nz9380h.xn--tnd969erj4psgl3e', strict=True) + + def test_uts46_3473(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠊ᠮ-ß。᳐効\u0601\U000378ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠊ᠮ-ß。᳐効\u0601\U000378ed', strict=True) + + def test_uts46_3474(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠊ᠮ-ß。᳐効\u0601\U000378ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠊ᠮ-ß。᳐効\u0601\U000378ed', strict=True) + + def test_uts46_3475(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠊ᠮ-SS。᳐効\u0601\U000378ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠊ᠮ-SS。᳐効\u0601\U000378ed', strict=True) + + def test_uts46_3476(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠊ᠮ-ss。᳐効\u0601\U000378ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠊ᠮ-ss。᳐効\u0601\U000378ed', strict=True) + + def test_uts46_3477(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠊ᠮ-Ss。᳐効\u0601\U000378ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠊ᠮ-Ss。᳐効\u0601\U000378ed', strict=True) + + def test_uts46_3478(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---ss-21t18904a.xn--jfb197i791bi6x4c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---ss-21t18904a.xn--jfb197i791bi6x4c', strict=True) + + def test_uts46_3479(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qfa310pg973b.xn--jfb197i791bi6x4c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qfa310pg973b.xn--jfb197i791bi6x4c', strict=True) + + def test_uts46_3480(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠊ᠮ-SS。᳐効\u0601\U000378ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠊ᠮ-SS。᳐効\u0601\U000378ed', strict=True) + + def test_uts46_3481(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠊ᠮ-ss。᳐効\u0601\U000378ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠊ᠮ-ss。᳐効\u0601\U000378ed', strict=True) + + def test_uts46_3482(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠊ᠮ-Ss。᳐効\u0601\U000378ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠊ᠮ-Ss。᳐効\u0601\U000378ed', strict=True) + + def test_uts46_3483(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑇀.\U000e0a31', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑇀.\U000e0a31', strict=True) + + def test_uts46_3484(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wd1d.xn--k946e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wd1d.xn--k946e', strict=True) + + def test_uts46_3485(self): + self.assertRaises(idna.IDNAError, idna.decode, '␒3ﮈ。𝟘𐨿\U00010e46', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '␒3ﮈ。𝟘𐨿\U00010e46', strict=True) + + def test_uts46_3486(self): + self.assertRaises(idna.IDNAError, idna.decode, '␒3ڈ。0𐨿\U00010e46', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '␒3ڈ。0𐨿\U00010e46', strict=True) + + def test_uts46_3487(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-jsc897t.xn--0-sc5iy3h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-jsc897t.xn--0-sc5iy3h', strict=True) + + def test_uts46_3488(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݫ6ઁࢦ。ᷣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݫ6ઁࢦ。ᷣ', strict=True) + + def test_uts46_3489(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݫ6ઁࢦ。ᷣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݫ6ઁࢦ。ᷣ', strict=True) + + def test_uts46_3490(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-h5c06gj6c.xn--7eg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-h5c06gj6c.xn--7eg', strict=True) + + def test_uts46_3491(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0605-\U0003d91eႢ。\U00085936\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0605-\U0003d91eႢ。\U00085936\u200d', strict=True) + + def test_uts46_3492(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0605-\U0003d91eⴂ。\U00085936\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0605-\U0003d91eⴂ。\U00085936\u200d', strict=True) + + def test_uts46_3493(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----0kc8501a5399e.xn--ss06b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----0kc8501a5399e.xn--ss06b', strict=True) + + def test_uts46_3494(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----0kc8501a5399e.xn--1ugy3204f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----0kc8501a5399e.xn--1ugy3204f', strict=True) + + def test_uts46_3495(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----0kc662fc152h.xn--ss06b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----0kc662fc152h.xn--ss06b', strict=True) + + def test_uts46_3496(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----0kc662fc152h.xn--1ugy3204f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----0kc662fc152h.xn--1ugy3204f', strict=True) + + def test_uts46_3497(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾆.ꡈ5≯ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾆.ꡈ5≯ß', strict=True) + + def test_uts46_3498(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾆.ꡈ5≯ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾆.ꡈ5≯ß', strict=True) + + def test_uts46_3499(self): + self.assertRaises(idna.IDNAError, idna.decode, '舌.ꡈ5≯ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舌.ꡈ5≯ß', strict=True) + + def test_uts46_3500(self): + self.assertRaises(idna.IDNAError, idna.decode, '舌.ꡈ5≯ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舌.ꡈ5≯ß', strict=True) + + def test_uts46_3501(self): + self.assertRaises(idna.IDNAError, idna.decode, '舌.ꡈ5≯SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舌.ꡈ5≯SS', strict=True) + + def test_uts46_3502(self): + self.assertRaises(idna.IDNAError, idna.decode, '舌.ꡈ5≯SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舌.ꡈ5≯SS', strict=True) + + def test_uts46_3503(self): + self.assertRaises(idna.IDNAError, idna.decode, '舌.ꡈ5≯ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舌.ꡈ5≯ss', strict=True) + + def test_uts46_3504(self): + self.assertRaises(idna.IDNAError, idna.decode, '舌.ꡈ5≯ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舌.ꡈ5≯ss', strict=True) + + def test_uts46_3505(self): + self.assertRaises(idna.IDNAError, idna.decode, '舌.ꡈ5≯Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舌.ꡈ5≯Ss', strict=True) + + def test_uts46_3506(self): + self.assertRaises(idna.IDNAError, idna.decode, '舌.ꡈ5≯Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舌.ꡈ5≯Ss', strict=True) + + def test_uts46_3507(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tc1a.xn--5ss-3m2a5009e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tc1a.xn--5ss-3m2a5009e', strict=True) + + def test_uts46_3508(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tc1a.xn--5-qfa988w745i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tc1a.xn--5-qfa988w745i', strict=True) + + def test_uts46_3509(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾆.ꡈ5≯SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾆.ꡈ5≯SS', strict=True) + + def test_uts46_3510(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾆.ꡈ5≯SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾆.ꡈ5≯SS', strict=True) + + def test_uts46_3511(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾆.ꡈ5≯ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾆.ꡈ5≯ss', strict=True) + + def test_uts46_3512(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾆.ꡈ5≯ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾆.ꡈ5≯ss', strict=True) + + def test_uts46_3513(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾆.ꡈ5≯Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾆.ꡈ5≯Ss', strict=True) + + def test_uts46_3514(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾆.ꡈ5≯Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾆.ꡈ5≯Ss', strict=True) + + def test_uts46_3515(self): + self.assertRaises(idna.IDNAError, idna.decode, '્8\u200d.\U000be088ݜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્8\u200d.\U000be088ݜ', strict=True) + + def test_uts46_3516(self): + self.assertRaises(idna.IDNAError, idna.decode, '્8\u200d.\U000be088ݜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '્8\u200d.\U000be088ݜ', strict=True) + + def test_uts46_3517(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-yke.xn--gpb79046m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-yke.xn--gpb79046m', strict=True) + + def test_uts46_3518(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-yke534n.xn--gpb79046m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-yke534n.xn--gpb79046m', strict=True) + + def test_uts46_3519(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000b8dc6ੰ≮\U000b94d9.\U0005e3a7⁷\U000e0bd9ڶ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000b8dc6ੰ≮\U000b94d9.\U0005e3a7⁷\U000e0bd9ڶ', strict=True) + + def test_uts46_3520(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000b8dc6ੰ≮\U000b94d9.\U0005e3a7⁷\U000e0bd9ڶ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000b8dc6ੰ≮\U000b94d9.\U0005e3a7⁷\U000e0bd9ڶ', strict=True) + + def test_uts46_3521(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000b8dc6ੰ≮\U000b94d9.\U0005e3a77\U000e0bd9ڶ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000b8dc6ੰ≮\U000b94d9.\U0005e3a77\U000e0bd9ڶ', strict=True) + + def test_uts46_3522(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000b8dc6ੰ≮\U000b94d9.\U0005e3a77\U000e0bd9ڶ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000b8dc6ੰ≮\U000b94d9.\U0005e3a77\U000e0bd9ڶ', strict=True) + + def test_uts46_3523(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ycc893jqh38rb6fa.xn--7-5uc53836ixt41c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ycc893jqh38rb6fa.xn--7-5uc53836ixt41c', strict=True) + + def test_uts46_3524(self): + self.assertEqual(idna.decode('𞤪.ς', uts46=True, strict=True), '𞤪.ς') + self.assertEqual(idna.encode('𞤪.ς', uts46=True, strict=True), b'xn--ie6h.xn--3xa') + + def test_uts46_3525(self): + self.assertEqual(idna.decode('𞤈.Σ', uts46=True, strict=True), '𞤪.σ') + self.assertEqual(idna.encode('𞤈.Σ', uts46=True, strict=True), b'xn--ie6h.xn--4xa') + + def test_uts46_3526(self): + self.assertEqual(idna.decode('𞤪.σ', uts46=True, strict=True), '𞤪.σ') + self.assertEqual(idna.encode('𞤪.σ', uts46=True, strict=True), b'xn--ie6h.xn--4xa') + + def test_uts46_3527(self): + self.assertEqual(idna.decode('𞤈.σ', uts46=True, strict=True), '𞤪.σ') + self.assertEqual(idna.encode('𞤈.σ', uts46=True, strict=True), b'xn--ie6h.xn--4xa') + + def test_uts46_3528(self): + self.assertEqual(idna.decode('xn--ie6h.xn--4xa', uts46=True, strict=True), '𞤪.σ') + self.assertEqual(idna.encode('xn--ie6h.xn--4xa', uts46=True, strict=True), b'xn--ie6h.xn--4xa') + + def test_uts46_3529(self): + self.assertEqual(idna.decode('𞤈.ς', uts46=True, strict=True), '𞤪.ς') + self.assertEqual(idna.encode('𞤈.ς', uts46=True, strict=True), b'xn--ie6h.xn--3xa') + + def test_uts46_3530(self): + self.assertEqual(idna.decode('xn--ie6h.xn--3xa', uts46=True, strict=True), '𞤪.ς') + self.assertEqual(idna.encode('xn--ie6h.xn--3xa', uts46=True, strict=True), b'xn--ie6h.xn--3xa') + + def test_uts46_3531(self): + self.assertEqual(idna.decode('𞤪.Σ', uts46=True, strict=True), '𞤪.σ') + self.assertEqual(idna.encode('𞤪.Σ', uts46=True, strict=True), b'xn--ie6h.xn--4xa') + + def test_uts46_3532(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cႺ。ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cႺ。ς', strict=True) + + def test_uts46_3533(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cႺ。ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cႺ。ς', strict=True) + + def test_uts46_3534(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴚ。ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴚ。ς', strict=True) + + def test_uts46_3535(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cႺ。Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cႺ。Σ', strict=True) + + def test_uts46_3536(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴚ。σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴚ。σ', strict=True) + + def test_uts46_3537(self): + self.assertEqual(idna.decode('xn--ilj.xn--4xa', uts46=True, strict=True), 'ⴚ.σ') + self.assertEqual(idna.encode('xn--ilj.xn--4xa', uts46=True, strict=True), b'xn--ilj.xn--4xa') + + def test_uts46_3538(self): + self.assertEqual(idna.decode('ⴚ.σ', uts46=True, strict=True), 'ⴚ.σ') + self.assertEqual(idna.encode('ⴚ.σ', uts46=True, strict=True), b'xn--ilj.xn--4xa') + + def test_uts46_3539(self): + self.assertEqual(idna.decode('Ⴚ.Σ', uts46=True, strict=True), 'ⴚ.σ') + self.assertEqual(idna.encode('Ⴚ.Σ', uts46=True, strict=True), b'xn--ilj.xn--4xa') + + def test_uts46_3540(self): + self.assertEqual(idna.decode('ⴚ.ς', uts46=True, strict=True), 'ⴚ.ς') + self.assertEqual(idna.encode('ⴚ.ς', uts46=True, strict=True), b'xn--ilj.xn--3xa') + + def test_uts46_3541(self): + self.assertEqual(idna.decode('Ⴚ.ς', uts46=True, strict=True), 'ⴚ.ς') + self.assertEqual(idna.encode('Ⴚ.ς', uts46=True, strict=True), b'xn--ilj.xn--3xa') + + def test_uts46_3542(self): + self.assertEqual(idna.decode('xn--ilj.xn--3xa', uts46=True, strict=True), 'ⴚ.ς') + self.assertEqual(idna.encode('xn--ilj.xn--3xa', uts46=True, strict=True), b'xn--ilj.xn--3xa') + + def test_uts46_3543(self): + self.assertEqual(idna.decode('Ⴚ.σ', uts46=True, strict=True), 'ⴚ.σ') + self.assertEqual(idna.encode('Ⴚ.σ', uts46=True, strict=True), b'xn--ilj.xn--4xa') + + def test_uts46_3544(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug262c.xn--4xa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug262c.xn--4xa', strict=True) + + def test_uts46_3545(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug262c.xn--3xa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug262c.xn--3xa', strict=True) + + def test_uts46_3546(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴚ。ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴚ。ς', strict=True) + + def test_uts46_3547(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cႺ。Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cႺ。Σ', strict=True) + + def test_uts46_3548(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴚ。σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴚ。σ', strict=True) + + def test_uts46_3549(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ynd.xn--4xa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ynd.xn--4xa', strict=True) + + def test_uts46_3550(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ynd.xn--3xa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ynd.xn--3xa', strict=True) + + def test_uts46_3551(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ynd759e.xn--4xa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ynd759e.xn--4xa', strict=True) + + def test_uts46_3552(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ynd759e.xn--3xa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ynd759e.xn--3xa', strict=True) + + def test_uts46_3553(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤃.𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤃.𐹦', strict=True) + + def test_uts46_3554(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤃.𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤃.𐹦', strict=True) + + def test_uts46_3555(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤥.𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤥.𐹦', strict=True) + + def test_uts46_3556(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--de6h.xn--eo0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--de6h.xn--eo0d', strict=True) + + def test_uts46_3557(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤥.𐹦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤥.𐹦', strict=True) + + def test_uts46_3558(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d⾕。\u200c꥓̐ꡎ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d⾕。\u200c꥓̐ꡎ', strict=True) + + def test_uts46_3559(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d⾕。\u200c꥓̐ꡎ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d⾕。\u200c꥓̐ꡎ', strict=True) + + def test_uts46_3560(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d谷。\u200c꥓̐ꡎ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d谷。\u200c꥓̐ꡎ', strict=True) + + def test_uts46_3561(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6g3a.xn--0sa8175flwa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6g3a.xn--0sa8175flwa', strict=True) + + def test_uts46_3562(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug0273b.xn--0sa359l6n7g13a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug0273b.xn--0sa359l6n7g13a', strict=True) + + def test_uts46_3563(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڪ-뉔.𞤐\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڪ-뉔.𞤐\u200c', strict=True) + + def test_uts46_3564(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڪ-뉔.𞤐\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڪ-뉔.𞤐\u200c', strict=True) + + def test_uts46_3565(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڪ-뉔.𞤐\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڪ-뉔.𞤐\u200c', strict=True) + + def test_uts46_3566(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڪ-뉔.𞤐\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڪ-뉔.𞤐\u200c', strict=True) + + def test_uts46_3567(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڪ-뉔.𞤲\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڪ-뉔.𞤲\u200c', strict=True) + + def test_uts46_3568(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڪ-뉔.𞤲\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڪ-뉔.𞤲\u200c', strict=True) + + def test_uts46_3569(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----guc3592k.xn--qe6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----guc3592k.xn--qe6h', strict=True) + + def test_uts46_3570(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----guc3592k.xn--0ug7611p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----guc3592k.xn--0ug7611p', strict=True) + + def test_uts46_3571(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڪ-뉔.𞤲\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڪ-뉔.𞤲\u200c', strict=True) + + def test_uts46_3572(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڪ-뉔.𞤲\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڪ-뉔.𞤲\u200c', strict=True) + + def test_uts46_3573(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00054cb55ᦛς.꣄ݻܸ᳒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00054cb55ᦛς.꣄ݻܸ᳒', strict=True) + + def test_uts46_3574(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00054cb55ᦛς.꣄ݻܸ᳒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00054cb55ᦛς.꣄ݻܸ᳒', strict=True) + + def test_uts46_3575(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00054cb55ᦛς.꣄ݻܸ᳒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00054cb55ᦛς.꣄ݻܸ᳒', strict=True) + + def test_uts46_3576(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00054cb55ᦛΣ.꣄ݻܸ᳒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00054cb55ᦛΣ.꣄ݻܸ᳒', strict=True) + + def test_uts46_3577(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00054cb55ᦛσ.꣄ݻܸ᳒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00054cb55ᦛσ.꣄ݻܸ᳒', strict=True) + + def test_uts46_3578(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5-0mb988ng603j.xn--fob7kk44dl41k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5-0mb988ng603j.xn--fob7kk44dl41k', strict=True) + + def test_uts46_3579(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5-ymb298ng603j.xn--fob7kk44dl41k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5-ymb298ng603j.xn--fob7kk44dl41k', strict=True) + + def test_uts46_3580(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00054cb55ᦛΣ.꣄ݻܸ᳒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00054cb55ᦛΣ.꣄ݻܸ᳒', strict=True) + + def test_uts46_3581(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00054cb55ᦛσ.꣄ݻܸ᳒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00054cb55ᦛσ.꣄ݻܸ᳒', strict=True) + + def test_uts46_3582(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00054cb55ᦛΣ.꣄ݻܸ᳒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00054cb55ᦛΣ.꣄ݻܸ᳒', strict=True) + + def test_uts46_3583(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00054cb55ᦛσ.꣄ݻܸ᳒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00054cb55ᦛσ.꣄ݻܸ᳒', strict=True) + + def test_uts46_3584(self): + self.assertEqual(idna.decode('淽。ᠾ', uts46=True, strict=True), '淽.ᠾ') + self.assertEqual(idna.encode('淽。ᠾ', uts46=True, strict=True), b'xn--34w.xn--x7e') + + def test_uts46_3585(self): + self.assertEqual(idna.decode('xn--34w.xn--x7e', uts46=True, strict=True), '淽.ᠾ') + self.assertEqual(idna.encode('xn--34w.xn--x7e', uts46=True, strict=True), b'xn--34w.xn--x7e') + + def test_uts46_3586(self): + self.assertEqual(idna.decode('淽.ᠾ', uts46=True, strict=True), '淽.ᠾ') + self.assertEqual(idna.encode('淽.ᠾ', uts46=True, strict=True), b'xn--34w.xn--x7e') + + def test_uts46_3587(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹴𑘷。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹴𑘷。-', strict=True) + + def test_uts46_3588(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--so0do6k.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--so0do6k.-', strict=True) + + def test_uts46_3589(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000aca29Ⴓ❓。𑄨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000aca29Ⴓ❓。𑄨', strict=True) + + def test_uts46_3590(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000aca29Ⴓ❓。𑄨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000aca29Ⴓ❓。𑄨', strict=True) + + def test_uts46_3591(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000aca29ⴓ❓。𑄨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000aca29ⴓ❓。𑄨', strict=True) + + def test_uts46_3592(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8di78qvw32y.xn--k80d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8di78qvw32y.xn--k80d', strict=True) + + def test_uts46_3593(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000aca29ⴓ❓。𑄨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000aca29ⴓ❓。𑄨', strict=True) + + def test_uts46_3594(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rnd896i0j14q.xn--k80d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rnd896i0j14q.xn--k80d', strict=True) + + def test_uts46_3595(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌Ⴇ。ßႣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌Ⴇ。ßႣ', strict=True) + + def test_uts46_3596(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌Ⴇ。ßႣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌Ⴇ。ßႣ', strict=True) + + def test_uts46_3597(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤮ⴇ。ßⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤮ⴇ。ßⴃ', strict=True) + + def test_uts46_3598(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌Ⴇ。SSႣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌Ⴇ。SSႣ', strict=True) + + def test_uts46_3599(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤮ⴇ。ssⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤮ⴇ。ssⴃ', strict=True) + + def test_uts46_3600(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌ⴇ。Ssⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌ⴇ。Ssⴃ', strict=True) + + def test_uts46_3601(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ykj9323eegwf.xn--ss-151a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ykj9323eegwf.xn--ss-151a', strict=True) + + def test_uts46_3602(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug332c3q0pr56g.xn--ss-151a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug332c3q0pr56g.xn--ss-151a', strict=True) + + def test_uts46_3603(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug332c3q0pr56g.xn--zca417t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug332c3q0pr56g.xn--zca417t', strict=True) + + def test_uts46_3604(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤮ⴇ。ßⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤮ⴇ。ßⴃ', strict=True) + + def test_uts46_3605(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌Ⴇ。SSႣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌Ⴇ。SSႣ', strict=True) + + def test_uts46_3606(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤮ⴇ。ssⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤮ⴇ。ssⴃ', strict=True) + + def test_uts46_3607(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌ⴇ。Ssⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌ⴇ。Ssⴃ', strict=True) + + def test_uts46_3608(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fnd1201kegrf.xn--ss-fek', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fnd1201kegrf.xn--ss-fek', strict=True) + + def test_uts46_3609(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fnd599eyj4pr50g.xn--ss-fek', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fnd599eyj4pr50g.xn--ss-fek', strict=True) + + def test_uts46_3610(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fnd599eyj4pr50g.xn--zca681f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fnd599eyj4pr50g.xn--zca681f', strict=True) + + def test_uts46_3611(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌ⴇ。ßⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌ⴇ。ßⴃ', strict=True) + + def test_uts46_3612(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌ⴇ。ssⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌ⴇ。ssⴃ', strict=True) + + def test_uts46_3613(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌Ⴇ。Ssⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌Ⴇ。Ssⴃ', strict=True) + + def test_uts46_3614(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fnd1201kegrf.xn--ss-151a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fnd1201kegrf.xn--ss-151a', strict=True) + + def test_uts46_3615(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fnd599eyj4pr50g.xn--ss-151a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fnd599eyj4pr50g.xn--ss-151a', strict=True) + + def test_uts46_3616(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌ⴇ。ßⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌ⴇ。ßⴃ', strict=True) + + def test_uts46_3617(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌ⴇ。ssⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌ⴇ。ssⴃ', strict=True) + + def test_uts46_3618(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐹡𞤌Ⴇ。Ssⴃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐹡𞤌Ⴇ。Ssⴃ', strict=True) + + def test_uts46_3619(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u17ff。\U0001eb33', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u17ff。\U0001eb33', strict=True) + + def test_uts46_3620(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u17ff。\U0001eb33', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u17ff。\U0001eb33', strict=True) + + def test_uts46_3621(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--45e.xn--et6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--45e.xn--et6h', strict=True) + + def test_uts46_3622(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ْ\u200d。್𑚳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ْ\u200d。್𑚳', strict=True) + + def test_uts46_3623(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ْ\u200d。್𑚳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ْ\u200d。್𑚳', strict=True) + + def test_uts46_3624(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uhb.xn--8tc4527k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uhb.xn--8tc4527k', strict=True) + + def test_uts46_3625(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uhb882k.xn--8tc4527k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uhb882k.xn--8tc4527k', strict=True) + + def test_uts46_3626(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠ᠻ.ݭ𞥃≮\U000dfdfa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠ᠻ.ݭ𞥃≮\U000dfdfa', strict=True) + + def test_uts46_3627(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠ᠻ.ݭ𞥃≮\U000dfdfa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠ᠻ.ݭ𞥃≮\U000dfdfa', strict=True) + + def test_uts46_3628(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠ᠻ.ݭ𞥃≮\U000dfdfa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠ᠻ.ݭ𞥃≮\U000dfdfa', strict=True) + + def test_uts46_3629(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠ᠻ.ݭ𞥃≮\U000dfdfa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠ᠻ.ݭ𞥃≮\U000dfdfa', strict=True) + + def test_uts46_3630(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠ᠻ.ݭ𞤡≮\U000dfdfa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠ᠻ.ݭ𞤡≮\U000dfdfa', strict=True) + + def test_uts46_3631(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠ᠻ.ݭ𞤡≮\U000dfdfa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠ᠻ.ݭ𞤡≮\U000dfdfa', strict=True) + + def test_uts46_3632(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----g6j886c.xn--xpb049kk353abj99f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----g6j886c.xn--xpb049kk353abj99f', strict=True) + + def test_uts46_3633(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠ᠻ.ݭ𞤡≮\U000dfdfa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠ᠻ.ݭ𞤡≮\U000dfdfa', strict=True) + + def test_uts46_3634(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠ᠻ.ݭ𞤡≮\U000dfdfa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠ᠻ.ݭ𞤡≮\U000dfdfa', strict=True) + + def test_uts46_3635(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0c06≯\u07b5\U00010eea.\U0008a955≮𑁆ࡌ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0c06≯\u07b5\U00010eea.\U0008a955≮𑁆ࡌ', strict=True) + + def test_uts46_3636(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0c06≯\u07b5\U00010eea.\U0008a955≮𑁆ࡌ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0c06≯\u07b5\U00010eea.\U0008a955≮𑁆ࡌ', strict=True) + + def test_uts46_3637(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0c06≯\u07b5\U00010eea.\U0008a955≮𑁆ࡌ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0c06≯\u07b5\U00010eea.\U0008a955≮𑁆ࡌ', strict=True) + + def test_uts46_3638(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0c06≯\u07b5\U00010eea.\U0008a955≮𑁆ࡌ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0c06≯\u07b5\U00010eea.\U0008a955≮𑁆ࡌ', strict=True) + + def test_uts46_3639(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zrb797kdm1oes34i.xn--bwb394k8k2o25n6d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zrb797kdm1oes34i.xn--bwb394k8k2o25n6d', strict=True) + + def test_uts46_3640(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠\U000e62c2.\u0600்-ڹ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠\U000e62c2.\u0600்-ڹ', strict=True) + + def test_uts46_3641(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠\U000e62c2.\u0600்-ڹ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠\U000e62c2.\u0600்-ڹ', strict=True) + + def test_uts46_3642(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch22084l.xn----qkc07co6n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch22084l.xn----qkc07co6n', strict=True) + + def test_uts46_3643(self): + self.assertRaises(idna.IDNAError, idna.decode, '៝\U000e0063≠。𐹼𐋤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '៝\U000e0063≠。𐹼𐋤', strict=True) + + def test_uts46_3644(self): + self.assertRaises(idna.IDNAError, idna.decode, '៝\U000e0063≠。𐹼𐋤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '៝\U000e0063≠。𐹼𐋤', strict=True) + + def test_uts46_3645(self): + self.assertRaises(idna.IDNAError, idna.decode, '៝\U000e0063≠。𐹼𐋤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '៝\U000e0063≠。𐹼𐋤', strict=True) + + def test_uts46_3646(self): + self.assertRaises(idna.IDNAError, idna.decode, '៝\U000e0063≠。𐹼𐋤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '៝\U000e0063≠。𐹼𐋤', strict=True) + + def test_uts46_3647(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--54e694cn389z.xn--787ct8r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--54e694cn389z.xn--787ct8r', strict=True) + + def test_uts46_3648(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß𰀻\U00046b17。𝩨🕮ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß𰀻\U00046b17。𝩨🕮ß', strict=True) + + def test_uts46_3649(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß𰀻\U00046b17。𝩨🕮ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß𰀻\U00046b17。𝩨🕮ß', strict=True) + + def test_uts46_3650(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS𰀻\U00046b17。𝩨🕮SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS𰀻\U00046b17。𝩨🕮SS', strict=True) + + def test_uts46_3651(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss𰀻\U00046b17。𝩨🕮ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss𰀻\U00046b17。𝩨🕮ss', strict=True) + + def test_uts46_3652(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss𰀻\U00046b17。𝩨🕮Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss𰀻\U00046b17。𝩨🕮Ss', strict=True) + + def test_uts46_3653(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-jl59biy67d.xn--ss-4d11aw87d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-jl59biy67d.xn--ss-4d11aw87d', strict=True) + + def test_uts46_3654(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca20040bgrkh.xn--zca3653v86qa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca20040bgrkh.xn--zca3653v86qa', strict=True) + + def test_uts46_3655(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS𰀻\U00046b17。𝩨🕮SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS𰀻\U00046b17。𝩨🕮SS', strict=True) + + def test_uts46_3656(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss𰀻\U00046b17。𝩨🕮ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss𰀻\U00046b17。𝩨🕮ss', strict=True) + + def test_uts46_3657(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss𰀻\U00046b17。𝩨🕮Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss𰀻\U00046b17。𝩨🕮Ss', strict=True) + + def test_uts46_3658(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。\u200c', strict=True) + + def test_uts46_3659(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--0ug', strict=True) + + def test_uts46_3660(self): + self.assertRaises(idna.IDNAError, idna.decode, '҃𐭞\u200d.ឹ\U0001ebcc\U0009fa5a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '҃𐭞\u200d.ឹ\U0001ebcc\U0009fa5a', strict=True) + + def test_uts46_3661(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--m3a6965k.xn--43e8670vmd79b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--m3a6965k.xn--43e8670vmd79b', strict=True) + + def test_uts46_3662(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--m3a412lrr0o.xn--43e8670vmd79b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--m3a412lrr0o.xn--43e8670vmd79b', strict=True) + + def test_uts46_3663(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐠨\u200c临。ꡢ\U00084ddeⶏ𐹣', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐠨\u200c临。ꡢ\U00084ddeⶏ𐹣', strict=True) + + def test_uts46_3664(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--miq9646b.xn--uojv340bk71c99u9f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--miq9646b.xn--uojv340bk71c99u9f', strict=True) + + def test_uts46_3665(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0uga2656aop9k.xn--uojv340bk71c99u9f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0uga2656aop9k.xn--uojv340bk71c99u9f', strict=True) + + def test_uts46_3666(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0458.󠄮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0458.󠄮', strict=True) + + def test_uts46_3667(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0458.󠄮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0458.󠄮', strict=True) + + def test_uts46_3668(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--s136e.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--s136e.', strict=True) + + def test_uts46_3669(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫄്.꫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫄്.꫶', strict=True) + + def test_uts46_3670(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫄്.꫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫄്.꫶', strict=True) + + def test_uts46_3671(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wxc7880k.xn--2v9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wxc7880k.xn--2v9a', strict=True) + + def test_uts46_3672(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꦷ\U000ddd59멹。⒛\U000e0a07', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꦷ\U000ddd59멹。⒛\U000e0a07', strict=True) + + def test_uts46_3673(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꦷ\U000ddd59멹。⒛\U000e0a07', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꦷ\U000ddd59멹。⒛\U000e0a07', strict=True) + + def test_uts46_3674(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꦷ\U000ddd59멹。20.\U000e0a07', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꦷ\U000ddd59멹。20.\U000e0a07', strict=True) + + def test_uts46_3675(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꦷ\U000ddd59멹。20.\U000e0a07', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꦷ\U000ddd59멹。20.\U000e0a07', strict=True) + + def test_uts46_3676(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ym9av13acp85w.20.xn--d846e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ym9av13acp85w.20.xn--d846e', strict=True) + + def test_uts46_3677(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ym9av13acp85w.xn--dth22121k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ym9av13acp85w.xn--dth22121k', strict=True) + + def test_uts46_3678(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳⒊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳⒊', strict=True) + + def test_uts46_3679(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳⒊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳⒊', strict=True) + + def test_uts46_3680(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳3.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳3.', strict=True) + + def test_uts46_3681(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳3.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳3.', strict=True) + + def test_uts46_3682(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳3.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳3.', strict=True) + + def test_uts46_3683(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳3.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳3.', strict=True) + + def test_uts46_3684(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wkj8016bne45io02g.xn--3-55c6803r.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wkj8016bne45io02g.xn--3-55c6803r.', strict=True) + + def test_uts46_3685(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳⒊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳⒊', strict=True) + + def test_uts46_3686(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳⒊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴅ\U000f2b39릖\U000e0d9a.ݷ𐹳⒊', strict=True) + + def test_uts46_3687(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wkj8016bne45io02g.xn--7pb000mwm4n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wkj8016bne45io02g.xn--7pb000mwm4n', strict=True) + + def test_uts46_3688(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dnd2167fnet0io02g.xn--3-55c6803r.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dnd2167fnet0io02g.xn--3-55c6803r.', strict=True) + + def test_uts46_3689(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dnd2167fnet0io02g.xn--7pb000mwm4n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dnd2167fnet0io02g.xn--7pb000mwm4n', strict=True) + + def test_uts46_3690(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。︒', strict=True) + + def test_uts46_3691(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c。。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c。。', strict=True) + + def test_uts46_3692(self): + self.assertRaises(idna.IDNAError, idna.decode, '..', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '..', strict=True) + + def test_uts46_3693(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug..', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug..', strict=True) + + def test_uts46_3694(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--y86c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--y86c', strict=True) + + def test_uts46_3695(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--y86c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--y86c', strict=True) + + def test_uts46_3696(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯ݭ.₄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯ݭ.₄', strict=True) + + def test_uts46_3697(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯ݭ.₄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯ݭ.₄', strict=True) + + def test_uts46_3698(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯ݭ.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯ݭ.e', strict=True) + + def test_uts46_3699(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯ݭ.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯ݭ.e', strict=True) + + def test_uts46_3700(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯ݭ.E', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯ݭ.E', strict=True) + + def test_uts46_3701(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯ݭ.E', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯ݭ.E', strict=True) + + def test_uts46_3702(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xpb149k.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xpb149k.e', strict=True) + + def test_uts46_3703(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡲ-𝟹.ß-\u200c-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡲ-𝟹.ß-\u200c-', strict=True) + + def test_uts46_3704(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡲ-3.ß-\u200c-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡲ-3.ß-\u200c-', strict=True) + + def test_uts46_3705(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡲ-3.SS-\u200c-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡲ-3.SS-\u200c-', strict=True) + + def test_uts46_3706(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡲ-3.ss-\u200c-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡲ-3.ss-\u200c-', strict=True) + + def test_uts46_3707(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡲ-3.Ss-\u200c-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡲ-3.Ss-\u200c-', strict=True) + + def test_uts46_3708(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---3-p9o.ss--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---3-p9o.ss--', strict=True) + + def test_uts46_3709(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---3-p9o.xn--ss---276a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---3-p9o.xn--ss---276a', strict=True) + + def test_uts46_3710(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---3-p9o.xn-----fia9303a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---3-p9o.xn-----fia9303a', strict=True) + + def test_uts46_3711(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡲ-𝟹.SS-\u200c-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡲ-𝟹.SS-\u200c-', strict=True) + + def test_uts46_3712(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡲ-𝟹.ss-\u200c-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡲ-𝟹.ss-\u200c-', strict=True) + + def test_uts46_3713(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡲ-𝟹.Ss-\u200c-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡲ-𝟹.Ss-\u200c-', strict=True) + + def test_uts46_3714(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﴈ𝟦ه\U000ce2af。Ӏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﴈ𝟦ه\U000ce2af。Ӏ', strict=True) + + def test_uts46_3715(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ضي4ه\U000ce2af。Ӏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ضي4ه\U000ce2af。Ӏ', strict=True) + + def test_uts46_3716(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ضي4ه\U000ce2af。ӏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ضي4ه\U000ce2af。ӏ', strict=True) + + def test_uts46_3717(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-tnc6ck183523b.xn--s5a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-tnc6ck183523b.xn--s5a', strict=True) + + def test_uts46_3718(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﴈ𝟦ه\U000ce2af。ӏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﴈ𝟦ه\U000ce2af。ӏ', strict=True) + + def test_uts46_3719(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-tnc6ck183523b.xn--d5a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-tnc6ck183523b.xn--d5a', strict=True) + + def test_uts46_3720(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.\u0602آ𑆾🐹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.\u0602آ𑆾🐹', strict=True) + + def test_uts46_3721(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.\u0602آ𑆾🐹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.\u0602آ𑆾🐹', strict=True) + + def test_uts46_3722(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--kfb8dy983hgl7g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--kfb8dy983hgl7g', strict=True) + + def test_uts46_3723(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d9d9cᢘ。᩿⺢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d9d9cᢘ。᩿⺢', strict=True) + + def test_uts46_3724(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ibf35138o.xn--fpfz94g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ibf35138o.xn--fpfz94g', strict=True) + + def test_uts46_3725(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ႷᠤႫ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ႷᠤႫ。?͌س觴', strict=True) + + def test_uts46_3726(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ႷᠤႫ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ႷᠤႫ。?͌س觴', strict=True) + + def test_uts46_3727(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ႷᠤႫ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ႷᠤႫ。?͌س觴', strict=True) + + def test_uts46_3728(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ႷᠤႫ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ႷᠤႫ。?͌س觴', strict=True) + + def test_uts46_3729(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ⴗᠤⴋ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ⴗᠤⴋ。?͌س觴', strict=True) + + def test_uts46_3730(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ⴗᠤⴋ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ⴗᠤⴋ。?͌س觴', strict=True) + + def test_uts46_3731(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠Ⴗᠤⴋ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠Ⴗᠤⴋ。?͌س觴', strict=True) + + def test_uts46_3732(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠Ⴗᠤⴋ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠Ⴗᠤⴋ。?͌س觴', strict=True) + + def test_uts46_3733(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--66e353ce0ilb.xn--?-7fb34t0u7s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--66e353ce0ilb.xn--?-7fb34t0u7s', strict=True) + + def test_uts46_3734(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ⴗᠤⴋ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ⴗᠤⴋ。?͌س觴', strict=True) + + def test_uts46_3735(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠ⴗᠤⴋ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠ⴗᠤⴋ。?͌س觴', strict=True) + + def test_uts46_3736(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠Ⴗᠤⴋ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠Ⴗᠤⴋ。?͌س觴', strict=True) + + def test_uts46_3737(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠Ⴗᠤⴋ。?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠Ⴗᠤⴋ。?͌س觴', strict=True) + + def test_uts46_3738(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vnd619as6ig6k.xn--?-7fb34t0u7s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vnd619as6ig6k.xn--?-7fb34t0u7s', strict=True) + + def test_uts46_3739(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jndx718cnnl.xn--?-7fb34t0u7s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jndx718cnnl.xn--?-7fb34t0u7s', strict=True) + + def test_uts46_3740(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vnd619as6ig6k.?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vnd619as6ig6k.?͌س觴', strict=True) + + def test_uts46_3741(self): + self.assertRaises(idna.IDNAError, idna.decode, 'XN--VND619AS6IG6K.?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'XN--VND619AS6IG6K.?͌س觴', strict=True) + + def test_uts46_3742(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--Vnd619as6ig6k.?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--Vnd619as6ig6k.?͌س觴', strict=True) + + def test_uts46_3743(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--66e353ce0ilb.?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--66e353ce0ilb.?͌س觴', strict=True) + + def test_uts46_3744(self): + self.assertRaises(idna.IDNAError, idna.decode, 'XN--66E353CE0ILB.?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'XN--66E353CE0ILB.?͌س觴', strict=True) + + def test_uts46_3745(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--66e353ce0ilb.?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--66e353ce0ilb.?͌س觴', strict=True) + + def test_uts46_3746(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jndx718cnnl.?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jndx718cnnl.?͌س觴', strict=True) + + def test_uts46_3747(self): + self.assertRaises(idna.IDNAError, idna.decode, 'XN--JNDX718CNNL.?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'XN--JNDX718CNNL.?͌س觴', strict=True) + + def test_uts46_3748(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--Jndx718cnnl.?͌س觴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--Jndx718cnnl.?͌س觴', strict=True) + + def test_uts46_3749(self): + self.assertRaises(idna.IDNAError, idna.decode, '٧.\U00010968', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٧.\U00010968', strict=True) + + def test_uts46_3750(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gib.xn--vm9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gib.xn--vm9c', strict=True) + + def test_uts46_3751(self): + self.assertRaises(idna.IDNAError, idna.decode, '꧀𝟯。\u200d\U0007c465𐹪᯳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꧀𝟯。\u200d\U0007c465𐹪᯳', strict=True) + + def test_uts46_3752(self): + self.assertRaises(idna.IDNAError, idna.decode, '꧀3。\u200d\U0007c465𐹪᯳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꧀3。\u200d\U0007c465𐹪᯳', strict=True) + + def test_uts46_3753(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-5z4e.xn--1zfz754hncv8b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-5z4e.xn--1zfz754hncv8b', strict=True) + + def test_uts46_3754(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-5z4e.xn--1zf96ony8ygd68c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-5z4e.xn--1zf96ony8ygd68c', strict=True) + + def test_uts46_3755(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a35444\U000605bd.≯٤𑀾\U000e0e0c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a35444\U000605bd.≯٤𑀾\U000e0e0c', strict=True) + + def test_uts46_3756(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a35444\U000605bd.≯٤𑀾\U000e0e0c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a35444\U000605bd.≯٤𑀾\U000e0e0c', strict=True) + + def test_uts46_3757(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-fg85dl688i.xn--dib174li86ntdy0i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-fg85dl688i.xn--dib174li86ntdy0i', strict=True) + + def test_uts46_3758(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000971a7𝟯。⒈᩶𝟚\U000a060c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000971a7𝟯。⒈᩶𝟚\U000a060c', strict=True) + + def test_uts46_3759(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000971a73。1.᩶2\U000a060c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000971a73。1.᩶2\U000a060c', strict=True) + + def test_uts46_3760(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-rj42h.1.xn--2-13k96240l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-rj42h.1.xn--2-13k96240l', strict=True) + + def test_uts46_3761(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-rj42h.xn--2-13k746cq465x', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-rj42h.xn--2-13k746cq465x', strict=True) + + def test_uts46_3762(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d₅⒈。≯𝟴\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d₅⒈。≯𝟴\u200d', strict=True) + + def test_uts46_3763(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d₅⒈。≯𝟴\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d₅⒈。≯𝟴\u200d', strict=True) + + def test_uts46_3764(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d51.。≯8\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d51.。≯8\u200d', strict=True) + + def test_uts46_3765(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d51.。≯8\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d51.。≯8\u200d', strict=True) + + def test_uts46_3766(self): + self.assertRaises(idna.IDNAError, idna.decode, '51..xn--8-ogo', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '51..xn--8-ogo', strict=True) + + def test_uts46_3767(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--51-l1t..xn--8-ugn00i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--51-l1t..xn--8-ugn00i', strict=True) + + def test_uts46_3768(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5-ecp.xn--8-ogo', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5-ecp.xn--8-ogo', strict=True) + + def test_uts46_3769(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5-tgnz5r.xn--8-ugn00i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5-tgnz5r.xn--8-ugn00i', strict=True) + + def test_uts46_3770(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡰڗႆ.\U000aa619ܯ≠\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡰڗႆ.\U000aa619ܯ≠\u200c', strict=True) + + def test_uts46_3771(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡰڗႆ.\U000aa619ܯ≠\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡰڗႆ.\U000aa619ܯ≠\u200c', strict=True) + + def test_uts46_3772(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡰڗႆ.\U000aa619ܯ≠\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡰڗႆ.\U000aa619ܯ≠\u200c', strict=True) + + def test_uts46_3773(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡰڗႆ.\U000aa619ܯ≠\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡰڗႆ.\U000aa619ܯ≠\u200c', strict=True) + + def test_uts46_3774(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tjb002cn51k.xn--5nb630lbj91q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tjb002cn51k.xn--5nb630lbj91q', strict=True) + + def test_uts46_3775(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tjb002cn51k.xn--5nb448jcubcz547b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tjb002cn51k.xn--5nb448jcubcz547b', strict=True) + + def test_uts46_3776(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑄱。\U000aa33f𐹵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑄱。\U000aa33f𐹵', strict=True) + + def test_uts46_3777(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑄱。\U000aa33f𐹵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑄱。\U000aa33f𐹵', strict=True) + + def test_uts46_3778(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t80d.xn--to0d14792b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t80d.xn--to0d14792b', strict=True) + + def test_uts46_3779(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟥\u0600。ܽ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟥\u0600。ܽ', strict=True) + + def test_uts46_3780(self): + self.assertRaises(idna.IDNAError, idna.decode, '3\u0600。ܽ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3\u0600。ܽ', strict=True) + + def test_uts46_3781(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-rkc.xn--kob', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-rkc.xn--kob', strict=True) + + def test_uts46_3782(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ط𐹣٦.ݭ긷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ط𐹣٦.ݭ긷', strict=True) + + def test_uts46_3783(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ط𐹣٦.ݭ긷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ط𐹣٦.ݭ긷', strict=True) + + def test_uts46_3784(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2gb8gu829f.xn--xpb0156f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2gb8gu829f.xn--xpb0156f', strict=True) + + def test_uts46_3785(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒Ↄⷧ\U000be003.Ⴗ\U000108de', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒Ↄⷧ\U000be003.Ⴗ\U000108de', strict=True) + + def test_uts46_3786(self): + self.assertRaises(idna.IDNAError, idna.decode, '。Ↄⷧ\U000be003.Ⴗ\U000108de', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。Ↄⷧ\U000be003.Ⴗ\U000108de', strict=True) + + def test_uts46_3787(self): + self.assertRaises(idna.IDNAError, idna.decode, '。ↄⷧ\U000be003.ⴗ\U000108de', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。ↄⷧ\U000be003.ⴗ\U000108de', strict=True) + + def test_uts46_3788(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--r5gy00cll06u.xn--flj4541e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--r5gy00cll06u.xn--flj4541e', strict=True) + + def test_uts46_3789(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒ↄⷧ\U000be003.ⴗ\U000108de', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒ↄⷧ\U000be003.ⴗ\U000108de', strict=True) + + def test_uts46_3790(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--r5gy00c056n0226g.xn--flj4541e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--r5gy00c056n0226g.xn--flj4541e', strict=True) + + def test_uts46_3791(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--q5g000cll06u.xn--vnd8618j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--q5g000cll06u.xn--vnd8618j', strict=True) + + def test_uts46_3792(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--q5g000c056n0226g.xn--vnd8618j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--q5g000c056n0226g.xn--vnd8618j', strict=True) + + def test_uts46_3793(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0600.ֱ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0600.ֱ', strict=True) + + def test_uts46_3794(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ifb.xn--8cb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ifb.xn--8cb', strict=True) + + def test_uts46_3795(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς≯。𐹽', strict=True) + + def test_uts46_3796(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς≯。𐹽', strict=True) + + def test_uts46_3797(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς≯。𐹽', strict=True) + + def test_uts46_3798(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς≯。𐹽', strict=True) + + def test_uts46_3799(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ≯。𐹽', strict=True) + + def test_uts46_3800(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ≯。𐹽', strict=True) + + def test_uts46_3801(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ≯。𐹽', strict=True) + + def test_uts46_3802(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ≯。𐹽', strict=True) + + def test_uts46_3803(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa818m.xn--1o0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa818m.xn--1o0d', strict=True) + + def test_uts46_3804(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa028m.xn--1o0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa028m.xn--1o0d', strict=True) + + def test_uts46_3805(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ≯。𐹽', strict=True) + + def test_uts46_3806(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ≯。𐹽', strict=True) + + def test_uts46_3807(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ≯。𐹽', strict=True) + + def test_uts46_3808(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ≯。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ≯。𐹽', strict=True) + + def test_uts46_3809(self): + self.assertRaises(idna.IDNAError, idna.decode, '្\u200dݟ。𐹶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '្\u200dݟ。𐹶', strict=True) + + def test_uts46_3810(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jpb535f.xn--uo0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jpb535f.xn--uo0d', strict=True) + + def test_uts46_3811(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jpb535fv9f.xn--uo0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jpb535fv9f.xn--uo0d', strict=True) + + def test_uts46_3812(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003edc2ੂႪ\U0004209f.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003edc2ੂႪ\U0004209f.≮', strict=True) + + def test_uts46_3813(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003edc2ੂႪ\U0004209f.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003edc2ੂႪ\U0004209f.≮', strict=True) + + def test_uts46_3814(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003edc2ੂⴊ\U0004209f.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003edc2ੂⴊ\U0004209f.≮', strict=True) + + def test_uts46_3815(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003edc2ੂⴊ\U0004209f.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003edc2ੂⴊ\U0004209f.≮', strict=True) + + def test_uts46_3816(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nbc229o4y27dgskb.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nbc229o4y27dgskb.xn--gdh', strict=True) + + def test_uts46_3817(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nbc493aro75ggskb.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nbc493aro75ggskb.xn--gdh', strict=True) + + def test_uts46_3818(self): + self.assertEqual(idna.decode('ꡠ.۲', uts46=True, strict=True), 'ꡠ.۲') + self.assertEqual(idna.encode('ꡠ.۲', uts46=True, strict=True), b'xn--5c9a.xn--fmb') + + def test_uts46_3819(self): + self.assertEqual(idna.decode('ꡠ.۲', uts46=True, strict=True), 'ꡠ.۲') + self.assertEqual(idna.encode('ꡠ.۲', uts46=True, strict=True), b'xn--5c9a.xn--fmb') + + def test_uts46_3820(self): + self.assertEqual(idna.decode('xn--5c9a.xn--fmb', uts46=True, strict=True), 'ꡠ.۲') + self.assertEqual(idna.encode('xn--5c9a.xn--fmb', uts46=True, strict=True), b'xn--5c9a.xn--fmb') + + def test_uts46_3821(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣\U00044dc4。ꡬ🄄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣\U00044dc4。ꡬ🄄', strict=True) + + def test_uts46_3822(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣\U00044dc4。ꡬ3,', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣\U00044dc4。ꡬ3,', strict=True) + + def test_uts46_3823(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bo0d0203l.xn--3,-yj9h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bo0d0203l.xn--3,-yj9h', strict=True) + + def test_uts46_3824(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bo0d0203l.xn--id9a4443d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bo0d0203l.xn--id9a4443d', strict=True) + + def test_uts46_3825(self): + self.assertRaises(idna.IDNAError, idna.decode, '-్\U0001ef80𑲓。\u200d്', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-్\U0001ef80𑲓。\u200d്', strict=True) + + def test_uts46_3826(self): + self.assertRaises(idna.IDNAError, idna.decode, '-్\U0001ef80𑲓。\u200d്', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-్\U0001ef80𑲓。\u200d്', strict=True) + + def test_uts46_3827(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----x6e0220sclug.xn--wxc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----x6e0220sclug.xn--wxc', strict=True) + + def test_uts46_3828(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----x6e0220sclug.xn--wxc317g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----x6e0220sclug.xn--wxc317g', strict=True) + + def test_uts46_3829(self): + self.assertRaises(idna.IDNAError, idna.decode, '꙽\u200c霣🄆。\u200c𑁂ᬁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꙽\u200c霣🄆。\u200c𑁂ᬁ', strict=True) + + def test_uts46_3830(self): + self.assertRaises(idna.IDNAError, idna.decode, '꙽\u200c霣🄆。\u200c𑁂ᬁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꙽\u200c霣🄆。\u200c𑁂ᬁ', strict=True) + + def test_uts46_3831(self): + self.assertRaises(idna.IDNAError, idna.decode, '꙽\u200c霣5,。\u200c𑁂ᬁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꙽\u200c霣5,。\u200c𑁂ᬁ', strict=True) + + def test_uts46_3832(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5,-op8g373c.xn--4sf0725i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5,-op8g373c.xn--4sf0725i', strict=True) + + def test_uts46_3833(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5,-i1tz135dnbqa.xn--4sf36u6u4w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5,-i1tz135dnbqa.xn--4sf36u6u4w', strict=True) + + def test_uts46_3834(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2q5a751a653w.xn--4sf0725i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2q5a751a653w.xn--4sf0725i', strict=True) + + def test_uts46_3835(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug4208b2vjuk63a.xn--4sf36u6u4w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug4208b2vjuk63a.xn--4sf36u6u4w', strict=True) + + def test_uts46_3836(self): + self.assertRaises(idna.IDNAError, idna.decode, '兎。ᠼ\U000e0d1c𑚶𑰿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '兎。ᠼ\U000e0d1c𑚶𑰿', strict=True) + + def test_uts46_3837(self): + self.assertRaises(idna.IDNAError, idna.decode, '兎。ᠼ\U000e0d1c𑚶𑰿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '兎。ᠼ\U000e0d1c𑚶𑰿', strict=True) + + def test_uts46_3838(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b5q.xn--v7e6041kqqd4m251b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b5q.xn--v7e6041kqqd4m251b', strict=True) + + def test_uts46_3839(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟙。\u200d𝟸\u200d⁷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟙。\u200d𝟸\u200d⁷', strict=True) + + def test_uts46_3840(self): + self.assertRaises(idna.IDNAError, idna.decode, '1。\u200d2\u200d7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1。\u200d2\u200d7', strict=True) + + def test_uts46_3841(self): + self.assertEqual(idna.decode('1.2h', uts46=True, strict=True), '1.2h') + self.assertEqual(idna.encode('1.2h', uts46=True, strict=True), b'1.2h') + + def test_uts46_3842(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--27-l1tb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--27-l1tb', strict=True) + + def test_uts46_3843(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡨ-。\U000e0ecb𝟷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡨ-。\U000e0ecb𝟷', strict=True) + + def test_uts46_3844(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡨ-。\U000e0ecb1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡨ-。\U000e0ecb1', strict=True) + + def test_uts46_3845(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----z8j.xn--1-5671m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----z8j.xn--1-5671m', strict=True) + + def test_uts46_3846(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰻\U00075010𐫚.٨⁹', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰻\U00075010𐫚.٨⁹', strict=True) + + def test_uts46_3847(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰻\U00075010𐫚.٨9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰻\U00075010𐫚.٨9', strict=True) + + def test_uts46_3848(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gx9cr01aul57i.xn--9-oqc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gx9cr01aul57i.xn--9-oqc', strict=True) + + def test_uts46_3849(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴜ\U00088dedྀ⾇。Ⴏ♀\u200c\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴜ\U00088dedྀ⾇。Ⴏ♀\u200c\u200c', strict=True) + + def test_uts46_3850(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴜ\U00088dedྀ舛。Ⴏ♀\u200c\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴜ\U00088dedྀ舛。Ⴏ♀\u200c\u200c', strict=True) + + def test_uts46_3851(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴜ\U00088dedྀ舛。ⴏ♀\u200c\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴜ\U00088dedྀ舛。ⴏ♀\u200c\u200c', strict=True) + + def test_uts46_3852(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zed372mdj2do3v4h.xn--e5h11w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zed372mdj2do3v4h.xn--e5h11w', strict=True) + + def test_uts46_3853(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zed372mdj2do3v4h.xn--0uga678bgyh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zed372mdj2do3v4h.xn--0uga678bgyh', strict=True) + + def test_uts46_3854(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴜ\U00088dedྀ⾇。ⴏ♀\u200c\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴜ\U00088dedྀ⾇。ⴏ♀\u200c\u200c', strict=True) + + def test_uts46_3855(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zed54dz10wo343g.xn--nnd651i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zed54dz10wo343g.xn--nnd651i', strict=True) + + def test_uts46_3856(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zed54dz10wo343g.xn--nnd089ea464d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zed54dz10wo343g.xn--nnd089ea464d', strict=True) + + def test_uts46_3857(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑁆𝟰.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑁆𝟰.\u200d', strict=True) + + def test_uts46_3858(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑁆4.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑁆4.\u200d', strict=True) + + def test_uts46_3859(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-xu7i.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-xu7i.', strict=True) + + def test_uts46_3860(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-xu7i.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-xu7i.xn--1ug', strict=True) + + def test_uts46_3861(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006ed18Ⴞ癀。𑘿\u200d\u200c붼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006ed18Ⴞ癀。𑘿\u200d\u200c붼', strict=True) + + def test_uts46_3862(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006ed18Ⴞ癀。𑘿\u200d\u200c붼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006ed18Ⴞ癀。𑘿\u200d\u200c붼', strict=True) + + def test_uts46_3863(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006ed18Ⴞ癀。𑘿\u200d\u200c붼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006ed18Ⴞ癀。𑘿\u200d\u200c붼', strict=True) + + def test_uts46_3864(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006ed18Ⴞ癀。𑘿\u200d\u200c붼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006ed18Ⴞ癀。𑘿\u200d\u200c붼', strict=True) + + def test_uts46_3865(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006ed18ⴞ癀。𑘿\u200d\u200c붼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006ed18ⴞ癀。𑘿\u200d\u200c붼', strict=True) + + def test_uts46_3866(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006ed18ⴞ癀。𑘿\u200d\u200c붼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006ed18ⴞ癀。𑘿\u200d\u200c붼', strict=True) + + def test_uts46_3867(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mlju35u7qx2f.xn--et3bn23n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mlju35u7qx2f.xn--et3bn23n', strict=True) + + def test_uts46_3868(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mlju35u7qx2f.xn--0ugb6122js83c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mlju35u7qx2f.xn--0ugb6122js83c', strict=True) + + def test_uts46_3869(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006ed18ⴞ癀。𑘿\u200d\u200c붼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006ed18ⴞ癀。𑘿\u200d\u200c붼', strict=True) + + def test_uts46_3870(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006ed18ⴞ癀。𑘿\u200d\u200c붼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006ed18ⴞ癀。𑘿\u200d\u200c붼', strict=True) + + def test_uts46_3871(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd6803c7q37d.xn--et3bn23n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd6803c7q37d.xn--et3bn23n', strict=True) + + def test_uts46_3872(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd6803c7q37d.xn--0ugb6122js83c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd6803c7q37d.xn--0ugb6122js83c', strict=True) + + def test_uts46_3873(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000da005-்。ڹ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000da005-்。ڹ', strict=True) + + def test_uts46_3874(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----mze84808x.xn--skb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----mze84808x.xn--skb', strict=True) + + def test_uts46_3875(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡃ𝟧≯ᠣ.氁\U000683f1ꁫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡃ𝟧≯ᠣ.氁\U000683f1ꁫ', strict=True) + + def test_uts46_3876(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡃ𝟧≯ᠣ.氁\U000683f1ꁫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡃ𝟧≯ᠣ.氁\U000683f1ꁫ', strict=True) + + def test_uts46_3877(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡃ5≯ᠣ.氁\U000683f1ꁫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡃ5≯ᠣ.氁\U000683f1ꁫ', strict=True) + + def test_uts46_3878(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡃ5≯ᠣ.氁\U000683f1ꁫ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡃ5≯ᠣ.氁\U000683f1ꁫ', strict=True) + + def test_uts46_3879(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5-24jyf768b.xn--lqw213ime95g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5-24jyf768b.xn--lqw213ime95g', strict=True) + + def test_uts46_3880(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹬𝩇.ྲྀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹬𝩇.ྲྀ', strict=True) + + def test_uts46_3881(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹬𝩇.ྲྀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹬𝩇.ྲྀ', strict=True) + + def test_uts46_3882(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹬𝩇.ྲྀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹬𝩇.ྲྀ', strict=True) + + def test_uts46_3883(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ko0d8295a.xn--zed3h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ko0d8295a.xn--zed3h', strict=True) + + def test_uts46_3884(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𑈶⒏.⒎𰛢\U000e03ad', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𑈶⒏.⒎𰛢\U000e03ad', strict=True) + + def test_uts46_3885(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𑈶8..7.𰛢\U000e03ad', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𑈶8..7.𰛢\U000e03ad', strict=True) + + def test_uts46_3886(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---8-bv5o..7.xn--c35nf1622b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---8-bv5o..7.xn--c35nf1622b', strict=True) + + def test_uts46_3887(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----scp6252h.xn--zshy411yzpx2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----scp6252h.xn--zshy411yzpx2d', strict=True) + + def test_uts46_3888(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cႡ畝\u200d.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cႡ畝\u200d.≮', strict=True) + + def test_uts46_3889(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cႡ畝\u200d.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cႡ畝\u200d.≮', strict=True) + + def test_uts46_3890(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cႡ畝\u200d.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cႡ畝\u200d.≮', strict=True) + + def test_uts46_3891(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cႡ畝\u200d.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cႡ畝\u200d.≮', strict=True) + + def test_uts46_3892(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴁ畝\u200d.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴁ畝\u200d.≮', strict=True) + + def test_uts46_3893(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴁ畝\u200d.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴁ畝\u200d.≮', strict=True) + + def test_uts46_3894(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--skjy82u.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--skjy82u.xn--gdh', strict=True) + + def test_uts46_3895(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴁ畝.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴁ畝.≮', strict=True) + + def test_uts46_3896(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴁ畝.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴁ畝.≮', strict=True) + + def test_uts46_3897(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴁ畝.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴁ畝.≮', strict=True) + + def test_uts46_3898(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴁ畝.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴁ畝.≮', strict=True) + + def test_uts46_3899(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugc160hb36e.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugc160hb36e.xn--gdh', strict=True) + + def test_uts46_3900(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴁ畝\u200d.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴁ畝\u200d.≮', strict=True) + + def test_uts46_3901(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cⴁ畝\u200d.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cⴁ畝\u200d.≮', strict=True) + + def test_uts46_3902(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8md0962c.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8md0962c.xn--gdh', strict=True) + + def test_uts46_3903(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8md700fea3748f.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8md700fea3748f.xn--gdh', strict=True) + + def test_uts46_3904(self): + self.assertRaises(idna.IDNAError, idna.decode, '歷。𐹻≯\U000f36fd\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '歷。𐹻≯\U000f36fd\u200d', strict=True) + + def test_uts46_3905(self): + self.assertRaises(idna.IDNAError, idna.decode, '歷。𐹻≯\U000f36fd\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '歷。𐹻≯\U000f36fd\u200d', strict=True) + + def test_uts46_3906(self): + self.assertRaises(idna.IDNAError, idna.decode, '歷。𐹻≯\U000f36fd\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '歷。𐹻≯\U000f36fd\u200d', strict=True) + + def test_uts46_3907(self): + self.assertRaises(idna.IDNAError, idna.decode, '歷。𐹻≯\U000f36fd\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '歷。𐹻≯\U000f36fd\u200d', strict=True) + + def test_uts46_3908(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nmw.xn--hdh7804gdms2h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nmw.xn--hdh7804gdms2h', strict=True) + + def test_uts46_3909(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nmw.xn--1ugx6gs128a1134j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nmw.xn--1ugx6gs128a1134j', strict=True) + + def test_uts46_3910(self): + self.assertRaises(idna.IDNAError, idna.decode, '໋\u200d.鎁\U000e0c11', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '໋\u200d.鎁\U000e0c11', strict=True) + + def test_uts46_3911(self): + self.assertRaises(idna.IDNAError, idna.decode, '໋\u200d.鎁\U000e0c11', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '໋\u200d.鎁\U000e0c11', strict=True) + + def test_uts46_3912(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t8c.xn--iz4a43209d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t8c.xn--iz4a43209d', strict=True) + + def test_uts46_3913(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t8c059f.xn--iz4a43209d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t8c059f.xn--iz4a43209d', strict=True) + + def test_uts46_3914(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c𞤀。𱘅\U00010d83', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c𞤀。𱘅\U00010d83', strict=True) + + def test_uts46_3915(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c𞤀。𱘅\U00010d83', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c𞤀。𱘅\U00010d83', strict=True) + + def test_uts46_3916(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c𞤢。𱘅\U00010d83', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c𞤢。𱘅\U00010d83', strict=True) + + def test_uts46_3917(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c𞤀。𱘅\U00010d63', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c𞤀。𱘅\U00010d63', strict=True) + + def test_uts46_3918(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9d6h.xn--wh0dj799f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9d6h.xn--wh0dj799f', strict=True) + + def test_uts46_3919(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugb45126a.xn--wh0dj799f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugb45126a.xn--wh0dj799f', strict=True) + + def test_uts46_3920(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c𞤢。𱘅\U00010d83', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c𞤢。𱘅\U00010d83', strict=True) + + def test_uts46_3921(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c𞤀。𱘅\U00010d63', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c𞤀。𱘅\U00010d63', strict=True) + + def test_uts46_3922(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠𝟫-.ς⒍𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠𝟫-.ς⒍𐹦≠', strict=True) + + def test_uts46_3923(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠𝟫-.ς⒍𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠𝟫-.ς⒍𐹦≠', strict=True) + + def test_uts46_3924(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠9-.ς6.𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠9-.ς6.𐹦≠', strict=True) + + def test_uts46_3925(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠9-.ς6.𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠9-.ς6.𐹦≠', strict=True) + + def test_uts46_3926(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠9-.Σ6.𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠9-.Σ6.𐹦≠', strict=True) + + def test_uts46_3927(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠9-.Σ6.𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠9-.Σ6.𐹦≠', strict=True) + + def test_uts46_3928(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠9-.σ6.𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠9-.σ6.𐹦≠', strict=True) + + def test_uts46_3929(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠9-.σ6.𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠9-.σ6.𐹦≠', strict=True) + + def test_uts46_3930(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9--etd0100a.xn--6-zmb.xn--1ch8704g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9--etd0100a.xn--6-zmb.xn--1ch8704g', strict=True) + + def test_uts46_3931(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9--etd0100a.xn--6-xmb.xn--1ch8704g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9--etd0100a.xn--6-xmb.xn--1ch8704g', strict=True) + + def test_uts46_3932(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠𝟫-.Σ⒍𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠𝟫-.Σ⒍𐹦≠', strict=True) + + def test_uts46_3933(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠𝟫-.Σ⒍𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠𝟫-.Σ⒍𐹦≠', strict=True) + + def test_uts46_3934(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠𝟫-.σ⒍𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠𝟫-.σ⒍𐹦≠', strict=True) + + def test_uts46_3935(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ب≠𝟫-.σ⒍𐹦≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ب≠𝟫-.σ⒍𐹦≠', strict=True) + + def test_uts46_3936(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9--etd0100a.xn--4xa887mzpbzz04b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9--etd0100a.xn--4xa887mzpbzz04b', strict=True) + + def test_uts46_3937(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9--etd0100a.xn--3xa097mzpbzz04b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9--etd0100a.xn--3xa097mzpbzz04b', strict=True) + + def test_uts46_3938(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000896f4.-ᡢ֒𝨠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000896f4.-ᡢ֒𝨠', strict=True) + + def test_uts46_3939(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ep37b.xn----hec165lho83b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ep37b.xn----hec165lho83b', strict=True) + + def test_uts46_3940(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۋ⒈ß󠄽。\U000772cd-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۋ⒈ß󠄽。\U000772cd-', strict=True) + + def test_uts46_3941(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۋ1.ß󠄽。\U000772cd-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۋ1.ß󠄽。\U000772cd-', strict=True) + + def test_uts46_3942(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۋ1.SS󠄽。\U000772cd-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۋ1.SS󠄽。\U000772cd-', strict=True) + + def test_uts46_3943(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۋ1.ss󠄽。\U000772cd-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۋ1.ss󠄽。\U000772cd-', strict=True) + + def test_uts46_3944(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۋ1.Ss󠄽。\U000772cd-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۋ1.Ss󠄽。\U000772cd-', strict=True) + + def test_uts46_3945(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-cwc.ss.xn----q001f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-cwc.ss.xn----q001f', strict=True) + + def test_uts46_3946(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-cwc.xn--zca.xn----q001f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-cwc.xn--zca.xn----q001f', strict=True) + + def test_uts46_3947(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۋ⒈SS󠄽。\U000772cd-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۋ⒈SS󠄽。\U000772cd-', strict=True) + + def test_uts46_3948(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۋ⒈ss󠄽。\U000772cd-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۋ⒈ss󠄽。\U000772cd-', strict=True) + + def test_uts46_3949(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۋ⒈Ss󠄽。\U000772cd-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۋ⒈Ss󠄽。\U000772cd-', strict=True) + + def test_uts46_3950(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-d7d6651a.xn----q001f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-d7d6651a.xn----q001f', strict=True) + + def test_uts46_3951(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca541ato3a.xn----q001f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca541ato3a.xn----q001f', strict=True) + + def test_uts46_3952(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f02b.᮪ςႦ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f02b.᮪ςႦ\u200d', strict=True) + + def test_uts46_3953(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f02b.᮪ςႦ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f02b.᮪ςႦ\u200d', strict=True) + + def test_uts46_3954(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f02b.᮪ςⴆ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f02b.᮪ςⴆ\u200d', strict=True) + + def test_uts46_3955(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f02b.᮪ΣႦ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f02b.᮪ΣႦ\u200d', strict=True) + + def test_uts46_3956(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f02b.᮪σⴆ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f02b.᮪σⴆ\u200d', strict=True) + + def test_uts46_3957(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f02b.᮪Σⴆ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f02b.᮪Σⴆ\u200d', strict=True) + + def test_uts46_3958(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nu4s.xn--4xa153j7im', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nu4s.xn--4xa153j7im', strict=True) + + def test_uts46_3959(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nu4s.xn--4xa153jk8cs1q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nu4s.xn--4xa153jk8cs1q', strict=True) + + def test_uts46_3960(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nu4s.xn--3xa353jk8cs1q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nu4s.xn--3xa353jk8cs1q', strict=True) + + def test_uts46_3961(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f02b.᮪ςⴆ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f02b.᮪ςⴆ\u200d', strict=True) + + def test_uts46_3962(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f02b.᮪ΣႦ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f02b.᮪ΣႦ\u200d', strict=True) + + def test_uts46_3963(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f02b.᮪σⴆ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f02b.᮪σⴆ\u200d', strict=True) + + def test_uts46_3964(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003f02b.᮪Σⴆ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003f02b.᮪Σⴆ\u200d', strict=True) + + def test_uts46_3965(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nu4s.xn--4xa217dxri', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nu4s.xn--4xa217dxri', strict=True) + + def test_uts46_3966(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nu4s.xn--4xa217dxriome', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nu4s.xn--4xa217dxriome', strict=True) + + def test_uts46_3967(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nu4s.xn--3xa417dxriome', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nu4s.xn--3xa417dxriome', strict=True) + + def test_uts46_3968(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾆\u08e2.𝈴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾆\u08e2.𝈴', strict=True) + + def test_uts46_3969(self): + self.assertRaises(idna.IDNAError, idna.decode, '舌\u08e2.𝈴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舌\u08e2.𝈴', strict=True) + + def test_uts46_3970(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l0b9413d.xn--kl1h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l0b9413d.xn--kl1h', strict=True) + + def test_uts46_3971(self): + self.assertRaises(idna.IDNAError, idna.decode, '⫞𐹶𖫴。⭠⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⫞𐹶𖫴。⭠⒈', strict=True) + + def test_uts46_3972(self): + self.assertRaises(idna.IDNAError, idna.decode, '⫞𐹶𖫴。⭠1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⫞𐹶𖫴。⭠1.', strict=True) + + def test_uts46_3973(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--53ix188et88b.xn--1-h6r.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--53ix188et88b.xn--1-h6r.', strict=True) + + def test_uts46_3974(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--53ix188et88b.xn--tsh52w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--53ix188et88b.xn--tsh52w', strict=True) + + def test_uts46_3975(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈\u200cꫬ︒.્', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈\u200cꫬ︒.્', strict=True) + + def test_uts46_3976(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.\u200cꫬ。.્', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.\u200cꫬ。.્', strict=True) + + def test_uts46_3977(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--sv9a..xn--mfc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--sv9a..xn--mfc', strict=True) + + def test_uts46_3978(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--0ug7185c..xn--mfc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--0ug7185c..xn--mfc', strict=True) + + def test_uts46_3979(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh0720cse8b.xn--mfc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh0720cse8b.xn--mfc', strict=True) + + def test_uts46_3980(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug78o720myr1c.xn--mfc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug78o720myr1c.xn--mfc', strict=True) + + def test_uts46_3981(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ె。䰀٨\U0001eb45󠅼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ె。䰀٨\U0001eb45󠅼', strict=True) + + def test_uts46_3982(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--eqc.xn--hib5476aim6t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--eqc.xn--hib5476aim6t', strict=True) + + def test_uts46_3983(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\u200d.᯲\U00044fbc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\u200d.᯲\U00044fbc', strict=True) + + def test_uts46_3984(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS\u200d.᯲\U00044fbc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS\u200d.᯲\U00044fbc', strict=True) + + def test_uts46_3985(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss\u200d.᯲\U00044fbc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss\u200d.᯲\U00044fbc', strict=True) + + def test_uts46_3986(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss\u200d.᯲\U00044fbc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss\u200d.᯲\U00044fbc', strict=True) + + def test_uts46_3987(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss.xn--0zf22107b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss.xn--0zf22107b', strict=True) + + def test_uts46_3988(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-n1t.xn--0zf22107b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-n1t.xn--0zf22107b', strict=True) + + def test_uts46_3989(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca870n.xn--0zf22107b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca870n.xn--0zf22107b', strict=True) + + def test_uts46_3990(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑓂\u200c≮.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑓂\u200c≮.≮', strict=True) + + def test_uts46_3991(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑓂\u200c≮.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑓂\u200c≮.≮', strict=True) + + def test_uts46_3992(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdhz656g.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdhz656g.xn--gdh', strict=True) + + def test_uts46_3993(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugy6glz29a.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugy6glz29a.xn--gdh', strict=True) + + def test_uts46_3994(self): + self.assertRaises(idna.IDNAError, idna.decode, '🕼.ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🕼.ᅠ', strict=True) + + def test_uts46_3995(self): + self.assertRaises(idna.IDNAError, idna.decode, '🕼.ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🕼.ᅠ', strict=True) + + def test_uts46_3996(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--my8h.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--my8h.', strict=True) + + def test_uts46_3997(self): + self.assertRaises(idna.IDNAError, idna.decode, '🕼.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🕼.', strict=True) + + def test_uts46_3998(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--my8h.xn--psd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--my8h.xn--psd', strict=True) + + def test_uts46_3999(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--my8h.xn--cl7c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--my8h.xn--cl7c', strict=True) + + def test_uts46_4000(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡔﶂ。\U0007760e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡔﶂ。\U0007760e', strict=True) + + def test_uts46_4001(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡔلحى。\U0007760e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡔلحى。\U0007760e', strict=True) + + def test_uts46_4002(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--sgb9bq785p.xn--bc31b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--sgb9bq785p.xn--bc31b', strict=True) + + def test_uts46_4003(self): + self.assertRaises(idna.IDNAError, idna.decode, '爕\U000b3651.𝟰気', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '爕\U000b3651.𝟰気', strict=True) + + def test_uts46_4004(self): + self.assertRaises(idna.IDNAError, idna.decode, '爕\U000b3651.4気', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '爕\U000b3651.4気', strict=True) + + def test_uts46_4005(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1zxq3199c.xn--4-678b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1zxq3199c.xn--4-678b', strict=True) + + def test_uts46_4006(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒋𑍍Ⴝ-.\U0001eb2a්ֵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒋𑍍Ⴝ-.\U0001eb2a්ֵ', strict=True) + + def test_uts46_4007(self): + self.assertRaises(idna.IDNAError, idna.decode, '4.𑍍Ⴝ-.\U0001eb2a්ֵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4.𑍍Ⴝ-.\U0001eb2a්ֵ', strict=True) + + def test_uts46_4008(self): + self.assertRaises(idna.IDNAError, idna.decode, '4.𑍍ⴝ-.\U0001eb2a්ֵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4.𑍍ⴝ-.\U0001eb2a්ֵ', strict=True) + + def test_uts46_4009(self): + self.assertRaises(idna.IDNAError, idna.decode, '4.xn----wwsx259f.xn--ddb152b7y23b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4.xn----wwsx259f.xn--ddb152b7y23b', strict=True) + + def test_uts46_4010(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒋𑍍ⴝ-.\U0001eb2a්ֵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒋𑍍ⴝ-.\U0001eb2a්ֵ', strict=True) + + def test_uts46_4011(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----jcp487avl3w.xn--ddb152b7y23b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----jcp487avl3w.xn--ddb152b7y23b', strict=True) + + def test_uts46_4012(self): + self.assertRaises(idna.IDNAError, idna.decode, '4.xn----t1g9869q.xn--ddb152b7y23b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4.xn----t1g9869q.xn--ddb152b7y23b', strict=True) + + def test_uts46_4013(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----t1g323mnk9t.xn--ddb152b7y23b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----t1g323mnk9t.xn--ddb152b7y23b', strict=True) + + def test_uts46_4014(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000de743。\U00091183\U00049897--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000de743。\U00091183\U00049897--', strict=True) + + def test_uts46_4015(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2y75e.xn-----1l15eer88n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2y75e.xn-----1l15eer88n', strict=True) + + def test_uts46_4016(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dߟ。\u200c꯭', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dߟ。\u200c꯭', strict=True) + + def test_uts46_4017(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dߟ。\u200c꯭', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dߟ。\u200c꯭', strict=True) + + def test_uts46_4018(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6sb.xn--429a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6sb.xn--429a', strict=True) + + def test_uts46_4019(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6sb394j.xn--0ug1126c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6sb394j.xn--0ug1126c', strict=True) + + def test_uts46_4020(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ebbd߿ࡎ。ᢍ\U0009de41𐫘', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ebbd߿ࡎ。ᢍ\U0009de41𐫘', strict=True) + + def test_uts46_4021(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ebbd߿ࡎ。ᢍ\U0009de41𐫘', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ebbd߿ࡎ。ᢍ\U0009de41𐫘', strict=True) + + def test_uts46_4022(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3tb2nz468k.xn--69e8615j5rn5d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3tb2nz468k.xn--69e8615j5rn5d', strict=True) + + def test_uts46_4023(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۭ𞺌𑄚᜔.ꡞࢷ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۭ𞺌𑄚᜔.ꡞࢷ', strict=True) + + def test_uts46_4024(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۭم𑄚᜔.ꡞࢷ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۭم𑄚᜔.ꡞࢷ', strict=True) + + def test_uts46_4025(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hhb94ag41b739u.xn--dzb5582f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hhb94ag41b739u.xn--dzb5582f', strict=True) + + def test_uts46_4026(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。ςؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。ςؼς', strict=True) + + def test_uts46_4027(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。ςؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。ςؼς', strict=True) + + def test_uts46_4028(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。ςؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。ςؼς', strict=True) + + def test_uts46_4029(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。ςؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。ςؼς', strict=True) + + def test_uts46_4030(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。ΣؼΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。ΣؼΣ', strict=True) + + def test_uts46_4031(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。ΣؼΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。ΣؼΣ', strict=True) + + def test_uts46_4032(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。σؼσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。σؼσ', strict=True) + + def test_uts46_4033(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。σؼσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。σؼσ', strict=True) + + def test_uts46_4034(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。Σؼσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。Σؼσ', strict=True) + + def test_uts46_4035(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。Σؼσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。Σؼσ', strict=True) + + def test_uts46_4036(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3sb7483hoyvbbe76g.xn--4xaa21q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3sb7483hoyvbbe76g.xn--4xaa21q', strict=True) + + def test_uts46_4037(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。Σؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。Σؼς', strict=True) + + def test_uts46_4038(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。Σؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。Σؼς', strict=True) + + def test_uts46_4039(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。σؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。σؼς', strict=True) + + def test_uts46_4040(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。σؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。σؼς', strict=True) + + def test_uts46_4041(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3sb7483hoyvbbe76g.xn--3xab31q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3sb7483hoyvbbe76g.xn--3xab31q', strict=True) + + def test_uts46_4042(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3sb7483hoyvbbe76g.xn--3xaa51q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3sb7483hoyvbbe76g.xn--3xaa51q', strict=True) + + def test_uts46_4043(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。ΣؼΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。ΣؼΣ', strict=True) + + def test_uts46_4044(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。ΣؼΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。ΣؼΣ', strict=True) + + def test_uts46_4045(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。σؼσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。σؼσ', strict=True) + + def test_uts46_4046(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。σؼσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。σؼσ', strict=True) + + def test_uts46_4047(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。Σؼσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。Σؼσ', strict=True) + + def test_uts46_4048(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。Σؼσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。Σؼσ', strict=True) + + def test_uts46_4049(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。Σؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。Σؼς', strict=True) + + def test_uts46_4050(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。Σؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。Σؼς', strict=True) + + def test_uts46_4051(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。σؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。σؼς', strict=True) + + def test_uts46_4052(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007b0b5킃𑘶ߜ。σؼς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007b0b5킃𑘶ߜ。σؼς', strict=True) + + def test_uts46_4053(self): + self.assertRaises(idna.IDNAError, idna.decode, '蔰。\U000e0079ࣝ-𑈵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '蔰。\U000e0079ࣝ-𑈵', strict=True) + + def test_uts46_4054(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--sz1a.xn----mrd9984r3dl0i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--sz1a.xn----mrd9984r3dl0i', strict=True) + + def test_uts46_4055(self): + self.assertEqual(idna.decode('ςჅ。ݚ', uts46=True, strict=True), 'ςⴥ.ݚ') + self.assertEqual(idna.encode('ςჅ。ݚ', uts46=True, strict=True), b'xn--3xa403s.xn--epb') + + def test_uts46_4056(self): + self.assertEqual(idna.decode('ςⴥ。ݚ', uts46=True, strict=True), 'ςⴥ.ݚ') + self.assertEqual(idna.encode('ςⴥ。ݚ', uts46=True, strict=True), b'xn--3xa403s.xn--epb') + + def test_uts46_4057(self): + self.assertEqual(idna.decode('ΣჅ。ݚ', uts46=True, strict=True), 'σⴥ.ݚ') + self.assertEqual(idna.encode('ΣჅ。ݚ', uts46=True, strict=True), b'xn--4xa203s.xn--epb') + + def test_uts46_4058(self): + self.assertEqual(idna.decode('σⴥ。ݚ', uts46=True, strict=True), 'σⴥ.ݚ') + self.assertEqual(idna.encode('σⴥ。ݚ', uts46=True, strict=True), b'xn--4xa203s.xn--epb') + + def test_uts46_4059(self): + self.assertEqual(idna.decode('Σⴥ。ݚ', uts46=True, strict=True), 'σⴥ.ݚ') + self.assertEqual(idna.encode('Σⴥ。ݚ', uts46=True, strict=True), b'xn--4xa203s.xn--epb') + + def test_uts46_4060(self): + self.assertEqual(idna.decode('xn--4xa203s.xn--epb', uts46=True, strict=True), 'σⴥ.ݚ') + self.assertEqual(idna.encode('xn--4xa203s.xn--epb', uts46=True, strict=True), b'xn--4xa203s.xn--epb') + + def test_uts46_4061(self): + self.assertEqual(idna.decode('σⴥ.ݚ', uts46=True, strict=True), 'σⴥ.ݚ') + self.assertEqual(idna.encode('σⴥ.ݚ', uts46=True, strict=True), b'xn--4xa203s.xn--epb') + + def test_uts46_4062(self): + self.assertEqual(idna.decode('ΣჅ.ݚ', uts46=True, strict=True), 'σⴥ.ݚ') + self.assertEqual(idna.encode('ΣჅ.ݚ', uts46=True, strict=True), b'xn--4xa203s.xn--epb') + + def test_uts46_4063(self): + self.assertEqual(idna.decode('Σⴥ.ݚ', uts46=True, strict=True), 'σⴥ.ݚ') + self.assertEqual(idna.encode('Σⴥ.ݚ', uts46=True, strict=True), b'xn--4xa203s.xn--epb') + + def test_uts46_4064(self): + self.assertEqual(idna.decode('xn--3xa403s.xn--epb', uts46=True, strict=True), 'ςⴥ.ݚ') + self.assertEqual(idna.encode('xn--3xa403s.xn--epb', uts46=True, strict=True), b'xn--3xa403s.xn--epb') + + def test_uts46_4065(self): + self.assertEqual(idna.decode('ςⴥ.ݚ', uts46=True, strict=True), 'ςⴥ.ݚ') + self.assertEqual(idna.encode('ςⴥ.ݚ', uts46=True, strict=True), b'xn--3xa403s.xn--epb') + + def test_uts46_4066(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa477d.xn--epb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa477d.xn--epb', strict=True) + + def test_uts46_4067(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa677d.xn--epb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa677d.xn--epb', strict=True) + + def test_uts46_4068(self): + self.assertRaises(idna.IDNAError, idna.decode, '్Ⴉ\U0001ec13.᭲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '్Ⴉ\U0001ec13.᭲', strict=True) + + def test_uts46_4069(self): + self.assertRaises(idna.IDNAError, idna.decode, '్Ⴉ\U0001ec13.᭲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '్Ⴉ\U0001ec13.᭲', strict=True) + + def test_uts46_4070(self): + self.assertRaises(idna.IDNAError, idna.decode, '్ⴉ\U0001ec13.᭲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '్ⴉ\U0001ec13.᭲', strict=True) + + def test_uts46_4071(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lqc478nlr02a.xn--dwf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lqc478nlr02a.xn--dwf', strict=True) + + def test_uts46_4072(self): + self.assertRaises(idna.IDNAError, idna.decode, '్ⴉ\U0001ec13.᭲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '్ⴉ\U0001ec13.᭲', strict=True) + + def test_uts46_4073(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lqc64t7t26c.xn--dwf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lqc64t7t26c.xn--dwf', strict=True) + + def test_uts46_4074(self): + self.assertRaises(idna.IDNAError, idna.decode, '⮷≮\U0004e234󠄟。𐠄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⮷≮\U0004e234󠄟。𐠄', strict=True) + + def test_uts46_4075(self): + self.assertRaises(idna.IDNAError, idna.decode, '⮷≮\U0004e234󠄟。𐠄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⮷≮\U0004e234󠄟。𐠄', strict=True) + + def test_uts46_4076(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh877a3513h.xn--pc9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh877a3513h.xn--pc9c', strict=True) + + def test_uts46_4077(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڼ。\u200dẏ\u200cᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڼ。\u200dẏ\u200cᡤ', strict=True) + + def test_uts46_4078(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڼ。\u200dẏ\u200cᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڼ。\u200dẏ\u200cᡤ', strict=True) + + def test_uts46_4079(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڼ。\u200dẏ\u200cᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڼ。\u200dẏ\u200cᡤ', strict=True) + + def test_uts46_4080(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڼ。\u200dẏ\u200cᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڼ。\u200dẏ\u200cᡤ', strict=True) + + def test_uts46_4081(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڼ。\u200dẎ\u200cᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڼ。\u200dẎ\u200cᡤ', strict=True) + + def test_uts46_4082(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڼ。\u200dẎ\u200cᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڼ。\u200dẎ\u200cᡤ', strict=True) + + def test_uts46_4083(self): + self.assertEqual(idna.decode('xn--vkb.xn--08e172a', uts46=True, strict=True), 'ڼ.ẏᡤ') + self.assertEqual(idna.encode('xn--vkb.xn--08e172a', uts46=True, strict=True), b'xn--vkb.xn--08e172a') + + def test_uts46_4084(self): + self.assertEqual(idna.decode('ڼ.ẏᡤ', uts46=True, strict=True), 'ڼ.ẏᡤ') + self.assertEqual(idna.encode('ڼ.ẏᡤ', uts46=True, strict=True), b'xn--vkb.xn--08e172a') + + def test_uts46_4085(self): + self.assertEqual(idna.decode('ڼ.ẏᡤ', uts46=True, strict=True), 'ڼ.ẏᡤ') + self.assertEqual(idna.encode('ڼ.ẏᡤ', uts46=True, strict=True), b'xn--vkb.xn--08e172a') + + def test_uts46_4086(self): + self.assertEqual(idna.decode('ڼ.Ẏᡤ', uts46=True, strict=True), 'ڼ.ẏᡤ') + self.assertEqual(idna.encode('ڼ.Ẏᡤ', uts46=True, strict=True), b'xn--vkb.xn--08e172a') + + def test_uts46_4087(self): + self.assertEqual(idna.decode('ڼ.Ẏᡤ', uts46=True, strict=True), 'ڼ.ẏᡤ') + self.assertEqual(idna.encode('ڼ.Ẏᡤ', uts46=True, strict=True), b'xn--vkb.xn--08e172a') + + def test_uts46_4088(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vkb.xn--08e172ax6aca', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vkb.xn--08e172ax6aca', strict=True) + + def test_uts46_4089(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڼ。\u200dẎ\u200cᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڼ。\u200dẎ\u200cᡤ', strict=True) + + def test_uts46_4090(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڼ。\u200dẎ\u200cᡤ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڼ。\u200dẎ\u200cᡤ', strict=True) + + def test_uts46_4091(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹹𑲛。\U00051090්', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹹𑲛。\U00051090්', strict=True) + + def test_uts46_4092(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xo0dg5v.xn--h1c39876d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xo0dg5v.xn--h1c39876d', strict=True) + + def test_uts46_4093(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠𑈵。嵕ﻱ۴꥓', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠𑈵。嵕ﻱ۴꥓', strict=True) + + def test_uts46_4094(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠𑈵。嵕ﻱ۴꥓', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠𑈵。嵕ﻱ۴꥓', strict=True) + + def test_uts46_4095(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠𑈵。嵕ي۴꥓', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠𑈵。嵕ي۴꥓', strict=True) + + def test_uts46_4096(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≠𑈵。嵕ي۴꥓', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≠𑈵。嵕ي۴꥓', strict=True) + + def test_uts46_4097(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ufo4749h.xn--mhb45a235sns3c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ufo4749h.xn--mhb45a235sns3c', strict=True) + + def test_uts46_4098(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U0004de30𐹶ݮ.ہ\u200d≯\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U0004de30𐹶ݮ.ہ\u200d≯\u200d', strict=True) + + def test_uts46_4099(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U0004de30𐹶ݮ.ہ\u200d≯\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U0004de30𐹶ݮ.ہ\u200d≯\u200d', strict=True) + + def test_uts46_4100(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U0004de30𐹶ݮ.ہ\u200d≯\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U0004de30𐹶ݮ.ہ\u200d≯\u200d', strict=True) + + def test_uts46_4101(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U0004de30𐹶ݮ.ہ\u200d≯\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U0004de30𐹶ݮ.ہ\u200d≯\u200d', strict=True) + + def test_uts46_4102(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ypb5875khz9y.xn--0kb682l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ypb5875khz9y.xn--0kb682l', strict=True) + + def test_uts46_4103(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ypb717jrx2o7v94a.xn--0kb660ka35v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ypb717jrx2o7v94a.xn--0kb660ka35v', strict=True) + + def test_uts46_4104(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮.឵ࡕ𐫔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮.឵ࡕ𐫔', strict=True) + + def test_uts46_4105(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮.឵ࡕ𐫔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮.឵ࡕ𐫔', strict=True) + + def test_uts46_4106(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮.឵ࡕ𐫔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮.឵ࡕ𐫔', strict=True) + + def test_uts46_4107(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮.឵ࡕ𐫔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮.឵ࡕ𐫔', strict=True) + + def test_uts46_4108(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh.xn--kwb4643k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh.xn--kwb4643k', strict=True) + + def test_uts46_4109(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh.xn--kwb589e217p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh.xn--kwb589e217p', strict=True) + + def test_uts46_4110(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩗\u200d。ႩႵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩗\u200d。ႩႵ', strict=True) + + def test_uts46_4111(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩗\u200d。ႩႵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩗\u200d。ႩႵ', strict=True) + + def test_uts46_4112(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩗\u200d。ⴉⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩗\u200d。ⴉⴕ', strict=True) + + def test_uts46_4113(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩗\u200d。Ⴉⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩗\u200d。Ⴉⴕ', strict=True) + + def test_uts46_4114(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pt9c.xn--0kjya', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pt9c.xn--0kjya', strict=True) + + def test_uts46_4115(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩗.ⴉⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩗.ⴉⴕ', strict=True) + + def test_uts46_4116(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩗.ႩႵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩗.ႩႵ', strict=True) + + def test_uts46_4117(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩗.Ⴉⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩗.Ⴉⴕ', strict=True) + + def test_uts46_4118(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug4933g.xn--0kjya', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug4933g.xn--0kjya', strict=True) + + def test_uts46_4119(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩗\u200d。ⴉⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩗\u200d。ⴉⴕ', strict=True) + + def test_uts46_4120(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩗\u200d。Ⴉⴕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩗\u200d。Ⴉⴕ', strict=True) + + def test_uts46_4121(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pt9c.xn--hnd666l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pt9c.xn--hnd666l', strict=True) + + def test_uts46_4122(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug4933g.xn--hnd666l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug4933g.xn--hnd666l', strict=True) + + def test_uts46_4123(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pt9c.xn--hndy', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pt9c.xn--hndy', strict=True) + + def test_uts46_4124(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug4933g.xn--hndy', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug4933g.xn--hndy', strict=True) + + def test_uts46_4125(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200cㄤ.̮\U000d5a11ূ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200cㄤ.̮\U000d5a11ূ', strict=True) + + def test_uts46_4126(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200cㄤ.̮\U000d5a11ূ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200cㄤ.̮\U000d5a11ূ', strict=True) + + def test_uts46_4127(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1fk.xn--vta284a9o563a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1fk.xn--vta284a9o563a', strict=True) + + def test_uts46_4128(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0uga242k.xn--vta284a9o563a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0uga242k.xn--vta284a9o563a', strict=True) + + def test_uts46_4129(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋻。-\u200c𐫄Ⴗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋻。-\u200c𐫄Ⴗ', strict=True) + + def test_uts46_4130(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋻。-\u200c𐫄Ⴗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋻。-\u200c𐫄Ⴗ', strict=True) + + def test_uts46_4131(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋻。-\u200c𐫄ⴗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋻。-\u200c𐫄ⴗ', strict=True) + + def test_uts46_4132(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--v97c.xn----lws0526f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--v97c.xn----lws0526f', strict=True) + + def test_uts46_4133(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--v97c.xn----sgnv20du99s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--v97c.xn----sgnv20du99s', strict=True) + + def test_uts46_4134(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋻。-\u200c𐫄ⴗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋻。-\u200c𐫄ⴗ', strict=True) + + def test_uts46_4135(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--v97c.xn----i1g2513q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--v97c.xn----i1g2513q', strict=True) + + def test_uts46_4136(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--v97c.xn----i1g888ih12u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--v97c.xn----i1g888ih12u', strict=True) + + def test_uts46_4137(self): + self.assertRaises(idna.IDNAError, idna.decode, '🙑\U00010dfa.≠\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🙑\U00010dfa.≠\u200c', strict=True) + + def test_uts46_4138(self): + self.assertRaises(idna.IDNAError, idna.decode, '🙑\U00010dfa.≠\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🙑\U00010dfa.≠\u200c', strict=True) + + def test_uts46_4139(self): + self.assertRaises(idna.IDNAError, idna.decode, '🙑\U00010dfa.≠\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🙑\U00010dfa.≠\u200c', strict=True) + + def test_uts46_4140(self): + self.assertRaises(idna.IDNAError, idna.decode, '🙑\U00010dfa.≠\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🙑\U00010dfa.≠\u200c', strict=True) + + def test_uts46_4141(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bl0dh970b.xn--1ch', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bl0dh970b.xn--1ch', strict=True) + + def test_uts46_4142(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bl0dh970b.xn--0ug83g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bl0dh970b.xn--0ug83g', strict=True) + + def test_uts46_4143(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٌ᳒。\U0001eb9e⵿⧎', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٌ᳒。\U0001eb9e⵿⧎', strict=True) + + def test_uts46_4144(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٌ᳒。\U0001eb9e⵿⧎', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٌ᳒。\U0001eb9e⵿⧎', strict=True) + + def test_uts46_4145(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ohb646i.xn--ewi38jf765c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ohb646i.xn--ewi38jf765c', strict=True) + + def test_uts46_4146(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴔ𝨨₃\U000e0066.𝟳𑂹ஂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴔ𝨨₃\U000e0066.𝟳𑂹ஂ', strict=True) + + def test_uts46_4147(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴔ𝨨3\U000e0066.7𑂹ஂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴔ𝨨3\U000e0066.7𑂹ஂ', strict=True) + + def test_uts46_4148(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴔ𝨨3\U000e0066.7𑂹ஂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴔ𝨨3\U000e0066.7𑂹ஂ', strict=True) + + def test_uts46_4149(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-ews6985n35s3g.xn--7-cve6271r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-ews6985n35s3g.xn--7-cve6271r', strict=True) + + def test_uts46_4150(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴔ𝨨₃\U000e0066.𝟳𑂹ஂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴔ𝨨₃\U000e0066.𝟳𑂹ஂ', strict=True) + + def test_uts46_4151(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-b1g83426a35t0g.xn--7-cve6271r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-b1g83426a35t0g.xn--7-cve6271r', strict=True) + + def test_uts46_4152(self): + self.assertRaises(idna.IDNAError, idna.decode, '䏈\u200c。\u200c⒈\U00071895', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䏈\u200c。\u200c⒈\U00071895', strict=True) + + def test_uts46_4153(self): + self.assertRaises(idna.IDNAError, idna.decode, '䏈\u200c。\u200c1.\U00071895', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䏈\u200c。\u200c1.\U00071895', strict=True) + + def test_uts46_4154(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--eco.1.xn--ms39a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--eco.1.xn--ms39a', strict=True) + + def test_uts46_4155(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug491l.xn--1-rgn.xn--ms39a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug491l.xn--1-rgn.xn--ms39a', strict=True) + + def test_uts46_4156(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--eco.xn--tsh21126d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--eco.xn--tsh21126d', strict=True) + + def test_uts46_4157(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug491l.xn--0ug88oot66q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug491l.xn--0ug88oot66q', strict=True) + + def test_uts46_4158(self): + self.assertRaises(idna.IDNAError, idna.decode, '1꫶ß𑲥。ᷘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1꫶ß𑲥。ᷘ', strict=True) + + def test_uts46_4159(self): + self.assertRaises(idna.IDNAError, idna.decode, '1꫶ß𑲥。ᷘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1꫶ß𑲥。ᷘ', strict=True) + + def test_uts46_4160(self): + self.assertRaises(idna.IDNAError, idna.decode, '1꫶SS𑲥。ᷘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1꫶SS𑲥。ᷘ', strict=True) + + def test_uts46_4161(self): + self.assertRaises(idna.IDNAError, idna.decode, '1꫶ss𑲥。ᷘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1꫶ss𑲥。ᷘ', strict=True) + + def test_uts46_4162(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ss-ir6ln166b.xn--weg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ss-ir6ln166b.xn--weg', strict=True) + + def test_uts46_4163(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-qfa2471kdb0d.xn--weg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-qfa2471kdb0d.xn--weg', strict=True) + + def test_uts46_4164(self): + self.assertRaises(idna.IDNAError, idna.decode, '1꫶SS𑲥。ᷘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1꫶SS𑲥。ᷘ', strict=True) + + def test_uts46_4165(self): + self.assertRaises(idna.IDNAError, idna.decode, '1꫶ss𑲥。ᷘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1꫶ss𑲥。ᷘ', strict=True) + + def test_uts46_4166(self): + self.assertRaises(idna.IDNAError, idna.decode, '1꫶Ss𑲥。ᷘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1꫶Ss𑲥。ᷘ', strict=True) + + def test_uts46_4167(self): + self.assertRaises(idna.IDNAError, idna.decode, '1꫶Ss𑲥。ᷘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1꫶Ss𑲥。ᷘ', strict=True) + + def test_uts46_4168(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U0006bda9\U0001eaaf್。ݼ⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U0006bda9\U0001eaaf್。ݼ⒈', strict=True) + + def test_uts46_4169(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U0006bda9\U0001eaaf್。ݼ1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U0006bda9\U0001eaaf್。ݼ1.', strict=True) + + def test_uts46_4170(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8tc9875v5is1a.xn--1-g6c.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8tc9875v5is1a.xn--1-g6c.', strict=True) + + def test_uts46_4171(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8tc969gzn94a4lm8a.xn--1-g6c.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8tc969gzn94a4lm8a.xn--1-g6c.', strict=True) + + def test_uts46_4172(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8tc9875v5is1a.xn--dqb689l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8tc9875v5is1a.xn--dqb689l', strict=True) + + def test_uts46_4173(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8tc969gzn94a4lm8a.xn--dqb689l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8tc969gzn94a4lm8a.xn--dqb689l', strict=True) + + def test_uts46_4174(self): + self.assertRaises(idna.IDNAError, idna.decode, '᪶.𞤳\U00093896\U000bb252ߗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᪶.𞤳\U00093896\U000bb252ߗ', strict=True) + + def test_uts46_4175(self): + self.assertRaises(idna.IDNAError, idna.decode, '᪶.𞤳\U00093896\U000bb252ߗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᪶.𞤳\U00093896\U000bb252ߗ', strict=True) + + def test_uts46_4176(self): + self.assertRaises(idna.IDNAError, idna.decode, '᪶.𞤑\U00093896\U000bb252ߗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᪶.𞤑\U00093896\U000bb252ߗ', strict=True) + + def test_uts46_4177(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zqf.xn--ysb9657vuiz5bj0ep', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zqf.xn--ysb9657vuiz5bj0ep', strict=True) + + def test_uts46_4178(self): + self.assertRaises(idna.IDNAError, idna.decode, '᪶.𞤑\U00093896\U000bb252ߗ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᪶.𞤑\U00093896\U000bb252ߗ', strict=True) + + def test_uts46_4179(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡂ\U0001ea5a⒈.\U000e0b0c8\U0008fccfݰ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡂ\U0001ea5a⒈.\U000e0b0c8\U0008fccfݰ', strict=True) + + def test_uts46_4180(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡂ\U0001ea5a1..\U000e0b0c8\U0008fccfݰ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡂ\U0001ea5a1..\U000e0b0c8\U0008fccfݰ', strict=True) + + def test_uts46_4181(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-rid26318a..xn--8-s5c22427ox454a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-rid26318a..xn--8-s5c22427ox454a', strict=True) + + def test_uts46_4182(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0vb095ldg52a.xn--8-s5c22427ox454a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0vb095ldg52a.xn--8-s5c22427ox454a', strict=True) + + def test_uts46_4183(self): + self.assertRaises(idna.IDNAError, idna.decode, '͡𐫫ͩᡷ。-\U000e0c1b鞰', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '͡𐫫ͩᡷ。-\U000e0c1b鞰', strict=True) + + def test_uts46_4184(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cvaq482npv5t.xn----yg7dt1332g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cvaq482npv5t.xn----yg7dt1332g', strict=True) + + def test_uts46_4185(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.્剘ß𐫃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.્剘ß𐫃', strict=True) + + def test_uts46_4186(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.્剘SS𐫃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.્剘SS𐫃', strict=True) + + def test_uts46_4187(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.્剘ss𐫃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.્剘ss𐫃', strict=True) + + def test_uts46_4188(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.્剘Ss𐫃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.્剘Ss𐫃', strict=True) + + def test_uts46_4189(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--ss-bqg4734erywk', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--ss-bqg4734erywk', strict=True) + + def test_uts46_4190(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--zca791c493duf8i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--zca791c493duf8i', strict=True) + + def test_uts46_4191(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣻ\U0001ed78。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣻ\U0001ed78。-', strict=True) + + def test_uts46_4192(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࣻ\U0001ed78。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࣻ\U0001ed78。-', strict=True) + + def test_uts46_4193(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b1b2719v.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b1b2719v.-', strict=True) + + def test_uts46_4194(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈\U000e023b𐹲。≠\u0603𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈\U000e023b𐹲。≠\u0603𐹽', strict=True) + + def test_uts46_4195(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈\U000e023b𐹲。≠\u0603𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈\U000e023b𐹲。≠\u0603𐹽', strict=True) + + def test_uts46_4196(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.\U000e023b𐹲。≠\u0603𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.\U000e023b𐹲。≠\u0603𐹽', strict=True) + + def test_uts46_4197(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.\U000e023b𐹲。≠\u0603𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.\U000e023b𐹲。≠\u0603𐹽', strict=True) + + def test_uts46_4198(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--qo0dl3077c.xn--lfb536lb35n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--qo0dl3077c.xn--lfb536lb35n', strict=True) + + def test_uts46_4199(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tshw766f1153g.xn--lfb536lb35n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tshw766f1153g.xn--lfb536lb35n', strict=True) + + def test_uts46_4200(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹢\U000e021aႮ\u200c.㖾𐹡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹢\U000e021aႮ\u200c.㖾𐹡', strict=True) + + def test_uts46_4201(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹢\U000e021aⴎ\u200c.㖾𐹡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹢\U000e021aⴎ\u200c.㖾𐹡', strict=True) + + def test_uts46_4202(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5kjx323em053g.xn--pelu572d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5kjx323em053g.xn--pelu572d', strict=True) + + def test_uts46_4203(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug342clq0pqxv4i.xn--pelu572d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug342clq0pqxv4i.xn--pelu572d', strict=True) + + def test_uts46_4204(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mnd9001km0o0g.xn--pelu572d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mnd9001km0o0g.xn--pelu572d', strict=True) + + def test_uts46_4205(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mnd289ezj4pqxp0i.xn--pelu572d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mnd289ezj4pqxp0i.xn--pelu572d', strict=True) + + def test_uts46_4206(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a9f17.߇ᡖႳႧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a9f17.߇ᡖႳႧ', strict=True) + + def test_uts46_4207(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a9f17.߇ᡖႳႧ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a9f17.߇ᡖႳႧ', strict=True) + + def test_uts46_4208(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a9f17.߇ᡖⴓⴇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a9f17.߇ᡖⴓⴇ', strict=True) + + def test_uts46_4209(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--te28c.xn--isb295fbtpmb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--te28c.xn--isb295fbtpmb', strict=True) + + def test_uts46_4210(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a9f17.߇ᡖⴓⴇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a9f17.߇ᡖⴓⴇ', strict=True) + + def test_uts46_4211(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--te28c.xn--isb856b9a631d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--te28c.xn--isb856b9a631d', strict=True) + + def test_uts46_4212(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a9f17.߇ᡖႳⴇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a9f17.߇ᡖႳⴇ', strict=True) + + def test_uts46_4213(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--te28c.xn--isb286btrgo7w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--te28c.xn--isb286btrgo7w', strict=True) + + def test_uts46_4214(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a9f17.߇ᡖႳⴇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a9f17.߇ᡖႳⴇ', strict=True) + + def test_uts46_4215(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\U00105349.ڳݵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\U00105349.ڳݵ', strict=True) + + def test_uts46_4216(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3j78f.xn--mkb20b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3j78f.xn--mkb20b', strict=True) + + def test_uts46_4217(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug39444n.xn--mkb20b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug39444n.xn--mkb20b', strict=True) + + def test_uts46_4218(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00032931⒛⾳.ꡦ⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00032931⒛⾳.ꡦ⒈', strict=True) + + def test_uts46_4219(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003293120.音.ꡦ1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003293120.音.ꡦ1.', strict=True) + + def test_uts46_4220(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--20-9802c.xn--0w5a.xn--1-eg4e.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--20-9802c.xn--0w5a.xn--1-eg4e.', strict=True) + + def test_uts46_4221(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dth6033bzbvx.xn--tsh9439b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dth6033bzbvx.xn--tsh9439b', strict=True) + + def test_uts46_4222(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߜ8\U00073993-。\U0009ec99𑁿𐩥্', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߜ8\U00073993-。\U0009ec99𑁿𐩥্', strict=True) + + def test_uts46_4223(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߜ8\U00073993-。\U0009ec99𑁿𐩥্', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߜ8\U00073993-。\U0009ec99𑁿𐩥্', strict=True) + + def test_uts46_4224(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8--rve13079p.xn--b7b9842k42df776x', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8--rve13079p.xn--b7b9842k42df776x', strict=True) + + def test_uts46_4225(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴕ。۰≮ß݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴕ。۰≮ß݅', strict=True) + + def test_uts46_4226(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴕ。۰≮ß݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴕ。۰≮ß݅', strict=True) + + def test_uts46_4227(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴕ。۰≮ß݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴕ。۰≮ß݅', strict=True) + + def test_uts46_4228(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴕ。۰≮ß݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴕ。۰≮ß݅', strict=True) + + def test_uts46_4229(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴕ。۰≮SS݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴕ。۰≮SS݅', strict=True) + + def test_uts46_4230(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴕ。۰≮SS݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴕ。۰≮SS݅', strict=True) + + def test_uts46_4231(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴕ。۰≮ss݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴕ。۰≮ss݅', strict=True) + + def test_uts46_4232(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴕ。۰≮ss݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴕ。۰≮ss݅', strict=True) + + def test_uts46_4233(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴕ。۰≮Ss݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴕ。۰≮Ss݅', strict=True) + + def test_uts46_4234(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴕ。۰≮Ss݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴕ。۰≮Ss݅', strict=True) + + def test_uts46_4235(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dlj.xn--ss-jbe65aw27i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dlj.xn--ss-jbe65aw27i', strict=True) + + def test_uts46_4236(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴕ.۰≮ss݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴕ.۰≮ss݅', strict=True) + + def test_uts46_4237(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴕ.۰≮ss݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴕ.۰≮ss݅', strict=True) + + def test_uts46_4238(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴕ.۰≮SS݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴕ.۰≮SS݅', strict=True) + + def test_uts46_4239(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴕ.۰≮SS݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴕ.۰≮SS݅', strict=True) + + def test_uts46_4240(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴕ.۰≮Ss݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴕ.۰≮Ss݅', strict=True) + + def test_uts46_4241(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴕ.۰≮Ss݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴕ.۰≮Ss݅', strict=True) + + def test_uts46_4242(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dlj.xn--zca912alh227g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dlj.xn--zca912alh227g', strict=True) + + def test_uts46_4243(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴕ.۰≮ß݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴕ.۰≮ß݅', strict=True) + + def test_uts46_4244(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴕ.۰≮ß݅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴕ.۰≮ß݅', strict=True) + + def test_uts46_4245(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tnd.xn--ss-jbe65aw27i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tnd.xn--ss-jbe65aw27i', strict=True) + + def test_uts46_4246(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tnd.xn--zca912alh227g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tnd.xn--zca912alh227g', strict=True) + + def test_uts46_4247(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߩ-.𝨗꒱᭲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߩ-.𝨗꒱᭲', strict=True) + + def test_uts46_4248(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----odd.xn--dwf8994dc8wj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----odd.xn--dwf8994dc8wj', strict=True) + + def test_uts46_4249(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ef38\u200c.≯䕵⫧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ef38\u200c.≯䕵⫧', strict=True) + + def test_uts46_4250(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ef38\u200c.≯䕵⫧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ef38\u200c.≯䕵⫧', strict=True) + + def test_uts46_4251(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--sn7h.xn--hdh754ax6w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--sn7h.xn--hdh754ax6w', strict=True) + + def test_uts46_4252(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugx453p.xn--hdh754ax6w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugx453p.xn--hdh754ax6w', strict=True) + + def test_uts46_4253(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨅ßﱗ.ڬ۳︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨅ßﱗ.ڬ۳︒', strict=True) + + def test_uts46_4254(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨅ßيخ.ڬ۳。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨅ßيخ.ڬ۳。', strict=True) + + def test_uts46_4255(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨅SSيخ.ڬ۳。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨅SSيخ.ڬ۳。', strict=True) + + def test_uts46_4256(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨅ssيخ.ڬ۳。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨅ssيخ.ڬ۳。', strict=True) + + def test_uts46_4257(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨅Ssيخ.ڬ۳。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨅Ssيخ.ڬ۳。', strict=True) + + def test_uts46_4258(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-ytd5i7765l.xn--fkb6l.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-ytd5i7765l.xn--fkb6l.', strict=True) + + def test_uts46_4259(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca23yncs877j.xn--fkb6l.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca23yncs877j.xn--fkb6l.', strict=True) + + def test_uts46_4260(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨅SSﱗ.ڬ۳︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨅SSﱗ.ڬ۳︒', strict=True) + + def test_uts46_4261(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨅ssﱗ.ڬ۳︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨅ssﱗ.ڬ۳︒', strict=True) + + def test_uts46_4262(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐨅Ssﱗ.ڬ۳︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐨅Ssﱗ.ڬ۳︒', strict=True) + + def test_uts46_4263(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-ytd5i7765l.xn--fkb6lp314e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-ytd5i7765l.xn--fkb6lp314e', strict=True) + + def test_uts46_4264(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca23yncs877j.xn--fkb6lp314e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca23yncs877j.xn--fkb6lp314e', strict=True) + + def test_uts46_4265(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≮🡒᳭.\U0004fffeႡܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≮🡒᳭.\U0004fffeႡܔ', strict=True) + + def test_uts46_4266(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≮🡒᳭.\U0004fffeႡܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≮🡒᳭.\U0004fffeႡܔ', strict=True) + + def test_uts46_4267(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≮🡒᳭.\U0004fffeⴁܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≮🡒᳭.\U0004fffeⴁܔ', strict=True) + + def test_uts46_4268(self): + self.assertRaises(idna.IDNAError, idna.decode, '-≮🡒᳭.\U0004fffeⴁܔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-≮🡒᳭.\U0004fffeⴁܔ', strict=True) + + def test_uts46_4269(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----44l04zxt68c.xn--enb135qf106f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----44l04zxt68c.xn--enb135qf106f', strict=True) + + def test_uts46_4270(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----44l04zxt68c.xn--enb300c1597h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----44l04zxt68c.xn--enb300c1597h', strict=True) + + def test_uts46_4271(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤨。ꡏ\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤨。ꡏ\u200d\u200c', strict=True) + + def test_uts46_4272(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤨。ꡏ\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤨。ꡏ\u200d\u200c', strict=True) + + def test_uts46_4273(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤆。ꡏ\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤆。ꡏ\u200d\u200c', strict=True) + + def test_uts46_4274(self): + self.assertEqual(idna.decode('xn--ge6h.xn--oc9a', uts46=True, strict=True), '𞤨.ꡏ') + self.assertEqual(idna.encode('xn--ge6h.xn--oc9a', uts46=True, strict=True), b'xn--ge6h.xn--oc9a') + + def test_uts46_4275(self): + self.assertEqual(idna.decode('𞤨.ꡏ', uts46=True, strict=True), '𞤨.ꡏ') + self.assertEqual(idna.encode('𞤨.ꡏ', uts46=True, strict=True), b'xn--ge6h.xn--oc9a') + + def test_uts46_4276(self): + self.assertEqual(idna.decode('𞤆.ꡏ', uts46=True, strict=True), '𞤨.ꡏ') + self.assertEqual(idna.encode('𞤆.ꡏ', uts46=True, strict=True), b'xn--ge6h.xn--oc9a') + + def test_uts46_4277(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ge6h.xn--0ugb9575h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ge6h.xn--0ugb9575h', strict=True) + + def test_uts46_4278(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤆。ꡏ\u200d\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤆。ꡏ\u200d\u200c', strict=True) + + def test_uts46_4279(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅹𑂶.ᢌ𑂹٩', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅹𑂶.ᢌ𑂹٩', strict=True) + + def test_uts46_4280(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅹𑂶.ᢌ𑂹٩', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅹𑂶.ᢌ𑂹٩', strict=True) + + def test_uts46_4281(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b50d.xn--iib993gyp5p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b50d.xn--iib993gyp5p', strict=True) + + def test_uts46_4282(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⅎ󠅺\U0005dd52。≯⾑', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⅎ󠅺\U0005dd52。≯⾑', strict=True) + + def test_uts46_4283(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⅎ󠅺\U0005dd52。≯⾑', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⅎ󠅺\U0005dd52。≯⾑', strict=True) + + def test_uts46_4284(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⅎ󠅺\U0005dd52。≯襾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⅎ󠅺\U0005dd52。≯襾', strict=True) + + def test_uts46_4285(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⅎ󠅺\U0005dd52。≯襾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⅎ󠅺\U0005dd52。≯襾', strict=True) + + def test_uts46_4286(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⅎ󠅺\U0005dd52。≯襾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⅎ󠅺\U0005dd52。≯襾', strict=True) + + def test_uts46_4287(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⅎ󠅺\U0005dd52。≯襾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⅎ󠅺\U0005dd52。≯襾', strict=True) + + def test_uts46_4288(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--73g39298c.xn--hdhz171b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--73g39298c.xn--hdhz171b', strict=True) + + def test_uts46_4289(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⅎ󠅺\U0005dd52。≯⾑', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⅎ󠅺\U0005dd52。≯⾑', strict=True) + + def test_uts46_4290(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⅎ󠅺\U0005dd52。≯⾑', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⅎ󠅺\U0005dd52。≯⾑', strict=True) + + def test_uts46_4291(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--f3g73398c.xn--hdhz171b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--f3g73398c.xn--hdhz171b', strict=True) + + def test_uts46_4292(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς\u200dු٠。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς\u200dු٠。-', strict=True) + + def test_uts46_4293(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς\u200dු٠。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς\u200dු٠。-', strict=True) + + def test_uts46_4294(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ\u200dු٠。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ\u200dු٠。-', strict=True) + + def test_uts46_4295(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ\u200dු٠。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ\u200dු٠。-', strict=True) + + def test_uts46_4296(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa25ks2j.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa25ks2j.-', strict=True) + + def test_uts46_4297(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa25ks2jenu.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa25ks2jenu.-', strict=True) + + def test_uts46_4298(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa45ks2jenu.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa45ks2jenu.-', strict=True) + + def test_uts46_4299(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ\u200dු٠。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ\u200dු٠。-', strict=True) + + def test_uts46_4300(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ\u200dු٠。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ\u200dු٠。-', strict=True) + + def test_uts46_4301(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.ßႩ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.ßႩ-', strict=True) + + def test_uts46_4302(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.ßⴉ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.ßⴉ-', strict=True) + + def test_uts46_4303(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.SSႩ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.SSႩ-', strict=True) + + def test_uts46_4304(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.ssⴉ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.ssⴉ-', strict=True) + + def test_uts46_4305(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.Ssⴉ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.Ssⴉ-', strict=True) + + def test_uts46_4306(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--ss--bi1b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--ss--bi1b', strict=True) + + def test_uts46_4307(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--ss--bi1b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--ss--bi1b', strict=True) + + def test_uts46_4308(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn----pfa2305a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn----pfa2305a', strict=True) + + def test_uts46_4309(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--ss--4rn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--ss--4rn', strict=True) + + def test_uts46_4310(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--ss--4rn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--ss--4rn', strict=True) + + def test_uts46_4311(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn----pfa042j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn----pfa042j', strict=True) + + def test_uts46_4312(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000cdb72𐫍㓱。⾑', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000cdb72𐫍㓱。⾑', strict=True) + + def test_uts46_4313(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000cdb72𐫍㓱。襾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000cdb72𐫍㓱。襾', strict=True) + + def test_uts46_4314(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--u7kt691dlj09f.xn--9v2a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--u7kt691dlj09f.xn--9v2a', strict=True) + + def test_uts46_4315(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڠ𐮋𐹰≮。≯\U000e0997\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڠ𐮋𐹰≮。≯\U000e0997\u200d', strict=True) + + def test_uts46_4316(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڠ𐮋𐹰≮。≯\U000e0997\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڠ𐮋𐹰≮。≯\U000e0997\u200d', strict=True) + + def test_uts46_4317(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2jb053lf13nyoc.xn--hdh08821l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2jb053lf13nyoc.xn--hdh08821l', strict=True) + + def test_uts46_4318(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2jb053lf13nyoc.xn--1ugx6gc8096c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2jb053lf13nyoc.xn--1ugx6gc8096c', strict=True) + + def test_uts46_4319(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟞。\U00043c36ݷࢰ⩋', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟞。\U00043c36ݷࢰ⩋', strict=True) + + def test_uts46_4320(self): + self.assertRaises(idna.IDNAError, idna.decode, '6。\U00043c36ݷࢰ⩋', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6。\U00043c36ݷࢰ⩋', strict=True) + + def test_uts46_4321(self): + self.assertRaises(idna.IDNAError, idna.decode, '6.xn--7pb04do15eq748f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6.xn--7pb04do15eq748f', strict=True) + + def test_uts46_4322(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ﳽ。𑇀𑍴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ﳽ。𑇀𑍴', strict=True) + + def test_uts46_4323(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ﳽ。𑇀𑍴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ﳽ。𑇀𑍴', strict=True) + + def test_uts46_4324(self): + self.assertRaises(idna.IDNAError, idna.decode, '-شى。𑇀𑍴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-شى。𑇀𑍴', strict=True) + + def test_uts46_4325(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qnc7d.xn--wd1d62a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qnc7d.xn--wd1d62a', strict=True) + + def test_uts46_4326(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000e02b6𝟏.ൃ\U000aa950𐹬\U000ca4f6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000e02b6𝟏.ൃ\U000aa950𐹬\U000ca4f6', strict=True) + + def test_uts46_4327(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000e02b61.ൃ\U000aa950𐹬\U000ca4f6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000e02b61.ൃ\U000aa950𐹬\U000ca4f6', strict=True) + + def test_uts46_4328(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-f521m.xn--mxc0872kcu37dnmem', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-f521m.xn--mxc0872kcu37dnmem', strict=True) + + def test_uts46_4329(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-rgnu0071n.xn--mxc0872kcu37dnmem', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-rgnu0071n.xn--mxc0872kcu37dnmem', strict=True) + + def test_uts46_4330(self): + self.assertEqual(idna.decode('齙--𝟰.ß', uts46=True, strict=True), '齙--4.ß') + self.assertEqual(idna.encode('齙--𝟰.ß', uts46=True, strict=True), b'xn----4-p16k.xn--zca') + + def test_uts46_4331(self): + self.assertEqual(idna.decode('齙--4.ß', uts46=True, strict=True), '齙--4.ß') + self.assertEqual(idna.encode('齙--4.ß', uts46=True, strict=True), b'xn----4-p16k.xn--zca') + + def test_uts46_4332(self): + self.assertEqual(idna.decode('齙--4.SS', uts46=True, strict=True), '齙--4.ss') + self.assertEqual(idna.encode('齙--4.SS', uts46=True, strict=True), b'xn----4-p16k.ss') + + def test_uts46_4333(self): + self.assertEqual(idna.decode('齙--4.ss', uts46=True, strict=True), '齙--4.ss') + self.assertEqual(idna.encode('齙--4.ss', uts46=True, strict=True), b'xn----4-p16k.ss') + + def test_uts46_4334(self): + self.assertEqual(idna.decode('齙--4.Ss', uts46=True, strict=True), '齙--4.ss') + self.assertEqual(idna.encode('齙--4.Ss', uts46=True, strict=True), b'xn----4-p16k.ss') + + def test_uts46_4335(self): + self.assertEqual(idna.decode('xn----4-p16k.ss', uts46=True, strict=True), '齙--4.ss') + self.assertEqual(idna.encode('xn----4-p16k.ss', uts46=True, strict=True), b'xn----4-p16k.ss') + + def test_uts46_4336(self): + self.assertEqual(idna.decode('xn----4-p16k.xn--zca', uts46=True, strict=True), '齙--4.ß') + self.assertEqual(idna.encode('xn----4-p16k.xn--zca', uts46=True, strict=True), b'xn----4-p16k.xn--zca') + + def test_uts46_4337(self): + self.assertEqual(idna.decode('齙--𝟰.SS', uts46=True, strict=True), '齙--4.ss') + self.assertEqual(idna.encode('齙--𝟰.SS', uts46=True, strict=True), b'xn----4-p16k.ss') + + def test_uts46_4338(self): + self.assertEqual(idna.decode('齙--𝟰.ss', uts46=True, strict=True), '齙--4.ss') + self.assertEqual(idna.encode('齙--𝟰.ss', uts46=True, strict=True), b'xn----4-p16k.ss') + + def test_uts46_4339(self): + self.assertEqual(idna.decode('齙--𝟰.Ss', uts46=True, strict=True), '齙--4.ss') + self.assertEqual(idna.encode('齙--𝟰.Ss', uts46=True, strict=True), b'xn----4-p16k.ss') + + def test_uts46_4340(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯲.𐹢𞀖\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯲.𐹢𞀖\u200c', strict=True) + + def test_uts46_4341(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0zf.xn--9n0d2296a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0zf.xn--9n0d2296a', strict=True) + + def test_uts46_4342(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0zf.xn--0ug9894grqqf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0zf.xn--0ug9894grqqf', strict=True) + + def test_uts46_4343(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c3c99\U000e02d8。?-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c3c99\U000e02d8。?-\u200d', strict=True) + + def test_uts46_4344(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c3c99\U000e02d8。?-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c3c99\U000e02d8。?-\u200d', strict=True) + + def test_uts46_4345(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ct86d8w51a.?-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ct86d8w51a.?-', strict=True) + + def test_uts46_4346(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ct86d8w51a.xn--?--n1t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ct86d8w51a.xn--?--n1t', strict=True) + + def test_uts46_4347(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ct86d8w51a.?-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ct86d8w51a.?-\u200d', strict=True) + + def test_uts46_4348(self): + self.assertRaises(idna.IDNAError, idna.decode, 'XN--CT86D8W51A.?-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'XN--CT86D8W51A.?-\u200d', strict=True) + + def test_uts46_4349(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--Ct86d8w51a.?-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--Ct86d8w51a.?-\u200d', strict=True) + + def test_uts46_4350(self): + self.assertRaises(idna.IDNAError, idna.decode, '᩠.\U0001ed77-𝪩悎', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᩠.\U0001ed77-𝪩悎', strict=True) + + def test_uts46_4351(self): + self.assertRaises(idna.IDNAError, idna.decode, '᩠.\U0001ed77-𝪩悎', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᩠.\U0001ed77-𝪩悎', strict=True) + + def test_uts46_4352(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jof.xn----gf4bq282iezpa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jof.xn----gf4bq282iezpa', strict=True) + + def test_uts46_4353(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001b72f\U000e029b.𞤳\U0004f97e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001b72f\U000e029b.𞤳\U0004f97e', strict=True) + + def test_uts46_4354(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001b72f\U000e029b.𞤳\U0004f97e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001b72f\U000e029b.𞤳\U0004f97e', strict=True) + + def test_uts46_4355(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001b72f\U000e029b.𞤑\U0004f97e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001b72f\U000e029b.𞤑\U0004f97e', strict=True) + + def test_uts46_4356(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xx5gy2741c.xn--re6hw266j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xx5gy2741c.xn--re6hw266j', strict=True) + + def test_uts46_4357(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001b72f\U000e029b.𞤑\U0004f97e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001b72f\U000e029b.𞤑\U0004f97e', strict=True) + + def test_uts46_4358(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܜ𐫒خ.𐋲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܜ𐫒خ.𐋲', strict=True) + + def test_uts46_4359(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tgb98b8643d.xn--m97c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tgb98b8643d.xn--m97c', strict=True) + + def test_uts46_4360(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐼑𞤓ط\u08e2.?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐼑𞤓ط\u08e2.?', strict=True) + + def test_uts46_4361(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐼑𞤵ط\u08e2.?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐼑𞤵ط\u08e2.?', strict=True) + + def test_uts46_4362(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2gb08k9w69agm0g.?', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2gb08k9w69agm0g.?', strict=True) + + def test_uts46_4363(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ↄ。᳔੍\U0001ede3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ↄ。᳔੍\U0001ede3', strict=True) + + def test_uts46_4364(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ↄ。᳔੍\U0001ede3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ↄ。᳔੍\U0001ede3', strict=True) + + def test_uts46_4365(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ↄ。᳔੍\U0001ede3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ↄ。᳔੍\U0001ede3', strict=True) + + def test_uts46_4366(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--r5g.xn--ybc995g0835a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--r5g.xn--ybc995g0835a', strict=True) + + def test_uts46_4367(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ↄ。᳔੍\U0001ede3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ↄ。᳔੍\U0001ede3', strict=True) + + def test_uts46_4368(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--q5g.xn--ybc995g0835a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--q5g.xn--ybc995g0835a', strict=True) + + def test_uts46_4369(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0aa2-。\U0009b08f≮𑜫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0aa2-。\U0009b08f≮𑜫', strict=True) + + def test_uts46_4370(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0aa2-。\U0009b08f≮𑜫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0aa2-。\U0009b08f≮𑜫', strict=True) + + def test_uts46_4371(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----bh61m.xn--gdhz157g0em1d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----bh61m.xn--gdhz157g0em1d', strict=True) + + def test_uts46_4372(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000e0279\u200d。\U0008cfe7≮Ⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000e0279\u200d。\U0008cfe7≮Ⴉ', strict=True) + + def test_uts46_4373(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000e0279\u200d。\U0008cfe7≮Ⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000e0279\u200d。\U0008cfe7≮Ⴉ', strict=True) + + def test_uts46_4374(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000e0279\u200d。\U0008cfe7≮ⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000e0279\u200d。\U0008cfe7≮ⴉ', strict=True) + + def test_uts46_4375(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000e0279\u200d。\U0008cfe7≮ⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000e0279\u200d。\U0008cfe7≮ⴉ', strict=True) + + def test_uts46_4376(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3n36e.xn--gdh992byu01p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3n36e.xn--gdh992byu01p', strict=True) + + def test_uts46_4377(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugc90904y.xn--gdh992byu01p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugc90904y.xn--gdh992byu01p', strict=True) + + def test_uts46_4378(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3n36e.xn--hnd112gpz83n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3n36e.xn--hnd112gpz83n', strict=True) + + def test_uts46_4379(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugc90904y.xn--hnd112gpz83n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugc90904y.xn--hnd112gpz83n', strict=True) + + def test_uts46_4380(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹯-𑄴ࢼ。︒䖐⾆', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹯-𑄴ࢼ。︒䖐⾆', strict=True) + + def test_uts46_4381(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹯-𑄴ࢼ。。䖐舌', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹯-𑄴ࢼ。。䖐舌', strict=True) + + def test_uts46_4382(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----rpd7902rclc..xn--fpo216m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----rpd7902rclc..xn--fpo216m', strict=True) + + def test_uts46_4383(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----rpd7902rclc.xn--fpo216mn07e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----rpd7902rclc.xn--fpo216mn07e', strict=True) + + def test_uts46_4384(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪞Ⴐ。쪡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪞Ⴐ。쪡', strict=True) + + def test_uts46_4385(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪞Ⴐ。쪡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪞Ⴐ。쪡', strict=True) + + def test_uts46_4386(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪞Ⴐ。쪡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪞Ⴐ。쪡', strict=True) + + def test_uts46_4387(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪞Ⴐ。쪡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪞Ⴐ。쪡', strict=True) + + def test_uts46_4388(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪞ⴐ。쪡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪞ⴐ。쪡', strict=True) + + def test_uts46_4389(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪞ⴐ。쪡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪞ⴐ。쪡', strict=True) + + def test_uts46_4390(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7kj1858k.xn--pi6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7kj1858k.xn--pi6b', strict=True) + + def test_uts46_4391(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪞ⴐ。쪡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪞ⴐ。쪡', strict=True) + + def test_uts46_4392(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝪞ⴐ。쪡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝪞ⴐ。쪡', strict=True) + + def test_uts46_4393(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ond3755u.xn--pi6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ond3755u.xn--pi6b', strict=True) + + def test_uts46_4394(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ฺ쩁𐹬.\U0010b273', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ฺ쩁𐹬.\U0010b273', strict=True) + + def test_uts46_4395(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ฺ쩁𐹬.\U0010b273', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ฺ쩁𐹬.\U0010b273', strict=True) + + def test_uts46_4396(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--o4c4837g2zvb.xn--5f70g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--o4c4837g2zvb.xn--5f70g', strict=True) + + def test_uts46_4397(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡅ0\u200c。⎢\U000e4a04', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡅ0\u200c。⎢\U000e4a04', strict=True) + + def test_uts46_4398(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡅ0\u200c。⎢\U000e4a04', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡅ0\u200c。⎢\U000e4a04', strict=True) + + def test_uts46_4399(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0-z6j.xn--8lh28773l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0-z6j.xn--8lh28773l', strict=True) + + def test_uts46_4400(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0-z6jy93b.xn--8lh28773l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0-z6jy93b.xn--8lh28773l', strict=True) + + def test_uts46_4401(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00032b9a9ꍩ៓.\u200dß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00032b9a9ꍩ៓.\u200dß', strict=True) + + def test_uts46_4402(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00032b9a9ꍩ៓.\u200dß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00032b9a9ꍩ៓.\u200dß', strict=True) + + def test_uts46_4403(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00032b9a9ꍩ៓.\u200dSS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00032b9a9ꍩ៓.\u200dSS', strict=True) + + def test_uts46_4404(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00032b9a9ꍩ៓.\u200dss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00032b9a9ꍩ៓.\u200dss', strict=True) + + def test_uts46_4405(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-i0j5967eg3qz.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-i0j5967eg3qz.ss', strict=True) + + def test_uts46_4406(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-i0j5967eg3qz.xn--ss-l1t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-i0j5967eg3qz.xn--ss-l1t', strict=True) + + def test_uts46_4407(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-i0j5967eg3qz.xn--zca770n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-i0j5967eg3qz.xn--zca770n', strict=True) + + def test_uts46_4408(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00032b9a9ꍩ៓.\u200dSS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00032b9a9ꍩ៓.\u200dSS', strict=True) + + def test_uts46_4409(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00032b9a9ꍩ៓.\u200dss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00032b9a9ꍩ៓.\u200dss', strict=True) + + def test_uts46_4410(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00032b9a9ꍩ៓.\u200dSs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00032b9a9ꍩ៓.\u200dSs', strict=True) + + def test_uts46_4411(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00032b9a9ꍩ៓.\u200dSs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00032b9a9ꍩ៓.\u200dSs', strict=True) + + def test_uts46_4412(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꗷ𑆀.ݝ𐩒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꗷ𑆀.ݝ𐩒', strict=True) + + def test_uts46_4413(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ju8a625r.xn--hpb0073k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ju8a625r.xn--hpb0073k', strict=True) + + def test_uts46_4414(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒐≯-。︒\U000a9463-\U0005e6e0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒐≯-。︒\U000a9463-\U0005e6e0', strict=True) + + def test_uts46_4415(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒐≯-。︒\U000a9463-\U0005e6e0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒐≯-。︒\U000a9463-\U0005e6e0', strict=True) + + def test_uts46_4416(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.≯-。。\U000a9463-\U0005e6e0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.≯-。。\U000a9463-\U0005e6e0', strict=True) + + def test_uts46_4417(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.≯-。。\U000a9463-\U0005e6e0', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.≯-。。\U000a9463-\U0005e6e0', strict=True) + + def test_uts46_4418(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.xn----ogo..xn----xj54d1s69k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.xn----ogo..xn----xj54d1s69k', strict=True) + + def test_uts46_4419(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ogot9g.xn----n89hl0522az9u2a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ogot9g.xn----n89hl0522az9u2a', strict=True) + + def test_uts46_4420(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00088a9aೣჁ\U000e088f.؝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00088a9aೣჁ\U000e088f.؝', strict=True) + + def test_uts46_4421(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00088a9aೣჁ\U000e088f.؝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00088a9aೣჁ\U000e088f.؝', strict=True) + + def test_uts46_4422(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00088a9aೣⴡ\U000e088f.؝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00088a9aೣⴡ\U000e088f.؝', strict=True) + + def test_uts46_4423(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vuc226n8n28lmju7a.xn--cgb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vuc226n8n28lmju7a.xn--cgb', strict=True) + + def test_uts46_4424(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00088a9aೣⴡ\U000e088f.؝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00088a9aೣⴡ\U000e088f.؝', strict=True) + + def test_uts46_4425(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vuc49qvu85xmju7a.xn--cgb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vuc49qvu85xmju7a.xn--cgb', strict=True) + + def test_uts46_4426(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᷫ。𐋩ظ-𐫮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᷫ。𐋩ظ-𐫮', strict=True) + + def test_uts46_4427(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gfg.xn----xnc0815qyyg', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gfg.xn----xnc0815qyyg', strict=True) + + def test_uts46_4428(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。⾇𐳋Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。⾇𐳋Ⴝ', strict=True) + + def test_uts46_4429(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。⾇𐳋Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。⾇𐳋Ⴝ', strict=True) + + def test_uts46_4430(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。舛𐳋Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。舛𐳋Ⴝ', strict=True) + + def test_uts46_4431(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。舛𐳋Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。舛𐳋Ⴝ', strict=True) + + def test_uts46_4432(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。舛𐳋ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。舛𐳋ⴝ', strict=True) + + def test_uts46_4433(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。舛𐳋ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。舛𐳋ⴝ', strict=True) + + def test_uts46_4434(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。舛𐲋Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。舛𐲋Ⴝ', strict=True) + + def test_uts46_4435(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。舛𐲋Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。舛𐲋Ⴝ', strict=True) + + def test_uts46_4436(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。舛𐲋ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。舛𐲋ⴝ', strict=True) + + def test_uts46_4437(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。舛𐲋ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。舛𐲋ⴝ', strict=True) + + def test_uts46_4438(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9u4b.xn--llj123yh74e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9u4b.xn--llj123yh74e', strict=True) + + def test_uts46_4439(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。⾇𐳋ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。⾇𐳋ⴝ', strict=True) + + def test_uts46_4440(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。⾇𐳋ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。⾇𐳋ⴝ', strict=True) + + def test_uts46_4441(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。⾇𐲋Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。⾇𐲋Ⴝ', strict=True) + + def test_uts46_4442(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。⾇𐲋Ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。⾇𐲋Ⴝ', strict=True) + + def test_uts46_4443(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。⾇𐲋ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。⾇𐲋ⴝ', strict=True) + + def test_uts46_4444(self): + self.assertRaises(idna.IDNAError, idna.decode, '싇。⾇𐲋ⴝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '싇。⾇𐲋ⴝ', strict=True) + + def test_uts46_4445(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9u4b.xn--1nd7519ch79d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9u4b.xn--1nd7519ch79d', strict=True) + + def test_uts46_4446(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹠ς。\u200cڿჀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹠ς。\u200cڿჀ', strict=True) + + def test_uts46_4447(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹠ς。\u200cڿⴠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹠ς。\u200cڿⴠ', strict=True) + + def test_uts46_4448(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹠Σ。\u200cڿჀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹠Σ。\u200cڿჀ', strict=True) + + def test_uts46_4449(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹠σ。\u200cڿⴠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹠σ。\u200cڿⴠ', strict=True) + + def test_uts46_4450(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹠Σ。\u200cڿⴠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹠Σ。\u200cڿⴠ', strict=True) + + def test_uts46_4451(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa9167k.xn--ykb467q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa9167k.xn--ykb467q', strict=True) + + def test_uts46_4452(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa9167k.xn--ykb760k9hj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa9167k.xn--ykb760k9hj', strict=True) + + def test_uts46_4453(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa1267k.xn--ykb760k9hj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa1267k.xn--ykb760k9hj', strict=True) + + def test_uts46_4454(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa9167k.xn--ykb632c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa9167k.xn--ykb632c', strict=True) + + def test_uts46_4455(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa9167k.xn--ykb632cvxm', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa9167k.xn--ykb632cvxm', strict=True) + + def test_uts46_4456(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa1267k.xn--ykb632cvxm', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa1267k.xn--ykb632cvxm', strict=True) + + def test_uts46_4457(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00087490\u200c\u0604.ښ-ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00087490\u200c\u0604.ښ-ß', strict=True) + + def test_uts46_4458(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00087490\u200c\u0604.ښ-SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00087490\u200c\u0604.ښ-SS', strict=True) + + def test_uts46_4459(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00087490\u200c\u0604.ښ-ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00087490\u200c\u0604.ښ-ss', strict=True) + + def test_uts46_4460(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00087490\u200c\u0604.ښ-Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00087490\u200c\u0604.ښ-Ss', strict=True) + + def test_uts46_4461(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mfb98261i.xn---ss-sdf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mfb98261i.xn---ss-sdf', strict=True) + + def test_uts46_4462(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mfb144kqo32m.xn---ss-sdf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mfb144kqo32m.xn---ss-sdf', strict=True) + + def test_uts46_4463(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mfb144kqo32m.xn----qfa315b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mfb144kqo32m.xn----qfa315b', strict=True) + + def test_uts46_4464(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200d឵ٺ.-ﮰ\U000c511e\U00010e1a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200d឵ٺ.-ﮰ\U000c511e\U00010e1a', strict=True) + + def test_uts46_4465(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200d឵ٺ.-ۓ\U000c511e\U00010e1a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200d឵ٺ.-ۓ\U000c511e\U00010e1a', strict=True) + + def test_uts46_4466(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200d឵ٺ.-ۓ\U000c511e\U00010e1a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200d឵ٺ.-ۓ\U000c511e\U00010e1a', strict=True) + + def test_uts46_4467(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zib.xn----twc1133r17r6g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zib.xn----twc1133r17r6g', strict=True) + + def test_uts46_4468(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zib502kda.xn----twc1133r17r6g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zib502kda.xn----twc1133r17r6g', strict=True) + + def test_uts46_4469(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zib539f.xn----twc1133r17r6g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zib539f.xn----twc1133r17r6g', strict=True) + + def test_uts46_4470(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zib539f8igea.xn----twc1133r17r6g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zib539f8igea.xn----twc1133r17r6g', strict=True) + + def test_uts46_4471(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a1db1。𐮬≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a1db1。𐮬≠', strict=True) + + def test_uts46_4472(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a1db1。𐮬≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a1db1。𐮬≠', strict=True) + + def test_uts46_4473(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a1db1。𐮬≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a1db1。𐮬≠', strict=True) + + def test_uts46_4474(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a1db1。𐮬≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a1db1。𐮬≠', strict=True) + + def test_uts46_4475(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dd55c.xn--1ch3003g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dd55c.xn--1ch3003g', strict=True) + + def test_uts46_4476(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྲ\U0001ed85。𐹮𐹷덝۵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྲ\U0001ed85。𐹮𐹷덝۵', strict=True) + + def test_uts46_4477(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྲ\U0001ed85。𐹮𐹷덝۵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྲ\U0001ed85。𐹮𐹷덝۵', strict=True) + + def test_uts46_4478(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྲ\U0001ed85。𐹮𐹷덝۵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྲ\U0001ed85。𐹮𐹷덝۵', strict=True) + + def test_uts46_4479(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྲ\U0001ed85。𐹮𐹷덝۵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྲ\U0001ed85。𐹮𐹷덝۵', strict=True) + + def test_uts46_4480(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fgd0675v.xn--imb5839fidpcbba', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fgd0675v.xn--imb5839fidpcbba', strict=True) + + def test_uts46_4481(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴏ󠅋-.\u200dႩ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴏ󠅋-.\u200dႩ', strict=True) + + def test_uts46_4482(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴏ󠅋-.\u200dႩ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴏ󠅋-.\u200dႩ', strict=True) + + def test_uts46_4483(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴏ󠅋-.\u200dⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴏ󠅋-.\u200dⴉ', strict=True) + + def test_uts46_4484(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----3vs.xn--0kj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----3vs.xn--0kj', strict=True) + + def test_uts46_4485(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----3vs.xn--1ug532c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----3vs.xn--1ug532c', strict=True) + + def test_uts46_4486(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴏ󠅋-.\u200dⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴏ󠅋-.\u200dⴉ', strict=True) + + def test_uts46_4487(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----00g.xn--hnd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----00g.xn--hnd', strict=True) + + def test_uts46_4488(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----00g.xn--hnd399e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----00g.xn--hnd399e', strict=True) + + def test_uts46_4489(self): + self.assertRaises(idna.IDNAError, idna.decode, '⇧𐨏\U000e0f88\U000efd85。\u0600\U000e0235󠆉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⇧𐨏\U000e0f88\U000efd85。\u0600\U000e0235󠆉', strict=True) + + def test_uts46_4490(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l8g5552g64t4g46xf.xn--ifb08144p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l8g5552g64t4g46xf.xn--ifb08144p', strict=True) + + def test_uts46_4491(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠𐮂.↑🄇⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠𐮂.↑🄇⒈', strict=True) + + def test_uts46_4492(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠𐮂.↑🄇⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠𐮂.↑🄇⒈', strict=True) + + def test_uts46_4493(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠𐮂.↑6,1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠𐮂.↑6,1.', strict=True) + + def test_uts46_4494(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠𐮂.↑6,1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠𐮂.↑6,1.', strict=True) + + def test_uts46_4495(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1chy492g.xn--6,1-pw1a.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1chy492g.xn--6,1-pw1a.', strict=True) + + def test_uts46_4496(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1chy492g.xn--6,-uzus5m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1chy492g.xn--6,-uzus5m', strict=True) + + def test_uts46_4497(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1chy492g.xn--45gx9iuy44d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1chy492g.xn--45gx9iuy44d', strict=True) + + def test_uts46_4498(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝩏\U000e0c89ß.ᢤ\U0008498c\u200c𐹫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝩏\U000e0c89ß.ᢤ\U0008498c\u200c𐹫', strict=True) + + def test_uts46_4499(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝩏\U000e0c89SS.ᢤ\U0008498c\u200c𐹫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝩏\U000e0c89SS.ᢤ\U0008498c\u200c𐹫', strict=True) + + def test_uts46_4500(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝩏\U000e0c89ss.ᢤ\U0008498c\u200c𐹫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝩏\U000e0c89ss.ᢤ\U0008498c\u200c𐹫', strict=True) + + def test_uts46_4501(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝩏\U000e0c89Ss.ᢤ\U0008498c\u200c𐹫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝩏\U000e0c89Ss.ᢤ\U0008498c\u200c𐹫', strict=True) + + def test_uts46_4502(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-zb11ap1427e.xn--ubf2596jbt61c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-zb11ap1427e.xn--ubf2596jbt61c', strict=True) + + def test_uts46_4503(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-zb11ap1427e.xn--ubf609atw1tynn3d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-zb11ap1427e.xn--ubf609atw1tynn3d', strict=True) + + def test_uts46_4504(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca3153vupz3e.xn--ubf609atw1tynn3d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca3153vupz3e.xn--ubf609atw1tynn3d', strict=True) + + def test_uts46_4505(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + + def test_uts46_4506(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + + def test_uts46_4507(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\U00010d73\U00057601ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\U00010d73\U00057601ⴇ。ꙺ', strict=True) + + def test_uts46_4508(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS\U00010d53\U00057601Ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS\U00010d53\U00057601Ⴇ。ꙺ', strict=True) + + def test_uts46_4509(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss\U00010d73\U00057601ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss\U00010d73\U00057601ⴇ。ꙺ', strict=True) + + def test_uts46_4510(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + + def test_uts46_4511(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-e61ar955h4hs7b.xn--9x8a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-e61ar955h4hs7b.xn--9x8a', strict=True) + + def test_uts46_4512(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca227tpy4lkns1b.xn--9x8a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca227tpy4lkns1b.xn--9x8a', strict=True) + + def test_uts46_4513(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\U00010d73\U00057601ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\U00010d73\U00057601ⴇ。ꙺ', strict=True) + + def test_uts46_4514(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS\U00010d53\U00057601Ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS\U00010d53\U00057601Ⴇ。ꙺ', strict=True) + + def test_uts46_4515(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss\U00010d73\U00057601ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss\U00010d73\U00057601ⴇ。ꙺ', strict=True) + + def test_uts46_4516(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + + def test_uts46_4517(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + + def test_uts46_4518(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-rek7420r4hs7b.xn--9x8a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-rek7420r4hs7b.xn--9x8a', strict=True) + + def test_uts46_4519(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca491fci5qkn79a.xn--9x8a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca491fci5qkn79a.xn--9x8a', strict=True) + + def test_uts46_4520(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS\U00010d73\U00057601Ⴇ。ꙺ', strict=True) + + def test_uts46_4521(self): + self.assertRaises(idna.IDNAError, idna.decode, '᜔。󠆣-𑋪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᜔。󠆣-𑋪', strict=True) + + def test_uts46_4522(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fze.xn----ly8i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fze.xn----ly8i', strict=True) + + def test_uts46_4523(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꯨ-.\U000a83dcֽß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꯨ-.\U000a83dcֽß', strict=True) + + def test_uts46_4524(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꯨ-.\U000a83dcֽß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꯨ-.\U000a83dcֽß', strict=True) + + def test_uts46_4525(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꯨ-.\U000a83dcֽSS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꯨ-.\U000a83dcֽSS', strict=True) + + def test_uts46_4526(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꯨ-.\U000a83dcֽss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꯨ-.\U000a83dcֽss', strict=True) + + def test_uts46_4527(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꯨ-.\U000a83dcֽSs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꯨ-.\U000a83dcֽSs', strict=True) + + def test_uts46_4528(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----pw5e.xn--ss-7jd10716y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----pw5e.xn--ss-7jd10716y', strict=True) + + def test_uts46_4529(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----pw5e.xn--zca50wfv060a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----pw5e.xn--zca50wfv060a', strict=True) + + def test_uts46_4530(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꯨ-.\U000a83dcֽSS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꯨ-.\U000a83dcֽSS', strict=True) + + def test_uts46_4531(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꯨ-.\U000a83dcֽss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꯨ-.\U000a83dcֽss', strict=True) + + def test_uts46_4532(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꯨ-.\U000a83dcֽSs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꯨ-.\U000a83dcֽSs', strict=True) + + def test_uts46_4533(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡓ-≮。٫󠅱ᡄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡓ-≮。٫󠅱ᡄ', strict=True) + + def test_uts46_4534(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡓ-≮。٫󠅱ᡄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡓ-≮。٫󠅱ᡄ', strict=True) + + def test_uts46_4535(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----s7j866c.xn--kib252g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----s7j866c.xn--kib252g', strict=True) + + def test_uts46_4536(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟥♮𑜫࣭.្𑜫8󠆏', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟥♮𑜫࣭.្𑜫8󠆏', strict=True) + + def test_uts46_4537(self): + self.assertRaises(idna.IDNAError, idna.decode, '3♮𑜫࣭.្𑜫8󠆏', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3♮𑜫࣭.្𑜫8󠆏', strict=True) + + def test_uts46_4538(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-ksd277tlo7s.xn--8-f0jx021l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-ksd277tlo7s.xn--8-f0jx021l', strict=True) + + def test_uts46_4539(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。\U00095300\u200d❡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。\U00095300\u200d❡', strict=True) + + def test_uts46_4540(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。\U00095300\u200d❡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。\U00095300\u200d❡', strict=True) + + def test_uts46_4541(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--nei54421f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--nei54421f', strict=True) + + def test_uts46_4542(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--1ug800aq795s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--1ug800aq795s', strict=True) + + def test_uts46_4543(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟓☱𝟐\U000a5c35。𝪮\U00050873', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟓☱𝟐\U000a5c35。𝪮\U00050873', strict=True) + + def test_uts46_4544(self): + self.assertRaises(idna.IDNAError, idna.decode, '5☱2\U000a5c35。𝪮\U00050873', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '5☱2\U000a5c35。𝪮\U00050873', strict=True) + + def test_uts46_4545(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--52-dwx47758j.xn--kd3hk431k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--52-dwx47758j.xn--kd3hk431k', strict=True) + + def test_uts46_4546(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.-├\U000969a3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.-├\U000969a3', strict=True) + + def test_uts46_4547(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn----ukp70432h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn----ukp70432h', strict=True) + + def test_uts46_4548(self): + self.assertRaises(idna.IDNAError, idna.decode, '֥ݭ。\u200d\U000e0018', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֥ݭ。\u200d\U000e0018', strict=True) + + def test_uts46_4549(self): + self.assertRaises(idna.IDNAError, idna.decode, '֥ݭ。\u200d\U000e0018', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '֥ݭ。\u200d\U000e0018', strict=True) + + def test_uts46_4550(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wcb62g.xn--p526e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wcb62g.xn--p526e', strict=True) + + def test_uts46_4551(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wcb62g.xn--1ugy8001l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wcb62g.xn--1ugy8001l', strict=True) + + def test_uts46_4552(self): + self.assertRaises(idna.IDNAError, idna.decode, '쥥\U000d43c9Ⴎ.\u200c⒈⒈𐫒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '쥥\U000d43c9Ⴎ.\u200c⒈⒈𐫒', strict=True) + + def test_uts46_4553(self): + self.assertRaises(idna.IDNAError, idna.decode, '쥥\U000d43c9Ⴎ.\u200c⒈⒈𐫒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '쥥\U000d43c9Ⴎ.\u200c⒈⒈𐫒', strict=True) + + def test_uts46_4554(self): + self.assertRaises(idna.IDNAError, idna.decode, '쥥\U000d43c9Ⴎ.\u200c1.1.𐫒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '쥥\U000d43c9Ⴎ.\u200c1.1.𐫒', strict=True) + + def test_uts46_4555(self): + self.assertRaises(idna.IDNAError, idna.decode, '쥥\U000d43c9Ⴎ.\u200c1.1.𐫒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '쥥\U000d43c9Ⴎ.\u200c1.1.𐫒', strict=True) + + def test_uts46_4556(self): + self.assertRaises(idna.IDNAError, idna.decode, '쥥\U000d43c9ⴎ.\u200c1.1.𐫒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '쥥\U000d43c9ⴎ.\u200c1.1.𐫒', strict=True) + + def test_uts46_4557(self): + self.assertRaises(idna.IDNAError, idna.decode, '쥥\U000d43c9ⴎ.\u200c1.1.𐫒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '쥥\U000d43c9ⴎ.\u200c1.1.𐫒', strict=True) + + def test_uts46_4558(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5kj3511ccyw3h.1.1.xn--7w9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5kj3511ccyw3h.1.1.xn--7w9c', strict=True) + + def test_uts46_4559(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5kj3511ccyw3h.xn--1-rgn.1.xn--7w9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5kj3511ccyw3h.xn--1-rgn.1.xn--7w9c', strict=True) + + def test_uts46_4560(self): + self.assertRaises(idna.IDNAError, idna.decode, '쥥\U000d43c9ⴎ.\u200c⒈⒈𐫒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '쥥\U000d43c9ⴎ.\u200c⒈⒈𐫒', strict=True) + + def test_uts46_4561(self): + self.assertRaises(idna.IDNAError, idna.decode, '쥥\U000d43c9ⴎ.\u200c⒈⒈𐫒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '쥥\U000d43c9ⴎ.\u200c⒈⒈𐫒', strict=True) + + def test_uts46_4562(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5kj3511ccyw3h.xn--tsha6797o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5kj3511ccyw3h.xn--tsha6797o', strict=True) + + def test_uts46_4563(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5kj3511ccyw3h.xn--0ug88oa0396u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5kj3511ccyw3h.xn--0ug88oa0396u', strict=True) + + def test_uts46_4564(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mnd7865gcy28g.1.1.xn--7w9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mnd7865gcy28g.1.1.xn--7w9c', strict=True) + + def test_uts46_4565(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mnd7865gcy28g.xn--1-rgn.1.xn--7w9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mnd7865gcy28g.xn--1-rgn.1.xn--7w9c', strict=True) + + def test_uts46_4566(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mnd7865gcy28g.xn--tsha6797o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mnd7865gcy28g.xn--tsha6797o', strict=True) + + def test_uts46_4567(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mnd7865gcy28g.xn--0ug88oa0396u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mnd7865gcy28g.xn--0ug88oa0396u', strict=True) + + def test_uts46_4568(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࠧ𝟶ڠ-。𑄳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࠧ𝟶ڠ-。𑄳', strict=True) + + def test_uts46_4569(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࠧ0ڠ-。𑄳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࠧ0ڠ-。𑄳', strict=True) + + def test_uts46_4570(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0--p3d67m.xn--v80d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0--p3d67m.xn--v80d', strict=True) + + def test_uts46_4571(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς.ﷁ🞛⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς.ﷁ🞛⒈', strict=True) + + def test_uts46_4572(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς.فمي🞛1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς.فمي🞛1.', strict=True) + + def test_uts46_4573(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ.فمي🞛1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ.فمي🞛1.', strict=True) + + def test_uts46_4574(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ.فمي🞛1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ.فمي🞛1.', strict=True) + + def test_uts46_4575(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa.xn--1-gocmu97674d.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa.xn--1-gocmu97674d.', strict=True) + + def test_uts46_4576(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa.xn--1-gocmu97674d.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa.xn--1-gocmu97674d.', strict=True) + + def test_uts46_4577(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ.ﷁ🞛⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ.ﷁ🞛⒈', strict=True) + + def test_uts46_4578(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ.ﷁ🞛⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ.ﷁ🞛⒈', strict=True) + + def test_uts46_4579(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa.xn--dhbip2802atb20c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa.xn--dhbip2802atb20c', strict=True) + + def test_uts46_4580(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa.xn--dhbip2802atb20c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa.xn--dhbip2802atb20c', strict=True) + + def test_uts46_4581(self): + self.assertRaises(idna.IDNAError, idna.decode, '🗩-。𐹻\U000d0786\U0006526e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🗩-。𐹻\U000d0786\U0006526e', strict=True) + + def test_uts46_4582(self): + self.assertRaises(idna.IDNAError, idna.decode, '🗩-。𐹻\U000d0786\U0006526e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🗩-。𐹻\U000d0786\U0006526e', strict=True) + + def test_uts46_4583(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----6t3s.xn--zo0d4811u6ru6a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----6t3s.xn--zo0d4811u6ru6a', strict=True) + + def test_uts46_4584(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐡜-🔪。𝟻\u200c𐿀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐡜-🔪。𝟻\u200c𐿀', strict=True) + + def test_uts46_4585(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐡜-🔪。5\u200c𐿀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐡜-🔪。5\u200c𐿀', strict=True) + + def test_uts46_4586(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----5j4iv089c.xn--5-bn7i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----5j4iv089c.xn--5-bn7i', strict=True) + + def test_uts46_4587(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----5j4iv089c.xn--5-sgn7149h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----5j4iv089c.xn--5-sgn7149h', strict=True) + + def test_uts46_4588(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dß.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dß.ߏ0ּ', strict=True) + + def test_uts46_4589(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dß.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dß.ߏ0ּ', strict=True) + + def test_uts46_4590(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dß.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dß.ߏ0ּ', strict=True) + + def test_uts46_4591(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dß.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dß.ߏ0ּ', strict=True) + + def test_uts46_4592(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dSS.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dSS.ߏ0ּ', strict=True) + + def test_uts46_4593(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dSS.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dSS.ߏ0ּ', strict=True) + + def test_uts46_4594(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dss.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dss.ߏ0ּ', strict=True) + + def test_uts46_4595(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dss.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dss.ߏ0ּ', strict=True) + + def test_uts46_4596(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-i05i7041a.xn--0-vgc50n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-i05i7041a.xn--0-vgc50n', strict=True) + + def test_uts46_4597(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-l1tu910fo0xd.xn--0-vgc50n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-l1tu910fo0xd.xn--0-vgc50n', strict=True) + + def test_uts46_4598(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dSs.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dSs.ߏ0ּ', strict=True) + + def test_uts46_4599(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dSs.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dSs.ߏ0ּ', strict=True) + + def test_uts46_4600(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca770n5s4hev6c.xn--0-vgc50n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca770n5s4hev6c.xn--0-vgc50n', strict=True) + + def test_uts46_4601(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dSS.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dSS.ߏ0ּ', strict=True) + + def test_uts46_4602(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dSS.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dSS.ߏ0ּ', strict=True) + + def test_uts46_4603(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dss.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dss.ߏ0ּ', strict=True) + + def test_uts46_4604(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dss.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dss.ߏ0ּ', strict=True) + + def test_uts46_4605(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dSs.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dSs.ߏ0ּ', strict=True) + + def test_uts46_4606(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹣늿\u200dSs.ߏ0ּ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹣늿\u200dSs.ߏ0ּ', strict=True) + + def test_uts46_4607(self): + self.assertRaises(idna.IDNAError, idna.decode, '9󠇥.\U000ead34ᢓ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9󠇥.\U000ead34ᢓ', strict=True) + + def test_uts46_4608(self): + self.assertRaises(idna.IDNAError, idna.decode, '9󠇥.\U000ead34ᢓ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9󠇥.\U000ead34ᢓ', strict=True) + + def test_uts46_4609(self): + self.assertRaises(idna.IDNAError, idna.decode, '9.xn--dbf91222q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '9.xn--dbf91222q', strict=True) + + def test_uts46_4610(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cᅠ.𐫭🠗ß⽟', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cᅠ.𐫭🠗ß⽟', strict=True) + + def test_uts46_4611(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cᅠ.𐫭🠗ß玉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cᅠ.𐫭🠗ß玉', strict=True) + + def test_uts46_4612(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cᅠ.𐫭🠗SS玉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cᅠ.𐫭🠗SS玉', strict=True) + + def test_uts46_4613(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cᅠ.𐫭🠗ss玉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cᅠ.𐫭🠗ss玉', strict=True) + + def test_uts46_4614(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cᅠ.𐫭🠗Ss玉', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cᅠ.𐫭🠗Ss玉', strict=True) + + def test_uts46_4615(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--ss-je6eq954cp25j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--ss-je6eq954cp25j', strict=True) + + def test_uts46_4616(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--ss-je6eq954cp25j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--ss-je6eq954cp25j', strict=True) + + def test_uts46_4617(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--zca2289c550e0iwi', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--zca2289c550e0iwi', strict=True) + + def test_uts46_4618(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cᅠ.𐫭🠗SS⽟', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cᅠ.𐫭🠗SS⽟', strict=True) + + def test_uts46_4619(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cᅠ.𐫭🠗ss⽟', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cᅠ.𐫭🠗ss⽟', strict=True) + + def test_uts46_4620(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cᅠ.𐫭🠗Ss⽟', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cᅠ.𐫭🠗Ss⽟', strict=True) + + def test_uts46_4621(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--psd.xn--ss-je6eq954cp25j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--psd.xn--ss-je6eq954cp25j', strict=True) + + def test_uts46_4622(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--psd526e.xn--ss-je6eq954cp25j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--psd526e.xn--ss-je6eq954cp25j', strict=True) + + def test_uts46_4623(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--psd526e.xn--zca2289c550e0iwi', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--psd526e.xn--zca2289c550e0iwi', strict=True) + + def test_uts46_4624(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cl7c.xn--ss-je6eq954cp25j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cl7c.xn--ss-je6eq954cp25j', strict=True) + + def test_uts46_4625(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug7719f.xn--ss-je6eq954cp25j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug7719f.xn--ss-je6eq954cp25j', strict=True) + + def test_uts46_4626(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug7719f.xn--zca2289c550e0iwi', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug7719f.xn--zca2289c550e0iwi', strict=True) + + def test_uts46_4627(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒Ⴖͦ.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒Ⴖͦ.\u200c', strict=True) + + def test_uts46_4628(self): + self.assertRaises(idna.IDNAError, idna.decode, '。Ⴖͦ.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。Ⴖͦ.\u200c', strict=True) + + def test_uts46_4629(self): + self.assertRaises(idna.IDNAError, idna.decode, '。ⴖͦ.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。ⴖͦ.\u200c', strict=True) + + def test_uts46_4630(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--hva754s.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--hva754s.', strict=True) + + def test_uts46_4631(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--hva754s.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--hva754s.xn--0ug', strict=True) + + def test_uts46_4632(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒ⴖͦ.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒ⴖͦ.\u200c', strict=True) + + def test_uts46_4633(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hva754sy94k.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hva754sy94k.', strict=True) + + def test_uts46_4634(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hva754sy94k.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hva754sy94k.xn--0ug', strict=True) + + def test_uts46_4635(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--hva929d.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--hva929d.', strict=True) + + def test_uts46_4636(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--hva929d.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--hva929d.xn--0ug', strict=True) + + def test_uts46_4637(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hva929dl29p.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hva929dl29p.', strict=True) + + def test_uts46_4638(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hva929dl29p.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hva929dl29p.xn--0ug', strict=True) + + def test_uts46_4641(self): + self.assertEqual(idna.decode('Ⴖͦ.', uts46=True, strict=True), 'ⴖͦ.') + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴖͦ.', strict=True) + + def test_uts46_4642(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hva929d.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hva929d.', strict=True) + + def test_uts46_4643(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࢻ.\u200cႣ𞀒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࢻ.\u200cႣ𞀒', strict=True) + + def test_uts46_4644(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࢻ.\u200cႣ𞀒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࢻ.\u200cႣ𞀒', strict=True) + + def test_uts46_4645(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࢻ.\u200cⴃ𞀒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࢻ.\u200cⴃ𞀒', strict=True) + + def test_uts46_4646(self): + self.assertEqual(idna.decode('xn--hzb.xn--ukj4430l', uts46=True, strict=True), 'ࢻ.ⴃ𞀒') + self.assertEqual(idna.encode('xn--hzb.xn--ukj4430l', uts46=True, strict=True), b'xn--hzb.xn--ukj4430l') + + def test_uts46_4647(self): + self.assertEqual(idna.decode('ࢻ.ⴃ𞀒', uts46=True, strict=True), 'ࢻ.ⴃ𞀒') + self.assertEqual(idna.encode('ࢻ.ⴃ𞀒', uts46=True, strict=True), b'xn--hzb.xn--ukj4430l') + + def test_uts46_4648(self): + self.assertEqual(idna.decode('ࢻ.Ⴃ𞀒', uts46=True, strict=True), 'ࢻ.ⴃ𞀒') + self.assertEqual(idna.encode('ࢻ.Ⴃ𞀒', uts46=True, strict=True), b'xn--hzb.xn--ukj4430l') + + def test_uts46_4649(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hzb.xn--0ug822cp045a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hzb.xn--0ug822cp045a', strict=True) + + def test_uts46_4650(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࢻ.\u200cⴃ𞀒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࢻ.\u200cⴃ𞀒', strict=True) + + def test_uts46_4651(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hzb.xn--bnd2938u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hzb.xn--bnd2938u', strict=True) + + def test_uts46_4652(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hzb.xn--bnd300f7225a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hzb.xn--bnd300f7225a', strict=True) + + def test_uts46_4653(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c。2䫷\U000e09f7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c。2䫷\U000e09f7', strict=True) + + def test_uts46_4654(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c。2䫷\U000e09f7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c。2䫷\U000e09f7', strict=True) + + def test_uts46_4655(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--2-me5ay1273i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--2-me5ay1273i', strict=True) + + def test_uts46_4656(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugb.xn--2-me5ay1273i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugb.xn--2-me5ay1273i', strict=True) + + def test_uts46_4657(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𞀤\U000dc810。\U00088b16', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𞀤\U000dc810。\U00088b16', strict=True) + + def test_uts46_4658(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----rq4re4997d.xn--l707b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----rq4re4997d.xn--l707b', strict=True) + + def test_uts46_4659(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000f36c2︒\u200c㟀.ؤ⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000f36c2︒\u200c㟀.ؤ⒈', strict=True) + + def test_uts46_4660(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000f36c2︒\u200c㟀.ؤ⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000f36c2︒\u200c㟀.ؤ⒈', strict=True) + + def test_uts46_4661(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000f36c2。\u200c㟀.ؤ1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000f36c2。\u200c㟀.ؤ1.', strict=True) + + def test_uts46_4662(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000f36c2。\u200c㟀.ؤ1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000f36c2。\u200c㟀.ؤ1.', strict=True) + + def test_uts46_4663(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--z272f.xn--etl.xn--1-smc.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--z272f.xn--etl.xn--1-smc.', strict=True) + + def test_uts46_4664(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--z272f.xn--0ug754g.xn--1-smc.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--z272f.xn--0ug754g.xn--1-smc.', strict=True) + + def test_uts46_4665(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--etlt457ccrq7h.xn--jgb476m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--etlt457ccrq7h.xn--jgb476m', strict=True) + + def test_uts46_4666(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug754gxl4ldlt0k.xn--jgb476m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug754gxl4ldlt0k.xn--jgb476m', strict=True) + + def test_uts46_4667(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑲜ߊ𝅼。-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑲜ߊ𝅼。-\u200d', strict=True) + + def test_uts46_4668(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lsb5482l7nre.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lsb5482l7nre.-', strict=True) + + def test_uts46_4669(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lsb5482l7nre.xn----ugn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lsb5482l7nre.xn----ugn', strict=True) + + def test_uts46_4670(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.Ⴉ≠𐫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.Ⴉ≠𐫶', strict=True) + + def test_uts46_4671(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.Ⴉ≠𐫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.Ⴉ≠𐫶', strict=True) + + def test_uts46_4672(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.Ⴉ≠𐫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.Ⴉ≠𐫶', strict=True) + + def test_uts46_4673(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.Ⴉ≠𐫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.Ⴉ≠𐫶', strict=True) + + def test_uts46_4674(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.ⴉ≠𐫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.ⴉ≠𐫶', strict=True) + + def test_uts46_4675(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.ⴉ≠𐫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.ⴉ≠𐫶', strict=True) + + def test_uts46_4676(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--1chx23bzj4p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--1chx23bzj4p', strict=True) + + def test_uts46_4677(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--1chx23bzj4p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--1chx23bzj4p', strict=True) + + def test_uts46_4678(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.ⴉ≠𐫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.ⴉ≠𐫶', strict=True) + + def test_uts46_4679(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.ⴉ≠𐫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.ⴉ≠𐫶', strict=True) + + def test_uts46_4680(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--hnd481gv73o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--hnd481gv73o', strict=True) + + def test_uts46_4681(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--hnd481gv73o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--hnd481gv73o', strict=True) + + def test_uts46_4682(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݐ。≯ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݐ。≯ς', strict=True) + + def test_uts46_4683(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݐ。≯ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݐ。≯ς', strict=True) + + def test_uts46_4684(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݐ。≯Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݐ。≯Σ', strict=True) + + def test_uts46_4685(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݐ。≯Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݐ。≯Σ', strict=True) + + def test_uts46_4686(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݐ。≯σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݐ。≯σ', strict=True) + + def test_uts46_4687(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݐ。≯σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݐ。≯σ', strict=True) + + def test_uts46_4688(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3ob.xn--4xa718m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3ob.xn--4xa718m', strict=True) + + def test_uts46_4689(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3ob.xn--3xa918m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3ob.xn--3xa918m', strict=True) + + def test_uts46_4690(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u07fc\U00010e06.\U0001358f︒\U0004aa29Ⴐ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u07fc\U00010e06.\U0001358f︒\U0004aa29Ⴐ', strict=True) + + def test_uts46_4691(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u07fc\U00010e06.\U0001358f。\U0004aa29Ⴐ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u07fc\U00010e06.\U0001358f。\U0004aa29Ⴐ', strict=True) + + def test_uts46_4692(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u07fc\U00010e06.\U0001358f。\U0004aa29ⴐ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u07fc\U00010e06.\U0001358f。\U0004aa29ⴐ', strict=True) + + def test_uts46_4693(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0tb8725k.xn--tu8d.xn--7kj73887a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0tb8725k.xn--tu8d.xn--7kj73887a', strict=True) + + def test_uts46_4694(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u07fc\U00010e06.\U0001358f︒\U0004aa29ⴐ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u07fc\U00010e06.\U0001358f︒\U0004aa29ⴐ', strict=True) + + def test_uts46_4695(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0tb8725k.xn--7kj9008dt18a7py9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0tb8725k.xn--7kj9008dt18a7py9c', strict=True) + + def test_uts46_4696(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0tb8725k.xn--tu8d.xn--ond97931d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0tb8725k.xn--tu8d.xn--ond97931d', strict=True) + + def test_uts46_4697(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0tb8725k.xn--ond3562jt18a7py9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0tb8725k.xn--ond3562jt18a7py9c', strict=True) + + def test_uts46_4698(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴥ⚭\U000e05ab⋃。𑌼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴥ⚭\U000e05ab⋃。𑌼', strict=True) + + def test_uts46_4699(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴥ⚭\U000e05ab⋃。𑌼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴥ⚭\U000e05ab⋃。𑌼', strict=True) + + def test_uts46_4700(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴥ⚭\U000e05ab⋃。𑌼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴥ⚭\U000e05ab⋃。𑌼', strict=True) + + def test_uts46_4701(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vfh16m67gx1162b.xn--ro1d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vfh16m67gx1162b.xn--ro1d', strict=True) + + def test_uts46_4702(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴥ⚭\U000e05ab⋃。𑌼', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴥ⚭\U000e05ab⋃。𑌼', strict=True) + + def test_uts46_4703(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9nd623g4zc5z060c.xn--ro1d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9nd623g4zc5z060c.xn--ro1d', strict=True) + + def test_uts46_4704(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄈。\U000e0df3ࡄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄈。\U000e0df3ࡄ', strict=True) + + def test_uts46_4705(self): + self.assertRaises(idna.IDNAError, idna.decode, '7,。\U000e0df3ࡄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '7,。\U000e0df3ࡄ', strict=True) + + def test_uts46_4706(self): + self.assertRaises(idna.IDNAError, idna.decode, '7,.xn--2vb13094p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '7,.xn--2vb13094p', strict=True) + + def test_uts46_4707(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--107h.xn--2vb13094p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--107h.xn--2vb13094p', strict=True) + + def test_uts46_4708(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ࡆ。섖쮖ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ࡆ。섖쮖ß', strict=True) + + def test_uts46_4709(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ࡆ。섖쮖ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ࡆ。섖쮖ß', strict=True) + + def test_uts46_4710(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ࡆ。섖쮖SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ࡆ。섖쮖SS', strict=True) + + def test_uts46_4711(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ࡆ。섖쮖SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ࡆ。섖쮖SS', strict=True) + + def test_uts46_4712(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ࡆ。섖쮖ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ࡆ。섖쮖ss', strict=True) + + def test_uts46_4713(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ࡆ。섖쮖ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ࡆ。섖쮖ss', strict=True) + + def test_uts46_4714(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4vb505k.xn--ss-5z4j006a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4vb505k.xn--ss-5z4j006a', strict=True) + + def test_uts46_4715(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ࡆ。섖쮖Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ࡆ。섖쮖Ss', strict=True) + + def test_uts46_4716(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮ࡆ。섖쮖Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮ࡆ。섖쮖Ss', strict=True) + + def test_uts46_4717(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4vb505k.xn--zca7259goug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4vb505k.xn--zca7259goug', strict=True) + + def test_uts46_4718(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆓⛏-。ꡒ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆓⛏-。ꡒ', strict=True) + + def test_uts46_4719(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----o9p.xn--rc9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----o9p.xn--rc9a', strict=True) + + def test_uts46_4720(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u07bb𐹳ئ𑁆。ࢧڰ\u200cᢒ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u07bb𐹳ئ𑁆。ࢧڰ\u200cᢒ', strict=True) + + def test_uts46_4721(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u07bb𐹳ئ𑁆。ࢧڰ\u200cᢒ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u07bb𐹳ئ𑁆。ࢧڰ\u200cᢒ', strict=True) + + def test_uts46_4722(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lgb32f2753cosb.xn--jkb91hlz1a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lgb32f2753cosb.xn--jkb91hlz1a', strict=True) + + def test_uts46_4723(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lgb32f2753cosb.xn--jkb91hlz1azih', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lgb32f2753cosb.xn--jkb91hlz1azih', strict=True) + + def test_uts46_4724(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࠖ.𐨕\U0001a695', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࠖ.𐨕\U0001a695', strict=True) + + def test_uts46_4725(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rub.xn--tr9c248x', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rub.xn--tr9c248x', strict=True) + + def test_uts46_4726(self): + self.assertRaises(idna.IDNAError, idna.decode, '--。\U0003d286ݧ𐽋𞠬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '--。\U0003d286ݧ𐽋𞠬', strict=True) + + def test_uts46_4727(self): + self.assertRaises(idna.IDNAError, idna.decode, '--.xn--rpb6226k77pfh58p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '--.xn--rpb6226k77pfh58p', strict=True) + + def test_uts46_4728(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0009bb66𐋥\U00039e10.≯ࢰࢦ\U000d46e3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0009bb66𐋥\U00039e10.≯ࢰࢦ\U000d46e3', strict=True) + + def test_uts46_4729(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0009bb66𐋥\U00039e10.≯ࢰࢦ\U000d46e3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0009bb66𐋥\U00039e10.≯ࢰࢦ\U000d46e3', strict=True) + + def test_uts46_4730(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--887c2298i5mv6a.xn--vybt688qm8981a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--887c2298i5mv6a.xn--vybt688qm8981a', strict=True) + + def test_uts46_4731(self): + self.assertRaises(idna.IDNAError, idna.decode, '䔛󠇒\U000a4e1e𐹧.-䤷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䔛󠇒\U000a4e1e𐹧.-䤷', strict=True) + + def test_uts46_4732(self): + self.assertRaises(idna.IDNAError, idna.decode, '䔛󠇒\U000a4e1e𐹧.-䤷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䔛󠇒\U000a4e1e𐹧.-䤷', strict=True) + + def test_uts46_4733(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2loy662coo60e.xn----0n4a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2loy662coo60e.xn----0n4a', strict=True) + + def test_uts46_4734(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹩.\u200d-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹩.\u200d-', strict=True) + + def test_uts46_4735(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹩.\u200d-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹩.\u200d-', strict=True) + + def test_uts46_4736(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ho0d.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ho0d.-', strict=True) + + def test_uts46_4737(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ho0d.xn----tgn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ho0d.xn----tgn', strict=True) + + def test_uts46_4738(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00042226帷。≯萺᷈-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00042226帷。≯萺᷈-', strict=True) + + def test_uts46_4739(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00042226帷。≯萺᷈-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00042226帷。≯萺᷈-', strict=True) + + def test_uts46_4740(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00042226帷。≯萺᷈-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00042226帷。≯萺᷈-', strict=True) + + def test_uts46_4741(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00042226帷。≯萺᷈-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00042226帷。≯萺᷈-', strict=True) + + def test_uts46_4742(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qutw175s.xn----mimu6tf67j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qutw175s.xn----mimu6tf67j', strict=True) + + def test_uts46_4743(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d攌꯭。ᢖ-Ⴘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d攌꯭。ᢖ-Ⴘ', strict=True) + + def test_uts46_4744(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d攌꯭。ᢖ-ⴘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d攌꯭。ᢖ-ⴘ', strict=True) + + def test_uts46_4745(self): + self.assertEqual(idna.decode('xn--p9ut19m.xn----mck373i', uts46=True, strict=True), '攌꯭.ᢖ-ⴘ') + self.assertEqual(idna.encode('xn--p9ut19m.xn----mck373i', uts46=True, strict=True), b'xn--p9ut19m.xn----mck373i') + + def test_uts46_4746(self): + self.assertEqual(idna.decode('攌꯭.ᢖ-ⴘ', uts46=True, strict=True), '攌꯭.ᢖ-ⴘ') + self.assertEqual(idna.encode('攌꯭.ᢖ-ⴘ', uts46=True, strict=True), b'xn--p9ut19m.xn----mck373i') + + def test_uts46_4747(self): + self.assertEqual(idna.decode('攌꯭.ᢖ-Ⴘ', uts46=True, strict=True), '攌꯭.ᢖ-ⴘ') + self.assertEqual(idna.encode('攌꯭.ᢖ-Ⴘ', uts46=True, strict=True), b'xn--p9ut19m.xn----mck373i') + + def test_uts46_4748(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug592ykp6b.xn----mck373i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug592ykp6b.xn----mck373i', strict=True) + + def test_uts46_4749(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--p9ut19m.xn----k1g451d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--p9ut19m.xn----k1g451d', strict=True) + + def test_uts46_4750(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug592ykp6b.xn----k1g451d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug592ykp6b.xn----k1g451d', strict=True) + + def test_uts46_4751(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cꖨ.⒗3툒۳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cꖨ.⒗3툒۳', strict=True) + + def test_uts46_4752(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cꖨ.⒗3툒۳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cꖨ.⒗3툒۳', strict=True) + + def test_uts46_4753(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cꖨ.16.3툒۳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cꖨ.16.3툒۳', strict=True) + + def test_uts46_4754(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cꖨ.16.3툒۳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cꖨ.16.3툒۳', strict=True) + + def test_uts46_4755(self): + self.assertEqual(idna.decode('xn--9r8a.16.xn--3-nyc0117m', uts46=True, strict=True), 'ꖨ.16.3툒۳') + self.assertEqual(idna.encode('xn--9r8a.16.xn--3-nyc0117m', uts46=True, strict=True), b'xn--9r8a.16.xn--3-nyc0117m') + + def test_uts46_4756(self): + self.assertEqual(idna.decode('ꖨ.16.3툒۳', uts46=True, strict=True), 'ꖨ.16.3툒۳') + self.assertEqual(idna.encode('ꖨ.16.3툒۳', uts46=True, strict=True), b'xn--9r8a.16.xn--3-nyc0117m') + + def test_uts46_4757(self): + self.assertEqual(idna.decode('ꖨ.16.3툒۳', uts46=True, strict=True), 'ꖨ.16.3툒۳') + self.assertEqual(idna.encode('ꖨ.16.3툒۳', uts46=True, strict=True), b'xn--9r8a.16.xn--3-nyc0117m') + + def test_uts46_4758(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug2473c.16.xn--3-nyc0117m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug2473c.16.xn--3-nyc0117m', strict=True) + + def test_uts46_4759(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9r8a.xn--3-nyc678tu07m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9r8a.xn--3-nyc678tu07m', strict=True) + + def test_uts46_4760(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug2473c.xn--3-nyc678tu07m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug2473c.xn--3-nyc678tu07m', strict=True) + + def test_uts46_4761(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈걾6.𐱁ې', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈걾6.𐱁ې', strict=True) + + def test_uts46_4762(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈걾6.𐱁ې', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈걾6.𐱁ې', strict=True) + + def test_uts46_4766(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-dcps419c.xn--glb1794k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-dcps419c.xn--glb1794k', strict=True) + + def test_uts46_4767(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐲞𝟶≮≮.\U000e0027ع', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐲞𝟶≮≮.\U000e0027ع', strict=True) + + def test_uts46_4768(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐲞𝟶≮≮.\U000e0027ع', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐲞𝟶≮≮.\U000e0027ع', strict=True) + + def test_uts46_4769(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐲞0≮≮.\U000e0027ع', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐲞0≮≮.\U000e0027ع', strict=True) + + def test_uts46_4770(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐲞0≮≮.\U000e0027ع', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐲞0≮≮.\U000e0027ع', strict=True) + + def test_uts46_4771(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐳞0≮≮.\U000e0027ع', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐳞0≮≮.\U000e0027ع', strict=True) + + def test_uts46_4772(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐳞0≮≮.\U000e0027ع', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐳞0≮≮.\U000e0027ع', strict=True) + + def test_uts46_4773(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0-ngoa5711v.xn--4gb31034p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0-ngoa5711v.xn--4gb31034p', strict=True) + + def test_uts46_4774(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐳞𝟶≮≮.\U000e0027ع', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐳞𝟶≮≮.\U000e0027ع', strict=True) + + def test_uts46_4775(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐳞𝟶≮≮.\U000e0027ع', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐳞𝟶≮≮.\U000e0027ع', strict=True) + + def test_uts46_4776(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ૣ.𐹺ᅟ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ૣ.𐹺ᅟ', strict=True) + + def test_uts46_4777(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8fc.xn--yo0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8fc.xn--yo0d', strict=True) + + def test_uts46_4778(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8fc.xn--osd3070k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8fc.xn--osd3070k', strict=True) + + def test_uts46_4779(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟏𝨙⸖.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟏𝨙⸖.\u200d', strict=True) + + def test_uts46_4780(self): + self.assertRaises(idna.IDNAError, idna.decode, '1𝨙⸖.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1𝨙⸖.\u200d', strict=True) + + def test_uts46_4781(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-5bt6845n.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-5bt6845n.', strict=True) + + def test_uts46_4782(self): + self.assertRaises(idna.IDNAError, idna.decode, '1𝨙⸖.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1𝨙⸖.', strict=True) + + def test_uts46_4783(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-5bt6845n.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-5bt6845n.xn--1ug', strict=True) + + def test_uts46_4784(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤐≠ܦ᩠。-\u200cߕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤐≠ܦ᩠。-\u200cߕ', strict=True) + + def test_uts46_4785(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤐≠ܦ᩠。-\u200cߕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤐≠ܦ᩠。-\u200cߕ', strict=True) + + def test_uts46_4786(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤐≠ܦ᩠。-\u200cߕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤐≠ܦ᩠。-\u200cߕ', strict=True) + + def test_uts46_4787(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤐≠ܦ᩠。-\u200cߕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤐≠ܦ᩠。-\u200cߕ', strict=True) + + def test_uts46_4788(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤲≠ܦ᩠。-\u200cߕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤲≠ܦ᩠。-\u200cߕ', strict=True) + + def test_uts46_4789(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤲≠ܦ᩠。-\u200cߕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤲≠ܦ᩠。-\u200cߕ', strict=True) + + def test_uts46_4790(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wnb859grzfzw60c.xn----kcd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wnb859grzfzw60c.xn----kcd', strict=True) + + def test_uts46_4791(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wnb859grzfzw60c.xn----kcd017p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wnb859grzfzw60c.xn----kcd017p', strict=True) + + def test_uts46_4792(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤲≠ܦ᩠。-\u200cߕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤲≠ܦ᩠。-\u200cߕ', strict=True) + + def test_uts46_4793(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤲≠ܦ᩠。-\u200cߕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤲≠ܦ᩠。-\u200cߕ', strict=True) + + def test_uts46_4794(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹰ͨ-ꡧ。ٵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹰ͨ-ꡧ。ٵ', strict=True) + + def test_uts46_4795(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹰ͨ-ꡧ。اٴ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹰ͨ-ꡧ。اٴ', strict=True) + + def test_uts46_4796(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----shb2387jgkqd.xn--mgb8m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----shb2387jgkqd.xn--mgb8m', strict=True) + + def test_uts46_4797(self): + self.assertRaises(idna.IDNAError, idna.decode, 'F󠅟。\U0008f5c5♚', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'F󠅟。\U0008f5c5♚', strict=True) + + def test_uts46_4798(self): + self.assertRaises(idna.IDNAError, idna.decode, 'F󠅟。\U0008f5c5♚', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'F󠅟。\U0008f5c5♚', strict=True) + + def test_uts46_4799(self): + self.assertRaises(idna.IDNAError, idna.decode, 'f󠅟。\U0008f5c5♚', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'f󠅟。\U0008f5c5♚', strict=True) + + def test_uts46_4800(self): + self.assertRaises(idna.IDNAError, idna.decode, 'f.xn--45hz6953f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'f.xn--45hz6953f', strict=True) + + def test_uts46_4801(self): + self.assertRaises(idna.IDNAError, idna.decode, 'f󠅟。\U0008f5c5♚', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'f󠅟。\U0008f5c5♚', strict=True) + + def test_uts46_4802(self): + self.assertRaises(idna.IDNAError, idna.decode, '୍𑄴ᷩ。𝟮Ⴘ𞀨\U00043947', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '୍𑄴ᷩ。𝟮Ⴘ𞀨\U00043947', strict=True) + + def test_uts46_4803(self): + self.assertRaises(idna.IDNAError, idna.decode, '୍𑄴ᷩ。2Ⴘ𞀨\U00043947', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '୍𑄴ᷩ。2Ⴘ𞀨\U00043947', strict=True) + + def test_uts46_4804(self): + self.assertRaises(idna.IDNAError, idna.decode, '୍𑄴ᷩ。2ⴘ𞀨\U00043947', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '୍𑄴ᷩ。2ⴘ𞀨\U00043947', strict=True) + + def test_uts46_4805(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ic246gs21p.xn--2-nws2918ndrjr', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ic246gs21p.xn--2-nws2918ndrjr', strict=True) + + def test_uts46_4806(self): + self.assertRaises(idna.IDNAError, idna.decode, '୍𑄴ᷩ。𝟮ⴘ𞀨\U00043947', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '୍𑄴ᷩ。𝟮ⴘ𞀨\U00043947', strict=True) + + def test_uts46_4807(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ic246gs21p.xn--2-k1g43076adrwq', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ic246gs21p.xn--2-k1g43076adrwq', strict=True) + + def test_uts46_4808(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0009382d\u200c\u200c⒈。勉𑁅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0009382d\u200c\u200c⒈。勉𑁅', strict=True) + + def test_uts46_4809(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0009382d\u200c\u200c1.。勉𑁅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0009382d\u200c\u200c1.。勉𑁅', strict=True) + + def test_uts46_4810(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-yi00h..xn--4grs325b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-yi00h..xn--4grs325b', strict=True) + + def test_uts46_4811(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-rgna61159u..xn--4grs325b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-rgna61159u..xn--4grs325b', strict=True) + + def test_uts46_4812(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh11906f.xn--4grs325b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh11906f.xn--4grs325b', strict=True) + + def test_uts46_4813(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0uga855aez302a.xn--4grs325b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0uga855aez302a.xn--4grs325b', strict=True) + + def test_uts46_4814(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡃ.玿\U0006b21c\U000d5790', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡃ.玿\U0006b21c\U000d5790', strict=True) + + def test_uts46_4815(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--27e.xn--7cy81125a0yq4a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--27e.xn--7cy81125a0yq4a', strict=True) + + def test_uts46_4816(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200c。⒈≯𝟵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200c。⒈≯𝟵', strict=True) + + def test_uts46_4817(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200c。⒈≯𝟵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200c。⒈≯𝟵', strict=True) + + def test_uts46_4818(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200c。1.≯9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200c。1.≯9', strict=True) + + def test_uts46_4819(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\u200c。1.≯9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\u200c。1.≯9', strict=True) + + def test_uts46_4820(self): + self.assertRaises(idna.IDNAError, idna.decode, '.1.xn--9-ogo', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.1.xn--9-ogo', strict=True) + + def test_uts46_4821(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0uga.1.xn--9-ogo', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0uga.1.xn--9-ogo', strict=True) + + def test_uts46_4822(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--9-ogo37g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--9-ogo37g', strict=True) + + def test_uts46_4823(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0uga.xn--9-ogo37g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0uga.xn--9-ogo37g', strict=True) + + def test_uts46_4824(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟᷠ\U00090001.\U0003aec6≯𐮁', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟᷠ\U00090001.\U0003aec6≯𐮁', strict=True) + + def test_uts46_4825(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟᷠ\U00090001.\U0003aec6≯𐮁', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟᷠ\U00090001.\U0003aec6≯𐮁', strict=True) + + def test_uts46_4826(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4eg41418g.xn--hdh5192gkm6r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4eg41418g.xn--hdh5192gkm6r', strict=True) + + def test_uts46_4827(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--osd615d5659o.xn--hdh5192gkm6r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--osd615d5659o.xn--hdh5192gkm6r', strict=True) + + def test_uts46_4828(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄫𝩤\u200dؾ.𝩩-ࠞ\U000d1f29', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄫𝩤\u200dؾ.𝩩-ࠞ\U000d1f29', strict=True) + + def test_uts46_4829(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9gb5080v.xn----qgd52296avol4f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9gb5080v.xn----qgd52296avol4f', strict=True) + + def test_uts46_4830(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9gb723kg862a.xn----qgd52296avol4f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9gb723kg862a.xn----qgd52296avol4f', strict=True) + + def test_uts46_4831(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃚.𑘿-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃚.𑘿-', strict=True) + + def test_uts46_4832(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃚.𑘿-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃚.𑘿-', strict=True) + + def test_uts46_4833(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--w0g.xn----bd0j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--w0g.xn----bd0j', strict=True) + + def test_uts46_4834(self): + self.assertRaises(idna.IDNAError, idna.decode, '䮸ß.\U000e0d5f\U000e0b4e紙ࢨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䮸ß.\U000e0d5f\U000e0b4e紙ࢨ', strict=True) + + def test_uts46_4835(self): + self.assertRaises(idna.IDNAError, idna.decode, '䮸SS.\U000e0d5f\U000e0b4e紙ࢨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䮸SS.\U000e0d5f\U000e0b4e紙ࢨ', strict=True) + + def test_uts46_4836(self): + self.assertRaises(idna.IDNAError, idna.decode, '䮸ss.\U000e0d5f\U000e0b4e紙ࢨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䮸ss.\U000e0d5f\U000e0b4e紙ࢨ', strict=True) + + def test_uts46_4837(self): + self.assertRaises(idna.IDNAError, idna.decode, '䮸Ss.\U000e0d5f\U000e0b4e紙ࢨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䮸Ss.\U000e0d5f\U000e0b4e紙ࢨ', strict=True) + + def test_uts46_4838(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-sf1c.xn--xyb1370div70kpzba', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-sf1c.xn--xyb1370div70kpzba', strict=True) + + def test_uts46_4839(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca5349a.xn--xyb1370div70kpzba', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca5349a.xn--xyb1370div70kpzba', strict=True) + + def test_uts46_4840(self): + self.assertRaises(idna.IDNAError, idna.decode, '-Ⴞ.-𝩨⅔𐦕', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-Ⴞ.-𝩨⅔𐦕', strict=True) + + def test_uts46_4841(self): + self.assertRaises(idna.IDNAError, idna.decode, '-Ⴞ.-𝩨2⁄3𐦕', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-Ⴞ.-𝩨2⁄3𐦕', strict=True) + + def test_uts46_4842(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ⴞ.-𝩨2⁄3𐦕', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ⴞ.-𝩨2⁄3𐦕', strict=True) + + def test_uts46_4843(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----zws.xn---23-pt0a0433lk3jj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----zws.xn---23-pt0a0433lk3jj', strict=True) + + def test_uts46_4844(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ⴞ.-𝩨⅔𐦕', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ⴞ.-𝩨⅔𐦕', strict=True) + + def test_uts46_4845(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----w1g.xn---23-pt0a0433lk3jj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----w1g.xn---23-pt0a0433lk3jj', strict=True) + + def test_uts46_4846(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e722f𐹯ૂ。\U000968a8𐮁\U00047f16ᡂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e722f𐹯ૂ。\U000968a8𐮁\U00047f16ᡂ', strict=True) + + def test_uts46_4847(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e722f𐹯ૂ。\U000968a8𐮁\U00047f16ᡂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e722f𐹯ૂ。\U000968a8𐮁\U00047f16ᡂ', strict=True) + + def test_uts46_4848(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bfc7604kv8m3g.xn--17e5565jl7zw4h16a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bfc7604kv8m3g.xn--17e5565jl7zw4h16a', strict=True) + + def test_uts46_4849(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ႂ-\u200d꣪.ꡊ\u200d\U0007ce33', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ႂ-\u200d꣪.ꡊ\u200d\U0007ce33', strict=True) + + def test_uts46_4850(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ႂ-\u200d꣪.ꡊ\u200d\U0007ce33', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ႂ-\u200d꣪.ꡊ\u200d\U0007ce33', strict=True) + + def test_uts46_4851(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----gyg3618i.xn--jc9ao4185a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----gyg3618i.xn--jc9ao4185a', strict=True) + + def test_uts46_4852(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----gyg250jio7k.xn--1ug8774cri56d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----gyg250jio7k.xn--1ug8774cri56d', strict=True) + + def test_uts46_4853(self): + self.assertRaises(idna.IDNAError, idna.decode, '۱。≠٨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '۱。≠٨', strict=True) + + def test_uts46_4854(self): + self.assertRaises(idna.IDNAError, idna.decode, '۱。≠٨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '۱。≠٨', strict=True) + + def test_uts46_4855(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--emb.xn--hib334l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--emb.xn--hib334l', strict=True) + + def test_uts46_4856(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑈵廊.𐠍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑈵廊.𐠍', strict=True) + + def test_uts46_4857(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xytw701b.xn--yc9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xytw701b.xn--yc9c', strict=True) + + def test_uts46_4858(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d͖-.-Ⴐ١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d͖-.-Ⴐ١', strict=True) + + def test_uts46_4859(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d͖-.-Ⴐ١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d͖-.-Ⴐ١', strict=True) + + def test_uts46_4860(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d͖-.-ⴐ١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d͖-.-ⴐ١', strict=True) + + def test_uts46_4861(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----rgb.xn----bqc2280a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----rgb.xn----bqc2280a', strict=True) + + def test_uts46_4862(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----rgb661t.xn----bqc2280a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----rgb661t.xn----bqc2280a', strict=True) + + def test_uts46_4863(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d͖-.-ⴐ١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d͖-.-ⴐ١', strict=True) + + def test_uts46_4864(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----rgb.xn----bqc030f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----rgb.xn----bqc030f', strict=True) + + def test_uts46_4865(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----rgb661t.xn----bqc030f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----rgb661t.xn----bqc030f', strict=True) + + def test_uts46_4866(self): + self.assertRaises(idna.IDNAError, idna.decode, 'غ١挏\U000febd0.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'غ١挏\U000febd0.-', strict=True) + + def test_uts46_4867(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5gb2f4205aqi47p.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5gb2f4205aqi47p.-', strict=True) + + def test_uts46_4868(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۯ。𐹧𞤽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۯ。𐹧𞤽', strict=True) + + def test_uts46_4869(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۯ。𐹧𞤽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۯ。𐹧𞤽', strict=True) + + def test_uts46_4870(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۯ。𐹧𞤛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۯ。𐹧𞤛', strict=True) + + def test_uts46_4871(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--cmb.xn--fo0dy848a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--cmb.xn--fo0dy848a', strict=True) + + def test_uts46_4872(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ۯ。𐹧𞤛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ۯ。𐹧𞤛', strict=True) + + def test_uts46_4873(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + + def test_uts46_4874(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + + def test_uts46_4875(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + + def test_uts46_4876(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + + def test_uts46_4877(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + + def test_uts46_4878(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + + def test_uts46_4879(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mlj0486jgl2j.xn--hbf6853f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mlj0486jgl2j.xn--hbf6853f', strict=True) + + def test_uts46_4880(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + + def test_uts46_4881(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴞ\U000366c0\U0001b5fb.ᢗ릫', strict=True) + + def test_uts46_4882(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2nd8876sgl2j.xn--hbf6853f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2nd8876sgl2j.xn--hbf6853f', strict=True) + + def test_uts46_4883(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0383\U000d7b5eڷ𐹷。≯\u200c᷾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0383\U000d7b5eڷ𐹷。≯\u200c᷾', strict=True) + + def test_uts46_4884(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0383\U000d7b5eڷ𐹷。≯\u200c᷾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0383\U000d7b5eڷ𐹷。≯\u200c᷾', strict=True) + + def test_uts46_4885(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0383\U000d7b5eڷ𐹷。≯\u200c᷾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0383\U000d7b5eڷ𐹷。≯\u200c᷾', strict=True) + + def test_uts46_4886(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0383\U000d7b5eڷ𐹷。≯\u200c᷾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0383\U000d7b5eڷ𐹷。≯\u200c᷾', strict=True) + + def test_uts46_4887(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qkb4516kbi06fg2id.xn--zfg31q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qkb4516kbi06fg2id.xn--zfg31q', strict=True) + + def test_uts46_4888(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qkb4516kbi06fg2id.xn--zfg59fm0c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qkb4516kbi06fg2id.xn--zfg59fm0c', strict=True) + + def test_uts46_4889(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᛎ󠅍\U000e0415\u200d。𐹾𐹪\U00010edd-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᛎ󠅍\U000e0415\u200d。𐹾𐹪\U00010edd-', strict=True) + + def test_uts46_4890(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᛎ󠅍\U000e0415\u200d。𐹾𐹪\U00010edd-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᛎ󠅍\U000e0415\u200d。𐹾𐹪\U00010edd-', strict=True) + + def test_uts46_4891(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fxe63563p.xn----q26i2bvu', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fxe63563p.xn----q26i2bvu', strict=True) + + def test_uts46_4892(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fxe848bq3411a.xn----q26i2bvu', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fxe848bq3411a.xn----q26i2bvu', strict=True) + + def test_uts46_4893(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹶.𐫂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹶.𐫂', strict=True) + + def test_uts46_4894(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uo0d.xn--rw9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uo0d.xn--rw9c', strict=True) + + def test_uts46_4895(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\u200d်。⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\u200d်。⒈', strict=True) + + def test_uts46_4896(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß\u200d်。1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß\u200d်。1.', strict=True) + + def test_uts46_4897(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS\u200d်。1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS\u200d်。1.', strict=True) + + def test_uts46_4898(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss\u200d်。1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss\u200d်。1.', strict=True) + + def test_uts46_4899(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss\u200d်。1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss\u200d်。1.', strict=True) + + def test_uts46_4902(self): + self.assertEqual(idna.decode('SS်.B.', uts46=True, strict=True), 'ss်.b.') + self.assertRaises(idna.IDNAError, idna.encode, 'SS်.B.', strict=True) + + def test_uts46_4903(self): + self.assertEqual(idna.decode('Ss်.b.', uts46=True, strict=True), 'ss်.b.') + self.assertRaises(idna.IDNAError, idna.encode, 'Ss်.b.', strict=True) + + def test_uts46_4904(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-f4j585j.b.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-f4j585j.b.', strict=True) + + def test_uts46_4905(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca679eh2l.b.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca679eh2l.b.', strict=True) + + def test_uts46_4906(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS\u200d်。⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS\u200d်。⒈', strict=True) + + def test_uts46_4907(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss\u200d်。⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss\u200d်。⒈', strict=True) + + def test_uts46_4908(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss\u200d်。⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss\u200d်。⒈', strict=True) + + def test_uts46_4909(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-f4j.xn--tsh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-f4j.xn--tsh', strict=True) + + def test_uts46_4910(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-f4j585j.xn--tsh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-f4j585j.xn--tsh', strict=True) + + def test_uts46_4911(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca679eh2l.xn--tsh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca679eh2l.xn--tsh', strict=True) + + def test_uts46_4912(self): + self.assertEqual(idna.decode('SS်.b.', uts46=True, strict=True), 'ss်.b.') + self.assertRaises(idna.IDNAError, idna.encode, 'SS်.b.', strict=True) + + def test_uts46_4913(self): + self.assertRaises(idna.IDNAError, idna.decode, '୍\u200c\U00019db5\U0001eed8。\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '୍\u200c\U00019db5\U0001eed8。\u200d', strict=True) + + def test_uts46_4914(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ic6417rn4xb.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ic6417rn4xb.', strict=True) + + def test_uts46_4915(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9ic637hz82z32jc.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9ic637hz82z32jc.xn--1ug', strict=True) + + def test_uts46_4916(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐮅。ڼ🁕', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐮅。ڼ🁕', strict=True) + + def test_uts46_4917(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐮅。ڼ🁕', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐮅。ڼ🁕', strict=True) + + def test_uts46_4918(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--c29c.xn--vkb8871w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--c29c.xn--vkb8871w', strict=True) + + def test_uts46_4919(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ؠ្。𐫔\U000e0027\u200c𑈵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ؠ្。𐫔\U000e0027\u200c𑈵', strict=True) + + def test_uts46_4920(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fgb471g.xn--9w9c29jw3931a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fgb471g.xn--9w9c29jw3931a', strict=True) + + def test_uts46_4921(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fgb471g.xn--0ug9853g7verp838a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fgb471g.xn--0ug9853g7verp838a', strict=True) + + def test_uts46_4922(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004b255.𞣕𞤊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004b255.𞣕𞤊', strict=True) + + def test_uts46_4923(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0004b255.𞣕𞤬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0004b255.𞣕𞤬', strict=True) + + def test_uts46_4924(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tf5w.xn--2b6hof', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tf5w.xn--2b6hof', strict=True) + + def test_uts46_4925(self): + self.assertEqual(idna.decode('ی𐨿.ß྄𑍬', uts46=True, strict=True), 'ی𐨿.ß྄𑍬') + self.assertEqual(idna.encode('ی𐨿.ß྄𑍬', uts46=True, strict=True), b'xn--clb2593k.xn--zca216edt0r') + + def test_uts46_4926(self): + self.assertEqual(idna.decode('ی𐨿.ß྄𑍬', uts46=True, strict=True), 'ی𐨿.ß྄𑍬') + self.assertEqual(idna.encode('ی𐨿.ß྄𑍬', uts46=True, strict=True), b'xn--clb2593k.xn--zca216edt0r') + + def test_uts46_4927(self): + self.assertEqual(idna.decode('ی𐨿.SS྄𑍬', uts46=True, strict=True), 'ی𐨿.ss྄𑍬') + self.assertEqual(idna.encode('ی𐨿.SS྄𑍬', uts46=True, strict=True), b'xn--clb2593k.xn--ss-toj6092t') + + def test_uts46_4928(self): + self.assertEqual(idna.decode('ی𐨿.ss྄𑍬', uts46=True, strict=True), 'ی𐨿.ss྄𑍬') + self.assertEqual(idna.encode('ی𐨿.ss྄𑍬', uts46=True, strict=True), b'xn--clb2593k.xn--ss-toj6092t') + + def test_uts46_4929(self): + self.assertEqual(idna.decode('xn--clb2593k.xn--ss-toj6092t', uts46=True, strict=True), 'ی𐨿.ss྄𑍬') + self.assertEqual(idna.encode('xn--clb2593k.xn--ss-toj6092t', uts46=True, strict=True), b'xn--clb2593k.xn--ss-toj6092t') + + def test_uts46_4930(self): + self.assertEqual(idna.decode('xn--clb2593k.xn--zca216edt0r', uts46=True, strict=True), 'ی𐨿.ß྄𑍬') + self.assertEqual(idna.encode('xn--clb2593k.xn--zca216edt0r', uts46=True, strict=True), b'xn--clb2593k.xn--zca216edt0r') + + def test_uts46_4931(self): + self.assertEqual(idna.decode('ی𐨿.SS྄𑍬', uts46=True, strict=True), 'ی𐨿.ss྄𑍬') + self.assertEqual(idna.encode('ی𐨿.SS྄𑍬', uts46=True, strict=True), b'xn--clb2593k.xn--ss-toj6092t') + + def test_uts46_4932(self): + self.assertEqual(idna.decode('ی𐨿.ss྄𑍬', uts46=True, strict=True), 'ی𐨿.ss྄𑍬') + self.assertEqual(idna.encode('ی𐨿.ss྄𑍬', uts46=True, strict=True), b'xn--clb2593k.xn--ss-toj6092t') + + def test_uts46_4933(self): + self.assertEqual(idna.decode('ی𐨿.Ss྄𑍬', uts46=True, strict=True), 'ی𐨿.ss྄𑍬') + self.assertEqual(idna.encode('ی𐨿.Ss྄𑍬', uts46=True, strict=True), b'xn--clb2593k.xn--ss-toj6092t') + + def test_uts46_4934(self): + self.assertEqual(idna.decode('ی𐨿.Ss྄𑍬', uts46=True, strict=True), 'ی𐨿.ss྄𑍬') + self.assertEqual(idna.encode('ی𐨿.Ss྄𑍬', uts46=True, strict=True), b'xn--clb2593k.xn--ss-toj6092t') + + def test_uts46_4935(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟠≮\u200c。󠅱឴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟠≮\u200c。󠅱឴', strict=True) + + def test_uts46_4936(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟠≮\u200c。󠅱឴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟠≮\u200c。󠅱឴', strict=True) + + def test_uts46_4937(self): + self.assertRaises(idna.IDNAError, idna.decode, '8≮\u200c。󠅱឴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8≮\u200c。󠅱឴', strict=True) + + def test_uts46_4938(self): + self.assertRaises(idna.IDNAError, idna.decode, '8≮\u200c。󠅱឴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8≮\u200c。󠅱឴', strict=True) + + def test_uts46_4939(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-ngo.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-ngo.', strict=True) + + def test_uts46_4940(self): + self.assertRaises(idna.IDNAError, idna.decode, '8≮.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8≮.', strict=True) + + def test_uts46_4941(self): + self.assertRaises(idna.IDNAError, idna.decode, '8≮.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8≮.', strict=True) + + def test_uts46_4942(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-sgn10i.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-sgn10i.', strict=True) + + def test_uts46_4943(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-ngo.xn--z3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-ngo.xn--z3e', strict=True) + + def test_uts46_4944(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-sgn10i.xn--z3e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-sgn10i.xn--z3e', strict=True) + + def test_uts46_4945(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢕ≯︒\U000440af.Ⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢕ≯︒\U000440af.Ⴀ', strict=True) + + def test_uts46_4946(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢕ≯︒\U000440af.Ⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢕ≯︒\U000440af.Ⴀ', strict=True) + + def test_uts46_4947(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢕ≯。\U000440af.Ⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢕ≯。\U000440af.Ⴀ', strict=True) + + def test_uts46_4948(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢕ≯。\U000440af.Ⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢕ≯。\U000440af.Ⴀ', strict=True) + + def test_uts46_4949(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢕ≯。\U000440af.ⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢕ≯。\U000440af.ⴀ', strict=True) + + def test_uts46_4950(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢕ≯。\U000440af.ⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢕ≯。\U000440af.ⴀ', strict=True) + + def test_uts46_4951(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fbf851c.xn--ko1u.xn--rkj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fbf851c.xn--ko1u.xn--rkj', strict=True) + + def test_uts46_4952(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢕ≯︒\U000440af.ⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢕ≯︒\U000440af.ⴀ', strict=True) + + def test_uts46_4953(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢕ≯︒\U000440af.ⴀ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢕ≯︒\U000440af.ⴀ', strict=True) + + def test_uts46_4954(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fbf851cq98poxw1a.xn--rkj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fbf851cq98poxw1a.xn--rkj', strict=True) + + def test_uts46_4955(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fbf851c.xn--ko1u.xn--7md', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fbf851c.xn--ko1u.xn--7md', strict=True) + + def test_uts46_4956(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fbf851cq98poxw1a.xn--7md', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fbf851cq98poxw1a.xn--7md', strict=True) + + def test_uts46_4957(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྟ.-ࠪ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྟ.-ࠪ', strict=True) + + def test_uts46_4958(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྟ.-ࠪ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྟ.-ࠪ', strict=True) + + def test_uts46_4959(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vfd.xn----fhd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vfd.xn----fhd', strict=True) + + def test_uts46_4960(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᵬ󠆠.핒⒒⒈\U00108126', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᵬ󠆠.핒⒒⒈\U00108126', strict=True) + + def test_uts46_4961(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᵬ󠆠.핒⒒⒈\U00108126', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᵬ󠆠.핒⒒⒈\U00108126', strict=True) + + def test_uts46_4962(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᵬ󠆠.핒11.1.\U00108126', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᵬ󠆠.핒11.1.\U00108126', strict=True) + + def test_uts46_4963(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᵬ󠆠.핒11.1.\U00108126', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᵬ󠆠.핒11.1.\U00108126', strict=True) + + def test_uts46_4964(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tbg.xn--11-5o7k.1.xn--k469f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tbg.xn--11-5o7k.1.xn--k469f', strict=True) + + def test_uts46_4965(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tbg.xn--tsht7586kyts9l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tbg.xn--tsht7586kyts9l', strict=True) + + def test_uts46_4966(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς𑓂𐋢.٨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς𑓂𐋢.٨', strict=True) + + def test_uts46_4967(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς𑓂𐋢.٨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς𑓂𐋢.٨', strict=True) + + def test_uts46_4968(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ𑓂𐋢.٨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ𑓂𐋢.٨', strict=True) + + def test_uts46_4969(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ𑓂𐋢.٨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ𑓂𐋢.٨', strict=True) + + def test_uts46_4970(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa6371khhl.xn--hib', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa6371khhl.xn--hib', strict=True) + + def test_uts46_4971(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa8371khhl.xn--hib', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa8371khhl.xn--hib', strict=True) + + def test_uts46_4972(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ𑓂𐋢.٨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ𑓂𐋢.٨', strict=True) + + def test_uts46_4973(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ𑓂𐋢.٨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ𑓂𐋢.٨', strict=True) + + def test_uts46_4974(self): + self.assertRaises(idna.IDNAError, idna.decode, '꥓\u200c𐋻\u200d.ⷸ\U0001efc4𐹲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꥓\u200c𐋻\u200d.ⷸ\U0001efc4𐹲', strict=True) + + def test_uts46_4975(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3j9a531o.xn--urju692efj0f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3j9a531o.xn--urju692efj0f', strict=True) + + def test_uts46_4976(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugc8356he76c.xn--urju692efj0f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugc8356he76c.xn--urju692efj0f', strict=True) + + def test_uts46_4977(self): + self.assertRaises(idna.IDNAError, idna.decode, '⊼。\U0006a9d6ڕ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⊼。\U0006a9d6ڕ', strict=True) + + def test_uts46_4978(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ofh.xn--rjb13118f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ofh.xn--rjb13118f', strict=True) + + def test_uts46_4979(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010bec\U000562d4。\U000dcce5', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010bec\U000562d4。\U000dcce5', strict=True) + + def test_uts46_4980(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--949co370q.xn--7g25e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--949co370q.xn--7g25e', strict=True) + + def test_uts46_4981(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0601𑍧ߝ。ς\U000ac358🀞឵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0601𑍧ߝ。ς\U000ac358🀞឵', strict=True) + + def test_uts46_4982(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0601𑍧ߝ。Σ\U000ac358🀞឵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0601𑍧ߝ。Σ\U000ac358🀞឵', strict=True) + + def test_uts46_4983(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0601𑍧ߝ。σ\U000ac358🀞឵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0601𑍧ߝ。σ\U000ac358🀞឵', strict=True) + + def test_uts46_4984(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jfb66gt010c.xn--4xa0023w4nq4c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jfb66gt010c.xn--4xa0023w4nq4c', strict=True) + + def test_uts46_4985(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jfb66gt010c.xn--3xa2023w4nq4c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jfb66gt010c.xn--3xa2023w4nq4c', strict=True) + + def test_uts46_4986(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jfb66gt010c.xn--4xa623h9p95ars26d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jfb66gt010c.xn--4xa623h9p95ars26d', strict=True) + + def test_uts46_4987(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jfb66gt010c.xn--3xa823h9p95ars26d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jfb66gt010c.xn--3xa823h9p95ars26d', strict=True) + + def test_uts46_4988(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𐳲ن\U000e0e90。꯭𝟥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𐳲ن\U000e0e90。꯭𝟥', strict=True) + + def test_uts46_4989(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𐳲ن\U000e0e90。꯭3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𐳲ن\U000e0e90。꯭3', strict=True) + + def test_uts46_4990(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𐲲ن\U000e0e90。꯭3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𐲲ن\U000e0e90。꯭3', strict=True) + + def test_uts46_4991(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----roc5482rek10i.xn--3-zw5e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----roc5482rek10i.xn--3-zw5e', strict=True) + + def test_uts46_4992(self): + self.assertRaises(idna.IDNAError, idna.decode, '-𐲲ن\U000e0e90。꯭𝟥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-𐲲ن\U000e0e90。꯭𝟥', strict=True) + + def test_uts46_4993(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000e0d26。\U00072a15≮𐦜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000e0d26。\U00072a15≮𐦜', strict=True) + + def test_uts46_4994(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000e0d26。\U00072a15≮𐦜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000e0d26。\U00072a15≮𐦜', strict=True) + + def test_uts46_4995(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000e0d26。\U00072a15≮𐦜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000e0d26。\U00072a15≮𐦜', strict=True) + + def test_uts46_4996(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U000e0d26。\U00072a15≮𐦜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U000e0d26。\U00072a15≮𐦜', strict=True) + + def test_uts46_4997(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6v56e.xn--gdhz712gzlr6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6v56e.xn--gdhz712gzlr6b', strict=True) + + def test_uts46_4998(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug22251l.xn--gdhz712gzlr6b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug22251l.xn--gdhz712gzlr6b', strict=True) + + def test_uts46_4999(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈✌\U0009fb1f.𝟡\U00060c63', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈✌\U0009fb1f.𝟡\U00060c63', strict=True) + + def test_uts46_5000(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.✌\U0009fb1f.9\U00060c63', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.✌\U0009fb1f.9\U00060c63', strict=True) + + def test_uts46_5001(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--7bi44996f.xn--9-o706d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--7bi44996f.xn--9-o706d', strict=True) + + def test_uts46_5002(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh24g49550b.xn--9-o706d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh24g49550b.xn--9-o706d', strict=True) + + def test_uts46_5003(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑆾𞤬𐮆.٦ᷔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑆾𞤬𐮆.٦ᷔ', strict=True) + + def test_uts46_5004(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑆾𞤊𐮆.٦ᷔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑆾𞤊𐮆.٦ᷔ', strict=True) + + def test_uts46_5005(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--d29c79hf98r.xn--fib011j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--d29c79hf98r.xn--fib011j', strict=True) + + def test_uts46_5006(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς.꧀꣄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς.꧀꣄', strict=True) + + def test_uts46_5007(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς.꧀꣄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς.꧀꣄', strict=True) + + def test_uts46_5008(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ.꧀꣄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ.꧀꣄', strict=True) + + def test_uts46_5009(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ.꧀꣄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ.꧀꣄', strict=True) + + def test_uts46_5010(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa.xn--0f9ars', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa.xn--0f9ars', strict=True) + + def test_uts46_5011(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa.xn--0f9ars', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa.xn--0f9ars', strict=True) + + def test_uts46_5012(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ.꧀꣄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ.꧀꣄', strict=True) + + def test_uts46_5013(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ.꧀꣄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ.꧀꣄', strict=True) + + def test_uts46_5014(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰶\u200c≯𐳐.࡛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰶\u200c≯𐳐.࡛', strict=True) + + def test_uts46_5015(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰶\u200c≯𐳐.࡛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰶\u200c≯𐳐.࡛', strict=True) + + def test_uts46_5016(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰶\u200c≯𐳐.࡛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰶\u200c≯𐳐.࡛', strict=True) + + def test_uts46_5017(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰶\u200c≯𐳐.࡛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰶\u200c≯𐳐.࡛', strict=True) + + def test_uts46_5018(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰶\u200c≯𐲐.࡛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰶\u200c≯𐲐.࡛', strict=True) + + def test_uts46_5019(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰶\u200c≯𐲐.࡛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰶\u200c≯𐲐.࡛', strict=True) + + def test_uts46_5020(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdhz343g3wj.xn--qwb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdhz343g3wj.xn--qwb', strict=True) + + def test_uts46_5021(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug06g7697ap4ma.xn--qwb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug06g7697ap4ma.xn--qwb', strict=True) + + def test_uts46_5022(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰶\u200c≯𐲐.࡛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰶\u200c≯𐲐.࡛', strict=True) + + def test_uts46_5023(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰶\u200c≯𐲐.࡛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰶\u200c≯𐲐.࡛', strict=True) + + def test_uts46_5024(self): + self.assertRaises(idna.IDNAError, idna.decode, '羚。≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '羚。≯', strict=True) + + def test_uts46_5025(self): + self.assertRaises(idna.IDNAError, idna.decode, '羚。≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '羚。≯', strict=True) + + def test_uts46_5026(self): + self.assertRaises(idna.IDNAError, idna.decode, '羚。≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '羚。≯', strict=True) + + def test_uts46_5027(self): + self.assertRaises(idna.IDNAError, idna.decode, '羚。≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '羚。≯', strict=True) + + def test_uts46_5028(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xt0a.xn--hdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xt0a.xn--hdh', strict=True) + + def test_uts46_5029(self): + self.assertRaises(idna.IDNAError, idna.decode, '羚.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '羚.≯', strict=True) + + def test_uts46_5030(self): + self.assertRaises(idna.IDNAError, idna.decode, '羚.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '羚.≯', strict=True) + + def test_uts46_5031(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑓂\u1759.ࢨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑓂\u1759.ࢨ', strict=True) + + def test_uts46_5032(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑓂\u1759.ࢨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑓂\u1759.ࢨ', strict=True) + + def test_uts46_5033(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--e1e9580k.xn--xyb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--e1e9580k.xn--xyb', strict=True) + + def test_uts46_5034(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e88ff󠇀\u200d。٣ҠჀ𝟑', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e88ff󠇀\u200d。٣ҠჀ𝟑', strict=True) + + def test_uts46_5035(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e88ff󠇀\u200d。٣ҠჀ3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e88ff󠇀\u200d。٣ҠჀ3', strict=True) + + def test_uts46_5036(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e88ff󠇀\u200d。٣ҡⴠ3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e88ff󠇀\u200d。٣ҡⴠ3', strict=True) + + def test_uts46_5037(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1r19e.xn--3-ozb36ko13f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1r19e.xn--3-ozb36ko13f', strict=True) + + def test_uts46_5038(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug89936l.xn--3-ozb36ko13f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug89936l.xn--3-ozb36ko13f', strict=True) + + def test_uts46_5039(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e88ff󠇀\u200d。٣ҡⴠ𝟑', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e88ff󠇀\u200d。٣ҡⴠ𝟑', strict=True) + + def test_uts46_5040(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1r19e.xn--3-ozb36kixu', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1r19e.xn--3-ozb36kixu', strict=True) + + def test_uts46_5041(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug89936l.xn--3-ozb36kixu', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug89936l.xn--3-ozb36kixu', strict=True) + + def test_uts46_5042(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e88ff󠇀\u200d。٣Ҡⴠ3', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e88ff󠇀\u200d。٣Ҡⴠ3', strict=True) + + def test_uts46_5043(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e88ff󠇀\u200d。٣Ҡⴠ𝟑', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e88ff󠇀\u200d。٣Ҡⴠ𝟑', strict=True) + + def test_uts46_5044(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡷ。𐹢࣠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡷ。𐹢࣠', strict=True) + + def test_uts46_5045(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--k9e.xn--j0b5005k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--k9e.xn--j0b5005k', strict=True) + + def test_uts46_5046(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00095b87᯳。٦\U0005773c្ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00095b87᯳。٦\U0005773c្ß', strict=True) + + def test_uts46_5047(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00095b87᯳。٦\U0005773c្ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00095b87᯳。٦\U0005773c្ß', strict=True) + + def test_uts46_5048(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00095b87᯳。٦\U0005773c្SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00095b87᯳。٦\U0005773c្SS', strict=True) + + def test_uts46_5049(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00095b87᯳。٦\U0005773c្ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00095b87᯳。٦\U0005773c្ss', strict=True) + + def test_uts46_5050(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00095b87᯳。٦\U0005773c្Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00095b87᯳。٦\U0005773c្Ss', strict=True) + + def test_uts46_5051(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1zf58212h.xn--ss-pyd459o3258m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1zf58212h.xn--ss-pyd459o3258m', strict=True) + + def test_uts46_5052(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1zf58212h.xn--zca34zk4qx711k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1zf58212h.xn--zca34zk4qx711k', strict=True) + + def test_uts46_5053(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00095b87᯳。٦\U0005773c្SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00095b87᯳。٦\U0005773c្SS', strict=True) + + def test_uts46_5054(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00095b87᯳。٦\U0005773c្ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00095b87᯳。٦\U0005773c្ss', strict=True) + + def test_uts46_5055(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00095b87᯳。٦\U0005773c្Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00095b87᯳。٦\U0005773c្Ss', strict=True) + + def test_uts46_5056(self): + self.assertRaises(idna.IDNAError, idna.decode, '٤\U000a4f4e𑲛.\U000e0522︒≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٤\U000a4f4e𑲛.\U000e0522︒≠', strict=True) + + def test_uts46_5057(self): + self.assertRaises(idna.IDNAError, idna.decode, '٤\U000a4f4e𑲛.\U000e0522︒≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٤\U000a4f4e𑲛.\U000e0522︒≠', strict=True) + + def test_uts46_5058(self): + self.assertRaises(idna.IDNAError, idna.decode, '٤\U000a4f4e𑲛.\U000e0522。≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٤\U000a4f4e𑲛.\U000e0522。≠', strict=True) + + def test_uts46_5059(self): + self.assertRaises(idna.IDNAError, idna.decode, '٤\U000a4f4e𑲛.\U000e0522。≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٤\U000a4f4e𑲛.\U000e0522。≠', strict=True) + + def test_uts46_5060(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dib0653l2i02d.xn--k736e.xn--1ch', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dib0653l2i02d.xn--k736e.xn--1ch', strict=True) + + def test_uts46_5061(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dib0653l2i02d.xn--1ch7467f14u4g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dib0653l2i02d.xn--1ch7467f14u4g', strict=True) + + def test_uts46_5062(self): + self.assertRaises(idna.IDNAError, idna.decode, '➆\U000779d5ỗ⒈.\U00091b12\U0006162e࡛𝟫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '➆\U000779d5ỗ⒈.\U00091b12\U0006162e࡛𝟫', strict=True) + + def test_uts46_5063(self): + self.assertRaises(idna.IDNAError, idna.decode, '➆\U000779d5ỗ⒈.\U00091b12\U0006162e࡛𝟫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '➆\U000779d5ỗ⒈.\U00091b12\U0006162e࡛𝟫', strict=True) + + def test_uts46_5064(self): + self.assertRaises(idna.IDNAError, idna.decode, '➆\U000779d5ỗ1..\U00091b12\U0006162e࡛9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '➆\U000779d5ỗ1..\U00091b12\U0006162e࡛9', strict=True) + + def test_uts46_5065(self): + self.assertRaises(idna.IDNAError, idna.decode, '➆\U000779d5ỗ1..\U00091b12\U0006162e࡛9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '➆\U000779d5ỗ1..\U00091b12\U0006162e࡛9', strict=True) + + def test_uts46_5066(self): + self.assertRaises(idna.IDNAError, idna.decode, '➆\U000779d5Ỗ1..\U00091b12\U0006162e࡛9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '➆\U000779d5Ỗ1..\U00091b12\U0006162e࡛9', strict=True) + + def test_uts46_5067(self): + self.assertRaises(idna.IDNAError, idna.decode, '➆\U000779d5Ỗ1..\U00091b12\U0006162e࡛9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '➆\U000779d5Ỗ1..\U00091b12\U0006162e࡛9', strict=True) + + def test_uts46_5068(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-3xm292b6044r..xn--9-6jd87310jtcqs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-3xm292b6044r..xn--9-6jd87310jtcqs', strict=True) + + def test_uts46_5069(self): + self.assertRaises(idna.IDNAError, idna.decode, '➆\U000779d5Ỗ⒈.\U00091b12\U0006162e࡛𝟫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '➆\U000779d5Ỗ⒈.\U00091b12\U0006162e࡛𝟫', strict=True) + + def test_uts46_5070(self): + self.assertRaises(idna.IDNAError, idna.decode, '➆\U000779d5Ỗ⒈.\U00091b12\U0006162e࡛𝟫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '➆\U000779d5Ỗ⒈.\U00091b12\U0006162e࡛𝟫', strict=True) + + def test_uts46_5071(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6lg26tvvc6v99z.xn--9-6jd87310jtcqs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6lg26tvvc6v99z.xn--9-6jd87310jtcqs', strict=True) + + def test_uts46_5072(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。𞤘', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。𞤘', strict=True) + + def test_uts46_5073(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。𞤘', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。𞤘', strict=True) + + def test_uts46_5074(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。𞤺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。𞤺', strict=True) + + def test_uts46_5075(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--ye6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--ye6h', strict=True) + + def test_uts46_5076(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--ye6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--ye6h', strict=True) + + def test_uts46_5077(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d。𞤺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d。𞤺', strict=True) + + def test_uts46_5078(self): + self.assertEqual(idna.decode('xn--ye6h', uts46=True, strict=True), '𞤺') + self.assertEqual(idna.encode('xn--ye6h', uts46=True, strict=True), b'xn--ye6h') + + def test_uts46_5079(self): + self.assertEqual(idna.decode('𞤺', uts46=True, strict=True), '𞤺') + self.assertEqual(idna.encode('𞤺', uts46=True, strict=True), b'xn--ye6h') + + def test_uts46_5080(self): + self.assertEqual(idna.decode('𞤘', uts46=True, strict=True), '𞤺') + self.assertEqual(idna.encode('𞤘', uts46=True, strict=True), b'xn--ye6h') + + def test_uts46_5081(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࠩܤ.ᢣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࠩܤ.ᢣ', strict=True) + + def test_uts46_5082(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--unb53c.xn--tbf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--unb53c.xn--tbf', strict=True) + + def test_uts46_5083(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܼ\u200c-。\U0001343eß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܼ\u200c-。\U0001343eß', strict=True) + + def test_uts46_5084(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܼ\u200c-。\U0001343eSS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܼ\u200c-。\U0001343eSS', strict=True) + + def test_uts46_5085(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܼ\u200c-。\U0001343ess', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܼ\u200c-。\U0001343ess', strict=True) + + def test_uts46_5086(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܼ\u200c-。\U0001343eSs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܼ\u200c-。\U0001343eSs', strict=True) + + def test_uts46_5087(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----s2c.xn--ss-066q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----s2c.xn--ss-066q', strict=True) + + def test_uts46_5088(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----s2c071q.xn--ss-066q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----s2c071q.xn--ss-066q', strict=True) + + def test_uts46_5089(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----s2c071q.xn--zca7848m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----s2c071q.xn--zca7848m', strict=True) + + def test_uts46_5090(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cς🃡⒗.ೆ仧ݖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cς🃡⒗.ೆ仧ݖ', strict=True) + + def test_uts46_5091(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cς🃡16..ೆ仧ݖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cς🃡16..ೆ仧ݖ', strict=True) + + def test_uts46_5092(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cΣ🃡16..ೆ仧ݖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cΣ🃡16..ೆ仧ݖ', strict=True) + + def test_uts46_5093(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cσ🃡16..ೆ仧ݖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cσ🃡16..ೆ仧ݖ', strict=True) + + def test_uts46_5094(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--16-ubc66061c..xn--9ob79ycx2e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--16-ubc66061c..xn--9ob79ycx2e', strict=True) + + def test_uts46_5095(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--16-ubc7700avy99b..xn--9ob79ycx2e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--16-ubc7700avy99b..xn--9ob79ycx2e', strict=True) + + def test_uts46_5096(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--16-rbc1800avy99b..xn--9ob79ycx2e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--16-rbc1800avy99b..xn--9ob79ycx2e', strict=True) + + def test_uts46_5097(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cΣ🃡⒗.ೆ仧ݖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cΣ🃡⒗.ೆ仧ݖ', strict=True) + + def test_uts46_5098(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cσ🃡⒗.ೆ仧ݖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cσ🃡⒗.ೆ仧ݖ', strict=True) + + def test_uts46_5099(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa229nbu92a.xn--9ob79ycx2e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa229nbu92a.xn--9ob79ycx2e', strict=True) + + def test_uts46_5100(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa595lz9czy52d.xn--9ob79ycx2e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa595lz9czy52d.xn--9ob79ycx2e', strict=True) + + def test_uts46_5101(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa795lz9czy52d.xn--9ob79ycx2e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa795lz9czy52d.xn--9ob79ycx2e', strict=True) + + def test_uts46_5102(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.𞸚', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.𞸚', strict=True) + + def test_uts46_5103(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.ظ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.ظ', strict=True) + + def test_uts46_5104(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--3gb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--3gb', strict=True) + + def test_uts46_5105(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008f6d3ڃ.ཾش', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008f6d3ڃ.ཾش', strict=True) + + def test_uts46_5106(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8ib92728i.xn--zgb968b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8ib92728i.xn--zgb968b', strict=True) + + def test_uts46_5107(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0fe6ࡃ\U0007ddac.𐮏', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0fe6ࡃ\U0007ddac.𐮏', strict=True) + + def test_uts46_5108(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1vb320b5m04p.xn--m29c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1vb320b5m04p.xn--m29c', strict=True) + + def test_uts46_5109(self): + self.assertRaises(idna.IDNAError, idna.decode, '2\U0004ea20ߋß。ᠽ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2\U0004ea20ߋß。ᠽ', strict=True) + + def test_uts46_5110(self): + self.assertRaises(idna.IDNAError, idna.decode, '2\U0004ea20ߋSS。ᠽ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2\U0004ea20ߋSS。ᠽ', strict=True) + + def test_uts46_5111(self): + self.assertRaises(idna.IDNAError, idna.decode, '2\U0004ea20ߋss。ᠽ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2\U0004ea20ߋss。ᠽ', strict=True) + + def test_uts46_5112(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2ss-odg83511n.xn--w7e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2ss-odg83511n.xn--w7e', strict=True) + + def test_uts46_5113(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2-qfa924cez02l.xn--w7e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2-qfa924cez02l.xn--w7e', strict=True) + + def test_uts46_5114(self): + self.assertRaises(idna.IDNAError, idna.decode, '2\U0004ea20ߋSs。ᠽ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2\U0004ea20ߋSs。ᠽ', strict=True) + + def test_uts46_5115(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێß-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێß-\u200d', strict=True) + + def test_uts46_5116(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێß-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێß-\u200d', strict=True) + + def test_uts46_5117(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێß-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێß-\u200d', strict=True) + + def test_uts46_5118(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێß-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێß-\u200d', strict=True) + + def test_uts46_5119(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێSS-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێSS-\u200d', strict=True) + + def test_uts46_5120(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێSS-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێSS-\u200d', strict=True) + + def test_uts46_5121(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێss-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێss-\u200d', strict=True) + + def test_uts46_5122(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێss-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێss-\u200d', strict=True) + + def test_uts46_5123(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lsb457kkut.xn--ss--qjf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lsb457kkut.xn--ss--qjf', strict=True) + + def test_uts46_5124(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lsb457kkut.xn--ss--qjf2343a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lsb457kkut.xn--ss--qjf2343a', strict=True) + + def test_uts46_5125(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lsb457kkut.xn----pfa076bys4a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lsb457kkut.xn----pfa076bys4a', strict=True) + + def test_uts46_5126(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێSS-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێSS-\u200d', strict=True) + + def test_uts46_5127(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێSS-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێSS-\u200d', strict=True) + + def test_uts46_5128(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێss-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێss-\u200d', strict=True) + + def test_uts46_5129(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێss-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێss-\u200d', strict=True) + + def test_uts46_5130(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێSs-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێSs-\u200d', strict=True) + + def test_uts46_5131(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێSs-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێSs-\u200d', strict=True) + + def test_uts46_5132(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێSs-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێSs-\u200d', strict=True) + + def test_uts46_5133(self): + self.assertRaises(idna.IDNAError, idna.decode, '㸳ߊ≮.ێSs-\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㸳ߊ≮.ێSs-\u200d', strict=True) + + def test_uts46_5134(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U000b776c፞𑜧.ᷫ-︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U000b776c፞𑜧.ᷫ-︒', strict=True) + + def test_uts46_5135(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U000b776c፞𑜧.ᷫ-。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U000b776c፞𑜧.ᷫ-。', strict=True) + + def test_uts46_5136(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----b5h1837n2ok9f.xn----mkm.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----b5h1837n2ok9f.xn----mkm.', strict=True) + + def test_uts46_5137(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----b5h1837n2ok9f.xn----mkmw278h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----b5h1837n2ok9f.xn----mkmw278h', strict=True) + + def test_uts46_5138(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒.\U0009a821ᩙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒.\U0009a821ᩙ', strict=True) + + def test_uts46_5139(self): + self.assertRaises(idna.IDNAError, idna.decode, '。.\U0009a821ᩙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。.\U0009a821ᩙ', strict=True) + + def test_uts46_5140(self): + self.assertRaises(idna.IDNAError, idna.decode, '..xn--cof61594i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '..xn--cof61594i', strict=True) + + def test_uts46_5141(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y86c.xn--cof61594i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y86c.xn--cof61594i', strict=True) + + def test_uts46_5142(self): + self.assertRaises(idna.IDNAError, idna.decode, '̣ⷡ。\u200c⓾\u200cڹ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '̣ⷡ。\u200c⓾\u200cڹ', strict=True) + + def test_uts46_5143(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kta899s.xn--skb116m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kta899s.xn--skb116m', strict=True) + + def test_uts46_5144(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kta899s.xn--skb970ka771c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kta899s.xn--skb970ka771c', strict=True) + + def test_uts46_5145(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠶ᠴ\u06dd。ၴ𞤵󠅦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠶ᠴ\u06dd。ၴ𞤵󠅦', strict=True) + + def test_uts46_5146(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠶ᠴ\u06dd。ၴ𞤵󠅦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠶ᠴ\u06dd。ၴ𞤵󠅦', strict=True) + + def test_uts46_5147(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠶ᠴ\u06dd。ၴ𞤓󠅦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠶ᠴ\u06dd。ၴ𞤓󠅦', strict=True) + + def test_uts46_5148(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tlb199fwl35a.xn--yld4613v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tlb199fwl35a.xn--yld4613v', strict=True) + + def test_uts46_5149(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠶ᠴ\u06dd。ၴ𞤓󠅦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠶ᠴ\u06dd。ၴ𞤓󠅦', strict=True) + + def test_uts46_5150(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰺.-\U000917cf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰺.-\U000917cf', strict=True) + + def test_uts46_5151(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jk3d.xn----iz68g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jk3d.xn----iz68g', strict=True) + + def test_uts46_5152(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0ee9.赏', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0ee9.赏', strict=True) + + def test_uts46_5153(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0ee9.赏', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0ee9.赏', strict=True) + + def test_uts46_5154(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2856e.xn--6o3a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2856e.xn--6o3a', strict=True) + + def test_uts46_5155(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڰᠡ。Ⴁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڰᠡ。Ⴁ', strict=True) + + def test_uts46_5156(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڰᠡ。Ⴁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڰᠡ。Ⴁ', strict=True) + + def test_uts46_5157(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڰᠡ。ⴁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڰᠡ。ⴁ', strict=True) + + def test_uts46_5158(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jkb440g.xn--skj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jkb440g.xn--skj', strict=True) + + def test_uts46_5159(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڰᠡ。ⴁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڰᠡ。ⴁ', strict=True) + + def test_uts46_5160(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jkb440g.xn--8md', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jkb440g.xn--8md', strict=True) + + def test_uts46_5161(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃞Ⴊڻς。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃞Ⴊڻς。-', strict=True) + + def test_uts46_5162(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃞Ⴊڻς。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃞Ⴊڻς。-', strict=True) + + def test_uts46_5163(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃞ⴊڻς。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃞ⴊڻς。-', strict=True) + + def test_uts46_5164(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃞ႪڻΣ。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃞ႪڻΣ。-', strict=True) + + def test_uts46_5165(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃞ⴊڻσ。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃞ⴊڻσ。-', strict=True) + + def test_uts46_5166(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃞Ⴊڻσ。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃞Ⴊڻσ。-', strict=True) + + def test_uts46_5167(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa33mr38aeel.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa33mr38aeel.-', strict=True) + + def test_uts46_5168(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa53mr38aeel.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa53mr38aeel.-', strict=True) + + def test_uts46_5169(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃞ⴊڻς。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃞ⴊڻς。-', strict=True) + + def test_uts46_5170(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃞ႪڻΣ。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃞ႪڻΣ。-', strict=True) + + def test_uts46_5171(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃞ⴊڻσ。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃞ⴊڻσ。-', strict=True) + + def test_uts46_5172(self): + self.assertRaises(idna.IDNAError, idna.decode, '⃞Ⴊڻσ。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⃞Ⴊڻσ。-', strict=True) + + def test_uts46_5173(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa33m7zmb0q.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa33m7zmb0q.-', strict=True) + + def test_uts46_5174(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa53m7zmb0q.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa53m7zmb0q.-', strict=True) + + def test_uts46_5175(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴍ.\U0004d1e6\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴍ.\U0004d1e6\u200c', strict=True) + + def test_uts46_5176(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴍ.\U0004d1e6\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴍ.\U0004d1e6\u200c', strict=True) + + def test_uts46_5177(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴍ.\U0004d1e6\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴍ.\U0004d1e6\u200c', strict=True) + + def test_uts46_5178(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4kj.xn--p01x', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4kj.xn--p01x', strict=True) + + def test_uts46_5179(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4kj.xn--0ug56448b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4kj.xn--0ug56448b', strict=True) + + def test_uts46_5180(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴍ.\U0004d1e6\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴍ.\U0004d1e6\u200c', strict=True) + + def test_uts46_5181(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lnd.xn--p01x', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lnd.xn--p01x', strict=True) + + def test_uts46_5182(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lnd.xn--0ug56448b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lnd.xn--0ug56448b', strict=True) + + def test_uts46_5183(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000897c2\U000e0d63.𐫫᩠\U000f4e96᭄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000897c2\U000e0d63.𐫫᩠\U000f4e96᭄', strict=True) + + def test_uts46_5184(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9u37blu98h.xn--jof13bt568cork1j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9u37blu98h.xn--jof13bt568cork1j', strict=True) + + def test_uts46_5185(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯❊ᠯ。𐹱⺨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯❊ᠯ。𐹱⺨', strict=True) + + def test_uts46_5186(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯❊ᠯ。𐹱⺨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯❊ᠯ。𐹱⺨', strict=True) + + def test_uts46_5187(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯❊ᠯ。𐹱⺨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯❊ᠯ。𐹱⺨', strict=True) + + def test_uts46_5188(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯❊ᠯ。𐹱⺨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯❊ᠯ。𐹱⺨', strict=True) + + def test_uts46_5189(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--i7e163ct2d.xn--vwj7372e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--i7e163ct2d.xn--vwj7372e', strict=True) + + def test_uts46_5190(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0010155c𐹧\U0001eb41𐹩。Ⴈ𐫮Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0010155c𐹧\U0001eb41𐹩。Ⴈ𐫮Ⴏ', strict=True) + + def test_uts46_5191(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0010155c𐹧\U0001eb41𐹩。ⴈ𐫮ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0010155c𐹧\U0001eb41𐹩。ⴈ𐫮ⴏ', strict=True) + + def test_uts46_5192(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fo0de1270ope54j.xn--zkjo0151o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fo0de1270ope54j.xn--zkjo0151o', strict=True) + + def test_uts46_5193(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fo0de1270ope54j.xn--gndo2033q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fo0de1270ope54j.xn--gndo2033q', strict=True) + + def test_uts46_5194(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞠂。ꤦ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞠂。ꤦ', strict=True) + + def test_uts46_5195(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--145h.xn--ti9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--145h.xn--ti9a', strict=True) + + def test_uts46_5196(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟔𐹫.့ܳ9ꡇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟔𐹫.့ܳ9ꡇ', strict=True) + + def test_uts46_5197(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟔𐹫.့ܳ9ꡇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟔𐹫.့ܳ9ꡇ', strict=True) + + def test_uts46_5198(self): + self.assertRaises(idna.IDNAError, idna.decode, '6𐹫.့ܳ9ꡇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6𐹫.့ܳ9ꡇ', strict=True) + + def test_uts46_5199(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-t26i.xn--9-91c730e8u8n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-t26i.xn--9-91c730e8u8n', strict=True) + + def test_uts46_5200(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܤ\u0603\U0001ecb6.ۘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܤ\u0603\U0001ecb6.ۘ', strict=True) + + def test_uts46_5201(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܤ\u0603\U0001ecb6.ۘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܤ\u0603\U0001ecb6.ۘ', strict=True) + + def test_uts46_5202(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lfb19ct414i.xn--olb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lfb19ct414i.xn--olb', strict=True) + + def test_uts46_5203(self): + self.assertRaises(idna.IDNAError, idna.decode, '✆\U00071529ꡋ.ز\u200d\U0001e8f4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '✆\U00071529ꡋ.ز\u200d\U0001e8f4', strict=True) + + def test_uts46_5204(self): + self.assertRaises(idna.IDNAError, idna.decode, '✆\U00071529ꡋ.ز\u200d\U0001e8f4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '✆\U00071529ꡋ.ز\u200d\U0001e8f4', strict=True) + + def test_uts46_5205(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1biv525bcix0d.xn--xgb6828v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1biv525bcix0d.xn--xgb6828v', strict=True) + + def test_uts46_5206(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1biv525bcix0d.xn--xgb253k0m73a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1biv525bcix0d.xn--xgb253k0m73a', strict=True) + + def test_uts46_5207(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡅ\U00043fb0𞸍-.≠\U0008305f𑋪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡅ\U00043fb0𞸍-.≠\U0008305f𑋪', strict=True) + + def test_uts46_5208(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡅ\U00043fb0𞸍-.≠\U0008305f𑋪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡅ\U00043fb0𞸍-.≠\U0008305f𑋪', strict=True) + + def test_uts46_5209(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡅ\U00043fb0ن-.≠\U0008305f𑋪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡅ\U00043fb0ن-.≠\U0008305f𑋪', strict=True) + + def test_uts46_5210(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡅ\U00043fb0ن-.≠\U0008305f𑋪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡅ\U00043fb0ن-.≠\U0008305f𑋪', strict=True) + + def test_uts46_5211(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qoc64my971s.xn--1ch7585g76o3c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qoc64my971s.xn--1ch7585g76o3c', strict=True) + + def test_uts46_5212(self): + self.assertEqual(idna.decode('𝟛.笠', uts46=True, strict=True), '3.笠') + self.assertEqual(idna.encode('𝟛.笠', uts46=True, strict=True), b'3.xn--6vz') + + def test_uts46_5213(self): + self.assertEqual(idna.decode('𝟛.笠', uts46=True, strict=True), '3.笠') + self.assertEqual(idna.encode('𝟛.笠', uts46=True, strict=True), b'3.xn--6vz') + + def test_uts46_5214(self): + self.assertEqual(idna.decode('3.笠', uts46=True, strict=True), '3.笠') + self.assertEqual(idna.encode('3.笠', uts46=True, strict=True), b'3.xn--6vz') + + def test_uts46_5215(self): + self.assertEqual(idna.decode('3.xn--6vz', uts46=True, strict=True), '3.笠') + self.assertEqual(idna.encode('3.xn--6vz', uts46=True, strict=True), b'3.xn--6vz') + + def test_uts46_5216(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200d.Ⴞ𐋷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200d.Ⴞ𐋷', strict=True) + + def test_uts46_5217(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200d.ⴞ𐋷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200d.ⴞ𐋷', strict=True) + + def test_uts46_5218(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--mlj8559d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--mlj8559d', strict=True) + + def test_uts46_5219(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ugn.xn--mlj8559d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ugn.xn--mlj8559d', strict=True) + + def test_uts46_5220(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--2nd2315j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--2nd2315j', strict=True) + + def test_uts46_5221(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ugn.xn--2nd2315j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ugn.xn--2nd2315j', strict=True) + + def test_uts46_5222(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dςßܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dςßܱ.்', strict=True) + + def test_uts46_5223(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dςßܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dςßܱ.்', strict=True) + + def test_uts46_5224(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dΣSSܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dΣSSܱ.்', strict=True) + + def test_uts46_5225(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dσssܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dσssܱ.்', strict=True) + + def test_uts46_5226(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dΣssܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dΣssܱ.்', strict=True) + + def test_uts46_5227(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-ubc826a.xn--xmc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-ubc826a.xn--xmc', strict=True) + + def test_uts46_5228(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-ubc826ab34b.xn--xmc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-ubc826ab34b.xn--xmc', strict=True) + + def test_uts46_5229(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dΣßܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dΣßܱ.்', strict=True) + + def test_uts46_5230(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dσßܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dσßܱ.்', strict=True) + + def test_uts46_5231(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca39lk1di19a.xn--xmc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca39lk1di19a.xn--xmc', strict=True) + + def test_uts46_5232(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca19ln1di19a.xn--xmc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca19ln1di19a.xn--xmc', strict=True) + + def test_uts46_5233(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dΣSSܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dΣSSܱ.்', strict=True) + + def test_uts46_5234(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dσssܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dσssܱ.்', strict=True) + + def test_uts46_5235(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dΣssܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dΣssܱ.்', strict=True) + + def test_uts46_5236(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dΣßܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dΣßܱ.்', strict=True) + + def test_uts46_5237(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dσßܱ.்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dσßܱ.்', strict=True) + + def test_uts46_5238(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.\u200d', strict=True) + + def test_uts46_5239(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.\u200d', strict=True) + + def test_uts46_5240(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.\u200d', strict=True) + + def test_uts46_5241(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.\u200d', strict=True) + + def test_uts46_5242(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch.', strict=True) + + def test_uts46_5243(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.', strict=True) + + def test_uts46_5244(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠.', strict=True) + + def test_uts46_5245(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch.xn--1ug', strict=True) + + def test_uts46_5246(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﰁ。ಁᠼ▗\U0009204b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﰁ。ಁᠼ▗\U0009204b', strict=True) + + def test_uts46_5247(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ئح。ಁᠼ▗\U0009204b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ئح。ಁᠼ▗\U0009204b', strict=True) + + def test_uts46_5248(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ئح。ಁᠼ▗\U0009204b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ئح。ಁᠼ▗\U0009204b', strict=True) + + def test_uts46_5249(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lgbo.xn--2rc021dcxkrx55t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lgbo.xn--2rc021dcxkrx55t', strict=True) + + def test_uts46_5250(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্ς.ς𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্ς.ς𐨿', strict=True) + + def test_uts46_5251(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্ς.ς𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্ς.ς𐨿', strict=True) + + def test_uts46_5252(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্Σ.Σ𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্Σ.Σ𐨿', strict=True) + + def test_uts46_5253(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্σ.ς𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্σ.ς𐨿', strict=True) + + def test_uts46_5254(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্σ.σ𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্σ.σ𐨿', strict=True) + + def test_uts46_5255(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্Σ.σ𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্Σ.σ𐨿', strict=True) + + def test_uts46_5256(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa502av8297a.xn--4xa6055k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa502av8297a.xn--4xa6055k', strict=True) + + def test_uts46_5257(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্Σ.ς𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্Σ.ς𐨿', strict=True) + + def test_uts46_5258(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa502av8297a.xn--3xa8055k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa502av8297a.xn--3xa8055k', strict=True) + + def test_uts46_5259(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa702av8297a.xn--3xa8055k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa702av8297a.xn--3xa8055k', strict=True) + + def test_uts46_5260(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্Σ.Σ𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্Σ.Σ𐨿', strict=True) + + def test_uts46_5261(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্σ.ς𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্σ.ς𐨿', strict=True) + + def test_uts46_5262(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্σ.σ𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্σ.σ𐨿', strict=True) + + def test_uts46_5263(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্Σ.σ𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্Σ.σ𐨿', strict=True) + + def test_uts46_5264(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e72f5্Σ.ς𐨿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e72f5্Σ.ς𐨿', strict=True) + + def test_uts46_5265(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫓ߘ牅ࣸ。\U0001e9a4ᨗ\U000b1370Ⴙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫓ߘ牅ࣸ。\U0001e9a4ᨗ\U000b1370Ⴙ', strict=True) + + def test_uts46_5266(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫓ߘ牅ࣸ。\U0001e9a4ᨗ\U000b1370Ⴙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫓ߘ牅ࣸ。\U0001e9a4ᨗ\U000b1370Ⴙ', strict=True) + + def test_uts46_5267(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫓ߘ牅ࣸ。\U0001e9a4ᨗ\U000b1370ⴙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫓ߘ牅ࣸ。\U0001e9a4ᨗ\U000b1370ⴙ', strict=True) + + def test_uts46_5268(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zsb09cu46vjs6f.xn--gmf469fr883am5r1e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zsb09cu46vjs6f.xn--gmf469fr883am5r1e', strict=True) + + def test_uts46_5269(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫓ߘ牅ࣸ。\U0001e9a4ᨗ\U000b1370ⴙ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫓ߘ牅ࣸ。\U0001e9a4ᨗ\U000b1370ⴙ', strict=True) + + def test_uts46_5270(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zsb09cu46vjs6f.xn--xnd909bv540bm5k9d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zsb09cu46vjs6f.xn--xnd909bv540bm5k9d', strict=True) + + def test_uts46_5271(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00063912。륧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00063912。륧', strict=True) + + def test_uts46_5272(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00063912。륧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00063912。륧', strict=True) + + def test_uts46_5273(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00063912。륧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00063912。륧', strict=True) + + def test_uts46_5274(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00063912。륧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00063912。륧', strict=True) + + def test_uts46_5275(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--s264a.xn--pw2b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--s264a.xn--pw2b', strict=True) + + def test_uts46_5276(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹷\u200d。\U000c9d62', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹷\u200d。\U000c9d62', strict=True) + + def test_uts46_5277(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vo0d.xn--8088d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vo0d.xn--8088d', strict=True) + + def test_uts46_5278(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugx205g.xn--8088d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugx205g.xn--8088d', strict=True) + + def test_uts46_5279(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴘۂ𑲭。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴘۂ𑲭。-', strict=True) + + def test_uts46_5280(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴘۂ𑲭。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴘۂ𑲭。-', strict=True) + + def test_uts46_5281(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴘۂ𑲭。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴘۂ𑲭。-', strict=True) + + def test_uts46_5282(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴘۂ𑲭。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴘۂ𑲭。-', strict=True) + + def test_uts46_5283(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴘۂ𑲭。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴘۂ𑲭。-', strict=True) + + def test_uts46_5284(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴘۂ𑲭。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴘۂ𑲭。-', strict=True) + + def test_uts46_5285(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1kb147qfk3n.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1kb147qfk3n.-', strict=True) + + def test_uts46_5286(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴘۂ𑲭。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴘۂ𑲭。-', strict=True) + + def test_uts46_5287(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴘۂ𑲭。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴘۂ𑲭。-', strict=True) + + def test_uts46_5288(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1kb312c139t.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1kb312c139t.-', strict=True) + + def test_uts46_5289(self): + self.assertRaises(idna.IDNAError, idna.decode, '꠆ٻ₆ᡐ。🛇ﳝ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꠆ٻ₆ᡐ。🛇ﳝ', strict=True) + + def test_uts46_5290(self): + self.assertRaises(idna.IDNAError, idna.decode, '꠆ٻ6ᡐ。🛇يم', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꠆ٻ6ᡐ。🛇يم', strict=True) + + def test_uts46_5291(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-rrc018krt9k.xn--hhbj61429a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-rrc018krt9k.xn--hhbj61429a', strict=True) + + def test_uts46_5292(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000b8342.㇄ᡟ𐫂آ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000b8342.㇄ᡟ𐫂آ', strict=True) + + def test_uts46_5293(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000b8342.㇄ᡟ𐫂آ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000b8342.㇄ᡟ𐫂آ', strict=True) + + def test_uts46_5294(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--p292d.xn--hgb154ghrsvm2r', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--p292d.xn--hgb154ghrsvm2r', strict=True) + + def test_uts46_5295(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߟ\U000b568c。-ߩ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߟ\U000b568c。-ߩ', strict=True) + + def test_uts46_5296(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6sb88139l.xn----pdd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6sb88139l.xn----pdd', strict=True) + + def test_uts46_5297(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ςك⾑.\u200cᢟ\u200c⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ςك⾑.\u200cᢟ\u200c⒈', strict=True) + + def test_uts46_5298(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ςك襾.\u200cᢟ\u200c1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ςك襾.\u200cᢟ\u200c1.', strict=True) + + def test_uts46_5299(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σك襾.\u200cᢟ\u200c1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σك襾.\u200cᢟ\u200c1.', strict=True) + + def test_uts46_5300(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σك襾.\u200cᢟ\u200c1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σك襾.\u200cᢟ\u200c1.', strict=True) + + def test_uts46_5301(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa49jux8r.xn--1-4ck.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa49jux8r.xn--1-4ck.', strict=True) + + def test_uts46_5302(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa49jux8r.xn--1-4ck691bba.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa49jux8r.xn--1-4ck691bba.', strict=True) + + def test_uts46_5303(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa69jux8r.xn--1-4ck691bba.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa69jux8r.xn--1-4ck691bba.', strict=True) + + def test_uts46_5304(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σك⾑.\u200cᢟ\u200c⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σك⾑.\u200cᢟ\u200c⒈', strict=True) + + def test_uts46_5305(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σك⾑.\u200cᢟ\u200c⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σك⾑.\u200cᢟ\u200c⒈', strict=True) + + def test_uts46_5306(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa49jux8r.xn--pbf212d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa49jux8r.xn--pbf212d', strict=True) + + def test_uts46_5307(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa49jux8r.xn--pbf519aba607b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa49jux8r.xn--pbf519aba607b', strict=True) + + def test_uts46_5308(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa69jux8r.xn--pbf519aba607b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa69jux8r.xn--pbf519aba607b', strict=True) + + def test_uts46_5309(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡆ\U000114dd.\U0001ed46', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡆ\U000114dd.\U0001ed46', strict=True) + + def test_uts46_5310(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡆ\U000114dd.\U0001ed46', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡆ\U000114dd.\U0001ed46', strict=True) + + def test_uts46_5311(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--57e0440k.xn--k86h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--57e0440k.xn--k86h', strict=True) + + def test_uts46_5312(self): + self.assertRaises(idna.IDNAError, idna.decode, '੍𦍓ᷮ。\u200cࢽ\U0005de72', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '੍𦍓ᷮ。\u200cࢽ\U0005de72', strict=True) + + def test_uts46_5313(self): + self.assertRaises(idna.IDNAError, idna.decode, '੍𦍓ᷮ。\u200cࢽ\U0005de72', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '੍𦍓ᷮ。\u200cࢽ\U0005de72', strict=True) + + def test_uts46_5314(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ybc461hph93b.xn--jzb29857e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ybc461hph93b.xn--jzb29857e', strict=True) + + def test_uts46_5315(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ybc461hph93b.xn--jzb740j1y45h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ybc461hph93b.xn--jzb740j1y45h', strict=True) + + def test_uts46_5316(self): + self.assertRaises(idna.IDNAError, idna.decode, 'خ݈\U00045aaa-.\u200c먿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'خ݈\U00045aaa-.\u200c먿', strict=True) + + def test_uts46_5317(self): + self.assertRaises(idna.IDNAError, idna.decode, 'خ݈\U00045aaa-.\u200c먿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'خ݈\U00045aaa-.\u200c먿', strict=True) + + def test_uts46_5318(self): + self.assertRaises(idna.IDNAError, idna.decode, 'خ݈\U00045aaa-.\u200c먿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'خ݈\U00045aaa-.\u200c먿', strict=True) + + def test_uts46_5319(self): + self.assertRaises(idna.IDNAError, idna.decode, 'خ݈\U00045aaa-.\u200c먿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'خ݈\U00045aaa-.\u200c먿', strict=True) + + def test_uts46_5320(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----dnc06f42153a.xn--v22b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----dnc06f42153a.xn--v22b', strict=True) + + def test_uts46_5321(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----dnc06f42153a.xn--0ug1581d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----dnc06f42153a.xn--0ug1581d', strict=True) + + def test_uts46_5322(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0010bfe6。ᠽ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0010bfe6。ᠽ', strict=True) + + def test_uts46_5323(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0010bfe6。ᠽ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0010bfe6。ᠽ', strict=True) + + def test_uts46_5324(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--j890g.xn--w7e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--j890g.xn--w7e', strict=True) + + def test_uts46_5325(self): + self.assertRaises(idna.IDNAError, idna.decode, '嬃𝍌.\u200dୄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '嬃𝍌.\u200dୄ', strict=True) + + def test_uts46_5326(self): + self.assertRaises(idna.IDNAError, idna.decode, '嬃𝍌.\u200dୄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '嬃𝍌.\u200dୄ', strict=True) + + def test_uts46_5327(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b6s0078f.xn--0ic', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b6s0078f.xn--0ic', strict=True) + + def test_uts46_5328(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b6s0078f.xn--0ic557h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b6s0078f.xn--0ic557h', strict=True) + + def test_uts46_5329(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0602𝌪≯.\U0001a2f2\U000b5068', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0602𝌪≯.\U0001a2f2\U000b5068', strict=True) + + def test_uts46_5330(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0602𝌪≯.\U0001a2f2\U000b5068', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0602𝌪≯.\U0001a2f2\U000b5068', strict=True) + + def test_uts46_5331(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0602𝌪≯.\U0001a2f2\U000b5068', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0602𝌪≯.\U0001a2f2\U000b5068', strict=True) + + def test_uts46_5332(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0602𝌪≯.\U0001a2f2\U000b5068', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0602𝌪≯.\U0001a2f2\U000b5068', strict=True) + + def test_uts46_5333(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kfb866llx01a.xn--wp1gm3570b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kfb866llx01a.xn--wp1gm3570b', strict=True) + + def test_uts46_5334(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000abfa5ࢷ៌꧀.\U0001ef20', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000abfa5ࢷ៌꧀.\U0001ef20', strict=True) + + def test_uts46_5335(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dzb638ewm4i1iy1h.xn--3m7h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dzb638ewm4i1iy1h.xn--3m7h', strict=True) + + def test_uts46_5336(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.\U0005f6e4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.\U0005f6e4', strict=True) + + def test_uts46_5337(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--q823a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--q823a', strict=True) + + def test_uts46_5338(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--q823a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--q823a', strict=True) + + def test_uts46_5339(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ba6d5Ⴃ䠅.\U00010e11', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ba6d5Ⴃ䠅.\U00010e11', strict=True) + + def test_uts46_5340(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ba6d5Ⴃ䠅.\U00010e11', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ba6d5Ⴃ䠅.\U00010e11', strict=True) + + def test_uts46_5341(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ba6d5ⴃ䠅.\U00010e11', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ba6d5ⴃ䠅.\U00010e11', strict=True) + + def test_uts46_5342(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ukju77frl47r.xn--yl0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ukju77frl47r.xn--yl0d', strict=True) + + def test_uts46_5343(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ba6d5ⴃ䠅.\U00010e11', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ba6d5ⴃ䠅.\U00010e11', strict=True) + + def test_uts46_5344(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bnd074zr557n.xn--yl0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bnd074zr557n.xn--yl0d', strict=True) + + def test_uts46_5345(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᯱ𐹳𐹵𞤚。𝟨Ⴅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᯱ𐹳𐹵𞤚。𝟨Ⴅ', strict=True) + + def test_uts46_5346(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᯱ𐹳𐹵𞤚。6Ⴅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᯱ𐹳𐹵𞤚。6Ⴅ', strict=True) + + def test_uts46_5347(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᯱ𐹳𐹵𞤼。6ⴅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᯱ𐹳𐹵𞤼。6ⴅ', strict=True) + + def test_uts46_5348(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᯱ𐹳𐹵𞤚。6ⴅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᯱ𐹳𐹵𞤚。6ⴅ', strict=True) + + def test_uts46_5349(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zzfy954hga2415t.xn--6-kvs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zzfy954hga2415t.xn--6-kvs', strict=True) + + def test_uts46_5350(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᯱ𐹳𐹵𞤼。𝟨ⴅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᯱ𐹳𐹵𞤼。𝟨ⴅ', strict=True) + + def test_uts46_5351(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᯱ𐹳𐹵𞤚。𝟨ⴅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᯱ𐹳𐹵𞤚。𝟨ⴅ', strict=True) + + def test_uts46_5352(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zzfy954hga2415t.xn--6-h0g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zzfy954hga2415t.xn--6-h0g', strict=True) + + def test_uts46_5353(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。︒', strict=True) + + def test_uts46_5354(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。。', strict=True) + + def test_uts46_5355(self): + self.assertRaises(idna.IDNAError, idna.decode, '-..', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-..', strict=True) + + def test_uts46_5356(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--y86c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--y86c', strict=True) + + def test_uts46_5357(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߛჀ。-⁵--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߛჀ。-⁵--', strict=True) + + def test_uts46_5358(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߛჀ。-5--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߛჀ。-5--', strict=True) + + def test_uts46_5359(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߛⴠ。-5--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߛⴠ。-5--', strict=True) + + def test_uts46_5360(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2sb691q.-5--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2sb691q.-5--', strict=True) + + def test_uts46_5361(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߛⴠ。-⁵--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߛⴠ。-⁵--', strict=True) + + def test_uts46_5362(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2sb866b.-5--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2sb866b.-5--', strict=True) + + def test_uts46_5363(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯?\U000e0455。𐹷𐹻≯\U00010dd2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯?\U000e0455。𐹷𐹻≯\U00010dd2', strict=True) + + def test_uts46_5364(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯?\U000e0455。𐹷𐹻≯\U00010dd2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯?\U000e0455。𐹷𐹻≯\U00010dd2', strict=True) + + def test_uts46_5365(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯?\U000e0455。𐹷𐹻≯\U00010dd2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯?\U000e0455。𐹷𐹻≯\U00010dd2', strict=True) + + def test_uts46_5366(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯?\U000e0455。𐹷𐹻≯\U00010dd2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯?\U000e0455。𐹷𐹻≯\U00010dd2', strict=True) + + def test_uts46_5367(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--?-ogo25661n.xn--hdh8283gdoaqa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--?-ogo25661n.xn--hdh8283gdoaqa', strict=True) + + def test_uts46_5368(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯?\U000e0455.xn--hdh8283gdoaqa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯?\U000e0455.xn--hdh8283gdoaqa', strict=True) + + def test_uts46_5369(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯?\U000e0455.xn--hdh8283gdoaqa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯?\U000e0455.xn--hdh8283gdoaqa', strict=True) + + def test_uts46_5370(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯?\U000e0455.XN--HDH8283GDOAQA', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯?\U000e0455.XN--HDH8283GDOAQA', strict=True) + + def test_uts46_5371(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯?\U000e0455.XN--HDH8283GDOAQA', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯?\U000e0455.XN--HDH8283GDOAQA', strict=True) + + def test_uts46_5372(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯?\U000e0455.Xn--Hdh8283gdoaqa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯?\U000e0455.Xn--Hdh8283gdoaqa', strict=True) + + def test_uts46_5373(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯?\U000e0455.Xn--Hdh8283gdoaqa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯?\U000e0455.Xn--Hdh8283gdoaqa', strict=True) + + def test_uts46_5374(self): + self.assertRaises(idna.IDNAError, idna.decode, '㍔ࣦݼ\u200d。͆\U00081cca\U0001d176\u0604', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㍔ࣦݼ\u200d。͆\U00081cca\U0001d176\u0604', strict=True) + + def test_uts46_5375(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ルーブルࣦݼ\u200d。͆\U00081cca\U0001d176\u0604', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ルーブルࣦݼ\u200d。͆\U00081cca\U0001d176\u0604', strict=True) + + def test_uts46_5376(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ルーブルࣦݼ\u200d。͆\U00081cca\U0001d176\u0604', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ルーブルࣦݼ\u200d。͆\U00081cca\U0001d176\u0604', strict=True) + + def test_uts46_5377(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dqb73el09fncab4h.xn--kua81lx7141a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dqb73el09fncab4h.xn--kua81lx7141a', strict=True) + + def test_uts46_5378(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dqb73ec22c9kp8cb1j.xn--kua81lx7141a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dqb73ec22c9kp8cb1j.xn--kua81lx7141a', strict=True) + + def test_uts46_5379(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dqb73el09fncab4h.xn--kua81ls548d3608b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dqb73el09fncab4h.xn--kua81ls548d3608b', strict=True) + + def test_uts46_5380(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dqb73ec22c9kp8cb1j.xn--kua81ls548d3608b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dqb73ec22c9kp8cb1j.xn--kua81ls548d3608b', strict=True) + + def test_uts46_5381(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d.F', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d.F', strict=True) + + def test_uts46_5382(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d.f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d.f', strict=True) + + def test_uts46_5383(self): + self.assertRaises(idna.IDNAError, idna.decode, '.f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.f', strict=True) + + def test_uts46_5384(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.f', strict=True) + + def test_uts46_5385(self): + self.assertEqual(idna.decode('f', uts46=True, strict=True), 'f') + self.assertEqual(idna.encode('f', uts46=True, strict=True), b'f') + + def test_uts46_5386(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d㨲。ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d㨲。ß', strict=True) + + def test_uts46_5387(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d㨲。ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d㨲。ß', strict=True) + + def test_uts46_5388(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d㨲。SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d㨲。SS', strict=True) + + def test_uts46_5389(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d㨲。ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d㨲。ss', strict=True) + + def test_uts46_5390(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d㨲。Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d㨲。Ss', strict=True) + + def test_uts46_5391(self): + self.assertEqual(idna.decode('xn--9bm.ss', uts46=True, strict=True), '㨲.ss') + self.assertEqual(idna.encode('xn--9bm.ss', uts46=True, strict=True), b'xn--9bm.ss') + + def test_uts46_5392(self): + self.assertEqual(idna.decode('㨲.ss', uts46=True, strict=True), '㨲.ss') + self.assertEqual(idna.encode('㨲.ss', uts46=True, strict=True), b'xn--9bm.ss') + + def test_uts46_5393(self): + self.assertEqual(idna.decode('㨲.SS', uts46=True, strict=True), '㨲.ss') + self.assertEqual(idna.encode('㨲.SS', uts46=True, strict=True), b'xn--9bm.ss') + + def test_uts46_5394(self): + self.assertEqual(idna.decode('㨲.Ss', uts46=True, strict=True), '㨲.ss') + self.assertEqual(idna.encode('㨲.Ss', uts46=True, strict=True), b'xn--9bm.ss') + + def test_uts46_5395(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug914h.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug914h.ss', strict=True) + + def test_uts46_5396(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug914h.xn--zca', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug914h.xn--zca', strict=True) + + def test_uts46_5397(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d㨲。SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d㨲。SS', strict=True) + + def test_uts46_5398(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d㨲。ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d㨲。ss', strict=True) + + def test_uts46_5399(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d㨲。Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d㨲。Ss', strict=True) + + def test_uts46_5400(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0605پ。ࢨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0605پ。ࢨ', strict=True) + + def test_uts46_5401(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0605پ。ࢨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0605پ。ࢨ', strict=True) + + def test_uts46_5402(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nfb6v.xn--xyb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nfb6v.xn--xyb', strict=True) + + def test_uts46_5403(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾑ݓ𞤁。𐹵ڂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾑ݓ𞤁。𐹵ڂ', strict=True) + + def test_uts46_5404(self): + self.assertRaises(idna.IDNAError, idna.decode, '襾ݓ𞤁。𐹵ڂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '襾ݓ𞤁。𐹵ڂ', strict=True) + + def test_uts46_5405(self): + self.assertRaises(idna.IDNAError, idna.decode, '襾ݓ𞤣。𐹵ڂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '襾ݓ𞤣。𐹵ڂ', strict=True) + + def test_uts46_5406(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6ob9577deqwl.xn--7ib5526k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6ob9577deqwl.xn--7ib5526k', strict=True) + + def test_uts46_5407(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾑ݓ𞤣。𐹵ڂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾑ݓ𞤣。𐹵ڂ', strict=True) + + def test_uts46_5408(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00066d3bς-⃫。ݔ-ꡛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00066d3bς-⃫。ݔ-ꡛ', strict=True) + + def test_uts46_5409(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00066d3bς-⃫。ݔ-ꡛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00066d3bς-⃫。ݔ-ꡛ', strict=True) + + def test_uts46_5410(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00066d3bΣ-⃫。ݔ-ꡛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00066d3bΣ-⃫。ݔ-ꡛ', strict=True) + + def test_uts46_5411(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00066d3bσ-⃫。ݔ-ꡛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00066d3bσ-⃫。ݔ-ꡛ', strict=True) + + def test_uts46_5412(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----zmb705tuo34l.xn----53c4874j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----zmb705tuo34l.xn----53c4874j', strict=True) + + def test_uts46_5413(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----xmb015tuo34l.xn----53c4874j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----xmb015tuo34l.xn----53c4874j', strict=True) + + def test_uts46_5414(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00066d3bΣ-⃫。ݔ-ꡛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00066d3bΣ-⃫。ݔ-ꡛ', strict=True) + + def test_uts46_5415(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00066d3bσ-⃫。ݔ-ꡛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00066d3bσ-⃫。ݔ-ꡛ', strict=True) + + def test_uts46_5416(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d.\U00100e28', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d.\U00100e28', strict=True) + + def test_uts46_5417(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d.\U00100e28', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d.\U00100e28', strict=True) + + def test_uts46_5418(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--h327f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--h327f', strict=True) + + def test_uts46_5419(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--h327f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--h327f', strict=True) + + def test_uts46_5420(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00063b7b\U0004c941。≠𝟲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00063b7b\U0004c941。≠𝟲', strict=True) + + def test_uts46_5421(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00063b7b\U0004c941。≠𝟲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00063b7b\U0004c941。≠𝟲', strict=True) + + def test_uts46_5422(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00063b7b\U0004c941。≠6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00063b7b\U0004c941。≠6', strict=True) + + def test_uts46_5423(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00063b7b\U0004c941。≠6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00063b7b\U0004c941。≠6', strict=True) + + def test_uts46_5424(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--h79w4z99a.xn--6-tfo', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--h79w4z99a.xn--6-tfo', strict=True) + + def test_uts46_5425(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅊ᡭ\u200d.\U00010961', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅊ᡭ\u200d.\U00010961', strict=True) + + def test_uts46_5426(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--98e.xn--om9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--98e.xn--om9c', strict=True) + + def test_uts46_5427(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--98e810b.xn--om9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--98e810b.xn--om9c', strict=True) + + def test_uts46_5428(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ీࡕ\U0001095b𑄴.\U000edc35', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ీࡕ\U0001095b𑄴.\U000edc35', strict=True) + + def test_uts46_5429(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ీࡕ\U0001095b𑄴.\U000edc35', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ీࡕ\U0001095b𑄴.\U000edc35', strict=True) + + def test_uts46_5430(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--kwb91r5112avtg.xn--o580f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--kwb91r5112avtg.xn--o580f', strict=True) + + def test_uts46_5431(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤮。𑇊\u200c≯᳦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤮。𑇊\u200c≯᳦', strict=True) + + def test_uts46_5432(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤮。𑇊\u200c≯᳦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤮。𑇊\u200c≯᳦', strict=True) + + def test_uts46_5433(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤌。𑇊\u200c≯᳦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤌。𑇊\u200c≯᳦', strict=True) + + def test_uts46_5434(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤌。𑇊\u200c≯᳦', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤌。𑇊\u200c≯᳦', strict=True) + + def test_uts46_5435(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--me6h.xn--z6fz8ueq2v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--me6h.xn--z6fz8ueq2v', strict=True) + + def test_uts46_5436(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--me6h.xn--z6f16kn9b2642b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--me6h.xn--z6f16kn9b2642b', strict=True) + + def test_uts46_5437(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄀𝟕.𞤌\U0005b5d3Ⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄀𝟕.𞤌\U0005b5d3Ⴉ', strict=True) + + def test_uts46_5438(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄀7.𞤌\U0005b5d3Ⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄀7.𞤌\U0005b5d3Ⴉ', strict=True) + + def test_uts46_5439(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄀7.𞤮\U0005b5d3ⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄀7.𞤮\U0005b5d3ⴉ', strict=True) + + def test_uts46_5440(self): + self.assertRaises(idna.IDNAError, idna.decode, '7.xn--0kjz523lv1vv', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '7.xn--0kjz523lv1vv', strict=True) + + def test_uts46_5441(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄀𝟕.𞤮\U0005b5d3ⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄀𝟕.𞤮\U0005b5d3ⴉ', strict=True) + + def test_uts46_5442(self): + self.assertRaises(idna.IDNAError, idna.decode, '7.xn--hnd3403vv1vv', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '7.xn--hnd3403vv1vv', strict=True) + + def test_uts46_5443(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄀7.𞤌\U0005b5d3ⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄀7.𞤌\U0005b5d3ⴉ', strict=True) + + def test_uts46_5444(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄀𝟕.𞤌\U0005b5d3ⴉ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄀𝟕.𞤌\U0005b5d3ⴉ', strict=True) + + def test_uts46_5445(self): + self.assertRaises(idna.IDNAError, idna.decode, '閃9𝩍。Ↄ٩ࢱ୍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '閃9𝩍。Ↄ٩ࢱ୍', strict=True) + + def test_uts46_5446(self): + self.assertRaises(idna.IDNAError, idna.decode, '閃9𝩍。ↄ٩ࢱ୍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '閃9𝩍。ↄ٩ࢱ୍', strict=True) + + def test_uts46_5447(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-3j6dk517f.xn--iib28ij3c4t9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-3j6dk517f.xn--iib28ij3c4t9a', strict=True) + + def test_uts46_5448(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-3j6dk517f.xn--iib28ij3c0t9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-3j6dk517f.xn--iib28ij3c0t9a', strict=True) + + def test_uts46_5449(self): + self.assertRaises(idna.IDNAError, idna.decode, '꫶ᢏฺ2.𐋢݅ྟ︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꫶ᢏฺ2.𐋢݅ྟ︒', strict=True) + + def test_uts46_5450(self): + self.assertRaises(idna.IDNAError, idna.decode, '꫶ᢏฺ2.𐋢݅ྟ。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꫶ᢏฺ2.𐋢݅ྟ。', strict=True) + + def test_uts46_5451(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2-2zf840fk16m.xn--sob093b2m7s.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2-2zf840fk16m.xn--sob093b2m7s.', strict=True) + + def test_uts46_5452(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2-2zf840fk16m.xn--sob093bj62sz9d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2-2zf840fk16m.xn--sob093bj62sz9d', strict=True) + + def test_uts46_5453(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c5d27。≠-\U000e0644⾛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c5d27。≠-\U000e0644⾛', strict=True) + + def test_uts46_5454(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c5d27。≠-\U000e0644⾛', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c5d27。≠-\U000e0644⾛', strict=True) + + def test_uts46_5455(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c5d27。≠-\U000e0644走', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c5d27。≠-\U000e0644走', strict=True) + + def test_uts46_5456(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c5d27。≠-\U000e0644走', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c5d27。≠-\U000e0644走', strict=True) + + def test_uts46_5457(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gm57d.xn----tfo4949b3664m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gm57d.xn----tfo4949b3664m', strict=True) + + def test_uts46_5458(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݮ\u0604Ⴊ。-≠ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݮ\u0604Ⴊ。-≠ᅠ', strict=True) + + def test_uts46_5459(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݮ\u0604Ⴊ。-≠ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݮ\u0604Ⴊ。-≠ᅠ', strict=True) + + def test_uts46_5460(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݮ\u0604ⴊ。-≠ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݮ\u0604ⴊ。-≠ᅠ', strict=True) + + def test_uts46_5461(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݮ\u0604ⴊ。-≠ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݮ\u0604ⴊ。-≠ᅠ', strict=True) + + def test_uts46_5462(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mfb73ek93f.xn----ufo', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mfb73ek93f.xn----ufo', strict=True) + + def test_uts46_5463(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mfb73ek93f.xn----5bh589i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mfb73ek93f.xn----5bh589i', strict=True) + + def test_uts46_5464(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mfb73ex6r.xn----5bh589i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mfb73ex6r.xn----5bh589i', strict=True) + + def test_uts46_5465(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﭏ𐹧𝟒≯。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﭏ𐹧𝟒≯。\u200c', strict=True) + + def test_uts46_5466(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﭏ𐹧𝟒≯。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﭏ𐹧𝟒≯。\u200c', strict=True) + + def test_uts46_5467(self): + self.assertRaises(idna.IDNAError, idna.decode, 'אל𐹧4≯。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'אל𐹧4≯。\u200c', strict=True) + + def test_uts46_5468(self): + self.assertRaises(idna.IDNAError, idna.decode, 'אל𐹧4≯。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'אל𐹧4≯。\u200c', strict=True) + + def test_uts46_5469(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-zhc0by36txt0w.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-zhc0by36txt0w.', strict=True) + + def test_uts46_5470(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-zhc0by36txt0w.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-zhc0by36txt0w.xn--0ug', strict=True) + + def test_uts46_5471(self): + self.assertEqual(idna.decode('𝟎。甯', uts46=True, strict=True), '0.甯') + self.assertEqual(idna.encode('𝟎。甯', uts46=True, strict=True), b'0.xn--qny') + + def test_uts46_5472(self): + self.assertEqual(idna.decode('0。甯', uts46=True, strict=True), '0.甯') + self.assertEqual(idna.encode('0。甯', uts46=True, strict=True), b'0.xn--qny') + + def test_uts46_5473(self): + self.assertEqual(idna.decode('0.xn--qny', uts46=True, strict=True), '0.甯') + self.assertEqual(idna.encode('0.xn--qny', uts46=True, strict=True), b'0.xn--qny') + + def test_uts46_5474(self): + self.assertEqual(idna.decode('0.甯', uts46=True, strict=True), '0.甯') + self.assertEqual(idna.encode('0.甯', uts46=True, strict=True), b'0.xn--qny') + + def test_uts46_5475(self): + self.assertRaises(idna.IDNAError, idna.decode, '-⾆.꫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-⾆.꫶', strict=True) + + def test_uts46_5476(self): + self.assertRaises(idna.IDNAError, idna.decode, '-舌.꫶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-舌.꫶', strict=True) + + def test_uts46_5477(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ef8c.xn--2v9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ef8c.xn--2v9a', strict=True) + + def test_uts46_5478(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。ᢘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。ᢘ', strict=True) + + def test_uts46_5479(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。ᢘ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。ᢘ', strict=True) + + def test_uts46_5480(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--ibf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--ibf', strict=True) + + def test_uts46_5481(self): + self.assertRaises(idna.IDNAError, idna.decode, '🂴Ⴋ.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🂴Ⴋ.≮', strict=True) + + def test_uts46_5482(self): + self.assertRaises(idna.IDNAError, idna.decode, '🂴Ⴋ.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🂴Ⴋ.≮', strict=True) + + def test_uts46_5483(self): + self.assertRaises(idna.IDNAError, idna.decode, '🂴ⴋ.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🂴ⴋ.≮', strict=True) + + def test_uts46_5484(self): + self.assertRaises(idna.IDNAError, idna.decode, '🂴ⴋ.≮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🂴ⴋ.≮', strict=True) + + def test_uts46_5485(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2kj7565l.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2kj7565l.xn--gdh', strict=True) + + def test_uts46_5486(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jnd1986v.xn--gdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jnd1986v.xn--gdh', strict=True) + + def test_uts46_5487(self): + self.assertRaises(idna.IDNAError, idna.decode, '璼𝨭。\u200c󠇟', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '璼𝨭。\u200c󠇟', strict=True) + + def test_uts46_5488(self): + self.assertRaises(idna.IDNAError, idna.decode, '璼𝨭。\u200c󠇟', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '璼𝨭。\u200c󠇟', strict=True) + + def test_uts46_5491(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gky8837e.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gky8837e.xn--0ug', strict=True) + + def test_uts46_5492(self): + self.assertRaises(idna.IDNAError, idna.decode, '٩8\U0004237d。-5🞥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٩8\U0004237d。-5🞥', strict=True) + + def test_uts46_5493(self): + self.assertRaises(idna.IDNAError, idna.decode, '٩8\U0004237d。-5🞥', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٩8\U0004237d。-5🞥', strict=True) + + def test_uts46_5494(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-qqc97891f.xn---5-rp92a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-qqc97891f.xn---5-rp92a', strict=True) + + def test_uts46_5495(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.\u200c', strict=True) + + def test_uts46_5496(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--0ug', strict=True) + + def test_uts46_5497(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d튛.ܖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d튛.ܖ', strict=True) + + def test_uts46_5498(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d튛.ܖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d튛.ܖ', strict=True) + + def test_uts46_5499(self): + self.assertEqual(idna.decode('xn--157b.xn--gnb', uts46=True, strict=True), '튛.ܖ') + self.assertEqual(idna.encode('xn--157b.xn--gnb', uts46=True, strict=True), b'xn--157b.xn--gnb') + + def test_uts46_5500(self): + self.assertEqual(idna.decode('튛.ܖ', uts46=True, strict=True), '튛.ܖ') + self.assertEqual(idna.encode('튛.ܖ', uts46=True, strict=True), b'xn--157b.xn--gnb') + + def test_uts46_5501(self): + self.assertEqual(idna.decode('튛.ܖ', uts46=True, strict=True), '튛.ܖ') + self.assertEqual(idna.encode('튛.ܖ', uts46=True, strict=True), b'xn--157b.xn--gnb') + + def test_uts46_5502(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug4441e.xn--gnb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug4441e.xn--gnb', strict=True) + + def test_uts46_5503(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡋ𐹰\U0001ef73.ݹⴞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡋ𐹰\U0001ef73.ݹⴞ', strict=True) + + def test_uts46_5504(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᡋ𐹰\U0001ef73.ݹႾ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᡋ𐹰\U0001ef73.ݹႾ', strict=True) + + def test_uts46_5505(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b8e0417jocvf.xn--9pb883q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b8e0417jocvf.xn--9pb883q', strict=True) + + def test_uts46_5506(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--b8e0417jocvf.xn--9pb068b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--b8e0417jocvf.xn--9pb068b', strict=True) + + def test_uts46_5507(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010dc3٢𝅻𝟧.𐹮𐹬Ⴇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010dc3٢𝅻𝟧.𐹮𐹬Ⴇ', strict=True) + + def test_uts46_5508(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010dc3٢𝅻5.𐹮𐹬Ⴇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010dc3٢𝅻5.𐹮𐹬Ⴇ', strict=True) + + def test_uts46_5509(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010dc3٢𝅻5.𐹮𐹬ⴇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010dc3٢𝅻5.𐹮𐹬ⴇ', strict=True) + + def test_uts46_5510(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5-cqc8833rhv7f.xn--ykjz523efa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5-cqc8833rhv7f.xn--ykjz523efa', strict=True) + + def test_uts46_5511(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00010dc3٢𝅻𝟧.𐹮𐹬ⴇ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00010dc3٢𝅻𝟧.𐹮𐹬ⴇ', strict=True) + + def test_uts46_5512(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5-cqc8833rhv7f.xn--fnd3401kfa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5-cqc8833rhv7f.xn--fnd3401kfa', strict=True) + + def test_uts46_5513(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + + def test_uts46_5514(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + + def test_uts46_5515(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + + def test_uts46_5516(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + + def test_uts46_5517(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--flj.xn--qdb0605f14ycrms3c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--flj.xn--qdb0605f14ycrms3c', strict=True) + + def test_uts46_5518(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + + def test_uts46_5519(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴗ.𑄴ׂꦷ\U000580e8', strict=True) + + def test_uts46_5520(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vnd.xn--qdb0605f14ycrms3c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vnd.xn--qdb0605f14ycrms3c', strict=True) + + def test_uts46_5521(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟾\U0003e918.\U0008755b٬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟾\U0003e918.\U0008755b٬', strict=True) + + def test_uts46_5522(self): + self.assertRaises(idna.IDNAError, idna.decode, '8\U0003e918.\U0008755b٬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8\U0003e918.\U0008755b٬', strict=True) + + def test_uts46_5523(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-kh23b.xn--lib78461i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-kh23b.xn--lib78461i', strict=True) + + def test_uts46_5524(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈酫︒。ࣖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈酫︒。ࣖ', strict=True) + + def test_uts46_5525(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.酫。。ࣖ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.酫。。ࣖ', strict=True) + + def test_uts46_5526(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--8j4a..xn--8zb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--8j4a..xn--8zb', strict=True) + + def test_uts46_5527(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh4490bfe8c.xn--8zb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh4490bfe8c.xn--8zb', strict=True) + + def test_uts46_5528(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⷣ\u200c≮ᩫ.\u200cฺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⷣ\u200c≮ᩫ.\u200cฺ', strict=True) + + def test_uts46_5529(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⷣ\u200c≮ᩫ.\u200cฺ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⷣ\u200c≮ᩫ.\u200cฺ', strict=True) + + def test_uts46_5530(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uof548an0j.xn--o4c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uof548an0j.xn--o4c', strict=True) + + def test_uts46_5531(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--uof63xk4bf3s.xn--o4c732g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--uof63xk4bf3s.xn--o4c732g', strict=True) + + def test_uts46_5532(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ea82。ႷႽ¹\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ea82。ႷႽ¹\u200d', strict=True) + + def test_uts46_5533(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ea82。ႷႽ1\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ea82。ႷႽ1\u200d', strict=True) + + def test_uts46_5534(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ea82。ⴗⴝ1\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ea82。ⴗⴝ1\u200d', strict=True) + + def test_uts46_5535(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ea82。Ⴗⴝ1\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ea82。Ⴗⴝ1\u200d', strict=True) + + def test_uts46_5536(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--co6h.xn--1-kwssa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--co6h.xn--1-kwssa', strict=True) + + def test_uts46_5537(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--co6h.xn--1-ugn710dya', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--co6h.xn--1-ugn710dya', strict=True) + + def test_uts46_5538(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ea82。ⴗⴝ¹\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ea82。ⴗⴝ¹\u200d', strict=True) + + def test_uts46_5539(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001ea82。Ⴗⴝ¹\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001ea82。Ⴗⴝ¹\u200d', strict=True) + + def test_uts46_5540(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--co6h.xn--1-h1g429s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--co6h.xn--1-h1g429s', strict=True) + + def test_uts46_5541(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--co6h.xn--1-h1g398iewm', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--co6h.xn--1-h1g398iewm', strict=True) + + def test_uts46_5542(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--co6h.xn--1-h1gs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--co6h.xn--1-h1gs', strict=True) + + def test_uts46_5543(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--co6h.xn--1-h1gs597m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--co6h.xn--1-h1gs597m', strict=True) + + def test_uts46_5544(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑄴𑄳2.\U0001ecff\U000e0033-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑄴𑄳2.\U0001ecff\U000e0033-', strict=True) + + def test_uts46_5545(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2-h87ic.xn----s39r33498d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2-h87ic.xn----s39r33498d', strict=True) + + def test_uts46_5546(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0572\U000dfdb6٥。\U00040041𑄳𞤃ܐ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0572\U000dfdb6٥。\U00040041𑄳𞤃ܐ', strict=True) + + def test_uts46_5547(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0572\U000dfdb6٥。\U00040041𑄳𞤃ܐ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0572\U000dfdb6٥。\U00040041𑄳𞤃ܐ', strict=True) + + def test_uts46_5548(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0572\U000dfdb6٥。\U00040041𑄳𞤥ܐ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0572\U000dfdb6٥。\U00040041𑄳𞤥ܐ', strict=True) + + def test_uts46_5549(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--eib57614py3ea.xn--9mb5737kqnpfzkwr', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--eib57614py3ea.xn--9mb5737kqnpfzkwr', strict=True) + + def test_uts46_5550(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0572\U000dfdb6٥。\U00040041𑄳𞤥ܐ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0572\U000dfdb6٥。\U00040041𑄳𞤥ܐ', strict=True) + + def test_uts46_5551(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܠ\U000b283d𐹢ុ。ςᢈ🝭\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܠ\U000b283d𐹢ុ。ςᢈ🝭\u200c', strict=True) + + def test_uts46_5552(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܠ\U000b283d𐹢ុ。ςᢈ🝭\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܠ\U000b283d𐹢ុ。ςᢈ🝭\u200c', strict=True) + + def test_uts46_5553(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܠ\U000b283d𐹢ុ。Σᢈ🝭\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܠ\U000b283d𐹢ុ。Σᢈ🝭\u200c', strict=True) + + def test_uts46_5554(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܠ\U000b283d𐹢ុ。σᢈ🝭\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܠ\U000b283d𐹢ុ。σᢈ🝭\u200c', strict=True) + + def test_uts46_5555(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qnb616fis0qzt36f.xn--4xa847hli46a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qnb616fis0qzt36f.xn--4xa847hli46a', strict=True) + + def test_uts46_5556(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qnb616fis0qzt36f.xn--4xa847h6ofgl44c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qnb616fis0qzt36f.xn--4xa847h6ofgl44c', strict=True) + + def test_uts46_5557(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qnb616fis0qzt36f.xn--3xa057h6ofgl44c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qnb616fis0qzt36f.xn--3xa057h6ofgl44c', strict=True) + + def test_uts46_5558(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܠ\U000b283d𐹢ុ。Σᢈ🝭\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܠ\U000b283d𐹢ុ。Σᢈ🝭\u200c', strict=True) + + def test_uts46_5559(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܠ\U000b283d𐹢ុ。σᢈ🝭\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܠ\U000b283d𐹢ុ。σᢈ🝭\u200c', strict=True) + + def test_uts46_5560(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d--≮。𐹧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d--≮。𐹧', strict=True) + + def test_uts46_5561(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d--≮。𐹧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d--≮。𐹧', strict=True) + + def test_uts46_5562(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn-----ujv.xn--fo0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn-----ujv.xn--fo0d', strict=True) + + def test_uts46_5563(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn-----l1tz1k.xn--fo0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn-----l1tz1k.xn--fo0d', strict=True) + + def test_uts46_5564(self): + self.assertRaises(idna.IDNAError, idna.decode, '꠆。\U0003b68fྰ⒕', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꠆。\U0003b68fྰ⒕', strict=True) + + def test_uts46_5565(self): + self.assertRaises(idna.IDNAError, idna.decode, '꠆。\U0003b68fྰ14.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꠆。\U0003b68fྰ14.', strict=True) + + def test_uts46_5566(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l98a.xn--14-jsj57880f.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l98a.xn--14-jsj57880f.', strict=True) + + def test_uts46_5567(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l98a.xn--dgd218hhp28d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l98a.xn--dgd218hhp28d', strict=True) + + def test_uts46_5568(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ae242ڼ.𑆺٩', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ae242ڼ.𑆺٩', strict=True) + + def test_uts46_5569(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ae242ڼ.𑆺٩', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ae242ڼ.𑆺٩', strict=True) + + def test_uts46_5570(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vkb92243l.xn--iib9797k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vkb92243l.xn--iib9797k', strict=True) + + def test_uts46_5571(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e004eې-。𞤴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e004eې-。𞤴', strict=True) + + def test_uts46_5572(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e004eې-。𞤒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e004eې-。𞤒', strict=True) + + def test_uts46_5573(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----mwc72685y.xn--se6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----mwc72685y.xn--se6h', strict=True) + + def test_uts46_5574(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟠4󠇗𝈻.\u200d𐋵⛧\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟠4󠇗𝈻.\u200d𐋵⛧\u200d', strict=True) + + def test_uts46_5575(self): + self.assertRaises(idna.IDNAError, idna.decode, '84󠇗𝈻.\u200d𐋵⛧\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '84󠇗𝈻.\u200d𐋵⛧\u200d', strict=True) + + def test_uts46_5576(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--84-s850a.xn--59h6326e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--84-s850a.xn--59h6326e', strict=True) + + def test_uts46_5577(self): + self.assertRaises(idna.IDNAError, idna.decode, '84𝈻.𐋵⛧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '84𝈻.𐋵⛧', strict=True) + + def test_uts46_5578(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--84-s850a.xn--1uga573cfq1w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--84-s850a.xn--1uga573cfq1w', strict=True) + + def test_uts46_5579(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u0601。ᡪ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u0601。ᡪ', strict=True) + + def test_uts46_5580(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u0601。ᡪ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u0601。ᡪ', strict=True) + + def test_uts46_5581(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----tkc.xn--68e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----tkc.xn--68e', strict=True) + + def test_uts46_5582(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𝟕.謖ß≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𝟕.謖ß≯', strict=True) + + def test_uts46_5583(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𝟕.謖ß≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𝟕.謖ß≯', strict=True) + + def test_uts46_5584(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮7.謖ß≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮7.謖ß≯', strict=True) + + def test_uts46_5585(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮7.謖ß≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮7.謖ß≯', strict=True) + + def test_uts46_5586(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮7.謖SS≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮7.謖SS≯', strict=True) + + def test_uts46_5587(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮7.謖SS≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮7.謖SS≯', strict=True) + + def test_uts46_5588(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮7.謖ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮7.謖ss≯', strict=True) + + def test_uts46_5589(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮7.謖ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮7.謖ss≯', strict=True) + + def test_uts46_5590(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮7.謖Ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮7.謖Ss≯', strict=True) + + def test_uts46_5591(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮7.謖Ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮7.謖Ss≯', strict=True) + + def test_uts46_5592(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7-mgo.xn--ss-xjvv174c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7-mgo.xn--ss-xjvv174c', strict=True) + + def test_uts46_5593(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7-mgo.xn--zca892oly5e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7-mgo.xn--zca892oly5e', strict=True) + + def test_uts46_5594(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𝟕.謖SS≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𝟕.謖SS≯', strict=True) + + def test_uts46_5595(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𝟕.謖SS≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𝟕.謖SS≯', strict=True) + + def test_uts46_5596(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𝟕.謖ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𝟕.謖ss≯', strict=True) + + def test_uts46_5597(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𝟕.謖ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𝟕.謖ss≯', strict=True) + + def test_uts46_5598(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𝟕.謖Ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𝟕.謖Ss≯', strict=True) + + def test_uts46_5599(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𝟕.謖Ss≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𝟕.謖Ss≯', strict=True) + + def test_uts46_5600(self): + self.assertRaises(idna.IDNAError, idna.decode, '朶Ⴉ\U0001eaa1.𝨽ࠥ📻-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '朶Ⴉ\U0001eaa1.𝨽ࠥ📻-', strict=True) + + def test_uts46_5601(self): + self.assertRaises(idna.IDNAError, idna.decode, '朶ⴉ\U0001eaa1.𝨽ࠥ📻-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '朶ⴉ\U0001eaa1.𝨽ࠥ📻-', strict=True) + + def test_uts46_5602(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0kjz47pd57t.xn----3gd37096apmwa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0kjz47pd57t.xn----3gd37096apmwa', strict=True) + + def test_uts46_5603(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hnd7245bd56p.xn----3gd37096apmwa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hnd7245bd56p.xn----3gd37096apmwa', strict=True) + + def test_uts46_5604(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐤎。\U000d1ff0\u200c≮\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐤎。\U000d1ff0\u200c≮\u200d', strict=True) + + def test_uts46_5605(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐤎。\U000d1ff0\u200c≮\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐤎。\U000d1ff0\u200c≮\u200d', strict=True) + + def test_uts46_5606(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bk9c.xn--gdhx6802k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bk9c.xn--gdhx6802k', strict=True) + + def test_uts46_5607(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--bk9c.xn--0ugc04p2u638c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--bk9c.xn--0ugc04p2u638c', strict=True) + + def test_uts46_5608(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006d70e⒈。\u200c𝟤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006d70e⒈。\u200c𝟤', strict=True) + + def test_uts46_5609(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006d70e1.。\u200c2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006d70e1.。\u200c2', strict=True) + + def test_uts46_5610(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-ex54e..c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-ex54e..c', strict=True) + + def test_uts46_5611(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-ex54e..xn--2-rgn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-ex54e..xn--2-rgn', strict=True) + + def test_uts46_5612(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh94183d.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh94183d.c', strict=True) + + def test_uts46_5613(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh94183d.xn--2-rgn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh94183d.xn--2-rgn', strict=True) + + def test_uts46_5614(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e07ca𐹤\u200d.𐹳\U000d9135𐹶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e07ca𐹤\u200d.𐹳\U000d9135𐹶', strict=True) + + def test_uts46_5615(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e07ca𐹤\u200d.𐹳\U000d9135𐹶', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e07ca𐹤\u200d.𐹳\U000d9135𐹶', strict=True) + + def test_uts46_5616(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--co0d98977c.xn--ro0dga22807v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--co0d98977c.xn--ro0dga22807v', strict=True) + + def test_uts46_5617(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugy994g7k93g.xn--ro0dga22807v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugy994g7k93g.xn--ro0dga22807v', strict=True) + + def test_uts46_5618(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤴𐹻𑓂𐭝.्︇\U001096ef', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤴𐹻𑓂𐭝.्︇\U001096ef', strict=True) + + def test_uts46_5619(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤴𐹻𑓂𐭝.्︇\U001096ef', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤴𐹻𑓂𐭝.्︇\U001096ef', strict=True) + + def test_uts46_5620(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤒𐹻𑓂𐭝.्︇\U001096ef', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤒𐹻𑓂𐭝.्︇\U001096ef', strict=True) + + def test_uts46_5621(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--609c96c09grp2w.xn--n3b28708s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--609c96c09grp2w.xn--n3b28708s', strict=True) + + def test_uts46_5622(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤒𐹻𑓂𐭝.्︇\U001096ef', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤒𐹻𑓂𐭝.्︇\U001096ef', strict=True) + + def test_uts46_5623(self): + self.assertRaises(idna.IDNAError, idna.decode, '٨。𐹠𐹽\U00057bb6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٨。𐹠𐹽\U00057bb6', strict=True) + + def test_uts46_5624(self): + self.assertRaises(idna.IDNAError, idna.decode, '٨。𐹠𐹽\U00057bb6', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٨。𐹠𐹽\U00057bb6', strict=True) + + def test_uts46_5625(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hib.xn--7n0d2bu9196b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hib.xn--7n0d2bu9196b', strict=True) + + def test_uts46_5626(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅠ\U0004d01c.8\U000b6fb5ڜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅠ\U0004d01c.8\U000b6fb5ڜ', strict=True) + + def test_uts46_5627(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mn1x.xn--8-otc61545t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mn1x.xn--8-otc61545t', strict=True) + + def test_uts46_5628(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--psd85033d.xn--8-otc61545t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--psd85033d.xn--8-otc61545t', strict=True) + + def test_uts46_5629(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c󠆪。ß𑓃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c󠆪。ß𑓃', strict=True) + + def test_uts46_5630(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c󠆪。ß𑓃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c󠆪。ß𑓃', strict=True) + + def test_uts46_5631(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c󠆪。SS𑓃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c󠆪。SS𑓃', strict=True) + + def test_uts46_5632(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c󠆪。ss𑓃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c󠆪。ss𑓃', strict=True) + + def test_uts46_5633(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c󠆪。Ss𑓃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c󠆪。Ss𑓃', strict=True) + + def test_uts46_5634(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--ss-bh7o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--ss-bh7o', strict=True) + + def test_uts46_5635(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugb.xn--ss-bh7o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugb.xn--ss-bh7o', strict=True) + + def test_uts46_5636(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugb.xn--zca0732l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugb.xn--zca0732l', strict=True) + + def test_uts46_5637(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c󠆪。SS𑓃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c󠆪。SS𑓃', strict=True) + + def test_uts46_5638(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c󠆪。ss𑓃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c󠆪。ss𑓃', strict=True) + + def test_uts46_5639(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200c󠆪。Ss𑓃', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200c󠆪。Ss𑓃', strict=True) + + def test_uts46_5640(self): + self.assertEqual(idna.decode('xn--ss-bh7o', uts46=True, strict=True), 'ss𑓃') + self.assertEqual(idna.encode('xn--ss-bh7o', uts46=True, strict=True), b'xn--ss-bh7o') + + def test_uts46_5641(self): + self.assertEqual(idna.decode('ss𑓃', uts46=True, strict=True), 'ss𑓃') + self.assertEqual(idna.encode('ss𑓃', uts46=True, strict=True), b'xn--ss-bh7o') + + def test_uts46_5642(self): + self.assertEqual(idna.decode('SS𑓃', uts46=True, strict=True), 'ss𑓃') + self.assertEqual(idna.encode('SS𑓃', uts46=True, strict=True), b'xn--ss-bh7o') + + def test_uts46_5643(self): + self.assertEqual(idna.decode('Ss𑓃', uts46=True, strict=True), 'ss𑓃') + self.assertEqual(idna.encode('Ss𑓃', uts46=True, strict=True), b'xn--ss-bh7o') + + def test_uts46_5644(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒\u200cヶ䒩.ꡪ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒\u200cヶ䒩.ꡪ', strict=True) + + def test_uts46_5645(self): + self.assertRaises(idna.IDNAError, idna.decode, '。\u200cヶ䒩.ꡪ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。\u200cヶ䒩.ꡪ', strict=True) + + def test_uts46_5646(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--qekw60d.xn--gd9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--qekw60d.xn--gd9a', strict=True) + + def test_uts46_5647(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--0ug287dj0o.xn--gd9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--0ug287dj0o.xn--gd9a', strict=True) + + def test_uts46_5648(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qekw60dns9k.xn--gd9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qekw60dns9k.xn--gd9a', strict=True) + + def test_uts46_5649(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug287dj0or48o.xn--gd9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug287dj0or48o.xn--gd9a', strict=True) + + def test_uts46_5650(self): + self.assertEqual(idna.decode('xn--qekw60d.xn--gd9a', uts46=True, strict=True), 'ヶ䒩.ꡪ') + self.assertEqual(idna.encode('xn--qekw60d.xn--gd9a', uts46=True, strict=True), b'xn--qekw60d.xn--gd9a') + + def test_uts46_5651(self): + self.assertEqual(idna.decode('ヶ䒩.ꡪ', uts46=True, strict=True), 'ヶ䒩.ꡪ') + self.assertEqual(idna.encode('ヶ䒩.ꡪ', uts46=True, strict=True), b'xn--qekw60d.xn--gd9a') + + def test_uts46_5652(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c⒈𤮍.\U000e24cb᩠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c⒈𤮍.\U000e24cb᩠', strict=True) + + def test_uts46_5653(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c1.𤮍.\U000e24cb᩠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c1.𤮍.\U000e24cb᩠', strict=True) + + def test_uts46_5654(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--4x6j.xn--jof45148n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--4x6j.xn--jof45148n', strict=True) + + def test_uts46_5655(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-rgn.xn--4x6j.xn--jof45148n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-rgn.xn--4x6j.xn--jof45148n', strict=True) + + def test_uts46_5656(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tshw462r.xn--jof45148n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tshw462r.xn--jof45148n', strict=True) + + def test_uts46_5657(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug88o7471d.xn--jof45148n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug88o7471d.xn--jof45148n', strict=True) + + def test_uts46_5658(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈\u200c𐫓\U000e003a。᩠\U00064c35\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈\u200c𐫓\U000e003a。᩠\U00064c35\u200d', strict=True) + + def test_uts46_5659(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.\u200c𐫓\U000e003a。᩠\U00064c35\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.\u200c𐫓\U000e003a。᩠\U00064c35\u200d', strict=True) + + def test_uts46_5660(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--8w9c40377c.xn--jofz5294e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--8w9c40377c.xn--jofz5294e', strict=True) + + def test_uts46_5661(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--0ug8853gk263g.xn--jof95xex98m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--0ug8853gk263g.xn--jof95xex98m', strict=True) + + def test_uts46_5662(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tsh4435fk263g.xn--jofz5294e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tsh4435fk263g.xn--jofz5294e', strict=True) + + def test_uts46_5663(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug78ol75wzcx4i.xn--jof95xex98m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug78ol75wzcx4i.xn--jof95xex98m', strict=True) + + def test_uts46_5664(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001d175。𝟫𞀈䬺⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001d175。𝟫𞀈䬺⒈', strict=True) + + def test_uts46_5665(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001d175。9𞀈䬺1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001d175。9𞀈䬺1.', strict=True) + + def test_uts46_5666(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--91-030c1650n.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--91-030c1650n.', strict=True) + + def test_uts46_5667(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--9-ecp936non25a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--9-ecp936non25a', strict=True) + + def test_uts46_5668(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3f1h.xn--91-030c1650n.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3f1h.xn--91-030c1650n.', strict=True) + + def test_uts46_5669(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3f1h.xn--9-ecp936non25a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3f1h.xn--9-ecp936non25a', strict=True) + + def test_uts46_5670(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a1f3a≯。盚ص', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a1f3a≯。盚ص', strict=True) + + def test_uts46_5671(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000a1f3a≯。盚ص', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000a1f3a≯。盚ص', strict=True) + + def test_uts46_5672(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hdh30181h.xn--0gb7878c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hdh30181h.xn--0gb7878c', strict=True) + + def test_uts46_5673(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0007fc2dִ。-\U000e004a\U000108b8≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0007fc2dִ。-\U000e004a\U000108b8≯', strict=True) + + def test_uts46_5674(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0007fc2dִ。-\U000e004a\U000108b8≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0007fc2dִ。-\U000e004a\U000108b8≯', strict=True) + + def test_uts46_5675(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----fgc06667m.xn----pgoy615he5y4i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----fgc06667m.xn----pgoy615he5y4i', strict=True) + + def test_uts46_5676(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ffb53᭄\u200c੍.𐭛\U000732d4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ffb53᭄\u200c੍.𐭛\U000732d4', strict=True) + + def test_uts46_5677(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ffb53᭄\u200c੍.𐭛\U000732d4', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ffb53᭄\u200c੍.𐭛\U000732d4', strict=True) + + def test_uts46_5678(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ybc997fb5881a.xn--409c6100y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ybc997fb5881a.xn--409c6100y', strict=True) + + def test_uts46_5679(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ybc997f6rd2n772c.xn--409c6100y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ybc997f6rd2n772c.xn--409c6100y', strict=True) + + def test_uts46_5680(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾇.ٽ𞤴ڻ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾇.ٽ𞤴ڻ\u200d', strict=True) + + def test_uts46_5681(self): + self.assertRaises(idna.IDNAError, idna.decode, '舛.ٽ𞤴ڻ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舛.ٽ𞤴ڻ\u200d', strict=True) + + def test_uts46_5682(self): + self.assertRaises(idna.IDNAError, idna.decode, '舛.ٽ𞤒ڻ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '舛.ٽ𞤒ڻ\u200d', strict=True) + + def test_uts46_5683(self): + self.assertEqual(idna.decode('xn--8c1a.xn--2ib8jn539l', uts46=True, strict=True), '舛.ٽ𞤴ڻ') + self.assertEqual(idna.encode('xn--8c1a.xn--2ib8jn539l', uts46=True, strict=True), b'xn--8c1a.xn--2ib8jn539l') + + def test_uts46_5684(self): + self.assertEqual(idna.decode('舛.ٽ𞤴ڻ', uts46=True, strict=True), '舛.ٽ𞤴ڻ') + self.assertEqual(idna.encode('舛.ٽ𞤴ڻ', uts46=True, strict=True), b'xn--8c1a.xn--2ib8jn539l') + + def test_uts46_5685(self): + self.assertEqual(idna.decode('舛.ٽ𞤒ڻ', uts46=True, strict=True), '舛.ٽ𞤴ڻ') + self.assertEqual(idna.encode('舛.ٽ𞤒ڻ', uts46=True, strict=True), b'xn--8c1a.xn--2ib8jn539l') + + def test_uts46_5686(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8c1a.xn--2ib8jv19e6413b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8c1a.xn--2ib8jv19e6413b', strict=True) + + def test_uts46_5687(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾇.ٽ𞤒ڻ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾇.ٽ𞤒ڻ\u200d', strict=True) + + def test_uts46_5688(self): + self.assertRaises(idna.IDNAError, idna.decode, '4\U000ad1a5。ݧ≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4\U000ad1a5。ݧ≯', strict=True) + + def test_uts46_5689(self): + self.assertRaises(idna.IDNAError, idna.decode, '4\U000ad1a5。ݧ≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4\U000ad1a5。ݧ≯', strict=True) + + def test_uts46_5690(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-xn17i.xn--rpb459k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-xn17i.xn--rpb459k', strict=True) + + def test_uts46_5691(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003250f\U0001eae8\U0007afc2硲.ڭ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003250f\U0001eae8\U0007afc2硲.ڭ', strict=True) + + def test_uts46_5692(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003250f\U0001eae8\U0007afc2硲.ڭ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003250f\U0001eae8\U0007afc2硲.ڭ', strict=True) + + def test_uts46_5693(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lcz1610fn78gk609a.xn--gkb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lcz1610fn78gk609a.xn--gkb', strict=True) + + def test_uts46_5694(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.︈٦Ⴆ℮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.︈٦Ⴆ℮', strict=True) + + def test_uts46_5695(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c.︈٦ⴆ℮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c.︈٦ⴆ℮', strict=True) + + def test_uts46_5696(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--fib628k4li', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--fib628k4li', strict=True) + + def test_uts46_5697(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--fib628k4li', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--fib628k4li', strict=True) + + def test_uts46_5698(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--fib263c0yn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--fib263c0yn', strict=True) + + def test_uts46_5699(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--fib263c0yn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--fib263c0yn', strict=True) + + def test_uts46_5700(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڣ.്\u200dϞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڣ.്\u200dϞ', strict=True) + + def test_uts46_5701(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڣ.്\u200dϞ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڣ.്\u200dϞ', strict=True) + + def test_uts46_5702(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڣ.്\u200dϟ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڣ.്\u200dϟ', strict=True) + + def test_uts46_5703(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5jb.xn--xya149b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5jb.xn--xya149b', strict=True) + + def test_uts46_5704(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--5jb.xn--xya149bpvp', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--5jb.xn--xya149bpvp', strict=True) + + def test_uts46_5705(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڣ.്\u200dϟ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڣ.്\u200dϟ', strict=True) + + def test_uts46_5706(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𞸇𑘿。أ𐮂-腍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𞸇𑘿。أ𐮂-腍', strict=True) + + def test_uts46_5707(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𞸇𑘿。أ𐮂-腍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𞸇𑘿。أ𐮂-腍', strict=True) + + def test_uts46_5708(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cح𑘿。أ𐮂-腍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cح𑘿。أ𐮂-腍', strict=True) + + def test_uts46_5709(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200cح𑘿。أ𐮂-腍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200cح𑘿。أ𐮂-腍', strict=True) + + def test_uts46_5710(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--sgb4140l.xn----qmc5075grs9e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--sgb4140l.xn----qmc5075grs9e', strict=True) + + def test_uts46_5711(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--sgb953kmi8o.xn----qmc5075grs9e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--sgb953kmi8o.xn----qmc5075grs9e', strict=True) + + def test_uts46_5712(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U000addd9٫纛。𝟛\U0006d907🄅', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U000addd9٫纛。𝟛\U0006d907🄅', strict=True) + + def test_uts46_5713(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U000addd9٫纛。3\U0006d9074,', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U000addd9٫纛。3\U0006d9074,', strict=True) + + def test_uts46_5714(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----vqc8143g0tt4i.xn--34,-8787l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----vqc8143g0tt4i.xn--34,-8787l', strict=True) + + def test_uts46_5715(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----vqc8143g0tt4i.xn--3-os1sn476y', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----vqc8143g0tt4i.xn--3-os1sn476y', strict=True) + + def test_uts46_5716(self): + self.assertRaises(idna.IDNAError, idna.decode, '🔔.Ⴂߌ்𐋮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🔔.Ⴂߌ்𐋮', strict=True) + + def test_uts46_5717(self): + self.assertRaises(idna.IDNAError, idna.decode, '🔔.Ⴂߌ்𐋮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🔔.Ⴂߌ்𐋮', strict=True) + + def test_uts46_5718(self): + self.assertRaises(idna.IDNAError, idna.decode, '🔔.ⴂߌ்𐋮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🔔.ⴂߌ்𐋮', strict=True) + + def test_uts46_5719(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nv8h.xn--nsb46rvz1b222p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nv8h.xn--nsb46rvz1b222p', strict=True) + + def test_uts46_5720(self): + self.assertRaises(idna.IDNAError, idna.decode, '🔔.ⴂߌ்𐋮', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🔔.ⴂߌ்𐋮', strict=True) + + def test_uts46_5721(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nv8h.xn--nsb46r83e8112a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nv8h.xn--nsb46r83e8112a', strict=True) + + def test_uts46_5722(self): + self.assertRaises(idna.IDNAError, idna.decode, '軥ڳ.-𖬵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '軥ڳ.-𖬵', strict=True) + + def test_uts46_5723(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mkb5480e.xn----6u5m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mkb5480e.xn----6u5m', strict=True) + + def test_uts46_5724(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹤ߊڶ.𐨂-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹤ߊڶ.𐨂-', strict=True) + + def test_uts46_5725(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pkb56cn614d.xn----974i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pkb56cn614d.xn----974i', strict=True) + + def test_uts46_5726(self): + self.assertRaises(idna.IDNAError, idna.decode, '-󠅱0。៏᷽톇십', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-󠅱0。៏᷽톇십', strict=True) + + def test_uts46_5727(self): + self.assertRaises(idna.IDNAError, idna.decode, '-󠅱0。៏᷽톇십', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-󠅱0。៏᷽톇십', strict=True) + + def test_uts46_5728(self): + self.assertRaises(idna.IDNAError, idna.decode, '-󠅱0。៏᷽톇십', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-󠅱0。៏᷽톇십', strict=True) + + def test_uts46_5729(self): + self.assertRaises(idna.IDNAError, idna.decode, '-󠅱0。៏᷽톇십', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-󠅱0。៏᷽톇십', strict=True) + + def test_uts46_5730(self): + self.assertRaises(idna.IDNAError, idna.decode, '-0.xn--r4e872ah77nghm', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-0.xn--r4e872ah77nghm', strict=True) + + def test_uts46_5731(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡰ︒--。៌靈𐹢\U00058cee', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡰ︒--。៌靈𐹢\U00058cee', strict=True) + + def test_uts46_5732(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡰ。--。៌靈𐹢\U00058cee', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡰ。--。៌靈𐹢\U00058cee', strict=True) + + def test_uts46_5733(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--md9a.--.xn--o4e6836dpxudz0v1c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--md9a.--.xn--o4e6836dpxudz0v1c', strict=True) + + def test_uts46_5734(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn-----bk9hu24z.xn--o4e6836dpxudz0v1c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn-----bk9hu24z.xn--o4e6836dpxudz0v1c', strict=True) + + def test_uts46_5735(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟႿႵრ。୍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟႿႵრ。୍', strict=True) + + def test_uts46_5736(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟႿႵრ。୍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟႿႵრ。୍', strict=True) + + def test_uts46_5737(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟⴟⴕრ。୍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟⴟⴕრ。୍', strict=True) + + def test_uts46_5738(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟႿႵᲠ。୍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟႿႵᲠ。୍', strict=True) + + def test_uts46_5739(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1od555l3a.xn--9ic', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1od555l3a.xn--9ic', strict=True) + + def test_uts46_5740(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟⴟⴕრ。୍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟⴟⴕრ。୍', strict=True) + + def test_uts46_5741(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟႿႵᲠ。୍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟႿႵᲠ。୍', strict=True) + + def test_uts46_5742(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tndt4hvw.xn--9ic', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tndt4hvw.xn--9ic', strict=True) + + def test_uts46_5743(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1od7wz74eeb.xn--9ic', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1od7wz74eeb.xn--9ic', strict=True) + + def test_uts46_5744(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟႿⴕრ。୍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟႿⴕრ。୍', strict=True) + + def test_uts46_5745(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3nd0etsm92g.xn--9ic', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3nd0etsm92g.xn--9ic', strict=True) + + def test_uts46_5746(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᅟႿⴕრ。୍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᅟႿⴕრ。୍', strict=True) + + def test_uts46_5747(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄃𐹠.٤󠅇', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄃𐹠.٤󠅇', strict=True) + + def test_uts46_5748(self): + self.assertRaises(idna.IDNAError, idna.decode, '2,𐹠.٤󠅇', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '2,𐹠.٤󠅇', strict=True) + + def test_uts46_5749(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2,-5g3o.xn--dib', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2,-5g3o.xn--dib', strict=True) + + def test_uts46_5750(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7n0d1189a.xn--dib', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7n0d1189a.xn--dib', strict=True) + + def test_uts46_5751(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000bbcbc\u200cﱛ.ߒࡈ᯳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000bbcbc\u200cﱛ.ߒࡈ᯳', strict=True) + + def test_uts46_5752(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000bbcbc\u200cذٰ.ߒࡈ᯳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000bbcbc\u200cذٰ.ߒࡈ᯳', strict=True) + + def test_uts46_5753(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vgb2kp1223g.xn--tsb0vz43c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vgb2kp1223g.xn--tsb0vz43c', strict=True) + + def test_uts46_5754(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vgb2kq00fl213y.xn--tsb0vz43c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vgb2kq00fl213y.xn--tsb0vz43c', strict=True) + + def test_uts46_5755(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200d\U0001ed6a\u200c。ᡘ𑲭឵', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200d\U0001ed6a\u200c。ᡘ𑲭឵', strict=True) + + def test_uts46_5756(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l96h.xn--o8e4044k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l96h.xn--o8e4044k', strict=True) + + def test_uts46_5757(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugba05538b.xn--o8e4044k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugba05538b.xn--o8e4044k', strict=True) + + def test_uts46_5758(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--l96h.xn--03e93aq365d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--l96h.xn--03e93aq365d', strict=True) + + def test_uts46_5759(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugba05538b.xn--03e93aq365d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugba05538b.xn--03e93aq365d', strict=True) + + def test_uts46_5760(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001edfb。⚄\U00057447𑁿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001edfb。⚄\U00057447𑁿', strict=True) + + def test_uts46_5761(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qe7h.xn--c7h2966f7so4a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qe7h.xn--c7h2966f7so4a', strict=True) + + def test_uts46_5762(self): + self.assertRaises(idna.IDNAError, idna.decode, '꣄≠.𞠨٧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꣄≠.𞠨٧', strict=True) + + def test_uts46_5763(self): + self.assertRaises(idna.IDNAError, idna.decode, '꣄≠.𞠨٧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꣄≠.𞠨٧', strict=True) + + def test_uts46_5764(self): + self.assertRaises(idna.IDNAError, idna.decode, '꣄≠.𞠨٧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꣄≠.𞠨٧', strict=True) + + def test_uts46_5765(self): + self.assertRaises(idna.IDNAError, idna.decode, '꣄≠.𞠨٧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꣄≠.𞠨٧', strict=True) + + def test_uts46_5766(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1chy504c.xn--gib1777v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1chy504c.xn--gib1777v', strict=True) + + def test_uts46_5767(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟛꣄𝆪。꣪-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟛꣄𝆪。꣪-', strict=True) + + def test_uts46_5768(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟛꣄𝆪。꣪-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟛꣄𝆪。꣪-', strict=True) + + def test_uts46_5769(self): + self.assertRaises(idna.IDNAError, idna.decode, '3꣄𝆪。꣪-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '3꣄𝆪。꣪-', strict=True) + + def test_uts46_5770(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3-sl4eu679e.xn----xn4e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3-sl4eu679e.xn----xn4e', strict=True) + + def test_uts46_5771(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݟᮢ်Ⴇ.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݟᮢ်Ⴇ.e', strict=True) + + def test_uts46_5772(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݟᮢ်ⴇ.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݟᮢ်ⴇ.e', strict=True) + + def test_uts46_5773(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ݟᮢ်Ⴇ.E', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ݟᮢ်Ⴇ.E', strict=True) + + def test_uts46_5774(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jpb846bjzj7pr.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jpb846bjzj7pr.e', strict=True) + + def test_uts46_5775(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jpb846bmjw88a.e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jpb846bmjw88a.e', strict=True) + + def test_uts46_5776(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᄹ。໊\U000a0be4󠄞', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᄹ。໊\U000a0be4󠄞', strict=True) + + def test_uts46_5777(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᄹ。໊\U000a0be4󠄞', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᄹ。໊\U000a0be4󠄞', strict=True) + + def test_uts46_5778(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lrd.xn--s8c05302k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lrd.xn--s8c05302k', strict=True) + + def test_uts46_5779(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴆ\U000bb8a9.󠆡︉𞤍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴆ\U000bb8a9.󠆡︉𞤍', strict=True) + + def test_uts46_5780(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴆ\U000bb8a9.󠆡︉𞤍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴆ\U000bb8a9.󠆡︉𞤍', strict=True) + + def test_uts46_5781(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴆ\U000bb8a9.󠆡︉𞤯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴆ\U000bb8a9.󠆡︉𞤯', strict=True) + + def test_uts46_5782(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xkjw3965g.xn--ne6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xkjw3965g.xn--ne6h', strict=True) + + def test_uts46_5783(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴆ\U000bb8a9.󠆡︉𞤯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴆ\U000bb8a9.󠆡︉𞤯', strict=True) + + def test_uts46_5784(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--end82983m.xn--ne6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--end82983m.xn--ne6h', strict=True) + + def test_uts46_5785(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴆ\U000bb8a9.󠆡︉𞤍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴆ\U000bb8a9.󠆡︉𞤍', strict=True) + + def test_uts46_5786(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴆ\U000bb8a9.󠆡︉𞤍', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴆ\U000bb8a9.󠆡︉𞤍', strict=True) + + def test_uts46_5787(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ßࠋ︒ٻ.帼F∬\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ßࠋ︒ٻ.帼F∬\u200c', strict=True) + + def test_uts46_5788(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ßࠋ。ٻ.帼F∫∫\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ßࠋ。ٻ.帼F∫∫\u200c', strict=True) + + def test_uts46_5789(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ßࠋ。ٻ.帼f∫∫\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ßࠋ。ٻ.帼f∫∫\u200c', strict=True) + + def test_uts46_5790(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SSࠋ。ٻ.帼F∫∫\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SSࠋ。ٻ.帼F∫∫\u200c', strict=True) + + def test_uts46_5791(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ssࠋ。ٻ.帼f∫∫\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ssࠋ。ٻ.帼f∫∫\u200c', strict=True) + + def test_uts46_5792(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ssࠋ。ٻ.帼F∫∫\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ssࠋ。ٻ.帼F∫∫\u200c', strict=True) + + def test_uts46_5793(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-uze.xn--0ib.xn--f-tcoa9162d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-uze.xn--0ib.xn--f-tcoa9162d', strict=True) + + def test_uts46_5794(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-uze.xn--0ib.xn--f-sgn48ga6997e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-uze.xn--0ib.xn--f-sgn48ga6997e', strict=True) + + def test_uts46_5795(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca687a.xn--0ib.xn--f-sgn48ga6997e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca687a.xn--0ib.xn--f-sgn48ga6997e', strict=True) + + def test_uts46_5796(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ßࠋ︒ٻ.帼f∬\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ßࠋ︒ٻ.帼f∬\u200c', strict=True) + + def test_uts46_5797(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SSࠋ︒ٻ.帼F∬\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SSࠋ︒ٻ.帼F∬\u200c', strict=True) + + def test_uts46_5798(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ssࠋ︒ٻ.帼f∬\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ssࠋ︒ٻ.帼f∬\u200c', strict=True) + + def test_uts46_5799(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ssࠋ︒ٻ.帼F∬\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ssࠋ︒ٻ.帼F∬\u200c', strict=True) + + def test_uts46_5800(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-k0d31nu121d.xn--f-tcoa9162d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-k0d31nu121d.xn--f-tcoa9162d', strict=True) + + def test_uts46_5801(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-k0d31nu121d.xn--f-sgn48ga6997e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-k0d31nu121d.xn--f-sgn48ga6997e', strict=True) + + def test_uts46_5802(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca68zj8ac956c.xn--f-sgn48ga6997e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca68zj8ac956c.xn--f-sgn48ga6997e', strict=True) + + def test_uts46_5803(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d8a97。𐹴\U0001ea0c\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d8a97。𐹴\U0001ea0c\u200d', strict=True) + + def test_uts46_5804(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000d8a97。𐹴\U0001ea0c\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000d8a97。𐹴\U0001ea0c\u200d', strict=True) + + def test_uts46_5805(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8l83e.xn--so0dw168a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8l83e.xn--so0dw168a', strict=True) + + def test_uts46_5806(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8l83e.xn--1ug4105gsxwf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8l83e.xn--1ug4105gsxwf', strict=True) + + def test_uts46_5807(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000576e8.\U000857e2𝟨꣄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000576e8.\U000857e2𝟨꣄', strict=True) + + def test_uts46_5808(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000576e8.\U000857e26꣄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000576e8.\U000857e26꣄', strict=True) + + def test_uts46_5809(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mi60a.xn--6-sl4es8023c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mi60a.xn--6-sl4es8023c', strict=True) + + def test_uts46_5810(self): + self.assertRaises(idna.IDNAError, idna.decode, '᪲ﶎ。-۹ႱႨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᪲ﶎ。-۹ႱႨ', strict=True) + + def test_uts46_5811(self): + self.assertRaises(idna.IDNAError, idna.decode, '᪲مخج。-۹ႱႨ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᪲مخج。-۹ႱႨ', strict=True) + + def test_uts46_5812(self): + self.assertRaises(idna.IDNAError, idna.decode, '᪲مخج。-۹ⴑⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᪲مخج。-۹ⴑⴈ', strict=True) + + def test_uts46_5813(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rgbd2e831i.xn----zyc3430a9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rgbd2e831i.xn----zyc3430a9a', strict=True) + + def test_uts46_5814(self): + self.assertRaises(idna.IDNAError, idna.decode, '᪲ﶎ。-۹ⴑⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᪲ﶎ。-۹ⴑⴈ', strict=True) + + def test_uts46_5815(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rgbd2e831i.xn----zyc155e9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rgbd2e831i.xn----zyc155e9a', strict=True) + + def test_uts46_5816(self): + self.assertRaises(idna.IDNAError, idna.decode, '᪲مخج。-۹Ⴑⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᪲مخج。-۹Ⴑⴈ', strict=True) + + def test_uts46_5817(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rgbd2e831i.xn----zyc875efr3a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rgbd2e831i.xn----zyc875efr3a', strict=True) + + def test_uts46_5818(self): + self.assertRaises(idna.IDNAError, idna.decode, '᪲ﶎ。-۹Ⴑⴈ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᪲ﶎ。-۹Ⴑⴈ', strict=True) + + def test_uts46_5819(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤤.-ࢣ︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤤.-ࢣ︒', strict=True) + + def test_uts46_5820(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤤.-ࢣ。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤤.-ࢣ。', strict=True) + + def test_uts46_5821(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤂.-ࢣ。', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤂.-ࢣ。', strict=True) + + def test_uts46_5822(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ce6h.xn----cod.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ce6h.xn----cod.', strict=True) + + def test_uts46_5823(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤂.-ࢣ︒', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤂.-ࢣ︒', strict=True) + + def test_uts46_5824(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ce6h.xn----cod7069p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ce6h.xn----cod7069p', strict=True) + + def test_uts46_5825(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𐺨.࡙--', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𐺨.࡙--', strict=True) + + def test_uts46_5826(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9p0d.xn-----h6e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9p0d.xn-----h6e', strict=True) + + def test_uts46_5827(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug7905g.xn-----h6e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug7905g.xn-----h6e', strict=True) + + def test_uts46_5828(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋸\U000ee60bჂ.Ⴁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋸\U000ee60bჂ.Ⴁ', strict=True) + + def test_uts46_5829(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋸\U000ee60bⴢ.ⴁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋸\U000ee60bⴢ.ⴁ', strict=True) + + def test_uts46_5830(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋸\U000ee60bჂ.ⴁ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋸\U000ee60bჂ.ⴁ', strict=True) + + def test_uts46_5831(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qlj1559dr224h.xn--skj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qlj1559dr224h.xn--skj', strict=True) + + def test_uts46_5832(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6nd5215jr2u0h.xn--skj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6nd5215jr2u0h.xn--skj', strict=True) + + def test_uts46_5833(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6nd5215jr2u0h.xn--8md', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6nd5215jr2u0h.xn--8md', strict=True) + + def test_uts46_5834(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0005747f꠆₄\U000a9786。\U00032a67\U000e04b9ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0005747f꠆₄\U000a9786。\U00032a67\U000e04b9ς', strict=True) + + def test_uts46_5835(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0005747f꠆4\U000a9786。\U00032a67\U000e04b9ς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0005747f꠆4\U000a9786。\U00032a67\U000e04b9ς', strict=True) + + def test_uts46_5836(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0005747f꠆4\U000a9786。\U00032a67\U000e04b9Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0005747f꠆4\U000a9786。\U00032a67\U000e04b9Σ', strict=True) + + def test_uts46_5837(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0005747f꠆4\U000a9786。\U00032a67\U000e04b9σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0005747f꠆4\U000a9786。\U00032a67\U000e04b9σ', strict=True) + + def test_uts46_5838(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-w93ej7463a9io5a.xn--4xa31142bk3f0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-w93ej7463a9io5a.xn--4xa31142bk3f0d', strict=True) + + def test_uts46_5839(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-w93ej7463a9io5a.xn--3xa51142bk3f0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-w93ej7463a9io5a.xn--3xa51142bk3f0d', strict=True) + + def test_uts46_5840(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0005747f꠆₄\U000a9786。\U00032a67\U000e04b9Σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0005747f꠆₄\U000a9786。\U00032a67\U000e04b9Σ', strict=True) + + def test_uts46_5841(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0005747f꠆₄\U000a9786。\U00032a67\U000e04b9σ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0005747f꠆₄\U000a9786。\U00032a67\U000e04b9σ', strict=True) + + def test_uts46_5842(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆀ܣ。ᷴݵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆀ܣ。ᷴݵ', strict=True) + + def test_uts46_5843(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tnb.xn--5pb136i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tnb.xn--5pb136i', strict=True) + + def test_uts46_5844(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹱ࡂ𝪨。𬼖Ⴑ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹱ࡂ𝪨。𬼖Ⴑ\u200d', strict=True) + + def test_uts46_5845(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹱ࡂ𝪨。𬼖Ⴑ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹱ࡂ𝪨。𬼖Ⴑ\u200d', strict=True) + + def test_uts46_5846(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹱ࡂ𝪨。𬼖ⴑ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹱ࡂ𝪨。𬼖ⴑ\u200d', strict=True) + + def test_uts46_5847(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0vb1535kdb6e.xn--8kjz186s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0vb1535kdb6e.xn--8kjz186s', strict=True) + + def test_uts46_5848(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0vb1535kdb6e.xn--1ug742c5714c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0vb1535kdb6e.xn--1ug742c5714c', strict=True) + + def test_uts46_5849(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹱ࡂ𝪨。𬼖ⴑ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹱ࡂ𝪨。𬼖ⴑ\u200d', strict=True) + + def test_uts46_5850(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0vb1535kdb6e.xn--pnd93707a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0vb1535kdb6e.xn--pnd93707a', strict=True) + + def test_uts46_5851(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0vb1535kdb6e.xn--pnd879eqy33c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0vb1535kdb6e.xn--pnd879eqy33c', strict=True) + + def test_uts46_5852(self): + self.assertRaises(idna.IDNAError, idna.decode, '᜔𐭪\U000e0658\u200d。-𐹴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᜔𐭪\U000e0658\u200d。-𐹴', strict=True) + + def test_uts46_5853(self): + self.assertRaises(idna.IDNAError, idna.decode, '᜔𐭪\U000e0658\u200d。-𐹴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᜔𐭪\U000e0658\u200d。-𐹴', strict=True) + + def test_uts46_5854(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fze4126jujt0g.xn----c36i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fze4126jujt0g.xn----c36i', strict=True) + + def test_uts46_5855(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fze807bso0spy14i.xn----c36i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fze807bso0spy14i.xn----c36i', strict=True) + + def test_uts46_5856(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003e8ac。ܩ︒쯙𝟧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003e8ac。ܩ︒쯙𝟧', strict=True) + + def test_uts46_5857(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003e8ac。ܩ︒쯙𝟧', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003e8ac。ܩ︒쯙𝟧', strict=True) + + def test_uts46_5858(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003e8ac。ܩ。쯙5', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003e8ac。ܩ。쯙5', strict=True) + + def test_uts46_5859(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0003e8ac。ܩ。쯙5', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0003e8ac。ܩ。쯙5', strict=True) + + def test_uts46_5860(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t92s.xn--znb.xn--5-y88f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t92s.xn--znb.xn--5-y88f', strict=True) + + def test_uts46_5861(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--t92s.xn--5-p1c0712mm8rb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--t92s.xn--5-p1c0712mm8rb', strict=True) + + def test_uts46_5862(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤟-。ݢ≮뻐', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤟-。ݢ≮뻐', strict=True) + + def test_uts46_5863(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞤟-。ݢ≮뻐', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞤟-。ݢ≮뻐', strict=True) + + def test_uts46_5864(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞥁-。ݢ≮뻐', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞥁-。ݢ≮뻐', strict=True) + + def test_uts46_5865(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞥁-。ݢ≮뻐', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞥁-。ݢ≮뻐', strict=True) + + def test_uts46_5866(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----1j8r.xn--mpb269krv4i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----1j8r.xn--mpb269krv4i', strict=True) + + def test_uts46_5867(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001e969-\U0008aae0.ࢴ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001e969-\U0008aae0.ࢴ≠', strict=True) + + def test_uts46_5868(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001e969-\U0008aae0.ࢴ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001e969-\U0008aae0.ࢴ≠', strict=True) + + def test_uts46_5869(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001e969-\U0008aae0.ࢴ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001e969-\U0008aae0.ࢴ≠', strict=True) + + def test_uts46_5870(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001e969-\U0008aae0.ࢴ≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001e969-\U0008aae0.ࢴ≠', strict=True) + + def test_uts46_5871(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----cm8rp3609a.xn--9yb852k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----cm8rp3609a.xn--9yb852k', strict=True) + + def test_uts46_5872(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0004508fςႼ.١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0004508fςႼ.١', strict=True) + + def test_uts46_5873(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0004508fςႼ.١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0004508fςႼ.١', strict=True) + + def test_uts46_5874(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0004508fςⴜ.١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0004508fςⴜ.١', strict=True) + + def test_uts46_5875(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0004508fΣႼ.١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0004508fΣႼ.١', strict=True) + + def test_uts46_5876(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0004508fσⴜ.١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0004508fσⴜ.١', strict=True) + + def test_uts46_5877(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0004508fΣⴜ.١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0004508fΣⴜ.١', strict=True) + + def test_uts46_5878(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----0mb9682aov12f.xn--9hb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----0mb9682aov12f.xn--9hb', strict=True) + + def test_uts46_5879(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ymb2782aov12f.xn--9hb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ymb2782aov12f.xn--9hb', strict=True) + + def test_uts46_5880(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0004508fςⴜ.١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0004508fςⴜ.١', strict=True) + + def test_uts46_5881(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0004508fΣႼ.١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0004508fΣႼ.١', strict=True) + + def test_uts46_5882(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0004508fσⴜ.١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0004508fσⴜ.١', strict=True) + + def test_uts46_5883(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U0004508fΣⴜ.١', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U0004508fΣⴜ.١', strict=True) + + def test_uts46_5884(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----0mb770hun11i.xn--9hb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----0mb770hun11i.xn--9hb', strict=True) + + def test_uts46_5885(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ymb080hun11i.xn--9hb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ymb080hun11i.xn--9hb', strict=True) + + def test_uts46_5886(self): + self.assertRaises(idna.IDNAError, idna.decode, '៊.\u200d𝟮𑀿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '៊.\u200d𝟮𑀿', strict=True) + + def test_uts46_5887(self): + self.assertRaises(idna.IDNAError, idna.decode, '៊.\u200d2𑀿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '៊.\u200d2𑀿', strict=True) + + def test_uts46_5888(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--m4e.xn--2-ku7i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--m4e.xn--2-ku7i', strict=True) + + def test_uts46_5889(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--m4e.xn--2-tgnv469h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--m4e.xn--2-tgnv469h', strict=True) + + def test_uts46_5890(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𝟖。᩠𐫓\U0009f1d1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𝟖。᩠𐫓\U0009f1d1', strict=True) + + def test_uts46_5891(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯𝟖。᩠𐫓\U0009f1d1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯𝟖。᩠𐫓\U0009f1d1', strict=True) + + def test_uts46_5892(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯8。᩠𐫓\U0009f1d1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯8。᩠𐫓\U0009f1d1', strict=True) + + def test_uts46_5893(self): + self.assertRaises(idna.IDNAError, idna.decode, '≯8。᩠𐫓\U0009f1d1', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≯8。᩠𐫓\U0009f1d1', strict=True) + + def test_uts46_5894(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-ogo.xn--jof5303iv1z5d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-ogo.xn--jof5303iv1z5d', strict=True) + + def test_uts46_5895(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑲫Ↄ٤。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑲫Ↄ٤。\u200c', strict=True) + + def test_uts46_5896(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑲫Ↄ٤。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑲫Ↄ٤。\u200c', strict=True) + + def test_uts46_5897(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑲫ↄ٤。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑲫ↄ٤。\u200c', strict=True) + + def test_uts46_5898(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dib100l8x1p.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dib100l8x1p.', strict=True) + + def test_uts46_5899(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dib100l8x1p.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dib100l8x1p.xn--0ug', strict=True) + + def test_uts46_5900(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑲫ↄ٤。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑲫ↄ٤。\u200c', strict=True) + + def test_uts46_5901(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dib999kcy1p.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dib999kcy1p.', strict=True) + + def test_uts46_5902(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--dib999kcy1p.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--dib999kcy1p.xn--0ug', strict=True) + + def test_uts46_5903(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ఀ𝟵\u200dﲝ.\u200dݐ⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ఀ𝟵\u200dﲝ.\u200dݐ⒈', strict=True) + + def test_uts46_5904(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ఀ9\u200dبح.\u200dݐ1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ఀ9\u200dبح.\u200dݐ1.', strict=True) + + def test_uts46_5905(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-1mcp570d.xn--1-x3c.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-1mcp570d.xn--1-x3c.', strict=True) + + def test_uts46_5906(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-1mcp570dl51a.xn--1-x3c211q.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-1mcp570dl51a.xn--1-x3c211q.', strict=True) + + def test_uts46_5907(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-1mcp570d.xn--3ob470m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-1mcp570d.xn--3ob470m', strict=True) + + def test_uts46_5908(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-1mcp570dl51a.xn--3ob977jmfd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-1mcp570dl51a.xn--3ob977jmfd', strict=True) + + def test_uts46_5909(self): + self.assertRaises(idna.IDNAError, idna.decode, '꫶。嬶ß葽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꫶。嬶ß葽', strict=True) + + def test_uts46_5910(self): + self.assertRaises(idna.IDNAError, idna.decode, '꫶。嬶SS葽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꫶。嬶SS葽', strict=True) + + def test_uts46_5911(self): + self.assertRaises(idna.IDNAError, idna.decode, '꫶。嬶ss葽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꫶。嬶ss葽', strict=True) + + def test_uts46_5912(self): + self.assertRaises(idna.IDNAError, idna.decode, '꫶。嬶Ss葽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '꫶。嬶Ss葽', strict=True) + + def test_uts46_5913(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2v9a.xn--ss-q40dp97m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2v9a.xn--ss-q40dp97m', strict=True) + + def test_uts46_5914(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2v9a.xn--zca7637b14za', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2v9a.xn--zca7637b14za', strict=True) + + def test_uts46_5915(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑚶⒈。\U0005eee1𐹺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑚶⒈。\U0005eee1𐹺', strict=True) + + def test_uts46_5916(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑚶1.。\U0005eee1𐹺', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑚶1.。\U0005eee1𐹺', strict=True) + + def test_uts46_5917(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-3j0j..xn--yo0d5914s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-3j0j..xn--yo0d5914s', strict=True) + + def test_uts46_5918(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tshz969f.xn--yo0d5914s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tshz969f.xn--yo0d5914s', strict=True) + + def test_uts46_5919(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑜤︒≮.\U0005a57dט\U0001efa9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑜤︒≮.\U0005a57dט\U0001efa9', strict=True) + + def test_uts46_5920(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑜤︒≮.\U0005a57dט\U0001efa9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑜤︒≮.\U0005a57dט\U0001efa9', strict=True) + + def test_uts46_5921(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑜤。≮.\U0005a57dט\U0001efa9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑜤。≮.\U0005a57dט\U0001efa9', strict=True) + + def test_uts46_5922(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑜤。≮.\U0005a57dט\U0001efa9', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑜤。≮.\U0005a57dט\U0001efa9', strict=True) + + def test_uts46_5923(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ci2d.xn--gdh.xn--deb0091w5q9u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ci2d.xn--gdh.xn--deb0091w5q9u', strict=True) + + def test_uts46_5924(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh5267fdzpa.xn--deb0091w5q9u', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh5267fdzpa.xn--deb0091w5q9u', strict=True) + + def test_uts46_5925(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆋\u0603\U0004f9a4.⇁ς\U0008f2c8\U000ba1e5', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆋\u0603\U0004f9a4.⇁ς\U0008f2c8\U000ba1e5', strict=True) + + def test_uts46_5926(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆋\u0603\U0004f9a4.⇁Σ\U0008f2c8\U000ba1e5', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆋\u0603\U0004f9a4.⇁Σ\U0008f2c8\U000ba1e5', strict=True) + + def test_uts46_5927(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠆋\u0603\U0004f9a4.⇁σ\U0008f2c8\U000ba1e5', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠆋\u0603\U0004f9a4.⇁σ\U0008f2c8\U000ba1e5', strict=True) + + def test_uts46_5928(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lfb04106d.xn--4xa964mxv16m8moq', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lfb04106d.xn--4xa964mxv16m8moq', strict=True) + + def test_uts46_5929(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--lfb04106d.xn--3xa174mxv16m8moq', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--lfb04106d.xn--3xa174mxv16m8moq', strict=True) + + def test_uts46_5930(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + + def test_uts46_5931(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + + def test_uts46_5932(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + + def test_uts46_5933(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + + def test_uts46_5934(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa2260lk3b8z15g.xn--tw9ct349a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa2260lk3b8z15g.xn--tw9ct349a', strict=True) + + def test_uts46_5935(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa2260lk3b8z15g.xn--0ug4653g2xzf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa2260lk3b8z15g.xn--0ug4653g2xzf', strict=True) + + def test_uts46_5936(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa4260lk3b8z15g.xn--0ug4653g2xzf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa4260lk3b8z15g.xn--0ug4653g2xzf', strict=True) + + def test_uts46_5937(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + + def test_uts46_5938(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ𑐽\U00035888𑜫。\U0001eb29\u200c𐫄', strict=True) + + def test_uts46_5939(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U000b53fd。-ﱌݛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U000b53fd。-ﱌݛ', strict=True) + + def test_uts46_5940(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U000b53fd。-نحݛ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U000b53fd。-نحݛ', strict=True) + + def test_uts46_5941(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----o452j.xn----cnc8e38c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----o452j.xn----cnc8e38c', strict=True) + + def test_uts46_5942(self): + self.assertRaises(idna.IDNAError, idna.decode, '⺢\U00087e85𝟤。\u200d🚷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⺢\U00087e85𝟤。\u200d🚷', strict=True) + + def test_uts46_5943(self): + self.assertRaises(idna.IDNAError, idna.decode, '⺢\U00087e852。\u200d🚷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⺢\U00087e852。\u200d🚷', strict=True) + + def test_uts46_5944(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2-4jtr4282f.xn--m78h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2-4jtr4282f.xn--m78h', strict=True) + + def test_uts46_5945(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2-4jtr4282f.xn--1ugz946p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2-4jtr4282f.xn--1ugz946p', strict=True) + + def test_uts46_5946(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0cf8\u200dⷾ𐹲。\U000a4436', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0cf8\u200dⷾ𐹲。\U000a4436', strict=True) + + def test_uts46_5947(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u0cf8\u200dⷾ𐹲。\U000a4436', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u0cf8\u200dⷾ𐹲。\U000a4436', strict=True) + + def test_uts46_5948(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hvc220of37m.xn--3e36c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hvc220of37m.xn--3e36c', strict=True) + + def test_uts46_5949(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hvc488g69j402t.xn--3e36c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hvc488g69j402t.xn--3e36c', strict=True) + + def test_uts46_5950(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹢.Ⴍ₉⁸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹢.Ⴍ₉⁸', strict=True) + + def test_uts46_5951(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹢.Ⴍ98', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹢.Ⴍ98', strict=True) + + def test_uts46_5952(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹢.ⴍ98', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹢.ⴍ98', strict=True) + + def test_uts46_5953(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9n0d.xn--98-u61a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9n0d.xn--98-u61a', strict=True) + + def test_uts46_5954(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹢.ⴍ₉⁸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹢.ⴍ₉⁸', strict=True) + + def test_uts46_5955(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9n0d.xn--98-7ek', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9n0d.xn--98-7ek', strict=True) + + def test_uts46_5956(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。ß\u08e2⒚≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。ß\u08e2⒚≯', strict=True) + + def test_uts46_5957(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。ß\u08e2⒚≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。ß\u08e2⒚≯', strict=True) + + def test_uts46_5958(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。ß\u08e219.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。ß\u08e219.≯', strict=True) + + def test_uts46_5959(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。ß\u08e219.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。ß\u08e219.≯', strict=True) + + def test_uts46_5960(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。SS\u08e219.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。SS\u08e219.≯', strict=True) + + def test_uts46_5961(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。SS\u08e219.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。SS\u08e219.≯', strict=True) + + def test_uts46_5962(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。ss\u08e219.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。ss\u08e219.≯', strict=True) + + def test_uts46_5963(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。ss\u08e219.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。ss\u08e219.≯', strict=True) + + def test_uts46_5964(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。Ss\u08e219.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。Ss\u08e219.≯', strict=True) + + def test_uts46_5965(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。Ss\u08e219.≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。Ss\u08e219.≯', strict=True) + + def test_uts46_5966(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--ss19-w0i.xn--hdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--ss19-w0i.xn--hdh', strict=True) + + def test_uts46_5967(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--ss19-w0i.xn--hdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--ss19-w0i.xn--hdh', strict=True) + + def test_uts46_5968(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--19-fia813f.xn--hdh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--19-fia813f.xn--hdh', strict=True) + + def test_uts46_5969(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。SS\u08e2⒚≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。SS\u08e2⒚≯', strict=True) + + def test_uts46_5970(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。SS\u08e2⒚≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。SS\u08e2⒚≯', strict=True) + + def test_uts46_5971(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。ss\u08e2⒚≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。ss\u08e2⒚≯', strict=True) + + def test_uts46_5972(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。ss\u08e2⒚≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。ss\u08e2⒚≯', strict=True) + + def test_uts46_5973(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。Ss\u08e2⒚≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。Ss\u08e2⒚≯', strict=True) + + def test_uts46_5974(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c͏。Ss\u08e2⒚≯', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c͏。Ss\u08e2⒚≯', strict=True) + + def test_uts46_5975(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--ss-9if872xjjc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--ss-9if872xjjc', strict=True) + + def test_uts46_5976(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--ss-9if872xjjc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--ss-9if872xjjc', strict=True) + + def test_uts46_5977(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug.xn--zca612bx9vo5b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug.xn--zca612bx9vo5b', strict=True) + + def test_uts46_5978(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U0001e94dᡌ.𣃔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U0001e94dᡌ.𣃔', strict=True) + + def test_uts46_5979(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c\U0001e94dᡌ.𣃔', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c\U0001e94dᡌ.𣃔', strict=True) + + def test_uts46_5980(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--c8e5919u.xn--od1j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--c8e5919u.xn--od1j', strict=True) + + def test_uts46_5981(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--c8e180bqz13b.xn--od1j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--c8e180bqz13b.xn--od1j', strict=True) + + def test_uts46_5982(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߐ\U0009cb1d-\U000618ac。ྠႻ\U0001edcf𝆬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߐ\U0009cb1d-\U000618ac。ྠႻ\U0001edcf𝆬', strict=True) + + def test_uts46_5983(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ߐ\U0009cb1d-\U000618ac。ྠⴛ\U0001edcf𝆬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ߐ\U0009cb1d-\U000618ac。ྠⴛ\U0001edcf𝆬', strict=True) + + def test_uts46_5984(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----8bd11730jefvw.xn--wfd802mpm20agsxa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----8bd11730jefvw.xn--wfd802mpm20agsxa', strict=True) + + def test_uts46_5985(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----8bd11730jefvw.xn--wfd08cd265hgsxa', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----8bd11730jefvw.xn--wfd08cd265hgsxa', strict=True) + + def test_uts46_5986(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝨥。⫟𑈾', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝨥。⫟𑈾', strict=True) + + def test_uts46_5987(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--n82h.xn--63iw010f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--n82h.xn--63iw010f', strict=True) + + def test_uts46_5988(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾛ݓ.Ⴕ𞠬\u0604\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾛ݓ.Ⴕ𞠬\u0604\u200d', strict=True) + + def test_uts46_5989(self): + self.assertRaises(idna.IDNAError, idna.decode, '走ݓ.Ⴕ𞠬\u0604\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '走ݓ.Ⴕ𞠬\u0604\u200d', strict=True) + + def test_uts46_5990(self): + self.assertRaises(idna.IDNAError, idna.decode, '走ݓ.ⴕ𞠬\u0604\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '走ݓ.ⴕ𞠬\u0604\u200d', strict=True) + + def test_uts46_5991(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6ob9779d.xn--mfb511rxu80a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6ob9779d.xn--mfb511rxu80a', strict=True) + + def test_uts46_5992(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6ob9779d.xn--mfb444k5gjt754b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6ob9779d.xn--mfb444k5gjt754b', strict=True) + + def test_uts46_5993(self): + self.assertRaises(idna.IDNAError, idna.decode, '⾛ݓ.ⴕ𞠬\u0604\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⾛ݓ.ⴕ𞠬\u0604\u200d', strict=True) + + def test_uts46_5994(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6ob9779d.xn--mfb785ck569a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6ob9779d.xn--mfb785ck569a', strict=True) + + def test_uts46_5995(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6ob9779d.xn--mfb785czmm0y85b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6ob9779d.xn--mfb785czmm0y85b', strict=True) + + def test_uts46_5996(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ᢗ\u200c🄄.𑜢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ᢗ\u200c🄄.𑜢', strict=True) + + def test_uts46_5997(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ᢗ\u200c3,.𑜢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ᢗ\u200c3,.𑜢', strict=True) + + def test_uts46_5998(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---3,-3eu.xn--9h2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---3,-3eu.xn--9h2d', strict=True) + + def test_uts46_5999(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn---3,-3eu051c.xn--9h2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn---3,-3eu051c.xn--9h2d', strict=True) + + def test_uts46_6000(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----pck1820x.xn--9h2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----pck1820x.xn--9h2d', strict=True) + + def test_uts46_6001(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----pck312bx563c.xn--9h2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----pck312bx563c.xn--9h2d', strict=True) + + def test_uts46_6002(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠\U00010e01\U000393c1\u200c.Ⴚ\U000b3120', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠\U00010e01\U000393c1\u200c.Ⴚ\U000b3120', strict=True) + + def test_uts46_6003(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠\U00010e01\U000393c1\u200c.Ⴚ\U000b3120', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠\U00010e01\U000393c1\u200c.Ⴚ\U000b3120', strict=True) + + def test_uts46_6004(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠\U00010e01\U000393c1\u200c.ⴚ\U000b3120', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠\U00010e01\U000393c1\u200c.ⴚ\U000b3120', strict=True) + + def test_uts46_6005(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠\U00010e01\U000393c1\u200c.ⴚ\U000b3120', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠\U00010e01\U000393c1\u200c.ⴚ\U000b3120', strict=True) + + def test_uts46_6006(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch2293gv3nr.xn--ilj23531g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch2293gv3nr.xn--ilj23531g', strict=True) + + def test_uts46_6007(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug83gn618a21ov.xn--ilj23531g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug83gn618a21ov.xn--ilj23531g', strict=True) + + def test_uts46_6008(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch2293gv3nr.xn--ynd49496l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch2293gv3nr.xn--ynd49496l', strict=True) + + def test_uts46_6009(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ug83gn618a21ov.xn--ynd49496l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ug83gn618a21ov.xn--ynd49496l', strict=True) + + def test_uts46_6010(self): + self.assertRaises(idna.IDNAError, idna.decode, '٩。󠇀𑇊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٩。󠇀𑇊', strict=True) + + def test_uts46_6011(self): + self.assertRaises(idna.IDNAError, idna.decode, '٩。󠇀𑇊', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٩。󠇀𑇊', strict=True) + + def test_uts46_6012(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iib.xn--6d1d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iib.xn--6d1d', strict=True) + + def test_uts46_6013(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ႆ\U0001ed80≯⒍。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ႆ\U0001ed80≯⒍。-', strict=True) + + def test_uts46_6014(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ႆ\U0001ed80≯⒍。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ႆ\U0001ed80≯⒍。-', strict=True) + + def test_uts46_6015(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ႆ\U0001ed80≯6.。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ႆ\U0001ed80≯6.。-', strict=True) + + def test_uts46_6016(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ႆ\U0001ed80≯6.。-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ႆ\U0001ed80≯6.。-', strict=True) + + def test_uts46_6017(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-oyg968k7h74b..-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-oyg968k7h74b..-', strict=True) + + def test_uts46_6018(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--hmd482gqqb8730g.-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--hmd482gqqb8730g.-', strict=True) + + def test_uts46_6019(self): + self.assertRaises(idna.IDNAError, idna.decode, '឴.쮇-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '឴.쮇-', strict=True) + + def test_uts46_6020(self): + self.assertRaises(idna.IDNAError, idna.decode, '឴.쮇-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '឴.쮇-', strict=True) + + def test_uts46_6021(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn----938f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn----938f', strict=True) + + def test_uts46_6022(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--z3e.xn----938f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--z3e.xn----938f', strict=True) + + def test_uts46_6023(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𑓂。⒈-\U00100a9b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𑓂。⒈-\U00100a9b', strict=True) + + def test_uts46_6024(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200c𑓂。1.-\U00100a9b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200c𑓂。1.-\U00100a9b', strict=True) + + def test_uts46_6025(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wz1d.1.xn----rg03o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wz1d.1.xn----rg03o', strict=True) + + def test_uts46_6026(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugy057g.1.xn----rg03o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugy057g.1.xn----rg03o', strict=True) + + def test_uts46_6027(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wz1d.xn----dcp29674o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wz1d.xn----dcp29674o', strict=True) + + def test_uts46_6028(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0ugy057g.xn----dcp29674o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0ugy057g.xn----dcp29674o', strict=True) + + def test_uts46_6029(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒈ﺮ\u200c。⃩🖞\u200c𖬴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒈ﺮ\u200c。⃩🖞\u200c𖬴', strict=True) + + def test_uts46_6030(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.ر\u200c。⃩🖞\u200c𖬴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.ر\u200c。⃩🖞\u200c𖬴', strict=True) + + def test_uts46_6031(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--wgb.xn--c1g6021kg18c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--wgb.xn--c1g6021kg18c', strict=True) + + def test_uts46_6032(self): + self.assertRaises(idna.IDNAError, idna.decode, '1.xn--wgb253k.xn--0ugz6a8040fty5d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '1.xn--wgb253k.xn--0ugz6a8040fty5d', strict=True) + + def test_uts46_6033(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wgb746m.xn--c1g6021kg18c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wgb746m.xn--c1g6021kg18c', strict=True) + + def test_uts46_6034(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--wgb253kmfd.xn--0ugz6a8040fty5d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--wgb253kmfd.xn--0ugz6a8040fty5d', strict=True) + + def test_uts46_6035(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ccb47。𝟐ᮨߔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ccb47。𝟐ᮨߔ', strict=True) + + def test_uts46_6036(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000ccb47。2ᮨߔ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000ccb47。2ᮨߔ', strict=True) + + def test_uts46_6037(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--xm89d.xn--2-icd143m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--xm89d.xn--2-icd143m', strict=True) + + def test_uts46_6038(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﶏ\U000abcfa.ς\u200d𐹷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﶏ\U000abcfa.ς\u200d𐹷', strict=True) + + def test_uts46_6039(self): + self.assertRaises(idna.IDNAError, idna.decode, 'مخم\U000abcfa.ς\u200d𐹷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'مخم\U000abcfa.ς\u200d𐹷', strict=True) + + def test_uts46_6040(self): + self.assertRaises(idna.IDNAError, idna.decode, 'مخم\U000abcfa.Σ\u200d𐹷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'مخم\U000abcfa.Σ\u200d𐹷', strict=True) + + def test_uts46_6041(self): + self.assertRaises(idna.IDNAError, idna.decode, 'مخم\U000abcfa.σ\u200d𐹷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'مخم\U000abcfa.σ\u200d𐹷', strict=True) + + def test_uts46_6042(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tgb9bb64691z.xn--4xa6667k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tgb9bb64691z.xn--4xa6667k', strict=True) + + def test_uts46_6043(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tgb9bb64691z.xn--4xa895lrp7n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tgb9bb64691z.xn--4xa895lrp7n', strict=True) + + def test_uts46_6044(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--tgb9bb64691z.xn--3xa006lrp7n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--tgb9bb64691z.xn--3xa006lrp7n', strict=True) + + def test_uts46_6045(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﶏ\U000abcfa.Σ\u200d𐹷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﶏ\U000abcfa.Σ\u200d𐹷', strict=True) + + def test_uts46_6046(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﶏ\U000abcfa.σ\u200d𐹷', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﶏ\U000abcfa.σ\u200d𐹷', strict=True) + + def test_uts46_6047(self): + self.assertRaises(idna.IDNAError, idna.decode, '⒎ہ\u0605。꫶۵𐇽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⒎ہ\u0605。꫶۵𐇽', strict=True) + + def test_uts46_6048(self): + self.assertRaises(idna.IDNAError, idna.decode, '7.ہ\u0605。꫶۵𐇽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '7.ہ\u0605。꫶۵𐇽', strict=True) + + def test_uts46_6049(self): + self.assertRaises(idna.IDNAError, idna.decode, '7.xn--nfb98a.xn--imb3805fxt8b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '7.xn--nfb98a.xn--imb3805fxt8b', strict=True) + + def test_uts46_6050(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nfb98ai25e.xn--imb3805fxt8b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nfb98ai25e.xn--imb3805fxt8b', strict=True) + + def test_uts46_6051(self): + self.assertRaises(idna.IDNAError, idna.decode, '-ᡥ᠆\U000cdcad。\u0605ᩝ𐹡', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-ᡥ᠆\U000cdcad。\u0605ᩝ𐹡', strict=True) + + def test_uts46_6052(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----f3j6s87156i.xn--nfb035hoo2p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----f3j6s87156i.xn--nfb035hoo2p', strict=True) + + def test_uts46_6053(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d.ڽ٣֖', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d.ڽ٣֖', strict=True) + + def test_uts46_6054(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--hcb32bni', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--hcb32bni', strict=True) + + def test_uts46_6055(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug.xn--hcb32bni', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug.xn--hcb32bni', strict=True) + + def test_uts46_6056(self): + self.assertEqual(idna.decode('xn--hcb32bni', uts46=True, strict=True), 'ڽ٣֖') + self.assertEqual(idna.encode('xn--hcb32bni', uts46=True, strict=True), b'xn--hcb32bni') + + def test_uts46_6057(self): + self.assertEqual(idna.decode('ڽ٣֖', uts46=True, strict=True), 'ڽ٣֖') + self.assertEqual(idna.encode('ڽ٣֖', uts46=True, strict=True), b'xn--hcb32bni') + + def test_uts46_6058(self): + self.assertRaises(idna.IDNAError, idna.decode, '㒧۱.Ⴚٸ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㒧۱.Ⴚٸ\u200d', strict=True) + + def test_uts46_6059(self): + self.assertRaises(idna.IDNAError, idna.decode, '㒧۱.Ⴚيٴ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㒧۱.Ⴚيٴ\u200d', strict=True) + + def test_uts46_6060(self): + self.assertRaises(idna.IDNAError, idna.decode, '㒧۱.ⴚيٴ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㒧۱.ⴚيٴ\u200d', strict=True) + + def test_uts46_6061(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--emb715u.xn--mhb8fy26k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--emb715u.xn--mhb8fy26k', strict=True) + + def test_uts46_6062(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--emb715u.xn--mhb8f960g03l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--emb715u.xn--mhb8f960g03l', strict=True) + + def test_uts46_6063(self): + self.assertRaises(idna.IDNAError, idna.decode, '㒧۱.ⴚٸ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '㒧۱.ⴚٸ\u200d', strict=True) + + def test_uts46_6064(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--emb715u.xn--mhb8f817a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--emb715u.xn--mhb8f817a', strict=True) + + def test_uts46_6065(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--emb715u.xn--mhb8f817ao2p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--emb715u.xn--mhb8f817ao2p', strict=True) + + def test_uts46_6066(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྔꡋ-.-𖬴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྔꡋ-.-𖬴', strict=True) + + def test_uts46_6067(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ྔꡋ-.-𖬴', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ྔꡋ-.-𖬴', strict=True) + + def test_uts46_6068(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ukg9938i.xn----4u5m', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ukg9938i.xn----4u5m', strict=True) + + def test_uts46_6069(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007f4b3-⋢\u200c.标-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007f4b3-⋢\u200c.标-', strict=True) + + def test_uts46_6070(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007f4b3-⋢\u200c.标-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007f4b3-⋢\u200c.标-', strict=True) + + def test_uts46_6071(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007f4b3-⋢\u200c.标-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007f4b3-⋢\u200c.标-', strict=True) + + def test_uts46_6072(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007f4b3-⋢\u200c.标-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007f4b3-⋢\u200c.标-', strict=True) + + def test_uts46_6073(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----9mo67451g.xn----qj7b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----9mo67451g.xn----qj7b', strict=True) + + def test_uts46_6074(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----sgn90kn5663a.xn----qj7b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----sgn90kn5663a.xn----qj7b', strict=True) + + def test_uts46_6075(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٱ.ςߜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٱ.ςߜ', strict=True) + + def test_uts46_6076(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٱ.ςߜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٱ.ςߜ', strict=True) + + def test_uts46_6077(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٱ.Σߜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٱ.Σߜ', strict=True) + + def test_uts46_6078(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٱ.σߜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٱ.σߜ', strict=True) + + def test_uts46_6079(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qib.xn--4xa21s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qib.xn--4xa21s', strict=True) + + def test_uts46_6080(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--qib.xn--3xa41s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--qib.xn--3xa41s', strict=True) + + def test_uts46_6081(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٱ.Σߜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٱ.Σߜ', strict=True) + + def test_uts46_6082(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٱ.σߜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٱ.σߜ', strict=True) + + def test_uts46_6083(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007c236\u0605.ࣁ\u200d𑑂𱼱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007c236\u0605.ࣁ\u200d𑑂𱼱', strict=True) + + def test_uts46_6084(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007c236\u0605.ࣁ\u200d𑑂𱼱', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007c236\u0605.ࣁ\u200d𑑂𱼱', strict=True) + + def test_uts46_6085(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nfb17942h.xn--nzb6708kx3pn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nfb17942h.xn--nzb6708kx3pn', strict=True) + + def test_uts46_6086(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nfb17942h.xn--nzb240jv06otevq', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nfb17942h.xn--nzb240jv06otevq', strict=True) + + def test_uts46_6087(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹾𐋩\U0001ed5c。᯲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹾𐋩\U0001ed5c。᯲', strict=True) + + def test_uts46_6088(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹾𐋩\U0001ed5c。᯲', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹾𐋩\U0001ed5c。᯲', strict=True) + + def test_uts46_6089(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--d97cn8rn44p.xn--0zf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--d97cn8rn44p.xn--0zf', strict=True) + + def test_uts46_6090(self): + self.assertRaises(idna.IDNAError, idna.decode, '6ᅠᰳ\U000e0e27.\U0009f70a锰ܬς', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6ᅠᰳ\U000e0e27.\U0009f70a锰ܬς', strict=True) + + def test_uts46_6091(self): + self.assertRaises(idna.IDNAError, idna.decode, '6ᅠᰳ\U000e0e27.\U0009f70a锰ܬΣ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6ᅠᰳ\U000e0e27.\U0009f70a锰ܬΣ', strict=True) + + def test_uts46_6092(self): + self.assertRaises(idna.IDNAError, idna.decode, '6ᅠᰳ\U000e0e27.\U0009f70a锰ܬσ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '6ᅠᰳ\U000e0e27.\U0009f70a锰ܬσ', strict=True) + + def test_uts46_6093(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-iuly4983p.xn--4xa95ohw6pk078g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-iuly4983p.xn--4xa95ohw6pk078g', strict=True) + + def test_uts46_6094(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-iuly4983p.xn--3xa16ohw6pk078g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-iuly4983p.xn--3xa16ohw6pk078g', strict=True) + + def test_uts46_6095(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-5bh476ewr517a.xn--4xa95ohw6pk078g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-5bh476ewr517a.xn--4xa95ohw6pk078g', strict=True) + + def test_uts46_6096(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-5bh476ewr517a.xn--3xa16ohw6pk078g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-5bh476ewr517a.xn--3xa16ohw6pk078g', strict=True) + + def test_uts46_6097(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڳ︄\U000453a6𝟽。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڳ︄\U000453a6𝟽。𐹽', strict=True) + + def test_uts46_6098(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ڳ︄\U000453a67。𐹽', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ڳ︄\U000453a67。𐹽', strict=True) + + def test_uts46_6099(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7-yuc34665f.xn--1o0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7-yuc34665f.xn--1o0d', strict=True) + + def test_uts46_6100(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001eba7.\u200c⫞', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001eba7.\u200c⫞', strict=True) + + def test_uts46_6101(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001eba7.\u200c⫞', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001eba7.\u200c⫞', strict=True) + + def test_uts46_6102(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pw6h.xn--53i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pw6h.xn--53i', strict=True) + + def test_uts46_6103(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pw6h.xn--0ug283b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pw6h.xn--0ug283b', strict=True) + + def test_uts46_6104(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\U00055274.۠ᢚ-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\U00055274.۠ᢚ-', strict=True) + + def test_uts46_6105(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----qi38c.xn----jxc827k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----qi38c.xn----jxc827k', strict=True) + + def test_uts46_6106(self): + self.assertRaises(idna.IDNAError, idna.decode, '⌁\u200d𑄴.\u200c𝟩٬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⌁\u200d𑄴.\u200c𝟩٬', strict=True) + + def test_uts46_6107(self): + self.assertRaises(idna.IDNAError, idna.decode, '⌁\u200d𑄴.\u200c7٬', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '⌁\u200d𑄴.\u200c7٬', strict=True) + + def test_uts46_6108(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nhh5394g.xn--7-xqc', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nhh5394g.xn--7-xqc', strict=True) + + def test_uts46_6109(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug38i2093a.xn--7-xqc297q', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug38i2093a.xn--7-xqc297q', strict=True) + + def test_uts46_6110(self): + self.assertRaises(idna.IDNAError, idna.decode, '︒ﴅืﻼ。岓᯲\U000e0f83ᡂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '︒ﴅืﻼ。岓᯲\U000e0f83ᡂ', strict=True) + + def test_uts46_6111(self): + self.assertRaises(idna.IDNAError, idna.decode, '。صىืلا。岓᯲\U000e0f83ᡂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '。صىืلا。岓᯲\U000e0f83ᡂ', strict=True) + + def test_uts46_6112(self): + self.assertRaises(idna.IDNAError, idna.decode, '.xn--mgb1a7bt462h.xn--17e10qe61f9r71s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '.xn--mgb1a7bt462h.xn--17e10qe61f9r71s', strict=True) + + def test_uts46_6113(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mgb1a7bt462hf267a.xn--17e10qe61f9r71s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mgb1a7bt462hf267a.xn--17e10qe61f9r71s', strict=True) + + def test_uts46_6114(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹨。8𑁆', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹨。8𑁆', strict=True) + + def test_uts46_6115(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--go0d.xn--8-yu7i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--go0d.xn--8-yu7i', strict=True) + + def test_uts46_6116(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞀕ൃ.ꡚࣺ𐹰ൄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞀕ൃ.ꡚࣺ𐹰ൄ', strict=True) + + def test_uts46_6117(self): + self.assertRaises(idna.IDNAError, idna.decode, '𞀕ൃ.ꡚࣺ𐹰ൄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𞀕ൃ.ꡚࣺ𐹰ൄ', strict=True) + + def test_uts46_6118(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--mxc5210v.xn--90b01t8u2p1ltd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--mxc5210v.xn--90b01t8u2p1ltd', strict=True) + + def test_uts46_6119(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c6a4f\U000109b9̃。\U000e0345', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c6a4f\U000109b9̃。\U000e0345', strict=True) + + def test_uts46_6120(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c6a4f\U000109b9̃。\U000e0345', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c6a4f\U000109b9̃。\U000e0345', strict=True) + + def test_uts46_6121(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--nsa1265kp9z9e.xn--xt36e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--nsa1265kp9z9e.xn--xt36e', strict=True) + + def test_uts46_6122(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢌ.-࡚', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢌ.-࡚', strict=True) + + def test_uts46_6123(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢌ.-࡚', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢌ.-࡚', strict=True) + + def test_uts46_6124(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--59e.xn----5jd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--59e.xn----5jd', strict=True) + + def test_uts46_6125(self): + self.assertRaises(idna.IDNAError, idna.decode, '𥛛𑘶。𐹬\U00010cb8்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𥛛𑘶。𐹬\U00010cb8்', strict=True) + + def test_uts46_6126(self): + self.assertRaises(idna.IDNAError, idna.decode, '𥛛𑘶。𐹬\U00010cb8்', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𥛛𑘶。𐹬\U00010cb8்', strict=True) + + def test_uts46_6127(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--jb2dj685c.xn--xmc5562kmcb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--jb2dj685c.xn--xmc5562kmcb', strict=True) + + def test_uts46_6128(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴐݿ.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴐݿ.\u200c', strict=True) + + def test_uts46_6129(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴐݿ.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴐݿ.\u200c', strict=True) + + def test_uts46_6130(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴐݿ.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴐݿ.\u200c', strict=True) + + def test_uts46_6131(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gqb743q.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gqb743q.', strict=True) + + def test_uts46_6132(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gqb743q.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gqb743q.xn--0ug', strict=True) + + def test_uts46_6133(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴐݿ.\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴐݿ.\u200c', strict=True) + + def test_uts46_6134(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gqb918b.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gqb918b.', strict=True) + + def test_uts46_6135(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gqb918b.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gqb918b.xn--0ug', strict=True) + + def test_uts46_6136(self): + self.assertRaises(idna.IDNAError, idna.decode, '🄅𑲞-⒈。\u200dᠩڥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '🄅𑲞-⒈。\u200dᠩڥ', strict=True) + + def test_uts46_6137(self): + self.assertRaises(idna.IDNAError, idna.decode, '4,𑲞-1.。\u200dᠩڥ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '4,𑲞-1.。\u200dᠩڥ', strict=True) + + def test_uts46_6138(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4,-1-w401a..xn--7jb180g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4,-1-w401a..xn--7jb180g', strict=True) + + def test_uts46_6139(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4,-1-w401a..xn--7jb180gexf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4,-1-w401a..xn--7jb180gexf', strict=True) + + def test_uts46_6140(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4,--je4aw745l.xn--7jb180g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4,--je4aw745l.xn--7jb180g', strict=True) + + def test_uts46_6141(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4,--je4aw745l.xn--7jb180gexf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4,--je4aw745l.xn--7jb180gexf', strict=True) + + def test_uts46_6142(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ecp8796hjtvg.xn--7jb180g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ecp8796hjtvg.xn--7jb180g', strict=True) + + def test_uts46_6143(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ecp8796hjtvg.xn--7jb180gexf', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ecp8796hjtvg.xn--7jb180gexf', strict=True) + + def test_uts46_6144(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00057024。𞤪\U000aefcb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00057024。𞤪\U000aefcb', strict=True) + + def test_uts46_6145(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00057024。𞤈\U000aefcb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00057024。𞤈\U000aefcb', strict=True) + + def test_uts46_6146(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4240a.xn--ie6h83808a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4240a.xn--ie6h83808a', strict=True) + + def test_uts46_6147(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ׁ۲。𐮊٬𝨊鄨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ׁ۲。𐮊٬𝨊鄨', strict=True) + + def test_uts46_6148(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ׁ۲。𐮊٬𝨊鄨', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ׁ۲。𐮊٬𝨊鄨', strict=True) + + def test_uts46_6149(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pdb42d.xn--lib6412enztdwv6h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pdb42d.xn--lib6412enztdwv6h', strict=True) + + def test_uts46_6150(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0001eb73-ꡁ。ᩩ்-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0001eb73-ꡁ。ᩩ்-', strict=True) + + def test_uts46_6151(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----be4e4276f.xn----lze333i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----be4e4276f.xn----lze333i', strict=True) + + def test_uts46_6152(self): + self.assertRaises(idna.IDNAError, idna.decode, '္-\U0001abad🞢.ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '္-\U0001abad🞢.ß', strict=True) + + def test_uts46_6153(self): + self.assertRaises(idna.IDNAError, idna.decode, '္-\U0001abad🞢.ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '္-\U0001abad🞢.ß', strict=True) + + def test_uts46_6154(self): + self.assertRaises(idna.IDNAError, idna.decode, '္-\U0001abad🞢.SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '္-\U0001abad🞢.SS', strict=True) + + def test_uts46_6155(self): + self.assertRaises(idna.IDNAError, idna.decode, '္-\U0001abad🞢.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '္-\U0001abad🞢.ss', strict=True) + + def test_uts46_6156(self): + self.assertRaises(idna.IDNAError, idna.decode, '္-\U0001abad🞢.Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '္-\U0001abad🞢.Ss', strict=True) + + def test_uts46_6157(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----9tg11172akr8b.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----9tg11172akr8b.ss', strict=True) + + def test_uts46_6158(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----9tg11172akr8b.xn--zca', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----9tg11172akr8b.xn--zca', strict=True) + + def test_uts46_6159(self): + self.assertRaises(idna.IDNAError, idna.decode, '္-\U0001abad🞢.SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '္-\U0001abad🞢.SS', strict=True) + + def test_uts46_6160(self): + self.assertRaises(idna.IDNAError, idna.decode, '္-\U0001abad🞢.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '္-\U0001abad🞢.ss', strict=True) + + def test_uts46_6161(self): + self.assertRaises(idna.IDNAError, idna.decode, '္-\U0001abad🞢.Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '္-\U0001abad🞢.Ss', strict=True) + + def test_uts46_6162(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﳲ-\u200c。Ⴟ\u200c␣', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﳲ-\u200c。Ⴟ\u200c␣', strict=True) + + def test_uts46_6163(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ـَّ-\u200c。Ⴟ\u200c␣', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ـَّ-\u200c。Ⴟ\u200c␣', strict=True) + + def test_uts46_6164(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ـَّ-\u200c。ⴟ\u200c␣', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ـَّ-\u200c。ⴟ\u200c␣', strict=True) + + def test_uts46_6165(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----eoc6bm.xn--xph904a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----eoc6bm.xn--xph904a', strict=True) + + def test_uts46_6166(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----eoc6bm0504a.xn--0ug13nd0j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----eoc6bm0504a.xn--0ug13nd0j', strict=True) + + def test_uts46_6167(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ﳲ-\u200c。ⴟ\u200c␣', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ﳲ-\u200c。ⴟ\u200c␣', strict=True) + + def test_uts46_6168(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----eoc6bm.xn--3nd240h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----eoc6bm.xn--3nd240h', strict=True) + + def test_uts46_6169(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----eoc6bm0504a.xn--3nd849e05c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----eoc6bm0504a.xn--3nd849e05c', strict=True) + + def test_uts46_6170(self): + self.assertRaises(idna.IDNAError, idna.decode, '്-\u200d\u200c。\U000657a7₅≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '്-\u200d\u200c。\U000657a7₅≠', strict=True) + + def test_uts46_6171(self): + self.assertRaises(idna.IDNAError, idna.decode, '്-\u200d\u200c。\U000657a7₅≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '്-\u200d\u200c。\U000657a7₅≠', strict=True) + + def test_uts46_6172(self): + self.assertRaises(idna.IDNAError, idna.decode, '്-\u200d\u200c。\U000657a75≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '്-\u200d\u200c。\U000657a75≠', strict=True) + + def test_uts46_6173(self): + self.assertRaises(idna.IDNAError, idna.decode, '്-\u200d\u200c。\U000657a75≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '്-\u200d\u200c。\U000657a75≠', strict=True) + + def test_uts46_6174(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----jmf.xn--5-ufo50192e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----jmf.xn--5-ufo50192e', strict=True) + + def test_uts46_6175(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----jmf215lda.xn--5-ufo50192e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----jmf215lda.xn--5-ufo50192e', strict=True) + + def test_uts46_6176(self): + self.assertRaises(idna.IDNAError, idna.decode, '锣。੍\U000e063b\U000e0686', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '锣。੍\U000e063b\U000e0686', strict=True) + + def test_uts46_6177(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gc5a.xn--ybc83044ppga', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gc5a.xn--ybc83044ppga', strict=True) + + def test_uts46_6178(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ؽ𑈾.ى\u200d꤫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ؽ𑈾.ى\u200d꤫', strict=True) + + def test_uts46_6179(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ؽ𑈾.ى\u200d꤫', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ؽ𑈾.ى\u200d꤫', strict=True) + + def test_uts46_6180(self): + self.assertEqual(idna.decode('xn--8gb2338k.xn--lhb0154f', uts46=True, strict=True), 'ؽ𑈾.ى꤫') + self.assertEqual(idna.encode('xn--8gb2338k.xn--lhb0154f', uts46=True, strict=True), b'xn--8gb2338k.xn--lhb0154f') + + def test_uts46_6181(self): + self.assertEqual(idna.decode('ؽ𑈾.ى꤫', uts46=True, strict=True), 'ؽ𑈾.ى꤫') + self.assertEqual(idna.encode('ؽ𑈾.ى꤫', uts46=True, strict=True), b'xn--8gb2338k.xn--lhb0154f') + + def test_uts46_6182(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8gb2338k.xn--lhb603k060h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8gb2338k.xn--lhb603k060h', strict=True) + + def test_uts46_6183(self): + self.assertRaises(idna.IDNAError, idna.decode, '٦⁴Ⴅ.ࢽ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٦⁴Ⴅ.ࢽ\u200c', strict=True) + + def test_uts46_6184(self): + self.assertRaises(idna.IDNAError, idna.decode, '٦4Ⴅ.ࢽ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٦4Ⴅ.ࢽ\u200c', strict=True) + + def test_uts46_6185(self): + self.assertRaises(idna.IDNAError, idna.decode, '٦4ⴅ.ࢽ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٦4ⴅ.ࢽ\u200c', strict=True) + + def test_uts46_6186(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-kqc6770a.xn--jzb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-kqc6770a.xn--jzb', strict=True) + + def test_uts46_6187(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-kqc6770a.xn--jzb840j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-kqc6770a.xn--jzb840j', strict=True) + + def test_uts46_6188(self): + self.assertRaises(idna.IDNAError, idna.decode, '٦⁴ⴅ.ࢽ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '٦⁴ⴅ.ࢽ\u200c', strict=True) + + def test_uts46_6189(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-kqc489e.xn--jzb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-kqc489e.xn--jzb', strict=True) + + def test_uts46_6190(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4-kqc489e.xn--jzb840j', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4-kqc489e.xn--jzb840j', strict=True) + + def test_uts46_6191(self): + self.assertEqual(idna.decode('ჁႱ6̘。ßᬃ', uts46=True, strict=True), 'ⴡⴑ6̘.ßᬃ') + self.assertEqual(idna.encode('ჁႱ6̘。ßᬃ', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--zca894k') + + def test_uts46_6192(self): + self.assertEqual(idna.decode('ⴡⴑ6̘。ßᬃ', uts46=True, strict=True), 'ⴡⴑ6̘.ßᬃ') + self.assertEqual(idna.encode('ⴡⴑ6̘。ßᬃ', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--zca894k') + + def test_uts46_6193(self): + self.assertEqual(idna.decode('ჁႱ6̘。SSᬃ', uts46=True, strict=True), 'ⴡⴑ6̘.ssᬃ') + self.assertEqual(idna.encode('ჁႱ6̘。SSᬃ', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--ss-2vq') + + def test_uts46_6194(self): + self.assertEqual(idna.decode('ⴡⴑ6̘。ssᬃ', uts46=True, strict=True), 'ⴡⴑ6̘.ssᬃ') + self.assertEqual(idna.encode('ⴡⴑ6̘。ssᬃ', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--ss-2vq') + + def test_uts46_6195(self): + self.assertEqual(idna.decode('Ⴡⴑ6̘。Ssᬃ', uts46=True, strict=True), 'ⴡⴑ6̘.ssᬃ') + self.assertEqual(idna.encode('Ⴡⴑ6̘。Ssᬃ', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--ss-2vq') + + def test_uts46_6196(self): + self.assertEqual(idna.decode('xn--6-8cb7433a2ba.xn--ss-2vq', uts46=True, strict=True), 'ⴡⴑ6̘.ssᬃ') + self.assertEqual(idna.encode('xn--6-8cb7433a2ba.xn--ss-2vq', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--ss-2vq') + + def test_uts46_6197(self): + self.assertEqual(idna.decode('ⴡⴑ6̘.ssᬃ', uts46=True, strict=True), 'ⴡⴑ6̘.ssᬃ') + self.assertEqual(idna.encode('ⴡⴑ6̘.ssᬃ', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--ss-2vq') + + def test_uts46_6198(self): + self.assertEqual(idna.decode('ჁႱ6̘.SSᬃ', uts46=True, strict=True), 'ⴡⴑ6̘.ssᬃ') + self.assertEqual(idna.encode('ჁႱ6̘.SSᬃ', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--ss-2vq') + + def test_uts46_6199(self): + self.assertEqual(idna.decode('Ⴡⴑ6̘.Ssᬃ', uts46=True, strict=True), 'ⴡⴑ6̘.ssᬃ') + self.assertEqual(idna.encode('Ⴡⴑ6̘.Ssᬃ', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--ss-2vq') + + def test_uts46_6200(self): + self.assertEqual(idna.decode('xn--6-8cb7433a2ba.xn--zca894k', uts46=True, strict=True), 'ⴡⴑ6̘.ßᬃ') + self.assertEqual(idna.encode('xn--6-8cb7433a2ba.xn--zca894k', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--zca894k') + + def test_uts46_6201(self): + self.assertEqual(idna.decode('ⴡⴑ6̘.ßᬃ', uts46=True, strict=True), 'ⴡⴑ6̘.ßᬃ') + self.assertEqual(idna.encode('ⴡⴑ6̘.ßᬃ', uts46=True, strict=True), b'xn--6-8cb7433a2ba.xn--zca894k') + + def test_uts46_6202(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-8cb306hms1a.xn--ss-2vq', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-8cb306hms1a.xn--ss-2vq', strict=True) + + def test_uts46_6203(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-8cb555h2b.xn--ss-2vq', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-8cb555h2b.xn--ss-2vq', strict=True) + + def test_uts46_6204(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--6-8cb555h2b.xn--zca894k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--6-8cb555h2b.xn--zca894k', strict=True) + + def test_uts46_6205(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008b850。≯𑋪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008b850。≯𑋪', strict=True) + + def test_uts46_6206(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008b850。≯𑋪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008b850。≯𑋪', strict=True) + + def test_uts46_6207(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008b850。≯𑋪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008b850。≯𑋪', strict=True) + + def test_uts46_6208(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0008b850。≯𑋪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0008b850。≯𑋪', strict=True) + + def test_uts46_6209(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--eo08b.xn--hdh3385g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--eo08b.xn--hdh3385g', strict=True) + + def test_uts46_6210(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ٚ۲。\u200c-᯳\u08e2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ٚ۲。\u200c-᯳\u08e2', strict=True) + + def test_uts46_6211(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2hb81a.xn----xrd657l', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2hb81a.xn----xrd657l', strict=True) + + def test_uts46_6212(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2hb81a.xn----xrd657l30d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2hb81a.xn----xrd657l30d', strict=True) + + def test_uts46_6213(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄏𖬴\U000e0cbd。ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄏𖬴\U000e0cbd。ᅠ', strict=True) + + def test_uts46_6214(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠄏𖬴\U000e0cbd。ᅠ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠄏𖬴\U000e0cbd。ᅠ', strict=True) + + def test_uts46_6215(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--619ep9154c.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--619ep9154c.', strict=True) + + def test_uts46_6216(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--619ep9154c.xn--psd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--619ep9154c.xn--psd', strict=True) + + def test_uts46_6217(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--619ep9154c.xn--cl7c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--619ep9154c.xn--cl7c', strict=True) + + def test_uts46_6218(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß⒈ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß⒈ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + + def test_uts46_6219(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ß1.ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ß1.ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + + def test_uts46_6220(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS1.ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS1.ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + + def test_uts46_6221(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss1.ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss1.ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + + def test_uts46_6222(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss1.ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss1.ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + + def test_uts46_6223(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss1.xn--kpb6677h.xn--nfb09923ifkyyb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss1.xn--kpb6677h.xn--nfb09923ifkyyb', strict=True) + + def test_uts46_6224(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-pfa.xn--kpb6677h.xn--nfb09923ifkyyb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-pfa.xn--kpb6677h.xn--nfb09923ifkyyb', strict=True) + + def test_uts46_6225(self): + self.assertRaises(idna.IDNAError, idna.decode, 'SS⒈ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'SS⒈ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + + def test_uts46_6226(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ss⒈ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ss⒈ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + + def test_uts46_6227(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ss⒈ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ss⒈ݠ\ud7ae.\U001095b2󠅄\u0605\U0008952f', strict=True) + + def test_uts46_6228(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ss-6ke9690a0g1q.xn--nfb09923ifkyyb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ss-6ke9690a0g1q.xn--nfb09923ifkyyb', strict=True) + + def test_uts46_6229(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--zca444a0s1ao12n.xn--nfb09923ifkyyb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--zca444a0s1ao12n.xn--nfb09923ifkyyb', strict=True) + + def test_uts46_6230(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0b54.𐋱₂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0b54.𐋱₂', strict=True) + + def test_uts46_6231(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0b54.𐋱2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0b54.𐋱2', strict=True) + + def test_uts46_6232(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--vi56e.xn--2-w91i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--vi56e.xn--2-w91i', strict=True) + + def test_uts46_6233(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܖे。-ßڥ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܖे。-ßڥ\u200c', strict=True) + + def test_uts46_6234(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܖे。-SSڥ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܖे。-SSڥ\u200c', strict=True) + + def test_uts46_6235(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܖे。-ssڥ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܖे。-ssڥ\u200c', strict=True) + + def test_uts46_6236(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ܖे。-Ssڥ\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ܖे。-Ssڥ\u200c', strict=True) + + def test_uts46_6237(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gnb63i.xn---ss-4ef', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gnb63i.xn---ss-4ef', strict=True) + + def test_uts46_6238(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gnb63i.xn---ss-4ef9263a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gnb63i.xn---ss-4ef9263a', strict=True) + + def test_uts46_6239(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gnb63i.xn----qfa845bhx4a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gnb63i.xn----qfa845bhx4a', strict=True) + + def test_uts46_6240(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᮩ\u200dت\U00061688.᳕䷉Ⴡ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᮩ\u200dت\U00061688.᳕䷉Ⴡ', strict=True) + + def test_uts46_6241(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᮩ\u200dت\U00061688.᳕䷉Ⴡ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᮩ\u200dت\U00061688.᳕䷉Ⴡ', strict=True) + + def test_uts46_6242(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᮩ\u200dت\U00061688.᳕䷉ⴡ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᮩ\u200dت\U00061688.᳕䷉ⴡ', strict=True) + + def test_uts46_6243(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pgb911izv33i.xn--i6f270etuy', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pgb911izv33i.xn--i6f270etuy', strict=True) + + def test_uts46_6244(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pgb911imgdrw34r.xn--i6f270etuy', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pgb911imgdrw34r.xn--i6f270etuy', strict=True) + + def test_uts46_6245(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᮩ\u200dت\U00061688.᳕䷉ⴡ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᮩ\u200dت\U00061688.᳕䷉ⴡ', strict=True) + + def test_uts46_6246(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pgb911izv33i.xn--5nd792dgv3b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pgb911izv33i.xn--5nd792dgv3b', strict=True) + + def test_uts46_6247(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--pgb911imgdrw34r.xn--5nd792dgv3b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--pgb911imgdrw34r.xn--5nd792dgv3b', strict=True) + + def test_uts46_6248(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u2dbf.ß\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u2dbf.ß\u200d', strict=True) + + def test_uts46_6249(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u2dbf.SS\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u2dbf.SS\u200d', strict=True) + + def test_uts46_6250(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u2dbf.ss\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u2dbf.ss\u200d', strict=True) + + def test_uts46_6251(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u2dbf.Ss\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u2dbf.Ss\u200d', strict=True) + + def test_uts46_6252(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7pj.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7pj.ss', strict=True) + + def test_uts46_6253(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7pj.xn--ss-n1t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7pj.xn--ss-n1t', strict=True) + + def test_uts46_6254(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7pj.xn--zca870n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7pj.xn--zca870n', strict=True) + + def test_uts46_6255(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳︒.ت≯ꡂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳︒.ت≯ꡂ', strict=True) + + def test_uts46_6256(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳︒.ت≯ꡂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳︒.ت≯ꡂ', strict=True) + + def test_uts46_6257(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳。.ت≯ꡂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳。.ت≯ꡂ', strict=True) + + def test_uts46_6258(self): + self.assertRaises(idna.IDNAError, idna.decode, '᯳。.ت≯ꡂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '᯳。.ت≯ꡂ', strict=True) + + def test_uts46_6259(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1zf..xn--pgb885lry5g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1zf..xn--pgb885lry5g', strict=True) + + def test_uts46_6260(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1zf8957g.xn--pgb885lry5g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1zf8957g.xn--pgb885lry5g', strict=True) + + def test_uts46_6261(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮≠\U0004fec3。-𫠆ڷ𐹪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮≠\U0004fec3。-𫠆ڷ𐹪', strict=True) + + def test_uts46_6262(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮≠\U0004fec3。-𫠆ڷ𐹪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮≠\U0004fec3。-𫠆ڷ𐹪', strict=True) + + def test_uts46_6263(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮≠\U0004fec3。-𫠆ڷ𐹪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮≠\U0004fec3。-𫠆ڷ𐹪', strict=True) + + def test_uts46_6264(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮≠\U0004fec3。-𫠆ڷ𐹪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮≠\U0004fec3。-𫠆ڷ𐹪', strict=True) + + def test_uts46_6265(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ch1a29470f.xn----7uc5363rc1rn', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ch1a29470f.xn----7uc5363rc1rn', strict=True) + + def test_uts46_6266(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹡ݷ。ꡂ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹡ݷ。ꡂ', strict=True) + + def test_uts46_6267(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7pb5275k.xn--bc9a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7pb5275k.xn--bc9a', strict=True) + + def test_uts46_6268(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴉ𝆅\U00054ec5ؙ.ß𐧦𐹳ݵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴉ𝆅\U00054ec5ؙ.ß𐧦𐹳ݵ', strict=True) + + def test_uts46_6269(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴉ𝆅\U00054ec5ؙ.ß𐧦𐹳ݵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴉ𝆅\U00054ec5ؙ.ß𐧦𐹳ݵ', strict=True) + + def test_uts46_6270(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴉ𝆅\U00054ec5ؙ.SS𐧦𐹳ݵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴉ𝆅\U00054ec5ؙ.SS𐧦𐹳ݵ', strict=True) + + def test_uts46_6271(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ⴉ𝆅\U00054ec5ؙ.ss𐧦𐹳ݵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ⴉ𝆅\U00054ec5ؙ.ss𐧦𐹳ݵ', strict=True) + + def test_uts46_6272(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Ⴉ𝆅\U00054ec5ؙ.Ss𐧦𐹳ݵ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Ⴉ𝆅\U00054ec5ؙ.Ss𐧦𐹳ݵ', strict=True) + + def test_uts46_6273(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7fb940rwt3z7xvz.xn--ss-zme7575xp0e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7fb940rwt3z7xvz.xn--ss-zme7575xp0e', strict=True) + + def test_uts46_6274(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7fb940rwt3z7xvz.xn--zca684a699vf2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7fb940rwt3z7xvz.xn--zca684a699vf2d', strict=True) + + def test_uts46_6275(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7fb125cjv87a7xvz.xn--ss-zme7575xp0e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7fb125cjv87a7xvz.xn--ss-zme7575xp0e', strict=True) + + def test_uts46_6276(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7fb125cjv87a7xvz.xn--zca684a699vf2d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7fb125cjv87a7xvz.xn--zca684a699vf2d', strict=True) + + def test_uts46_6277(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200dك𐧾↙.\U0004af61', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200dك𐧾↙.\U0004af61', strict=True) + + def test_uts46_6278(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fhb011lnp8n.xn--7s4w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fhb011lnp8n.xn--7s4w', strict=True) + + def test_uts46_6279(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fhb713k87ag053c.xn--7s4w', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fhb713k87ag053c.xn--7s4w', strict=True) + + def test_uts46_6280(self): + self.assertRaises(idna.IDNAError, idna.decode, '梉。\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '梉。\u200c', strict=True) + + def test_uts46_6283(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--7zv.xn--0ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--7zv.xn--0ug', strict=True) + + def test_uts46_6284(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡣ-≠.\u200d𞤗𐅢Ↄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡣ-≠.\u200d𞤗𐅢Ↄ', strict=True) + + def test_uts46_6285(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡣ-≠.\u200d𞤗𐅢Ↄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡣ-≠.\u200d𞤗𐅢Ↄ', strict=True) + + def test_uts46_6286(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡣ-≠.\u200d𞤹𐅢ↄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡣ-≠.\u200d𞤹𐅢ↄ', strict=True) + + def test_uts46_6287(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡣ-≠.\u200d𞤹𐅢ↄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡣ-≠.\u200d𞤹𐅢ↄ', strict=True) + + def test_uts46_6288(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡣ-≠.\u200d𞤗𐅢ↄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡣ-≠.\u200d𞤗𐅢ↄ', strict=True) + + def test_uts46_6289(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꡣ-≠.\u200d𞤗𐅢ↄ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꡣ-≠.\u200d𞤗𐅢ↄ', strict=True) + + def test_uts46_6290(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ufo9661d.xn--r5gy929fhm4f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ufo9661d.xn--r5gy929fhm4f', strict=True) + + def test_uts46_6291(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ufo9661d.xn--1ug99cj620c71sh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ufo9661d.xn--1ug99cj620c71sh', strict=True) + + def test_uts46_6292(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ufo9661d.xn--q5g0929fhm4f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ufo9661d.xn--q5g0929fhm4f', strict=True) + + def test_uts46_6293(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ufo9661d.xn--1ug79cm620c71sh', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ufo9661d.xn--1ug79cm620c71sh', strict=True) + + def test_uts46_6294(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς⒐𝆫⸵。\U00010c62🄊𝟳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς⒐𝆫⸵。\U00010c62🄊𝟳', strict=True) + + def test_uts46_6295(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς9.𝆫⸵。\U00010c629,7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς9.𝆫⸵。\U00010c629,7', strict=True) + + def test_uts46_6296(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ9.𝆫⸵。\U00010c629,7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ9.𝆫⸵。\U00010c629,7', strict=True) + + def test_uts46_6297(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ9.𝆫⸵。\U00010c629,7', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ9.𝆫⸵。\U00010c629,7', strict=True) + + def test_uts46_6298(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-zmb.xn--ltj1535k.xn--9,7-r67t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-zmb.xn--ltj1535k.xn--9,7-r67t', strict=True) + + def test_uts46_6299(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--9-xmb.xn--ltj1535k.xn--9,7-r67t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--9-xmb.xn--ltj1535k.xn--9,7-r67t', strict=True) + + def test_uts46_6300(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ⒐𝆫⸵。\U00010c62🄊𝟳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ⒐𝆫⸵。\U00010c62🄊𝟳', strict=True) + + def test_uts46_6301(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ⒐𝆫⸵。\U00010c62🄊𝟳', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ⒐𝆫⸵。\U00010c62🄊𝟳', strict=True) + + def test_uts46_6302(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa809nwtghi25b.xn--9,7-r67t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa809nwtghi25b.xn--9,7-r67t', strict=True) + + def test_uts46_6303(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa019nwtghi25b.xn--9,7-r67t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa019nwtghi25b.xn--9,7-r67t', strict=True) + + def test_uts46_6304(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa809nwtghi25b.xn--7-075iy877c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa809nwtghi25b.xn--7-075iy877c', strict=True) + + def test_uts46_6305(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa019nwtghi25b.xn--7-075iy877c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa019nwtghi25b.xn--7-075iy877c', strict=True) + + def test_uts46_6306(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡓ.\u200cß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡓ.\u200cß', strict=True) + + def test_uts46_6307(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡓ.\u200cß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡓ.\u200cß', strict=True) + + def test_uts46_6308(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡓ.\u200cSS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡓ.\u200cSS', strict=True) + + def test_uts46_6309(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡓ.\u200css', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡓ.\u200css', strict=True) + + def test_uts46_6310(self): + self.assertEqual(idna.decode('xn--iwb.ss', uts46=True, strict=True), 'ࡓ.ss') + self.assertEqual(idna.encode('xn--iwb.ss', uts46=True, strict=True), b'xn--iwb.ss') + + def test_uts46_6311(self): + self.assertEqual(idna.decode('ࡓ.ss', uts46=True, strict=True), 'ࡓ.ss') + self.assertEqual(idna.encode('ࡓ.ss', uts46=True, strict=True), b'xn--iwb.ss') + + def test_uts46_6312(self): + self.assertEqual(idna.decode('ࡓ.SS', uts46=True, strict=True), 'ࡓ.ss') + self.assertEqual(idna.encode('ࡓ.SS', uts46=True, strict=True), b'xn--iwb.ss') + + def test_uts46_6313(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iwb.xn--ss-i1t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iwb.xn--ss-i1t', strict=True) + + def test_uts46_6314(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--iwb.xn--zca570n', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--iwb.xn--zca570n', strict=True) + + def test_uts46_6315(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡓ.\u200cSS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡓ.\u200cSS', strict=True) + + def test_uts46_6316(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡓ.\u200css', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡓ.\u200css', strict=True) + + def test_uts46_6317(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡓ.\u200cSs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡓ.\u200cSs', strict=True) + + def test_uts46_6318(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ࡓ.\u200cSs', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ࡓ.\u200cSs', strict=True) + + def test_uts46_6319(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0006fda3-.\u200dݎꥍ\U000e0ee8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0006fda3-.\u200dݎꥍ\U000e0ee8', strict=True) + + def test_uts46_6320(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----s116e.xn--1ob6504fmf40i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----s116e.xn--1ob6504fmf40i', strict=True) + + def test_uts46_6321(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----s116e.xn--1ob387jy90hq459k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----s116e.xn--1ob387jy90hq459k', strict=True) + + def test_uts46_6322(self): + self.assertRaises(idna.IDNAError, idna.decode, '䃚蟥-。-\U0007d498⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䃚蟥-。-\U0007d498⒈', strict=True) + + def test_uts46_6323(self): + self.assertRaises(idna.IDNAError, idna.decode, '䃚蟥-。-\U0007d4981.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '䃚蟥-。-\U0007d4981.', strict=True) + + def test_uts46_6324(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----n50a258u.xn---1-up07j.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----n50a258u.xn---1-up07j.', strict=True) + + def test_uts46_6325(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----n50a258u.xn----ecp33805f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----n50a258u.xn----ecp33805f', strict=True) + + def test_uts46_6326(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹸䚵-ꡡ。⺇', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹸䚵-ꡡ。⺇', strict=True) + + def test_uts46_6327(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----bm3an932a1l5d.xn--xvj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----bm3an932a1l5d.xn--xvj', strict=True) + + def test_uts46_6328(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑄳。\u1adc𐹻', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑄳。\u1adc𐹻', strict=True) + + def test_uts46_6329(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--v80d.xn--2rf1154i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--v80d.xn--2rf1154i', strict=True) + + def test_uts46_6330(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𐹻.⒎𑂵ں\u0602', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𐹻.⒎𑂵ں\u0602', strict=True) + + def test_uts46_6331(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𐹻.⒎𑂵ں\u0602', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𐹻.⒎𑂵ں\u0602', strict=True) + + def test_uts46_6332(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𐹻.7.𑂵ں\u0602', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𐹻.7.𑂵ں\u0602', strict=True) + + def test_uts46_6333(self): + self.assertRaises(idna.IDNAError, idna.decode, '≮𐹻.7.𑂵ں\u0602', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≮𐹻.7.𑂵ں\u0602', strict=True) + + def test_uts46_6334(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdhx904g.7.xn--kfb18an307d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdhx904g.7.xn--kfb18an307d', strict=True) + + def test_uts46_6335(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdhx904g.xn--kfb18a325efm3s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdhx904g.xn--kfb18a325efm3s', strict=True) + + def test_uts46_6336(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢔ≠\U0010b242.\u200d𐋢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢔ≠\U0010b242.\u200d𐋢', strict=True) + + def test_uts46_6337(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ᢔ≠\U0010b242.\u200d𐋢', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ᢔ≠\U0010b242.\u200d𐋢', strict=True) + + def test_uts46_6338(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ebf031cf7196a.xn--587c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ebf031cf7196a.xn--587c', strict=True) + + def test_uts46_6339(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ebf031cf7196a.xn--1ug9540g', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ebf031cf7196a.xn--1ug9540g', strict=True) + + def test_uts46_6340(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩁≮\U0006329b≯.٬\U0001ed55⳿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩁≮\U0006329b≯.٬\U0001ed55⳿', strict=True) + + def test_uts46_6341(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩁≮\U0006329b≯.٬\U0001ed55⳿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩁≮\U0006329b≯.٬\U0001ed55⳿', strict=True) + + def test_uts46_6342(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩁≮\U0006329b≯.٬\U0001ed55⳿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩁≮\U0006329b≯.٬\U0001ed55⳿', strict=True) + + def test_uts46_6343(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐩁≮\U0006329b≯.٬\U0001ed55⳿', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐩁≮\U0006329b≯.٬\U0001ed55⳿', strict=True) + + def test_uts46_6344(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdhc0519o0y27b.xn--lib468q0d21a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdhc0519o0y27b.xn--lib468q0d21a', strict=True) + + def test_uts46_6345(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。⺐', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。⺐', strict=True) + + def test_uts46_6346(self): + self.assertRaises(idna.IDNAError, idna.decode, '-。⺐', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-。⺐', strict=True) + + def test_uts46_6347(self): + self.assertRaises(idna.IDNAError, idna.decode, '-.xn--6vj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-.xn--6vj', strict=True) + + def test_uts46_6348(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0c29𑲬.ٜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0c29𑲬.ٜ', strict=True) + + def test_uts46_6349(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000e0c29𑲬.ٜ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000e0c29𑲬.ٜ', strict=True) + + def test_uts46_6350(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--sn3d59267c.xn--4hb', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--sn3d59267c.xn--4hb', strict=True) + + def test_uts46_6351(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐍺.\U0005a1c3\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐍺.\U0005a1c3\u200c', strict=True) + + def test_uts46_6352(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ie8c.xn--2g51a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ie8c.xn--2g51a', strict=True) + + def test_uts46_6353(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--ie8c.xn--0ug03366c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--ie8c.xn--0ug03366c', strict=True) + + def test_uts46_6354(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ؽۣ.𐨎', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ؽۣ.𐨎', strict=True) + + def test_uts46_6355(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8gb64a.xn--mr9c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8gb64a.xn--mr9c', strict=True) + + def test_uts46_6356(self): + self.assertRaises(idna.IDNAError, idna.decode, '漦Ⴙς.\U00061ec0𐴄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '漦Ⴙς.\U00061ec0𐴄', strict=True) + + def test_uts46_6357(self): + self.assertRaises(idna.IDNAError, idna.decode, '漦ⴙς.\U00061ec0𐴄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '漦ⴙς.\U00061ec0𐴄', strict=True) + + def test_uts46_6358(self): + self.assertRaises(idna.IDNAError, idna.decode, '漦ႹΣ.\U00061ec0𐴄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '漦ႹΣ.\U00061ec0𐴄', strict=True) + + def test_uts46_6359(self): + self.assertRaises(idna.IDNAError, idna.decode, '漦ⴙσ.\U00061ec0𐴄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '漦ⴙσ.\U00061ec0𐴄', strict=True) + + def test_uts46_6360(self): + self.assertRaises(idna.IDNAError, idna.decode, '漦Ⴙσ.\U00061ec0𐴄', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '漦Ⴙσ.\U00061ec0𐴄', strict=True) + + def test_uts46_6361(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa772sl47b.xn--9d0d3162t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa772sl47b.xn--9d0d3162t', strict=True) + + def test_uts46_6362(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa972sl47b.xn--9d0d3162t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa972sl47b.xn--9d0d3162t', strict=True) + + def test_uts46_6363(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa947d717e.xn--9d0d3162t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa947d717e.xn--9d0d3162t', strict=True) + + def test_uts46_6364(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa157d717e.xn--9d0d3162t', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa157d717e.xn--9d0d3162t', strict=True) + + def test_uts46_6365(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹫踧್\U000ab687.\U000dc003⒈𝨤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹫踧್\U000ab687.\U000dc003⒈𝨤', strict=True) + + def test_uts46_6366(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐹫踧್\U000ab687.\U000dc0031.𝨤', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐹫踧್\U000ab687.\U000dc0031.𝨤', strict=True) + + def test_uts46_6367(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8tc1437dro0d6q06h.xn--1-p948l.xn--m82h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8tc1437dro0d6q06h.xn--1-p948l.xn--m82h', strict=True) + + def test_uts46_6368(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8tc1437dro0d6q06h.xn--tsh2611ncu71e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8tc1437dro0d6q06h.xn--tsh2611ncu71e', strict=True) + + def test_uts46_6369(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d≮.\U000e07ea\U00039acf-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d≮.\U000e07ea\U00039acf-', strict=True) + + def test_uts46_6370(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d≮.\U000e07ea\U00039acf-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d≮.\U000e07ea\U00039acf-', strict=True) + + def test_uts46_6371(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d≮.\U000e07ea\U00039acf-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d≮.\U000e07ea\U00039acf-', strict=True) + + def test_uts46_6372(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d≮.\U000e07ea\U00039acf-', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d≮.\U000e07ea\U00039acf-', strict=True) + + def test_uts46_6373(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--gdh.xn----cr99a1w710b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--gdh.xn----cr99a1w710b', strict=True) + + def test_uts46_6374(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug95g.xn----cr99a1w710b', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug95g.xn----cr99a1w710b', strict=True) + + def test_uts46_6375(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200d襔。Ⴜ5ꡮ\U0007574f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200d襔。Ⴜ5ꡮ\U0007574f', strict=True) + + def test_uts46_6376(self): + self.assertRaises(idna.IDNAError, idna.decode, '\u200d\u200d襔。ⴜ5ꡮ\U0007574f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\u200d\u200d襔。ⴜ5ꡮ\U0007574f', strict=True) + + def test_uts46_6377(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2u2a.xn--5-uws5848bpf44e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2u2a.xn--5-uws5848bpf44e', strict=True) + + def test_uts46_6378(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1uga7691f.xn--5-uws5848bpf44e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1uga7691f.xn--5-uws5848bpf44e', strict=True) + + def test_uts46_6379(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2u2a.xn--5-r1g7167ipfw8d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2u2a.xn--5-r1g7167ipfw8d', strict=True) + + def test_uts46_6380(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1uga7691f.xn--5-r1g7167ipfw8d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1uga7691f.xn--5-r1g7167ipfw8d', strict=True) + + def test_uts46_6381(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫜𑌼\u200d.婀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫜𑌼\u200d.婀', strict=True) + + def test_uts46_6382(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐫜𑌼\u200d.婀', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐫜𑌼\u200d.婀', strict=True) + + def test_uts46_6383(self): + self.assertEqual(idna.decode('xn--ix9c26l.xn--q0s', uts46=True, strict=True), '𐫜𑌼.婀') + self.assertEqual(idna.encode('xn--ix9c26l.xn--q0s', uts46=True, strict=True), b'xn--ix9c26l.xn--q0s') + + def test_uts46_6384(self): + self.assertEqual(idna.decode('𐫜𑌼.婀', uts46=True, strict=True), '𐫜𑌼.婀') + self.assertEqual(idna.encode('𐫜𑌼.婀', uts46=True, strict=True), b'xn--ix9c26l.xn--q0s') + + def test_uts46_6385(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ugx063g1if.xn--q0s', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ugx063g1if.xn--q0s', strict=True) + + def test_uts46_6386(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅽︒︒𐹯。⬳᩸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅽︒︒𐹯。⬳᩸', strict=True) + + def test_uts46_6387(self): + self.assertRaises(idna.IDNAError, idna.decode, '󠅽。。𐹯。⬳᩸', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '󠅽。。𐹯。⬳᩸', strict=True) + + def test_uts46_6388(self): + self.assertRaises(idna.IDNAError, idna.decode, '..xn--no0d.xn--7of309e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '..xn--no0d.xn--7of309e', strict=True) + + def test_uts46_6389(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--y86ca186j.xn--7of309e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--y86ca186j.xn--7of309e', strict=True) + + def test_uts46_6390(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟖ß.󠄐-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟖ß.󠄐-?Ⴏ', strict=True) + + def test_uts46_6391(self): + self.assertRaises(idna.IDNAError, idna.decode, '8ß.󠄐-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8ß.󠄐-?Ⴏ', strict=True) + + def test_uts46_6392(self): + self.assertRaises(idna.IDNAError, idna.decode, '8ß.󠄐-?ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8ß.󠄐-?ⴏ', strict=True) + + def test_uts46_6393(self): + self.assertRaises(idna.IDNAError, idna.decode, '8SS.󠄐-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8SS.󠄐-?Ⴏ', strict=True) + + def test_uts46_6394(self): + self.assertRaises(idna.IDNAError, idna.decode, '8ss.󠄐-?ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8ss.󠄐-?ⴏ', strict=True) + + def test_uts46_6395(self): + self.assertRaises(idna.IDNAError, idna.decode, '8ss.󠄐-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8ss.󠄐-?Ⴏ', strict=True) + + def test_uts46_6396(self): + self.assertRaises(idna.IDNAError, idna.decode, '8ss.xn---?-261a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8ss.xn---?-261a', strict=True) + + def test_uts46_6397(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-qfa.xn---?-261a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-qfa.xn---?-261a', strict=True) + + def test_uts46_6398(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟖ß.󠄐-?ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟖ß.󠄐-?ⴏ', strict=True) + + def test_uts46_6399(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟖SS.󠄐-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟖SS.󠄐-?Ⴏ', strict=True) + + def test_uts46_6400(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟖ss.󠄐-?ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟖ss.󠄐-?ⴏ', strict=True) + + def test_uts46_6401(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟖ss.󠄐-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟖ss.󠄐-?Ⴏ', strict=True) + + def test_uts46_6402(self): + self.assertRaises(idna.IDNAError, idna.decode, '8ss.xn---?-gfk', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8ss.xn---?-gfk', strict=True) + + def test_uts46_6403(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-qfa.xn---?-gfk', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-qfa.xn---?-gfk', strict=True) + + def test_uts46_6404(self): + self.assertRaises(idna.IDNAError, idna.decode, '8ss.-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8ss.-?Ⴏ', strict=True) + + def test_uts46_6405(self): + self.assertRaises(idna.IDNAError, idna.decode, '8ss.-?ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8ss.-?ⴏ', strict=True) + + def test_uts46_6406(self): + self.assertRaises(idna.IDNAError, idna.decode, '8SS.-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8SS.-?Ⴏ', strict=True) + + def test_uts46_6407(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-qfa.-?ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-qfa.-?ⴏ', strict=True) + + def test_uts46_6408(self): + self.assertRaises(idna.IDNAError, idna.decode, 'XN--8-QFA.-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'XN--8-QFA.-?Ⴏ', strict=True) + + def test_uts46_6409(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Xn--8-Qfa.-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Xn--8-Qfa.-?Ⴏ', strict=True) + + def test_uts46_6410(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--8-qfa.-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--8-qfa.-?Ⴏ', strict=True) + + def test_uts46_6411(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝟖Ss.󠄐-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝟖Ss.󠄐-?Ⴏ', strict=True) + + def test_uts46_6412(self): + self.assertRaises(idna.IDNAError, idna.decode, '8Ss.󠄐-?Ⴏ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '8Ss.󠄐-?Ⴏ', strict=True) + + def test_uts46_6413(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200d\U000e02df.\u200c𐹣Ⴅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200d\U000e02df.\u200c𐹣Ⴅ', strict=True) + + def test_uts46_6414(self): + self.assertRaises(idna.IDNAError, idna.decode, '-\u200d\U000e02df.\u200c𐹣ⴅ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '-\u200d\U000e02df.\u200c𐹣ⴅ', strict=True) + + def test_uts46_6415(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----s721m.xn--wkj1423e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----s721m.xn--wkj1423e', strict=True) + + def test_uts46_6416(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ugnv7071n.xn--0ugz32cgr0p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ugnv7071n.xn--0ugz32cgr0p', strict=True) + + def test_uts46_6417(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----s721m.xn--dnd9201k', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----s721m.xn--dnd9201k', strict=True) + + def test_uts46_6418(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----ugnv7071n.xn--dnd999e4j4p', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----ugnv7071n.xn--dnd999e4j4p', strict=True) + + def test_uts46_6419(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꦹ\u200d큷\U0003bda1。₂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꦹ\u200d큷\U0003bda1。₂', strict=True) + + def test_uts46_6420(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꦹ\u200d큷\U0003bda1。₂', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꦹ\u200d큷\U0003bda1。₂', strict=True) + + def test_uts46_6421(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꦹ\u200d큷\U0003bda1。2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꦹ\u200d큷\U0003bda1。2', strict=True) + + def test_uts46_6422(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ꦹ\u200d큷\U0003bda1。2', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ꦹ\u200d큷\U0003bda1。2', strict=True) + + def test_uts46_6423(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--0m9as84e2e21c.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--0m9as84e2e21c.c', strict=True) + + def test_uts46_6424(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1ug1435cfkyaoi04d.c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1ug1435cfkyaoi04d.c', strict=True) + + def test_uts46_6425(self): + self.assertRaises(idna.IDNAError, idna.decode, '?.🄄\U0001ebd8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '?.🄄\U0001ebd8', strict=True) + + def test_uts46_6426(self): + self.assertRaises(idna.IDNAError, idna.decode, '?.3,\U0001ebd8', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '?.3,\U0001ebd8', strict=True) + + def test_uts46_6427(self): + self.assertRaises(idna.IDNAError, idna.decode, '?.xn--3,-tb22a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '?.xn--3,-tb22a', strict=True) + + def test_uts46_6428(self): + self.assertRaises(idna.IDNAError, idna.decode, '?.xn--3x6hx6f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '?.xn--3x6hx6f', strict=True) + + def test_uts46_6429(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝨖\U00010a59。\u06dd\U000c0876ꣅ⒈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝨖\U00010a59。\u06dd\U000c0876ꣅ⒈', strict=True) + + def test_uts46_6430(self): + self.assertRaises(idna.IDNAError, idna.decode, '𝨖\U00010a59。\u06dd\U000c0876ꣅ1.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𝨖\U00010a59。\u06dd\U000c0876ꣅ1.', strict=True) + + def test_uts46_6431(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rt9cl956a.xn--1-dxc8545j0693i.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rt9cl956a.xn--1-dxc8545j0693i.', strict=True) + + def test_uts46_6432(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--rt9cl956a.xn--tlb403mxv4g06s9i', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--rt9cl956a.xn--tlb403mxv4g06s9i', strict=True) + + def test_uts46_6433(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00092223סڸ。Ⴈ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00092223סڸ。Ⴈ\u200d', strict=True) + + def test_uts46_6434(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U00092223סڸ。ⴈ\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U00092223סڸ。ⴈ\u200d', strict=True) + + def test_uts46_6435(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--meb44b57607c.xn--zkj', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--meb44b57607c.xn--zkj', strict=True) + + def test_uts46_6436(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--meb44b57607c.xn--1ug232c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--meb44b57607c.xn--1ug232c', strict=True) + + def test_uts46_6437(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--meb44b57607c.xn--gnd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--meb44b57607c.xn--gnd', strict=True) + + def test_uts46_6438(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--meb44b57607c.xn--gnd699e', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--meb44b57607c.xn--gnd699e', strict=True) + + def test_uts46_6439(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c06b6𝨱ߦ⒈.𑗝髯\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c06b6𝨱ߦ⒈.𑗝髯\u200c', strict=True) + + def test_uts46_6440(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U000c06b6𝨱ߦ1..𑗝髯\u200c', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U000c06b6𝨱ߦ1..𑗝髯\u200c', strict=True) + + def test_uts46_6441(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-idd62296a1fr6e..xn--uj6at43v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-idd62296a1fr6e..xn--uj6at43v', strict=True) + + def test_uts46_6442(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1-idd62296a1fr6e..xn--0ugx259bocxd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1-idd62296a1fr6e..xn--0ugx259bocxd', strict=True) + + def test_uts46_6443(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--etb477lq931a1f58e.xn--uj6at43v', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--etb477lq931a1f58e.xn--uj6at43v', strict=True) + + def test_uts46_6444(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--etb477lq931a1f58e.xn--0ugx259bocxd', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--etb477lq931a1f58e.xn--0ugx259bocxd', strict=True) + + def test_uts46_6445(self): + self.assertEqual(idna.decode('𐫀.ډ𑌀', uts46=True, strict=True), '𐫀.ډ𑌀') + self.assertEqual(idna.encode('𐫀.ډ𑌀', uts46=True, strict=True), b'xn--pw9c.xn--fjb8658k') + + def test_uts46_6446(self): + self.assertEqual(idna.decode('𐫀.ډ𑌀', uts46=True, strict=True), '𐫀.ډ𑌀') + self.assertEqual(idna.encode('𐫀.ډ𑌀', uts46=True, strict=True), b'xn--pw9c.xn--fjb8658k') + + def test_uts46_6447(self): + self.assertEqual(idna.decode('xn--pw9c.xn--fjb8658k', uts46=True, strict=True), '𐫀.ډ𑌀') + self.assertEqual(idna.encode('xn--pw9c.xn--fjb8658k', uts46=True, strict=True), b'xn--pw9c.xn--fjb8658k') + + def test_uts46_6448(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑋪.𐳝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑋪.𐳝', strict=True) + + def test_uts46_6449(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑋪.𐳝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑋪.𐳝', strict=True) + + def test_uts46_6450(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑋪.𐲝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑋪.𐲝', strict=True) + + def test_uts46_6451(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--fm1d.xn--5c0d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--fm1d.xn--5c0d', strict=True) + + def test_uts46_6452(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑋪.𐲝', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑋪.𐲝', strict=True) + + def test_uts46_6453(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠膣。ྃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠膣。ྃ', strict=True) + + def test_uts46_6454(self): + self.assertRaises(idna.IDNAError, idna.decode, '≠膣。ྃ', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '≠膣。ྃ', strict=True) + + def test_uts46_6455(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1chy468a.xn--2ed', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1chy468a.xn--2ed', strict=True) + + def test_uts46_6456(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007000e-ݽ。ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007000e-ݽ。ß', strict=True) + + def test_uts46_6457(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007000e-ݽ。ß', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007000e-ݽ。ß', strict=True) + + def test_uts46_6458(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007000e-ݽ。SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007000e-ݽ。SS', strict=True) + + def test_uts46_6459(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007000e-ݽ。ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007000e-ݽ。ss', strict=True) + + def test_uts46_6460(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007000e-ݽ。Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007000e-ݽ。Ss', strict=True) + + def test_uts46_6461(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----j6c95618k.ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----j6c95618k.ss', strict=True) + + def test_uts46_6462(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn----j6c95618k.xn--zca', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn----j6c95618k.xn--zca', strict=True) + + def test_uts46_6463(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007000e-ݽ。SS', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007000e-ݽ。SS', strict=True) + + def test_uts46_6464(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007000e-ݽ。ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007000e-ݽ。ss', strict=True) + + def test_uts46_6465(self): + self.assertRaises(idna.IDNAError, idna.decode, '\U0007000e-ݽ。Ss', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '\U0007000e-ݽ。Ss', strict=True) + + def test_uts46_6466(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς𐹠ᡚ𑄳.⾭𐹽\U0003d416𐫜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς𐹠ᡚ𑄳.⾭𐹽\U0003d416𐫜', strict=True) + + def test_uts46_6467(self): + self.assertRaises(idna.IDNAError, idna.decode, 'ς𐹠ᡚ𑄳.靑𐹽\U0003d416𐫜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'ς𐹠ᡚ𑄳.靑𐹽\U0003d416𐫜', strict=True) + + def test_uts46_6468(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ𐹠ᡚ𑄳.靑𐹽\U0003d416𐫜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ𐹠ᡚ𑄳.靑𐹽\U0003d416𐫜', strict=True) + + def test_uts46_6469(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ𐹠ᡚ𑄳.靑𐹽\U0003d416𐫜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ𐹠ᡚ𑄳.靑𐹽\U0003d416𐫜', strict=True) + + def test_uts46_6470(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--4xa656hp23pxmc.xn--es5a888tvjc2u15h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--4xa656hp23pxmc.xn--es5a888tvjc2u15h', strict=True) + + def test_uts46_6471(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--3xa856hp23pxmc.xn--es5a888tvjc2u15h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--3xa856hp23pxmc.xn--es5a888tvjc2u15h', strict=True) + + def test_uts46_6472(self): + self.assertRaises(idna.IDNAError, idna.decode, 'Σ𐹠ᡚ𑄳.⾭𐹽\U0003d416𐫜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'Σ𐹠ᡚ𑄳.⾭𐹽\U0003d416𐫜', strict=True) + + def test_uts46_6473(self): + self.assertRaises(idna.IDNAError, idna.decode, 'σ𐹠ᡚ𑄳.⾭𐹽\U0003d416𐫜', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'σ𐹠ᡚ𑄳.⾭𐹽\U0003d416𐫜', strict=True) + + def test_uts46_6474(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋷。\u200d', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋷。\u200d', strict=True) + + def test_uts46_6475(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--r97c.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--r97c.', strict=True) + + def test_uts46_6476(self): + self.assertRaises(idna.IDNAError, idna.decode, '𐋷.', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𐋷.', strict=True) + + def test_uts46_6477(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--r97c.xn--1ug', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--r97c.xn--1ug', strict=True) + + def test_uts46_6478(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑰳𑈯。⥪', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑰳𑈯。⥪', strict=True) + + def test_uts46_6479(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--2g1d14o.xn--jti', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--2g1d14o.xn--jti', strict=True) + + def test_uts46_6480(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑆀䁴\U000649e3.Ⴕ𝟜\u200c͈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑆀䁴\U000649e3.Ⴕ𝟜\u200c͈', strict=True) + + def test_uts46_6481(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑆀䁴\U000649e3.Ⴕ4\u200c͈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑆀䁴\U000649e3.Ⴕ4\u200c͈', strict=True) + + def test_uts46_6482(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑆀䁴\U000649e3.ⴕ4\u200c͈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑆀䁴\U000649e3.ⴕ4\u200c͈', strict=True) + + def test_uts46_6483(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1mnx647cg3x1b.xn--4-zfb5123a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1mnx647cg3x1b.xn--4-zfb5123a', strict=True) + + def test_uts46_6484(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1mnx647cg3x1b.xn--4-zfb502tlsl', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1mnx647cg3x1b.xn--4-zfb502tlsl', strict=True) + + def test_uts46_6485(self): + self.assertRaises(idna.IDNAError, idna.decode, '𑆀䁴\U000649e3.ⴕ𝟜\u200c͈', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '𑆀䁴\U000649e3.ⴕ𝟜\u200c͈', strict=True) + + def test_uts46_6486(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1mnx647cg3x1b.xn--4-zfb324h', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1mnx647cg3x1b.xn--4-zfb324h', strict=True) + + def test_uts46_6487(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--1mnx647cg3x1b.xn--4-zfb324h32o', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--1mnx647cg3x1b.xn--4-zfb324h32o', strict=True) + + def test_uts46_6488(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?\u200cႴ.𐋮\u200d≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?\u200cႴ.𐋮\u200d≠', strict=True) + + def test_uts46_6489(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?\u200cႴ.𐋮\u200d≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?\u200cႴ.𐋮\u200d≠', strict=True) + + def test_uts46_6490(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?\u200cⴔ.𐋮\u200d≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?\u200cⴔ.𐋮\u200d≠', strict=True) + + def test_uts46_6491(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?\u200cⴔ.𐋮\u200d≠', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?\u200cⴔ.𐋮\u200d≠', strict=True) + + def test_uts46_6492(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--?-fwsr13r.xn--1chz659f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--?-fwsr13r.xn--1chz659f', strict=True) + + def test_uts46_6493(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--?-sgn310doh5c.xn--1ug73gl146a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--?-sgn310doh5c.xn--1ug73gl146a', strict=True) + + def test_uts46_6494(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--?-c1g3623d.xn--1chz659f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--?-c1g3623d.xn--1chz659f', strict=True) + + def test_uts46_6495(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--?-c1g798iy27d.xn--1ug73gl146a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--?-c1g798iy27d.xn--1ug73gl146a', strict=True) + + def test_uts46_6496(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?ⴔ.xn--1chz659f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?ⴔ.xn--1chz659f', strict=True) + + def test_uts46_6497(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?Ⴔ.XN--1CHZ659F', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?Ⴔ.XN--1CHZ659F', strict=True) + + def test_uts46_6498(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?Ⴔ.xn--1chz659f', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?Ⴔ.xn--1chz659f', strict=True) + + def test_uts46_6499(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?\u200cⴔ.xn--1ug73gl146a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?\u200cⴔ.xn--1ug73gl146a', strict=True) + + def test_uts46_6500(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?\u200cႴ.XN--1UG73GL146A', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?\u200cႴ.XN--1UG73GL146A', strict=True) + + def test_uts46_6501(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?\u200cႴ.xn--1ug73gl146a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?\u200cႴ.xn--1ug73gl146a', strict=True) + + def test_uts46_6502(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--?-fwsr13r.xn--1ug73gl146a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--?-fwsr13r.xn--1ug73gl146a', strict=True) + + def test_uts46_6503(self): + self.assertRaises(idna.IDNAError, idna.decode, 'xn--?-c1g3623d.xn--1ug73gl146a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, 'xn--?-c1g3623d.xn--1ug73gl146a', strict=True) + + def test_uts46_6504(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?Ⴔ.xn--1ug73gl146a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?Ⴔ.xn--1ug73gl146a', strict=True) + + def test_uts46_6505(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?ⴔ.xn--1ug73gl146a', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?ⴔ.xn--1ug73gl146a', strict=True) + + def test_uts46_6506(self): + self.assertRaises(idna.IDNAError, idna.decode, '憡?Ⴔ.XN--1UG73GL146A', strict=True) + self.assertRaises(idna.IDNAError, idna.encode, '憡?Ⴔ.XN--1UG73GL146A', strict=True) + diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_intranges.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_intranges.py new file mode 100644 index 0000000000000000000000000000000000000000..951f75dbba6344da6f769bf835545745bfa93fb6 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/info/test/tests/test_intranges.py @@ -0,0 +1,82 @@ +#!/usr/bin/env python + +import unittest + +from idna.intranges import _encode_range, intranges_contain, intranges_from_list + + +class IntrangeTests(unittest.TestCase): + def test_ranging(self): + self.assertEqual( + intranges_from_list(list(range(293, 499)) + list(range(4888, 9876))), + ( + _encode_range(293, 499), + _encode_range(4888, 9876), + ), + ) + + def test_ranging_2(self): + self.assertEqual(intranges_from_list([111]), (_encode_range(111, 112),)) + + def test_skips(self): + self.assertEqual( + intranges_from_list( + [ + 0, + 2, + 4, + 6, + 9, + 10, + 11, + 13, + 15, + ] + ), + ( + _encode_range(0, 1), + _encode_range(2, 3), + _encode_range(4, 5), + _encode_range(6, 7), + _encode_range(9, 12), + _encode_range(13, 14), + _encode_range(15, 16), + ), + ) + + def test_empty_range(self): + self.assertEqual(intranges_from_list([]), ()) + + +class IntrangeContainsTests(unittest.TestCase): + def _test_containment(self, ints, disjoint_ints): + ranges = intranges_from_list(ints) + for int_ in ints: + assert intranges_contain(int_, ranges) + for int_ in disjoint_ints: + assert not intranges_contain(int_, ranges) + + def test_simple(self): + self._test_containment(range(10, 20), [2, 3, 68, 3893]) + + def test_skips(self): + self._test_containment( + [ + 0, + 2, + 4, + 6, + 9, + 10, + 11, + 13, + 15, + ], + [-1, 1, 3, 5, 7, 4898], + ) + + def test_singleton(self): + self._test_containment([111], [110, 112]) + + def test_empty(self): + self._test_containment([], range(100)) diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/INSTALLER b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..f79e4cb9aaf0b2d9e8ba78861e2071317b2384b3 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/INSTALLER @@ -0,0 +1 @@ +conda \ No newline at end of file diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/METADATA b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..7a4a4b7a7e9adbe4542d98f6b2f40e65ee64b182 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/METADATA @@ -0,0 +1,209 @@ +Metadata-Version: 2.4 +Name: idna +Version: 3.11 +Summary: Internationalized Domain Names in Applications (IDNA) +Author-email: Kim Davies +Requires-Python: >=3.8 +Description-Content-Type: text/x-rst +License-Expression: BSD-3-Clause +Classifier: Development Status :: 5 - Production/Stable +Classifier: Intended Audience :: Developers +Classifier: Intended Audience :: System Administrators +Classifier: Operating System :: OS Independent +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 +Classifier: Programming Language :: Python :: 3.14 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: Topic :: Internet :: Name Service (DNS) +Classifier: Topic :: Software Development :: Libraries :: Python Modules +Classifier: Topic :: Utilities +License-File: LICENSE.md +Requires-Dist: ruff >= 0.6.2 ; extra == "all" +Requires-Dist: mypy >= 1.11.2 ; extra == "all" +Requires-Dist: pytest >= 8.3.2 ; extra == "all" +Requires-Dist: flake8 >= 7.1.1 ; extra == "all" +Project-URL: Changelog, https://github.com/kjd/idna/blob/master/HISTORY.rst +Project-URL: Issue tracker, https://github.com/kjd/idna/issues +Project-URL: Source, https://github.com/kjd/idna +Provides-Extra: all + +Internationalized Domain Names in Applications (IDNA) +===================================================== + +Support for `Internationalized Domain Names in +Applications (IDNA) `_ +and `Unicode IDNA Compatibility Processing +`_. + +The latest versions of these standards supplied here provide +more comprehensive language coverage and reduce the potential of +allowing domains with known security vulnerabilities. This library +is a suitable replacement for the “encodings.idna” +module that comes with the Python standard library, but which +only supports an older superseded IDNA specification from 2003. + +Basic functions are simply executed: + +.. code-block:: pycon + + >>> import idna + >>> idna.encode('ドメイン.テスト') + b'xn--eckwd4c7c.xn--zckzah' + >>> print(idna.decode('xn--eckwd4c7c.xn--zckzah')) + ドメイン.テスト + + +Installation +------------ + +This package is available for installation from PyPI via the +typical mechanisms, such as: + +.. code-block:: bash + + $ python3 -m pip install idna + + +Usage +----- + +For typical usage, the ``encode`` and ``decode`` functions will take a +domain name argument and perform a conversion to ASCII compatible encoding +(known as A-labels), or to Unicode strings (known as U-labels) +respectively. + +.. code-block:: pycon + + >>> import idna + >>> idna.encode('ドメイン.テスト') + b'xn--eckwd4c7c.xn--zckzah' + >>> print(idna.decode('xn--eckwd4c7c.xn--zckzah')) + ドメイン.テスト + +Conversions can be applied at a per-label basis using the ``ulabel`` or +``alabel`` functions if necessary: + +.. code-block:: pycon + + >>> idna.alabel('测试') + b'xn--0zwm56d' + + +Compatibility Mapping (UTS #46) ++++++++++++++++++++++++++++++++ + +This library provides support for `Unicode IDNA Compatibility +Processing `_ which normalizes input from +different potential ways a user may input a domain prior to performing the IDNA +conversion operations. This functionality, known as a +`mapping `_, is considered by the +specification to be a local user-interface issue distinct from IDNA +conversion functionality. + +For example, “Königsgäßchen” is not a permissible label as *LATIN +CAPITAL LETTER K* is not allowed (nor are capital letters in general). +UTS 46 will convert this into lower case prior to applying the IDNA +conversion. + +.. code-block:: pycon + + >>> import idna + >>> idna.encode('Königsgäßchen') + ... + idna.core.InvalidCodepoint: Codepoint U+004B at position 1 of 'Königsgäßchen' not allowed + >>> idna.encode('Königsgäßchen', uts46=True) + b'xn--knigsgchen-b4a3dun' + >>> print(idna.decode('xn--knigsgchen-b4a3dun')) + königsgäßchen + + +Exceptions +---------- + +All errors raised during the conversion following the specification +should raise an exception derived from the ``idna.IDNAError`` base +class. + +More specific exceptions that may be generated as ``idna.IDNABidiError`` +when the error reflects an illegal combination of left-to-right and +right-to-left characters in a label; ``idna.InvalidCodepoint`` when +a specific codepoint is an illegal character in an IDN label (i.e. +INVALID); and ``idna.InvalidCodepointContext`` when the codepoint is +illegal based on its position in the string (i.e. it is CONTEXTO or CONTEXTJ +but the contextual requirements are not satisfied.) + +Building and Diagnostics +------------------------ + +The IDNA and UTS 46 functionality relies upon pre-calculated lookup +tables for performance. These tables are derived from computing against +eligibility criteria in the respective standards using the command-line +script ``tools/idna-data``. + +This tool will fetch relevant codepoint data from the Unicode repository +and perform the required calculations to identify eligibility. There are +three main modes: + +* ``idna-data make-libdata``. Generates ``idnadata.py`` and + ``uts46data.py``, the pre-calculated lookup tables used for IDNA and + UTS 46 conversions. Implementers who wish to track this library against + a different Unicode version may use this tool to manually generate a + different version of the ``idnadata.py`` and ``uts46data.py`` files. + +* ``idna-data make-table``. Generate a table of the IDNA disposition + (e.g. PVALID, CONTEXTJ, CONTEXTO) in the format found in Appendix + B.1 of RFC 5892 and the pre-computed tables published by `IANA + `_. + +* ``idna-data U+0061``. Prints debugging output on the various + properties associated with an individual Unicode codepoint (in this + case, U+0061), that are used to assess the IDNA and UTS 46 status of a + codepoint. This is helpful in debugging or analysis. + +The tool accepts a number of arguments, described using ``idna-data +-h``. Most notably, the ``--version`` argument allows the specification +of the version of Unicode to be used in computing the table data. For +example, ``idna-data --version 9.0.0 make-libdata`` will generate +library data against Unicode 9.0.0. + + +Additional Notes +---------------- + +* **Packages**. The latest tagged release version is published in the + `Python Package Index `_. + +* **Version support**. This library supports Python 3.8 and higher. + As this library serves as a low-level toolkit for a variety of + applications, many of which strive for broad compatibility with older + Python versions, there is no rush to remove older interpreter support. + Support for older versions are likely to be removed from new releases + as automated tests can no longer easily be run, i.e. once the Python + version is officially end-of-life. + +* **Testing**. The library has a test suite based on each rule of the + IDNA specification, as well as tests that are provided as part of the + Unicode Technical Standard 46, `Unicode IDNA Compatibility Processing + `_. + +* **Emoji**. It is an occasional request to support emoji domains in + this library. Encoding of symbols like emoji is expressly prohibited by + the technical standard IDNA 2008 and emoji domains are broadly phased + out across the domain industry due to associated security risks. For + now, applications that need to support these non-compliant labels + may wish to consider trying the encode/decode operation in this library + first, and then falling back to using `encodings.idna`. See `the Github + project `_ for more discussion. + +* **Transitional processing**. Unicode 16.0.0 removed transitional + processing so the `transitional` argument for the encode() method + no longer has any effect and will be removed at a later date. + diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/RECORD b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..2d0cc65d9b4f8e71abc4547a0e92cf0b1f7077b3 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/RECORD @@ -0,0 +1,24 @@ +idna-3.11.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +idna-3.11.dist-info/METADATA,sha256=fCwSww9SuiN8TIHllFSASUQCW55hAs8dzKnr9RaEEbA,8378 +idna-3.11.dist-info/RECORD,, +idna-3.11.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +idna-3.11.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82 +idna-3.11.dist-info/direct_url.json,sha256=wIhSgGUY4bpIgKvFAcvs9P2KdzWpOCQSVkGWrMfEmT0,94 +idna-3.11.dist-info/licenses/LICENSE.md,sha256=t6M2q_OwThgOwGXN0W5wXQeeHMehT5EKpukYfza5zYc,1541 +idna/__init__.py,sha256=MPqNDLZbXqGaNdXxAFhiqFPKEQXju2jNQhCey6-5eJM,868 +idna/__pycache__/__init__.cpython-313.pyc,, +idna/__pycache__/codec.cpython-313.pyc,, +idna/__pycache__/compat.cpython-313.pyc,, +idna/__pycache__/core.cpython-313.pyc,, +idna/__pycache__/idnadata.cpython-313.pyc,, +idna/__pycache__/intranges.cpython-313.pyc,, +idna/__pycache__/package_data.cpython-313.pyc,, +idna/__pycache__/uts46data.cpython-313.pyc,, +idna/codec.py,sha256=M2SGWN7cs_6B32QmKTyTN6xQGZeYQgQ2wiX3_DR6loE,3438 +idna/compat.py,sha256=RzLy6QQCdl9784aFhb2EX9EKGCJjg0P3PilGdeXXcx8,316 +idna/core.py,sha256=P26_XVycuMTZ1R2mNK1ZREVzM5mvTzdabBXfyZVU1Lc,13246 +idna/idnadata.py,sha256=SG8jhaGE53iiD6B49pt2pwTv_UvClciWE-N54oR2p4U,79623 +idna/intranges.py,sha256=amUtkdhYcQG8Zr-CoMM_kVRacxkivC1WgxN1b63KKdU,1898 +idna/package_data.py,sha256=_CUavOxobnbyNG2FLyHoN8QHP3QM9W1tKuw7eq9QwBk,21 +idna/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +idna/uts46data.py,sha256=H9J35VkD0F9L9mKOqjeNGd2A-Va6FlPoz6Jz4K7h-ps,243725 diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/REQUESTED b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/REQUESTED new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/WHEEL b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..d8b9936dad9ab2513fa6979f411560d3b6b57e37 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/WHEEL @@ -0,0 +1,4 @@ +Wheel-Version: 1.0 +Generator: flit 3.12.0 +Root-Is-Purelib: true +Tag: py3-none-any diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/direct_url.json b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/direct_url.json new file mode 100644 index 0000000000000000000000000000000000000000..24bd475e9d592789258195d1f13f222a130d9674 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/direct_url.json @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///home/task_176191175488988/conda-bld/idna_1761911981595/work"} \ No newline at end of file diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/licenses/LICENSE.md b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/licenses/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..256ba90cd91190a6c980bd44663dc51c201c14d3 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna-3.11.dist-info/licenses/LICENSE.md @@ -0,0 +1,31 @@ +BSD 3-Clause License + +Copyright (c) 2013-2025, Kim Davies and contributors. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__init__.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..cfdc030a751b089fc7e38fc88093b791605d501d --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__init__.py @@ -0,0 +1,45 @@ +from .core import ( + IDNABidiError, + IDNAError, + InvalidCodepoint, + InvalidCodepointContext, + alabel, + check_bidi, + check_hyphen_ok, + check_initial_combiner, + check_label, + check_nfc, + decode, + encode, + ulabel, + uts46_remap, + valid_contextj, + valid_contexto, + valid_label_length, + valid_string_length, +) +from .intranges import intranges_contain +from .package_data import __version__ + +__all__ = [ + "__version__", + "IDNABidiError", + "IDNAError", + "InvalidCodepoint", + "InvalidCodepointContext", + "alabel", + "check_bidi", + "check_hyphen_ok", + "check_initial_combiner", + "check_label", + "check_nfc", + "decode", + "encode", + "intranges_contain", + "ulabel", + "uts46_remap", + "valid_contextj", + "valid_contexto", + "valid_label_length", + "valid_string_length", +] diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/__init__.cpython-313.pyc b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/__init__.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..736c87eac23d51187f3008ea3949a500dd3252be Binary files /dev/null and b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/__init__.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/codec.cpython-313.pyc b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/codec.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..20ec21e86da512e2c8ee4008985e7788287e8b18 Binary files /dev/null and b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/codec.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/compat.cpython-313.pyc b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/compat.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8a6e6b7d53c9f29ffc221ff343fa7471b28f00e8 Binary files /dev/null and b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/compat.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/core.cpython-313.pyc b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/core.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..444df64fc4b8b833b66e3641326b54b33ebdbb96 Binary files /dev/null and b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/core.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/intranges.cpython-313.pyc b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/intranges.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1a52379de089a8beb093303725fe33bdc2c94745 Binary files /dev/null and b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/intranges.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/package_data.cpython-313.pyc b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/package_data.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..623f843055d5a099600a9f2260a3a6fafd9cec0f Binary files /dev/null and b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/__pycache__/package_data.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/codec.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/codec.py new file mode 100644 index 0000000000000000000000000000000000000000..cbc2e4ff4ec3e2318d47615bab44ea0ca3dba978 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/codec.py @@ -0,0 +1,122 @@ +import codecs +import re +from typing import Any, Optional, Tuple + +from .core import IDNAError, alabel, decode, encode, ulabel + +_unicode_dots_re = re.compile("[\u002e\u3002\uff0e\uff61]") + + +class Codec(codecs.Codec): + def encode(self, data: str, errors: str = "strict") -> Tuple[bytes, int]: + if errors != "strict": + raise IDNAError('Unsupported error handling "{}"'.format(errors)) + + if not data: + return b"", 0 + + return encode(data), len(data) + + def decode(self, data: bytes, errors: str = "strict") -> Tuple[str, int]: + if errors != "strict": + raise IDNAError('Unsupported error handling "{}"'.format(errors)) + + if not data: + return "", 0 + + return decode(data), len(data) + + +class IncrementalEncoder(codecs.BufferedIncrementalEncoder): + def _buffer_encode(self, data: str, errors: str, final: bool) -> Tuple[bytes, int]: + if errors != "strict": + raise IDNAError('Unsupported error handling "{}"'.format(errors)) + + if not data: + return b"", 0 + + labels = _unicode_dots_re.split(data) + trailing_dot = b"" + if labels: + if not labels[-1]: + trailing_dot = b"." + del labels[-1] + elif not final: + # Keep potentially unfinished label until the next call + del labels[-1] + if labels: + trailing_dot = b"." + + result = [] + size = 0 + for label in labels: + result.append(alabel(label)) + if size: + size += 1 + size += len(label) + + # Join with U+002E + result_bytes = b".".join(result) + trailing_dot + size += len(trailing_dot) + return result_bytes, size + + +class IncrementalDecoder(codecs.BufferedIncrementalDecoder): + def _buffer_decode(self, data: Any, errors: str, final: bool) -> Tuple[str, int]: + if errors != "strict": + raise IDNAError('Unsupported error handling "{}"'.format(errors)) + + if not data: + return ("", 0) + + if not isinstance(data, str): + data = str(data, "ascii") + + labels = _unicode_dots_re.split(data) + trailing_dot = "" + if labels: + if not labels[-1]: + trailing_dot = "." + del labels[-1] + elif not final: + # Keep potentially unfinished label until the next call + del labels[-1] + if labels: + trailing_dot = "." + + result = [] + size = 0 + for label in labels: + result.append(ulabel(label)) + if size: + size += 1 + size += len(label) + + result_str = ".".join(result) + trailing_dot + size += len(trailing_dot) + return (result_str, size) + + +class StreamWriter(Codec, codecs.StreamWriter): + pass + + +class StreamReader(Codec, codecs.StreamReader): + pass + + +def search_function(name: str) -> Optional[codecs.CodecInfo]: + if name != "idna2008": + return None + return codecs.CodecInfo( + name=name, + encode=Codec().encode, + decode=Codec().decode, # type: ignore + incrementalencoder=IncrementalEncoder, + incrementaldecoder=IncrementalDecoder, + streamwriter=StreamWriter, + streamreader=StreamReader, + ) + + +codecs.register(search_function) diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/compat.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/compat.py new file mode 100644 index 0000000000000000000000000000000000000000..1df9f2a70e6815908f2784e88897a9a359eef84c --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/compat.py @@ -0,0 +1,15 @@ +from typing import Any, Union + +from .core import decode, encode + + +def ToASCII(label: str) -> bytes: + return encode(label) + + +def ToUnicode(label: Union[bytes, bytearray]) -> str: + return decode(label) + + +def nameprep(s: Any) -> None: + raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol") diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/core.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/core.py new file mode 100644 index 0000000000000000000000000000000000000000..8177bf7a324f9f54a29e41e867f5d56f2dd0a924 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/core.py @@ -0,0 +1,437 @@ +import bisect +import re +import unicodedata +from typing import Optional, Union + +from . import idnadata +from .intranges import intranges_contain + +_virama_combining_class = 9 +_alabel_prefix = b"xn--" +_unicode_dots_re = re.compile("[\u002e\u3002\uff0e\uff61]") + + +class IDNAError(UnicodeError): + """Base exception for all IDNA-encoding related problems""" + + pass + + +class IDNABidiError(IDNAError): + """Exception when bidirectional requirements are not satisfied""" + + pass + + +class InvalidCodepoint(IDNAError): + """Exception when a disallowed or unallocated codepoint is used""" + + pass + + +class InvalidCodepointContext(IDNAError): + """Exception when the codepoint is not valid in the context it is used""" + + pass + + +def _combining_class(cp: int) -> int: + v = unicodedata.combining(chr(cp)) + if v == 0: + if not unicodedata.name(chr(cp)): + raise ValueError("Unknown character in unicodedata") + return v + + +def _is_script(cp: str, script: str) -> bool: + return intranges_contain(ord(cp), idnadata.scripts[script]) + + +def _punycode(s: str) -> bytes: + return s.encode("punycode") + + +def _unot(s: int) -> str: + return "U+{:04X}".format(s) + + +def valid_label_length(label: Union[bytes, str]) -> bool: + if len(label) > 63: + return False + return True + + +def valid_string_length(label: Union[bytes, str], trailing_dot: bool) -> bool: + if len(label) > (254 if trailing_dot else 253): + return False + return True + + +def check_bidi(label: str, check_ltr: bool = False) -> bool: + # Bidi rules should only be applied if string contains RTL characters + bidi_label = False + for idx, cp in enumerate(label, 1): + direction = unicodedata.bidirectional(cp) + if direction == "": + # String likely comes from a newer version of Unicode + raise IDNABidiError("Unknown directionality in label {} at position {}".format(repr(label), idx)) + if direction in ["R", "AL", "AN"]: + bidi_label = True + if not bidi_label and not check_ltr: + return True + + # Bidi rule 1 + direction = unicodedata.bidirectional(label[0]) + if direction in ["R", "AL"]: + rtl = True + elif direction == "L": + rtl = False + else: + raise IDNABidiError("First codepoint in label {} must be directionality L, R or AL".format(repr(label))) + + valid_ending = False + number_type: Optional[str] = None + for idx, cp in enumerate(label, 1): + direction = unicodedata.bidirectional(cp) + + if rtl: + # Bidi rule 2 + if direction not in [ + "R", + "AL", + "AN", + "EN", + "ES", + "CS", + "ET", + "ON", + "BN", + "NSM", + ]: + raise IDNABidiError("Invalid direction for codepoint at position {} in a right-to-left label".format(idx)) + # Bidi rule 3 + if direction in ["R", "AL", "EN", "AN"]: + valid_ending = True + elif direction != "NSM": + valid_ending = False + # Bidi rule 4 + if direction in ["AN", "EN"]: + if not number_type: + number_type = direction + else: + if number_type != direction: + raise IDNABidiError("Can not mix numeral types in a right-to-left label") + else: + # Bidi rule 5 + if direction not in ["L", "EN", "ES", "CS", "ET", "ON", "BN", "NSM"]: + raise IDNABidiError("Invalid direction for codepoint at position {} in a left-to-right label".format(idx)) + # Bidi rule 6 + if direction in ["L", "EN"]: + valid_ending = True + elif direction != "NSM": + valid_ending = False + + if not valid_ending: + raise IDNABidiError("Label ends with illegal codepoint directionality") + + return True + + +def check_initial_combiner(label: str) -> bool: + if unicodedata.category(label[0])[0] == "M": + raise IDNAError("Label begins with an illegal combining character") + return True + + +def check_hyphen_ok(label: str) -> bool: + if label[2:4] == "--": + raise IDNAError("Label has disallowed hyphens in 3rd and 4th position") + if label[0] == "-" or label[-1] == "-": + raise IDNAError("Label must not start or end with a hyphen") + return True + + +def check_nfc(label: str) -> None: + if unicodedata.normalize("NFC", label) != label: + raise IDNAError("Label must be in Normalization Form C") + + +def valid_contextj(label: str, pos: int) -> bool: + cp_value = ord(label[pos]) + + if cp_value == 0x200C: + if pos > 0: + if _combining_class(ord(label[pos - 1])) == _virama_combining_class: + return True + + ok = False + for i in range(pos - 1, -1, -1): + joining_type = idnadata.joining_types.get(ord(label[i])) + if joining_type == ord("T"): + continue + elif joining_type in [ord("L"), ord("D")]: + ok = True + break + else: + break + + if not ok: + return False + + ok = False + for i in range(pos + 1, len(label)): + joining_type = idnadata.joining_types.get(ord(label[i])) + if joining_type == ord("T"): + continue + elif joining_type in [ord("R"), ord("D")]: + ok = True + break + else: + break + return ok + + if cp_value == 0x200D: + if pos > 0: + if _combining_class(ord(label[pos - 1])) == _virama_combining_class: + return True + return False + + else: + return False + + +def valid_contexto(label: str, pos: int, exception: bool = False) -> bool: + cp_value = ord(label[pos]) + + if cp_value == 0x00B7: + if 0 < pos < len(label) - 1: + if ord(label[pos - 1]) == 0x006C and ord(label[pos + 1]) == 0x006C: + return True + return False + + elif cp_value == 0x0375: + if pos < len(label) - 1 and len(label) > 1: + return _is_script(label[pos + 1], "Greek") + return False + + elif cp_value == 0x05F3 or cp_value == 0x05F4: + if pos > 0: + return _is_script(label[pos - 1], "Hebrew") + return False + + elif cp_value == 0x30FB: + for cp in label: + if cp == "\u30fb": + continue + if _is_script(cp, "Hiragana") or _is_script(cp, "Katakana") or _is_script(cp, "Han"): + return True + return False + + elif 0x660 <= cp_value <= 0x669: + for cp in label: + if 0x6F0 <= ord(cp) <= 0x06F9: + return False + return True + + elif 0x6F0 <= cp_value <= 0x6F9: + for cp in label: + if 0x660 <= ord(cp) <= 0x0669: + return False + return True + + return False + + +def check_label(label: Union[str, bytes, bytearray]) -> None: + if isinstance(label, (bytes, bytearray)): + label = label.decode("utf-8") + if len(label) == 0: + raise IDNAError("Empty Label") + + check_nfc(label) + check_hyphen_ok(label) + check_initial_combiner(label) + + for pos, cp in enumerate(label): + cp_value = ord(cp) + if intranges_contain(cp_value, idnadata.codepoint_classes["PVALID"]): + continue + elif intranges_contain(cp_value, idnadata.codepoint_classes["CONTEXTJ"]): + try: + if not valid_contextj(label, pos): + raise InvalidCodepointContext( + "Joiner {} not allowed at position {} in {}".format(_unot(cp_value), pos + 1, repr(label)) + ) + except ValueError: + raise IDNAError( + "Unknown codepoint adjacent to joiner {} at position {} in {}".format( + _unot(cp_value), pos + 1, repr(label) + ) + ) + elif intranges_contain(cp_value, idnadata.codepoint_classes["CONTEXTO"]): + if not valid_contexto(label, pos): + raise InvalidCodepointContext( + "Codepoint {} not allowed at position {} in {}".format(_unot(cp_value), pos + 1, repr(label)) + ) + else: + raise InvalidCodepoint( + "Codepoint {} at position {} of {} not allowed".format(_unot(cp_value), pos + 1, repr(label)) + ) + + check_bidi(label) + + +def alabel(label: str) -> bytes: + try: + label_bytes = label.encode("ascii") + ulabel(label_bytes) + if not valid_label_length(label_bytes): + raise IDNAError("Label too long") + return label_bytes + except UnicodeEncodeError: + pass + + check_label(label) + label_bytes = _alabel_prefix + _punycode(label) + + if not valid_label_length(label_bytes): + raise IDNAError("Label too long") + + return label_bytes + + +def ulabel(label: Union[str, bytes, bytearray]) -> str: + if not isinstance(label, (bytes, bytearray)): + try: + label_bytes = label.encode("ascii") + except UnicodeEncodeError: + check_label(label) + return label + else: + label_bytes = bytes(label) + + label_bytes = label_bytes.lower() + if label_bytes.startswith(_alabel_prefix): + label_bytes = label_bytes[len(_alabel_prefix) :] + if not label_bytes: + raise IDNAError("Malformed A-label, no Punycode eligible content found") + if label_bytes.decode("ascii")[-1] == "-": + raise IDNAError("A-label must not end with a hyphen") + else: + check_label(label_bytes) + return label_bytes.decode("ascii") + + try: + label = label_bytes.decode("punycode") + except UnicodeError: + raise IDNAError("Invalid A-label") + check_label(label) + return label + + +def uts46_remap(domain: str, std3_rules: bool = True, transitional: bool = False) -> str: + """Re-map the characters in the string according to UTS46 processing.""" + from .uts46data import uts46data + + output = "" + + for pos, char in enumerate(domain): + code_point = ord(char) + try: + uts46row = uts46data[code_point if code_point < 256 else bisect.bisect_left(uts46data, (code_point, "Z")) - 1] + status = uts46row[1] + replacement: Optional[str] = None + if len(uts46row) == 3: + replacement = uts46row[2] + if ( + status == "V" + or (status == "D" and not transitional) + or (status == "3" and not std3_rules and replacement is None) + ): + output += char + elif replacement is not None and ( + status == "M" or (status == "3" and not std3_rules) or (status == "D" and transitional) + ): + output += replacement + elif status != "I": + raise IndexError() + except IndexError: + raise InvalidCodepoint( + "Codepoint {} not allowed at position {} in {}".format(_unot(code_point), pos + 1, repr(domain)) + ) + + return unicodedata.normalize("NFC", output) + + +def encode( + s: Union[str, bytes, bytearray], + strict: bool = False, + uts46: bool = False, + std3_rules: bool = False, + transitional: bool = False, +) -> bytes: + if not isinstance(s, str): + try: + s = str(s, "ascii") + except UnicodeDecodeError: + raise IDNAError("should pass a unicode string to the function rather than a byte string.") + if uts46: + s = uts46_remap(s, std3_rules, transitional) + trailing_dot = False + result = [] + if strict: + labels = s.split(".") + else: + labels = _unicode_dots_re.split(s) + if not labels or labels == [""]: + raise IDNAError("Empty domain") + if labels[-1] == "": + del labels[-1] + trailing_dot = True + for label in labels: + s = alabel(label) + if s: + result.append(s) + else: + raise IDNAError("Empty label") + if trailing_dot: + result.append(b"") + s = b".".join(result) + if not valid_string_length(s, trailing_dot): + raise IDNAError("Domain too long") + return s + + +def decode( + s: Union[str, bytes, bytearray], + strict: bool = False, + uts46: bool = False, + std3_rules: bool = False, +) -> str: + try: + if not isinstance(s, str): + s = str(s, "ascii") + except UnicodeDecodeError: + raise IDNAError("Invalid ASCII in A-label") + if uts46: + s = uts46_remap(s, std3_rules, False) + trailing_dot = False + result = [] + if not strict: + labels = _unicode_dots_re.split(s) + else: + labels = s.split(".") + if not labels or labels == [""]: + raise IDNAError("Empty domain") + if not labels[-1]: + del labels[-1] + trailing_dot = True + for label in labels: + s = ulabel(label) + if s: + result.append(s) + else: + raise IDNAError("Empty label") + if trailing_dot: + result.append("") + return ".".join(result) diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/idnadata.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/idnadata.py new file mode 100644 index 0000000000000000000000000000000000000000..ded47cae0b16977aae69f3895ecfe8b8980f58d0 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/idnadata.py @@ -0,0 +1,4309 @@ +# This file is automatically generated by tools/idna-data + +__version__ = "16.0.0" + +scripts = { + "Greek": ( + 0x37000000374, + 0x37500000378, + 0x37A0000037E, + 0x37F00000380, + 0x38400000385, + 0x38600000387, + 0x3880000038B, + 0x38C0000038D, + 0x38E000003A2, + 0x3A3000003E2, + 0x3F000000400, + 0x1D2600001D2B, + 0x1D5D00001D62, + 0x1D6600001D6B, + 0x1DBF00001DC0, + 0x1F0000001F16, + 0x1F1800001F1E, + 0x1F2000001F46, + 0x1F4800001F4E, + 0x1F5000001F58, + 0x1F5900001F5A, + 0x1F5B00001F5C, + 0x1F5D00001F5E, + 0x1F5F00001F7E, + 0x1F8000001FB5, + 0x1FB600001FC5, + 0x1FC600001FD4, + 0x1FD600001FDC, + 0x1FDD00001FF0, + 0x1FF200001FF5, + 0x1FF600001FFF, + 0x212600002127, + 0xAB650000AB66, + 0x101400001018F, + 0x101A0000101A1, + 0x1D2000001D246, + ), + "Han": ( + 0x2E8000002E9A, + 0x2E9B00002EF4, + 0x2F0000002FD6, + 0x300500003006, + 0x300700003008, + 0x30210000302A, + 0x30380000303C, + 0x340000004DC0, + 0x4E000000A000, + 0xF9000000FA6E, + 0xFA700000FADA, + 0x16FE200016FE4, + 0x16FF000016FF2, + 0x200000002A6E0, + 0x2A7000002B73A, + 0x2B7400002B81E, + 0x2B8200002CEA2, + 0x2CEB00002EBE1, + 0x2EBF00002EE5E, + 0x2F8000002FA1E, + 0x300000003134B, + 0x31350000323B0, + ), + "Hebrew": ( + 0x591000005C8, + 0x5D0000005EB, + 0x5EF000005F5, + 0xFB1D0000FB37, + 0xFB380000FB3D, + 0xFB3E0000FB3F, + 0xFB400000FB42, + 0xFB430000FB45, + 0xFB460000FB50, + ), + "Hiragana": ( + 0x304100003097, + 0x309D000030A0, + 0x1B0010001B120, + 0x1B1320001B133, + 0x1B1500001B153, + 0x1F2000001F201, + ), + "Katakana": ( + 0x30A1000030FB, + 0x30FD00003100, + 0x31F000003200, + 0x32D0000032FF, + 0x330000003358, + 0xFF660000FF70, + 0xFF710000FF9E, + 0x1AFF00001AFF4, + 0x1AFF50001AFFC, + 0x1AFFD0001AFFF, + 0x1B0000001B001, + 0x1B1200001B123, + 0x1B1550001B156, + 0x1B1640001B168, + ), +} +joining_types = { + 0xAD: 84, + 0x300: 84, + 0x301: 84, + 0x302: 84, + 0x303: 84, + 0x304: 84, + 0x305: 84, + 0x306: 84, + 0x307: 84, + 0x308: 84, + 0x309: 84, + 0x30A: 84, + 0x30B: 84, + 0x30C: 84, + 0x30D: 84, + 0x30E: 84, + 0x30F: 84, + 0x310: 84, + 0x311: 84, + 0x312: 84, + 0x313: 84, + 0x314: 84, + 0x315: 84, + 0x316: 84, + 0x317: 84, + 0x318: 84, + 0x319: 84, + 0x31A: 84, + 0x31B: 84, + 0x31C: 84, + 0x31D: 84, + 0x31E: 84, + 0x31F: 84, + 0x320: 84, + 0x321: 84, + 0x322: 84, + 0x323: 84, + 0x324: 84, + 0x325: 84, + 0x326: 84, + 0x327: 84, + 0x328: 84, + 0x329: 84, + 0x32A: 84, + 0x32B: 84, + 0x32C: 84, + 0x32D: 84, + 0x32E: 84, + 0x32F: 84, + 0x330: 84, + 0x331: 84, + 0x332: 84, + 0x333: 84, + 0x334: 84, + 0x335: 84, + 0x336: 84, + 0x337: 84, + 0x338: 84, + 0x339: 84, + 0x33A: 84, + 0x33B: 84, + 0x33C: 84, + 0x33D: 84, + 0x33E: 84, + 0x33F: 84, + 0x340: 84, + 0x341: 84, + 0x342: 84, + 0x343: 84, + 0x344: 84, + 0x345: 84, + 0x346: 84, + 0x347: 84, + 0x348: 84, + 0x349: 84, + 0x34A: 84, + 0x34B: 84, + 0x34C: 84, + 0x34D: 84, + 0x34E: 84, + 0x34F: 84, + 0x350: 84, + 0x351: 84, + 0x352: 84, + 0x353: 84, + 0x354: 84, + 0x355: 84, + 0x356: 84, + 0x357: 84, + 0x358: 84, + 0x359: 84, + 0x35A: 84, + 0x35B: 84, + 0x35C: 84, + 0x35D: 84, + 0x35E: 84, + 0x35F: 84, + 0x360: 84, + 0x361: 84, + 0x362: 84, + 0x363: 84, + 0x364: 84, + 0x365: 84, + 0x366: 84, + 0x367: 84, + 0x368: 84, + 0x369: 84, + 0x36A: 84, + 0x36B: 84, + 0x36C: 84, + 0x36D: 84, + 0x36E: 84, + 0x36F: 84, + 0x483: 84, + 0x484: 84, + 0x485: 84, + 0x486: 84, + 0x487: 84, + 0x488: 84, + 0x489: 84, + 0x591: 84, + 0x592: 84, + 0x593: 84, + 0x594: 84, + 0x595: 84, + 0x596: 84, + 0x597: 84, + 0x598: 84, + 0x599: 84, + 0x59A: 84, + 0x59B: 84, + 0x59C: 84, + 0x59D: 84, + 0x59E: 84, + 0x59F: 84, + 0x5A0: 84, + 0x5A1: 84, + 0x5A2: 84, + 0x5A3: 84, + 0x5A4: 84, + 0x5A5: 84, + 0x5A6: 84, + 0x5A7: 84, + 0x5A8: 84, + 0x5A9: 84, + 0x5AA: 84, + 0x5AB: 84, + 0x5AC: 84, + 0x5AD: 84, + 0x5AE: 84, + 0x5AF: 84, + 0x5B0: 84, + 0x5B1: 84, + 0x5B2: 84, + 0x5B3: 84, + 0x5B4: 84, + 0x5B5: 84, + 0x5B6: 84, + 0x5B7: 84, + 0x5B8: 84, + 0x5B9: 84, + 0x5BA: 84, + 0x5BB: 84, + 0x5BC: 84, + 0x5BD: 84, + 0x5BF: 84, + 0x5C1: 84, + 0x5C2: 84, + 0x5C4: 84, + 0x5C5: 84, + 0x5C7: 84, + 0x610: 84, + 0x611: 84, + 0x612: 84, + 0x613: 84, + 0x614: 84, + 0x615: 84, + 0x616: 84, + 0x617: 84, + 0x618: 84, + 0x619: 84, + 0x61A: 84, + 0x61C: 84, + 0x620: 68, + 0x622: 82, + 0x623: 82, + 0x624: 82, + 0x625: 82, + 0x626: 68, + 0x627: 82, + 0x628: 68, + 0x629: 82, + 0x62A: 68, + 0x62B: 68, + 0x62C: 68, + 0x62D: 68, + 0x62E: 68, + 0x62F: 82, + 0x630: 82, + 0x631: 82, + 0x632: 82, + 0x633: 68, + 0x634: 68, + 0x635: 68, + 0x636: 68, + 0x637: 68, + 0x638: 68, + 0x639: 68, + 0x63A: 68, + 0x63B: 68, + 0x63C: 68, + 0x63D: 68, + 0x63E: 68, + 0x63F: 68, + 0x640: 67, + 0x641: 68, + 0x642: 68, + 0x643: 68, + 0x644: 68, + 0x645: 68, + 0x646: 68, + 0x647: 68, + 0x648: 82, + 0x649: 68, + 0x64A: 68, + 0x64B: 84, + 0x64C: 84, + 0x64D: 84, + 0x64E: 84, + 0x64F: 84, + 0x650: 84, + 0x651: 84, + 0x652: 84, + 0x653: 84, + 0x654: 84, + 0x655: 84, + 0x656: 84, + 0x657: 84, + 0x658: 84, + 0x659: 84, + 0x65A: 84, + 0x65B: 84, + 0x65C: 84, + 0x65D: 84, + 0x65E: 84, + 0x65F: 84, + 0x66E: 68, + 0x66F: 68, + 0x670: 84, + 0x671: 82, + 0x672: 82, + 0x673: 82, + 0x675: 82, + 0x676: 82, + 0x677: 82, + 0x678: 68, + 0x679: 68, + 0x67A: 68, + 0x67B: 68, + 0x67C: 68, + 0x67D: 68, + 0x67E: 68, + 0x67F: 68, + 0x680: 68, + 0x681: 68, + 0x682: 68, + 0x683: 68, + 0x684: 68, + 0x685: 68, + 0x686: 68, + 0x687: 68, + 0x688: 82, + 0x689: 82, + 0x68A: 82, + 0x68B: 82, + 0x68C: 82, + 0x68D: 82, + 0x68E: 82, + 0x68F: 82, + 0x690: 82, + 0x691: 82, + 0x692: 82, + 0x693: 82, + 0x694: 82, + 0x695: 82, + 0x696: 82, + 0x697: 82, + 0x698: 82, + 0x699: 82, + 0x69A: 68, + 0x69B: 68, + 0x69C: 68, + 0x69D: 68, + 0x69E: 68, + 0x69F: 68, + 0x6A0: 68, + 0x6A1: 68, + 0x6A2: 68, + 0x6A3: 68, + 0x6A4: 68, + 0x6A5: 68, + 0x6A6: 68, + 0x6A7: 68, + 0x6A8: 68, + 0x6A9: 68, + 0x6AA: 68, + 0x6AB: 68, + 0x6AC: 68, + 0x6AD: 68, + 0x6AE: 68, + 0x6AF: 68, + 0x6B0: 68, + 0x6B1: 68, + 0x6B2: 68, + 0x6B3: 68, + 0x6B4: 68, + 0x6B5: 68, + 0x6B6: 68, + 0x6B7: 68, + 0x6B8: 68, + 0x6B9: 68, + 0x6BA: 68, + 0x6BB: 68, + 0x6BC: 68, + 0x6BD: 68, + 0x6BE: 68, + 0x6BF: 68, + 0x6C0: 82, + 0x6C1: 68, + 0x6C2: 68, + 0x6C3: 82, + 0x6C4: 82, + 0x6C5: 82, + 0x6C6: 82, + 0x6C7: 82, + 0x6C8: 82, + 0x6C9: 82, + 0x6CA: 82, + 0x6CB: 82, + 0x6CC: 68, + 0x6CD: 82, + 0x6CE: 68, + 0x6CF: 82, + 0x6D0: 68, + 0x6D1: 68, + 0x6D2: 82, + 0x6D3: 82, + 0x6D5: 82, + 0x6D6: 84, + 0x6D7: 84, + 0x6D8: 84, + 0x6D9: 84, + 0x6DA: 84, + 0x6DB: 84, + 0x6DC: 84, + 0x6DF: 84, + 0x6E0: 84, + 0x6E1: 84, + 0x6E2: 84, + 0x6E3: 84, + 0x6E4: 84, + 0x6E7: 84, + 0x6E8: 84, + 0x6EA: 84, + 0x6EB: 84, + 0x6EC: 84, + 0x6ED: 84, + 0x6EE: 82, + 0x6EF: 82, + 0x6FA: 68, + 0x6FB: 68, + 0x6FC: 68, + 0x6FF: 68, + 0x70F: 84, + 0x710: 82, + 0x711: 84, + 0x712: 68, + 0x713: 68, + 0x714: 68, + 0x715: 82, + 0x716: 82, + 0x717: 82, + 0x718: 82, + 0x719: 82, + 0x71A: 68, + 0x71B: 68, + 0x71C: 68, + 0x71D: 68, + 0x71E: 82, + 0x71F: 68, + 0x720: 68, + 0x721: 68, + 0x722: 68, + 0x723: 68, + 0x724: 68, + 0x725: 68, + 0x726: 68, + 0x727: 68, + 0x728: 82, + 0x729: 68, + 0x72A: 82, + 0x72B: 68, + 0x72C: 82, + 0x72D: 68, + 0x72E: 68, + 0x72F: 82, + 0x730: 84, + 0x731: 84, + 0x732: 84, + 0x733: 84, + 0x734: 84, + 0x735: 84, + 0x736: 84, + 0x737: 84, + 0x738: 84, + 0x739: 84, + 0x73A: 84, + 0x73B: 84, + 0x73C: 84, + 0x73D: 84, + 0x73E: 84, + 0x73F: 84, + 0x740: 84, + 0x741: 84, + 0x742: 84, + 0x743: 84, + 0x744: 84, + 0x745: 84, + 0x746: 84, + 0x747: 84, + 0x748: 84, + 0x749: 84, + 0x74A: 84, + 0x74D: 82, + 0x74E: 68, + 0x74F: 68, + 0x750: 68, + 0x751: 68, + 0x752: 68, + 0x753: 68, + 0x754: 68, + 0x755: 68, + 0x756: 68, + 0x757: 68, + 0x758: 68, + 0x759: 82, + 0x75A: 82, + 0x75B: 82, + 0x75C: 68, + 0x75D: 68, + 0x75E: 68, + 0x75F: 68, + 0x760: 68, + 0x761: 68, + 0x762: 68, + 0x763: 68, + 0x764: 68, + 0x765: 68, + 0x766: 68, + 0x767: 68, + 0x768: 68, + 0x769: 68, + 0x76A: 68, + 0x76B: 82, + 0x76C: 82, + 0x76D: 68, + 0x76E: 68, + 0x76F: 68, + 0x770: 68, + 0x771: 82, + 0x772: 68, + 0x773: 82, + 0x774: 82, + 0x775: 68, + 0x776: 68, + 0x777: 68, + 0x778: 82, + 0x779: 82, + 0x77A: 68, + 0x77B: 68, + 0x77C: 68, + 0x77D: 68, + 0x77E: 68, + 0x77F: 68, + 0x7A6: 84, + 0x7A7: 84, + 0x7A8: 84, + 0x7A9: 84, + 0x7AA: 84, + 0x7AB: 84, + 0x7AC: 84, + 0x7AD: 84, + 0x7AE: 84, + 0x7AF: 84, + 0x7B0: 84, + 0x7CA: 68, + 0x7CB: 68, + 0x7CC: 68, + 0x7CD: 68, + 0x7CE: 68, + 0x7CF: 68, + 0x7D0: 68, + 0x7D1: 68, + 0x7D2: 68, + 0x7D3: 68, + 0x7D4: 68, + 0x7D5: 68, + 0x7D6: 68, + 0x7D7: 68, + 0x7D8: 68, + 0x7D9: 68, + 0x7DA: 68, + 0x7DB: 68, + 0x7DC: 68, + 0x7DD: 68, + 0x7DE: 68, + 0x7DF: 68, + 0x7E0: 68, + 0x7E1: 68, + 0x7E2: 68, + 0x7E3: 68, + 0x7E4: 68, + 0x7E5: 68, + 0x7E6: 68, + 0x7E7: 68, + 0x7E8: 68, + 0x7E9: 68, + 0x7EA: 68, + 0x7EB: 84, + 0x7EC: 84, + 0x7ED: 84, + 0x7EE: 84, + 0x7EF: 84, + 0x7F0: 84, + 0x7F1: 84, + 0x7F2: 84, + 0x7F3: 84, + 0x7FA: 67, + 0x7FD: 84, + 0x816: 84, + 0x817: 84, + 0x818: 84, + 0x819: 84, + 0x81B: 84, + 0x81C: 84, + 0x81D: 84, + 0x81E: 84, + 0x81F: 84, + 0x820: 84, + 0x821: 84, + 0x822: 84, + 0x823: 84, + 0x825: 84, + 0x826: 84, + 0x827: 84, + 0x829: 84, + 0x82A: 84, + 0x82B: 84, + 0x82C: 84, + 0x82D: 84, + 0x840: 82, + 0x841: 68, + 0x842: 68, + 0x843: 68, + 0x844: 68, + 0x845: 68, + 0x846: 82, + 0x847: 82, + 0x848: 68, + 0x849: 82, + 0x84A: 68, + 0x84B: 68, + 0x84C: 68, + 0x84D: 68, + 0x84E: 68, + 0x84F: 68, + 0x850: 68, + 0x851: 68, + 0x852: 68, + 0x853: 68, + 0x854: 82, + 0x855: 68, + 0x856: 82, + 0x857: 82, + 0x858: 82, + 0x859: 84, + 0x85A: 84, + 0x85B: 84, + 0x860: 68, + 0x862: 68, + 0x863: 68, + 0x864: 68, + 0x865: 68, + 0x867: 82, + 0x868: 68, + 0x869: 82, + 0x86A: 82, + 0x870: 82, + 0x871: 82, + 0x872: 82, + 0x873: 82, + 0x874: 82, + 0x875: 82, + 0x876: 82, + 0x877: 82, + 0x878: 82, + 0x879: 82, + 0x87A: 82, + 0x87B: 82, + 0x87C: 82, + 0x87D: 82, + 0x87E: 82, + 0x87F: 82, + 0x880: 82, + 0x881: 82, + 0x882: 82, + 0x883: 67, + 0x884: 67, + 0x885: 67, + 0x886: 68, + 0x889: 68, + 0x88A: 68, + 0x88B: 68, + 0x88C: 68, + 0x88D: 68, + 0x88E: 82, + 0x897: 84, + 0x898: 84, + 0x899: 84, + 0x89A: 84, + 0x89B: 84, + 0x89C: 84, + 0x89D: 84, + 0x89E: 84, + 0x89F: 84, + 0x8A0: 68, + 0x8A1: 68, + 0x8A2: 68, + 0x8A3: 68, + 0x8A4: 68, + 0x8A5: 68, + 0x8A6: 68, + 0x8A7: 68, + 0x8A8: 68, + 0x8A9: 68, + 0x8AA: 82, + 0x8AB: 82, + 0x8AC: 82, + 0x8AE: 82, + 0x8AF: 68, + 0x8B0: 68, + 0x8B1: 82, + 0x8B2: 82, + 0x8B3: 68, + 0x8B4: 68, + 0x8B5: 68, + 0x8B6: 68, + 0x8B7: 68, + 0x8B8: 68, + 0x8B9: 82, + 0x8BA: 68, + 0x8BB: 68, + 0x8BC: 68, + 0x8BD: 68, + 0x8BE: 68, + 0x8BF: 68, + 0x8C0: 68, + 0x8C1: 68, + 0x8C2: 68, + 0x8C3: 68, + 0x8C4: 68, + 0x8C5: 68, + 0x8C6: 68, + 0x8C7: 68, + 0x8C8: 68, + 0x8CA: 84, + 0x8CB: 84, + 0x8CC: 84, + 0x8CD: 84, + 0x8CE: 84, + 0x8CF: 84, + 0x8D0: 84, + 0x8D1: 84, + 0x8D2: 84, + 0x8D3: 84, + 0x8D4: 84, + 0x8D5: 84, + 0x8D6: 84, + 0x8D7: 84, + 0x8D8: 84, + 0x8D9: 84, + 0x8DA: 84, + 0x8DB: 84, + 0x8DC: 84, + 0x8DD: 84, + 0x8DE: 84, + 0x8DF: 84, + 0x8E0: 84, + 0x8E1: 84, + 0x8E3: 84, + 0x8E4: 84, + 0x8E5: 84, + 0x8E6: 84, + 0x8E7: 84, + 0x8E8: 84, + 0x8E9: 84, + 0x8EA: 84, + 0x8EB: 84, + 0x8EC: 84, + 0x8ED: 84, + 0x8EE: 84, + 0x8EF: 84, + 0x8F0: 84, + 0x8F1: 84, + 0x8F2: 84, + 0x8F3: 84, + 0x8F4: 84, + 0x8F5: 84, + 0x8F6: 84, + 0x8F7: 84, + 0x8F8: 84, + 0x8F9: 84, + 0x8FA: 84, + 0x8FB: 84, + 0x8FC: 84, + 0x8FD: 84, + 0x8FE: 84, + 0x8FF: 84, + 0x900: 84, + 0x901: 84, + 0x902: 84, + 0x93A: 84, + 0x93C: 84, + 0x941: 84, + 0x942: 84, + 0x943: 84, + 0x944: 84, + 0x945: 84, + 0x946: 84, + 0x947: 84, + 0x948: 84, + 0x94D: 84, + 0x951: 84, + 0x952: 84, + 0x953: 84, + 0x954: 84, + 0x955: 84, + 0x956: 84, + 0x957: 84, + 0x962: 84, + 0x963: 84, + 0x981: 84, + 0x9BC: 84, + 0x9C1: 84, + 0x9C2: 84, + 0x9C3: 84, + 0x9C4: 84, + 0x9CD: 84, + 0x9E2: 84, + 0x9E3: 84, + 0x9FE: 84, + 0xA01: 84, + 0xA02: 84, + 0xA3C: 84, + 0xA41: 84, + 0xA42: 84, + 0xA47: 84, + 0xA48: 84, + 0xA4B: 84, + 0xA4C: 84, + 0xA4D: 84, + 0xA51: 84, + 0xA70: 84, + 0xA71: 84, + 0xA75: 84, + 0xA81: 84, + 0xA82: 84, + 0xABC: 84, + 0xAC1: 84, + 0xAC2: 84, + 0xAC3: 84, + 0xAC4: 84, + 0xAC5: 84, + 0xAC7: 84, + 0xAC8: 84, + 0xACD: 84, + 0xAE2: 84, + 0xAE3: 84, + 0xAFA: 84, + 0xAFB: 84, + 0xAFC: 84, + 0xAFD: 84, + 0xAFE: 84, + 0xAFF: 84, + 0xB01: 84, + 0xB3C: 84, + 0xB3F: 84, + 0xB41: 84, + 0xB42: 84, + 0xB43: 84, + 0xB44: 84, + 0xB4D: 84, + 0xB55: 84, + 0xB56: 84, + 0xB62: 84, + 0xB63: 84, + 0xB82: 84, + 0xBC0: 84, + 0xBCD: 84, + 0xC00: 84, + 0xC04: 84, + 0xC3C: 84, + 0xC3E: 84, + 0xC3F: 84, + 0xC40: 84, + 0xC46: 84, + 0xC47: 84, + 0xC48: 84, + 0xC4A: 84, + 0xC4B: 84, + 0xC4C: 84, + 0xC4D: 84, + 0xC55: 84, + 0xC56: 84, + 0xC62: 84, + 0xC63: 84, + 0xC81: 84, + 0xCBC: 84, + 0xCBF: 84, + 0xCC6: 84, + 0xCCC: 84, + 0xCCD: 84, + 0xCE2: 84, + 0xCE3: 84, + 0xD00: 84, + 0xD01: 84, + 0xD3B: 84, + 0xD3C: 84, + 0xD41: 84, + 0xD42: 84, + 0xD43: 84, + 0xD44: 84, + 0xD4D: 84, + 0xD62: 84, + 0xD63: 84, + 0xD81: 84, + 0xDCA: 84, + 0xDD2: 84, + 0xDD3: 84, + 0xDD4: 84, + 0xDD6: 84, + 0xE31: 84, + 0xE34: 84, + 0xE35: 84, + 0xE36: 84, + 0xE37: 84, + 0xE38: 84, + 0xE39: 84, + 0xE3A: 84, + 0xE47: 84, + 0xE48: 84, + 0xE49: 84, + 0xE4A: 84, + 0xE4B: 84, + 0xE4C: 84, + 0xE4D: 84, + 0xE4E: 84, + 0xEB1: 84, + 0xEB4: 84, + 0xEB5: 84, + 0xEB6: 84, + 0xEB7: 84, + 0xEB8: 84, + 0xEB9: 84, + 0xEBA: 84, + 0xEBB: 84, + 0xEBC: 84, + 0xEC8: 84, + 0xEC9: 84, + 0xECA: 84, + 0xECB: 84, + 0xECC: 84, + 0xECD: 84, + 0xECE: 84, + 0xF18: 84, + 0xF19: 84, + 0xF35: 84, + 0xF37: 84, + 0xF39: 84, + 0xF71: 84, + 0xF72: 84, + 0xF73: 84, + 0xF74: 84, + 0xF75: 84, + 0xF76: 84, + 0xF77: 84, + 0xF78: 84, + 0xF79: 84, + 0xF7A: 84, + 0xF7B: 84, + 0xF7C: 84, + 0xF7D: 84, + 0xF7E: 84, + 0xF80: 84, + 0xF81: 84, + 0xF82: 84, + 0xF83: 84, + 0xF84: 84, + 0xF86: 84, + 0xF87: 84, + 0xF8D: 84, + 0xF8E: 84, + 0xF8F: 84, + 0xF90: 84, + 0xF91: 84, + 0xF92: 84, + 0xF93: 84, + 0xF94: 84, + 0xF95: 84, + 0xF96: 84, + 0xF97: 84, + 0xF99: 84, + 0xF9A: 84, + 0xF9B: 84, + 0xF9C: 84, + 0xF9D: 84, + 0xF9E: 84, + 0xF9F: 84, + 0xFA0: 84, + 0xFA1: 84, + 0xFA2: 84, + 0xFA3: 84, + 0xFA4: 84, + 0xFA5: 84, + 0xFA6: 84, + 0xFA7: 84, + 0xFA8: 84, + 0xFA9: 84, + 0xFAA: 84, + 0xFAB: 84, + 0xFAC: 84, + 0xFAD: 84, + 0xFAE: 84, + 0xFAF: 84, + 0xFB0: 84, + 0xFB1: 84, + 0xFB2: 84, + 0xFB3: 84, + 0xFB4: 84, + 0xFB5: 84, + 0xFB6: 84, + 0xFB7: 84, + 0xFB8: 84, + 0xFB9: 84, + 0xFBA: 84, + 0xFBB: 84, + 0xFBC: 84, + 0xFC6: 84, + 0x102D: 84, + 0x102E: 84, + 0x102F: 84, + 0x1030: 84, + 0x1032: 84, + 0x1033: 84, + 0x1034: 84, + 0x1035: 84, + 0x1036: 84, + 0x1037: 84, + 0x1039: 84, + 0x103A: 84, + 0x103D: 84, + 0x103E: 84, + 0x1058: 84, + 0x1059: 84, + 0x105E: 84, + 0x105F: 84, + 0x1060: 84, + 0x1071: 84, + 0x1072: 84, + 0x1073: 84, + 0x1074: 84, + 0x1082: 84, + 0x1085: 84, + 0x1086: 84, + 0x108D: 84, + 0x109D: 84, + 0x135D: 84, + 0x135E: 84, + 0x135F: 84, + 0x1712: 84, + 0x1713: 84, + 0x1714: 84, + 0x1732: 84, + 0x1733: 84, + 0x1752: 84, + 0x1753: 84, + 0x1772: 84, + 0x1773: 84, + 0x17B4: 84, + 0x17B5: 84, + 0x17B7: 84, + 0x17B8: 84, + 0x17B9: 84, + 0x17BA: 84, + 0x17BB: 84, + 0x17BC: 84, + 0x17BD: 84, + 0x17C6: 84, + 0x17C9: 84, + 0x17CA: 84, + 0x17CB: 84, + 0x17CC: 84, + 0x17CD: 84, + 0x17CE: 84, + 0x17CF: 84, + 0x17D0: 84, + 0x17D1: 84, + 0x17D2: 84, + 0x17D3: 84, + 0x17DD: 84, + 0x1807: 68, + 0x180A: 67, + 0x180B: 84, + 0x180C: 84, + 0x180D: 84, + 0x180F: 84, + 0x1820: 68, + 0x1821: 68, + 0x1822: 68, + 0x1823: 68, + 0x1824: 68, + 0x1825: 68, + 0x1826: 68, + 0x1827: 68, + 0x1828: 68, + 0x1829: 68, + 0x182A: 68, + 0x182B: 68, + 0x182C: 68, + 0x182D: 68, + 0x182E: 68, + 0x182F: 68, + 0x1830: 68, + 0x1831: 68, + 0x1832: 68, + 0x1833: 68, + 0x1834: 68, + 0x1835: 68, + 0x1836: 68, + 0x1837: 68, + 0x1838: 68, + 0x1839: 68, + 0x183A: 68, + 0x183B: 68, + 0x183C: 68, + 0x183D: 68, + 0x183E: 68, + 0x183F: 68, + 0x1840: 68, + 0x1841: 68, + 0x1842: 68, + 0x1843: 68, + 0x1844: 68, + 0x1845: 68, + 0x1846: 68, + 0x1847: 68, + 0x1848: 68, + 0x1849: 68, + 0x184A: 68, + 0x184B: 68, + 0x184C: 68, + 0x184D: 68, + 0x184E: 68, + 0x184F: 68, + 0x1850: 68, + 0x1851: 68, + 0x1852: 68, + 0x1853: 68, + 0x1854: 68, + 0x1855: 68, + 0x1856: 68, + 0x1857: 68, + 0x1858: 68, + 0x1859: 68, + 0x185A: 68, + 0x185B: 68, + 0x185C: 68, + 0x185D: 68, + 0x185E: 68, + 0x185F: 68, + 0x1860: 68, + 0x1861: 68, + 0x1862: 68, + 0x1863: 68, + 0x1864: 68, + 0x1865: 68, + 0x1866: 68, + 0x1867: 68, + 0x1868: 68, + 0x1869: 68, + 0x186A: 68, + 0x186B: 68, + 0x186C: 68, + 0x186D: 68, + 0x186E: 68, + 0x186F: 68, + 0x1870: 68, + 0x1871: 68, + 0x1872: 68, + 0x1873: 68, + 0x1874: 68, + 0x1875: 68, + 0x1876: 68, + 0x1877: 68, + 0x1878: 68, + 0x1885: 84, + 0x1886: 84, + 0x1887: 68, + 0x1888: 68, + 0x1889: 68, + 0x188A: 68, + 0x188B: 68, + 0x188C: 68, + 0x188D: 68, + 0x188E: 68, + 0x188F: 68, + 0x1890: 68, + 0x1891: 68, + 0x1892: 68, + 0x1893: 68, + 0x1894: 68, + 0x1895: 68, + 0x1896: 68, + 0x1897: 68, + 0x1898: 68, + 0x1899: 68, + 0x189A: 68, + 0x189B: 68, + 0x189C: 68, + 0x189D: 68, + 0x189E: 68, + 0x189F: 68, + 0x18A0: 68, + 0x18A1: 68, + 0x18A2: 68, + 0x18A3: 68, + 0x18A4: 68, + 0x18A5: 68, + 0x18A6: 68, + 0x18A7: 68, + 0x18A8: 68, + 0x18A9: 84, + 0x18AA: 68, + 0x1920: 84, + 0x1921: 84, + 0x1922: 84, + 0x1927: 84, + 0x1928: 84, + 0x1932: 84, + 0x1939: 84, + 0x193A: 84, + 0x193B: 84, + 0x1A17: 84, + 0x1A18: 84, + 0x1A1B: 84, + 0x1A56: 84, + 0x1A58: 84, + 0x1A59: 84, + 0x1A5A: 84, + 0x1A5B: 84, + 0x1A5C: 84, + 0x1A5D: 84, + 0x1A5E: 84, + 0x1A60: 84, + 0x1A62: 84, + 0x1A65: 84, + 0x1A66: 84, + 0x1A67: 84, + 0x1A68: 84, + 0x1A69: 84, + 0x1A6A: 84, + 0x1A6B: 84, + 0x1A6C: 84, + 0x1A73: 84, + 0x1A74: 84, + 0x1A75: 84, + 0x1A76: 84, + 0x1A77: 84, + 0x1A78: 84, + 0x1A79: 84, + 0x1A7A: 84, + 0x1A7B: 84, + 0x1A7C: 84, + 0x1A7F: 84, + 0x1AB0: 84, + 0x1AB1: 84, + 0x1AB2: 84, + 0x1AB3: 84, + 0x1AB4: 84, + 0x1AB5: 84, + 0x1AB6: 84, + 0x1AB7: 84, + 0x1AB8: 84, + 0x1AB9: 84, + 0x1ABA: 84, + 0x1ABB: 84, + 0x1ABC: 84, + 0x1ABD: 84, + 0x1ABE: 84, + 0x1ABF: 84, + 0x1AC0: 84, + 0x1AC1: 84, + 0x1AC2: 84, + 0x1AC3: 84, + 0x1AC4: 84, + 0x1AC5: 84, + 0x1AC6: 84, + 0x1AC7: 84, + 0x1AC8: 84, + 0x1AC9: 84, + 0x1ACA: 84, + 0x1ACB: 84, + 0x1ACC: 84, + 0x1ACD: 84, + 0x1ACE: 84, + 0x1B00: 84, + 0x1B01: 84, + 0x1B02: 84, + 0x1B03: 84, + 0x1B34: 84, + 0x1B36: 84, + 0x1B37: 84, + 0x1B38: 84, + 0x1B39: 84, + 0x1B3A: 84, + 0x1B3C: 84, + 0x1B42: 84, + 0x1B6B: 84, + 0x1B6C: 84, + 0x1B6D: 84, + 0x1B6E: 84, + 0x1B6F: 84, + 0x1B70: 84, + 0x1B71: 84, + 0x1B72: 84, + 0x1B73: 84, + 0x1B80: 84, + 0x1B81: 84, + 0x1BA2: 84, + 0x1BA3: 84, + 0x1BA4: 84, + 0x1BA5: 84, + 0x1BA8: 84, + 0x1BA9: 84, + 0x1BAB: 84, + 0x1BAC: 84, + 0x1BAD: 84, + 0x1BE6: 84, + 0x1BE8: 84, + 0x1BE9: 84, + 0x1BED: 84, + 0x1BEF: 84, + 0x1BF0: 84, + 0x1BF1: 84, + 0x1C2C: 84, + 0x1C2D: 84, + 0x1C2E: 84, + 0x1C2F: 84, + 0x1C30: 84, + 0x1C31: 84, + 0x1C32: 84, + 0x1C33: 84, + 0x1C36: 84, + 0x1C37: 84, + 0x1CD0: 84, + 0x1CD1: 84, + 0x1CD2: 84, + 0x1CD4: 84, + 0x1CD5: 84, + 0x1CD6: 84, + 0x1CD7: 84, + 0x1CD8: 84, + 0x1CD9: 84, + 0x1CDA: 84, + 0x1CDB: 84, + 0x1CDC: 84, + 0x1CDD: 84, + 0x1CDE: 84, + 0x1CDF: 84, + 0x1CE0: 84, + 0x1CE2: 84, + 0x1CE3: 84, + 0x1CE4: 84, + 0x1CE5: 84, + 0x1CE6: 84, + 0x1CE7: 84, + 0x1CE8: 84, + 0x1CED: 84, + 0x1CF4: 84, + 0x1CF8: 84, + 0x1CF9: 84, + 0x1DC0: 84, + 0x1DC1: 84, + 0x1DC2: 84, + 0x1DC3: 84, + 0x1DC4: 84, + 0x1DC5: 84, + 0x1DC6: 84, + 0x1DC7: 84, + 0x1DC8: 84, + 0x1DC9: 84, + 0x1DCA: 84, + 0x1DCB: 84, + 0x1DCC: 84, + 0x1DCD: 84, + 0x1DCE: 84, + 0x1DCF: 84, + 0x1DD0: 84, + 0x1DD1: 84, + 0x1DD2: 84, + 0x1DD3: 84, + 0x1DD4: 84, + 0x1DD5: 84, + 0x1DD6: 84, + 0x1DD7: 84, + 0x1DD8: 84, + 0x1DD9: 84, + 0x1DDA: 84, + 0x1DDB: 84, + 0x1DDC: 84, + 0x1DDD: 84, + 0x1DDE: 84, + 0x1DDF: 84, + 0x1DE0: 84, + 0x1DE1: 84, + 0x1DE2: 84, + 0x1DE3: 84, + 0x1DE4: 84, + 0x1DE5: 84, + 0x1DE6: 84, + 0x1DE7: 84, + 0x1DE8: 84, + 0x1DE9: 84, + 0x1DEA: 84, + 0x1DEB: 84, + 0x1DEC: 84, + 0x1DED: 84, + 0x1DEE: 84, + 0x1DEF: 84, + 0x1DF0: 84, + 0x1DF1: 84, + 0x1DF2: 84, + 0x1DF3: 84, + 0x1DF4: 84, + 0x1DF5: 84, + 0x1DF6: 84, + 0x1DF7: 84, + 0x1DF8: 84, + 0x1DF9: 84, + 0x1DFA: 84, + 0x1DFB: 84, + 0x1DFC: 84, + 0x1DFD: 84, + 0x1DFE: 84, + 0x1DFF: 84, + 0x200B: 84, + 0x200D: 67, + 0x200E: 84, + 0x200F: 84, + 0x202A: 84, + 0x202B: 84, + 0x202C: 84, + 0x202D: 84, + 0x202E: 84, + 0x2060: 84, + 0x2061: 84, + 0x2062: 84, + 0x2063: 84, + 0x2064: 84, + 0x206A: 84, + 0x206B: 84, + 0x206C: 84, + 0x206D: 84, + 0x206E: 84, + 0x206F: 84, + 0x20D0: 84, + 0x20D1: 84, + 0x20D2: 84, + 0x20D3: 84, + 0x20D4: 84, + 0x20D5: 84, + 0x20D6: 84, + 0x20D7: 84, + 0x20D8: 84, + 0x20D9: 84, + 0x20DA: 84, + 0x20DB: 84, + 0x20DC: 84, + 0x20DD: 84, + 0x20DE: 84, + 0x20DF: 84, + 0x20E0: 84, + 0x20E1: 84, + 0x20E2: 84, + 0x20E3: 84, + 0x20E4: 84, + 0x20E5: 84, + 0x20E6: 84, + 0x20E7: 84, + 0x20E8: 84, + 0x20E9: 84, + 0x20EA: 84, + 0x20EB: 84, + 0x20EC: 84, + 0x20ED: 84, + 0x20EE: 84, + 0x20EF: 84, + 0x20F0: 84, + 0x2CEF: 84, + 0x2CF0: 84, + 0x2CF1: 84, + 0x2D7F: 84, + 0x2DE0: 84, + 0x2DE1: 84, + 0x2DE2: 84, + 0x2DE3: 84, + 0x2DE4: 84, + 0x2DE5: 84, + 0x2DE6: 84, + 0x2DE7: 84, + 0x2DE8: 84, + 0x2DE9: 84, + 0x2DEA: 84, + 0x2DEB: 84, + 0x2DEC: 84, + 0x2DED: 84, + 0x2DEE: 84, + 0x2DEF: 84, + 0x2DF0: 84, + 0x2DF1: 84, + 0x2DF2: 84, + 0x2DF3: 84, + 0x2DF4: 84, + 0x2DF5: 84, + 0x2DF6: 84, + 0x2DF7: 84, + 0x2DF8: 84, + 0x2DF9: 84, + 0x2DFA: 84, + 0x2DFB: 84, + 0x2DFC: 84, + 0x2DFD: 84, + 0x2DFE: 84, + 0x2DFF: 84, + 0x302A: 84, + 0x302B: 84, + 0x302C: 84, + 0x302D: 84, + 0x3099: 84, + 0x309A: 84, + 0xA66F: 84, + 0xA670: 84, + 0xA671: 84, + 0xA672: 84, + 0xA674: 84, + 0xA675: 84, + 0xA676: 84, + 0xA677: 84, + 0xA678: 84, + 0xA679: 84, + 0xA67A: 84, + 0xA67B: 84, + 0xA67C: 84, + 0xA67D: 84, + 0xA69E: 84, + 0xA69F: 84, + 0xA6F0: 84, + 0xA6F1: 84, + 0xA802: 84, + 0xA806: 84, + 0xA80B: 84, + 0xA825: 84, + 0xA826: 84, + 0xA82C: 84, + 0xA840: 68, + 0xA841: 68, + 0xA842: 68, + 0xA843: 68, + 0xA844: 68, + 0xA845: 68, + 0xA846: 68, + 0xA847: 68, + 0xA848: 68, + 0xA849: 68, + 0xA84A: 68, + 0xA84B: 68, + 0xA84C: 68, + 0xA84D: 68, + 0xA84E: 68, + 0xA84F: 68, + 0xA850: 68, + 0xA851: 68, + 0xA852: 68, + 0xA853: 68, + 0xA854: 68, + 0xA855: 68, + 0xA856: 68, + 0xA857: 68, + 0xA858: 68, + 0xA859: 68, + 0xA85A: 68, + 0xA85B: 68, + 0xA85C: 68, + 0xA85D: 68, + 0xA85E: 68, + 0xA85F: 68, + 0xA860: 68, + 0xA861: 68, + 0xA862: 68, + 0xA863: 68, + 0xA864: 68, + 0xA865: 68, + 0xA866: 68, + 0xA867: 68, + 0xA868: 68, + 0xA869: 68, + 0xA86A: 68, + 0xA86B: 68, + 0xA86C: 68, + 0xA86D: 68, + 0xA86E: 68, + 0xA86F: 68, + 0xA870: 68, + 0xA871: 68, + 0xA872: 76, + 0xA8C4: 84, + 0xA8C5: 84, + 0xA8E0: 84, + 0xA8E1: 84, + 0xA8E2: 84, + 0xA8E3: 84, + 0xA8E4: 84, + 0xA8E5: 84, + 0xA8E6: 84, + 0xA8E7: 84, + 0xA8E8: 84, + 0xA8E9: 84, + 0xA8EA: 84, + 0xA8EB: 84, + 0xA8EC: 84, + 0xA8ED: 84, + 0xA8EE: 84, + 0xA8EF: 84, + 0xA8F0: 84, + 0xA8F1: 84, + 0xA8FF: 84, + 0xA926: 84, + 0xA927: 84, + 0xA928: 84, + 0xA929: 84, + 0xA92A: 84, + 0xA92B: 84, + 0xA92C: 84, + 0xA92D: 84, + 0xA947: 84, + 0xA948: 84, + 0xA949: 84, + 0xA94A: 84, + 0xA94B: 84, + 0xA94C: 84, + 0xA94D: 84, + 0xA94E: 84, + 0xA94F: 84, + 0xA950: 84, + 0xA951: 84, + 0xA980: 84, + 0xA981: 84, + 0xA982: 84, + 0xA9B3: 84, + 0xA9B6: 84, + 0xA9B7: 84, + 0xA9B8: 84, + 0xA9B9: 84, + 0xA9BC: 84, + 0xA9BD: 84, + 0xA9E5: 84, + 0xAA29: 84, + 0xAA2A: 84, + 0xAA2B: 84, + 0xAA2C: 84, + 0xAA2D: 84, + 0xAA2E: 84, + 0xAA31: 84, + 0xAA32: 84, + 0xAA35: 84, + 0xAA36: 84, + 0xAA43: 84, + 0xAA4C: 84, + 0xAA7C: 84, + 0xAAB0: 84, + 0xAAB2: 84, + 0xAAB3: 84, + 0xAAB4: 84, + 0xAAB7: 84, + 0xAAB8: 84, + 0xAABE: 84, + 0xAABF: 84, + 0xAAC1: 84, + 0xAAEC: 84, + 0xAAED: 84, + 0xAAF6: 84, + 0xABE5: 84, + 0xABE8: 84, + 0xABED: 84, + 0xFB1E: 84, + 0xFE00: 84, + 0xFE01: 84, + 0xFE02: 84, + 0xFE03: 84, + 0xFE04: 84, + 0xFE05: 84, + 0xFE06: 84, + 0xFE07: 84, + 0xFE08: 84, + 0xFE09: 84, + 0xFE0A: 84, + 0xFE0B: 84, + 0xFE0C: 84, + 0xFE0D: 84, + 0xFE0E: 84, + 0xFE0F: 84, + 0xFE20: 84, + 0xFE21: 84, + 0xFE22: 84, + 0xFE23: 84, + 0xFE24: 84, + 0xFE25: 84, + 0xFE26: 84, + 0xFE27: 84, + 0xFE28: 84, + 0xFE29: 84, + 0xFE2A: 84, + 0xFE2B: 84, + 0xFE2C: 84, + 0xFE2D: 84, + 0xFE2E: 84, + 0xFE2F: 84, + 0xFEFF: 84, + 0xFFF9: 84, + 0xFFFA: 84, + 0xFFFB: 84, + 0x101FD: 84, + 0x102E0: 84, + 0x10376: 84, + 0x10377: 84, + 0x10378: 84, + 0x10379: 84, + 0x1037A: 84, + 0x10A01: 84, + 0x10A02: 84, + 0x10A03: 84, + 0x10A05: 84, + 0x10A06: 84, + 0x10A0C: 84, + 0x10A0D: 84, + 0x10A0E: 84, + 0x10A0F: 84, + 0x10A38: 84, + 0x10A39: 84, + 0x10A3A: 84, + 0x10A3F: 84, + 0x10AC0: 68, + 0x10AC1: 68, + 0x10AC2: 68, + 0x10AC3: 68, + 0x10AC4: 68, + 0x10AC5: 82, + 0x10AC7: 82, + 0x10AC9: 82, + 0x10ACA: 82, + 0x10ACD: 76, + 0x10ACE: 82, + 0x10ACF: 82, + 0x10AD0: 82, + 0x10AD1: 82, + 0x10AD2: 82, + 0x10AD3: 68, + 0x10AD4: 68, + 0x10AD5: 68, + 0x10AD6: 68, + 0x10AD7: 76, + 0x10AD8: 68, + 0x10AD9: 68, + 0x10ADA: 68, + 0x10ADB: 68, + 0x10ADC: 68, + 0x10ADD: 82, + 0x10ADE: 68, + 0x10ADF: 68, + 0x10AE0: 68, + 0x10AE1: 82, + 0x10AE4: 82, + 0x10AE5: 84, + 0x10AE6: 84, + 0x10AEB: 68, + 0x10AEC: 68, + 0x10AED: 68, + 0x10AEE: 68, + 0x10AEF: 82, + 0x10B80: 68, + 0x10B81: 82, + 0x10B82: 68, + 0x10B83: 82, + 0x10B84: 82, + 0x10B85: 82, + 0x10B86: 68, + 0x10B87: 68, + 0x10B88: 68, + 0x10B89: 82, + 0x10B8A: 68, + 0x10B8B: 68, + 0x10B8C: 82, + 0x10B8D: 68, + 0x10B8E: 82, + 0x10B8F: 82, + 0x10B90: 68, + 0x10B91: 82, + 0x10BA9: 82, + 0x10BAA: 82, + 0x10BAB: 82, + 0x10BAC: 82, + 0x10BAD: 68, + 0x10BAE: 68, + 0x10D00: 76, + 0x10D01: 68, + 0x10D02: 68, + 0x10D03: 68, + 0x10D04: 68, + 0x10D05: 68, + 0x10D06: 68, + 0x10D07: 68, + 0x10D08: 68, + 0x10D09: 68, + 0x10D0A: 68, + 0x10D0B: 68, + 0x10D0C: 68, + 0x10D0D: 68, + 0x10D0E: 68, + 0x10D0F: 68, + 0x10D10: 68, + 0x10D11: 68, + 0x10D12: 68, + 0x10D13: 68, + 0x10D14: 68, + 0x10D15: 68, + 0x10D16: 68, + 0x10D17: 68, + 0x10D18: 68, + 0x10D19: 68, + 0x10D1A: 68, + 0x10D1B: 68, + 0x10D1C: 68, + 0x10D1D: 68, + 0x10D1E: 68, + 0x10D1F: 68, + 0x10D20: 68, + 0x10D21: 68, + 0x10D22: 82, + 0x10D23: 68, + 0x10D24: 84, + 0x10D25: 84, + 0x10D26: 84, + 0x10D27: 84, + 0x10D69: 84, + 0x10D6A: 84, + 0x10D6B: 84, + 0x10D6C: 84, + 0x10D6D: 84, + 0x10EAB: 84, + 0x10EAC: 84, + 0x10EC2: 82, + 0x10EC3: 68, + 0x10EC4: 68, + 0x10EFC: 84, + 0x10EFD: 84, + 0x10EFE: 84, + 0x10EFF: 84, + 0x10F30: 68, + 0x10F31: 68, + 0x10F32: 68, + 0x10F33: 82, + 0x10F34: 68, + 0x10F35: 68, + 0x10F36: 68, + 0x10F37: 68, + 0x10F38: 68, + 0x10F39: 68, + 0x10F3A: 68, + 0x10F3B: 68, + 0x10F3C: 68, + 0x10F3D: 68, + 0x10F3E: 68, + 0x10F3F: 68, + 0x10F40: 68, + 0x10F41: 68, + 0x10F42: 68, + 0x10F43: 68, + 0x10F44: 68, + 0x10F46: 84, + 0x10F47: 84, + 0x10F48: 84, + 0x10F49: 84, + 0x10F4A: 84, + 0x10F4B: 84, + 0x10F4C: 84, + 0x10F4D: 84, + 0x10F4E: 84, + 0x10F4F: 84, + 0x10F50: 84, + 0x10F51: 68, + 0x10F52: 68, + 0x10F53: 68, + 0x10F54: 82, + 0x10F70: 68, + 0x10F71: 68, + 0x10F72: 68, + 0x10F73: 68, + 0x10F74: 82, + 0x10F75: 82, + 0x10F76: 68, + 0x10F77: 68, + 0x10F78: 68, + 0x10F79: 68, + 0x10F7A: 68, + 0x10F7B: 68, + 0x10F7C: 68, + 0x10F7D: 68, + 0x10F7E: 68, + 0x10F7F: 68, + 0x10F80: 68, + 0x10F81: 68, + 0x10F82: 84, + 0x10F83: 84, + 0x10F84: 84, + 0x10F85: 84, + 0x10FB0: 68, + 0x10FB2: 68, + 0x10FB3: 68, + 0x10FB4: 82, + 0x10FB5: 82, + 0x10FB6: 82, + 0x10FB8: 68, + 0x10FB9: 82, + 0x10FBA: 82, + 0x10FBB: 68, + 0x10FBC: 68, + 0x10FBD: 82, + 0x10FBE: 68, + 0x10FBF: 68, + 0x10FC1: 68, + 0x10FC2: 82, + 0x10FC3: 82, + 0x10FC4: 68, + 0x10FC9: 82, + 0x10FCA: 68, + 0x10FCB: 76, + 0x11001: 84, + 0x11038: 84, + 0x11039: 84, + 0x1103A: 84, + 0x1103B: 84, + 0x1103C: 84, + 0x1103D: 84, + 0x1103E: 84, + 0x1103F: 84, + 0x11040: 84, + 0x11041: 84, + 0x11042: 84, + 0x11043: 84, + 0x11044: 84, + 0x11045: 84, + 0x11046: 84, + 0x11070: 84, + 0x11073: 84, + 0x11074: 84, + 0x1107F: 84, + 0x11080: 84, + 0x11081: 84, + 0x110B3: 84, + 0x110B4: 84, + 0x110B5: 84, + 0x110B6: 84, + 0x110B9: 84, + 0x110BA: 84, + 0x110C2: 84, + 0x11100: 84, + 0x11101: 84, + 0x11102: 84, + 0x11127: 84, + 0x11128: 84, + 0x11129: 84, + 0x1112A: 84, + 0x1112B: 84, + 0x1112D: 84, + 0x1112E: 84, + 0x1112F: 84, + 0x11130: 84, + 0x11131: 84, + 0x11132: 84, + 0x11133: 84, + 0x11134: 84, + 0x11173: 84, + 0x11180: 84, + 0x11181: 84, + 0x111B6: 84, + 0x111B7: 84, + 0x111B8: 84, + 0x111B9: 84, + 0x111BA: 84, + 0x111BB: 84, + 0x111BC: 84, + 0x111BD: 84, + 0x111BE: 84, + 0x111C9: 84, + 0x111CA: 84, + 0x111CB: 84, + 0x111CC: 84, + 0x111CF: 84, + 0x1122F: 84, + 0x11230: 84, + 0x11231: 84, + 0x11234: 84, + 0x11236: 84, + 0x11237: 84, + 0x1123E: 84, + 0x11241: 84, + 0x112DF: 84, + 0x112E3: 84, + 0x112E4: 84, + 0x112E5: 84, + 0x112E6: 84, + 0x112E7: 84, + 0x112E8: 84, + 0x112E9: 84, + 0x112EA: 84, + 0x11300: 84, + 0x11301: 84, + 0x1133B: 84, + 0x1133C: 84, + 0x11340: 84, + 0x11366: 84, + 0x11367: 84, + 0x11368: 84, + 0x11369: 84, + 0x1136A: 84, + 0x1136B: 84, + 0x1136C: 84, + 0x11370: 84, + 0x11371: 84, + 0x11372: 84, + 0x11373: 84, + 0x11374: 84, + 0x113BB: 84, + 0x113BC: 84, + 0x113BD: 84, + 0x113BE: 84, + 0x113BF: 84, + 0x113C0: 84, + 0x113CE: 84, + 0x113D0: 84, + 0x113D2: 84, + 0x113E1: 84, + 0x113E2: 84, + 0x11438: 84, + 0x11439: 84, + 0x1143A: 84, + 0x1143B: 84, + 0x1143C: 84, + 0x1143D: 84, + 0x1143E: 84, + 0x1143F: 84, + 0x11442: 84, + 0x11443: 84, + 0x11444: 84, + 0x11446: 84, + 0x1145E: 84, + 0x114B3: 84, + 0x114B4: 84, + 0x114B5: 84, + 0x114B6: 84, + 0x114B7: 84, + 0x114B8: 84, + 0x114BA: 84, + 0x114BF: 84, + 0x114C0: 84, + 0x114C2: 84, + 0x114C3: 84, + 0x115B2: 84, + 0x115B3: 84, + 0x115B4: 84, + 0x115B5: 84, + 0x115BC: 84, + 0x115BD: 84, + 0x115BF: 84, + 0x115C0: 84, + 0x115DC: 84, + 0x115DD: 84, + 0x11633: 84, + 0x11634: 84, + 0x11635: 84, + 0x11636: 84, + 0x11637: 84, + 0x11638: 84, + 0x11639: 84, + 0x1163A: 84, + 0x1163D: 84, + 0x1163F: 84, + 0x11640: 84, + 0x116AB: 84, + 0x116AD: 84, + 0x116B0: 84, + 0x116B1: 84, + 0x116B2: 84, + 0x116B3: 84, + 0x116B4: 84, + 0x116B5: 84, + 0x116B7: 84, + 0x1171D: 84, + 0x1171F: 84, + 0x11722: 84, + 0x11723: 84, + 0x11724: 84, + 0x11725: 84, + 0x11727: 84, + 0x11728: 84, + 0x11729: 84, + 0x1172A: 84, + 0x1172B: 84, + 0x1182F: 84, + 0x11830: 84, + 0x11831: 84, + 0x11832: 84, + 0x11833: 84, + 0x11834: 84, + 0x11835: 84, + 0x11836: 84, + 0x11837: 84, + 0x11839: 84, + 0x1183A: 84, + 0x1193B: 84, + 0x1193C: 84, + 0x1193E: 84, + 0x11943: 84, + 0x119D4: 84, + 0x119D5: 84, + 0x119D6: 84, + 0x119D7: 84, + 0x119DA: 84, + 0x119DB: 84, + 0x119E0: 84, + 0x11A01: 84, + 0x11A02: 84, + 0x11A03: 84, + 0x11A04: 84, + 0x11A05: 84, + 0x11A06: 84, + 0x11A07: 84, + 0x11A08: 84, + 0x11A09: 84, + 0x11A0A: 84, + 0x11A33: 84, + 0x11A34: 84, + 0x11A35: 84, + 0x11A36: 84, + 0x11A37: 84, + 0x11A38: 84, + 0x11A3B: 84, + 0x11A3C: 84, + 0x11A3D: 84, + 0x11A3E: 84, + 0x11A47: 84, + 0x11A51: 84, + 0x11A52: 84, + 0x11A53: 84, + 0x11A54: 84, + 0x11A55: 84, + 0x11A56: 84, + 0x11A59: 84, + 0x11A5A: 84, + 0x11A5B: 84, + 0x11A8A: 84, + 0x11A8B: 84, + 0x11A8C: 84, + 0x11A8D: 84, + 0x11A8E: 84, + 0x11A8F: 84, + 0x11A90: 84, + 0x11A91: 84, + 0x11A92: 84, + 0x11A93: 84, + 0x11A94: 84, + 0x11A95: 84, + 0x11A96: 84, + 0x11A98: 84, + 0x11A99: 84, + 0x11C30: 84, + 0x11C31: 84, + 0x11C32: 84, + 0x11C33: 84, + 0x11C34: 84, + 0x11C35: 84, + 0x11C36: 84, + 0x11C38: 84, + 0x11C39: 84, + 0x11C3A: 84, + 0x11C3B: 84, + 0x11C3C: 84, + 0x11C3D: 84, + 0x11C3F: 84, + 0x11C92: 84, + 0x11C93: 84, + 0x11C94: 84, + 0x11C95: 84, + 0x11C96: 84, + 0x11C97: 84, + 0x11C98: 84, + 0x11C99: 84, + 0x11C9A: 84, + 0x11C9B: 84, + 0x11C9C: 84, + 0x11C9D: 84, + 0x11C9E: 84, + 0x11C9F: 84, + 0x11CA0: 84, + 0x11CA1: 84, + 0x11CA2: 84, + 0x11CA3: 84, + 0x11CA4: 84, + 0x11CA5: 84, + 0x11CA6: 84, + 0x11CA7: 84, + 0x11CAA: 84, + 0x11CAB: 84, + 0x11CAC: 84, + 0x11CAD: 84, + 0x11CAE: 84, + 0x11CAF: 84, + 0x11CB0: 84, + 0x11CB2: 84, + 0x11CB3: 84, + 0x11CB5: 84, + 0x11CB6: 84, + 0x11D31: 84, + 0x11D32: 84, + 0x11D33: 84, + 0x11D34: 84, + 0x11D35: 84, + 0x11D36: 84, + 0x11D3A: 84, + 0x11D3C: 84, + 0x11D3D: 84, + 0x11D3F: 84, + 0x11D40: 84, + 0x11D41: 84, + 0x11D42: 84, + 0x11D43: 84, + 0x11D44: 84, + 0x11D45: 84, + 0x11D47: 84, + 0x11D90: 84, + 0x11D91: 84, + 0x11D95: 84, + 0x11D97: 84, + 0x11EF3: 84, + 0x11EF4: 84, + 0x11F00: 84, + 0x11F01: 84, + 0x11F36: 84, + 0x11F37: 84, + 0x11F38: 84, + 0x11F39: 84, + 0x11F3A: 84, + 0x11F40: 84, + 0x11F42: 84, + 0x11F5A: 84, + 0x13430: 84, + 0x13431: 84, + 0x13432: 84, + 0x13433: 84, + 0x13434: 84, + 0x13435: 84, + 0x13436: 84, + 0x13437: 84, + 0x13438: 84, + 0x13439: 84, + 0x1343A: 84, + 0x1343B: 84, + 0x1343C: 84, + 0x1343D: 84, + 0x1343E: 84, + 0x1343F: 84, + 0x13440: 84, + 0x13447: 84, + 0x13448: 84, + 0x13449: 84, + 0x1344A: 84, + 0x1344B: 84, + 0x1344C: 84, + 0x1344D: 84, + 0x1344E: 84, + 0x1344F: 84, + 0x13450: 84, + 0x13451: 84, + 0x13452: 84, + 0x13453: 84, + 0x13454: 84, + 0x13455: 84, + 0x1611E: 84, + 0x1611F: 84, + 0x16120: 84, + 0x16121: 84, + 0x16122: 84, + 0x16123: 84, + 0x16124: 84, + 0x16125: 84, + 0x16126: 84, + 0x16127: 84, + 0x16128: 84, + 0x16129: 84, + 0x1612D: 84, + 0x1612E: 84, + 0x1612F: 84, + 0x16AF0: 84, + 0x16AF1: 84, + 0x16AF2: 84, + 0x16AF3: 84, + 0x16AF4: 84, + 0x16B30: 84, + 0x16B31: 84, + 0x16B32: 84, + 0x16B33: 84, + 0x16B34: 84, + 0x16B35: 84, + 0x16B36: 84, + 0x16F4F: 84, + 0x16F8F: 84, + 0x16F90: 84, + 0x16F91: 84, + 0x16F92: 84, + 0x16FE4: 84, + 0x1BC9D: 84, + 0x1BC9E: 84, + 0x1BCA0: 84, + 0x1BCA1: 84, + 0x1BCA2: 84, + 0x1BCA3: 84, + 0x1CF00: 84, + 0x1CF01: 84, + 0x1CF02: 84, + 0x1CF03: 84, + 0x1CF04: 84, + 0x1CF05: 84, + 0x1CF06: 84, + 0x1CF07: 84, + 0x1CF08: 84, + 0x1CF09: 84, + 0x1CF0A: 84, + 0x1CF0B: 84, + 0x1CF0C: 84, + 0x1CF0D: 84, + 0x1CF0E: 84, + 0x1CF0F: 84, + 0x1CF10: 84, + 0x1CF11: 84, + 0x1CF12: 84, + 0x1CF13: 84, + 0x1CF14: 84, + 0x1CF15: 84, + 0x1CF16: 84, + 0x1CF17: 84, + 0x1CF18: 84, + 0x1CF19: 84, + 0x1CF1A: 84, + 0x1CF1B: 84, + 0x1CF1C: 84, + 0x1CF1D: 84, + 0x1CF1E: 84, + 0x1CF1F: 84, + 0x1CF20: 84, + 0x1CF21: 84, + 0x1CF22: 84, + 0x1CF23: 84, + 0x1CF24: 84, + 0x1CF25: 84, + 0x1CF26: 84, + 0x1CF27: 84, + 0x1CF28: 84, + 0x1CF29: 84, + 0x1CF2A: 84, + 0x1CF2B: 84, + 0x1CF2C: 84, + 0x1CF2D: 84, + 0x1CF30: 84, + 0x1CF31: 84, + 0x1CF32: 84, + 0x1CF33: 84, + 0x1CF34: 84, + 0x1CF35: 84, + 0x1CF36: 84, + 0x1CF37: 84, + 0x1CF38: 84, + 0x1CF39: 84, + 0x1CF3A: 84, + 0x1CF3B: 84, + 0x1CF3C: 84, + 0x1CF3D: 84, + 0x1CF3E: 84, + 0x1CF3F: 84, + 0x1CF40: 84, + 0x1CF41: 84, + 0x1CF42: 84, + 0x1CF43: 84, + 0x1CF44: 84, + 0x1CF45: 84, + 0x1CF46: 84, + 0x1D167: 84, + 0x1D168: 84, + 0x1D169: 84, + 0x1D173: 84, + 0x1D174: 84, + 0x1D175: 84, + 0x1D176: 84, + 0x1D177: 84, + 0x1D178: 84, + 0x1D179: 84, + 0x1D17A: 84, + 0x1D17B: 84, + 0x1D17C: 84, + 0x1D17D: 84, + 0x1D17E: 84, + 0x1D17F: 84, + 0x1D180: 84, + 0x1D181: 84, + 0x1D182: 84, + 0x1D185: 84, + 0x1D186: 84, + 0x1D187: 84, + 0x1D188: 84, + 0x1D189: 84, + 0x1D18A: 84, + 0x1D18B: 84, + 0x1D1AA: 84, + 0x1D1AB: 84, + 0x1D1AC: 84, + 0x1D1AD: 84, + 0x1D242: 84, + 0x1D243: 84, + 0x1D244: 84, + 0x1DA00: 84, + 0x1DA01: 84, + 0x1DA02: 84, + 0x1DA03: 84, + 0x1DA04: 84, + 0x1DA05: 84, + 0x1DA06: 84, + 0x1DA07: 84, + 0x1DA08: 84, + 0x1DA09: 84, + 0x1DA0A: 84, + 0x1DA0B: 84, + 0x1DA0C: 84, + 0x1DA0D: 84, + 0x1DA0E: 84, + 0x1DA0F: 84, + 0x1DA10: 84, + 0x1DA11: 84, + 0x1DA12: 84, + 0x1DA13: 84, + 0x1DA14: 84, + 0x1DA15: 84, + 0x1DA16: 84, + 0x1DA17: 84, + 0x1DA18: 84, + 0x1DA19: 84, + 0x1DA1A: 84, + 0x1DA1B: 84, + 0x1DA1C: 84, + 0x1DA1D: 84, + 0x1DA1E: 84, + 0x1DA1F: 84, + 0x1DA20: 84, + 0x1DA21: 84, + 0x1DA22: 84, + 0x1DA23: 84, + 0x1DA24: 84, + 0x1DA25: 84, + 0x1DA26: 84, + 0x1DA27: 84, + 0x1DA28: 84, + 0x1DA29: 84, + 0x1DA2A: 84, + 0x1DA2B: 84, + 0x1DA2C: 84, + 0x1DA2D: 84, + 0x1DA2E: 84, + 0x1DA2F: 84, + 0x1DA30: 84, + 0x1DA31: 84, + 0x1DA32: 84, + 0x1DA33: 84, + 0x1DA34: 84, + 0x1DA35: 84, + 0x1DA36: 84, + 0x1DA3B: 84, + 0x1DA3C: 84, + 0x1DA3D: 84, + 0x1DA3E: 84, + 0x1DA3F: 84, + 0x1DA40: 84, + 0x1DA41: 84, + 0x1DA42: 84, + 0x1DA43: 84, + 0x1DA44: 84, + 0x1DA45: 84, + 0x1DA46: 84, + 0x1DA47: 84, + 0x1DA48: 84, + 0x1DA49: 84, + 0x1DA4A: 84, + 0x1DA4B: 84, + 0x1DA4C: 84, + 0x1DA4D: 84, + 0x1DA4E: 84, + 0x1DA4F: 84, + 0x1DA50: 84, + 0x1DA51: 84, + 0x1DA52: 84, + 0x1DA53: 84, + 0x1DA54: 84, + 0x1DA55: 84, + 0x1DA56: 84, + 0x1DA57: 84, + 0x1DA58: 84, + 0x1DA59: 84, + 0x1DA5A: 84, + 0x1DA5B: 84, + 0x1DA5C: 84, + 0x1DA5D: 84, + 0x1DA5E: 84, + 0x1DA5F: 84, + 0x1DA60: 84, + 0x1DA61: 84, + 0x1DA62: 84, + 0x1DA63: 84, + 0x1DA64: 84, + 0x1DA65: 84, + 0x1DA66: 84, + 0x1DA67: 84, + 0x1DA68: 84, + 0x1DA69: 84, + 0x1DA6A: 84, + 0x1DA6B: 84, + 0x1DA6C: 84, + 0x1DA75: 84, + 0x1DA84: 84, + 0x1DA9B: 84, + 0x1DA9C: 84, + 0x1DA9D: 84, + 0x1DA9E: 84, + 0x1DA9F: 84, + 0x1DAA1: 84, + 0x1DAA2: 84, + 0x1DAA3: 84, + 0x1DAA4: 84, + 0x1DAA5: 84, + 0x1DAA6: 84, + 0x1DAA7: 84, + 0x1DAA8: 84, + 0x1DAA9: 84, + 0x1DAAA: 84, + 0x1DAAB: 84, + 0x1DAAC: 84, + 0x1DAAD: 84, + 0x1DAAE: 84, + 0x1DAAF: 84, + 0x1E000: 84, + 0x1E001: 84, + 0x1E002: 84, + 0x1E003: 84, + 0x1E004: 84, + 0x1E005: 84, + 0x1E006: 84, + 0x1E008: 84, + 0x1E009: 84, + 0x1E00A: 84, + 0x1E00B: 84, + 0x1E00C: 84, + 0x1E00D: 84, + 0x1E00E: 84, + 0x1E00F: 84, + 0x1E010: 84, + 0x1E011: 84, + 0x1E012: 84, + 0x1E013: 84, + 0x1E014: 84, + 0x1E015: 84, + 0x1E016: 84, + 0x1E017: 84, + 0x1E018: 84, + 0x1E01B: 84, + 0x1E01C: 84, + 0x1E01D: 84, + 0x1E01E: 84, + 0x1E01F: 84, + 0x1E020: 84, + 0x1E021: 84, + 0x1E023: 84, + 0x1E024: 84, + 0x1E026: 84, + 0x1E027: 84, + 0x1E028: 84, + 0x1E029: 84, + 0x1E02A: 84, + 0x1E08F: 84, + 0x1E130: 84, + 0x1E131: 84, + 0x1E132: 84, + 0x1E133: 84, + 0x1E134: 84, + 0x1E135: 84, + 0x1E136: 84, + 0x1E2AE: 84, + 0x1E2EC: 84, + 0x1E2ED: 84, + 0x1E2EE: 84, + 0x1E2EF: 84, + 0x1E4EC: 84, + 0x1E4ED: 84, + 0x1E4EE: 84, + 0x1E4EF: 84, + 0x1E5EE: 84, + 0x1E5EF: 84, + 0x1E8D0: 84, + 0x1E8D1: 84, + 0x1E8D2: 84, + 0x1E8D3: 84, + 0x1E8D4: 84, + 0x1E8D5: 84, + 0x1E8D6: 84, + 0x1E900: 68, + 0x1E901: 68, + 0x1E902: 68, + 0x1E903: 68, + 0x1E904: 68, + 0x1E905: 68, + 0x1E906: 68, + 0x1E907: 68, + 0x1E908: 68, + 0x1E909: 68, + 0x1E90A: 68, + 0x1E90B: 68, + 0x1E90C: 68, + 0x1E90D: 68, + 0x1E90E: 68, + 0x1E90F: 68, + 0x1E910: 68, + 0x1E911: 68, + 0x1E912: 68, + 0x1E913: 68, + 0x1E914: 68, + 0x1E915: 68, + 0x1E916: 68, + 0x1E917: 68, + 0x1E918: 68, + 0x1E919: 68, + 0x1E91A: 68, + 0x1E91B: 68, + 0x1E91C: 68, + 0x1E91D: 68, + 0x1E91E: 68, + 0x1E91F: 68, + 0x1E920: 68, + 0x1E921: 68, + 0x1E922: 68, + 0x1E923: 68, + 0x1E924: 68, + 0x1E925: 68, + 0x1E926: 68, + 0x1E927: 68, + 0x1E928: 68, + 0x1E929: 68, + 0x1E92A: 68, + 0x1E92B: 68, + 0x1E92C: 68, + 0x1E92D: 68, + 0x1E92E: 68, + 0x1E92F: 68, + 0x1E930: 68, + 0x1E931: 68, + 0x1E932: 68, + 0x1E933: 68, + 0x1E934: 68, + 0x1E935: 68, + 0x1E936: 68, + 0x1E937: 68, + 0x1E938: 68, + 0x1E939: 68, + 0x1E93A: 68, + 0x1E93B: 68, + 0x1E93C: 68, + 0x1E93D: 68, + 0x1E93E: 68, + 0x1E93F: 68, + 0x1E940: 68, + 0x1E941: 68, + 0x1E942: 68, + 0x1E943: 68, + 0x1E944: 84, + 0x1E945: 84, + 0x1E946: 84, + 0x1E947: 84, + 0x1E948: 84, + 0x1E949: 84, + 0x1E94A: 84, + 0x1E94B: 84, + 0xE0001: 84, + 0xE0020: 84, + 0xE0021: 84, + 0xE0022: 84, + 0xE0023: 84, + 0xE0024: 84, + 0xE0025: 84, + 0xE0026: 84, + 0xE0027: 84, + 0xE0028: 84, + 0xE0029: 84, + 0xE002A: 84, + 0xE002B: 84, + 0xE002C: 84, + 0xE002D: 84, + 0xE002E: 84, + 0xE002F: 84, + 0xE0030: 84, + 0xE0031: 84, + 0xE0032: 84, + 0xE0033: 84, + 0xE0034: 84, + 0xE0035: 84, + 0xE0036: 84, + 0xE0037: 84, + 0xE0038: 84, + 0xE0039: 84, + 0xE003A: 84, + 0xE003B: 84, + 0xE003C: 84, + 0xE003D: 84, + 0xE003E: 84, + 0xE003F: 84, + 0xE0040: 84, + 0xE0041: 84, + 0xE0042: 84, + 0xE0043: 84, + 0xE0044: 84, + 0xE0045: 84, + 0xE0046: 84, + 0xE0047: 84, + 0xE0048: 84, + 0xE0049: 84, + 0xE004A: 84, + 0xE004B: 84, + 0xE004C: 84, + 0xE004D: 84, + 0xE004E: 84, + 0xE004F: 84, + 0xE0050: 84, + 0xE0051: 84, + 0xE0052: 84, + 0xE0053: 84, + 0xE0054: 84, + 0xE0055: 84, + 0xE0056: 84, + 0xE0057: 84, + 0xE0058: 84, + 0xE0059: 84, + 0xE005A: 84, + 0xE005B: 84, + 0xE005C: 84, + 0xE005D: 84, + 0xE005E: 84, + 0xE005F: 84, + 0xE0060: 84, + 0xE0061: 84, + 0xE0062: 84, + 0xE0063: 84, + 0xE0064: 84, + 0xE0065: 84, + 0xE0066: 84, + 0xE0067: 84, + 0xE0068: 84, + 0xE0069: 84, + 0xE006A: 84, + 0xE006B: 84, + 0xE006C: 84, + 0xE006D: 84, + 0xE006E: 84, + 0xE006F: 84, + 0xE0070: 84, + 0xE0071: 84, + 0xE0072: 84, + 0xE0073: 84, + 0xE0074: 84, + 0xE0075: 84, + 0xE0076: 84, + 0xE0077: 84, + 0xE0078: 84, + 0xE0079: 84, + 0xE007A: 84, + 0xE007B: 84, + 0xE007C: 84, + 0xE007D: 84, + 0xE007E: 84, + 0xE007F: 84, + 0xE0100: 84, + 0xE0101: 84, + 0xE0102: 84, + 0xE0103: 84, + 0xE0104: 84, + 0xE0105: 84, + 0xE0106: 84, + 0xE0107: 84, + 0xE0108: 84, + 0xE0109: 84, + 0xE010A: 84, + 0xE010B: 84, + 0xE010C: 84, + 0xE010D: 84, + 0xE010E: 84, + 0xE010F: 84, + 0xE0110: 84, + 0xE0111: 84, + 0xE0112: 84, + 0xE0113: 84, + 0xE0114: 84, + 0xE0115: 84, + 0xE0116: 84, + 0xE0117: 84, + 0xE0118: 84, + 0xE0119: 84, + 0xE011A: 84, + 0xE011B: 84, + 0xE011C: 84, + 0xE011D: 84, + 0xE011E: 84, + 0xE011F: 84, + 0xE0120: 84, + 0xE0121: 84, + 0xE0122: 84, + 0xE0123: 84, + 0xE0124: 84, + 0xE0125: 84, + 0xE0126: 84, + 0xE0127: 84, + 0xE0128: 84, + 0xE0129: 84, + 0xE012A: 84, + 0xE012B: 84, + 0xE012C: 84, + 0xE012D: 84, + 0xE012E: 84, + 0xE012F: 84, + 0xE0130: 84, + 0xE0131: 84, + 0xE0132: 84, + 0xE0133: 84, + 0xE0134: 84, + 0xE0135: 84, + 0xE0136: 84, + 0xE0137: 84, + 0xE0138: 84, + 0xE0139: 84, + 0xE013A: 84, + 0xE013B: 84, + 0xE013C: 84, + 0xE013D: 84, + 0xE013E: 84, + 0xE013F: 84, + 0xE0140: 84, + 0xE0141: 84, + 0xE0142: 84, + 0xE0143: 84, + 0xE0144: 84, + 0xE0145: 84, + 0xE0146: 84, + 0xE0147: 84, + 0xE0148: 84, + 0xE0149: 84, + 0xE014A: 84, + 0xE014B: 84, + 0xE014C: 84, + 0xE014D: 84, + 0xE014E: 84, + 0xE014F: 84, + 0xE0150: 84, + 0xE0151: 84, + 0xE0152: 84, + 0xE0153: 84, + 0xE0154: 84, + 0xE0155: 84, + 0xE0156: 84, + 0xE0157: 84, + 0xE0158: 84, + 0xE0159: 84, + 0xE015A: 84, + 0xE015B: 84, + 0xE015C: 84, + 0xE015D: 84, + 0xE015E: 84, + 0xE015F: 84, + 0xE0160: 84, + 0xE0161: 84, + 0xE0162: 84, + 0xE0163: 84, + 0xE0164: 84, + 0xE0165: 84, + 0xE0166: 84, + 0xE0167: 84, + 0xE0168: 84, + 0xE0169: 84, + 0xE016A: 84, + 0xE016B: 84, + 0xE016C: 84, + 0xE016D: 84, + 0xE016E: 84, + 0xE016F: 84, + 0xE0170: 84, + 0xE0171: 84, + 0xE0172: 84, + 0xE0173: 84, + 0xE0174: 84, + 0xE0175: 84, + 0xE0176: 84, + 0xE0177: 84, + 0xE0178: 84, + 0xE0179: 84, + 0xE017A: 84, + 0xE017B: 84, + 0xE017C: 84, + 0xE017D: 84, + 0xE017E: 84, + 0xE017F: 84, + 0xE0180: 84, + 0xE0181: 84, + 0xE0182: 84, + 0xE0183: 84, + 0xE0184: 84, + 0xE0185: 84, + 0xE0186: 84, + 0xE0187: 84, + 0xE0188: 84, + 0xE0189: 84, + 0xE018A: 84, + 0xE018B: 84, + 0xE018C: 84, + 0xE018D: 84, + 0xE018E: 84, + 0xE018F: 84, + 0xE0190: 84, + 0xE0191: 84, + 0xE0192: 84, + 0xE0193: 84, + 0xE0194: 84, + 0xE0195: 84, + 0xE0196: 84, + 0xE0197: 84, + 0xE0198: 84, + 0xE0199: 84, + 0xE019A: 84, + 0xE019B: 84, + 0xE019C: 84, + 0xE019D: 84, + 0xE019E: 84, + 0xE019F: 84, + 0xE01A0: 84, + 0xE01A1: 84, + 0xE01A2: 84, + 0xE01A3: 84, + 0xE01A4: 84, + 0xE01A5: 84, + 0xE01A6: 84, + 0xE01A7: 84, + 0xE01A8: 84, + 0xE01A9: 84, + 0xE01AA: 84, + 0xE01AB: 84, + 0xE01AC: 84, + 0xE01AD: 84, + 0xE01AE: 84, + 0xE01AF: 84, + 0xE01B0: 84, + 0xE01B1: 84, + 0xE01B2: 84, + 0xE01B3: 84, + 0xE01B4: 84, + 0xE01B5: 84, + 0xE01B6: 84, + 0xE01B7: 84, + 0xE01B8: 84, + 0xE01B9: 84, + 0xE01BA: 84, + 0xE01BB: 84, + 0xE01BC: 84, + 0xE01BD: 84, + 0xE01BE: 84, + 0xE01BF: 84, + 0xE01C0: 84, + 0xE01C1: 84, + 0xE01C2: 84, + 0xE01C3: 84, + 0xE01C4: 84, + 0xE01C5: 84, + 0xE01C6: 84, + 0xE01C7: 84, + 0xE01C8: 84, + 0xE01C9: 84, + 0xE01CA: 84, + 0xE01CB: 84, + 0xE01CC: 84, + 0xE01CD: 84, + 0xE01CE: 84, + 0xE01CF: 84, + 0xE01D0: 84, + 0xE01D1: 84, + 0xE01D2: 84, + 0xE01D3: 84, + 0xE01D4: 84, + 0xE01D5: 84, + 0xE01D6: 84, + 0xE01D7: 84, + 0xE01D8: 84, + 0xE01D9: 84, + 0xE01DA: 84, + 0xE01DB: 84, + 0xE01DC: 84, + 0xE01DD: 84, + 0xE01DE: 84, + 0xE01DF: 84, + 0xE01E0: 84, + 0xE01E1: 84, + 0xE01E2: 84, + 0xE01E3: 84, + 0xE01E4: 84, + 0xE01E5: 84, + 0xE01E6: 84, + 0xE01E7: 84, + 0xE01E8: 84, + 0xE01E9: 84, + 0xE01EA: 84, + 0xE01EB: 84, + 0xE01EC: 84, + 0xE01ED: 84, + 0xE01EE: 84, + 0xE01EF: 84, +} +codepoint_classes = { + "PVALID": ( + 0x2D0000002E, + 0x300000003A, + 0x610000007B, + 0xDF000000F7, + 0xF800000100, + 0x10100000102, + 0x10300000104, + 0x10500000106, + 0x10700000108, + 0x1090000010A, + 0x10B0000010C, + 0x10D0000010E, + 0x10F00000110, + 0x11100000112, + 0x11300000114, + 0x11500000116, + 0x11700000118, + 0x1190000011A, + 0x11B0000011C, + 0x11D0000011E, + 0x11F00000120, + 0x12100000122, + 0x12300000124, + 0x12500000126, + 0x12700000128, + 0x1290000012A, + 0x12B0000012C, + 0x12D0000012E, + 0x12F00000130, + 0x13100000132, + 0x13500000136, + 0x13700000139, + 0x13A0000013B, + 0x13C0000013D, + 0x13E0000013F, + 0x14200000143, + 0x14400000145, + 0x14600000147, + 0x14800000149, + 0x14B0000014C, + 0x14D0000014E, + 0x14F00000150, + 0x15100000152, + 0x15300000154, + 0x15500000156, + 0x15700000158, + 0x1590000015A, + 0x15B0000015C, + 0x15D0000015E, + 0x15F00000160, + 0x16100000162, + 0x16300000164, + 0x16500000166, + 0x16700000168, + 0x1690000016A, + 0x16B0000016C, + 0x16D0000016E, + 0x16F00000170, + 0x17100000172, + 0x17300000174, + 0x17500000176, + 0x17700000178, + 0x17A0000017B, + 0x17C0000017D, + 0x17E0000017F, + 0x18000000181, + 0x18300000184, + 0x18500000186, + 0x18800000189, + 0x18C0000018E, + 0x19200000193, + 0x19500000196, + 0x1990000019C, + 0x19E0000019F, + 0x1A1000001A2, + 0x1A3000001A4, + 0x1A5000001A6, + 0x1A8000001A9, + 0x1AA000001AC, + 0x1AD000001AE, + 0x1B0000001B1, + 0x1B4000001B5, + 0x1B6000001B7, + 0x1B9000001BC, + 0x1BD000001C4, + 0x1CE000001CF, + 0x1D0000001D1, + 0x1D2000001D3, + 0x1D4000001D5, + 0x1D6000001D7, + 0x1D8000001D9, + 0x1DA000001DB, + 0x1DC000001DE, + 0x1DF000001E0, + 0x1E1000001E2, + 0x1E3000001E4, + 0x1E5000001E6, + 0x1E7000001E8, + 0x1E9000001EA, + 0x1EB000001EC, + 0x1ED000001EE, + 0x1EF000001F1, + 0x1F5000001F6, + 0x1F9000001FA, + 0x1FB000001FC, + 0x1FD000001FE, + 0x1FF00000200, + 0x20100000202, + 0x20300000204, + 0x20500000206, + 0x20700000208, + 0x2090000020A, + 0x20B0000020C, + 0x20D0000020E, + 0x20F00000210, + 0x21100000212, + 0x21300000214, + 0x21500000216, + 0x21700000218, + 0x2190000021A, + 0x21B0000021C, + 0x21D0000021E, + 0x21F00000220, + 0x22100000222, + 0x22300000224, + 0x22500000226, + 0x22700000228, + 0x2290000022A, + 0x22B0000022C, + 0x22D0000022E, + 0x22F00000230, + 0x23100000232, + 0x2330000023A, + 0x23C0000023D, + 0x23F00000241, + 0x24200000243, + 0x24700000248, + 0x2490000024A, + 0x24B0000024C, + 0x24D0000024E, + 0x24F000002B0, + 0x2B9000002C2, + 0x2C6000002D2, + 0x2EC000002ED, + 0x2EE000002EF, + 0x30000000340, + 0x34200000343, + 0x3460000034F, + 0x35000000370, + 0x37100000372, + 0x37300000374, + 0x37700000378, + 0x37B0000037E, + 0x39000000391, + 0x3AC000003CF, + 0x3D7000003D8, + 0x3D9000003DA, + 0x3DB000003DC, + 0x3DD000003DE, + 0x3DF000003E0, + 0x3E1000003E2, + 0x3E3000003E4, + 0x3E5000003E6, + 0x3E7000003E8, + 0x3E9000003EA, + 0x3EB000003EC, + 0x3ED000003EE, + 0x3EF000003F0, + 0x3F3000003F4, + 0x3F8000003F9, + 0x3FB000003FD, + 0x43000000460, + 0x46100000462, + 0x46300000464, + 0x46500000466, + 0x46700000468, + 0x4690000046A, + 0x46B0000046C, + 0x46D0000046E, + 0x46F00000470, + 0x47100000472, + 0x47300000474, + 0x47500000476, + 0x47700000478, + 0x4790000047A, + 0x47B0000047C, + 0x47D0000047E, + 0x47F00000480, + 0x48100000482, + 0x48300000488, + 0x48B0000048C, + 0x48D0000048E, + 0x48F00000490, + 0x49100000492, + 0x49300000494, + 0x49500000496, + 0x49700000498, + 0x4990000049A, + 0x49B0000049C, + 0x49D0000049E, + 0x49F000004A0, + 0x4A1000004A2, + 0x4A3000004A4, + 0x4A5000004A6, + 0x4A7000004A8, + 0x4A9000004AA, + 0x4AB000004AC, + 0x4AD000004AE, + 0x4AF000004B0, + 0x4B1000004B2, + 0x4B3000004B4, + 0x4B5000004B6, + 0x4B7000004B8, + 0x4B9000004BA, + 0x4BB000004BC, + 0x4BD000004BE, + 0x4BF000004C0, + 0x4C2000004C3, + 0x4C4000004C5, + 0x4C6000004C7, + 0x4C8000004C9, + 0x4CA000004CB, + 0x4CC000004CD, + 0x4CE000004D0, + 0x4D1000004D2, + 0x4D3000004D4, + 0x4D5000004D6, + 0x4D7000004D8, + 0x4D9000004DA, + 0x4DB000004DC, + 0x4DD000004DE, + 0x4DF000004E0, + 0x4E1000004E2, + 0x4E3000004E4, + 0x4E5000004E6, + 0x4E7000004E8, + 0x4E9000004EA, + 0x4EB000004EC, + 0x4ED000004EE, + 0x4EF000004F0, + 0x4F1000004F2, + 0x4F3000004F4, + 0x4F5000004F6, + 0x4F7000004F8, + 0x4F9000004FA, + 0x4FB000004FC, + 0x4FD000004FE, + 0x4FF00000500, + 0x50100000502, + 0x50300000504, + 0x50500000506, + 0x50700000508, + 0x5090000050A, + 0x50B0000050C, + 0x50D0000050E, + 0x50F00000510, + 0x51100000512, + 0x51300000514, + 0x51500000516, + 0x51700000518, + 0x5190000051A, + 0x51B0000051C, + 0x51D0000051E, + 0x51F00000520, + 0x52100000522, + 0x52300000524, + 0x52500000526, + 0x52700000528, + 0x5290000052A, + 0x52B0000052C, + 0x52D0000052E, + 0x52F00000530, + 0x5590000055A, + 0x56000000587, + 0x58800000589, + 0x591000005BE, + 0x5BF000005C0, + 0x5C1000005C3, + 0x5C4000005C6, + 0x5C7000005C8, + 0x5D0000005EB, + 0x5EF000005F3, + 0x6100000061B, + 0x62000000640, + 0x64100000660, + 0x66E00000675, + 0x679000006D4, + 0x6D5000006DD, + 0x6DF000006E9, + 0x6EA000006F0, + 0x6FA00000700, + 0x7100000074B, + 0x74D000007B2, + 0x7C0000007F6, + 0x7FD000007FE, + 0x8000000082E, + 0x8400000085C, + 0x8600000086B, + 0x87000000888, + 0x8890000088F, + 0x897000008E2, + 0x8E300000958, + 0x96000000964, + 0x96600000970, + 0x97100000984, + 0x9850000098D, + 0x98F00000991, + 0x993000009A9, + 0x9AA000009B1, + 0x9B2000009B3, + 0x9B6000009BA, + 0x9BC000009C5, + 0x9C7000009C9, + 0x9CB000009CF, + 0x9D7000009D8, + 0x9E0000009E4, + 0x9E6000009F2, + 0x9FC000009FD, + 0x9FE000009FF, + 0xA0100000A04, + 0xA0500000A0B, + 0xA0F00000A11, + 0xA1300000A29, + 0xA2A00000A31, + 0xA3200000A33, + 0xA3500000A36, + 0xA3800000A3A, + 0xA3C00000A3D, + 0xA3E00000A43, + 0xA4700000A49, + 0xA4B00000A4E, + 0xA5100000A52, + 0xA5C00000A5D, + 0xA6600000A76, + 0xA8100000A84, + 0xA8500000A8E, + 0xA8F00000A92, + 0xA9300000AA9, + 0xAAA00000AB1, + 0xAB200000AB4, + 0xAB500000ABA, + 0xABC00000AC6, + 0xAC700000ACA, + 0xACB00000ACE, + 0xAD000000AD1, + 0xAE000000AE4, + 0xAE600000AF0, + 0xAF900000B00, + 0xB0100000B04, + 0xB0500000B0D, + 0xB0F00000B11, + 0xB1300000B29, + 0xB2A00000B31, + 0xB3200000B34, + 0xB3500000B3A, + 0xB3C00000B45, + 0xB4700000B49, + 0xB4B00000B4E, + 0xB5500000B58, + 0xB5F00000B64, + 0xB6600000B70, + 0xB7100000B72, + 0xB8200000B84, + 0xB8500000B8B, + 0xB8E00000B91, + 0xB9200000B96, + 0xB9900000B9B, + 0xB9C00000B9D, + 0xB9E00000BA0, + 0xBA300000BA5, + 0xBA800000BAB, + 0xBAE00000BBA, + 0xBBE00000BC3, + 0xBC600000BC9, + 0xBCA00000BCE, + 0xBD000000BD1, + 0xBD700000BD8, + 0xBE600000BF0, + 0xC0000000C0D, + 0xC0E00000C11, + 0xC1200000C29, + 0xC2A00000C3A, + 0xC3C00000C45, + 0xC4600000C49, + 0xC4A00000C4E, + 0xC5500000C57, + 0xC5800000C5B, + 0xC5D00000C5E, + 0xC6000000C64, + 0xC6600000C70, + 0xC8000000C84, + 0xC8500000C8D, + 0xC8E00000C91, + 0xC9200000CA9, + 0xCAA00000CB4, + 0xCB500000CBA, + 0xCBC00000CC5, + 0xCC600000CC9, + 0xCCA00000CCE, + 0xCD500000CD7, + 0xCDD00000CDF, + 0xCE000000CE4, + 0xCE600000CF0, + 0xCF100000CF4, + 0xD0000000D0D, + 0xD0E00000D11, + 0xD1200000D45, + 0xD4600000D49, + 0xD4A00000D4F, + 0xD5400000D58, + 0xD5F00000D64, + 0xD6600000D70, + 0xD7A00000D80, + 0xD8100000D84, + 0xD8500000D97, + 0xD9A00000DB2, + 0xDB300000DBC, + 0xDBD00000DBE, + 0xDC000000DC7, + 0xDCA00000DCB, + 0xDCF00000DD5, + 0xDD600000DD7, + 0xDD800000DE0, + 0xDE600000DF0, + 0xDF200000DF4, + 0xE0100000E33, + 0xE3400000E3B, + 0xE4000000E4F, + 0xE5000000E5A, + 0xE8100000E83, + 0xE8400000E85, + 0xE8600000E8B, + 0xE8C00000EA4, + 0xEA500000EA6, + 0xEA700000EB3, + 0xEB400000EBE, + 0xEC000000EC5, + 0xEC600000EC7, + 0xEC800000ECF, + 0xED000000EDA, + 0xEDE00000EE0, + 0xF0000000F01, + 0xF0B00000F0C, + 0xF1800000F1A, + 0xF2000000F2A, + 0xF3500000F36, + 0xF3700000F38, + 0xF3900000F3A, + 0xF3E00000F43, + 0xF4400000F48, + 0xF4900000F4D, + 0xF4E00000F52, + 0xF5300000F57, + 0xF5800000F5C, + 0xF5D00000F69, + 0xF6A00000F6D, + 0xF7100000F73, + 0xF7400000F75, + 0xF7A00000F81, + 0xF8200000F85, + 0xF8600000F93, + 0xF9400000F98, + 0xF9900000F9D, + 0xF9E00000FA2, + 0xFA300000FA7, + 0xFA800000FAC, + 0xFAD00000FB9, + 0xFBA00000FBD, + 0xFC600000FC7, + 0x10000000104A, + 0x10500000109E, + 0x10D0000010FB, + 0x10FD00001100, + 0x120000001249, + 0x124A0000124E, + 0x125000001257, + 0x125800001259, + 0x125A0000125E, + 0x126000001289, + 0x128A0000128E, + 0x1290000012B1, + 0x12B2000012B6, + 0x12B8000012BF, + 0x12C0000012C1, + 0x12C2000012C6, + 0x12C8000012D7, + 0x12D800001311, + 0x131200001316, + 0x13180000135B, + 0x135D00001360, + 0x138000001390, + 0x13A0000013F6, + 0x14010000166D, + 0x166F00001680, + 0x16810000169B, + 0x16A0000016EB, + 0x16F1000016F9, + 0x170000001716, + 0x171F00001735, + 0x174000001754, + 0x17600000176D, + 0x176E00001771, + 0x177200001774, + 0x1780000017B4, + 0x17B6000017D4, + 0x17D7000017D8, + 0x17DC000017DE, + 0x17E0000017EA, + 0x18100000181A, + 0x182000001879, + 0x1880000018AB, + 0x18B0000018F6, + 0x19000000191F, + 0x19200000192C, + 0x19300000193C, + 0x19460000196E, + 0x197000001975, + 0x1980000019AC, + 0x19B0000019CA, + 0x19D0000019DA, + 0x1A0000001A1C, + 0x1A2000001A5F, + 0x1A6000001A7D, + 0x1A7F00001A8A, + 0x1A9000001A9A, + 0x1AA700001AA8, + 0x1AB000001ABE, + 0x1ABF00001ACF, + 0x1B0000001B4D, + 0x1B5000001B5A, + 0x1B6B00001B74, + 0x1B8000001BF4, + 0x1C0000001C38, + 0x1C4000001C4A, + 0x1C4D00001C7E, + 0x1C8A00001C8B, + 0x1CD000001CD3, + 0x1CD400001CFB, + 0x1D0000001D2C, + 0x1D2F00001D30, + 0x1D3B00001D3C, + 0x1D4E00001D4F, + 0x1D6B00001D78, + 0x1D7900001D9B, + 0x1DC000001E00, + 0x1E0100001E02, + 0x1E0300001E04, + 0x1E0500001E06, + 0x1E0700001E08, + 0x1E0900001E0A, + 0x1E0B00001E0C, + 0x1E0D00001E0E, + 0x1E0F00001E10, + 0x1E1100001E12, + 0x1E1300001E14, + 0x1E1500001E16, + 0x1E1700001E18, + 0x1E1900001E1A, + 0x1E1B00001E1C, + 0x1E1D00001E1E, + 0x1E1F00001E20, + 0x1E2100001E22, + 0x1E2300001E24, + 0x1E2500001E26, + 0x1E2700001E28, + 0x1E2900001E2A, + 0x1E2B00001E2C, + 0x1E2D00001E2E, + 0x1E2F00001E30, + 0x1E3100001E32, + 0x1E3300001E34, + 0x1E3500001E36, + 0x1E3700001E38, + 0x1E3900001E3A, + 0x1E3B00001E3C, + 0x1E3D00001E3E, + 0x1E3F00001E40, + 0x1E4100001E42, + 0x1E4300001E44, + 0x1E4500001E46, + 0x1E4700001E48, + 0x1E4900001E4A, + 0x1E4B00001E4C, + 0x1E4D00001E4E, + 0x1E4F00001E50, + 0x1E5100001E52, + 0x1E5300001E54, + 0x1E5500001E56, + 0x1E5700001E58, + 0x1E5900001E5A, + 0x1E5B00001E5C, + 0x1E5D00001E5E, + 0x1E5F00001E60, + 0x1E6100001E62, + 0x1E6300001E64, + 0x1E6500001E66, + 0x1E6700001E68, + 0x1E6900001E6A, + 0x1E6B00001E6C, + 0x1E6D00001E6E, + 0x1E6F00001E70, + 0x1E7100001E72, + 0x1E7300001E74, + 0x1E7500001E76, + 0x1E7700001E78, + 0x1E7900001E7A, + 0x1E7B00001E7C, + 0x1E7D00001E7E, + 0x1E7F00001E80, + 0x1E8100001E82, + 0x1E8300001E84, + 0x1E8500001E86, + 0x1E8700001E88, + 0x1E8900001E8A, + 0x1E8B00001E8C, + 0x1E8D00001E8E, + 0x1E8F00001E90, + 0x1E9100001E92, + 0x1E9300001E94, + 0x1E9500001E9A, + 0x1E9C00001E9E, + 0x1E9F00001EA0, + 0x1EA100001EA2, + 0x1EA300001EA4, + 0x1EA500001EA6, + 0x1EA700001EA8, + 0x1EA900001EAA, + 0x1EAB00001EAC, + 0x1EAD00001EAE, + 0x1EAF00001EB0, + 0x1EB100001EB2, + 0x1EB300001EB4, + 0x1EB500001EB6, + 0x1EB700001EB8, + 0x1EB900001EBA, + 0x1EBB00001EBC, + 0x1EBD00001EBE, + 0x1EBF00001EC0, + 0x1EC100001EC2, + 0x1EC300001EC4, + 0x1EC500001EC6, + 0x1EC700001EC8, + 0x1EC900001ECA, + 0x1ECB00001ECC, + 0x1ECD00001ECE, + 0x1ECF00001ED0, + 0x1ED100001ED2, + 0x1ED300001ED4, + 0x1ED500001ED6, + 0x1ED700001ED8, + 0x1ED900001EDA, + 0x1EDB00001EDC, + 0x1EDD00001EDE, + 0x1EDF00001EE0, + 0x1EE100001EE2, + 0x1EE300001EE4, + 0x1EE500001EE6, + 0x1EE700001EE8, + 0x1EE900001EEA, + 0x1EEB00001EEC, + 0x1EED00001EEE, + 0x1EEF00001EF0, + 0x1EF100001EF2, + 0x1EF300001EF4, + 0x1EF500001EF6, + 0x1EF700001EF8, + 0x1EF900001EFA, + 0x1EFB00001EFC, + 0x1EFD00001EFE, + 0x1EFF00001F08, + 0x1F1000001F16, + 0x1F2000001F28, + 0x1F3000001F38, + 0x1F4000001F46, + 0x1F5000001F58, + 0x1F6000001F68, + 0x1F7000001F71, + 0x1F7200001F73, + 0x1F7400001F75, + 0x1F7600001F77, + 0x1F7800001F79, + 0x1F7A00001F7B, + 0x1F7C00001F7D, + 0x1FB000001FB2, + 0x1FB600001FB7, + 0x1FC600001FC7, + 0x1FD000001FD3, + 0x1FD600001FD8, + 0x1FE000001FE3, + 0x1FE400001FE8, + 0x1FF600001FF7, + 0x214E0000214F, + 0x218400002185, + 0x2C3000002C60, + 0x2C6100002C62, + 0x2C6500002C67, + 0x2C6800002C69, + 0x2C6A00002C6B, + 0x2C6C00002C6D, + 0x2C7100002C72, + 0x2C7300002C75, + 0x2C7600002C7C, + 0x2C8100002C82, + 0x2C8300002C84, + 0x2C8500002C86, + 0x2C8700002C88, + 0x2C8900002C8A, + 0x2C8B00002C8C, + 0x2C8D00002C8E, + 0x2C8F00002C90, + 0x2C9100002C92, + 0x2C9300002C94, + 0x2C9500002C96, + 0x2C9700002C98, + 0x2C9900002C9A, + 0x2C9B00002C9C, + 0x2C9D00002C9E, + 0x2C9F00002CA0, + 0x2CA100002CA2, + 0x2CA300002CA4, + 0x2CA500002CA6, + 0x2CA700002CA8, + 0x2CA900002CAA, + 0x2CAB00002CAC, + 0x2CAD00002CAE, + 0x2CAF00002CB0, + 0x2CB100002CB2, + 0x2CB300002CB4, + 0x2CB500002CB6, + 0x2CB700002CB8, + 0x2CB900002CBA, + 0x2CBB00002CBC, + 0x2CBD00002CBE, + 0x2CBF00002CC0, + 0x2CC100002CC2, + 0x2CC300002CC4, + 0x2CC500002CC6, + 0x2CC700002CC8, + 0x2CC900002CCA, + 0x2CCB00002CCC, + 0x2CCD00002CCE, + 0x2CCF00002CD0, + 0x2CD100002CD2, + 0x2CD300002CD4, + 0x2CD500002CD6, + 0x2CD700002CD8, + 0x2CD900002CDA, + 0x2CDB00002CDC, + 0x2CDD00002CDE, + 0x2CDF00002CE0, + 0x2CE100002CE2, + 0x2CE300002CE5, + 0x2CEC00002CED, + 0x2CEE00002CF2, + 0x2CF300002CF4, + 0x2D0000002D26, + 0x2D2700002D28, + 0x2D2D00002D2E, + 0x2D3000002D68, + 0x2D7F00002D97, + 0x2DA000002DA7, + 0x2DA800002DAF, + 0x2DB000002DB7, + 0x2DB800002DBF, + 0x2DC000002DC7, + 0x2DC800002DCF, + 0x2DD000002DD7, + 0x2DD800002DDF, + 0x2DE000002E00, + 0x2E2F00002E30, + 0x300500003008, + 0x302A0000302E, + 0x303C0000303D, + 0x304100003097, + 0x30990000309B, + 0x309D0000309F, + 0x30A1000030FB, + 0x30FC000030FF, + 0x310500003130, + 0x31A0000031C0, + 0x31F000003200, + 0x340000004DC0, + 0x4E000000A48D, + 0xA4D00000A4FE, + 0xA5000000A60D, + 0xA6100000A62C, + 0xA6410000A642, + 0xA6430000A644, + 0xA6450000A646, + 0xA6470000A648, + 0xA6490000A64A, + 0xA64B0000A64C, + 0xA64D0000A64E, + 0xA64F0000A650, + 0xA6510000A652, + 0xA6530000A654, + 0xA6550000A656, + 0xA6570000A658, + 0xA6590000A65A, + 0xA65B0000A65C, + 0xA65D0000A65E, + 0xA65F0000A660, + 0xA6610000A662, + 0xA6630000A664, + 0xA6650000A666, + 0xA6670000A668, + 0xA6690000A66A, + 0xA66B0000A66C, + 0xA66D0000A670, + 0xA6740000A67E, + 0xA67F0000A680, + 0xA6810000A682, + 0xA6830000A684, + 0xA6850000A686, + 0xA6870000A688, + 0xA6890000A68A, + 0xA68B0000A68C, + 0xA68D0000A68E, + 0xA68F0000A690, + 0xA6910000A692, + 0xA6930000A694, + 0xA6950000A696, + 0xA6970000A698, + 0xA6990000A69A, + 0xA69B0000A69C, + 0xA69E0000A6E6, + 0xA6F00000A6F2, + 0xA7170000A720, + 0xA7230000A724, + 0xA7250000A726, + 0xA7270000A728, + 0xA7290000A72A, + 0xA72B0000A72C, + 0xA72D0000A72E, + 0xA72F0000A732, + 0xA7330000A734, + 0xA7350000A736, + 0xA7370000A738, + 0xA7390000A73A, + 0xA73B0000A73C, + 0xA73D0000A73E, + 0xA73F0000A740, + 0xA7410000A742, + 0xA7430000A744, + 0xA7450000A746, + 0xA7470000A748, + 0xA7490000A74A, + 0xA74B0000A74C, + 0xA74D0000A74E, + 0xA74F0000A750, + 0xA7510000A752, + 0xA7530000A754, + 0xA7550000A756, + 0xA7570000A758, + 0xA7590000A75A, + 0xA75B0000A75C, + 0xA75D0000A75E, + 0xA75F0000A760, + 0xA7610000A762, + 0xA7630000A764, + 0xA7650000A766, + 0xA7670000A768, + 0xA7690000A76A, + 0xA76B0000A76C, + 0xA76D0000A76E, + 0xA76F0000A770, + 0xA7710000A779, + 0xA77A0000A77B, + 0xA77C0000A77D, + 0xA77F0000A780, + 0xA7810000A782, + 0xA7830000A784, + 0xA7850000A786, + 0xA7870000A789, + 0xA78C0000A78D, + 0xA78E0000A790, + 0xA7910000A792, + 0xA7930000A796, + 0xA7970000A798, + 0xA7990000A79A, + 0xA79B0000A79C, + 0xA79D0000A79E, + 0xA79F0000A7A0, + 0xA7A10000A7A2, + 0xA7A30000A7A4, + 0xA7A50000A7A6, + 0xA7A70000A7A8, + 0xA7A90000A7AA, + 0xA7AF0000A7B0, + 0xA7B50000A7B6, + 0xA7B70000A7B8, + 0xA7B90000A7BA, + 0xA7BB0000A7BC, + 0xA7BD0000A7BE, + 0xA7BF0000A7C0, + 0xA7C10000A7C2, + 0xA7C30000A7C4, + 0xA7C80000A7C9, + 0xA7CA0000A7CB, + 0xA7CD0000A7CE, + 0xA7D10000A7D2, + 0xA7D30000A7D4, + 0xA7D50000A7D6, + 0xA7D70000A7D8, + 0xA7D90000A7DA, + 0xA7DB0000A7DC, + 0xA7F60000A7F8, + 0xA7FA0000A828, + 0xA82C0000A82D, + 0xA8400000A874, + 0xA8800000A8C6, + 0xA8D00000A8DA, + 0xA8E00000A8F8, + 0xA8FB0000A8FC, + 0xA8FD0000A92E, + 0xA9300000A954, + 0xA9800000A9C1, + 0xA9CF0000A9DA, + 0xA9E00000A9FF, + 0xAA000000AA37, + 0xAA400000AA4E, + 0xAA500000AA5A, + 0xAA600000AA77, + 0xAA7A0000AAC3, + 0xAADB0000AADE, + 0xAAE00000AAF0, + 0xAAF20000AAF7, + 0xAB010000AB07, + 0xAB090000AB0F, + 0xAB110000AB17, + 0xAB200000AB27, + 0xAB280000AB2F, + 0xAB300000AB5B, + 0xAB600000AB69, + 0xABC00000ABEB, + 0xABEC0000ABEE, + 0xABF00000ABFA, + 0xAC000000D7A4, + 0xFA0E0000FA10, + 0xFA110000FA12, + 0xFA130000FA15, + 0xFA1F0000FA20, + 0xFA210000FA22, + 0xFA230000FA25, + 0xFA270000FA2A, + 0xFB1E0000FB1F, + 0xFE200000FE30, + 0xFE730000FE74, + 0x100000001000C, + 0x1000D00010027, + 0x100280001003B, + 0x1003C0001003E, + 0x1003F0001004E, + 0x100500001005E, + 0x10080000100FB, + 0x101FD000101FE, + 0x102800001029D, + 0x102A0000102D1, + 0x102E0000102E1, + 0x1030000010320, + 0x1032D00010341, + 0x103420001034A, + 0x103500001037B, + 0x103800001039E, + 0x103A0000103C4, + 0x103C8000103D0, + 0x104280001049E, + 0x104A0000104AA, + 0x104D8000104FC, + 0x1050000010528, + 0x1053000010564, + 0x10597000105A2, + 0x105A3000105B2, + 0x105B3000105BA, + 0x105BB000105BD, + 0x105C0000105F4, + 0x1060000010737, + 0x1074000010756, + 0x1076000010768, + 0x1078000010781, + 0x1080000010806, + 0x1080800010809, + 0x1080A00010836, + 0x1083700010839, + 0x1083C0001083D, + 0x1083F00010856, + 0x1086000010877, + 0x108800001089F, + 0x108E0000108F3, + 0x108F4000108F6, + 0x1090000010916, + 0x109200001093A, + 0x10980000109B8, + 0x109BE000109C0, + 0x10A0000010A04, + 0x10A0500010A07, + 0x10A0C00010A14, + 0x10A1500010A18, + 0x10A1900010A36, + 0x10A3800010A3B, + 0x10A3F00010A40, + 0x10A6000010A7D, + 0x10A8000010A9D, + 0x10AC000010AC8, + 0x10AC900010AE7, + 0x10B0000010B36, + 0x10B4000010B56, + 0x10B6000010B73, + 0x10B8000010B92, + 0x10C0000010C49, + 0x10CC000010CF3, + 0x10D0000010D28, + 0x10D3000010D3A, + 0x10D4000010D50, + 0x10D6900010D6E, + 0x10D6F00010D86, + 0x10E8000010EAA, + 0x10EAB00010EAD, + 0x10EB000010EB2, + 0x10EC200010EC5, + 0x10EFC00010F1D, + 0x10F2700010F28, + 0x10F3000010F51, + 0x10F7000010F86, + 0x10FB000010FC5, + 0x10FE000010FF7, + 0x1100000011047, + 0x1106600011076, + 0x1107F000110BB, + 0x110C2000110C3, + 0x110D0000110E9, + 0x110F0000110FA, + 0x1110000011135, + 0x1113600011140, + 0x1114400011148, + 0x1115000011174, + 0x1117600011177, + 0x11180000111C5, + 0x111C9000111CD, + 0x111CE000111DB, + 0x111DC000111DD, + 0x1120000011212, + 0x1121300011238, + 0x1123E00011242, + 0x1128000011287, + 0x1128800011289, + 0x1128A0001128E, + 0x1128F0001129E, + 0x1129F000112A9, + 0x112B0000112EB, + 0x112F0000112FA, + 0x1130000011304, + 0x113050001130D, + 0x1130F00011311, + 0x1131300011329, + 0x1132A00011331, + 0x1133200011334, + 0x113350001133A, + 0x1133B00011345, + 0x1134700011349, + 0x1134B0001134E, + 0x1135000011351, + 0x1135700011358, + 0x1135D00011364, + 0x113660001136D, + 0x1137000011375, + 0x113800001138A, + 0x1138B0001138C, + 0x1138E0001138F, + 0x11390000113B6, + 0x113B7000113C1, + 0x113C2000113C3, + 0x113C5000113C6, + 0x113C7000113CB, + 0x113CC000113D4, + 0x113E1000113E3, + 0x114000001144B, + 0x114500001145A, + 0x1145E00011462, + 0x11480000114C6, + 0x114C7000114C8, + 0x114D0000114DA, + 0x11580000115B6, + 0x115B8000115C1, + 0x115D8000115DE, + 0x1160000011641, + 0x1164400011645, + 0x116500001165A, + 0x11680000116B9, + 0x116C0000116CA, + 0x116D0000116E4, + 0x117000001171B, + 0x1171D0001172C, + 0x117300001173A, + 0x1174000011747, + 0x118000001183B, + 0x118C0000118EA, + 0x118FF00011907, + 0x119090001190A, + 0x1190C00011914, + 0x1191500011917, + 0x1191800011936, + 0x1193700011939, + 0x1193B00011944, + 0x119500001195A, + 0x119A0000119A8, + 0x119AA000119D8, + 0x119DA000119E2, + 0x119E3000119E5, + 0x11A0000011A3F, + 0x11A4700011A48, + 0x11A5000011A9A, + 0x11A9D00011A9E, + 0x11AB000011AF9, + 0x11BC000011BE1, + 0x11BF000011BFA, + 0x11C0000011C09, + 0x11C0A00011C37, + 0x11C3800011C41, + 0x11C5000011C5A, + 0x11C7200011C90, + 0x11C9200011CA8, + 0x11CA900011CB7, + 0x11D0000011D07, + 0x11D0800011D0A, + 0x11D0B00011D37, + 0x11D3A00011D3B, + 0x11D3C00011D3E, + 0x11D3F00011D48, + 0x11D5000011D5A, + 0x11D6000011D66, + 0x11D6700011D69, + 0x11D6A00011D8F, + 0x11D9000011D92, + 0x11D9300011D99, + 0x11DA000011DAA, + 0x11EE000011EF7, + 0x11F0000011F11, + 0x11F1200011F3B, + 0x11F3E00011F43, + 0x11F5000011F5B, + 0x11FB000011FB1, + 0x120000001239A, + 0x1248000012544, + 0x12F9000012FF1, + 0x1300000013430, + 0x1344000013456, + 0x13460000143FB, + 0x1440000014647, + 0x161000001613A, + 0x1680000016A39, + 0x16A4000016A5F, + 0x16A6000016A6A, + 0x16A7000016ABF, + 0x16AC000016ACA, + 0x16AD000016AEE, + 0x16AF000016AF5, + 0x16B0000016B37, + 0x16B4000016B44, + 0x16B5000016B5A, + 0x16B6300016B78, + 0x16B7D00016B90, + 0x16D4000016D6D, + 0x16D7000016D7A, + 0x16E6000016E80, + 0x16F0000016F4B, + 0x16F4F00016F88, + 0x16F8F00016FA0, + 0x16FE000016FE2, + 0x16FE300016FE5, + 0x16FF000016FF2, + 0x17000000187F8, + 0x1880000018CD6, + 0x18CFF00018D09, + 0x1AFF00001AFF4, + 0x1AFF50001AFFC, + 0x1AFFD0001AFFF, + 0x1B0000001B123, + 0x1B1320001B133, + 0x1B1500001B153, + 0x1B1550001B156, + 0x1B1640001B168, + 0x1B1700001B2FC, + 0x1BC000001BC6B, + 0x1BC700001BC7D, + 0x1BC800001BC89, + 0x1BC900001BC9A, + 0x1BC9D0001BC9F, + 0x1CCF00001CCFA, + 0x1CF000001CF2E, + 0x1CF300001CF47, + 0x1DA000001DA37, + 0x1DA3B0001DA6D, + 0x1DA750001DA76, + 0x1DA840001DA85, + 0x1DA9B0001DAA0, + 0x1DAA10001DAB0, + 0x1DF000001DF1F, + 0x1DF250001DF2B, + 0x1E0000001E007, + 0x1E0080001E019, + 0x1E01B0001E022, + 0x1E0230001E025, + 0x1E0260001E02B, + 0x1E08F0001E090, + 0x1E1000001E12D, + 0x1E1300001E13E, + 0x1E1400001E14A, + 0x1E14E0001E14F, + 0x1E2900001E2AF, + 0x1E2C00001E2FA, + 0x1E4D00001E4FA, + 0x1E5D00001E5FB, + 0x1E7E00001E7E7, + 0x1E7E80001E7EC, + 0x1E7ED0001E7EF, + 0x1E7F00001E7FF, + 0x1E8000001E8C5, + 0x1E8D00001E8D7, + 0x1E9220001E94C, + 0x1E9500001E95A, + 0x200000002A6E0, + 0x2A7000002B73A, + 0x2B7400002B81E, + 0x2B8200002CEA2, + 0x2CEB00002EBE1, + 0x2EBF00002EE5E, + 0x300000003134B, + 0x31350000323B0, + ), + "CONTEXTJ": (0x200C0000200E,), + "CONTEXTO": ( + 0xB7000000B8, + 0x37500000376, + 0x5F3000005F5, + 0x6600000066A, + 0x6F0000006FA, + 0x30FB000030FC, + ), +} diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/intranges.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/intranges.py new file mode 100644 index 0000000000000000000000000000000000000000..7bfaa8d80d7dc471d572db0f949460901126e8bd --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/intranges.py @@ -0,0 +1,57 @@ +""" +Given a list of integers, made up of (hopefully) a small number of long runs +of consecutive integers, compute a representation of the form +((start1, end1), (start2, end2) ...). Then answer the question "was x present +in the original list?" in time O(log(# runs)). +""" + +import bisect +from typing import List, Tuple + + +def intranges_from_list(list_: List[int]) -> Tuple[int, ...]: + """Represent a list of integers as a sequence of ranges: + ((start_0, end_0), (start_1, end_1), ...), such that the original + integers are exactly those x such that start_i <= x < end_i for some i. + + Ranges are encoded as single integers (start << 32 | end), not as tuples. + """ + + sorted_list = sorted(list_) + ranges = [] + last_write = -1 + for i in range(len(sorted_list)): + if i + 1 < len(sorted_list): + if sorted_list[i] == sorted_list[i + 1] - 1: + continue + current_range = sorted_list[last_write + 1 : i + 1] + ranges.append(_encode_range(current_range[0], current_range[-1] + 1)) + last_write = i + + return tuple(ranges) + + +def _encode_range(start: int, end: int) -> int: + return (start << 32) | end + + +def _decode_range(r: int) -> Tuple[int, int]: + return (r >> 32), (r & ((1 << 32) - 1)) + + +def intranges_contain(int_: int, ranges: Tuple[int, ...]) -> bool: + """Determine if `int_` falls into one of the ranges in `ranges`.""" + tuple_ = _encode_range(int_, 0) + pos = bisect.bisect_left(ranges, tuple_) + # we could be immediately ahead of a tuple (start, end) + # with start < int_ <= end + if pos > 0: + left, right = _decode_range(ranges[pos - 1]) + if left <= int_ < right: + return True + # or we could be immediately behind a tuple (int_, end) + if pos < len(ranges): + left, _ = _decode_range(ranges[pos]) + if left == int_: + return True + return False diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/package_data.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/package_data.py new file mode 100644 index 0000000000000000000000000000000000000000..7272c8d92364886c51fefd22837ed5ceab145606 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/package_data.py @@ -0,0 +1 @@ +__version__ = "3.11" diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/py.typed b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/py.typed new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/uts46data.py b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/uts46data.py new file mode 100644 index 0000000000000000000000000000000000000000..4610b71dad9196838d4e1e04e76d5e7c9baf8cd9 --- /dev/null +++ b/data/miniconda3/pkgs/idna-3.11-py313h06a4308_0/lib/python3.13/site-packages/idna/uts46data.py @@ -0,0 +1,8841 @@ +# This file is automatically generated by tools/idna-data +# vim: set fileencoding=utf-8 : + +from typing import List, Tuple, Union + +"""IDNA Mapping Table from UTS46.""" + + +__version__ = "16.0.0" + + +def _seg_0() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x0, "V"), + (0x1, "V"), + (0x2, "V"), + (0x3, "V"), + (0x4, "V"), + (0x5, "V"), + (0x6, "V"), + (0x7, "V"), + (0x8, "V"), + (0x9, "V"), + (0xA, "V"), + (0xB, "V"), + (0xC, "V"), + (0xD, "V"), + (0xE, "V"), + (0xF, "V"), + (0x10, "V"), + (0x11, "V"), + (0x12, "V"), + (0x13, "V"), + (0x14, "V"), + (0x15, "V"), + (0x16, "V"), + (0x17, "V"), + (0x18, "V"), + (0x19, "V"), + (0x1A, "V"), + (0x1B, "V"), + (0x1C, "V"), + (0x1D, "V"), + (0x1E, "V"), + (0x1F, "V"), + (0x20, "V"), + (0x21, "V"), + (0x22, "V"), + (0x23, "V"), + (0x24, "V"), + (0x25, "V"), + (0x26, "V"), + (0x27, "V"), + (0x28, "V"), + (0x29, "V"), + (0x2A, "V"), + (0x2B, "V"), + (0x2C, "V"), + (0x2D, "V"), + (0x2E, "V"), + (0x2F, "V"), + (0x30, "V"), + (0x31, "V"), + (0x32, "V"), + (0x33, "V"), + (0x34, "V"), + (0x35, "V"), + (0x36, "V"), + (0x37, "V"), + (0x38, "V"), + (0x39, "V"), + (0x3A, "V"), + (0x3B, "V"), + (0x3C, "V"), + (0x3D, "V"), + (0x3E, "V"), + (0x3F, "V"), + (0x40, "V"), + (0x41, "M", "a"), + (0x42, "M", "b"), + (0x43, "M", "c"), + (0x44, "M", "d"), + (0x45, "M", "e"), + (0x46, "M", "f"), + (0x47, "M", "g"), + (0x48, "M", "h"), + (0x49, "M", "i"), + (0x4A, "M", "j"), + (0x4B, "M", "k"), + (0x4C, "M", "l"), + (0x4D, "M", "m"), + (0x4E, "M", "n"), + (0x4F, "M", "o"), + (0x50, "M", "p"), + (0x51, "M", "q"), + (0x52, "M", "r"), + (0x53, "M", "s"), + (0x54, "M", "t"), + (0x55, "M", "u"), + (0x56, "M", "v"), + (0x57, "M", "w"), + (0x58, "M", "x"), + (0x59, "M", "y"), + (0x5A, "M", "z"), + (0x5B, "V"), + (0x5C, "V"), + (0x5D, "V"), + (0x5E, "V"), + (0x5F, "V"), + (0x60, "V"), + (0x61, "V"), + (0x62, "V"), + (0x63, "V"), + ] + + +def _seg_1() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x64, "V"), + (0x65, "V"), + (0x66, "V"), + (0x67, "V"), + (0x68, "V"), + (0x69, "V"), + (0x6A, "V"), + (0x6B, "V"), + (0x6C, "V"), + (0x6D, "V"), + (0x6E, "V"), + (0x6F, "V"), + (0x70, "V"), + (0x71, "V"), + (0x72, "V"), + (0x73, "V"), + (0x74, "V"), + (0x75, "V"), + (0x76, "V"), + (0x77, "V"), + (0x78, "V"), + (0x79, "V"), + (0x7A, "V"), + (0x7B, "V"), + (0x7C, "V"), + (0x7D, "V"), + (0x7E, "V"), + (0x7F, "V"), + (0x80, "X"), + (0x81, "X"), + (0x82, "X"), + (0x83, "X"), + (0x84, "X"), + (0x85, "X"), + (0x86, "X"), + (0x87, "X"), + (0x88, "X"), + (0x89, "X"), + (0x8A, "X"), + (0x8B, "X"), + (0x8C, "X"), + (0x8D, "X"), + (0x8E, "X"), + (0x8F, "X"), + (0x90, "X"), + (0x91, "X"), + (0x92, "X"), + (0x93, "X"), + (0x94, "X"), + (0x95, "X"), + (0x96, "X"), + (0x97, "X"), + (0x98, "X"), + (0x99, "X"), + (0x9A, "X"), + (0x9B, "X"), + (0x9C, "X"), + (0x9D, "X"), + (0x9E, "X"), + (0x9F, "X"), + (0xA0, "M", " "), + (0xA1, "V"), + (0xA2, "V"), + (0xA3, "V"), + (0xA4, "V"), + (0xA5, "V"), + (0xA6, "V"), + (0xA7, "V"), + (0xA8, "M", " ̈"), + (0xA9, "V"), + (0xAA, "M", "a"), + (0xAB, "V"), + (0xAC, "V"), + (0xAD, "I"), + (0xAE, "V"), + (0xAF, "M", " ̄"), + (0xB0, "V"), + (0xB1, "V"), + (0xB2, "M", "2"), + (0xB3, "M", "3"), + (0xB4, "M", " ́"), + (0xB5, "M", "μ"), + (0xB6, "V"), + (0xB7, "V"), + (0xB8, "M", " ̧"), + (0xB9, "M", "1"), + (0xBA, "M", "o"), + (0xBB, "V"), + (0xBC, "M", "1⁄4"), + (0xBD, "M", "1⁄2"), + (0xBE, "M", "3⁄4"), + (0xBF, "V"), + (0xC0, "M", "à"), + (0xC1, "M", "á"), + (0xC2, "M", "â"), + (0xC3, "M", "ã"), + (0xC4, "M", "ä"), + (0xC5, "M", "å"), + (0xC6, "M", "æ"), + (0xC7, "M", "ç"), + ] + + +def _seg_2() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xC8, "M", "è"), + (0xC9, "M", "é"), + (0xCA, "M", "ê"), + (0xCB, "M", "ë"), + (0xCC, "M", "ì"), + (0xCD, "M", "í"), + (0xCE, "M", "î"), + (0xCF, "M", "ï"), + (0xD0, "M", "ð"), + (0xD1, "M", "ñ"), + (0xD2, "M", "ò"), + (0xD3, "M", "ó"), + (0xD4, "M", "ô"), + (0xD5, "M", "õ"), + (0xD6, "M", "ö"), + (0xD7, "V"), + (0xD8, "M", "ø"), + (0xD9, "M", "ù"), + (0xDA, "M", "ú"), + (0xDB, "M", "û"), + (0xDC, "M", "ü"), + (0xDD, "M", "ý"), + (0xDE, "M", "þ"), + (0xDF, "D", "ss"), + (0xE0, "V"), + (0xE1, "V"), + (0xE2, "V"), + (0xE3, "V"), + (0xE4, "V"), + (0xE5, "V"), + (0xE6, "V"), + (0xE7, "V"), + (0xE8, "V"), + (0xE9, "V"), + (0xEA, "V"), + (0xEB, "V"), + (0xEC, "V"), + (0xED, "V"), + (0xEE, "V"), + (0xEF, "V"), + (0xF0, "V"), + (0xF1, "V"), + (0xF2, "V"), + (0xF3, "V"), + (0xF4, "V"), + (0xF5, "V"), + (0xF6, "V"), + (0xF7, "V"), + (0xF8, "V"), + (0xF9, "V"), + (0xFA, "V"), + (0xFB, "V"), + (0xFC, "V"), + (0xFD, "V"), + (0xFE, "V"), + (0xFF, "V"), + (0x100, "M", "ā"), + (0x101, "V"), + (0x102, "M", "ă"), + (0x103, "V"), + (0x104, "M", "ą"), + (0x105, "V"), + (0x106, "M", "ć"), + (0x107, "V"), + (0x108, "M", "ĉ"), + (0x109, "V"), + (0x10A, "M", "ċ"), + (0x10B, "V"), + (0x10C, "M", "č"), + (0x10D, "V"), + (0x10E, "M", "ď"), + (0x10F, "V"), + (0x110, "M", "đ"), + (0x111, "V"), + (0x112, "M", "ē"), + (0x113, "V"), + (0x114, "M", "ĕ"), + (0x115, "V"), + (0x116, "M", "ė"), + (0x117, "V"), + (0x118, "M", "ę"), + (0x119, "V"), + (0x11A, "M", "ě"), + (0x11B, "V"), + (0x11C, "M", "ĝ"), + (0x11D, "V"), + (0x11E, "M", "ğ"), + (0x11F, "V"), + (0x120, "M", "ġ"), + (0x121, "V"), + (0x122, "M", "ģ"), + (0x123, "V"), + (0x124, "M", "ĥ"), + (0x125, "V"), + (0x126, "M", "ħ"), + (0x127, "V"), + (0x128, "M", "ĩ"), + (0x129, "V"), + (0x12A, "M", "ī"), + (0x12B, "V"), + ] + + +def _seg_3() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x12C, "M", "ĭ"), + (0x12D, "V"), + (0x12E, "M", "į"), + (0x12F, "V"), + (0x130, "M", "i̇"), + (0x131, "V"), + (0x132, "M", "ij"), + (0x134, "M", "ĵ"), + (0x135, "V"), + (0x136, "M", "ķ"), + (0x137, "V"), + (0x139, "M", "ĺ"), + (0x13A, "V"), + (0x13B, "M", "ļ"), + (0x13C, "V"), + (0x13D, "M", "ľ"), + (0x13E, "V"), + (0x13F, "M", "l·"), + (0x141, "M", "ł"), + (0x142, "V"), + (0x143, "M", "ń"), + (0x144, "V"), + (0x145, "M", "ņ"), + (0x146, "V"), + (0x147, "M", "ň"), + (0x148, "V"), + (0x149, "M", "ʼn"), + (0x14A, "M", "ŋ"), + (0x14B, "V"), + (0x14C, "M", "ō"), + (0x14D, "V"), + (0x14E, "M", "ŏ"), + (0x14F, "V"), + (0x150, "M", "ő"), + (0x151, "V"), + (0x152, "M", "œ"), + (0x153, "V"), + (0x154, "M", "ŕ"), + (0x155, "V"), + (0x156, "M", "ŗ"), + (0x157, "V"), + (0x158, "M", "ř"), + (0x159, "V"), + (0x15A, "M", "ś"), + (0x15B, "V"), + (0x15C, "M", "ŝ"), + (0x15D, "V"), + (0x15E, "M", "ş"), + (0x15F, "V"), + (0x160, "M", "š"), + (0x161, "V"), + (0x162, "M", "ţ"), + (0x163, "V"), + (0x164, "M", "ť"), + (0x165, "V"), + (0x166, "M", "ŧ"), + (0x167, "V"), + (0x168, "M", "ũ"), + (0x169, "V"), + (0x16A, "M", "ū"), + (0x16B, "V"), + (0x16C, "M", "ŭ"), + (0x16D, "V"), + (0x16E, "M", "ů"), + (0x16F, "V"), + (0x170, "M", "ű"), + (0x171, "V"), + (0x172, "M", "ų"), + (0x173, "V"), + (0x174, "M", "ŵ"), + (0x175, "V"), + (0x176, "M", "ŷ"), + (0x177, "V"), + (0x178, "M", "ÿ"), + (0x179, "M", "ź"), + (0x17A, "V"), + (0x17B, "M", "ż"), + (0x17C, "V"), + (0x17D, "M", "ž"), + (0x17E, "V"), + (0x17F, "M", "s"), + (0x180, "V"), + (0x181, "M", "ɓ"), + (0x182, "M", "ƃ"), + (0x183, "V"), + (0x184, "M", "ƅ"), + (0x185, "V"), + (0x186, "M", "ɔ"), + (0x187, "M", "ƈ"), + (0x188, "V"), + (0x189, "M", "ɖ"), + (0x18A, "M", "ɗ"), + (0x18B, "M", "ƌ"), + (0x18C, "V"), + (0x18E, "M", "ǝ"), + (0x18F, "M", "ə"), + (0x190, "M", "ɛ"), + (0x191, "M", "ƒ"), + (0x192, "V"), + (0x193, "M", "ɠ"), + ] + + +def _seg_4() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x194, "M", "ɣ"), + (0x195, "V"), + (0x196, "M", "ɩ"), + (0x197, "M", "ɨ"), + (0x198, "M", "ƙ"), + (0x199, "V"), + (0x19C, "M", "ɯ"), + (0x19D, "M", "ɲ"), + (0x19E, "V"), + (0x19F, "M", "ɵ"), + (0x1A0, "M", "ơ"), + (0x1A1, "V"), + (0x1A2, "M", "ƣ"), + (0x1A3, "V"), + (0x1A4, "M", "ƥ"), + (0x1A5, "V"), + (0x1A6, "M", "ʀ"), + (0x1A7, "M", "ƨ"), + (0x1A8, "V"), + (0x1A9, "M", "ʃ"), + (0x1AA, "V"), + (0x1AC, "M", "ƭ"), + (0x1AD, "V"), + (0x1AE, "M", "ʈ"), + (0x1AF, "M", "ư"), + (0x1B0, "V"), + (0x1B1, "M", "ʊ"), + (0x1B2, "M", "ʋ"), + (0x1B3, "M", "ƴ"), + (0x1B4, "V"), + (0x1B5, "M", "ƶ"), + (0x1B6, "V"), + (0x1B7, "M", "ʒ"), + (0x1B8, "M", "ƹ"), + (0x1B9, "V"), + (0x1BC, "M", "ƽ"), + (0x1BD, "V"), + (0x1C4, "M", "dž"), + (0x1C7, "M", "lj"), + (0x1CA, "M", "nj"), + (0x1CD, "M", "ǎ"), + (0x1CE, "V"), + (0x1CF, "M", "ǐ"), + (0x1D0, "V"), + (0x1D1, "M", "ǒ"), + (0x1D2, "V"), + (0x1D3, "M", "ǔ"), + (0x1D4, "V"), + (0x1D5, "M", "ǖ"), + (0x1D6, "V"), + (0x1D7, "M", "ǘ"), + (0x1D8, "V"), + (0x1D9, "M", "ǚ"), + (0x1DA, "V"), + (0x1DB, "M", "ǜ"), + (0x1DC, "V"), + (0x1DE, "M", "ǟ"), + (0x1DF, "V"), + (0x1E0, "M", "ǡ"), + (0x1E1, "V"), + (0x1E2, "M", "ǣ"), + (0x1E3, "V"), + (0x1E4, "M", "ǥ"), + (0x1E5, "V"), + (0x1E6, "M", "ǧ"), + (0x1E7, "V"), + (0x1E8, "M", "ǩ"), + (0x1E9, "V"), + (0x1EA, "M", "ǫ"), + (0x1EB, "V"), + (0x1EC, "M", "ǭ"), + (0x1ED, "V"), + (0x1EE, "M", "ǯ"), + (0x1EF, "V"), + (0x1F1, "M", "dz"), + (0x1F4, "M", "ǵ"), + (0x1F5, "V"), + (0x1F6, "M", "ƕ"), + (0x1F7, "M", "ƿ"), + (0x1F8, "M", "ǹ"), + (0x1F9, "V"), + (0x1FA, "M", "ǻ"), + (0x1FB, "V"), + (0x1FC, "M", "ǽ"), + (0x1FD, "V"), + (0x1FE, "M", "ǿ"), + (0x1FF, "V"), + (0x200, "M", "ȁ"), + (0x201, "V"), + (0x202, "M", "ȃ"), + (0x203, "V"), + (0x204, "M", "ȅ"), + (0x205, "V"), + (0x206, "M", "ȇ"), + (0x207, "V"), + (0x208, "M", "ȉ"), + (0x209, "V"), + (0x20A, "M", "ȋ"), + (0x20B, "V"), + (0x20C, "M", "ȍ"), + ] + + +def _seg_5() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x20D, "V"), + (0x20E, "M", "ȏ"), + (0x20F, "V"), + (0x210, "M", "ȑ"), + (0x211, "V"), + (0x212, "M", "ȓ"), + (0x213, "V"), + (0x214, "M", "ȕ"), + (0x215, "V"), + (0x216, "M", "ȗ"), + (0x217, "V"), + (0x218, "M", "ș"), + (0x219, "V"), + (0x21A, "M", "ț"), + (0x21B, "V"), + (0x21C, "M", "ȝ"), + (0x21D, "V"), + (0x21E, "M", "ȟ"), + (0x21F, "V"), + (0x220, "M", "ƞ"), + (0x221, "V"), + (0x222, "M", "ȣ"), + (0x223, "V"), + (0x224, "M", "ȥ"), + (0x225, "V"), + (0x226, "M", "ȧ"), + (0x227, "V"), + (0x228, "M", "ȩ"), + (0x229, "V"), + (0x22A, "M", "ȫ"), + (0x22B, "V"), + (0x22C, "M", "ȭ"), + (0x22D, "V"), + (0x22E, "M", "ȯ"), + (0x22F, "V"), + (0x230, "M", "ȱ"), + (0x231, "V"), + (0x232, "M", "ȳ"), + (0x233, "V"), + (0x23A, "M", "ⱥ"), + (0x23B, "M", "ȼ"), + (0x23C, "V"), + (0x23D, "M", "ƚ"), + (0x23E, "M", "ⱦ"), + (0x23F, "V"), + (0x241, "M", "ɂ"), + (0x242, "V"), + (0x243, "M", "ƀ"), + (0x244, "M", "ʉ"), + (0x245, "M", "ʌ"), + (0x246, "M", "ɇ"), + (0x247, "V"), + (0x248, "M", "ɉ"), + (0x249, "V"), + (0x24A, "M", "ɋ"), + (0x24B, "V"), + (0x24C, "M", "ɍ"), + (0x24D, "V"), + (0x24E, "M", "ɏ"), + (0x24F, "V"), + (0x2B0, "M", "h"), + (0x2B1, "M", "ɦ"), + (0x2B2, "M", "j"), + (0x2B3, "M", "r"), + (0x2B4, "M", "ɹ"), + (0x2B5, "M", "ɻ"), + (0x2B6, "M", "ʁ"), + (0x2B7, "M", "w"), + (0x2B8, "M", "y"), + (0x2B9, "V"), + (0x2D8, "M", " ̆"), + (0x2D9, "M", " ̇"), + (0x2DA, "M", " ̊"), + (0x2DB, "M", " ̨"), + (0x2DC, "M", " ̃"), + (0x2DD, "M", " ̋"), + (0x2DE, "V"), + (0x2E0, "M", "ɣ"), + (0x2E1, "M", "l"), + (0x2E2, "M", "s"), + (0x2E3, "M", "x"), + (0x2E4, "M", "ʕ"), + (0x2E5, "V"), + (0x340, "M", "̀"), + (0x341, "M", "́"), + (0x342, "V"), + (0x343, "M", "̓"), + (0x344, "M", "̈́"), + (0x345, "M", "ι"), + (0x346, "V"), + (0x34F, "I"), + (0x350, "V"), + (0x370, "M", "ͱ"), + (0x371, "V"), + (0x372, "M", "ͳ"), + (0x373, "V"), + (0x374, "M", "ʹ"), + (0x375, "V"), + (0x376, "M", "ͷ"), + (0x377, "V"), + ] + + +def _seg_6() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x378, "X"), + (0x37A, "M", " ι"), + (0x37B, "V"), + (0x37E, "M", ";"), + (0x37F, "M", "ϳ"), + (0x380, "X"), + (0x384, "M", " ́"), + (0x385, "M", " ̈́"), + (0x386, "M", "ά"), + (0x387, "M", "·"), + (0x388, "M", "έ"), + (0x389, "M", "ή"), + (0x38A, "M", "ί"), + (0x38B, "X"), + (0x38C, "M", "ό"), + (0x38D, "X"), + (0x38E, "M", "ύ"), + (0x38F, "M", "ώ"), + (0x390, "V"), + (0x391, "M", "α"), + (0x392, "M", "β"), + (0x393, "M", "γ"), + (0x394, "M", "δ"), + (0x395, "M", "ε"), + (0x396, "M", "ζ"), + (0x397, "M", "η"), + (0x398, "M", "θ"), + (0x399, "M", "ι"), + (0x39A, "M", "κ"), + (0x39B, "M", "λ"), + (0x39C, "M", "μ"), + (0x39D, "M", "ν"), + (0x39E, "M", "ξ"), + (0x39F, "M", "ο"), + (0x3A0, "M", "π"), + (0x3A1, "M", "ρ"), + (0x3A2, "X"), + (0x3A3, "M", "σ"), + (0x3A4, "M", "τ"), + (0x3A5, "M", "υ"), + (0x3A6, "M", "φ"), + (0x3A7, "M", "χ"), + (0x3A8, "M", "ψ"), + (0x3A9, "M", "ω"), + (0x3AA, "M", "ϊ"), + (0x3AB, "M", "ϋ"), + (0x3AC, "V"), + (0x3C2, "D", "σ"), + (0x3C3, "V"), + (0x3CF, "M", "ϗ"), + (0x3D0, "M", "β"), + (0x3D1, "M", "θ"), + (0x3D2, "M", "υ"), + (0x3D3, "M", "ύ"), + (0x3D4, "M", "ϋ"), + (0x3D5, "M", "φ"), + (0x3D6, "M", "π"), + (0x3D7, "V"), + (0x3D8, "M", "ϙ"), + (0x3D9, "V"), + (0x3DA, "M", "ϛ"), + (0x3DB, "V"), + (0x3DC, "M", "ϝ"), + (0x3DD, "V"), + (0x3DE, "M", "ϟ"), + (0x3DF, "V"), + (0x3E0, "M", "ϡ"), + (0x3E1, "V"), + (0x3E2, "M", "ϣ"), + (0x3E3, "V"), + (0x3E4, "M", "ϥ"), + (0x3E5, "V"), + (0x3E6, "M", "ϧ"), + (0x3E7, "V"), + (0x3E8, "M", "ϩ"), + (0x3E9, "V"), + (0x3EA, "M", "ϫ"), + (0x3EB, "V"), + (0x3EC, "M", "ϭ"), + (0x3ED, "V"), + (0x3EE, "M", "ϯ"), + (0x3EF, "V"), + (0x3F0, "M", "κ"), + (0x3F1, "M", "ρ"), + (0x3F2, "M", "σ"), + (0x3F3, "V"), + (0x3F4, "M", "θ"), + (0x3F5, "M", "ε"), + (0x3F6, "V"), + (0x3F7, "M", "ϸ"), + (0x3F8, "V"), + (0x3F9, "M", "σ"), + (0x3FA, "M", "ϻ"), + (0x3FB, "V"), + (0x3FD, "M", "ͻ"), + (0x3FE, "M", "ͼ"), + (0x3FF, "M", "ͽ"), + (0x400, "M", "ѐ"), + (0x401, "M", "ё"), + (0x402, "M", "ђ"), + ] + + +def _seg_7() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x403, "M", "ѓ"), + (0x404, "M", "є"), + (0x405, "M", "ѕ"), + (0x406, "M", "і"), + (0x407, "M", "ї"), + (0x408, "M", "ј"), + (0x409, "M", "љ"), + (0x40A, "M", "њ"), + (0x40B, "M", "ћ"), + (0x40C, "M", "ќ"), + (0x40D, "M", "ѝ"), + (0x40E, "M", "ў"), + (0x40F, "M", "џ"), + (0x410, "M", "а"), + (0x411, "M", "б"), + (0x412, "M", "в"), + (0x413, "M", "г"), + (0x414, "M", "д"), + (0x415, "M", "е"), + (0x416, "M", "ж"), + (0x417, "M", "з"), + (0x418, "M", "и"), + (0x419, "M", "й"), + (0x41A, "M", "к"), + (0x41B, "M", "л"), + (0x41C, "M", "м"), + (0x41D, "M", "н"), + (0x41E, "M", "о"), + (0x41F, "M", "п"), + (0x420, "M", "р"), + (0x421, "M", "с"), + (0x422, "M", "т"), + (0x423, "M", "у"), + (0x424, "M", "ф"), + (0x425, "M", "х"), + (0x426, "M", "ц"), + (0x427, "M", "ч"), + (0x428, "M", "ш"), + (0x429, "M", "щ"), + (0x42A, "M", "ъ"), + (0x42B, "M", "ы"), + (0x42C, "M", "ь"), + (0x42D, "M", "э"), + (0x42E, "M", "ю"), + (0x42F, "M", "я"), + (0x430, "V"), + (0x460, "M", "ѡ"), + (0x461, "V"), + (0x462, "M", "ѣ"), + (0x463, "V"), + (0x464, "M", "ѥ"), + (0x465, "V"), + (0x466, "M", "ѧ"), + (0x467, "V"), + (0x468, "M", "ѩ"), + (0x469, "V"), + (0x46A, "M", "ѫ"), + (0x46B, "V"), + (0x46C, "M", "ѭ"), + (0x46D, "V"), + (0x46E, "M", "ѯ"), + (0x46F, "V"), + (0x470, "M", "ѱ"), + (0x471, "V"), + (0x472, "M", "ѳ"), + (0x473, "V"), + (0x474, "M", "ѵ"), + (0x475, "V"), + (0x476, "M", "ѷ"), + (0x477, "V"), + (0x478, "M", "ѹ"), + (0x479, "V"), + (0x47A, "M", "ѻ"), + (0x47B, "V"), + (0x47C, "M", "ѽ"), + (0x47D, "V"), + (0x47E, "M", "ѿ"), + (0x47F, "V"), + (0x480, "M", "ҁ"), + (0x481, "V"), + (0x48A, "M", "ҋ"), + (0x48B, "V"), + (0x48C, "M", "ҍ"), + (0x48D, "V"), + (0x48E, "M", "ҏ"), + (0x48F, "V"), + (0x490, "M", "ґ"), + (0x491, "V"), + (0x492, "M", "ғ"), + (0x493, "V"), + (0x494, "M", "ҕ"), + (0x495, "V"), + (0x496, "M", "җ"), + (0x497, "V"), + (0x498, "M", "ҙ"), + (0x499, "V"), + (0x49A, "M", "қ"), + (0x49B, "V"), + (0x49C, "M", "ҝ"), + (0x49D, "V"), + ] + + +def _seg_8() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x49E, "M", "ҟ"), + (0x49F, "V"), + (0x4A0, "M", "ҡ"), + (0x4A1, "V"), + (0x4A2, "M", "ң"), + (0x4A3, "V"), + (0x4A4, "M", "ҥ"), + (0x4A5, "V"), + (0x4A6, "M", "ҧ"), + (0x4A7, "V"), + (0x4A8, "M", "ҩ"), + (0x4A9, "V"), + (0x4AA, "M", "ҫ"), + (0x4AB, "V"), + (0x4AC, "M", "ҭ"), + (0x4AD, "V"), + (0x4AE, "M", "ү"), + (0x4AF, "V"), + (0x4B0, "M", "ұ"), + (0x4B1, "V"), + (0x4B2, "M", "ҳ"), + (0x4B3, "V"), + (0x4B4, "M", "ҵ"), + (0x4B5, "V"), + (0x4B6, "M", "ҷ"), + (0x4B7, "V"), + (0x4B8, "M", "ҹ"), + (0x4B9, "V"), + (0x4BA, "M", "һ"), + (0x4BB, "V"), + (0x4BC, "M", "ҽ"), + (0x4BD, "V"), + (0x4BE, "M", "ҿ"), + (0x4BF, "V"), + (0x4C0, "M", "ӏ"), + (0x4C1, "M", "ӂ"), + (0x4C2, "V"), + (0x4C3, "M", "ӄ"), + (0x4C4, "V"), + (0x4C5, "M", "ӆ"), + (0x4C6, "V"), + (0x4C7, "M", "ӈ"), + (0x4C8, "V"), + (0x4C9, "M", "ӊ"), + (0x4CA, "V"), + (0x4CB, "M", "ӌ"), + (0x4CC, "V"), + (0x4CD, "M", "ӎ"), + (0x4CE, "V"), + (0x4D0, "M", "ӑ"), + (0x4D1, "V"), + (0x4D2, "M", "ӓ"), + (0x4D3, "V"), + (0x4D4, "M", "ӕ"), + (0x4D5, "V"), + (0x4D6, "M", "ӗ"), + (0x4D7, "V"), + (0x4D8, "M", "ә"), + (0x4D9, "V"), + (0x4DA, "M", "ӛ"), + (0x4DB, "V"), + (0x4DC, "M", "ӝ"), + (0x4DD, "V"), + (0x4DE, "M", "ӟ"), + (0x4DF, "V"), + (0x4E0, "M", "ӡ"), + (0x4E1, "V"), + (0x4E2, "M", "ӣ"), + (0x4E3, "V"), + (0x4E4, "M", "ӥ"), + (0x4E5, "V"), + (0x4E6, "M", "ӧ"), + (0x4E7, "V"), + (0x4E8, "M", "ө"), + (0x4E9, "V"), + (0x4EA, "M", "ӫ"), + (0x4EB, "V"), + (0x4EC, "M", "ӭ"), + (0x4ED, "V"), + (0x4EE, "M", "ӯ"), + (0x4EF, "V"), + (0x4F0, "M", "ӱ"), + (0x4F1, "V"), + (0x4F2, "M", "ӳ"), + (0x4F3, "V"), + (0x4F4, "M", "ӵ"), + (0x4F5, "V"), + (0x4F6, "M", "ӷ"), + (0x4F7, "V"), + (0x4F8, "M", "ӹ"), + (0x4F9, "V"), + (0x4FA, "M", "ӻ"), + (0x4FB, "V"), + (0x4FC, "M", "ӽ"), + (0x4FD, "V"), + (0x4FE, "M", "ӿ"), + (0x4FF, "V"), + (0x500, "M", "ԁ"), + (0x501, "V"), + (0x502, "M", "ԃ"), + ] + + +def _seg_9() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x503, "V"), + (0x504, "M", "ԅ"), + (0x505, "V"), + (0x506, "M", "ԇ"), + (0x507, "V"), + (0x508, "M", "ԉ"), + (0x509, "V"), + (0x50A, "M", "ԋ"), + (0x50B, "V"), + (0x50C, "M", "ԍ"), + (0x50D, "V"), + (0x50E, "M", "ԏ"), + (0x50F, "V"), + (0x510, "M", "ԑ"), + (0x511, "V"), + (0x512, "M", "ԓ"), + (0x513, "V"), + (0x514, "M", "ԕ"), + (0x515, "V"), + (0x516, "M", "ԗ"), + (0x517, "V"), + (0x518, "M", "ԙ"), + (0x519, "V"), + (0x51A, "M", "ԛ"), + (0x51B, "V"), + (0x51C, "M", "ԝ"), + (0x51D, "V"), + (0x51E, "M", "ԟ"), + (0x51F, "V"), + (0x520, "M", "ԡ"), + (0x521, "V"), + (0x522, "M", "ԣ"), + (0x523, "V"), + (0x524, "M", "ԥ"), + (0x525, "V"), + (0x526, "M", "ԧ"), + (0x527, "V"), + (0x528, "M", "ԩ"), + (0x529, "V"), + (0x52A, "M", "ԫ"), + (0x52B, "V"), + (0x52C, "M", "ԭ"), + (0x52D, "V"), + (0x52E, "M", "ԯ"), + (0x52F, "V"), + (0x530, "X"), + (0x531, "M", "ա"), + (0x532, "M", "բ"), + (0x533, "M", "գ"), + (0x534, "M", "դ"), + (0x535, "M", "ե"), + (0x536, "M", "զ"), + (0x537, "M", "է"), + (0x538, "M", "ը"), + (0x539, "M", "թ"), + (0x53A, "M", "ժ"), + (0x53B, "M", "ի"), + (0x53C, "M", "լ"), + (0x53D, "M", "խ"), + (0x53E, "M", "ծ"), + (0x53F, "M", "կ"), + (0x540, "M", "հ"), + (0x541, "M", "ձ"), + (0x542, "M", "ղ"), + (0x543, "M", "ճ"), + (0x544, "M", "մ"), + (0x545, "M", "յ"), + (0x546, "M", "ն"), + (0x547, "M", "շ"), + (0x548, "M", "ո"), + (0x549, "M", "չ"), + (0x54A, "M", "պ"), + (0x54B, "M", "ջ"), + (0x54C, "M", "ռ"), + (0x54D, "M", "ս"), + (0x54E, "M", "վ"), + (0x54F, "M", "տ"), + (0x550, "M", "ր"), + (0x551, "M", "ց"), + (0x552, "M", "ւ"), + (0x553, "M", "փ"), + (0x554, "M", "ք"), + (0x555, "M", "օ"), + (0x556, "M", "ֆ"), + (0x557, "X"), + (0x559, "V"), + (0x587, "M", "եւ"), + (0x588, "V"), + (0x58B, "X"), + (0x58D, "V"), + (0x590, "X"), + (0x591, "V"), + (0x5C8, "X"), + (0x5D0, "V"), + (0x5EB, "X"), + (0x5EF, "V"), + (0x5F5, "X"), + (0x606, "V"), + (0x61C, "X"), + (0x61D, "V"), + ] + + +def _seg_10() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x675, "M", "اٴ"), + (0x676, "M", "وٴ"), + (0x677, "M", "ۇٴ"), + (0x678, "M", "يٴ"), + (0x679, "V"), + (0x6DD, "X"), + (0x6DE, "V"), + (0x70E, "X"), + (0x710, "V"), + (0x74B, "X"), + (0x74D, "V"), + (0x7B2, "X"), + (0x7C0, "V"), + (0x7FB, "X"), + (0x7FD, "V"), + (0x82E, "X"), + (0x830, "V"), + (0x83F, "X"), + (0x840, "V"), + (0x85C, "X"), + (0x85E, "V"), + (0x85F, "X"), + (0x860, "V"), + (0x86B, "X"), + (0x870, "V"), + (0x88F, "X"), + (0x897, "V"), + (0x8E2, "X"), + (0x8E3, "V"), + (0x958, "M", "क़"), + (0x959, "M", "ख़"), + (0x95A, "M", "ग़"), + (0x95B, "M", "ज़"), + (0x95C, "M", "ड़"), + (0x95D, "M", "ढ़"), + (0x95E, "M", "फ़"), + (0x95F, "M", "य़"), + (0x960, "V"), + (0x984, "X"), + (0x985, "V"), + (0x98D, "X"), + (0x98F, "V"), + (0x991, "X"), + (0x993, "V"), + (0x9A9, "X"), + (0x9AA, "V"), + (0x9B1, "X"), + (0x9B2, "V"), + (0x9B3, "X"), + (0x9B6, "V"), + (0x9BA, "X"), + (0x9BC, "V"), + (0x9C5, "X"), + (0x9C7, "V"), + (0x9C9, "X"), + (0x9CB, "V"), + (0x9CF, "X"), + (0x9D7, "V"), + (0x9D8, "X"), + (0x9DC, "M", "ড়"), + (0x9DD, "M", "ঢ়"), + (0x9DE, "X"), + (0x9DF, "M", "য়"), + (0x9E0, "V"), + (0x9E4, "X"), + (0x9E6, "V"), + (0x9FF, "X"), + (0xA01, "V"), + (0xA04, "X"), + (0xA05, "V"), + (0xA0B, "X"), + (0xA0F, "V"), + (0xA11, "X"), + (0xA13, "V"), + (0xA29, "X"), + (0xA2A, "V"), + (0xA31, "X"), + (0xA32, "V"), + (0xA33, "M", "ਲ਼"), + (0xA34, "X"), + (0xA35, "V"), + (0xA36, "M", "ਸ਼"), + (0xA37, "X"), + (0xA38, "V"), + (0xA3A, "X"), + (0xA3C, "V"), + (0xA3D, "X"), + (0xA3E, "V"), + (0xA43, "X"), + (0xA47, "V"), + (0xA49, "X"), + (0xA4B, "V"), + (0xA4E, "X"), + (0xA51, "V"), + (0xA52, "X"), + (0xA59, "M", "ਖ਼"), + (0xA5A, "M", "ਗ਼"), + (0xA5B, "M", "ਜ਼"), + (0xA5C, "V"), + (0xA5D, "X"), + ] + + +def _seg_11() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xA5E, "M", "ਫ਼"), + (0xA5F, "X"), + (0xA66, "V"), + (0xA77, "X"), + (0xA81, "V"), + (0xA84, "X"), + (0xA85, "V"), + (0xA8E, "X"), + (0xA8F, "V"), + (0xA92, "X"), + (0xA93, "V"), + (0xAA9, "X"), + (0xAAA, "V"), + (0xAB1, "X"), + (0xAB2, "V"), + (0xAB4, "X"), + (0xAB5, "V"), + (0xABA, "X"), + (0xABC, "V"), + (0xAC6, "X"), + (0xAC7, "V"), + (0xACA, "X"), + (0xACB, "V"), + (0xACE, "X"), + (0xAD0, "V"), + (0xAD1, "X"), + (0xAE0, "V"), + (0xAE4, "X"), + (0xAE6, "V"), + (0xAF2, "X"), + (0xAF9, "V"), + (0xB00, "X"), + (0xB01, "V"), + (0xB04, "X"), + (0xB05, "V"), + (0xB0D, "X"), + (0xB0F, "V"), + (0xB11, "X"), + (0xB13, "V"), + (0xB29, "X"), + (0xB2A, "V"), + (0xB31, "X"), + (0xB32, "V"), + (0xB34, "X"), + (0xB35, "V"), + (0xB3A, "X"), + (0xB3C, "V"), + (0xB45, "X"), + (0xB47, "V"), + (0xB49, "X"), + (0xB4B, "V"), + (0xB4E, "X"), + (0xB55, "V"), + (0xB58, "X"), + (0xB5C, "M", "ଡ଼"), + (0xB5D, "M", "ଢ଼"), + (0xB5E, "X"), + (0xB5F, "V"), + (0xB64, "X"), + (0xB66, "V"), + (0xB78, "X"), + (0xB82, "V"), + (0xB84, "X"), + (0xB85, "V"), + (0xB8B, "X"), + (0xB8E, "V"), + (0xB91, "X"), + (0xB92, "V"), + (0xB96, "X"), + (0xB99, "V"), + (0xB9B, "X"), + (0xB9C, "V"), + (0xB9D, "X"), + (0xB9E, "V"), + (0xBA0, "X"), + (0xBA3, "V"), + (0xBA5, "X"), + (0xBA8, "V"), + (0xBAB, "X"), + (0xBAE, "V"), + (0xBBA, "X"), + (0xBBE, "V"), + (0xBC3, "X"), + (0xBC6, "V"), + (0xBC9, "X"), + (0xBCA, "V"), + (0xBCE, "X"), + (0xBD0, "V"), + (0xBD1, "X"), + (0xBD7, "V"), + (0xBD8, "X"), + (0xBE6, "V"), + (0xBFB, "X"), + (0xC00, "V"), + (0xC0D, "X"), + (0xC0E, "V"), + (0xC11, "X"), + (0xC12, "V"), + (0xC29, "X"), + (0xC2A, "V"), + ] + + +def _seg_12() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xC3A, "X"), + (0xC3C, "V"), + (0xC45, "X"), + (0xC46, "V"), + (0xC49, "X"), + (0xC4A, "V"), + (0xC4E, "X"), + (0xC55, "V"), + (0xC57, "X"), + (0xC58, "V"), + (0xC5B, "X"), + (0xC5D, "V"), + (0xC5E, "X"), + (0xC60, "V"), + (0xC64, "X"), + (0xC66, "V"), + (0xC70, "X"), + (0xC77, "V"), + (0xC8D, "X"), + (0xC8E, "V"), + (0xC91, "X"), + (0xC92, "V"), + (0xCA9, "X"), + (0xCAA, "V"), + (0xCB4, "X"), + (0xCB5, "V"), + (0xCBA, "X"), + (0xCBC, "V"), + (0xCC5, "X"), + (0xCC6, "V"), + (0xCC9, "X"), + (0xCCA, "V"), + (0xCCE, "X"), + (0xCD5, "V"), + (0xCD7, "X"), + (0xCDD, "V"), + (0xCDF, "X"), + (0xCE0, "V"), + (0xCE4, "X"), + (0xCE6, "V"), + (0xCF0, "X"), + (0xCF1, "V"), + (0xCF4, "X"), + (0xD00, "V"), + (0xD0D, "X"), + (0xD0E, "V"), + (0xD11, "X"), + (0xD12, "V"), + (0xD45, "X"), + (0xD46, "V"), + (0xD49, "X"), + (0xD4A, "V"), + (0xD50, "X"), + (0xD54, "V"), + (0xD64, "X"), + (0xD66, "V"), + (0xD80, "X"), + (0xD81, "V"), + (0xD84, "X"), + (0xD85, "V"), + (0xD97, "X"), + (0xD9A, "V"), + (0xDB2, "X"), + (0xDB3, "V"), + (0xDBC, "X"), + (0xDBD, "V"), + (0xDBE, "X"), + (0xDC0, "V"), + (0xDC7, "X"), + (0xDCA, "V"), + (0xDCB, "X"), + (0xDCF, "V"), + (0xDD5, "X"), + (0xDD6, "V"), + (0xDD7, "X"), + (0xDD8, "V"), + (0xDE0, "X"), + (0xDE6, "V"), + (0xDF0, "X"), + (0xDF2, "V"), + (0xDF5, "X"), + (0xE01, "V"), + (0xE33, "M", "ํา"), + (0xE34, "V"), + (0xE3B, "X"), + (0xE3F, "V"), + (0xE5C, "X"), + (0xE81, "V"), + (0xE83, "X"), + (0xE84, "V"), + (0xE85, "X"), + (0xE86, "V"), + (0xE8B, "X"), + (0xE8C, "V"), + (0xEA4, "X"), + (0xEA5, "V"), + (0xEA6, "X"), + (0xEA7, "V"), + (0xEB3, "M", "ໍາ"), + (0xEB4, "V"), + ] + + +def _seg_13() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xEBE, "X"), + (0xEC0, "V"), + (0xEC5, "X"), + (0xEC6, "V"), + (0xEC7, "X"), + (0xEC8, "V"), + (0xECF, "X"), + (0xED0, "V"), + (0xEDA, "X"), + (0xEDC, "M", "ຫນ"), + (0xEDD, "M", "ຫມ"), + (0xEDE, "V"), + (0xEE0, "X"), + (0xF00, "V"), + (0xF0C, "M", "་"), + (0xF0D, "V"), + (0xF43, "M", "གྷ"), + (0xF44, "V"), + (0xF48, "X"), + (0xF49, "V"), + (0xF4D, "M", "ཌྷ"), + (0xF4E, "V"), + (0xF52, "M", "དྷ"), + (0xF53, "V"), + (0xF57, "M", "བྷ"), + (0xF58, "V"), + (0xF5C, "M", "ཛྷ"), + (0xF5D, "V"), + (0xF69, "M", "ཀྵ"), + (0xF6A, "V"), + (0xF6D, "X"), + (0xF71, "V"), + (0xF73, "M", "ཱི"), + (0xF74, "V"), + (0xF75, "M", "ཱུ"), + (0xF76, "M", "ྲྀ"), + (0xF77, "M", "ྲཱྀ"), + (0xF78, "M", "ླྀ"), + (0xF79, "M", "ླཱྀ"), + (0xF7A, "V"), + (0xF81, "M", "ཱྀ"), + (0xF82, "V"), + (0xF93, "M", "ྒྷ"), + (0xF94, "V"), + (0xF98, "X"), + (0xF99, "V"), + (0xF9D, "M", "ྜྷ"), + (0xF9E, "V"), + (0xFA2, "M", "ྡྷ"), + (0xFA3, "V"), + (0xFA7, "M", "ྦྷ"), + (0xFA8, "V"), + (0xFAC, "M", "ྫྷ"), + (0xFAD, "V"), + (0xFB9, "M", "ྐྵ"), + (0xFBA, "V"), + (0xFBD, "X"), + (0xFBE, "V"), + (0xFCD, "X"), + (0xFCE, "V"), + (0xFDB, "X"), + (0x1000, "V"), + (0x10A0, "M", "ⴀ"), + (0x10A1, "M", "ⴁ"), + (0x10A2, "M", "ⴂ"), + (0x10A3, "M", "ⴃ"), + (0x10A4, "M", "ⴄ"), + (0x10A5, "M", "ⴅ"), + (0x10A6, "M", "ⴆ"), + (0x10A7, "M", "ⴇ"), + (0x10A8, "M", "ⴈ"), + (0x10A9, "M", "ⴉ"), + (0x10AA, "M", "ⴊ"), + (0x10AB, "M", "ⴋ"), + (0x10AC, "M", "ⴌ"), + (0x10AD, "M", "ⴍ"), + (0x10AE, "M", "ⴎ"), + (0x10AF, "M", "ⴏ"), + (0x10B0, "M", "ⴐ"), + (0x10B1, "M", "ⴑ"), + (0x10B2, "M", "ⴒ"), + (0x10B3, "M", "ⴓ"), + (0x10B4, "M", "ⴔ"), + (0x10B5, "M", "ⴕ"), + (0x10B6, "M", "ⴖ"), + (0x10B7, "M", "ⴗ"), + (0x10B8, "M", "ⴘ"), + (0x10B9, "M", "ⴙ"), + (0x10BA, "M", "ⴚ"), + (0x10BB, "M", "ⴛ"), + (0x10BC, "M", "ⴜ"), + (0x10BD, "M", "ⴝ"), + (0x10BE, "M", "ⴞ"), + (0x10BF, "M", "ⴟ"), + (0x10C0, "M", "ⴠ"), + (0x10C1, "M", "ⴡ"), + (0x10C2, "M", "ⴢ"), + (0x10C3, "M", "ⴣ"), + (0x10C4, "M", "ⴤ"), + (0x10C5, "M", "ⴥ"), + ] + + +def _seg_14() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x10C6, "X"), + (0x10C7, "M", "ⴧ"), + (0x10C8, "X"), + (0x10CD, "M", "ⴭ"), + (0x10CE, "X"), + (0x10D0, "V"), + (0x10FC, "M", "ნ"), + (0x10FD, "V"), + (0x115F, "I"), + (0x1161, "V"), + (0x1249, "X"), + (0x124A, "V"), + (0x124E, "X"), + (0x1250, "V"), + (0x1257, "X"), + (0x1258, "V"), + (0x1259, "X"), + (0x125A, "V"), + (0x125E, "X"), + (0x1260, "V"), + (0x1289, "X"), + (0x128A, "V"), + (0x128E, "X"), + (0x1290, "V"), + (0x12B1, "X"), + (0x12B2, "V"), + (0x12B6, "X"), + (0x12B8, "V"), + (0x12BF, "X"), + (0x12C0, "V"), + (0x12C1, "X"), + (0x12C2, "V"), + (0x12C6, "X"), + (0x12C8, "V"), + (0x12D7, "X"), + (0x12D8, "V"), + (0x1311, "X"), + (0x1312, "V"), + (0x1316, "X"), + (0x1318, "V"), + (0x135B, "X"), + (0x135D, "V"), + (0x137D, "X"), + (0x1380, "V"), + (0x139A, "X"), + (0x13A0, "V"), + (0x13F6, "X"), + (0x13F8, "M", "Ᏸ"), + (0x13F9, "M", "Ᏹ"), + (0x13FA, "M", "Ᏺ"), + (0x13FB, "M", "Ᏻ"), + (0x13FC, "M", "Ᏼ"), + (0x13FD, "M", "Ᏽ"), + (0x13FE, "X"), + (0x1400, "V"), + (0x1680, "X"), + (0x1681, "V"), + (0x169D, "X"), + (0x16A0, "V"), + (0x16F9, "X"), + (0x1700, "V"), + (0x1716, "X"), + (0x171F, "V"), + (0x1737, "X"), + (0x1740, "V"), + (0x1754, "X"), + (0x1760, "V"), + (0x176D, "X"), + (0x176E, "V"), + (0x1771, "X"), + (0x1772, "V"), + (0x1774, "X"), + (0x1780, "V"), + (0x17B4, "I"), + (0x17B6, "V"), + (0x17DE, "X"), + (0x17E0, "V"), + (0x17EA, "X"), + (0x17F0, "V"), + (0x17FA, "X"), + (0x1800, "V"), + (0x180B, "I"), + (0x1810, "V"), + (0x181A, "X"), + (0x1820, "V"), + (0x1879, "X"), + (0x1880, "V"), + (0x18AB, "X"), + (0x18B0, "V"), + (0x18F6, "X"), + (0x1900, "V"), + (0x191F, "X"), + (0x1920, "V"), + (0x192C, "X"), + (0x1930, "V"), + (0x193C, "X"), + (0x1940, "V"), + (0x1941, "X"), + (0x1944, "V"), + (0x196E, "X"), + ] + + +def _seg_15() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1970, "V"), + (0x1975, "X"), + (0x1980, "V"), + (0x19AC, "X"), + (0x19B0, "V"), + (0x19CA, "X"), + (0x19D0, "V"), + (0x19DB, "X"), + (0x19DE, "V"), + (0x1A1C, "X"), + (0x1A1E, "V"), + (0x1A5F, "X"), + (0x1A60, "V"), + (0x1A7D, "X"), + (0x1A7F, "V"), + (0x1A8A, "X"), + (0x1A90, "V"), + (0x1A9A, "X"), + (0x1AA0, "V"), + (0x1AAE, "X"), + (0x1AB0, "V"), + (0x1ACF, "X"), + (0x1B00, "V"), + (0x1B4D, "X"), + (0x1B4E, "V"), + (0x1BF4, "X"), + (0x1BFC, "V"), + (0x1C38, "X"), + (0x1C3B, "V"), + (0x1C4A, "X"), + (0x1C4D, "V"), + (0x1C80, "M", "в"), + (0x1C81, "M", "д"), + (0x1C82, "M", "о"), + (0x1C83, "M", "с"), + (0x1C84, "M", "т"), + (0x1C86, "M", "ъ"), + (0x1C87, "M", "ѣ"), + (0x1C88, "M", "ꙋ"), + (0x1C89, "M", "ᲊ"), + (0x1C8A, "V"), + (0x1C8B, "X"), + (0x1C90, "M", "ა"), + (0x1C91, "M", "ბ"), + (0x1C92, "M", "გ"), + (0x1C93, "M", "დ"), + (0x1C94, "M", "ე"), + (0x1C95, "M", "ვ"), + (0x1C96, "M", "ზ"), + (0x1C97, "M", "თ"), + (0x1C98, "M", "ი"), + (0x1C99, "M", "კ"), + (0x1C9A, "M", "ლ"), + (0x1C9B, "M", "მ"), + (0x1C9C, "M", "ნ"), + (0x1C9D, "M", "ო"), + (0x1C9E, "M", "პ"), + (0x1C9F, "M", "ჟ"), + (0x1CA0, "M", "რ"), + (0x1CA1, "M", "ს"), + (0x1CA2, "M", "ტ"), + (0x1CA3, "M", "უ"), + (0x1CA4, "M", "ფ"), + (0x1CA5, "M", "ქ"), + (0x1CA6, "M", "ღ"), + (0x1CA7, "M", "ყ"), + (0x1CA8, "M", "შ"), + (0x1CA9, "M", "ჩ"), + (0x1CAA, "M", "ც"), + (0x1CAB, "M", "ძ"), + (0x1CAC, "M", "წ"), + (0x1CAD, "M", "ჭ"), + (0x1CAE, "M", "ხ"), + (0x1CAF, "M", "ჯ"), + (0x1CB0, "M", "ჰ"), + (0x1CB1, "M", "ჱ"), + (0x1CB2, "M", "ჲ"), + (0x1CB3, "M", "ჳ"), + (0x1CB4, "M", "ჴ"), + (0x1CB5, "M", "ჵ"), + (0x1CB6, "M", "ჶ"), + (0x1CB7, "M", "ჷ"), + (0x1CB8, "M", "ჸ"), + (0x1CB9, "M", "ჹ"), + (0x1CBA, "M", "ჺ"), + (0x1CBB, "X"), + (0x1CBD, "M", "ჽ"), + (0x1CBE, "M", "ჾ"), + (0x1CBF, "M", "ჿ"), + (0x1CC0, "V"), + (0x1CC8, "X"), + (0x1CD0, "V"), + (0x1CFB, "X"), + (0x1D00, "V"), + (0x1D2C, "M", "a"), + (0x1D2D, "M", "æ"), + (0x1D2E, "M", "b"), + (0x1D2F, "V"), + (0x1D30, "M", "d"), + (0x1D31, "M", "e"), + ] + + +def _seg_16() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D32, "M", "ǝ"), + (0x1D33, "M", "g"), + (0x1D34, "M", "h"), + (0x1D35, "M", "i"), + (0x1D36, "M", "j"), + (0x1D37, "M", "k"), + (0x1D38, "M", "l"), + (0x1D39, "M", "m"), + (0x1D3A, "M", "n"), + (0x1D3B, "V"), + (0x1D3C, "M", "o"), + (0x1D3D, "M", "ȣ"), + (0x1D3E, "M", "p"), + (0x1D3F, "M", "r"), + (0x1D40, "M", "t"), + (0x1D41, "M", "u"), + (0x1D42, "M", "w"), + (0x1D43, "M", "a"), + (0x1D44, "M", "ɐ"), + (0x1D45, "M", "ɑ"), + (0x1D46, "M", "ᴂ"), + (0x1D47, "M", "b"), + (0x1D48, "M", "d"), + (0x1D49, "M", "e"), + (0x1D4A, "M", "ə"), + (0x1D4B, "M", "ɛ"), + (0x1D4C, "M", "ɜ"), + (0x1D4D, "M", "g"), + (0x1D4E, "V"), + (0x1D4F, "M", "k"), + (0x1D50, "M", "m"), + (0x1D51, "M", "ŋ"), + (0x1D52, "M", "o"), + (0x1D53, "M", "ɔ"), + (0x1D54, "M", "ᴖ"), + (0x1D55, "M", "ᴗ"), + (0x1D56, "M", "p"), + (0x1D57, "M", "t"), + (0x1D58, "M", "u"), + (0x1D59, "M", "ᴝ"), + (0x1D5A, "M", "ɯ"), + (0x1D5B, "M", "v"), + (0x1D5C, "M", "ᴥ"), + (0x1D5D, "M", "β"), + (0x1D5E, "M", "γ"), + (0x1D5F, "M", "δ"), + (0x1D60, "M", "φ"), + (0x1D61, "M", "χ"), + (0x1D62, "M", "i"), + (0x1D63, "M", "r"), + (0x1D64, "M", "u"), + (0x1D65, "M", "v"), + (0x1D66, "M", "β"), + (0x1D67, "M", "γ"), + (0x1D68, "M", "ρ"), + (0x1D69, "M", "φ"), + (0x1D6A, "M", "χ"), + (0x1D6B, "V"), + (0x1D78, "M", "н"), + (0x1D79, "V"), + (0x1D9B, "M", "ɒ"), + (0x1D9C, "M", "c"), + (0x1D9D, "M", "ɕ"), + (0x1D9E, "M", "ð"), + (0x1D9F, "M", "ɜ"), + (0x1DA0, "M", "f"), + (0x1DA1, "M", "ɟ"), + (0x1DA2, "M", "ɡ"), + (0x1DA3, "M", "ɥ"), + (0x1DA4, "M", "ɨ"), + (0x1DA5, "M", "ɩ"), + (0x1DA6, "M", "ɪ"), + (0x1DA7, "M", "ᵻ"), + (0x1DA8, "M", "ʝ"), + (0x1DA9, "M", "ɭ"), + (0x1DAA, "M", "ᶅ"), + (0x1DAB, "M", "ʟ"), + (0x1DAC, "M", "ɱ"), + (0x1DAD, "M", "ɰ"), + (0x1DAE, "M", "ɲ"), + (0x1DAF, "M", "ɳ"), + (0x1DB0, "M", "ɴ"), + (0x1DB1, "M", "ɵ"), + (0x1DB2, "M", "ɸ"), + (0x1DB3, "M", "ʂ"), + (0x1DB4, "M", "ʃ"), + (0x1DB5, "M", "ƫ"), + (0x1DB6, "M", "ʉ"), + (0x1DB7, "M", "ʊ"), + (0x1DB8, "M", "ᴜ"), + (0x1DB9, "M", "ʋ"), + (0x1DBA, "M", "ʌ"), + (0x1DBB, "M", "z"), + (0x1DBC, "M", "ʐ"), + (0x1DBD, "M", "ʑ"), + (0x1DBE, "M", "ʒ"), + (0x1DBF, "M", "θ"), + (0x1DC0, "V"), + (0x1E00, "M", "ḁ"), + (0x1E01, "V"), + ] + + +def _seg_17() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1E02, "M", "ḃ"), + (0x1E03, "V"), + (0x1E04, "M", "ḅ"), + (0x1E05, "V"), + (0x1E06, "M", "ḇ"), + (0x1E07, "V"), + (0x1E08, "M", "ḉ"), + (0x1E09, "V"), + (0x1E0A, "M", "ḋ"), + (0x1E0B, "V"), + (0x1E0C, "M", "ḍ"), + (0x1E0D, "V"), + (0x1E0E, "M", "ḏ"), + (0x1E0F, "V"), + (0x1E10, "M", "ḑ"), + (0x1E11, "V"), + (0x1E12, "M", "ḓ"), + (0x1E13, "V"), + (0x1E14, "M", "ḕ"), + (0x1E15, "V"), + (0x1E16, "M", "ḗ"), + (0x1E17, "V"), + (0x1E18, "M", "ḙ"), + (0x1E19, "V"), + (0x1E1A, "M", "ḛ"), + (0x1E1B, "V"), + (0x1E1C, "M", "ḝ"), + (0x1E1D, "V"), + (0x1E1E, "M", "ḟ"), + (0x1E1F, "V"), + (0x1E20, "M", "ḡ"), + (0x1E21, "V"), + (0x1E22, "M", "ḣ"), + (0x1E23, "V"), + (0x1E24, "M", "ḥ"), + (0x1E25, "V"), + (0x1E26, "M", "ḧ"), + (0x1E27, "V"), + (0x1E28, "M", "ḩ"), + (0x1E29, "V"), + (0x1E2A, "M", "ḫ"), + (0x1E2B, "V"), + (0x1E2C, "M", "ḭ"), + (0x1E2D, "V"), + (0x1E2E, "M", "ḯ"), + (0x1E2F, "V"), + (0x1E30, "M", "ḱ"), + (0x1E31, "V"), + (0x1E32, "M", "ḳ"), + (0x1E33, "V"), + (0x1E34, "M", "ḵ"), + (0x1E35, "V"), + (0x1E36, "M", "ḷ"), + (0x1E37, "V"), + (0x1E38, "M", "ḹ"), + (0x1E39, "V"), + (0x1E3A, "M", "ḻ"), + (0x1E3B, "V"), + (0x1E3C, "M", "ḽ"), + (0x1E3D, "V"), + (0x1E3E, "M", "ḿ"), + (0x1E3F, "V"), + (0x1E40, "M", "ṁ"), + (0x1E41, "V"), + (0x1E42, "M", "ṃ"), + (0x1E43, "V"), + (0x1E44, "M", "ṅ"), + (0x1E45, "V"), + (0x1E46, "M", "ṇ"), + (0x1E47, "V"), + (0x1E48, "M", "ṉ"), + (0x1E49, "V"), + (0x1E4A, "M", "ṋ"), + (0x1E4B, "V"), + (0x1E4C, "M", "ṍ"), + (0x1E4D, "V"), + (0x1E4E, "M", "ṏ"), + (0x1E4F, "V"), + (0x1E50, "M", "ṑ"), + (0x1E51, "V"), + (0x1E52, "M", "ṓ"), + (0x1E53, "V"), + (0x1E54, "M", "ṕ"), + (0x1E55, "V"), + (0x1E56, "M", "ṗ"), + (0x1E57, "V"), + (0x1E58, "M", "ṙ"), + (0x1E59, "V"), + (0x1E5A, "M", "ṛ"), + (0x1E5B, "V"), + (0x1E5C, "M", "ṝ"), + (0x1E5D, "V"), + (0x1E5E, "M", "ṟ"), + (0x1E5F, "V"), + (0x1E60, "M", "ṡ"), + (0x1E61, "V"), + (0x1E62, "M", "ṣ"), + (0x1E63, "V"), + (0x1E64, "M", "ṥ"), + (0x1E65, "V"), + ] + + +def _seg_18() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1E66, "M", "ṧ"), + (0x1E67, "V"), + (0x1E68, "M", "ṩ"), + (0x1E69, "V"), + (0x1E6A, "M", "ṫ"), + (0x1E6B, "V"), + (0x1E6C, "M", "ṭ"), + (0x1E6D, "V"), + (0x1E6E, "M", "ṯ"), + (0x1E6F, "V"), + (0x1E70, "M", "ṱ"), + (0x1E71, "V"), + (0x1E72, "M", "ṳ"), + (0x1E73, "V"), + (0x1E74, "M", "ṵ"), + (0x1E75, "V"), + (0x1E76, "M", "ṷ"), + (0x1E77, "V"), + (0x1E78, "M", "ṹ"), + (0x1E79, "V"), + (0x1E7A, "M", "ṻ"), + (0x1E7B, "V"), + (0x1E7C, "M", "ṽ"), + (0x1E7D, "V"), + (0x1E7E, "M", "ṿ"), + (0x1E7F, "V"), + (0x1E80, "M", "ẁ"), + (0x1E81, "V"), + (0x1E82, "M", "ẃ"), + (0x1E83, "V"), + (0x1E84, "M", "ẅ"), + (0x1E85, "V"), + (0x1E86, "M", "ẇ"), + (0x1E87, "V"), + (0x1E88, "M", "ẉ"), + (0x1E89, "V"), + (0x1E8A, "M", "ẋ"), + (0x1E8B, "V"), + (0x1E8C, "M", "ẍ"), + (0x1E8D, "V"), + (0x1E8E, "M", "ẏ"), + (0x1E8F, "V"), + (0x1E90, "M", "ẑ"), + (0x1E91, "V"), + (0x1E92, "M", "ẓ"), + (0x1E93, "V"), + (0x1E94, "M", "ẕ"), + (0x1E95, "V"), + (0x1E9A, "M", "aʾ"), + (0x1E9B, "M", "ṡ"), + (0x1E9C, "V"), + (0x1E9E, "M", "ß"), + (0x1E9F, "V"), + (0x1EA0, "M", "ạ"), + (0x1EA1, "V"), + (0x1EA2, "M", "ả"), + (0x1EA3, "V"), + (0x1EA4, "M", "ấ"), + (0x1EA5, "V"), + (0x1EA6, "M", "ầ"), + (0x1EA7, "V"), + (0x1EA8, "M", "ẩ"), + (0x1EA9, "V"), + (0x1EAA, "M", "ẫ"), + (0x1EAB, "V"), + (0x1EAC, "M", "ậ"), + (0x1EAD, "V"), + (0x1EAE, "M", "ắ"), + (0x1EAF, "V"), + (0x1EB0, "M", "ằ"), + (0x1EB1, "V"), + (0x1EB2, "M", "ẳ"), + (0x1EB3, "V"), + (0x1EB4, "M", "ẵ"), + (0x1EB5, "V"), + (0x1EB6, "M", "ặ"), + (0x1EB7, "V"), + (0x1EB8, "M", "ẹ"), + (0x1EB9, "V"), + (0x1EBA, "M", "ẻ"), + (0x1EBB, "V"), + (0x1EBC, "M", "ẽ"), + (0x1EBD, "V"), + (0x1EBE, "M", "ế"), + (0x1EBF, "V"), + (0x1EC0, "M", "ề"), + (0x1EC1, "V"), + (0x1EC2, "M", "ể"), + (0x1EC3, "V"), + (0x1EC4, "M", "ễ"), + (0x1EC5, "V"), + (0x1EC6, "M", "ệ"), + (0x1EC7, "V"), + (0x1EC8, "M", "ỉ"), + (0x1EC9, "V"), + (0x1ECA, "M", "ị"), + (0x1ECB, "V"), + (0x1ECC, "M", "ọ"), + (0x1ECD, "V"), + (0x1ECE, "M", "ỏ"), + ] + + +def _seg_19() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1ECF, "V"), + (0x1ED0, "M", "ố"), + (0x1ED1, "V"), + (0x1ED2, "M", "ồ"), + (0x1ED3, "V"), + (0x1ED4, "M", "ổ"), + (0x1ED5, "V"), + (0x1ED6, "M", "ỗ"), + (0x1ED7, "V"), + (0x1ED8, "M", "ộ"), + (0x1ED9, "V"), + (0x1EDA, "M", "ớ"), + (0x1EDB, "V"), + (0x1EDC, "M", "ờ"), + (0x1EDD, "V"), + (0x1EDE, "M", "ở"), + (0x1EDF, "V"), + (0x1EE0, "M", "ỡ"), + (0x1EE1, "V"), + (0x1EE2, "M", "ợ"), + (0x1EE3, "V"), + (0x1EE4, "M", "ụ"), + (0x1EE5, "V"), + (0x1EE6, "M", "ủ"), + (0x1EE7, "V"), + (0x1EE8, "M", "ứ"), + (0x1EE9, "V"), + (0x1EEA, "M", "ừ"), + (0x1EEB, "V"), + (0x1EEC, "M", "ử"), + (0x1EED, "V"), + (0x1EEE, "M", "ữ"), + (0x1EEF, "V"), + (0x1EF0, "M", "ự"), + (0x1EF1, "V"), + (0x1EF2, "M", "ỳ"), + (0x1EF3, "V"), + (0x1EF4, "M", "ỵ"), + (0x1EF5, "V"), + (0x1EF6, "M", "ỷ"), + (0x1EF7, "V"), + (0x1EF8, "M", "ỹ"), + (0x1EF9, "V"), + (0x1EFA, "M", "ỻ"), + (0x1EFB, "V"), + (0x1EFC, "M", "ỽ"), + (0x1EFD, "V"), + (0x1EFE, "M", "ỿ"), + (0x1EFF, "V"), + (0x1F08, "M", "ἀ"), + (0x1F09, "M", "ἁ"), + (0x1F0A, "M", "ἂ"), + (0x1F0B, "M", "ἃ"), + (0x1F0C, "M", "ἄ"), + (0x1F0D, "M", "ἅ"), + (0x1F0E, "M", "ἆ"), + (0x1F0F, "M", "ἇ"), + (0x1F10, "V"), + (0x1F16, "X"), + (0x1F18, "M", "ἐ"), + (0x1F19, "M", "ἑ"), + (0x1F1A, "M", "ἒ"), + (0x1F1B, "M", "ἓ"), + (0x1F1C, "M", "ἔ"), + (0x1F1D, "M", "ἕ"), + (0x1F1E, "X"), + (0x1F20, "V"), + (0x1F28, "M", "ἠ"), + (0x1F29, "M", "ἡ"), + (0x1F2A, "M", "ἢ"), + (0x1F2B, "M", "ἣ"), + (0x1F2C, "M", "ἤ"), + (0x1F2D, "M", "ἥ"), + (0x1F2E, "M", "ἦ"), + (0x1F2F, "M", "ἧ"), + (0x1F30, "V"), + (0x1F38, "M", "ἰ"), + (0x1F39, "M", "ἱ"), + (0x1F3A, "M", "ἲ"), + (0x1F3B, "M", "ἳ"), + (0x1F3C, "M", "ἴ"), + (0x1F3D, "M", "ἵ"), + (0x1F3E, "M", "ἶ"), + (0x1F3F, "M", "ἷ"), + (0x1F40, "V"), + (0x1F46, "X"), + (0x1F48, "M", "ὀ"), + (0x1F49, "M", "ὁ"), + (0x1F4A, "M", "ὂ"), + (0x1F4B, "M", "ὃ"), + (0x1F4C, "M", "ὄ"), + (0x1F4D, "M", "ὅ"), + (0x1F4E, "X"), + (0x1F50, "V"), + (0x1F58, "X"), + (0x1F59, "M", "ὑ"), + (0x1F5A, "X"), + (0x1F5B, "M", "ὓ"), + (0x1F5C, "X"), + (0x1F5D, "M", "ὕ"), + ] + + +def _seg_20() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1F5E, "X"), + (0x1F5F, "M", "ὗ"), + (0x1F60, "V"), + (0x1F68, "M", "ὠ"), + (0x1F69, "M", "ὡ"), + (0x1F6A, "M", "ὢ"), + (0x1F6B, "M", "ὣ"), + (0x1F6C, "M", "ὤ"), + (0x1F6D, "M", "ὥ"), + (0x1F6E, "M", "ὦ"), + (0x1F6F, "M", "ὧ"), + (0x1F70, "V"), + (0x1F71, "M", "ά"), + (0x1F72, "V"), + (0x1F73, "M", "έ"), + (0x1F74, "V"), + (0x1F75, "M", "ή"), + (0x1F76, "V"), + (0x1F77, "M", "ί"), + (0x1F78, "V"), + (0x1F79, "M", "ό"), + (0x1F7A, "V"), + (0x1F7B, "M", "ύ"), + (0x1F7C, "V"), + (0x1F7D, "M", "ώ"), + (0x1F7E, "X"), + (0x1F80, "M", "ἀι"), + (0x1F81, "M", "ἁι"), + (0x1F82, "M", "ἂι"), + (0x1F83, "M", "ἃι"), + (0x1F84, "M", "ἄι"), + (0x1F85, "M", "ἅι"), + (0x1F86, "M", "ἆι"), + (0x1F87, "M", "ἇι"), + (0x1F88, "M", "ἀι"), + (0x1F89, "M", "ἁι"), + (0x1F8A, "M", "ἂι"), + (0x1F8B, "M", "ἃι"), + (0x1F8C, "M", "ἄι"), + (0x1F8D, "M", "ἅι"), + (0x1F8E, "M", "ἆι"), + (0x1F8F, "M", "ἇι"), + (0x1F90, "M", "ἠι"), + (0x1F91, "M", "ἡι"), + (0x1F92, "M", "ἢι"), + (0x1F93, "M", "ἣι"), + (0x1F94, "M", "ἤι"), + (0x1F95, "M", "ἥι"), + (0x1F96, "M", "ἦι"), + (0x1F97, "M", "ἧι"), + (0x1F98, "M", "ἠι"), + (0x1F99, "M", "ἡι"), + (0x1F9A, "M", "ἢι"), + (0x1F9B, "M", "ἣι"), + (0x1F9C, "M", "ἤι"), + (0x1F9D, "M", "ἥι"), + (0x1F9E, "M", "ἦι"), + (0x1F9F, "M", "ἧι"), + (0x1FA0, "M", "ὠι"), + (0x1FA1, "M", "ὡι"), + (0x1FA2, "M", "ὢι"), + (0x1FA3, "M", "ὣι"), + (0x1FA4, "M", "ὤι"), + (0x1FA5, "M", "ὥι"), + (0x1FA6, "M", "ὦι"), + (0x1FA7, "M", "ὧι"), + (0x1FA8, "M", "ὠι"), + (0x1FA9, "M", "ὡι"), + (0x1FAA, "M", "ὢι"), + (0x1FAB, "M", "ὣι"), + (0x1FAC, "M", "ὤι"), + (0x1FAD, "M", "ὥι"), + (0x1FAE, "M", "ὦι"), + (0x1FAF, "M", "ὧι"), + (0x1FB0, "V"), + (0x1FB2, "M", "ὰι"), + (0x1FB3, "M", "αι"), + (0x1FB4, "M", "άι"), + (0x1FB5, "X"), + (0x1FB6, "V"), + (0x1FB7, "M", "ᾶι"), + (0x1FB8, "M", "ᾰ"), + (0x1FB9, "M", "ᾱ"), + (0x1FBA, "M", "ὰ"), + (0x1FBB, "M", "ά"), + (0x1FBC, "M", "αι"), + (0x1FBD, "M", " ̓"), + (0x1FBE, "M", "ι"), + (0x1FBF, "M", " ̓"), + (0x1FC0, "M", " ͂"), + (0x1FC1, "M", " ̈͂"), + (0x1FC2, "M", "ὴι"), + (0x1FC3, "M", "ηι"), + (0x1FC4, "M", "ήι"), + (0x1FC5, "X"), + (0x1FC6, "V"), + (0x1FC7, "M", "ῆι"), + (0x1FC8, "M", "ὲ"), + (0x1FC9, "M", "έ"), + (0x1FCA, "M", "ὴ"), + ] + + +def _seg_21() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1FCB, "M", "ή"), + (0x1FCC, "M", "ηι"), + (0x1FCD, "M", " ̓̀"), + (0x1FCE, "M", " ̓́"), + (0x1FCF, "M", " ̓͂"), + (0x1FD0, "V"), + (0x1FD3, "M", "ΐ"), + (0x1FD4, "X"), + (0x1FD6, "V"), + (0x1FD8, "M", "ῐ"), + (0x1FD9, "M", "ῑ"), + (0x1FDA, "M", "ὶ"), + (0x1FDB, "M", "ί"), + (0x1FDC, "X"), + (0x1FDD, "M", " ̔̀"), + (0x1FDE, "M", " ̔́"), + (0x1FDF, "M", " ̔͂"), + (0x1FE0, "V"), + (0x1FE3, "M", "ΰ"), + (0x1FE4, "V"), + (0x1FE8, "M", "ῠ"), + (0x1FE9, "M", "ῡ"), + (0x1FEA, "M", "ὺ"), + (0x1FEB, "M", "ύ"), + (0x1FEC, "M", "ῥ"), + (0x1FED, "M", " ̈̀"), + (0x1FEE, "M", " ̈́"), + (0x1FEF, "M", "`"), + (0x1FF0, "X"), + (0x1FF2, "M", "ὼι"), + (0x1FF3, "M", "ωι"), + (0x1FF4, "M", "ώι"), + (0x1FF5, "X"), + (0x1FF6, "V"), + (0x1FF7, "M", "ῶι"), + (0x1FF8, "M", "ὸ"), + (0x1FF9, "M", "ό"), + (0x1FFA, "M", "ὼ"), + (0x1FFB, "M", "ώ"), + (0x1FFC, "M", "ωι"), + (0x1FFD, "M", " ́"), + (0x1FFE, "M", " ̔"), + (0x1FFF, "X"), + (0x2000, "M", " "), + (0x200B, "I"), + (0x200C, "D", ""), + (0x200E, "X"), + (0x2010, "V"), + (0x2011, "M", "‐"), + (0x2012, "V"), + (0x2017, "M", " ̳"), + (0x2018, "V"), + (0x2024, "X"), + (0x2027, "V"), + (0x2028, "X"), + (0x202F, "M", " "), + (0x2030, "V"), + (0x2033, "M", "′′"), + (0x2034, "M", "′′′"), + (0x2035, "V"), + (0x2036, "M", "‵‵"), + (0x2037, "M", "‵‵‵"), + (0x2038, "V"), + (0x203C, "M", "!!"), + (0x203D, "V"), + (0x203E, "M", " ̅"), + (0x203F, "V"), + (0x2047, "M", "??"), + (0x2048, "M", "?!"), + (0x2049, "M", "!?"), + (0x204A, "V"), + (0x2057, "M", "′′′′"), + (0x2058, "V"), + (0x205F, "M", " "), + (0x2060, "I"), + (0x2065, "X"), + (0x206A, "I"), + (0x2070, "M", "0"), + (0x2071, "M", "i"), + (0x2072, "X"), + (0x2074, "M", "4"), + (0x2075, "M", "5"), + (0x2076, "M", "6"), + (0x2077, "M", "7"), + (0x2078, "M", "8"), + (0x2079, "M", "9"), + (0x207A, "M", "+"), + (0x207B, "M", "−"), + (0x207C, "M", "="), + (0x207D, "M", "("), + (0x207E, "M", ")"), + (0x207F, "M", "n"), + (0x2080, "M", "0"), + (0x2081, "M", "1"), + (0x2082, "M", "2"), + (0x2083, "M", "3"), + (0x2084, "M", "4"), + (0x2085, "M", "5"), + (0x2086, "M", "6"), + (0x2087, "M", "7"), + ] + + +def _seg_22() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2088, "M", "8"), + (0x2089, "M", "9"), + (0x208A, "M", "+"), + (0x208B, "M", "−"), + (0x208C, "M", "="), + (0x208D, "M", "("), + (0x208E, "M", ")"), + (0x208F, "X"), + (0x2090, "M", "a"), + (0x2091, "M", "e"), + (0x2092, "M", "o"), + (0x2093, "M", "x"), + (0x2094, "M", "ə"), + (0x2095, "M", "h"), + (0x2096, "M", "k"), + (0x2097, "M", "l"), + (0x2098, "M", "m"), + (0x2099, "M", "n"), + (0x209A, "M", "p"), + (0x209B, "M", "s"), + (0x209C, "M", "t"), + (0x209D, "X"), + (0x20A0, "V"), + (0x20A8, "M", "rs"), + (0x20A9, "V"), + (0x20C1, "X"), + (0x20D0, "V"), + (0x20F1, "X"), + (0x2100, "M", "a/c"), + (0x2101, "M", "a/s"), + (0x2102, "M", "c"), + (0x2103, "M", "°c"), + (0x2104, "V"), + (0x2105, "M", "c/o"), + (0x2106, "M", "c/u"), + (0x2107, "M", "ɛ"), + (0x2108, "V"), + (0x2109, "M", "°f"), + (0x210A, "M", "g"), + (0x210B, "M", "h"), + (0x210F, "M", "ħ"), + (0x2110, "M", "i"), + (0x2112, "M", "l"), + (0x2114, "V"), + (0x2115, "M", "n"), + (0x2116, "M", "no"), + (0x2117, "V"), + (0x2119, "M", "p"), + (0x211A, "M", "q"), + (0x211B, "M", "r"), + (0x211E, "V"), + (0x2120, "M", "sm"), + (0x2121, "M", "tel"), + (0x2122, "M", "tm"), + (0x2123, "V"), + (0x2124, "M", "z"), + (0x2125, "V"), + (0x2126, "M", "ω"), + (0x2127, "V"), + (0x2128, "M", "z"), + (0x2129, "V"), + (0x212A, "M", "k"), + (0x212B, "M", "å"), + (0x212C, "M", "b"), + (0x212D, "M", "c"), + (0x212E, "V"), + (0x212F, "M", "e"), + (0x2131, "M", "f"), + (0x2132, "M", "ⅎ"), + (0x2133, "M", "m"), + (0x2134, "M", "o"), + (0x2135, "M", "א"), + (0x2136, "M", "ב"), + (0x2137, "M", "ג"), + (0x2138, "M", "ד"), + (0x2139, "M", "i"), + (0x213A, "V"), + (0x213B, "M", "fax"), + (0x213C, "M", "π"), + (0x213D, "M", "γ"), + (0x213F, "M", "π"), + (0x2140, "M", "∑"), + (0x2141, "V"), + (0x2145, "M", "d"), + (0x2147, "M", "e"), + (0x2148, "M", "i"), + (0x2149, "M", "j"), + (0x214A, "V"), + (0x2150, "M", "1⁄7"), + (0x2151, "M", "1⁄9"), + (0x2152, "M", "1⁄10"), + (0x2153, "M", "1⁄3"), + (0x2154, "M", "2⁄3"), + (0x2155, "M", "1⁄5"), + (0x2156, "M", "2⁄5"), + (0x2157, "M", "3⁄5"), + (0x2158, "M", "4⁄5"), + (0x2159, "M", "1⁄6"), + (0x215A, "M", "5⁄6"), + (0x215B, "M", "1⁄8"), + ] + + +def _seg_23() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x215C, "M", "3⁄8"), + (0x215D, "M", "5⁄8"), + (0x215E, "M", "7⁄8"), + (0x215F, "M", "1⁄"), + (0x2160, "M", "i"), + (0x2161, "M", "ii"), + (0x2162, "M", "iii"), + (0x2163, "M", "iv"), + (0x2164, "M", "v"), + (0x2165, "M", "vi"), + (0x2166, "M", "vii"), + (0x2167, "M", "viii"), + (0x2168, "M", "ix"), + (0x2169, "M", "x"), + (0x216A, "M", "xi"), + (0x216B, "M", "xii"), + (0x216C, "M", "l"), + (0x216D, "M", "c"), + (0x216E, "M", "d"), + (0x216F, "M", "m"), + (0x2170, "M", "i"), + (0x2171, "M", "ii"), + (0x2172, "M", "iii"), + (0x2173, "M", "iv"), + (0x2174, "M", "v"), + (0x2175, "M", "vi"), + (0x2176, "M", "vii"), + (0x2177, "M", "viii"), + (0x2178, "M", "ix"), + (0x2179, "M", "x"), + (0x217A, "M", "xi"), + (0x217B, "M", "xii"), + (0x217C, "M", "l"), + (0x217D, "M", "c"), + (0x217E, "M", "d"), + (0x217F, "M", "m"), + (0x2180, "V"), + (0x2183, "M", "ↄ"), + (0x2184, "V"), + (0x2189, "M", "0⁄3"), + (0x218A, "V"), + (0x218C, "X"), + (0x2190, "V"), + (0x222C, "M", "∫∫"), + (0x222D, "M", "∫∫∫"), + (0x222E, "V"), + (0x222F, "M", "∮∮"), + (0x2230, "M", "∮∮∮"), + (0x2231, "V"), + (0x2329, "M", "〈"), + (0x232A, "M", "〉"), + (0x232B, "V"), + (0x242A, "X"), + (0x2440, "V"), + (0x244B, "X"), + (0x2460, "M", "1"), + (0x2461, "M", "2"), + (0x2462, "M", "3"), + (0x2463, "M", "4"), + (0x2464, "M", "5"), + (0x2465, "M", "6"), + (0x2466, "M", "7"), + (0x2467, "M", "8"), + (0x2468, "M", "9"), + (0x2469, "M", "10"), + (0x246A, "M", "11"), + (0x246B, "M", "12"), + (0x246C, "M", "13"), + (0x246D, "M", "14"), + (0x246E, "M", "15"), + (0x246F, "M", "16"), + (0x2470, "M", "17"), + (0x2471, "M", "18"), + (0x2472, "M", "19"), + (0x2473, "M", "20"), + (0x2474, "M", "(1)"), + (0x2475, "M", "(2)"), + (0x2476, "M", "(3)"), + (0x2477, "M", "(4)"), + (0x2478, "M", "(5)"), + (0x2479, "M", "(6)"), + (0x247A, "M", "(7)"), + (0x247B, "M", "(8)"), + (0x247C, "M", "(9)"), + (0x247D, "M", "(10)"), + (0x247E, "M", "(11)"), + (0x247F, "M", "(12)"), + (0x2480, "M", "(13)"), + (0x2481, "M", "(14)"), + (0x2482, "M", "(15)"), + (0x2483, "M", "(16)"), + (0x2484, "M", "(17)"), + (0x2485, "M", "(18)"), + (0x2486, "M", "(19)"), + (0x2487, "M", "(20)"), + (0x2488, "X"), + (0x249C, "M", "(a)"), + (0x249D, "M", "(b)"), + (0x249E, "M", "(c)"), + (0x249F, "M", "(d)"), + ] + + +def _seg_24() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x24A0, "M", "(e)"), + (0x24A1, "M", "(f)"), + (0x24A2, "M", "(g)"), + (0x24A3, "M", "(h)"), + (0x24A4, "M", "(i)"), + (0x24A5, "M", "(j)"), + (0x24A6, "M", "(k)"), + (0x24A7, "M", "(l)"), + (0x24A8, "M", "(m)"), + (0x24A9, "M", "(n)"), + (0x24AA, "M", "(o)"), + (0x24AB, "M", "(p)"), + (0x24AC, "M", "(q)"), + (0x24AD, "M", "(r)"), + (0x24AE, "M", "(s)"), + (0x24AF, "M", "(t)"), + (0x24B0, "M", "(u)"), + (0x24B1, "M", "(v)"), + (0x24B2, "M", "(w)"), + (0x24B3, "M", "(x)"), + (0x24B4, "M", "(y)"), + (0x24B5, "M", "(z)"), + (0x24B6, "M", "a"), + (0x24B7, "M", "b"), + (0x24B8, "M", "c"), + (0x24B9, "M", "d"), + (0x24BA, "M", "e"), + (0x24BB, "M", "f"), + (0x24BC, "M", "g"), + (0x24BD, "M", "h"), + (0x24BE, "M", "i"), + (0x24BF, "M", "j"), + (0x24C0, "M", "k"), + (0x24C1, "M", "l"), + (0x24C2, "M", "m"), + (0x24C3, "M", "n"), + (0x24C4, "M", "o"), + (0x24C5, "M", "p"), + (0x24C6, "M", "q"), + (0x24C7, "M", "r"), + (0x24C8, "M", "s"), + (0x24C9, "M", "t"), + (0x24CA, "M", "u"), + (0x24CB, "M", "v"), + (0x24CC, "M", "w"), + (0x24CD, "M", "x"), + (0x24CE, "M", "y"), + (0x24CF, "M", "z"), + (0x24D0, "M", "a"), + (0x24D1, "M", "b"), + (0x24D2, "M", "c"), + (0x24D3, "M", "d"), + (0x24D4, "M", "e"), + (0x24D5, "M", "f"), + (0x24D6, "M", "g"), + (0x24D7, "M", "h"), + (0x24D8, "M", "i"), + (0x24D9, "M", "j"), + (0x24DA, "M", "k"), + (0x24DB, "M", "l"), + (0x24DC, "M", "m"), + (0x24DD, "M", "n"), + (0x24DE, "M", "o"), + (0x24DF, "M", "p"), + (0x24E0, "M", "q"), + (0x24E1, "M", "r"), + (0x24E2, "M", "s"), + (0x24E3, "M", "t"), + (0x24E4, "M", "u"), + (0x24E5, "M", "v"), + (0x24E6, "M", "w"), + (0x24E7, "M", "x"), + (0x24E8, "M", "y"), + (0x24E9, "M", "z"), + (0x24EA, "M", "0"), + (0x24EB, "V"), + (0x2A0C, "M", "∫∫∫∫"), + (0x2A0D, "V"), + (0x2A74, "M", "::="), + (0x2A75, "M", "=="), + (0x2A76, "M", "==="), + (0x2A77, "V"), + (0x2ADC, "M", "⫝̸"), + (0x2ADD, "V"), + (0x2B74, "X"), + (0x2B76, "V"), + (0x2B96, "X"), + (0x2B97, "V"), + (0x2C00, "M", "ⰰ"), + (0x2C01, "M", "ⰱ"), + (0x2C02, "M", "ⰲ"), + (0x2C03, "M", "ⰳ"), + (0x2C04, "M", "ⰴ"), + (0x2C05, "M", "ⰵ"), + (0x2C06, "M", "ⰶ"), + (0x2C07, "M", "ⰷ"), + (0x2C08, "M", "ⰸ"), + (0x2C09, "M", "ⰹ"), + (0x2C0A, "M", "ⰺ"), + (0x2C0B, "M", "ⰻ"), + ] + + +def _seg_25() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2C0C, "M", "ⰼ"), + (0x2C0D, "M", "ⰽ"), + (0x2C0E, "M", "ⰾ"), + (0x2C0F, "M", "ⰿ"), + (0x2C10, "M", "ⱀ"), + (0x2C11, "M", "ⱁ"), + (0x2C12, "M", "ⱂ"), + (0x2C13, "M", "ⱃ"), + (0x2C14, "M", "ⱄ"), + (0x2C15, "M", "ⱅ"), + (0x2C16, "M", "ⱆ"), + (0x2C17, "M", "ⱇ"), + (0x2C18, "M", "ⱈ"), + (0x2C19, "M", "ⱉ"), + (0x2C1A, "M", "ⱊ"), + (0x2C1B, "M", "ⱋ"), + (0x2C1C, "M", "ⱌ"), + (0x2C1D, "M", "ⱍ"), + (0x2C1E, "M", "ⱎ"), + (0x2C1F, "M", "ⱏ"), + (0x2C20, "M", "ⱐ"), + (0x2C21, "M", "ⱑ"), + (0x2C22, "M", "ⱒ"), + (0x2C23, "M", "ⱓ"), + (0x2C24, "M", "ⱔ"), + (0x2C25, "M", "ⱕ"), + (0x2C26, "M", "ⱖ"), + (0x2C27, "M", "ⱗ"), + (0x2C28, "M", "ⱘ"), + (0x2C29, "M", "ⱙ"), + (0x2C2A, "M", "ⱚ"), + (0x2C2B, "M", "ⱛ"), + (0x2C2C, "M", "ⱜ"), + (0x2C2D, "M", "ⱝ"), + (0x2C2E, "M", "ⱞ"), + (0x2C2F, "M", "ⱟ"), + (0x2C30, "V"), + (0x2C60, "M", "ⱡ"), + (0x2C61, "V"), + (0x2C62, "M", "ɫ"), + (0x2C63, "M", "ᵽ"), + (0x2C64, "M", "ɽ"), + (0x2C65, "V"), + (0x2C67, "M", "ⱨ"), + (0x2C68, "V"), + (0x2C69, "M", "ⱪ"), + (0x2C6A, "V"), + (0x2C6B, "M", "ⱬ"), + (0x2C6C, "V"), + (0x2C6D, "M", "ɑ"), + (0x2C6E, "M", "ɱ"), + (0x2C6F, "M", "ɐ"), + (0x2C70, "M", "ɒ"), + (0x2C71, "V"), + (0x2C72, "M", "ⱳ"), + (0x2C73, "V"), + (0x2C75, "M", "ⱶ"), + (0x2C76, "V"), + (0x2C7C, "M", "j"), + (0x2C7D, "M", "v"), + (0x2C7E, "M", "ȿ"), + (0x2C7F, "M", "ɀ"), + (0x2C80, "M", "ⲁ"), + (0x2C81, "V"), + (0x2C82, "M", "ⲃ"), + (0x2C83, "V"), + (0x2C84, "M", "ⲅ"), + (0x2C85, "V"), + (0x2C86, "M", "ⲇ"), + (0x2C87, "V"), + (0x2C88, "M", "ⲉ"), + (0x2C89, "V"), + (0x2C8A, "M", "ⲋ"), + (0x2C8B, "V"), + (0x2C8C, "M", "ⲍ"), + (0x2C8D, "V"), + (0x2C8E, "M", "ⲏ"), + (0x2C8F, "V"), + (0x2C90, "M", "ⲑ"), + (0x2C91, "V"), + (0x2C92, "M", "ⲓ"), + (0x2C93, "V"), + (0x2C94, "M", "ⲕ"), + (0x2C95, "V"), + (0x2C96, "M", "ⲗ"), + (0x2C97, "V"), + (0x2C98, "M", "ⲙ"), + (0x2C99, "V"), + (0x2C9A, "M", "ⲛ"), + (0x2C9B, "V"), + (0x2C9C, "M", "ⲝ"), + (0x2C9D, "V"), + (0x2C9E, "M", "ⲟ"), + (0x2C9F, "V"), + (0x2CA0, "M", "ⲡ"), + (0x2CA1, "V"), + (0x2CA2, "M", "ⲣ"), + (0x2CA3, "V"), + (0x2CA4, "M", "ⲥ"), + (0x2CA5, "V"), + ] + + +def _seg_26() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2CA6, "M", "ⲧ"), + (0x2CA7, "V"), + (0x2CA8, "M", "ⲩ"), + (0x2CA9, "V"), + (0x2CAA, "M", "ⲫ"), + (0x2CAB, "V"), + (0x2CAC, "M", "ⲭ"), + (0x2CAD, "V"), + (0x2CAE, "M", "ⲯ"), + (0x2CAF, "V"), + (0x2CB0, "M", "ⲱ"), + (0x2CB1, "V"), + (0x2CB2, "M", "ⲳ"), + (0x2CB3, "V"), + (0x2CB4, "M", "ⲵ"), + (0x2CB5, "V"), + (0x2CB6, "M", "ⲷ"), + (0x2CB7, "V"), + (0x2CB8, "M", "ⲹ"), + (0x2CB9, "V"), + (0x2CBA, "M", "ⲻ"), + (0x2CBB, "V"), + (0x2CBC, "M", "ⲽ"), + (0x2CBD, "V"), + (0x2CBE, "M", "ⲿ"), + (0x2CBF, "V"), + (0x2CC0, "M", "ⳁ"), + (0x2CC1, "V"), + (0x2CC2, "M", "ⳃ"), + (0x2CC3, "V"), + (0x2CC4, "M", "ⳅ"), + (0x2CC5, "V"), + (0x2CC6, "M", "ⳇ"), + (0x2CC7, "V"), + (0x2CC8, "M", "ⳉ"), + (0x2CC9, "V"), + (0x2CCA, "M", "ⳋ"), + (0x2CCB, "V"), + (0x2CCC, "M", "ⳍ"), + (0x2CCD, "V"), + (0x2CCE, "M", "ⳏ"), + (0x2CCF, "V"), + (0x2CD0, "M", "ⳑ"), + (0x2CD1, "V"), + (0x2CD2, "M", "ⳓ"), + (0x2CD3, "V"), + (0x2CD4, "M", "ⳕ"), + (0x2CD5, "V"), + (0x2CD6, "M", "ⳗ"), + (0x2CD7, "V"), + (0x2CD8, "M", "ⳙ"), + (0x2CD9, "V"), + (0x2CDA, "M", "ⳛ"), + (0x2CDB, "V"), + (0x2CDC, "M", "ⳝ"), + (0x2CDD, "V"), + (0x2CDE, "M", "ⳟ"), + (0x2CDF, "V"), + (0x2CE0, "M", "ⳡ"), + (0x2CE1, "V"), + (0x2CE2, "M", "ⳣ"), + (0x2CE3, "V"), + (0x2CEB, "M", "ⳬ"), + (0x2CEC, "V"), + (0x2CED, "M", "ⳮ"), + (0x2CEE, "V"), + (0x2CF2, "M", "ⳳ"), + (0x2CF3, "V"), + (0x2CF4, "X"), + (0x2CF9, "V"), + (0x2D26, "X"), + (0x2D27, "V"), + (0x2D28, "X"), + (0x2D2D, "V"), + (0x2D2E, "X"), + (0x2D30, "V"), + (0x2D68, "X"), + (0x2D6F, "M", "ⵡ"), + (0x2D70, "V"), + (0x2D71, "X"), + (0x2D7F, "V"), + (0x2D97, "X"), + (0x2DA0, "V"), + (0x2DA7, "X"), + (0x2DA8, "V"), + (0x2DAF, "X"), + (0x2DB0, "V"), + (0x2DB7, "X"), + (0x2DB8, "V"), + (0x2DBF, "X"), + (0x2DC0, "V"), + (0x2DC7, "X"), + (0x2DC8, "V"), + (0x2DCF, "X"), + (0x2DD0, "V"), + (0x2DD7, "X"), + (0x2DD8, "V"), + (0x2DDF, "X"), + (0x2DE0, "V"), + (0x2E5E, "X"), + ] + + +def _seg_27() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2E80, "V"), + (0x2E9A, "X"), + (0x2E9B, "V"), + (0x2E9F, "M", "母"), + (0x2EA0, "V"), + (0x2EF3, "M", "龟"), + (0x2EF4, "X"), + (0x2F00, "M", "一"), + (0x2F01, "M", "丨"), + (0x2F02, "M", "丶"), + (0x2F03, "M", "丿"), + (0x2F04, "M", "乙"), + (0x2F05, "M", "亅"), + (0x2F06, "M", "二"), + (0x2F07, "M", "亠"), + (0x2F08, "M", "人"), + (0x2F09, "M", "儿"), + (0x2F0A, "M", "入"), + (0x2F0B, "M", "八"), + (0x2F0C, "M", "冂"), + (0x2F0D, "M", "冖"), + (0x2F0E, "M", "冫"), + (0x2F0F, "M", "几"), + (0x2F10, "M", "凵"), + (0x2F11, "M", "刀"), + (0x2F12, "M", "力"), + (0x2F13, "M", "勹"), + (0x2F14, "M", "匕"), + (0x2F15, "M", "匚"), + (0x2F16, "M", "匸"), + (0x2F17, "M", "十"), + (0x2F18, "M", "卜"), + (0x2F19, "M", "卩"), + (0x2F1A, "M", "厂"), + (0x2F1B, "M", "厶"), + (0x2F1C, "M", "又"), + (0x2F1D, "M", "口"), + (0x2F1E, "M", "囗"), + (0x2F1F, "M", "土"), + (0x2F20, "M", "士"), + (0x2F21, "M", "夂"), + (0x2F22, "M", "夊"), + (0x2F23, "M", "夕"), + (0x2F24, "M", "大"), + (0x2F25, "M", "女"), + (0x2F26, "M", "子"), + (0x2F27, "M", "宀"), + (0x2F28, "M", "寸"), + (0x2F29, "M", "小"), + (0x2F2A, "M", "尢"), + (0x2F2B, "M", "尸"), + (0x2F2C, "M", "屮"), + (0x2F2D, "M", "山"), + (0x2F2E, "M", "巛"), + (0x2F2F, "M", "工"), + (0x2F30, "M", "己"), + (0x2F31, "M", "巾"), + (0x2F32, "M", "干"), + (0x2F33, "M", "幺"), + (0x2F34, "M", "广"), + (0x2F35, "M", "廴"), + (0x2F36, "M", "廾"), + (0x2F37, "M", "弋"), + (0x2F38, "M", "弓"), + (0x2F39, "M", "彐"), + (0x2F3A, "M", "彡"), + (0x2F3B, "M", "彳"), + (0x2F3C, "M", "心"), + (0x2F3D, "M", "戈"), + (0x2F3E, "M", "戶"), + (0x2F3F, "M", "手"), + (0x2F40, "M", "支"), + (0x2F41, "M", "攴"), + (0x2F42, "M", "文"), + (0x2F43, "M", "斗"), + (0x2F44, "M", "斤"), + (0x2F45, "M", "方"), + (0x2F46, "M", "无"), + (0x2F47, "M", "日"), + (0x2F48, "M", "曰"), + (0x2F49, "M", "月"), + (0x2F4A, "M", "木"), + (0x2F4B, "M", "欠"), + (0x2F4C, "M", "止"), + (0x2F4D, "M", "歹"), + (0x2F4E, "M", "殳"), + (0x2F4F, "M", "毋"), + (0x2F50, "M", "比"), + (0x2F51, "M", "毛"), + (0x2F52, "M", "氏"), + (0x2F53, "M", "气"), + (0x2F54, "M", "水"), + (0x2F55, "M", "火"), + (0x2F56, "M", "爪"), + (0x2F57, "M", "父"), + (0x2F58, "M", "爻"), + (0x2F59, "M", "爿"), + (0x2F5A, "M", "片"), + (0x2F5B, "M", "牙"), + (0x2F5C, "M", "牛"), + ] + + +def _seg_28() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2F5D, "M", "犬"), + (0x2F5E, "M", "玄"), + (0x2F5F, "M", "玉"), + (0x2F60, "M", "瓜"), + (0x2F61, "M", "瓦"), + (0x2F62, "M", "甘"), + (0x2F63, "M", "生"), + (0x2F64, "M", "用"), + (0x2F65, "M", "田"), + (0x2F66, "M", "疋"), + (0x2F67, "M", "疒"), + (0x2F68, "M", "癶"), + (0x2F69, "M", "白"), + (0x2F6A, "M", "皮"), + (0x2F6B, "M", "皿"), + (0x2F6C, "M", "目"), + (0x2F6D, "M", "矛"), + (0x2F6E, "M", "矢"), + (0x2F6F, "M", "石"), + (0x2F70, "M", "示"), + (0x2F71, "M", "禸"), + (0x2F72, "M", "禾"), + (0x2F73, "M", "穴"), + (0x2F74, "M", "立"), + (0x2F75, "M", "竹"), + (0x2F76, "M", "米"), + (0x2F77, "M", "糸"), + (0x2F78, "M", "缶"), + (0x2F79, "M", "网"), + (0x2F7A, "M", "羊"), + (0x2F7B, "M", "羽"), + (0x2F7C, "M", "老"), + (0x2F7D, "M", "而"), + (0x2F7E, "M", "耒"), + (0x2F7F, "M", "耳"), + (0x2F80, "M", "聿"), + (0x2F81, "M", "肉"), + (0x2F82, "M", "臣"), + (0x2F83, "M", "自"), + (0x2F84, "M", "至"), + (0x2F85, "M", "臼"), + (0x2F86, "M", "舌"), + (0x2F87, "M", "舛"), + (0x2F88, "M", "舟"), + (0x2F89, "M", "艮"), + (0x2F8A, "M", "色"), + (0x2F8B, "M", "艸"), + (0x2F8C, "M", "虍"), + (0x2F8D, "M", "虫"), + (0x2F8E, "M", "血"), + (0x2F8F, "M", "行"), + (0x2F90, "M", "衣"), + (0x2F91, "M", "襾"), + (0x2F92, "M", "見"), + (0x2F93, "M", "角"), + (0x2F94, "M", "言"), + (0x2F95, "M", "谷"), + (0x2F96, "M", "豆"), + (0x2F97, "M", "豕"), + (0x2F98, "M", "豸"), + (0x2F99, "M", "貝"), + (0x2F9A, "M", "赤"), + (0x2F9B, "M", "走"), + (0x2F9C, "M", "足"), + (0x2F9D, "M", "身"), + (0x2F9E, "M", "車"), + (0x2F9F, "M", "辛"), + (0x2FA0, "M", "辰"), + (0x2FA1, "M", "辵"), + (0x2FA2, "M", "邑"), + (0x2FA3, "M", "酉"), + (0x2FA4, "M", "釆"), + (0x2FA5, "M", "里"), + (0x2FA6, "M", "金"), + (0x2FA7, "M", "長"), + (0x2FA8, "M", "門"), + (0x2FA9, "M", "阜"), + (0x2FAA, "M", "隶"), + (0x2FAB, "M", "隹"), + (0x2FAC, "M", "雨"), + (0x2FAD, "M", "靑"), + (0x2FAE, "M", "非"), + (0x2FAF, "M", "面"), + (0x2FB0, "M", "革"), + (0x2FB1, "M", "韋"), + (0x2FB2, "M", "韭"), + (0x2FB3, "M", "音"), + (0x2FB4, "M", "頁"), + (0x2FB5, "M", "風"), + (0x2FB6, "M", "飛"), + (0x2FB7, "M", "食"), + (0x2FB8, "M", "首"), + (0x2FB9, "M", "香"), + (0x2FBA, "M", "馬"), + (0x2FBB, "M", "骨"), + (0x2FBC, "M", "高"), + (0x2FBD, "M", "髟"), + (0x2FBE, "M", "鬥"), + (0x2FBF, "M", "鬯"), + (0x2FC0, "M", "鬲"), + ] + + +def _seg_29() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2FC1, "M", "鬼"), + (0x2FC2, "M", "魚"), + (0x2FC3, "M", "鳥"), + (0x2FC4, "M", "鹵"), + (0x2FC5, "M", "鹿"), + (0x2FC6, "M", "麥"), + (0x2FC7, "M", "麻"), + (0x2FC8, "M", "黃"), + (0x2FC9, "M", "黍"), + (0x2FCA, "M", "黑"), + (0x2FCB, "M", "黹"), + (0x2FCC, "M", "黽"), + (0x2FCD, "M", "鼎"), + (0x2FCE, "M", "鼓"), + (0x2FCF, "M", "鼠"), + (0x2FD0, "M", "鼻"), + (0x2FD1, "M", "齊"), + (0x2FD2, "M", "齒"), + (0x2FD3, "M", "龍"), + (0x2FD4, "M", "龜"), + (0x2FD5, "M", "龠"), + (0x2FD6, "X"), + (0x3000, "M", " "), + (0x3001, "V"), + (0x3002, "M", "."), + (0x3003, "V"), + (0x3036, "M", "〒"), + (0x3037, "V"), + (0x3038, "M", "十"), + (0x3039, "M", "卄"), + (0x303A, "M", "卅"), + (0x303B, "V"), + (0x3040, "X"), + (0x3041, "V"), + (0x3097, "X"), + (0x3099, "V"), + (0x309B, "M", " ゙"), + (0x309C, "M", " ゚"), + (0x309D, "V"), + (0x309F, "M", "より"), + (0x30A0, "V"), + (0x30FF, "M", "コト"), + (0x3100, "X"), + (0x3105, "V"), + (0x3130, "X"), + (0x3131, "M", "ᄀ"), + (0x3132, "M", "ᄁ"), + (0x3133, "M", "ᆪ"), + (0x3134, "M", "ᄂ"), + (0x3135, "M", "ᆬ"), + (0x3136, "M", "ᆭ"), + (0x3137, "M", "ᄃ"), + (0x3138, "M", "ᄄ"), + (0x3139, "M", "ᄅ"), + (0x313A, "M", "ᆰ"), + (0x313B, "M", "ᆱ"), + (0x313C, "M", "ᆲ"), + (0x313D, "M", "ᆳ"), + (0x313E, "M", "ᆴ"), + (0x313F, "M", "ᆵ"), + (0x3140, "M", "ᄚ"), + (0x3141, "M", "ᄆ"), + (0x3142, "M", "ᄇ"), + (0x3143, "M", "ᄈ"), + (0x3144, "M", "ᄡ"), + (0x3145, "M", "ᄉ"), + (0x3146, "M", "ᄊ"), + (0x3147, "M", "ᄋ"), + (0x3148, "M", "ᄌ"), + (0x3149, "M", "ᄍ"), + (0x314A, "M", "ᄎ"), + (0x314B, "M", "ᄏ"), + (0x314C, "M", "ᄐ"), + (0x314D, "M", "ᄑ"), + (0x314E, "M", "ᄒ"), + (0x314F, "M", "ᅡ"), + (0x3150, "M", "ᅢ"), + (0x3151, "M", "ᅣ"), + (0x3152, "M", "ᅤ"), + (0x3153, "M", "ᅥ"), + (0x3154, "M", "ᅦ"), + (0x3155, "M", "ᅧ"), + (0x3156, "M", "ᅨ"), + (0x3157, "M", "ᅩ"), + (0x3158, "M", "ᅪ"), + (0x3159, "M", "ᅫ"), + (0x315A, "M", "ᅬ"), + (0x315B, "M", "ᅭ"), + (0x315C, "M", "ᅮ"), + (0x315D, "M", "ᅯ"), + (0x315E, "M", "ᅰ"), + (0x315F, "M", "ᅱ"), + (0x3160, "M", "ᅲ"), + (0x3161, "M", "ᅳ"), + (0x3162, "M", "ᅴ"), + (0x3163, "M", "ᅵ"), + (0x3164, "I"), + (0x3165, "M", "ᄔ"), + (0x3166, "M", "ᄕ"), + (0x3167, "M", "ᇇ"), + ] + + +def _seg_30() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x3168, "M", "ᇈ"), + (0x3169, "M", "ᇌ"), + (0x316A, "M", "ᇎ"), + (0x316B, "M", "ᇓ"), + (0x316C, "M", "ᇗ"), + (0x316D, "M", "ᇙ"), + (0x316E, "M", "ᄜ"), + (0x316F, "M", "ᇝ"), + (0x3170, "M", "ᇟ"), + (0x3171, "M", "ᄝ"), + (0x3172, "M", "ᄞ"), + (0x3173, "M", "ᄠ"), + (0x3174, "M", "ᄢ"), + (0x3175, "M", "ᄣ"), + (0x3176, "M", "ᄧ"), + (0x3177, "M", "ᄩ"), + (0x3178, "M", "ᄫ"), + (0x3179, "M", "ᄬ"), + (0x317A, "M", "ᄭ"), + (0x317B, "M", "ᄮ"), + (0x317C, "M", "ᄯ"), + (0x317D, "M", "ᄲ"), + (0x317E, "M", "ᄶ"), + (0x317F, "M", "ᅀ"), + (0x3180, "M", "ᅇ"), + (0x3181, "M", "ᅌ"), + (0x3182, "M", "ᇱ"), + (0x3183, "M", "ᇲ"), + (0x3184, "M", "ᅗ"), + (0x3185, "M", "ᅘ"), + (0x3186, "M", "ᅙ"), + (0x3187, "M", "ᆄ"), + (0x3188, "M", "ᆅ"), + (0x3189, "M", "ᆈ"), + (0x318A, "M", "ᆑ"), + (0x318B, "M", "ᆒ"), + (0x318C, "M", "ᆔ"), + (0x318D, "M", "ᆞ"), + (0x318E, "M", "ᆡ"), + (0x318F, "X"), + (0x3190, "V"), + (0x3192, "M", "一"), + (0x3193, "M", "二"), + (0x3194, "M", "三"), + (0x3195, "M", "四"), + (0x3196, "M", "上"), + (0x3197, "M", "中"), + (0x3198, "M", "下"), + (0x3199, "M", "甲"), + (0x319A, "M", "乙"), + (0x319B, "M", "丙"), + (0x319C, "M", "丁"), + (0x319D, "M", "天"), + (0x319E, "M", "地"), + (0x319F, "M", "人"), + (0x31A0, "V"), + (0x31E6, "X"), + (0x31F0, "V"), + (0x3200, "M", "(ᄀ)"), + (0x3201, "M", "(ᄂ)"), + (0x3202, "M", "(ᄃ)"), + (0x3203, "M", "(ᄅ)"), + (0x3204, "M", "(ᄆ)"), + (0x3205, "M", "(ᄇ)"), + (0x3206, "M", "(ᄉ)"), + (0x3207, "M", "(ᄋ)"), + (0x3208, "M", "(ᄌ)"), + (0x3209, "M", "(ᄎ)"), + (0x320A, "M", "(ᄏ)"), + (0x320B, "M", "(ᄐ)"), + (0x320C, "M", "(ᄑ)"), + (0x320D, "M", "(ᄒ)"), + (0x320E, "M", "(가)"), + (0x320F, "M", "(나)"), + (0x3210, "M", "(다)"), + (0x3211, "M", "(라)"), + (0x3212, "M", "(마)"), + (0x3213, "M", "(바)"), + (0x3214, "M", "(사)"), + (0x3215, "M", "(아)"), + (0x3216, "M", "(자)"), + (0x3217, "M", "(차)"), + (0x3218, "M", "(카)"), + (0x3219, "M", "(타)"), + (0x321A, "M", "(파)"), + (0x321B, "M", "(하)"), + (0x321C, "M", "(주)"), + (0x321D, "M", "(오전)"), + (0x321E, "M", "(오후)"), + (0x321F, "X"), + (0x3220, "M", "(一)"), + (0x3221, "M", "(二)"), + (0x3222, "M", "(三)"), + (0x3223, "M", "(四)"), + (0x3224, "M", "(五)"), + (0x3225, "M", "(六)"), + (0x3226, "M", "(七)"), + (0x3227, "M", "(八)"), + (0x3228, "M", "(九)"), + (0x3229, "M", "(十)"), + ] + + +def _seg_31() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x322A, "M", "(月)"), + (0x322B, "M", "(火)"), + (0x322C, "M", "(水)"), + (0x322D, "M", "(木)"), + (0x322E, "M", "(金)"), + (0x322F, "M", "(土)"), + (0x3230, "M", "(日)"), + (0x3231, "M", "(株)"), + (0x3232, "M", "(有)"), + (0x3233, "M", "(社)"), + (0x3234, "M", "(名)"), + (0x3235, "M", "(特)"), + (0x3236, "M", "(財)"), + (0x3237, "M", "(祝)"), + (0x3238, "M", "(労)"), + (0x3239, "M", "(代)"), + (0x323A, "M", "(呼)"), + (0x323B, "M", "(学)"), + (0x323C, "M", "(監)"), + (0x323D, "M", "(企)"), + (0x323E, "M", "(資)"), + (0x323F, "M", "(協)"), + (0x3240, "M", "(祭)"), + (0x3241, "M", "(休)"), + (0x3242, "M", "(自)"), + (0x3243, "M", "(至)"), + (0x3244, "M", "問"), + (0x3245, "M", "幼"), + (0x3246, "M", "文"), + (0x3247, "M", "箏"), + (0x3248, "V"), + (0x3250, "M", "pte"), + (0x3251, "M", "21"), + (0x3252, "M", "22"), + (0x3253, "M", "23"), + (0x3254, "M", "24"), + (0x3255, "M", "25"), + (0x3256, "M", "26"), + (0x3257, "M", "27"), + (0x3258, "M", "28"), + (0x3259, "M", "29"), + (0x325A, "M", "30"), + (0x325B, "M", "31"), + (0x325C, "M", "32"), + (0x325D, "M", "33"), + (0x325E, "M", "34"), + (0x325F, "M", "35"), + (0x3260, "M", "ᄀ"), + (0x3261, "M", "ᄂ"), + (0x3262, "M", "ᄃ"), + (0x3263, "M", "ᄅ"), + (0x3264, "M", "ᄆ"), + (0x3265, "M", "ᄇ"), + (0x3266, "M", "ᄉ"), + (0x3267, "M", "ᄋ"), + (0x3268, "M", "ᄌ"), + (0x3269, "M", "ᄎ"), + (0x326A, "M", "ᄏ"), + (0x326B, "M", "ᄐ"), + (0x326C, "M", "ᄑ"), + (0x326D, "M", "ᄒ"), + (0x326E, "M", "가"), + (0x326F, "M", "나"), + (0x3270, "M", "다"), + (0x3271, "M", "라"), + (0x3272, "M", "마"), + (0x3273, "M", "바"), + (0x3274, "M", "사"), + (0x3275, "M", "아"), + (0x3276, "M", "자"), + (0x3277, "M", "차"), + (0x3278, "M", "카"), + (0x3279, "M", "타"), + (0x327A, "M", "파"), + (0x327B, "M", "하"), + (0x327C, "M", "참고"), + (0x327D, "M", "주의"), + (0x327E, "M", "우"), + (0x327F, "V"), + (0x3280, "M", "一"), + (0x3281, "M", "二"), + (0x3282, "M", "三"), + (0x3283, "M", "四"), + (0x3284, "M", "五"), + (0x3285, "M", "六"), + (0x3286, "M", "七"), + (0x3287, "M", "八"), + (0x3288, "M", "九"), + (0x3289, "M", "十"), + (0x328A, "M", "月"), + (0x328B, "M", "火"), + (0x328C, "M", "水"), + (0x328D, "M", "木"), + (0x328E, "M", "金"), + (0x328F, "M", "土"), + (0x3290, "M", "日"), + (0x3291, "M", "株"), + (0x3292, "M", "有"), + (0x3293, "M", "社"), + (0x3294, "M", "名"), + ] + + +def _seg_32() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x3295, "M", "特"), + (0x3296, "M", "財"), + (0x3297, "M", "祝"), + (0x3298, "M", "労"), + (0x3299, "M", "秘"), + (0x329A, "M", "男"), + (0x329B, "M", "女"), + (0x329C, "M", "適"), + (0x329D, "M", "優"), + (0x329E, "M", "印"), + (0x329F, "M", "注"), + (0x32A0, "M", "項"), + (0x32A1, "M", "休"), + (0x32A2, "M", "写"), + (0x32A3, "M", "正"), + (0x32A4, "M", "上"), + (0x32A5, "M", "中"), + (0x32A6, "M", "下"), + (0x32A7, "M", "左"), + (0x32A8, "M", "右"), + (0x32A9, "M", "医"), + (0x32AA, "M", "宗"), + (0x32AB, "M", "学"), + (0x32AC, "M", "監"), + (0x32AD, "M", "企"), + (0x32AE, "M", "資"), + (0x32AF, "M", "協"), + (0x32B0, "M", "夜"), + (0x32B1, "M", "36"), + (0x32B2, "M", "37"), + (0x32B3, "M", "38"), + (0x32B4, "M", "39"), + (0x32B5, "M", "40"), + (0x32B6, "M", "41"), + (0x32B7, "M", "42"), + (0x32B8, "M", "43"), + (0x32B9, "M", "44"), + (0x32BA, "M", "45"), + (0x32BB, "M", "46"), + (0x32BC, "M", "47"), + (0x32BD, "M", "48"), + (0x32BE, "M", "49"), + (0x32BF, "M", "50"), + (0x32C0, "M", "1月"), + (0x32C1, "M", "2月"), + (0x32C2, "M", "3月"), + (0x32C3, "M", "4月"), + (0x32C4, "M", "5月"), + (0x32C5, "M", "6月"), + (0x32C6, "M", "7月"), + (0x32C7, "M", "8月"), + (0x32C8, "M", "9月"), + (0x32C9, "M", "10月"), + (0x32CA, "M", "11月"), + (0x32CB, "M", "12月"), + (0x32CC, "M", "hg"), + (0x32CD, "M", "erg"), + (0x32CE, "M", "ev"), + (0x32CF, "M", "ltd"), + (0x32D0, "M", "ア"), + (0x32D1, "M", "イ"), + (0x32D2, "M", "ウ"), + (0x32D3, "M", "エ"), + (0x32D4, "M", "オ"), + (0x32D5, "M", "カ"), + (0x32D6, "M", "キ"), + (0x32D7, "M", "ク"), + (0x32D8, "M", "ケ"), + (0x32D9, "M", "コ"), + (0x32DA, "M", "サ"), + (0x32DB, "M", "シ"), + (0x32DC, "M", "ス"), + (0x32DD, "M", "セ"), + (0x32DE, "M", "ソ"), + (0x32DF, "M", "タ"), + (0x32E0, "M", "チ"), + (0x32E1, "M", "ツ"), + (0x32E2, "M", "テ"), + (0x32E3, "M", "ト"), + (0x32E4, "M", "ナ"), + (0x32E5, "M", "ニ"), + (0x32E6, "M", "ヌ"), + (0x32E7, "M", "ネ"), + (0x32E8, "M", "ノ"), + (0x32E9, "M", "ハ"), + (0x32EA, "M", "ヒ"), + (0x32EB, "M", "フ"), + (0x32EC, "M", "ヘ"), + (0x32ED, "M", "ホ"), + (0x32EE, "M", "マ"), + (0x32EF, "M", "ミ"), + (0x32F0, "M", "ム"), + (0x32F1, "M", "メ"), + (0x32F2, "M", "モ"), + (0x32F3, "M", "ヤ"), + (0x32F4, "M", "ユ"), + (0x32F5, "M", "ヨ"), + (0x32F6, "M", "ラ"), + (0x32F7, "M", "リ"), + (0x32F8, "M", "ル"), + ] + + +def _seg_33() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x32F9, "M", "レ"), + (0x32FA, "M", "ロ"), + (0x32FB, "M", "ワ"), + (0x32FC, "M", "ヰ"), + (0x32FD, "M", "ヱ"), + (0x32FE, "M", "ヲ"), + (0x32FF, "M", "令和"), + (0x3300, "M", "アパート"), + (0x3301, "M", "アルファ"), + (0x3302, "M", "アンペア"), + (0x3303, "M", "アール"), + (0x3304, "M", "イニング"), + (0x3305, "M", "インチ"), + (0x3306, "M", "ウォン"), + (0x3307, "M", "エスクード"), + (0x3308, "M", "エーカー"), + (0x3309, "M", "オンス"), + (0x330A, "M", "オーム"), + (0x330B, "M", "カイリ"), + (0x330C, "M", "カラット"), + (0x330D, "M", "カロリー"), + (0x330E, "M", "ガロン"), + (0x330F, "M", "ガンマ"), + (0x3310, "M", "ギガ"), + (0x3311, "M", "ギニー"), + (0x3312, "M", "キュリー"), + (0x3313, "M", "ギルダー"), + (0x3314, "M", "キロ"), + (0x3315, "M", "キログラム"), + (0x3316, "M", "キロメートル"), + (0x3317, "M", "キロワット"), + (0x3318, "M", "グラム"), + (0x3319, "M", "グラムトン"), + (0x331A, "M", "クルゼイロ"), + (0x331B, "M", "クローネ"), + (0x331C, "M", "ケース"), + (0x331D, "M", "コルナ"), + (0x331E, "M", "コーポ"), + (0x331F, "M", "サイクル"), + (0x3320, "M", "サンチーム"), + (0x3321, "M", "シリング"), + (0x3322, "M", "センチ"), + (0x3323, "M", "セント"), + (0x3324, "M", "ダース"), + (0x3325, "M", "デシ"), + (0x3326, "M", "ドル"), + (0x3327, "M", "トン"), + (0x3328, "M", "ナノ"), + (0x3329, "M", "ノット"), + (0x332A, "M", "ハイツ"), + (0x332B, "M", "パーセント"), + (0x332C, "M", "パーツ"), + (0x332D, "M", "バーレル"), + (0x332E, "M", "ピアストル"), + (0x332F, "M", "ピクル"), + (0x3330, "M", "ピコ"), + (0x3331, "M", "ビル"), + (0x3332, "M", "ファラッド"), + (0x3333, "M", "フィート"), + (0x3334, "M", "ブッシェル"), + (0x3335, "M", "フラン"), + (0x3336, "M", "ヘクタール"), + (0x3337, "M", "ペソ"), + (0x3338, "M", "ペニヒ"), + (0x3339, "M", "ヘルツ"), + (0x333A, "M", "ペンス"), + (0x333B, "M", "ページ"), + (0x333C, "M", "ベータ"), + (0x333D, "M", "ポイント"), + (0x333E, "M", "ボルト"), + (0x333F, "M", "ホン"), + (0x3340, "M", "ポンド"), + (0x3341, "M", "ホール"), + (0x3342, "M", "ホーン"), + (0x3343, "M", "マイクロ"), + (0x3344, "M", "マイル"), + (0x3345, "M", "マッハ"), + (0x3346, "M", "マルク"), + (0x3347, "M", "マンション"), + (0x3348, "M", "ミクロン"), + (0x3349, "M", "ミリ"), + (0x334A, "M", "ミリバール"), + (0x334B, "M", "メガ"), + (0x334C, "M", "メガトン"), + (0x334D, "M", "メートル"), + (0x334E, "M", "ヤード"), + (0x334F, "M", "ヤール"), + (0x3350, "M", "ユアン"), + (0x3351, "M", "リットル"), + (0x3352, "M", "リラ"), + (0x3353, "M", "ルピー"), + (0x3354, "M", "ルーブル"), + (0x3355, "M", "レム"), + (0x3356, "M", "レントゲン"), + (0x3357, "M", "ワット"), + (0x3358, "M", "0点"), + (0x3359, "M", "1点"), + (0x335A, "M", "2点"), + (0x335B, "M", "3点"), + (0x335C, "M", "4点"), + ] + + +def _seg_34() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x335D, "M", "5点"), + (0x335E, "M", "6点"), + (0x335F, "M", "7点"), + (0x3360, "M", "8点"), + (0x3361, "M", "9点"), + (0x3362, "M", "10点"), + (0x3363, "M", "11点"), + (0x3364, "M", "12点"), + (0x3365, "M", "13点"), + (0x3366, "M", "14点"), + (0x3367, "M", "15点"), + (0x3368, "M", "16点"), + (0x3369, "M", "17点"), + (0x336A, "M", "18点"), + (0x336B, "M", "19点"), + (0x336C, "M", "20点"), + (0x336D, "M", "21点"), + (0x336E, "M", "22点"), + (0x336F, "M", "23点"), + (0x3370, "M", "24点"), + (0x3371, "M", "hpa"), + (0x3372, "M", "da"), + (0x3373, "M", "au"), + (0x3374, "M", "bar"), + (0x3375, "M", "ov"), + (0x3376, "M", "pc"), + (0x3377, "M", "dm"), + (0x3378, "M", "dm2"), + (0x3379, "M", "dm3"), + (0x337A, "M", "iu"), + (0x337B, "M", "平成"), + (0x337C, "M", "昭和"), + (0x337D, "M", "大正"), + (0x337E, "M", "明治"), + (0x337F, "M", "株式会社"), + (0x3380, "M", "pa"), + (0x3381, "M", "na"), + (0x3382, "M", "μa"), + (0x3383, "M", "ma"), + (0x3384, "M", "ka"), + (0x3385, "M", "kb"), + (0x3386, "M", "mb"), + (0x3387, "M", "gb"), + (0x3388, "M", "cal"), + (0x3389, "M", "kcal"), + (0x338A, "M", "pf"), + (0x338B, "M", "nf"), + (0x338C, "M", "μf"), + (0x338D, "M", "μg"), + (0x338E, "M", "mg"), + (0x338F, "M", "kg"), + (0x3390, "M", "hz"), + (0x3391, "M", "khz"), + (0x3392, "M", "mhz"), + (0x3393, "M", "ghz"), + (0x3394, "M", "thz"), + (0x3395, "M", "μl"), + (0x3396, "M", "ml"), + (0x3397, "M", "dl"), + (0x3398, "M", "kl"), + (0x3399, "M", "fm"), + (0x339A, "M", "nm"), + (0x339B, "M", "μm"), + (0x339C, "M", "mm"), + (0x339D, "M", "cm"), + (0x339E, "M", "km"), + (0x339F, "M", "mm2"), + (0x33A0, "M", "cm2"), + (0x33A1, "M", "m2"), + (0x33A2, "M", "km2"), + (0x33A3, "M", "mm3"), + (0x33A4, "M", "cm3"), + (0x33A5, "M", "m3"), + (0x33A6, "M", "km3"), + (0x33A7, "M", "m∕s"), + (0x33A8, "M", "m∕s2"), + (0x33A9, "M", "pa"), + (0x33AA, "M", "kpa"), + (0x33AB, "M", "mpa"), + (0x33AC, "M", "gpa"), + (0x33AD, "M", "rad"), + (0x33AE, "M", "rad∕s"), + (0x33AF, "M", "rad∕s2"), + (0x33B0, "M", "ps"), + (0x33B1, "M", "ns"), + (0x33B2, "M", "μs"), + (0x33B3, "M", "ms"), + (0x33B4, "M", "pv"), + (0x33B5, "M", "nv"), + (0x33B6, "M", "μv"), + (0x33B7, "M", "mv"), + (0x33B8, "M", "kv"), + (0x33B9, "M", "mv"), + (0x33BA, "M", "pw"), + (0x33BB, "M", "nw"), + (0x33BC, "M", "μw"), + (0x33BD, "M", "mw"), + (0x33BE, "M", "kw"), + (0x33BF, "M", "mw"), + (0x33C0, "M", "kω"), + ] + + +def _seg_35() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x33C1, "M", "mω"), + (0x33C2, "X"), + (0x33C3, "M", "bq"), + (0x33C4, "M", "cc"), + (0x33C5, "M", "cd"), + (0x33C6, "M", "c∕kg"), + (0x33C7, "X"), + (0x33C8, "M", "db"), + (0x33C9, "M", "gy"), + (0x33CA, "M", "ha"), + (0x33CB, "M", "hp"), + (0x33CC, "M", "in"), + (0x33CD, "M", "kk"), + (0x33CE, "M", "km"), + (0x33CF, "M", "kt"), + (0x33D0, "M", "lm"), + (0x33D1, "M", "ln"), + (0x33D2, "M", "log"), + (0x33D3, "M", "lx"), + (0x33D4, "M", "mb"), + (0x33D5, "M", "mil"), + (0x33D6, "M", "mol"), + (0x33D7, "M", "ph"), + (0x33D8, "X"), + (0x33D9, "M", "ppm"), + (0x33DA, "M", "pr"), + (0x33DB, "M", "sr"), + (0x33DC, "M", "sv"), + (0x33DD, "M", "wb"), + (0x33DE, "M", "v∕m"), + (0x33DF, "M", "a∕m"), + (0x33E0, "M", "1日"), + (0x33E1, "M", "2日"), + (0x33E2, "M", "3日"), + (0x33E3, "M", "4日"), + (0x33E4, "M", "5日"), + (0x33E5, "M", "6日"), + (0x33E6, "M", "7日"), + (0x33E7, "M", "8日"), + (0x33E8, "M", "9日"), + (0x33E9, "M", "10日"), + (0x33EA, "M", "11日"), + (0x33EB, "M", "12日"), + (0x33EC, "M", "13日"), + (0x33ED, "M", "14日"), + (0x33EE, "M", "15日"), + (0x33EF, "M", "16日"), + (0x33F0, "M", "17日"), + (0x33F1, "M", "18日"), + (0x33F2, "M", "19日"), + (0x33F3, "M", "20日"), + (0x33F4, "M", "21日"), + (0x33F5, "M", "22日"), + (0x33F6, "M", "23日"), + (0x33F7, "M", "24日"), + (0x33F8, "M", "25日"), + (0x33F9, "M", "26日"), + (0x33FA, "M", "27日"), + (0x33FB, "M", "28日"), + (0x33FC, "M", "29日"), + (0x33FD, "M", "30日"), + (0x33FE, "M", "31日"), + (0x33FF, "M", "gal"), + (0x3400, "V"), + (0xA48D, "X"), + (0xA490, "V"), + (0xA4C7, "X"), + (0xA4D0, "V"), + (0xA62C, "X"), + (0xA640, "M", "ꙁ"), + (0xA641, "V"), + (0xA642, "M", "ꙃ"), + (0xA643, "V"), + (0xA644, "M", "ꙅ"), + (0xA645, "V"), + (0xA646, "M", "ꙇ"), + (0xA647, "V"), + (0xA648, "M", "ꙉ"), + (0xA649, "V"), + (0xA64A, "M", "ꙋ"), + (0xA64B, "V"), + (0xA64C, "M", "ꙍ"), + (0xA64D, "V"), + (0xA64E, "M", "ꙏ"), + (0xA64F, "V"), + (0xA650, "M", "ꙑ"), + (0xA651, "V"), + (0xA652, "M", "ꙓ"), + (0xA653, "V"), + (0xA654, "M", "ꙕ"), + (0xA655, "V"), + (0xA656, "M", "ꙗ"), + (0xA657, "V"), + (0xA658, "M", "ꙙ"), + (0xA659, "V"), + (0xA65A, "M", "ꙛ"), + (0xA65B, "V"), + (0xA65C, "M", "ꙝ"), + (0xA65D, "V"), + (0xA65E, "M", "ꙟ"), + ] + + +def _seg_36() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xA65F, "V"), + (0xA660, "M", "ꙡ"), + (0xA661, "V"), + (0xA662, "M", "ꙣ"), + (0xA663, "V"), + (0xA664, "M", "ꙥ"), + (0xA665, "V"), + (0xA666, "M", "ꙧ"), + (0xA667, "V"), + (0xA668, "M", "ꙩ"), + (0xA669, "V"), + (0xA66A, "M", "ꙫ"), + (0xA66B, "V"), + (0xA66C, "M", "ꙭ"), + (0xA66D, "V"), + (0xA680, "M", "ꚁ"), + (0xA681, "V"), + (0xA682, "M", "ꚃ"), + (0xA683, "V"), + (0xA684, "M", "ꚅ"), + (0xA685, "V"), + (0xA686, "M", "ꚇ"), + (0xA687, "V"), + (0xA688, "M", "ꚉ"), + (0xA689, "V"), + (0xA68A, "M", "ꚋ"), + (0xA68B, "V"), + (0xA68C, "M", "ꚍ"), + (0xA68D, "V"), + (0xA68E, "M", "ꚏ"), + (0xA68F, "V"), + (0xA690, "M", "ꚑ"), + (0xA691, "V"), + (0xA692, "M", "ꚓ"), + (0xA693, "V"), + (0xA694, "M", "ꚕ"), + (0xA695, "V"), + (0xA696, "M", "ꚗ"), + (0xA697, "V"), + (0xA698, "M", "ꚙ"), + (0xA699, "V"), + (0xA69A, "M", "ꚛ"), + (0xA69B, "V"), + (0xA69C, "M", "ъ"), + (0xA69D, "M", "ь"), + (0xA69E, "V"), + (0xA6F8, "X"), + (0xA700, "V"), + (0xA722, "M", "ꜣ"), + (0xA723, "V"), + (0xA724, "M", "ꜥ"), + (0xA725, "V"), + (0xA726, "M", "ꜧ"), + (0xA727, "V"), + (0xA728, "M", "ꜩ"), + (0xA729, "V"), + (0xA72A, "M", "ꜫ"), + (0xA72B, "V"), + (0xA72C, "M", "ꜭ"), + (0xA72D, "V"), + (0xA72E, "M", "ꜯ"), + (0xA72F, "V"), + (0xA732, "M", "ꜳ"), + (0xA733, "V"), + (0xA734, "M", "ꜵ"), + (0xA735, "V"), + (0xA736, "M", "ꜷ"), + (0xA737, "V"), + (0xA738, "M", "ꜹ"), + (0xA739, "V"), + (0xA73A, "M", "ꜻ"), + (0xA73B, "V"), + (0xA73C, "M", "ꜽ"), + (0xA73D, "V"), + (0xA73E, "M", "ꜿ"), + (0xA73F, "V"), + (0xA740, "M", "ꝁ"), + (0xA741, "V"), + (0xA742, "M", "ꝃ"), + (0xA743, "V"), + (0xA744, "M", "ꝅ"), + (0xA745, "V"), + (0xA746, "M", "ꝇ"), + (0xA747, "V"), + (0xA748, "M", "ꝉ"), + (0xA749, "V"), + (0xA74A, "M", "ꝋ"), + (0xA74B, "V"), + (0xA74C, "M", "ꝍ"), + (0xA74D, "V"), + (0xA74E, "M", "ꝏ"), + (0xA74F, "V"), + (0xA750, "M", "ꝑ"), + (0xA751, "V"), + (0xA752, "M", "ꝓ"), + (0xA753, "V"), + (0xA754, "M", "ꝕ"), + (0xA755, "V"), + (0xA756, "M", "ꝗ"), + (0xA757, "V"), + ] + + +def _seg_37() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xA758, "M", "ꝙ"), + (0xA759, "V"), + (0xA75A, "M", "ꝛ"), + (0xA75B, "V"), + (0xA75C, "M", "ꝝ"), + (0xA75D, "V"), + (0xA75E, "M", "ꝟ"), + (0xA75F, "V"), + (0xA760, "M", "ꝡ"), + (0xA761, "V"), + (0xA762, "M", "ꝣ"), + (0xA763, "V"), + (0xA764, "M", "ꝥ"), + (0xA765, "V"), + (0xA766, "M", "ꝧ"), + (0xA767, "V"), + (0xA768, "M", "ꝩ"), + (0xA769, "V"), + (0xA76A, "M", "ꝫ"), + (0xA76B, "V"), + (0xA76C, "M", "ꝭ"), + (0xA76D, "V"), + (0xA76E, "M", "ꝯ"), + (0xA76F, "V"), + (0xA770, "M", "ꝯ"), + (0xA771, "V"), + (0xA779, "M", "ꝺ"), + (0xA77A, "V"), + (0xA77B, "M", "ꝼ"), + (0xA77C, "V"), + (0xA77D, "M", "ᵹ"), + (0xA77E, "M", "ꝿ"), + (0xA77F, "V"), + (0xA780, "M", "ꞁ"), + (0xA781, "V"), + (0xA782, "M", "ꞃ"), + (0xA783, "V"), + (0xA784, "M", "ꞅ"), + (0xA785, "V"), + (0xA786, "M", "ꞇ"), + (0xA787, "V"), + (0xA78B, "M", "ꞌ"), + (0xA78C, "V"), + (0xA78D, "M", "ɥ"), + (0xA78E, "V"), + (0xA790, "M", "ꞑ"), + (0xA791, "V"), + (0xA792, "M", "ꞓ"), + (0xA793, "V"), + (0xA796, "M", "ꞗ"), + (0xA797, "V"), + (0xA798, "M", "ꞙ"), + (0xA799, "V"), + (0xA79A, "M", "ꞛ"), + (0xA79B, "V"), + (0xA79C, "M", "ꞝ"), + (0xA79D, "V"), + (0xA79E, "M", "ꞟ"), + (0xA79F, "V"), + (0xA7A0, "M", "ꞡ"), + (0xA7A1, "V"), + (0xA7A2, "M", "ꞣ"), + (0xA7A3, "V"), + (0xA7A4, "M", "ꞥ"), + (0xA7A5, "V"), + (0xA7A6, "M", "ꞧ"), + (0xA7A7, "V"), + (0xA7A8, "M", "ꞩ"), + (0xA7A9, "V"), + (0xA7AA, "M", "ɦ"), + (0xA7AB, "M", "ɜ"), + (0xA7AC, "M", "ɡ"), + (0xA7AD, "M", "ɬ"), + (0xA7AE, "M", "ɪ"), + (0xA7AF, "V"), + (0xA7B0, "M", "ʞ"), + (0xA7B1, "M", "ʇ"), + (0xA7B2, "M", "ʝ"), + (0xA7B3, "M", "ꭓ"), + (0xA7B4, "M", "ꞵ"), + (0xA7B5, "V"), + (0xA7B6, "M", "ꞷ"), + (0xA7B7, "V"), + (0xA7B8, "M", "ꞹ"), + (0xA7B9, "V"), + (0xA7BA, "M", "ꞻ"), + (0xA7BB, "V"), + (0xA7BC, "M", "ꞽ"), + (0xA7BD, "V"), + (0xA7BE, "M", "ꞿ"), + (0xA7BF, "V"), + (0xA7C0, "M", "ꟁ"), + (0xA7C1, "V"), + (0xA7C2, "M", "ꟃ"), + (0xA7C3, "V"), + (0xA7C4, "M", "ꞔ"), + (0xA7C5, "M", "ʂ"), + (0xA7C6, "M", "ᶎ"), + (0xA7C7, "M", "ꟈ"), + (0xA7C8, "V"), + ] + + +def _seg_38() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xA7C9, "M", "ꟊ"), + (0xA7CA, "V"), + (0xA7CB, "M", "ɤ"), + (0xA7CC, "M", "ꟍ"), + (0xA7CD, "V"), + (0xA7CE, "X"), + (0xA7D0, "M", "ꟑ"), + (0xA7D1, "V"), + (0xA7D2, "X"), + (0xA7D3, "V"), + (0xA7D4, "X"), + (0xA7D5, "V"), + (0xA7D6, "M", "ꟗ"), + (0xA7D7, "V"), + (0xA7D8, "M", "ꟙ"), + (0xA7D9, "V"), + (0xA7DA, "M", "ꟛ"), + (0xA7DB, "V"), + (0xA7DC, "M", "ƛ"), + (0xA7DD, "X"), + (0xA7F2, "M", "c"), + (0xA7F3, "M", "f"), + (0xA7F4, "M", "q"), + (0xA7F5, "M", "ꟶ"), + (0xA7F6, "V"), + (0xA7F8, "M", "ħ"), + (0xA7F9, "M", "œ"), + (0xA7FA, "V"), + (0xA82D, "X"), + (0xA830, "V"), + (0xA83A, "X"), + (0xA840, "V"), + (0xA878, "X"), + (0xA880, "V"), + (0xA8C6, "X"), + (0xA8CE, "V"), + (0xA8DA, "X"), + (0xA8E0, "V"), + (0xA954, "X"), + (0xA95F, "V"), + (0xA97D, "X"), + (0xA980, "V"), + (0xA9CE, "X"), + (0xA9CF, "V"), + (0xA9DA, "X"), + (0xA9DE, "V"), + (0xA9FF, "X"), + (0xAA00, "V"), + (0xAA37, "X"), + (0xAA40, "V"), + (0xAA4E, "X"), + (0xAA50, "V"), + (0xAA5A, "X"), + (0xAA5C, "V"), + (0xAAC3, "X"), + (0xAADB, "V"), + (0xAAF7, "X"), + (0xAB01, "V"), + (0xAB07, "X"), + (0xAB09, "V"), + (0xAB0F, "X"), + (0xAB11, "V"), + (0xAB17, "X"), + (0xAB20, "V"), + (0xAB27, "X"), + (0xAB28, "V"), + (0xAB2F, "X"), + (0xAB30, "V"), + (0xAB5C, "M", "ꜧ"), + (0xAB5D, "M", "ꬷ"), + (0xAB5E, "M", "ɫ"), + (0xAB5F, "M", "ꭒ"), + (0xAB60, "V"), + (0xAB69, "M", "ʍ"), + (0xAB6A, "V"), + (0xAB6C, "X"), + (0xAB70, "M", "Ꭰ"), + (0xAB71, "M", "Ꭱ"), + (0xAB72, "M", "Ꭲ"), + (0xAB73, "M", "Ꭳ"), + (0xAB74, "M", "Ꭴ"), + (0xAB75, "M", "Ꭵ"), + (0xAB76, "M", "Ꭶ"), + (0xAB77, "M", "Ꭷ"), + (0xAB78, "M", "Ꭸ"), + (0xAB79, "M", "Ꭹ"), + (0xAB7A, "M", "Ꭺ"), + (0xAB7B, "M", "Ꭻ"), + (0xAB7C, "M", "Ꭼ"), + (0xAB7D, "M", "Ꭽ"), + (0xAB7E, "M", "Ꭾ"), + (0xAB7F, "M", "Ꭿ"), + (0xAB80, "M", "Ꮀ"), + (0xAB81, "M", "Ꮁ"), + (0xAB82, "M", "Ꮂ"), + (0xAB83, "M", "Ꮃ"), + (0xAB84, "M", "Ꮄ"), + (0xAB85, "M", "Ꮅ"), + (0xAB86, "M", "Ꮆ"), + (0xAB87, "M", "Ꮇ"), + ] + + +def _seg_39() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xAB88, "M", "Ꮈ"), + (0xAB89, "M", "Ꮉ"), + (0xAB8A, "M", "Ꮊ"), + (0xAB8B, "M", "Ꮋ"), + (0xAB8C, "M", "Ꮌ"), + (0xAB8D, "M", "Ꮍ"), + (0xAB8E, "M", "Ꮎ"), + (0xAB8F, "M", "Ꮏ"), + (0xAB90, "M", "Ꮐ"), + (0xAB91, "M", "Ꮑ"), + (0xAB92, "M", "Ꮒ"), + (0xAB93, "M", "Ꮓ"), + (0xAB94, "M", "Ꮔ"), + (0xAB95, "M", "Ꮕ"), + (0xAB96, "M", "Ꮖ"), + (0xAB97, "M", "Ꮗ"), + (0xAB98, "M", "Ꮘ"), + (0xAB99, "M", "Ꮙ"), + (0xAB9A, "M", "Ꮚ"), + (0xAB9B, "M", "Ꮛ"), + (0xAB9C, "M", "Ꮜ"), + (0xAB9D, "M", "Ꮝ"), + (0xAB9E, "M", "Ꮞ"), + (0xAB9F, "M", "Ꮟ"), + (0xABA0, "M", "Ꮠ"), + (0xABA1, "M", "Ꮡ"), + (0xABA2, "M", "Ꮢ"), + (0xABA3, "M", "Ꮣ"), + (0xABA4, "M", "Ꮤ"), + (0xABA5, "M", "Ꮥ"), + (0xABA6, "M", "Ꮦ"), + (0xABA7, "M", "Ꮧ"), + (0xABA8, "M", "Ꮨ"), + (0xABA9, "M", "Ꮩ"), + (0xABAA, "M", "Ꮪ"), + (0xABAB, "M", "Ꮫ"), + (0xABAC, "M", "Ꮬ"), + (0xABAD, "M", "Ꮭ"), + (0xABAE, "M", "Ꮮ"), + (0xABAF, "M", "Ꮯ"), + (0xABB0, "M", "Ꮰ"), + (0xABB1, "M", "Ꮱ"), + (0xABB2, "M", "Ꮲ"), + (0xABB3, "M", "Ꮳ"), + (0xABB4, "M", "Ꮴ"), + (0xABB5, "M", "Ꮵ"), + (0xABB6, "M", "Ꮶ"), + (0xABB7, "M", "Ꮷ"), + (0xABB8, "M", "Ꮸ"), + (0xABB9, "M", "Ꮹ"), + (0xABBA, "M", "Ꮺ"), + (0xABBB, "M", "Ꮻ"), + (0xABBC, "M", "Ꮼ"), + (0xABBD, "M", "Ꮽ"), + (0xABBE, "M", "Ꮾ"), + (0xABBF, "M", "Ꮿ"), + (0xABC0, "V"), + (0xABEE, "X"), + (0xABF0, "V"), + (0xABFA, "X"), + (0xAC00, "V"), + (0xD7A4, "X"), + (0xD7B0, "V"), + (0xD7C7, "X"), + (0xD7CB, "V"), + (0xD7FC, "X"), + (0xF900, "M", "豈"), + (0xF901, "M", "更"), + (0xF902, "M", "車"), + (0xF903, "M", "賈"), + (0xF904, "M", "滑"), + (0xF905, "M", "串"), + (0xF906, "M", "句"), + (0xF907, "M", "龜"), + (0xF909, "M", "契"), + (0xF90A, "M", "金"), + (0xF90B, "M", "喇"), + (0xF90C, "M", "奈"), + (0xF90D, "M", "懶"), + (0xF90E, "M", "癩"), + (0xF90F, "M", "羅"), + (0xF910, "M", "蘿"), + (0xF911, "M", "螺"), + (0xF912, "M", "裸"), + (0xF913, "M", "邏"), + (0xF914, "M", "樂"), + (0xF915, "M", "洛"), + (0xF916, "M", "烙"), + (0xF917, "M", "珞"), + (0xF918, "M", "落"), + (0xF919, "M", "酪"), + (0xF91A, "M", "駱"), + (0xF91B, "M", "亂"), + (0xF91C, "M", "卵"), + (0xF91D, "M", "欄"), + (0xF91E, "M", "爛"), + (0xF91F, "M", "蘭"), + (0xF920, "M", "鸞"), + (0xF921, "M", "嵐"), + (0xF922, "M", "濫"), + ] + + +def _seg_40() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xF923, "M", "藍"), + (0xF924, "M", "襤"), + (0xF925, "M", "拉"), + (0xF926, "M", "臘"), + (0xF927, "M", "蠟"), + (0xF928, "M", "廊"), + (0xF929, "M", "朗"), + (0xF92A, "M", "浪"), + (0xF92B, "M", "狼"), + (0xF92C, "M", "郎"), + (0xF92D, "M", "來"), + (0xF92E, "M", "冷"), + (0xF92F, "M", "勞"), + (0xF930, "M", "擄"), + (0xF931, "M", "櫓"), + (0xF932, "M", "爐"), + (0xF933, "M", "盧"), + (0xF934, "M", "老"), + (0xF935, "M", "蘆"), + (0xF936, "M", "虜"), + (0xF937, "M", "路"), + (0xF938, "M", "露"), + (0xF939, "M", "魯"), + (0xF93A, "M", "鷺"), + (0xF93B, "M", "碌"), + (0xF93C, "M", "祿"), + (0xF93D, "M", "綠"), + (0xF93E, "M", "菉"), + (0xF93F, "M", "錄"), + (0xF940, "M", "鹿"), + (0xF941, "M", "論"), + (0xF942, "M", "壟"), + (0xF943, "M", "弄"), + (0xF944, "M", "籠"), + (0xF945, "M", "聾"), + (0xF946, "M", "牢"), + (0xF947, "M", "磊"), + (0xF948, "M", "賂"), + (0xF949, "M", "雷"), + (0xF94A, "M", "壘"), + (0xF94B, "M", "屢"), + (0xF94C, "M", "樓"), + (0xF94D, "M", "淚"), + (0xF94E, "M", "漏"), + (0xF94F, "M", "累"), + (0xF950, "M", "縷"), + (0xF951, "M", "陋"), + (0xF952, "M", "勒"), + (0xF953, "M", "肋"), + (0xF954, "M", "凜"), + (0xF955, "M", "凌"), + (0xF956, "M", "稜"), + (0xF957, "M", "綾"), + (0xF958, "M", "菱"), + (0xF959, "M", "陵"), + (0xF95A, "M", "讀"), + (0xF95B, "M", "拏"), + (0xF95C, "M", "樂"), + (0xF95D, "M", "諾"), + (0xF95E, "M", "丹"), + (0xF95F, "M", "寧"), + (0xF960, "M", "怒"), + (0xF961, "M", "率"), + (0xF962, "M", "異"), + (0xF963, "M", "北"), + (0xF964, "M", "磻"), + (0xF965, "M", "便"), + (0xF966, "M", "復"), + (0xF967, "M", "不"), + (0xF968, "M", "泌"), + (0xF969, "M", "數"), + (0xF96A, "M", "索"), + (0xF96B, "M", "參"), + (0xF96C, "M", "塞"), + (0xF96D, "M", "省"), + (0xF96E, "M", "葉"), + (0xF96F, "M", "說"), + (0xF970, "M", "殺"), + (0xF971, "M", "辰"), + (0xF972, "M", "沈"), + (0xF973, "M", "拾"), + (0xF974, "M", "若"), + (0xF975, "M", "掠"), + (0xF976, "M", "略"), + (0xF977, "M", "亮"), + (0xF978, "M", "兩"), + (0xF979, "M", "凉"), + (0xF97A, "M", "梁"), + (0xF97B, "M", "糧"), + (0xF97C, "M", "良"), + (0xF97D, "M", "諒"), + (0xF97E, "M", "量"), + (0xF97F, "M", "勵"), + (0xF980, "M", "呂"), + (0xF981, "M", "女"), + (0xF982, "M", "廬"), + (0xF983, "M", "旅"), + (0xF984, "M", "濾"), + (0xF985, "M", "礪"), + (0xF986, "M", "閭"), + ] + + +def _seg_41() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xF987, "M", "驪"), + (0xF988, "M", "麗"), + (0xF989, "M", "黎"), + (0xF98A, "M", "力"), + (0xF98B, "M", "曆"), + (0xF98C, "M", "歷"), + (0xF98D, "M", "轢"), + (0xF98E, "M", "年"), + (0xF98F, "M", "憐"), + (0xF990, "M", "戀"), + (0xF991, "M", "撚"), + (0xF992, "M", "漣"), + (0xF993, "M", "煉"), + (0xF994, "M", "璉"), + (0xF995, "M", "秊"), + (0xF996, "M", "練"), + (0xF997, "M", "聯"), + (0xF998, "M", "輦"), + (0xF999, "M", "蓮"), + (0xF99A, "M", "連"), + (0xF99B, "M", "鍊"), + (0xF99C, "M", "列"), + (0xF99D, "M", "劣"), + (0xF99E, "M", "咽"), + (0xF99F, "M", "烈"), + (0xF9A0, "M", "裂"), + (0xF9A1, "M", "說"), + (0xF9A2, "M", "廉"), + (0xF9A3, "M", "念"), + (0xF9A4, "M", "捻"), + (0xF9A5, "M", "殮"), + (0xF9A6, "M", "簾"), + (0xF9A7, "M", "獵"), + (0xF9A8, "M", "令"), + (0xF9A9, "M", "囹"), + (0xF9AA, "M", "寧"), + (0xF9AB, "M", "嶺"), + (0xF9AC, "M", "怜"), + (0xF9AD, "M", "玲"), + (0xF9AE, "M", "瑩"), + (0xF9AF, "M", "羚"), + (0xF9B0, "M", "聆"), + (0xF9B1, "M", "鈴"), + (0xF9B2, "M", "零"), + (0xF9B3, "M", "靈"), + (0xF9B4, "M", "領"), + (0xF9B5, "M", "例"), + (0xF9B6, "M", "禮"), + (0xF9B7, "M", "醴"), + (0xF9B8, "M", "隸"), + (0xF9B9, "M", "惡"), + (0xF9BA, "M", "了"), + (0xF9BB, "M", "僚"), + (0xF9BC, "M", "寮"), + (0xF9BD, "M", "尿"), + (0xF9BE, "M", "料"), + (0xF9BF, "M", "樂"), + (0xF9C0, "M", "燎"), + (0xF9C1, "M", "療"), + (0xF9C2, "M", "蓼"), + (0xF9C3, "M", "遼"), + (0xF9C4, "M", "龍"), + (0xF9C5, "M", "暈"), + (0xF9C6, "M", "阮"), + (0xF9C7, "M", "劉"), + (0xF9C8, "M", "杻"), + (0xF9C9, "M", "柳"), + (0xF9CA, "M", "流"), + (0xF9CB, "M", "溜"), + (0xF9CC, "M", "琉"), + (0xF9CD, "M", "留"), + (0xF9CE, "M", "硫"), + (0xF9CF, "M", "紐"), + (0xF9D0, "M", "類"), + (0xF9D1, "M", "六"), + (0xF9D2, "M", "戮"), + (0xF9D3, "M", "陸"), + (0xF9D4, "M", "倫"), + (0xF9D5, "M", "崙"), + (0xF9D6, "M", "淪"), + (0xF9D7, "M", "輪"), + (0xF9D8, "M", "律"), + (0xF9D9, "M", "慄"), + (0xF9DA, "M", "栗"), + (0xF9DB, "M", "率"), + (0xF9DC, "M", "隆"), + (0xF9DD, "M", "利"), + (0xF9DE, "M", "吏"), + (0xF9DF, "M", "履"), + (0xF9E0, "M", "易"), + (0xF9E1, "M", "李"), + (0xF9E2, "M", "梨"), + (0xF9E3, "M", "泥"), + (0xF9E4, "M", "理"), + (0xF9E5, "M", "痢"), + (0xF9E6, "M", "罹"), + (0xF9E7, "M", "裏"), + (0xF9E8, "M", "裡"), + (0xF9E9, "M", "里"), + (0xF9EA, "M", "離"), + ] + + +def _seg_42() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xF9EB, "M", "匿"), + (0xF9EC, "M", "溺"), + (0xF9ED, "M", "吝"), + (0xF9EE, "M", "燐"), + (0xF9EF, "M", "璘"), + (0xF9F0, "M", "藺"), + (0xF9F1, "M", "隣"), + (0xF9F2, "M", "鱗"), + (0xF9F3, "M", "麟"), + (0xF9F4, "M", "林"), + (0xF9F5, "M", "淋"), + (0xF9F6, "M", "臨"), + (0xF9F7, "M", "立"), + (0xF9F8, "M", "笠"), + (0xF9F9, "M", "粒"), + (0xF9FA, "M", "狀"), + (0xF9FB, "M", "炙"), + (0xF9FC, "M", "識"), + (0xF9FD, "M", "什"), + (0xF9FE, "M", "茶"), + (0xF9FF, "M", "刺"), + (0xFA00, "M", "切"), + (0xFA01, "M", "度"), + (0xFA02, "M", "拓"), + (0xFA03, "M", "糖"), + (0xFA04, "M", "宅"), + (0xFA05, "M", "洞"), + (0xFA06, "M", "暴"), + (0xFA07, "M", "輻"), + (0xFA08, "M", "行"), + (0xFA09, "M", "降"), + (0xFA0A, "M", "見"), + (0xFA0B, "M", "廓"), + (0xFA0C, "M", "兀"), + (0xFA0D, "M", "嗀"), + (0xFA0E, "V"), + (0xFA10, "M", "塚"), + (0xFA11, "V"), + (0xFA12, "M", "晴"), + (0xFA13, "V"), + (0xFA15, "M", "凞"), + (0xFA16, "M", "猪"), + (0xFA17, "M", "益"), + (0xFA18, "M", "礼"), + (0xFA19, "M", "神"), + (0xFA1A, "M", "祥"), + (0xFA1B, "M", "福"), + (0xFA1C, "M", "靖"), + (0xFA1D, "M", "精"), + (0xFA1E, "M", "羽"), + (0xFA1F, "V"), + (0xFA20, "M", "蘒"), + (0xFA21, "V"), + (0xFA22, "M", "諸"), + (0xFA23, "V"), + (0xFA25, "M", "逸"), + (0xFA26, "M", "都"), + (0xFA27, "V"), + (0xFA2A, "M", "飯"), + (0xFA2B, "M", "飼"), + (0xFA2C, "M", "館"), + (0xFA2D, "M", "鶴"), + (0xFA2E, "M", "郞"), + (0xFA2F, "M", "隷"), + (0xFA30, "M", "侮"), + (0xFA31, "M", "僧"), + (0xFA32, "M", "免"), + (0xFA33, "M", "勉"), + (0xFA34, "M", "勤"), + (0xFA35, "M", "卑"), + (0xFA36, "M", "喝"), + (0xFA37, "M", "嘆"), + (0xFA38, "M", "器"), + (0xFA39, "M", "塀"), + (0xFA3A, "M", "墨"), + (0xFA3B, "M", "層"), + (0xFA3C, "M", "屮"), + (0xFA3D, "M", "悔"), + (0xFA3E, "M", "慨"), + (0xFA3F, "M", "憎"), + (0xFA40, "M", "懲"), + (0xFA41, "M", "敏"), + (0xFA42, "M", "既"), + (0xFA43, "M", "暑"), + (0xFA44, "M", "梅"), + (0xFA45, "M", "海"), + (0xFA46, "M", "渚"), + (0xFA47, "M", "漢"), + (0xFA48, "M", "煮"), + (0xFA49, "M", "爫"), + (0xFA4A, "M", "琢"), + (0xFA4B, "M", "碑"), + (0xFA4C, "M", "社"), + (0xFA4D, "M", "祉"), + (0xFA4E, "M", "祈"), + (0xFA4F, "M", "祐"), + (0xFA50, "M", "祖"), + (0xFA51, "M", "祝"), + (0xFA52, "M", "禍"), + (0xFA53, "M", "禎"), + ] + + +def _seg_43() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFA54, "M", "穀"), + (0xFA55, "M", "突"), + (0xFA56, "M", "節"), + (0xFA57, "M", "練"), + (0xFA58, "M", "縉"), + (0xFA59, "M", "繁"), + (0xFA5A, "M", "署"), + (0xFA5B, "M", "者"), + (0xFA5C, "M", "臭"), + (0xFA5D, "M", "艹"), + (0xFA5F, "M", "著"), + (0xFA60, "M", "褐"), + (0xFA61, "M", "視"), + (0xFA62, "M", "謁"), + (0xFA63, "M", "謹"), + (0xFA64, "M", "賓"), + (0xFA65, "M", "贈"), + (0xFA66, "M", "辶"), + (0xFA67, "M", "逸"), + (0xFA68, "M", "難"), + (0xFA69, "M", "響"), + (0xFA6A, "M", "頻"), + (0xFA6B, "M", "恵"), + (0xFA6C, "M", "𤋮"), + (0xFA6D, "M", "舘"), + (0xFA6E, "X"), + (0xFA70, "M", "並"), + (0xFA71, "M", "况"), + (0xFA72, "M", "全"), + (0xFA73, "M", "侀"), + (0xFA74, "M", "充"), + (0xFA75, "M", "冀"), + (0xFA76, "M", "勇"), + (0xFA77, "M", "勺"), + (0xFA78, "M", "喝"), + (0xFA79, "M", "啕"), + (0xFA7A, "M", "喙"), + (0xFA7B, "M", "嗢"), + (0xFA7C, "M", "塚"), + (0xFA7D, "M", "墳"), + (0xFA7E, "M", "奄"), + (0xFA7F, "M", "奔"), + (0xFA80, "M", "婢"), + (0xFA81, "M", "嬨"), + (0xFA82, "M", "廒"), + (0xFA83, "M", "廙"), + (0xFA84, "M", "彩"), + (0xFA85, "M", "徭"), + (0xFA86, "M", "惘"), + (0xFA87, "M", "慎"), + (0xFA88, "M", "愈"), + (0xFA89, "M", "憎"), + (0xFA8A, "M", "慠"), + (0xFA8B, "M", "懲"), + (0xFA8C, "M", "戴"), + (0xFA8D, "M", "揄"), + (0xFA8E, "M", "搜"), + (0xFA8F, "M", "摒"), + (0xFA90, "M", "敖"), + (0xFA91, "M", "晴"), + (0xFA92, "M", "朗"), + (0xFA93, "M", "望"), + (0xFA94, "M", "杖"), + (0xFA95, "M", "歹"), + (0xFA96, "M", "殺"), + (0xFA97, "M", "流"), + (0xFA98, "M", "滛"), + (0xFA99, "M", "滋"), + (0xFA9A, "M", "漢"), + (0xFA9B, "M", "瀞"), + (0xFA9C, "M", "煮"), + (0xFA9D, "M", "瞧"), + (0xFA9E, "M", "爵"), + (0xFA9F, "M", "犯"), + (0xFAA0, "M", "猪"), + (0xFAA1, "M", "瑱"), + (0xFAA2, "M", "甆"), + (0xFAA3, "M", "画"), + (0xFAA4, "M", "瘝"), + (0xFAA5, "M", "瘟"), + (0xFAA6, "M", "益"), + (0xFAA7, "M", "盛"), + (0xFAA8, "M", "直"), + (0xFAA9, "M", "睊"), + (0xFAAA, "M", "着"), + (0xFAAB, "M", "磌"), + (0xFAAC, "M", "窱"), + (0xFAAD, "M", "節"), + (0xFAAE, "M", "类"), + (0xFAAF, "M", "絛"), + (0xFAB0, "M", "練"), + (0xFAB1, "M", "缾"), + (0xFAB2, "M", "者"), + (0xFAB3, "M", "荒"), + (0xFAB4, "M", "華"), + (0xFAB5, "M", "蝹"), + (0xFAB6, "M", "襁"), + (0xFAB7, "M", "覆"), + (0xFAB8, "M", "視"), + (0xFAB9, "M", "調"), + ] + + +def _seg_44() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFABA, "M", "諸"), + (0xFABB, "M", "請"), + (0xFABC, "M", "謁"), + (0xFABD, "M", "諾"), + (0xFABE, "M", "諭"), + (0xFABF, "M", "謹"), + (0xFAC0, "M", "變"), + (0xFAC1, "M", "贈"), + (0xFAC2, "M", "輸"), + (0xFAC3, "M", "遲"), + (0xFAC4, "M", "醙"), + (0xFAC5, "M", "鉶"), + (0xFAC6, "M", "陼"), + (0xFAC7, "M", "難"), + (0xFAC8, "M", "靖"), + (0xFAC9, "M", "韛"), + (0xFACA, "M", "響"), + (0xFACB, "M", "頋"), + (0xFACC, "M", "頻"), + (0xFACD, "M", "鬒"), + (0xFACE, "M", "龜"), + (0xFACF, "M", "𢡊"), + (0xFAD0, "M", "𢡄"), + (0xFAD1, "M", "𣏕"), + (0xFAD2, "M", "㮝"), + (0xFAD3, "M", "䀘"), + (0xFAD4, "M", "䀹"), + (0xFAD5, "M", "𥉉"), + (0xFAD6, "M", "𥳐"), + (0xFAD7, "M", "𧻓"), + (0xFAD8, "M", "齃"), + (0xFAD9, "M", "龎"), + (0xFADA, "X"), + (0xFB00, "M", "ff"), + (0xFB01, "M", "fi"), + (0xFB02, "M", "fl"), + (0xFB03, "M", "ffi"), + (0xFB04, "M", "ffl"), + (0xFB05, "M", "st"), + (0xFB07, "X"), + (0xFB13, "M", "մն"), + (0xFB14, "M", "մե"), + (0xFB15, "M", "մի"), + (0xFB16, "M", "վն"), + (0xFB17, "M", "մխ"), + (0xFB18, "X"), + (0xFB1D, "M", "יִ"), + (0xFB1E, "V"), + (0xFB1F, "M", "ײַ"), + (0xFB20, "M", "ע"), + (0xFB21, "M", "א"), + (0xFB22, "M", "ד"), + (0xFB23, "M", "ה"), + (0xFB24, "M", "כ"), + (0xFB25, "M", "ל"), + (0xFB26, "M", "ם"), + (0xFB27, "M", "ר"), + (0xFB28, "M", "ת"), + (0xFB29, "M", "+"), + (0xFB2A, "M", "שׁ"), + (0xFB2B, "M", "שׂ"), + (0xFB2C, "M", "שּׁ"), + (0xFB2D, "M", "שּׂ"), + (0xFB2E, "M", "אַ"), + (0xFB2F, "M", "אָ"), + (0xFB30, "M", "אּ"), + (0xFB31, "M", "בּ"), + (0xFB32, "M", "גּ"), + (0xFB33, "M", "דּ"), + (0xFB34, "M", "הּ"), + (0xFB35, "M", "וּ"), + (0xFB36, "M", "זּ"), + (0xFB37, "X"), + (0xFB38, "M", "טּ"), + (0xFB39, "M", "יּ"), + (0xFB3A, "M", "ךּ"), + (0xFB3B, "M", "כּ"), + (0xFB3C, "M", "לּ"), + (0xFB3D, "X"), + (0xFB3E, "M", "מּ"), + (0xFB3F, "X"), + (0xFB40, "M", "נּ"), + (0xFB41, "M", "סּ"), + (0xFB42, "X"), + (0xFB43, "M", "ףּ"), + (0xFB44, "M", "פּ"), + (0xFB45, "X"), + (0xFB46, "M", "צּ"), + (0xFB47, "M", "קּ"), + (0xFB48, "M", "רּ"), + (0xFB49, "M", "שּ"), + (0xFB4A, "M", "תּ"), + (0xFB4B, "M", "וֹ"), + (0xFB4C, "M", "בֿ"), + (0xFB4D, "M", "כֿ"), + (0xFB4E, "M", "פֿ"), + (0xFB4F, "M", "אל"), + (0xFB50, "M", "ٱ"), + (0xFB52, "M", "ٻ"), + (0xFB56, "M", "پ"), + ] + + +def _seg_45() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFB5A, "M", "ڀ"), + (0xFB5E, "M", "ٺ"), + (0xFB62, "M", "ٿ"), + (0xFB66, "M", "ٹ"), + (0xFB6A, "M", "ڤ"), + (0xFB6E, "M", "ڦ"), + (0xFB72, "M", "ڄ"), + (0xFB76, "M", "ڃ"), + (0xFB7A, "M", "چ"), + (0xFB7E, "M", "ڇ"), + (0xFB82, "M", "ڍ"), + (0xFB84, "M", "ڌ"), + (0xFB86, "M", "ڎ"), + (0xFB88, "M", "ڈ"), + (0xFB8A, "M", "ژ"), + (0xFB8C, "M", "ڑ"), + (0xFB8E, "M", "ک"), + (0xFB92, "M", "گ"), + (0xFB96, "M", "ڳ"), + (0xFB9A, "M", "ڱ"), + (0xFB9E, "M", "ں"), + (0xFBA0, "M", "ڻ"), + (0xFBA4, "M", "ۀ"), + (0xFBA6, "M", "ہ"), + (0xFBAA, "M", "ھ"), + (0xFBAE, "M", "ے"), + (0xFBB0, "M", "ۓ"), + (0xFBB2, "V"), + (0xFBC3, "X"), + (0xFBD3, "M", "ڭ"), + (0xFBD7, "M", "ۇ"), + (0xFBD9, "M", "ۆ"), + (0xFBDB, "M", "ۈ"), + (0xFBDD, "M", "ۇٴ"), + (0xFBDE, "M", "ۋ"), + (0xFBE0, "M", "ۅ"), + (0xFBE2, "M", "ۉ"), + (0xFBE4, "M", "ې"), + (0xFBE8, "M", "ى"), + (0xFBEA, "M", "ئا"), + (0xFBEC, "M", "ئە"), + (0xFBEE, "M", "ئو"), + (0xFBF0, "M", "ئۇ"), + (0xFBF2, "M", "ئۆ"), + (0xFBF4, "M", "ئۈ"), + (0xFBF6, "M", "ئې"), + (0xFBF9, "M", "ئى"), + (0xFBFC, "M", "ی"), + (0xFC00, "M", "ئج"), + (0xFC01, "M", "ئح"), + (0xFC02, "M", "ئم"), + (0xFC03, "M", "ئى"), + (0xFC04, "M", "ئي"), + (0xFC05, "M", "بج"), + (0xFC06, "M", "بح"), + (0xFC07, "M", "بخ"), + (0xFC08, "M", "بم"), + (0xFC09, "M", "بى"), + (0xFC0A, "M", "بي"), + (0xFC0B, "M", "تج"), + (0xFC0C, "M", "تح"), + (0xFC0D, "M", "تخ"), + (0xFC0E, "M", "تم"), + (0xFC0F, "M", "تى"), + (0xFC10, "M", "تي"), + (0xFC11, "M", "ثج"), + (0xFC12, "M", "ثم"), + (0xFC13, "M", "ثى"), + (0xFC14, "M", "ثي"), + (0xFC15, "M", "جح"), + (0xFC16, "M", "جم"), + (0xFC17, "M", "حج"), + (0xFC18, "M", "حم"), + (0xFC19, "M", "خج"), + (0xFC1A, "M", "خح"), + (0xFC1B, "M", "خم"), + (0xFC1C, "M", "سج"), + (0xFC1D, "M", "سح"), + (0xFC1E, "M", "سخ"), + (0xFC1F, "M", "سم"), + (0xFC20, "M", "صح"), + (0xFC21, "M", "صم"), + (0xFC22, "M", "ضج"), + (0xFC23, "M", "ضح"), + (0xFC24, "M", "ضخ"), + (0xFC25, "M", "ضم"), + (0xFC26, "M", "طح"), + (0xFC27, "M", "طم"), + (0xFC28, "M", "ظم"), + (0xFC29, "M", "عج"), + (0xFC2A, "M", "عم"), + (0xFC2B, "M", "غج"), + (0xFC2C, "M", "غم"), + (0xFC2D, "M", "فج"), + (0xFC2E, "M", "فح"), + (0xFC2F, "M", "فخ"), + (0xFC30, "M", "فم"), + (0xFC31, "M", "فى"), + (0xFC32, "M", "في"), + (0xFC33, "M", "قح"), + ] + + +def _seg_46() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFC34, "M", "قم"), + (0xFC35, "M", "قى"), + (0xFC36, "M", "قي"), + (0xFC37, "M", "كا"), + (0xFC38, "M", "كج"), + (0xFC39, "M", "كح"), + (0xFC3A, "M", "كخ"), + (0xFC3B, "M", "كل"), + (0xFC3C, "M", "كم"), + (0xFC3D, "M", "كى"), + (0xFC3E, "M", "كي"), + (0xFC3F, "M", "لج"), + (0xFC40, "M", "لح"), + (0xFC41, "M", "لخ"), + (0xFC42, "M", "لم"), + (0xFC43, "M", "لى"), + (0xFC44, "M", "لي"), + (0xFC45, "M", "مج"), + (0xFC46, "M", "مح"), + (0xFC47, "M", "مخ"), + (0xFC48, "M", "مم"), + (0xFC49, "M", "مى"), + (0xFC4A, "M", "مي"), + (0xFC4B, "M", "نج"), + (0xFC4C, "M", "نح"), + (0xFC4D, "M", "نخ"), + (0xFC4E, "M", "نم"), + (0xFC4F, "M", "نى"), + (0xFC50, "M", "ني"), + (0xFC51, "M", "هج"), + (0xFC52, "M", "هم"), + (0xFC53, "M", "هى"), + (0xFC54, "M", "هي"), + (0xFC55, "M", "يج"), + (0xFC56, "M", "يح"), + (0xFC57, "M", "يخ"), + (0xFC58, "M", "يم"), + (0xFC59, "M", "يى"), + (0xFC5A, "M", "يي"), + (0xFC5B, "M", "ذٰ"), + (0xFC5C, "M", "رٰ"), + (0xFC5D, "M", "ىٰ"), + (0xFC5E, "M", " ٌّ"), + (0xFC5F, "M", " ٍّ"), + (0xFC60, "M", " َّ"), + (0xFC61, "M", " ُّ"), + (0xFC62, "M", " ِّ"), + (0xFC63, "M", " ّٰ"), + (0xFC64, "M", "ئر"), + (0xFC65, "M", "ئز"), + (0xFC66, "M", "ئم"), + (0xFC67, "M", "ئن"), + (0xFC68, "M", "ئى"), + (0xFC69, "M", "ئي"), + (0xFC6A, "M", "بر"), + (0xFC6B, "M", "بز"), + (0xFC6C, "M", "بم"), + (0xFC6D, "M", "بن"), + (0xFC6E, "M", "بى"), + (0xFC6F, "M", "بي"), + (0xFC70, "M", "تر"), + (0xFC71, "M", "تز"), + (0xFC72, "M", "تم"), + (0xFC73, "M", "تن"), + (0xFC74, "M", "تى"), + (0xFC75, "M", "تي"), + (0xFC76, "M", "ثر"), + (0xFC77, "M", "ثز"), + (0xFC78, "M", "ثم"), + (0xFC79, "M", "ثن"), + (0xFC7A, "M", "ثى"), + (0xFC7B, "M", "ثي"), + (0xFC7C, "M", "فى"), + (0xFC7D, "M", "في"), + (0xFC7E, "M", "قى"), + (0xFC7F, "M", "قي"), + (0xFC80, "M", "كا"), + (0xFC81, "M", "كل"), + (0xFC82, "M", "كم"), + (0xFC83, "M", "كى"), + (0xFC84, "M", "كي"), + (0xFC85, "M", "لم"), + (0xFC86, "M", "لى"), + (0xFC87, "M", "لي"), + (0xFC88, "M", "ما"), + (0xFC89, "M", "مم"), + (0xFC8A, "M", "نر"), + (0xFC8B, "M", "نز"), + (0xFC8C, "M", "نم"), + (0xFC8D, "M", "نن"), + (0xFC8E, "M", "نى"), + (0xFC8F, "M", "ني"), + (0xFC90, "M", "ىٰ"), + (0xFC91, "M", "ير"), + (0xFC92, "M", "يز"), + (0xFC93, "M", "يم"), + (0xFC94, "M", "ين"), + (0xFC95, "M", "يى"), + (0xFC96, "M", "يي"), + (0xFC97, "M", "ئج"), + ] + + +def _seg_47() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFC98, "M", "ئح"), + (0xFC99, "M", "ئخ"), + (0xFC9A, "M", "ئم"), + (0xFC9B, "M", "ئه"), + (0xFC9C, "M", "بج"), + (0xFC9D, "M", "بح"), + (0xFC9E, "M", "بخ"), + (0xFC9F, "M", "بم"), + (0xFCA0, "M", "به"), + (0xFCA1, "M", "تج"), + (0xFCA2, "M", "تح"), + (0xFCA3, "M", "تخ"), + (0xFCA4, "M", "تم"), + (0xFCA5, "M", "ته"), + (0xFCA6, "M", "ثم"), + (0xFCA7, "M", "جح"), + (0xFCA8, "M", "جم"), + (0xFCA9, "M", "حج"), + (0xFCAA, "M", "حم"), + (0xFCAB, "M", "خج"), + (0xFCAC, "M", "خم"), + (0xFCAD, "M", "سج"), + (0xFCAE, "M", "سح"), + (0xFCAF, "M", "سخ"), + (0xFCB0, "M", "سم"), + (0xFCB1, "M", "صح"), + (0xFCB2, "M", "صخ"), + (0xFCB3, "M", "صم"), + (0xFCB4, "M", "ضج"), + (0xFCB5, "M", "ضح"), + (0xFCB6, "M", "ضخ"), + (0xFCB7, "M", "ضم"), + (0xFCB8, "M", "طح"), + (0xFCB9, "M", "ظم"), + (0xFCBA, "M", "عج"), + (0xFCBB, "M", "عم"), + (0xFCBC, "M", "غج"), + (0xFCBD, "M", "غم"), + (0xFCBE, "M", "فج"), + (0xFCBF, "M", "فح"), + (0xFCC0, "M", "فخ"), + (0xFCC1, "M", "فم"), + (0xFCC2, "M", "قح"), + (0xFCC3, "M", "قم"), + (0xFCC4, "M", "كج"), + (0xFCC5, "M", "كح"), + (0xFCC6, "M", "كخ"), + (0xFCC7, "M", "كل"), + (0xFCC8, "M", "كم"), + (0xFCC9, "M", "لج"), + (0xFCCA, "M", "لح"), + (0xFCCB, "M", "لخ"), + (0xFCCC, "M", "لم"), + (0xFCCD, "M", "له"), + (0xFCCE, "M", "مج"), + (0xFCCF, "M", "مح"), + (0xFCD0, "M", "مخ"), + (0xFCD1, "M", "مم"), + (0xFCD2, "M", "نج"), + (0xFCD3, "M", "نح"), + (0xFCD4, "M", "نخ"), + (0xFCD5, "M", "نم"), + (0xFCD6, "M", "نه"), + (0xFCD7, "M", "هج"), + (0xFCD8, "M", "هم"), + (0xFCD9, "M", "هٰ"), + (0xFCDA, "M", "يج"), + (0xFCDB, "M", "يح"), + (0xFCDC, "M", "يخ"), + (0xFCDD, "M", "يم"), + (0xFCDE, "M", "يه"), + (0xFCDF, "M", "ئم"), + (0xFCE0, "M", "ئه"), + (0xFCE1, "M", "بم"), + (0xFCE2, "M", "به"), + (0xFCE3, "M", "تم"), + (0xFCE4, "M", "ته"), + (0xFCE5, "M", "ثم"), + (0xFCE6, "M", "ثه"), + (0xFCE7, "M", "سم"), + (0xFCE8, "M", "سه"), + (0xFCE9, "M", "شم"), + (0xFCEA, "M", "شه"), + (0xFCEB, "M", "كل"), + (0xFCEC, "M", "كم"), + (0xFCED, "M", "لم"), + (0xFCEE, "M", "نم"), + (0xFCEF, "M", "نه"), + (0xFCF0, "M", "يم"), + (0xFCF1, "M", "يه"), + (0xFCF2, "M", "ـَّ"), + (0xFCF3, "M", "ـُّ"), + (0xFCF4, "M", "ـِّ"), + (0xFCF5, "M", "طى"), + (0xFCF6, "M", "طي"), + (0xFCF7, "M", "عى"), + (0xFCF8, "M", "عي"), + (0xFCF9, "M", "غى"), + (0xFCFA, "M", "غي"), + (0xFCFB, "M", "سى"), + ] + + +def _seg_48() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFCFC, "M", "سي"), + (0xFCFD, "M", "شى"), + (0xFCFE, "M", "شي"), + (0xFCFF, "M", "حى"), + (0xFD00, "M", "حي"), + (0xFD01, "M", "جى"), + (0xFD02, "M", "جي"), + (0xFD03, "M", "خى"), + (0xFD04, "M", "خي"), + (0xFD05, "M", "صى"), + (0xFD06, "M", "صي"), + (0xFD07, "M", "ضى"), + (0xFD08, "M", "ضي"), + (0xFD09, "M", "شج"), + (0xFD0A, "M", "شح"), + (0xFD0B, "M", "شخ"), + (0xFD0C, "M", "شم"), + (0xFD0D, "M", "شر"), + (0xFD0E, "M", "سر"), + (0xFD0F, "M", "صر"), + (0xFD10, "M", "ضر"), + (0xFD11, "M", "طى"), + (0xFD12, "M", "طي"), + (0xFD13, "M", "عى"), + (0xFD14, "M", "عي"), + (0xFD15, "M", "غى"), + (0xFD16, "M", "غي"), + (0xFD17, "M", "سى"), + (0xFD18, "M", "سي"), + (0xFD19, "M", "شى"), + (0xFD1A, "M", "شي"), + (0xFD1B, "M", "حى"), + (0xFD1C, "M", "حي"), + (0xFD1D, "M", "جى"), + (0xFD1E, "M", "جي"), + (0xFD1F, "M", "خى"), + (0xFD20, "M", "خي"), + (0xFD21, "M", "صى"), + (0xFD22, "M", "صي"), + (0xFD23, "M", "ضى"), + (0xFD24, "M", "ضي"), + (0xFD25, "M", "شج"), + (0xFD26, "M", "شح"), + (0xFD27, "M", "شخ"), + (0xFD28, "M", "شم"), + (0xFD29, "M", "شر"), + (0xFD2A, "M", "سر"), + (0xFD2B, "M", "صر"), + (0xFD2C, "M", "ضر"), + (0xFD2D, "M", "شج"), + (0xFD2E, "M", "شح"), + (0xFD2F, "M", "شخ"), + (0xFD30, "M", "شم"), + (0xFD31, "M", "سه"), + (0xFD32, "M", "شه"), + (0xFD33, "M", "طم"), + (0xFD34, "M", "سج"), + (0xFD35, "M", "سح"), + (0xFD36, "M", "سخ"), + (0xFD37, "M", "شج"), + (0xFD38, "M", "شح"), + (0xFD39, "M", "شخ"), + (0xFD3A, "M", "طم"), + (0xFD3B, "M", "ظم"), + (0xFD3C, "M", "اً"), + (0xFD3E, "V"), + (0xFD50, "M", "تجم"), + (0xFD51, "M", "تحج"), + (0xFD53, "M", "تحم"), + (0xFD54, "M", "تخم"), + (0xFD55, "M", "تمج"), + (0xFD56, "M", "تمح"), + (0xFD57, "M", "تمخ"), + (0xFD58, "M", "جمح"), + (0xFD5A, "M", "حمي"), + (0xFD5B, "M", "حمى"), + (0xFD5C, "M", "سحج"), + (0xFD5D, "M", "سجح"), + (0xFD5E, "M", "سجى"), + (0xFD5F, "M", "سمح"), + (0xFD61, "M", "سمج"), + (0xFD62, "M", "سمم"), + (0xFD64, "M", "صحح"), + (0xFD66, "M", "صمم"), + (0xFD67, "M", "شحم"), + (0xFD69, "M", "شجي"), + (0xFD6A, "M", "شمخ"), + (0xFD6C, "M", "شمم"), + (0xFD6E, "M", "ضحى"), + (0xFD6F, "M", "ضخم"), + (0xFD71, "M", "طمح"), + (0xFD73, "M", "طمم"), + (0xFD74, "M", "طمي"), + (0xFD75, "M", "عجم"), + (0xFD76, "M", "عمم"), + (0xFD78, "M", "عمى"), + (0xFD79, "M", "غمم"), + (0xFD7A, "M", "غمي"), + (0xFD7B, "M", "غمى"), + (0xFD7C, "M", "فخم"), + ] + + +def _seg_49() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFD7E, "M", "قمح"), + (0xFD7F, "M", "قمم"), + (0xFD80, "M", "لحم"), + (0xFD81, "M", "لحي"), + (0xFD82, "M", "لحى"), + (0xFD83, "M", "لجج"), + (0xFD85, "M", "لخم"), + (0xFD87, "M", "لمح"), + (0xFD89, "M", "محج"), + (0xFD8A, "M", "محم"), + (0xFD8B, "M", "محي"), + (0xFD8C, "M", "مجح"), + (0xFD8D, "M", "مجم"), + (0xFD8E, "M", "مخج"), + (0xFD8F, "M", "مخم"), + (0xFD90, "X"), + (0xFD92, "M", "مجخ"), + (0xFD93, "M", "همج"), + (0xFD94, "M", "همم"), + (0xFD95, "M", "نحم"), + (0xFD96, "M", "نحى"), + (0xFD97, "M", "نجم"), + (0xFD99, "M", "نجى"), + (0xFD9A, "M", "نمي"), + (0xFD9B, "M", "نمى"), + (0xFD9C, "M", "يمم"), + (0xFD9E, "M", "بخي"), + (0xFD9F, "M", "تجي"), + (0xFDA0, "M", "تجى"), + (0xFDA1, "M", "تخي"), + (0xFDA2, "M", "تخى"), + (0xFDA3, "M", "تمي"), + (0xFDA4, "M", "تمى"), + (0xFDA5, "M", "جمي"), + (0xFDA6, "M", "جحى"), + (0xFDA7, "M", "جمى"), + (0xFDA8, "M", "سخى"), + (0xFDA9, "M", "صحي"), + (0xFDAA, "M", "شحي"), + (0xFDAB, "M", "ضحي"), + (0xFDAC, "M", "لجي"), + (0xFDAD, "M", "لمي"), + (0xFDAE, "M", "يحي"), + (0xFDAF, "M", "يجي"), + (0xFDB0, "M", "يمي"), + (0xFDB1, "M", "ممي"), + (0xFDB2, "M", "قمي"), + (0xFDB3, "M", "نحي"), + (0xFDB4, "M", "قمح"), + (0xFDB5, "M", "لحم"), + (0xFDB6, "M", "عمي"), + (0xFDB7, "M", "كمي"), + (0xFDB8, "M", "نجح"), + (0xFDB9, "M", "مخي"), + (0xFDBA, "M", "لجم"), + (0xFDBB, "M", "كمم"), + (0xFDBC, "M", "لجم"), + (0xFDBD, "M", "نجح"), + (0xFDBE, "M", "جحي"), + (0xFDBF, "M", "حجي"), + (0xFDC0, "M", "مجي"), + (0xFDC1, "M", "فمي"), + (0xFDC2, "M", "بحي"), + (0xFDC3, "M", "كمم"), + (0xFDC4, "M", "عجم"), + (0xFDC5, "M", "صمم"), + (0xFDC6, "M", "سخي"), + (0xFDC7, "M", "نجي"), + (0xFDC8, "X"), + (0xFDCF, "V"), + (0xFDD0, "X"), + (0xFDF0, "M", "صلے"), + (0xFDF1, "M", "قلے"), + (0xFDF2, "M", "الله"), + (0xFDF3, "M", "اكبر"), + (0xFDF4, "M", "محمد"), + (0xFDF5, "M", "صلعم"), + (0xFDF6, "M", "رسول"), + (0xFDF7, "M", "عليه"), + (0xFDF8, "M", "وسلم"), + (0xFDF9, "M", "صلى"), + (0xFDFA, "M", "صلى الله عليه وسلم"), + (0xFDFB, "M", "جل جلاله"), + (0xFDFC, "M", "ریال"), + (0xFDFD, "V"), + (0xFE00, "I"), + (0xFE10, "M", ","), + (0xFE11, "M", "、"), + (0xFE12, "X"), + (0xFE13, "M", ":"), + (0xFE14, "M", ";"), + (0xFE15, "M", "!"), + (0xFE16, "M", "?"), + (0xFE17, "M", "〖"), + (0xFE18, "M", "〗"), + (0xFE19, "X"), + (0xFE20, "V"), + (0xFE30, "X"), + (0xFE31, "M", "—"), + (0xFE32, "M", "–"), + ] + + +def _seg_50() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFE33, "M", "_"), + (0xFE35, "M", "("), + (0xFE36, "M", ")"), + (0xFE37, "M", "{"), + (0xFE38, "M", "}"), + (0xFE39, "M", "〔"), + (0xFE3A, "M", "〕"), + (0xFE3B, "M", "【"), + (0xFE3C, "M", "】"), + (0xFE3D, "M", "《"), + (0xFE3E, "M", "》"), + (0xFE3F, "M", "〈"), + (0xFE40, "M", "〉"), + (0xFE41, "M", "「"), + (0xFE42, "M", "」"), + (0xFE43, "M", "『"), + (0xFE44, "M", "』"), + (0xFE45, "V"), + (0xFE47, "M", "["), + (0xFE48, "M", "]"), + (0xFE49, "M", " ̅"), + (0xFE4D, "M", "_"), + (0xFE50, "M", ","), + (0xFE51, "M", "、"), + (0xFE52, "X"), + (0xFE54, "M", ";"), + (0xFE55, "M", ":"), + (0xFE56, "M", "?"), + (0xFE57, "M", "!"), + (0xFE58, "M", "—"), + (0xFE59, "M", "("), + (0xFE5A, "M", ")"), + (0xFE5B, "M", "{"), + (0xFE5C, "M", "}"), + (0xFE5D, "M", "〔"), + (0xFE5E, "M", "〕"), + (0xFE5F, "M", "#"), + (0xFE60, "M", "&"), + (0xFE61, "M", "*"), + (0xFE62, "M", "+"), + (0xFE63, "M", "-"), + (0xFE64, "M", "<"), + (0xFE65, "M", ">"), + (0xFE66, "M", "="), + (0xFE67, "X"), + (0xFE68, "M", "\\"), + (0xFE69, "M", "$"), + (0xFE6A, "M", "%"), + (0xFE6B, "M", "@"), + (0xFE6C, "X"), + (0xFE70, "M", " ً"), + (0xFE71, "M", "ـً"), + (0xFE72, "M", " ٌ"), + (0xFE73, "V"), + (0xFE74, "M", " ٍ"), + (0xFE75, "X"), + (0xFE76, "M", " َ"), + (0xFE77, "M", "ـَ"), + (0xFE78, "M", " ُ"), + (0xFE79, "M", "ـُ"), + (0xFE7A, "M", " ِ"), + (0xFE7B, "M", "ـِ"), + (0xFE7C, "M", " ّ"), + (0xFE7D, "M", "ـّ"), + (0xFE7E, "M", " ْ"), + (0xFE7F, "M", "ـْ"), + (0xFE80, "M", "ء"), + (0xFE81, "M", "آ"), + (0xFE83, "M", "أ"), + (0xFE85, "M", "ؤ"), + (0xFE87, "M", "إ"), + (0xFE89, "M", "ئ"), + (0xFE8D, "M", "ا"), + (0xFE8F, "M", "ب"), + (0xFE93, "M", "ة"), + (0xFE95, "M", "ت"), + (0xFE99, "M", "ث"), + (0xFE9D, "M", "ج"), + (0xFEA1, "M", "ح"), + (0xFEA5, "M", "خ"), + (0xFEA9, "M", "د"), + (0xFEAB, "M", "ذ"), + (0xFEAD, "M", "ر"), + (0xFEAF, "M", "ز"), + (0xFEB1, "M", "س"), + (0xFEB5, "M", "ش"), + (0xFEB9, "M", "ص"), + (0xFEBD, "M", "ض"), + (0xFEC1, "M", "ط"), + (0xFEC5, "M", "ظ"), + (0xFEC9, "M", "ع"), + (0xFECD, "M", "غ"), + (0xFED1, "M", "ف"), + (0xFED5, "M", "ق"), + (0xFED9, "M", "ك"), + (0xFEDD, "M", "ل"), + (0xFEE1, "M", "م"), + (0xFEE5, "M", "ن"), + (0xFEE9, "M", "ه"), + (0xFEED, "M", "و"), + ] + + +def _seg_51() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFEEF, "M", "ى"), + (0xFEF1, "M", "ي"), + (0xFEF5, "M", "لآ"), + (0xFEF7, "M", "لأ"), + (0xFEF9, "M", "لإ"), + (0xFEFB, "M", "لا"), + (0xFEFD, "X"), + (0xFEFF, "I"), + (0xFF00, "X"), + (0xFF01, "M", "!"), + (0xFF02, "M", '"'), + (0xFF03, "M", "#"), + (0xFF04, "M", "$"), + (0xFF05, "M", "%"), + (0xFF06, "M", "&"), + (0xFF07, "M", "'"), + (0xFF08, "M", "("), + (0xFF09, "M", ")"), + (0xFF0A, "M", "*"), + (0xFF0B, "M", "+"), + (0xFF0C, "M", ","), + (0xFF0D, "M", "-"), + (0xFF0E, "M", "."), + (0xFF0F, "M", "/"), + (0xFF10, "M", "0"), + (0xFF11, "M", "1"), + (0xFF12, "M", "2"), + (0xFF13, "M", "3"), + (0xFF14, "M", "4"), + (0xFF15, "M", "5"), + (0xFF16, "M", "6"), + (0xFF17, "M", "7"), + (0xFF18, "M", "8"), + (0xFF19, "M", "9"), + (0xFF1A, "M", ":"), + (0xFF1B, "M", ";"), + (0xFF1C, "M", "<"), + (0xFF1D, "M", "="), + (0xFF1E, "M", ">"), + (0xFF1F, "M", "?"), + (0xFF20, "M", "@"), + (0xFF21, "M", "a"), + (0xFF22, "M", "b"), + (0xFF23, "M", "c"), + (0xFF24, "M", "d"), + (0xFF25, "M", "e"), + (0xFF26, "M", "f"), + (0xFF27, "M", "g"), + (0xFF28, "M", "h"), + (0xFF29, "M", "i"), + (0xFF2A, "M", "j"), + (0xFF2B, "M", "k"), + (0xFF2C, "M", "l"), + (0xFF2D, "M", "m"), + (0xFF2E, "M", "n"), + (0xFF2F, "M", "o"), + (0xFF30, "M", "p"), + (0xFF31, "M", "q"), + (0xFF32, "M", "r"), + (0xFF33, "M", "s"), + (0xFF34, "M", "t"), + (0xFF35, "M", "u"), + (0xFF36, "M", "v"), + (0xFF37, "M", "w"), + (0xFF38, "M", "x"), + (0xFF39, "M", "y"), + (0xFF3A, "M", "z"), + (0xFF3B, "M", "["), + (0xFF3C, "M", "\\"), + (0xFF3D, "M", "]"), + (0xFF3E, "M", "^"), + (0xFF3F, "M", "_"), + (0xFF40, "M", "`"), + (0xFF41, "M", "a"), + (0xFF42, "M", "b"), + (0xFF43, "M", "c"), + (0xFF44, "M", "d"), + (0xFF45, "M", "e"), + (0xFF46, "M", "f"), + (0xFF47, "M", "g"), + (0xFF48, "M", "h"), + (0xFF49, "M", "i"), + (0xFF4A, "M", "j"), + (0xFF4B, "M", "k"), + (0xFF4C, "M", "l"), + (0xFF4D, "M", "m"), + (0xFF4E, "M", "n"), + (0xFF4F, "M", "o"), + (0xFF50, "M", "p"), + (0xFF51, "M", "q"), + (0xFF52, "M", "r"), + (0xFF53, "M", "s"), + (0xFF54, "M", "t"), + (0xFF55, "M", "u"), + (0xFF56, "M", "v"), + (0xFF57, "M", "w"), + (0xFF58, "M", "x"), + (0xFF59, "M", "y"), + (0xFF5A, "M", "z"), + (0xFF5B, "M", "{"), + ] + + +def _seg_52() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFF5C, "M", "|"), + (0xFF5D, "M", "}"), + (0xFF5E, "M", "~"), + (0xFF5F, "M", "⦅"), + (0xFF60, "M", "⦆"), + (0xFF61, "M", "."), + (0xFF62, "M", "「"), + (0xFF63, "M", "」"), + (0xFF64, "M", "、"), + (0xFF65, "M", "・"), + (0xFF66, "M", "ヲ"), + (0xFF67, "M", "ァ"), + (0xFF68, "M", "ィ"), + (0xFF69, "M", "ゥ"), + (0xFF6A, "M", "ェ"), + (0xFF6B, "M", "ォ"), + (0xFF6C, "M", "ャ"), + (0xFF6D, "M", "ュ"), + (0xFF6E, "M", "ョ"), + (0xFF6F, "M", "ッ"), + (0xFF70, "M", "ー"), + (0xFF71, "M", "ア"), + (0xFF72, "M", "イ"), + (0xFF73, "M", "ウ"), + (0xFF74, "M", "エ"), + (0xFF75, "M", "オ"), + (0xFF76, "M", "カ"), + (0xFF77, "M", "キ"), + (0xFF78, "M", "ク"), + (0xFF79, "M", "ケ"), + (0xFF7A, "M", "コ"), + (0xFF7B, "M", "サ"), + (0xFF7C, "M", "シ"), + (0xFF7D, "M", "ス"), + (0xFF7E, "M", "セ"), + (0xFF7F, "M", "ソ"), + (0xFF80, "M", "タ"), + (0xFF81, "M", "チ"), + (0xFF82, "M", "ツ"), + (0xFF83, "M", "テ"), + (0xFF84, "M", "ト"), + (0xFF85, "M", "ナ"), + (0xFF86, "M", "ニ"), + (0xFF87, "M", "ヌ"), + (0xFF88, "M", "ネ"), + (0xFF89, "M", "ノ"), + (0xFF8A, "M", "ハ"), + (0xFF8B, "M", "ヒ"), + (0xFF8C, "M", "フ"), + (0xFF8D, "M", "ヘ"), + (0xFF8E, "M", "ホ"), + (0xFF8F, "M", "マ"), + (0xFF90, "M", "ミ"), + (0xFF91, "M", "ム"), + (0xFF92, "M", "メ"), + (0xFF93, "M", "モ"), + (0xFF94, "M", "ヤ"), + (0xFF95, "M", "ユ"), + (0xFF96, "M", "ヨ"), + (0xFF97, "M", "ラ"), + (0xFF98, "M", "リ"), + (0xFF99, "M", "ル"), + (0xFF9A, "M", "レ"), + (0xFF9B, "M", "ロ"), + (0xFF9C, "M", "ワ"), + (0xFF9D, "M", "ン"), + (0xFF9E, "M", "゙"), + (0xFF9F, "M", "゚"), + (0xFFA0, "I"), + (0xFFA1, "M", "ᄀ"), + (0xFFA2, "M", "ᄁ"), + (0xFFA3, "M", "ᆪ"), + (0xFFA4, "M", "ᄂ"), + (0xFFA5, "M", "ᆬ"), + (0xFFA6, "M", "ᆭ"), + (0xFFA7, "M", "ᄃ"), + (0xFFA8, "M", "ᄄ"), + (0xFFA9, "M", "ᄅ"), + (0xFFAA, "M", "ᆰ"), + (0xFFAB, "M", "ᆱ"), + (0xFFAC, "M", "ᆲ"), + (0xFFAD, "M", "ᆳ"), + (0xFFAE, "M", "ᆴ"), + (0xFFAF, "M", "ᆵ"), + (0xFFB0, "M", "ᄚ"), + (0xFFB1, "M", "ᄆ"), + (0xFFB2, "M", "ᄇ"), + (0xFFB3, "M", "ᄈ"), + (0xFFB4, "M", "ᄡ"), + (0xFFB5, "M", "ᄉ"), + (0xFFB6, "M", "ᄊ"), + (0xFFB7, "M", "ᄋ"), + (0xFFB8, "M", "ᄌ"), + (0xFFB9, "M", "ᄍ"), + (0xFFBA, "M", "ᄎ"), + (0xFFBB, "M", "ᄏ"), + (0xFFBC, "M", "ᄐ"), + (0xFFBD, "M", "ᄑ"), + (0xFFBE, "M", "ᄒ"), + (0xFFBF, "X"), + ] + + +def _seg_53() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0xFFC2, "M", "ᅡ"), + (0xFFC3, "M", "ᅢ"), + (0xFFC4, "M", "ᅣ"), + (0xFFC5, "M", "ᅤ"), + (0xFFC6, "M", "ᅥ"), + (0xFFC7, "M", "ᅦ"), + (0xFFC8, "X"), + (0xFFCA, "M", "ᅧ"), + (0xFFCB, "M", "ᅨ"), + (0xFFCC, "M", "ᅩ"), + (0xFFCD, "M", "ᅪ"), + (0xFFCE, "M", "ᅫ"), + (0xFFCF, "M", "ᅬ"), + (0xFFD0, "X"), + (0xFFD2, "M", "ᅭ"), + (0xFFD3, "M", "ᅮ"), + (0xFFD4, "M", "ᅯ"), + (0xFFD5, "M", "ᅰ"), + (0xFFD6, "M", "ᅱ"), + (0xFFD7, "M", "ᅲ"), + (0xFFD8, "X"), + (0xFFDA, "M", "ᅳ"), + (0xFFDB, "M", "ᅴ"), + (0xFFDC, "M", "ᅵ"), + (0xFFDD, "X"), + (0xFFE0, "M", "¢"), + (0xFFE1, "M", "£"), + (0xFFE2, "M", "¬"), + (0xFFE3, "M", " ̄"), + (0xFFE4, "M", "¦"), + (0xFFE5, "M", "¥"), + (0xFFE6, "M", "₩"), + (0xFFE7, "X"), + (0xFFE8, "M", "│"), + (0xFFE9, "M", "←"), + (0xFFEA, "M", "↑"), + (0xFFEB, "M", "→"), + (0xFFEC, "M", "↓"), + (0xFFED, "M", "■"), + (0xFFEE, "M", "○"), + (0xFFEF, "X"), + (0x10000, "V"), + (0x1000C, "X"), + (0x1000D, "V"), + (0x10027, "X"), + (0x10028, "V"), + (0x1003B, "X"), + (0x1003C, "V"), + (0x1003E, "X"), + (0x1003F, "V"), + (0x1004E, "X"), + (0x10050, "V"), + (0x1005E, "X"), + (0x10080, "V"), + (0x100FB, "X"), + (0x10100, "V"), + (0x10103, "X"), + (0x10107, "V"), + (0x10134, "X"), + (0x10137, "V"), + (0x1018F, "X"), + (0x10190, "V"), + (0x1019D, "X"), + (0x101A0, "V"), + (0x101A1, "X"), + (0x101D0, "V"), + (0x101FE, "X"), + (0x10280, "V"), + (0x1029D, "X"), + (0x102A0, "V"), + (0x102D1, "X"), + (0x102E0, "V"), + (0x102FC, "X"), + (0x10300, "V"), + (0x10324, "X"), + (0x1032D, "V"), + (0x1034B, "X"), + (0x10350, "V"), + (0x1037B, "X"), + (0x10380, "V"), + (0x1039E, "X"), + (0x1039F, "V"), + (0x103C4, "X"), + (0x103C8, "V"), + (0x103D6, "X"), + (0x10400, "M", "𐐨"), + (0x10401, "M", "𐐩"), + (0x10402, "M", "𐐪"), + (0x10403, "M", "𐐫"), + (0x10404, "M", "𐐬"), + (0x10405, "M", "𐐭"), + (0x10406, "M", "𐐮"), + (0x10407, "M", "𐐯"), + (0x10408, "M", "𐐰"), + (0x10409, "M", "𐐱"), + (0x1040A, "M", "𐐲"), + (0x1040B, "M", "𐐳"), + (0x1040C, "M", "𐐴"), + (0x1040D, "M", "𐐵"), + (0x1040E, "M", "𐐶"), + ] + + +def _seg_54() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1040F, "M", "𐐷"), + (0x10410, "M", "𐐸"), + (0x10411, "M", "𐐹"), + (0x10412, "M", "𐐺"), + (0x10413, "M", "𐐻"), + (0x10414, "M", "𐐼"), + (0x10415, "M", "𐐽"), + (0x10416, "M", "𐐾"), + (0x10417, "M", "𐐿"), + (0x10418, "M", "𐑀"), + (0x10419, "M", "𐑁"), + (0x1041A, "M", "𐑂"), + (0x1041B, "M", "𐑃"), + (0x1041C, "M", "𐑄"), + (0x1041D, "M", "𐑅"), + (0x1041E, "M", "𐑆"), + (0x1041F, "M", "𐑇"), + (0x10420, "M", "𐑈"), + (0x10421, "M", "𐑉"), + (0x10422, "M", "𐑊"), + (0x10423, "M", "𐑋"), + (0x10424, "M", "𐑌"), + (0x10425, "M", "𐑍"), + (0x10426, "M", "𐑎"), + (0x10427, "M", "𐑏"), + (0x10428, "V"), + (0x1049E, "X"), + (0x104A0, "V"), + (0x104AA, "X"), + (0x104B0, "M", "𐓘"), + (0x104B1, "M", "𐓙"), + (0x104B2, "M", "𐓚"), + (0x104B3, "M", "𐓛"), + (0x104B4, "M", "𐓜"), + (0x104B5, "M", "𐓝"), + (0x104B6, "M", "𐓞"), + (0x104B7, "M", "𐓟"), + (0x104B8, "M", "𐓠"), + (0x104B9, "M", "𐓡"), + (0x104BA, "M", "𐓢"), + (0x104BB, "M", "𐓣"), + (0x104BC, "M", "𐓤"), + (0x104BD, "M", "𐓥"), + (0x104BE, "M", "𐓦"), + (0x104BF, "M", "𐓧"), + (0x104C0, "M", "𐓨"), + (0x104C1, "M", "𐓩"), + (0x104C2, "M", "𐓪"), + (0x104C3, "M", "𐓫"), + (0x104C4, "M", "𐓬"), + (0x104C5, "M", "𐓭"), + (0x104C6, "M", "𐓮"), + (0x104C7, "M", "𐓯"), + (0x104C8, "M", "𐓰"), + (0x104C9, "M", "𐓱"), + (0x104CA, "M", "𐓲"), + (0x104CB, "M", "𐓳"), + (0x104CC, "M", "𐓴"), + (0x104CD, "M", "𐓵"), + (0x104CE, "M", "𐓶"), + (0x104CF, "M", "𐓷"), + (0x104D0, "M", "𐓸"), + (0x104D1, "M", "𐓹"), + (0x104D2, "M", "𐓺"), + (0x104D3, "M", "𐓻"), + (0x104D4, "X"), + (0x104D8, "V"), + (0x104FC, "X"), + (0x10500, "V"), + (0x10528, "X"), + (0x10530, "V"), + (0x10564, "X"), + (0x1056F, "V"), + (0x10570, "M", "𐖗"), + (0x10571, "M", "𐖘"), + (0x10572, "M", "𐖙"), + (0x10573, "M", "𐖚"), + (0x10574, "M", "𐖛"), + (0x10575, "M", "𐖜"), + (0x10576, "M", "𐖝"), + (0x10577, "M", "𐖞"), + (0x10578, "M", "𐖟"), + (0x10579, "M", "𐖠"), + (0x1057A, "M", "𐖡"), + (0x1057B, "X"), + (0x1057C, "M", "𐖣"), + (0x1057D, "M", "𐖤"), + (0x1057E, "M", "𐖥"), + (0x1057F, "M", "𐖦"), + (0x10580, "M", "𐖧"), + (0x10581, "M", "𐖨"), + (0x10582, "M", "𐖩"), + (0x10583, "M", "𐖪"), + (0x10584, "M", "𐖫"), + (0x10585, "M", "𐖬"), + (0x10586, "M", "𐖭"), + (0x10587, "M", "𐖮"), + (0x10588, "M", "𐖯"), + (0x10589, "M", "𐖰"), + (0x1058A, "M", "𐖱"), + ] + + +def _seg_55() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1058B, "X"), + (0x1058C, "M", "𐖳"), + (0x1058D, "M", "𐖴"), + (0x1058E, "M", "𐖵"), + (0x1058F, "M", "𐖶"), + (0x10590, "M", "𐖷"), + (0x10591, "M", "𐖸"), + (0x10592, "M", "𐖹"), + (0x10593, "X"), + (0x10594, "M", "𐖻"), + (0x10595, "M", "𐖼"), + (0x10596, "X"), + (0x10597, "V"), + (0x105A2, "X"), + (0x105A3, "V"), + (0x105B2, "X"), + (0x105B3, "V"), + (0x105BA, "X"), + (0x105BB, "V"), + (0x105BD, "X"), + (0x105C0, "V"), + (0x105F4, "X"), + (0x10600, "V"), + (0x10737, "X"), + (0x10740, "V"), + (0x10756, "X"), + (0x10760, "V"), + (0x10768, "X"), + (0x10780, "V"), + (0x10781, "M", "ː"), + (0x10782, "M", "ˑ"), + (0x10783, "M", "æ"), + (0x10784, "M", "ʙ"), + (0x10785, "M", "ɓ"), + (0x10786, "X"), + (0x10787, "M", "ʣ"), + (0x10788, "M", "ꭦ"), + (0x10789, "M", "ʥ"), + (0x1078A, "M", "ʤ"), + (0x1078B, "M", "ɖ"), + (0x1078C, "M", "ɗ"), + (0x1078D, "M", "ᶑ"), + (0x1078E, "M", "ɘ"), + (0x1078F, "M", "ɞ"), + (0x10790, "M", "ʩ"), + (0x10791, "M", "ɤ"), + (0x10792, "M", "ɢ"), + (0x10793, "M", "ɠ"), + (0x10794, "M", "ʛ"), + (0x10795, "M", "ħ"), + (0x10796, "M", "ʜ"), + (0x10797, "M", "ɧ"), + (0x10798, "M", "ʄ"), + (0x10799, "M", "ʪ"), + (0x1079A, "M", "ʫ"), + (0x1079B, "M", "ɬ"), + (0x1079C, "M", "𝼄"), + (0x1079D, "M", "ꞎ"), + (0x1079E, "M", "ɮ"), + (0x1079F, "M", "𝼅"), + (0x107A0, "M", "ʎ"), + (0x107A1, "M", "𝼆"), + (0x107A2, "M", "ø"), + (0x107A3, "M", "ɶ"), + (0x107A4, "M", "ɷ"), + (0x107A5, "M", "q"), + (0x107A6, "M", "ɺ"), + (0x107A7, "M", "𝼈"), + (0x107A8, "M", "ɽ"), + (0x107A9, "M", "ɾ"), + (0x107AA, "M", "ʀ"), + (0x107AB, "M", "ʨ"), + (0x107AC, "M", "ʦ"), + (0x107AD, "M", "ꭧ"), + (0x107AE, "M", "ʧ"), + (0x107AF, "M", "ʈ"), + (0x107B0, "M", "ⱱ"), + (0x107B1, "X"), + (0x107B2, "M", "ʏ"), + (0x107B3, "M", "ʡ"), + (0x107B4, "M", "ʢ"), + (0x107B5, "M", "ʘ"), + (0x107B6, "M", "ǀ"), + (0x107B7, "M", "ǁ"), + (0x107B8, "M", "ǂ"), + (0x107B9, "M", "𝼊"), + (0x107BA, "M", "𝼞"), + (0x107BB, "X"), + (0x10800, "V"), + (0x10806, "X"), + (0x10808, "V"), + (0x10809, "X"), + (0x1080A, "V"), + (0x10836, "X"), + (0x10837, "V"), + (0x10839, "X"), + (0x1083C, "V"), + (0x1083D, "X"), + (0x1083F, "V"), + (0x10856, "X"), + ] + + +def _seg_56() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x10857, "V"), + (0x1089F, "X"), + (0x108A7, "V"), + (0x108B0, "X"), + (0x108E0, "V"), + (0x108F3, "X"), + (0x108F4, "V"), + (0x108F6, "X"), + (0x108FB, "V"), + (0x1091C, "X"), + (0x1091F, "V"), + (0x1093A, "X"), + (0x1093F, "V"), + (0x10940, "X"), + (0x10980, "V"), + (0x109B8, "X"), + (0x109BC, "V"), + (0x109D0, "X"), + (0x109D2, "V"), + (0x10A04, "X"), + (0x10A05, "V"), + (0x10A07, "X"), + (0x10A0C, "V"), + (0x10A14, "X"), + (0x10A15, "V"), + (0x10A18, "X"), + (0x10A19, "V"), + (0x10A36, "X"), + (0x10A38, "V"), + (0x10A3B, "X"), + (0x10A3F, "V"), + (0x10A49, "X"), + (0x10A50, "V"), + (0x10A59, "X"), + (0x10A60, "V"), + (0x10AA0, "X"), + (0x10AC0, "V"), + (0x10AE7, "X"), + (0x10AEB, "V"), + (0x10AF7, "X"), + (0x10B00, "V"), + (0x10B36, "X"), + (0x10B39, "V"), + (0x10B56, "X"), + (0x10B58, "V"), + (0x10B73, "X"), + (0x10B78, "V"), + (0x10B92, "X"), + (0x10B99, "V"), + (0x10B9D, "X"), + (0x10BA9, "V"), + (0x10BB0, "X"), + (0x10C00, "V"), + (0x10C49, "X"), + (0x10C80, "M", "𐳀"), + (0x10C81, "M", "𐳁"), + (0x10C82, "M", "𐳂"), + (0x10C83, "M", "𐳃"), + (0x10C84, "M", "𐳄"), + (0x10C85, "M", "𐳅"), + (0x10C86, "M", "𐳆"), + (0x10C87, "M", "𐳇"), + (0x10C88, "M", "𐳈"), + (0x10C89, "M", "𐳉"), + (0x10C8A, "M", "𐳊"), + (0x10C8B, "M", "𐳋"), + (0x10C8C, "M", "𐳌"), + (0x10C8D, "M", "𐳍"), + (0x10C8E, "M", "𐳎"), + (0x10C8F, "M", "𐳏"), + (0x10C90, "M", "𐳐"), + (0x10C91, "M", "𐳑"), + (0x10C92, "M", "𐳒"), + (0x10C93, "M", "𐳓"), + (0x10C94, "M", "𐳔"), + (0x10C95, "M", "𐳕"), + (0x10C96, "M", "𐳖"), + (0x10C97, "M", "𐳗"), + (0x10C98, "M", "𐳘"), + (0x10C99, "M", "𐳙"), + (0x10C9A, "M", "𐳚"), + (0x10C9B, "M", "𐳛"), + (0x10C9C, "M", "𐳜"), + (0x10C9D, "M", "𐳝"), + (0x10C9E, "M", "𐳞"), + (0x10C9F, "M", "𐳟"), + (0x10CA0, "M", "𐳠"), + (0x10CA1, "M", "𐳡"), + (0x10CA2, "M", "𐳢"), + (0x10CA3, "M", "𐳣"), + (0x10CA4, "M", "𐳤"), + (0x10CA5, "M", "𐳥"), + (0x10CA6, "M", "𐳦"), + (0x10CA7, "M", "𐳧"), + (0x10CA8, "M", "𐳨"), + (0x10CA9, "M", "𐳩"), + (0x10CAA, "M", "𐳪"), + (0x10CAB, "M", "𐳫"), + (0x10CAC, "M", "𐳬"), + (0x10CAD, "M", "𐳭"), + ] + + +def _seg_57() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x10CAE, "M", "𐳮"), + (0x10CAF, "M", "𐳯"), + (0x10CB0, "M", "𐳰"), + (0x10CB1, "M", "𐳱"), + (0x10CB2, "M", "𐳲"), + (0x10CB3, "X"), + (0x10CC0, "V"), + (0x10CF3, "X"), + (0x10CFA, "V"), + (0x10D28, "X"), + (0x10D30, "V"), + (0x10D3A, "X"), + (0x10D40, "V"), + (0x10D50, "M", "𐵰"), + (0x10D51, "M", "𐵱"), + (0x10D52, "M", "𐵲"), + (0x10D53, "M", "𐵳"), + (0x10D54, "M", "𐵴"), + (0x10D55, "M", "𐵵"), + (0x10D56, "M", "𐵶"), + (0x10D57, "M", "𐵷"), + (0x10D58, "M", "𐵸"), + (0x10D59, "M", "𐵹"), + (0x10D5A, "M", "𐵺"), + (0x10D5B, "M", "𐵻"), + (0x10D5C, "M", "𐵼"), + (0x10D5D, "M", "𐵽"), + (0x10D5E, "M", "𐵾"), + (0x10D5F, "M", "𐵿"), + (0x10D60, "M", "𐶀"), + (0x10D61, "M", "𐶁"), + (0x10D62, "M", "𐶂"), + (0x10D63, "M", "𐶃"), + (0x10D64, "M", "𐶄"), + (0x10D65, "M", "𐶅"), + (0x10D66, "X"), + (0x10D69, "V"), + (0x10D86, "X"), + (0x10D8E, "V"), + (0x10D90, "X"), + (0x10E60, "V"), + (0x10E7F, "X"), + (0x10E80, "V"), + (0x10EAA, "X"), + (0x10EAB, "V"), + (0x10EAE, "X"), + (0x10EB0, "V"), + (0x10EB2, "X"), + (0x10EC2, "V"), + (0x10EC5, "X"), + (0x10EFC, "V"), + (0x10F28, "X"), + (0x10F30, "V"), + (0x10F5A, "X"), + (0x10F70, "V"), + (0x10F8A, "X"), + (0x10FB0, "V"), + (0x10FCC, "X"), + (0x10FE0, "V"), + (0x10FF7, "X"), + (0x11000, "V"), + (0x1104E, "X"), + (0x11052, "V"), + (0x11076, "X"), + (0x1107F, "V"), + (0x110BD, "X"), + (0x110BE, "V"), + (0x110C3, "X"), + (0x110D0, "V"), + (0x110E9, "X"), + (0x110F0, "V"), + (0x110FA, "X"), + (0x11100, "V"), + (0x11135, "X"), + (0x11136, "V"), + (0x11148, "X"), + (0x11150, "V"), + (0x11177, "X"), + (0x11180, "V"), + (0x111E0, "X"), + (0x111E1, "V"), + (0x111F5, "X"), + (0x11200, "V"), + (0x11212, "X"), + (0x11213, "V"), + (0x11242, "X"), + (0x11280, "V"), + (0x11287, "X"), + (0x11288, "V"), + (0x11289, "X"), + (0x1128A, "V"), + (0x1128E, "X"), + (0x1128F, "V"), + (0x1129E, "X"), + (0x1129F, "V"), + (0x112AA, "X"), + (0x112B0, "V"), + (0x112EB, "X"), + (0x112F0, "V"), + (0x112FA, "X"), + ] + + +def _seg_58() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x11300, "V"), + (0x11304, "X"), + (0x11305, "V"), + (0x1130D, "X"), + (0x1130F, "V"), + (0x11311, "X"), + (0x11313, "V"), + (0x11329, "X"), + (0x1132A, "V"), + (0x11331, "X"), + (0x11332, "V"), + (0x11334, "X"), + (0x11335, "V"), + (0x1133A, "X"), + (0x1133B, "V"), + (0x11345, "X"), + (0x11347, "V"), + (0x11349, "X"), + (0x1134B, "V"), + (0x1134E, "X"), + (0x11350, "V"), + (0x11351, "X"), + (0x11357, "V"), + (0x11358, "X"), + (0x1135D, "V"), + (0x11364, "X"), + (0x11366, "V"), + (0x1136D, "X"), + (0x11370, "V"), + (0x11375, "X"), + (0x11380, "V"), + (0x1138A, "X"), + (0x1138B, "V"), + (0x1138C, "X"), + (0x1138E, "V"), + (0x1138F, "X"), + (0x11390, "V"), + (0x113B6, "X"), + (0x113B7, "V"), + (0x113C1, "X"), + (0x113C2, "V"), + (0x113C3, "X"), + (0x113C5, "V"), + (0x113C6, "X"), + (0x113C7, "V"), + (0x113CB, "X"), + (0x113CC, "V"), + (0x113D6, "X"), + (0x113D7, "V"), + (0x113D9, "X"), + (0x113E1, "V"), + (0x113E3, "X"), + (0x11400, "V"), + (0x1145C, "X"), + (0x1145D, "V"), + (0x11462, "X"), + (0x11480, "V"), + (0x114C8, "X"), + (0x114D0, "V"), + (0x114DA, "X"), + (0x11580, "V"), + (0x115B6, "X"), + (0x115B8, "V"), + (0x115DE, "X"), + (0x11600, "V"), + (0x11645, "X"), + (0x11650, "V"), + (0x1165A, "X"), + (0x11660, "V"), + (0x1166D, "X"), + (0x11680, "V"), + (0x116BA, "X"), + (0x116C0, "V"), + (0x116CA, "X"), + (0x116D0, "V"), + (0x116E4, "X"), + (0x11700, "V"), + (0x1171B, "X"), + (0x1171D, "V"), + (0x1172C, "X"), + (0x11730, "V"), + (0x11747, "X"), + (0x11800, "V"), + (0x1183C, "X"), + (0x118A0, "M", "𑣀"), + (0x118A1, "M", "𑣁"), + (0x118A2, "M", "𑣂"), + (0x118A3, "M", "𑣃"), + (0x118A4, "M", "𑣄"), + (0x118A5, "M", "𑣅"), + (0x118A6, "M", "𑣆"), + (0x118A7, "M", "𑣇"), + (0x118A8, "M", "𑣈"), + (0x118A9, "M", "𑣉"), + (0x118AA, "M", "𑣊"), + (0x118AB, "M", "𑣋"), + (0x118AC, "M", "𑣌"), + (0x118AD, "M", "𑣍"), + (0x118AE, "M", "𑣎"), + (0x118AF, "M", "𑣏"), + ] + + +def _seg_59() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x118B0, "M", "𑣐"), + (0x118B1, "M", "𑣑"), + (0x118B2, "M", "𑣒"), + (0x118B3, "M", "𑣓"), + (0x118B4, "M", "𑣔"), + (0x118B5, "M", "𑣕"), + (0x118B6, "M", "𑣖"), + (0x118B7, "M", "𑣗"), + (0x118B8, "M", "𑣘"), + (0x118B9, "M", "𑣙"), + (0x118BA, "M", "𑣚"), + (0x118BB, "M", "𑣛"), + (0x118BC, "M", "𑣜"), + (0x118BD, "M", "𑣝"), + (0x118BE, "M", "𑣞"), + (0x118BF, "M", "𑣟"), + (0x118C0, "V"), + (0x118F3, "X"), + (0x118FF, "V"), + (0x11907, "X"), + (0x11909, "V"), + (0x1190A, "X"), + (0x1190C, "V"), + (0x11914, "X"), + (0x11915, "V"), + (0x11917, "X"), + (0x11918, "V"), + (0x11936, "X"), + (0x11937, "V"), + (0x11939, "X"), + (0x1193B, "V"), + (0x11947, "X"), + (0x11950, "V"), + (0x1195A, "X"), + (0x119A0, "V"), + (0x119A8, "X"), + (0x119AA, "V"), + (0x119D8, "X"), + (0x119DA, "V"), + (0x119E5, "X"), + (0x11A00, "V"), + (0x11A48, "X"), + (0x11A50, "V"), + (0x11AA3, "X"), + (0x11AB0, "V"), + (0x11AF9, "X"), + (0x11B00, "V"), + (0x11B0A, "X"), + (0x11BC0, "V"), + (0x11BE2, "X"), + (0x11BF0, "V"), + (0x11BFA, "X"), + (0x11C00, "V"), + (0x11C09, "X"), + (0x11C0A, "V"), + (0x11C37, "X"), + (0x11C38, "V"), + (0x11C46, "X"), + (0x11C50, "V"), + (0x11C6D, "X"), + (0x11C70, "V"), + (0x11C90, "X"), + (0x11C92, "V"), + (0x11CA8, "X"), + (0x11CA9, "V"), + (0x11CB7, "X"), + (0x11D00, "V"), + (0x11D07, "X"), + (0x11D08, "V"), + (0x11D0A, "X"), + (0x11D0B, "V"), + (0x11D37, "X"), + (0x11D3A, "V"), + (0x11D3B, "X"), + (0x11D3C, "V"), + (0x11D3E, "X"), + (0x11D3F, "V"), + (0x11D48, "X"), + (0x11D50, "V"), + (0x11D5A, "X"), + (0x11D60, "V"), + (0x11D66, "X"), + (0x11D67, "V"), + (0x11D69, "X"), + (0x11D6A, "V"), + (0x11D8F, "X"), + (0x11D90, "V"), + (0x11D92, "X"), + (0x11D93, "V"), + (0x11D99, "X"), + (0x11DA0, "V"), + (0x11DAA, "X"), + (0x11EE0, "V"), + (0x11EF9, "X"), + (0x11F00, "V"), + (0x11F11, "X"), + (0x11F12, "V"), + (0x11F3B, "X"), + (0x11F3E, "V"), + (0x11F5B, "X"), + ] + + +def _seg_60() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x11FB0, "V"), + (0x11FB1, "X"), + (0x11FC0, "V"), + (0x11FF2, "X"), + (0x11FFF, "V"), + (0x1239A, "X"), + (0x12400, "V"), + (0x1246F, "X"), + (0x12470, "V"), + (0x12475, "X"), + (0x12480, "V"), + (0x12544, "X"), + (0x12F90, "V"), + (0x12FF3, "X"), + (0x13000, "V"), + (0x13430, "X"), + (0x13440, "V"), + (0x13456, "X"), + (0x13460, "V"), + (0x143FB, "X"), + (0x14400, "V"), + (0x14647, "X"), + (0x16100, "V"), + (0x1613A, "X"), + (0x16800, "V"), + (0x16A39, "X"), + (0x16A40, "V"), + (0x16A5F, "X"), + (0x16A60, "V"), + (0x16A6A, "X"), + (0x16A6E, "V"), + (0x16ABF, "X"), + (0x16AC0, "V"), + (0x16ACA, "X"), + (0x16AD0, "V"), + (0x16AEE, "X"), + (0x16AF0, "V"), + (0x16AF6, "X"), + (0x16B00, "V"), + (0x16B46, "X"), + (0x16B50, "V"), + (0x16B5A, "X"), + (0x16B5B, "V"), + (0x16B62, "X"), + (0x16B63, "V"), + (0x16B78, "X"), + (0x16B7D, "V"), + (0x16B90, "X"), + (0x16D40, "V"), + (0x16D7A, "X"), + (0x16E40, "M", "𖹠"), + (0x16E41, "M", "𖹡"), + (0x16E42, "M", "𖹢"), + (0x16E43, "M", "𖹣"), + (0x16E44, "M", "𖹤"), + (0x16E45, "M", "𖹥"), + (0x16E46, "M", "𖹦"), + (0x16E47, "M", "𖹧"), + (0x16E48, "M", "𖹨"), + (0x16E49, "M", "𖹩"), + (0x16E4A, "M", "𖹪"), + (0x16E4B, "M", "𖹫"), + (0x16E4C, "M", "𖹬"), + (0x16E4D, "M", "𖹭"), + (0x16E4E, "M", "𖹮"), + (0x16E4F, "M", "𖹯"), + (0x16E50, "M", "𖹰"), + (0x16E51, "M", "𖹱"), + (0x16E52, "M", "𖹲"), + (0x16E53, "M", "𖹳"), + (0x16E54, "M", "𖹴"), + (0x16E55, "M", "𖹵"), + (0x16E56, "M", "𖹶"), + (0x16E57, "M", "𖹷"), + (0x16E58, "M", "𖹸"), + (0x16E59, "M", "𖹹"), + (0x16E5A, "M", "𖹺"), + (0x16E5B, "M", "𖹻"), + (0x16E5C, "M", "𖹼"), + (0x16E5D, "M", "𖹽"), + (0x16E5E, "M", "𖹾"), + (0x16E5F, "M", "𖹿"), + (0x16E60, "V"), + (0x16E9B, "X"), + (0x16F00, "V"), + (0x16F4B, "X"), + (0x16F4F, "V"), + (0x16F88, "X"), + (0x16F8F, "V"), + (0x16FA0, "X"), + (0x16FE0, "V"), + (0x16FE5, "X"), + (0x16FF0, "V"), + (0x16FF2, "X"), + (0x17000, "V"), + (0x187F8, "X"), + (0x18800, "V"), + (0x18CD6, "X"), + (0x18CFF, "V"), + (0x18D09, "X"), + ] + + +def _seg_61() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1AFF0, "V"), + (0x1AFF4, "X"), + (0x1AFF5, "V"), + (0x1AFFC, "X"), + (0x1AFFD, "V"), + (0x1AFFF, "X"), + (0x1B000, "V"), + (0x1B123, "X"), + (0x1B132, "V"), + (0x1B133, "X"), + (0x1B150, "V"), + (0x1B153, "X"), + (0x1B155, "V"), + (0x1B156, "X"), + (0x1B164, "V"), + (0x1B168, "X"), + (0x1B170, "V"), + (0x1B2FC, "X"), + (0x1BC00, "V"), + (0x1BC6B, "X"), + (0x1BC70, "V"), + (0x1BC7D, "X"), + (0x1BC80, "V"), + (0x1BC89, "X"), + (0x1BC90, "V"), + (0x1BC9A, "X"), + (0x1BC9C, "V"), + (0x1BCA0, "I"), + (0x1BCA4, "X"), + (0x1CC00, "V"), + (0x1CCD6, "M", "a"), + (0x1CCD7, "M", "b"), + (0x1CCD8, "M", "c"), + (0x1CCD9, "M", "d"), + (0x1CCDA, "M", "e"), + (0x1CCDB, "M", "f"), + (0x1CCDC, "M", "g"), + (0x1CCDD, "M", "h"), + (0x1CCDE, "M", "i"), + (0x1CCDF, "M", "j"), + (0x1CCE0, "M", "k"), + (0x1CCE1, "M", "l"), + (0x1CCE2, "M", "m"), + (0x1CCE3, "M", "n"), + (0x1CCE4, "M", "o"), + (0x1CCE5, "M", "p"), + (0x1CCE6, "M", "q"), + (0x1CCE7, "M", "r"), + (0x1CCE8, "M", "s"), + (0x1CCE9, "M", "t"), + (0x1CCEA, "M", "u"), + (0x1CCEB, "M", "v"), + (0x1CCEC, "M", "w"), + (0x1CCED, "M", "x"), + (0x1CCEE, "M", "y"), + (0x1CCEF, "M", "z"), + (0x1CCF0, "M", "0"), + (0x1CCF1, "M", "1"), + (0x1CCF2, "M", "2"), + (0x1CCF3, "M", "3"), + (0x1CCF4, "M", "4"), + (0x1CCF5, "M", "5"), + (0x1CCF6, "M", "6"), + (0x1CCF7, "M", "7"), + (0x1CCF8, "M", "8"), + (0x1CCF9, "M", "9"), + (0x1CCFA, "X"), + (0x1CD00, "V"), + (0x1CEB4, "X"), + (0x1CF00, "V"), + (0x1CF2E, "X"), + (0x1CF30, "V"), + (0x1CF47, "X"), + (0x1CF50, "V"), + (0x1CFC4, "X"), + (0x1D000, "V"), + (0x1D0F6, "X"), + (0x1D100, "V"), + (0x1D127, "X"), + (0x1D129, "V"), + (0x1D15E, "M", "𝅗𝅥"), + (0x1D15F, "M", "𝅘𝅥"), + (0x1D160, "M", "𝅘𝅥𝅮"), + (0x1D161, "M", "𝅘𝅥𝅯"), + (0x1D162, "M", "𝅘𝅥𝅰"), + (0x1D163, "M", "𝅘𝅥𝅱"), + (0x1D164, "M", "𝅘𝅥𝅲"), + (0x1D165, "V"), + (0x1D173, "I"), + (0x1D17B, "V"), + (0x1D1BB, "M", "𝆹𝅥"), + (0x1D1BC, "M", "𝆺𝅥"), + (0x1D1BD, "M", "𝆹𝅥𝅮"), + (0x1D1BE, "M", "𝆺𝅥𝅮"), + (0x1D1BF, "M", "𝆹𝅥𝅯"), + (0x1D1C0, "M", "𝆺𝅥𝅯"), + (0x1D1C1, "V"), + (0x1D1EB, "X"), + (0x1D200, "V"), + (0x1D246, "X"), + ] + + +def _seg_62() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D2C0, "V"), + (0x1D2D4, "X"), + (0x1D2E0, "V"), + (0x1D2F4, "X"), + (0x1D300, "V"), + (0x1D357, "X"), + (0x1D360, "V"), + (0x1D379, "X"), + (0x1D400, "M", "a"), + (0x1D401, "M", "b"), + (0x1D402, "M", "c"), + (0x1D403, "M", "d"), + (0x1D404, "M", "e"), + (0x1D405, "M", "f"), + (0x1D406, "M", "g"), + (0x1D407, "M", "h"), + (0x1D408, "M", "i"), + (0x1D409, "M", "j"), + (0x1D40A, "M", "k"), + (0x1D40B, "M", "l"), + (0x1D40C, "M", "m"), + (0x1D40D, "M", "n"), + (0x1D40E, "M", "o"), + (0x1D40F, "M", "p"), + (0x1D410, "M", "q"), + (0x1D411, "M", "r"), + (0x1D412, "M", "s"), + (0x1D413, "M", "t"), + (0x1D414, "M", "u"), + (0x1D415, "M", "v"), + (0x1D416, "M", "w"), + (0x1D417, "M", "x"), + (0x1D418, "M", "y"), + (0x1D419, "M", "z"), + (0x1D41A, "M", "a"), + (0x1D41B, "M", "b"), + (0x1D41C, "M", "c"), + (0x1D41D, "M", "d"), + (0x1D41E, "M", "e"), + (0x1D41F, "M", "f"), + (0x1D420, "M", "g"), + (0x1D421, "M", "h"), + (0x1D422, "M", "i"), + (0x1D423, "M", "j"), + (0x1D424, "M", "k"), + (0x1D425, "M", "l"), + (0x1D426, "M", "m"), + (0x1D427, "M", "n"), + (0x1D428, "M", "o"), + (0x1D429, "M", "p"), + (0x1D42A, "M", "q"), + (0x1D42B, "M", "r"), + (0x1D42C, "M", "s"), + (0x1D42D, "M", "t"), + (0x1D42E, "M", "u"), + (0x1D42F, "M", "v"), + (0x1D430, "M", "w"), + (0x1D431, "M", "x"), + (0x1D432, "M", "y"), + (0x1D433, "M", "z"), + (0x1D434, "M", "a"), + (0x1D435, "M", "b"), + (0x1D436, "M", "c"), + (0x1D437, "M", "d"), + (0x1D438, "M", "e"), + (0x1D439, "M", "f"), + (0x1D43A, "M", "g"), + (0x1D43B, "M", "h"), + (0x1D43C, "M", "i"), + (0x1D43D, "M", "j"), + (0x1D43E, "M", "k"), + (0x1D43F, "M", "l"), + (0x1D440, "M", "m"), + (0x1D441, "M", "n"), + (0x1D442, "M", "o"), + (0x1D443, "M", "p"), + (0x1D444, "M", "q"), + (0x1D445, "M", "r"), + (0x1D446, "M", "s"), + (0x1D447, "M", "t"), + (0x1D448, "M", "u"), + (0x1D449, "M", "v"), + (0x1D44A, "M", "w"), + (0x1D44B, "M", "x"), + (0x1D44C, "M", "y"), + (0x1D44D, "M", "z"), + (0x1D44E, "M", "a"), + (0x1D44F, "M", "b"), + (0x1D450, "M", "c"), + (0x1D451, "M", "d"), + (0x1D452, "M", "e"), + (0x1D453, "M", "f"), + (0x1D454, "M", "g"), + (0x1D455, "X"), + (0x1D456, "M", "i"), + (0x1D457, "M", "j"), + (0x1D458, "M", "k"), + (0x1D459, "M", "l"), + (0x1D45A, "M", "m"), + (0x1D45B, "M", "n"), + ] + + +def _seg_63() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D45C, "M", "o"), + (0x1D45D, "M", "p"), + (0x1D45E, "M", "q"), + (0x1D45F, "M", "r"), + (0x1D460, "M", "s"), + (0x1D461, "M", "t"), + (0x1D462, "M", "u"), + (0x1D463, "M", "v"), + (0x1D464, "M", "w"), + (0x1D465, "M", "x"), + (0x1D466, "M", "y"), + (0x1D467, "M", "z"), + (0x1D468, "M", "a"), + (0x1D469, "M", "b"), + (0x1D46A, "M", "c"), + (0x1D46B, "M", "d"), + (0x1D46C, "M", "e"), + (0x1D46D, "M", "f"), + (0x1D46E, "M", "g"), + (0x1D46F, "M", "h"), + (0x1D470, "M", "i"), + (0x1D471, "M", "j"), + (0x1D472, "M", "k"), + (0x1D473, "M", "l"), + (0x1D474, "M", "m"), + (0x1D475, "M", "n"), + (0x1D476, "M", "o"), + (0x1D477, "M", "p"), + (0x1D478, "M", "q"), + (0x1D479, "M", "r"), + (0x1D47A, "M", "s"), + (0x1D47B, "M", "t"), + (0x1D47C, "M", "u"), + (0x1D47D, "M", "v"), + (0x1D47E, "M", "w"), + (0x1D47F, "M", "x"), + (0x1D480, "M", "y"), + (0x1D481, "M", "z"), + (0x1D482, "M", "a"), + (0x1D483, "M", "b"), + (0x1D484, "M", "c"), + (0x1D485, "M", "d"), + (0x1D486, "M", "e"), + (0x1D487, "M", "f"), + (0x1D488, "M", "g"), + (0x1D489, "M", "h"), + (0x1D48A, "M", "i"), + (0x1D48B, "M", "j"), + (0x1D48C, "M", "k"), + (0x1D48D, "M", "l"), + (0x1D48E, "M", "m"), + (0x1D48F, "M", "n"), + (0x1D490, "M", "o"), + (0x1D491, "M", "p"), + (0x1D492, "M", "q"), + (0x1D493, "M", "r"), + (0x1D494, "M", "s"), + (0x1D495, "M", "t"), + (0x1D496, "M", "u"), + (0x1D497, "M", "v"), + (0x1D498, "M", "w"), + (0x1D499, "M", "x"), + (0x1D49A, "M", "y"), + (0x1D49B, "M", "z"), + (0x1D49C, "M", "a"), + (0x1D49D, "X"), + (0x1D49E, "M", "c"), + (0x1D49F, "M", "d"), + (0x1D4A0, "X"), + (0x1D4A2, "M", "g"), + (0x1D4A3, "X"), + (0x1D4A5, "M", "j"), + (0x1D4A6, "M", "k"), + (0x1D4A7, "X"), + (0x1D4A9, "M", "n"), + (0x1D4AA, "M", "o"), + (0x1D4AB, "M", "p"), + (0x1D4AC, "M", "q"), + (0x1D4AD, "X"), + (0x1D4AE, "M", "s"), + (0x1D4AF, "M", "t"), + (0x1D4B0, "M", "u"), + (0x1D4B1, "M", "v"), + (0x1D4B2, "M", "w"), + (0x1D4B3, "M", "x"), + (0x1D4B4, "M", "y"), + (0x1D4B5, "M", "z"), + (0x1D4B6, "M", "a"), + (0x1D4B7, "M", "b"), + (0x1D4B8, "M", "c"), + (0x1D4B9, "M", "d"), + (0x1D4BA, "X"), + (0x1D4BB, "M", "f"), + (0x1D4BC, "X"), + (0x1D4BD, "M", "h"), + (0x1D4BE, "M", "i"), + (0x1D4BF, "M", "j"), + (0x1D4C0, "M", "k"), + (0x1D4C1, "M", "l"), + (0x1D4C2, "M", "m"), + ] + + +def _seg_64() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D4C3, "M", "n"), + (0x1D4C4, "X"), + (0x1D4C5, "M", "p"), + (0x1D4C6, "M", "q"), + (0x1D4C7, "M", "r"), + (0x1D4C8, "M", "s"), + (0x1D4C9, "M", "t"), + (0x1D4CA, "M", "u"), + (0x1D4CB, "M", "v"), + (0x1D4CC, "M", "w"), + (0x1D4CD, "M", "x"), + (0x1D4CE, "M", "y"), + (0x1D4CF, "M", "z"), + (0x1D4D0, "M", "a"), + (0x1D4D1, "M", "b"), + (0x1D4D2, "M", "c"), + (0x1D4D3, "M", "d"), + (0x1D4D4, "M", "e"), + (0x1D4D5, "M", "f"), + (0x1D4D6, "M", "g"), + (0x1D4D7, "M", "h"), + (0x1D4D8, "M", "i"), + (0x1D4D9, "M", "j"), + (0x1D4DA, "M", "k"), + (0x1D4DB, "M", "l"), + (0x1D4DC, "M", "m"), + (0x1D4DD, "M", "n"), + (0x1D4DE, "M", "o"), + (0x1D4DF, "M", "p"), + (0x1D4E0, "M", "q"), + (0x1D4E1, "M", "r"), + (0x1D4E2, "M", "s"), + (0x1D4E3, "M", "t"), + (0x1D4E4, "M", "u"), + (0x1D4E5, "M", "v"), + (0x1D4E6, "M", "w"), + (0x1D4E7, "M", "x"), + (0x1D4E8, "M", "y"), + (0x1D4E9, "M", "z"), + (0x1D4EA, "M", "a"), + (0x1D4EB, "M", "b"), + (0x1D4EC, "M", "c"), + (0x1D4ED, "M", "d"), + (0x1D4EE, "M", "e"), + (0x1D4EF, "M", "f"), + (0x1D4F0, "M", "g"), + (0x1D4F1, "M", "h"), + (0x1D4F2, "M", "i"), + (0x1D4F3, "M", "j"), + (0x1D4F4, "M", "k"), + (0x1D4F5, "M", "l"), + (0x1D4F6, "M", "m"), + (0x1D4F7, "M", "n"), + (0x1D4F8, "M", "o"), + (0x1D4F9, "M", "p"), + (0x1D4FA, "M", "q"), + (0x1D4FB, "M", "r"), + (0x1D4FC, "M", "s"), + (0x1D4FD, "M", "t"), + (0x1D4FE, "M", "u"), + (0x1D4FF, "M", "v"), + (0x1D500, "M", "w"), + (0x1D501, "M", "x"), + (0x1D502, "M", "y"), + (0x1D503, "M", "z"), + (0x1D504, "M", "a"), + (0x1D505, "M", "b"), + (0x1D506, "X"), + (0x1D507, "M", "d"), + (0x1D508, "M", "e"), + (0x1D509, "M", "f"), + (0x1D50A, "M", "g"), + (0x1D50B, "X"), + (0x1D50D, "M", "j"), + (0x1D50E, "M", "k"), + (0x1D50F, "M", "l"), + (0x1D510, "M", "m"), + (0x1D511, "M", "n"), + (0x1D512, "M", "o"), + (0x1D513, "M", "p"), + (0x1D514, "M", "q"), + (0x1D515, "X"), + (0x1D516, "M", "s"), + (0x1D517, "M", "t"), + (0x1D518, "M", "u"), + (0x1D519, "M", "v"), + (0x1D51A, "M", "w"), + (0x1D51B, "M", "x"), + (0x1D51C, "M", "y"), + (0x1D51D, "X"), + (0x1D51E, "M", "a"), + (0x1D51F, "M", "b"), + (0x1D520, "M", "c"), + (0x1D521, "M", "d"), + (0x1D522, "M", "e"), + (0x1D523, "M", "f"), + (0x1D524, "M", "g"), + (0x1D525, "M", "h"), + (0x1D526, "M", "i"), + (0x1D527, "M", "j"), + ] + + +def _seg_65() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D528, "M", "k"), + (0x1D529, "M", "l"), + (0x1D52A, "M", "m"), + (0x1D52B, "M", "n"), + (0x1D52C, "M", "o"), + (0x1D52D, "M", "p"), + (0x1D52E, "M", "q"), + (0x1D52F, "M", "r"), + (0x1D530, "M", "s"), + (0x1D531, "M", "t"), + (0x1D532, "M", "u"), + (0x1D533, "M", "v"), + (0x1D534, "M", "w"), + (0x1D535, "M", "x"), + (0x1D536, "M", "y"), + (0x1D537, "M", "z"), + (0x1D538, "M", "a"), + (0x1D539, "M", "b"), + (0x1D53A, "X"), + (0x1D53B, "M", "d"), + (0x1D53C, "M", "e"), + (0x1D53D, "M", "f"), + (0x1D53E, "M", "g"), + (0x1D53F, "X"), + (0x1D540, "M", "i"), + (0x1D541, "M", "j"), + (0x1D542, "M", "k"), + (0x1D543, "M", "l"), + (0x1D544, "M", "m"), + (0x1D545, "X"), + (0x1D546, "M", "o"), + (0x1D547, "X"), + (0x1D54A, "M", "s"), + (0x1D54B, "M", "t"), + (0x1D54C, "M", "u"), + (0x1D54D, "M", "v"), + (0x1D54E, "M", "w"), + (0x1D54F, "M", "x"), + (0x1D550, "M", "y"), + (0x1D551, "X"), + (0x1D552, "M", "a"), + (0x1D553, "M", "b"), + (0x1D554, "M", "c"), + (0x1D555, "M", "d"), + (0x1D556, "M", "e"), + (0x1D557, "M", "f"), + (0x1D558, "M", "g"), + (0x1D559, "M", "h"), + (0x1D55A, "M", "i"), + (0x1D55B, "M", "j"), + (0x1D55C, "M", "k"), + (0x1D55D, "M", "l"), + (0x1D55E, "M", "m"), + (0x1D55F, "M", "n"), + (0x1D560, "M", "o"), + (0x1D561, "M", "p"), + (0x1D562, "M", "q"), + (0x1D563, "M", "r"), + (0x1D564, "M", "s"), + (0x1D565, "M", "t"), + (0x1D566, "M", "u"), + (0x1D567, "M", "v"), + (0x1D568, "M", "w"), + (0x1D569, "M", "x"), + (0x1D56A, "M", "y"), + (0x1D56B, "M", "z"), + (0x1D56C, "M", "a"), + (0x1D56D, "M", "b"), + (0x1D56E, "M", "c"), + (0x1D56F, "M", "d"), + (0x1D570, "M", "e"), + (0x1D571, "M", "f"), + (0x1D572, "M", "g"), + (0x1D573, "M", "h"), + (0x1D574, "M", "i"), + (0x1D575, "M", "j"), + (0x1D576, "M", "k"), + (0x1D577, "M", "l"), + (0x1D578, "M", "m"), + (0x1D579, "M", "n"), + (0x1D57A, "M", "o"), + (0x1D57B, "M", "p"), + (0x1D57C, "M", "q"), + (0x1D57D, "M", "r"), + (0x1D57E, "M", "s"), + (0x1D57F, "M", "t"), + (0x1D580, "M", "u"), + (0x1D581, "M", "v"), + (0x1D582, "M", "w"), + (0x1D583, "M", "x"), + (0x1D584, "M", "y"), + (0x1D585, "M", "z"), + (0x1D586, "M", "a"), + (0x1D587, "M", "b"), + (0x1D588, "M", "c"), + (0x1D589, "M", "d"), + (0x1D58A, "M", "e"), + (0x1D58B, "M", "f"), + (0x1D58C, "M", "g"), + (0x1D58D, "M", "h"), + ] + + +def _seg_66() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D58E, "M", "i"), + (0x1D58F, "M", "j"), + (0x1D590, "M", "k"), + (0x1D591, "M", "l"), + (0x1D592, "M", "m"), + (0x1D593, "M", "n"), + (0x1D594, "M", "o"), + (0x1D595, "M", "p"), + (0x1D596, "M", "q"), + (0x1D597, "M", "r"), + (0x1D598, "M", "s"), + (0x1D599, "M", "t"), + (0x1D59A, "M", "u"), + (0x1D59B, "M", "v"), + (0x1D59C, "M", "w"), + (0x1D59D, "M", "x"), + (0x1D59E, "M", "y"), + (0x1D59F, "M", "z"), + (0x1D5A0, "M", "a"), + (0x1D5A1, "M", "b"), + (0x1D5A2, "M", "c"), + (0x1D5A3, "M", "d"), + (0x1D5A4, "M", "e"), + (0x1D5A5, "M", "f"), + (0x1D5A6, "M", "g"), + (0x1D5A7, "M", "h"), + (0x1D5A8, "M", "i"), + (0x1D5A9, "M", "j"), + (0x1D5AA, "M", "k"), + (0x1D5AB, "M", "l"), + (0x1D5AC, "M", "m"), + (0x1D5AD, "M", "n"), + (0x1D5AE, "M", "o"), + (0x1D5AF, "M", "p"), + (0x1D5B0, "M", "q"), + (0x1D5B1, "M", "r"), + (0x1D5B2, "M", "s"), + (0x1D5B3, "M", "t"), + (0x1D5B4, "M", "u"), + (0x1D5B5, "M", "v"), + (0x1D5B6, "M", "w"), + (0x1D5B7, "M", "x"), + (0x1D5B8, "M", "y"), + (0x1D5B9, "M", "z"), + (0x1D5BA, "M", "a"), + (0x1D5BB, "M", "b"), + (0x1D5BC, "M", "c"), + (0x1D5BD, "M", "d"), + (0x1D5BE, "M", "e"), + (0x1D5BF, "M", "f"), + (0x1D5C0, "M", "g"), + (0x1D5C1, "M", "h"), + (0x1D5C2, "M", "i"), + (0x1D5C3, "M", "j"), + (0x1D5C4, "M", "k"), + (0x1D5C5, "M", "l"), + (0x1D5C6, "M", "m"), + (0x1D5C7, "M", "n"), + (0x1D5C8, "M", "o"), + (0x1D5C9, "M", "p"), + (0x1D5CA, "M", "q"), + (0x1D5CB, "M", "r"), + (0x1D5CC, "M", "s"), + (0x1D5CD, "M", "t"), + (0x1D5CE, "M", "u"), + (0x1D5CF, "M", "v"), + (0x1D5D0, "M", "w"), + (0x1D5D1, "M", "x"), + (0x1D5D2, "M", "y"), + (0x1D5D3, "M", "z"), + (0x1D5D4, "M", "a"), + (0x1D5D5, "M", "b"), + (0x1D5D6, "M", "c"), + (0x1D5D7, "M", "d"), + (0x1D5D8, "M", "e"), + (0x1D5D9, "M", "f"), + (0x1D5DA, "M", "g"), + (0x1D5DB, "M", "h"), + (0x1D5DC, "M", "i"), + (0x1D5DD, "M", "j"), + (0x1D5DE, "M", "k"), + (0x1D5DF, "M", "l"), + (0x1D5E0, "M", "m"), + (0x1D5E1, "M", "n"), + (0x1D5E2, "M", "o"), + (0x1D5E3, "M", "p"), + (0x1D5E4, "M", "q"), + (0x1D5E5, "M", "r"), + (0x1D5E6, "M", "s"), + (0x1D5E7, "M", "t"), + (0x1D5E8, "M", "u"), + (0x1D5E9, "M", "v"), + (0x1D5EA, "M", "w"), + (0x1D5EB, "M", "x"), + (0x1D5EC, "M", "y"), + (0x1D5ED, "M", "z"), + (0x1D5EE, "M", "a"), + (0x1D5EF, "M", "b"), + (0x1D5F0, "M", "c"), + (0x1D5F1, "M", "d"), + ] + + +def _seg_67() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D5F2, "M", "e"), + (0x1D5F3, "M", "f"), + (0x1D5F4, "M", "g"), + (0x1D5F5, "M", "h"), + (0x1D5F6, "M", "i"), + (0x1D5F7, "M", "j"), + (0x1D5F8, "M", "k"), + (0x1D5F9, "M", "l"), + (0x1D5FA, "M", "m"), + (0x1D5FB, "M", "n"), + (0x1D5FC, "M", "o"), + (0x1D5FD, "M", "p"), + (0x1D5FE, "M", "q"), + (0x1D5FF, "M", "r"), + (0x1D600, "M", "s"), + (0x1D601, "M", "t"), + (0x1D602, "M", "u"), + (0x1D603, "M", "v"), + (0x1D604, "M", "w"), + (0x1D605, "M", "x"), + (0x1D606, "M", "y"), + (0x1D607, "M", "z"), + (0x1D608, "M", "a"), + (0x1D609, "M", "b"), + (0x1D60A, "M", "c"), + (0x1D60B, "M", "d"), + (0x1D60C, "M", "e"), + (0x1D60D, "M", "f"), + (0x1D60E, "M", "g"), + (0x1D60F, "M", "h"), + (0x1D610, "M", "i"), + (0x1D611, "M", "j"), + (0x1D612, "M", "k"), + (0x1D613, "M", "l"), + (0x1D614, "M", "m"), + (0x1D615, "M", "n"), + (0x1D616, "M", "o"), + (0x1D617, "M", "p"), + (0x1D618, "M", "q"), + (0x1D619, "M", "r"), + (0x1D61A, "M", "s"), + (0x1D61B, "M", "t"), + (0x1D61C, "M", "u"), + (0x1D61D, "M", "v"), + (0x1D61E, "M", "w"), + (0x1D61F, "M", "x"), + (0x1D620, "M", "y"), + (0x1D621, "M", "z"), + (0x1D622, "M", "a"), + (0x1D623, "M", "b"), + (0x1D624, "M", "c"), + (0x1D625, "M", "d"), + (0x1D626, "M", "e"), + (0x1D627, "M", "f"), + (0x1D628, "M", "g"), + (0x1D629, "M", "h"), + (0x1D62A, "M", "i"), + (0x1D62B, "M", "j"), + (0x1D62C, "M", "k"), + (0x1D62D, "M", "l"), + (0x1D62E, "M", "m"), + (0x1D62F, "M", "n"), + (0x1D630, "M", "o"), + (0x1D631, "M", "p"), + (0x1D632, "M", "q"), + (0x1D633, "M", "r"), + (0x1D634, "M", "s"), + (0x1D635, "M", "t"), + (0x1D636, "M", "u"), + (0x1D637, "M", "v"), + (0x1D638, "M", "w"), + (0x1D639, "M", "x"), + (0x1D63A, "M", "y"), + (0x1D63B, "M", "z"), + (0x1D63C, "M", "a"), + (0x1D63D, "M", "b"), + (0x1D63E, "M", "c"), + (0x1D63F, "M", "d"), + (0x1D640, "M", "e"), + (0x1D641, "M", "f"), + (0x1D642, "M", "g"), + (0x1D643, "M", "h"), + (0x1D644, "M", "i"), + (0x1D645, "M", "j"), + (0x1D646, "M", "k"), + (0x1D647, "M", "l"), + (0x1D648, "M", "m"), + (0x1D649, "M", "n"), + (0x1D64A, "M", "o"), + (0x1D64B, "M", "p"), + (0x1D64C, "M", "q"), + (0x1D64D, "M", "r"), + (0x1D64E, "M", "s"), + (0x1D64F, "M", "t"), + (0x1D650, "M", "u"), + (0x1D651, "M", "v"), + (0x1D652, "M", "w"), + (0x1D653, "M", "x"), + (0x1D654, "M", "y"), + (0x1D655, "M", "z"), + ] + + +def _seg_68() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D656, "M", "a"), + (0x1D657, "M", "b"), + (0x1D658, "M", "c"), + (0x1D659, "M", "d"), + (0x1D65A, "M", "e"), + (0x1D65B, "M", "f"), + (0x1D65C, "M", "g"), + (0x1D65D, "M", "h"), + (0x1D65E, "M", "i"), + (0x1D65F, "M", "j"), + (0x1D660, "M", "k"), + (0x1D661, "M", "l"), + (0x1D662, "M", "m"), + (0x1D663, "M", "n"), + (0x1D664, "M", "o"), + (0x1D665, "M", "p"), + (0x1D666, "M", "q"), + (0x1D667, "M", "r"), + (0x1D668, "M", "s"), + (0x1D669, "M", "t"), + (0x1D66A, "M", "u"), + (0x1D66B, "M", "v"), + (0x1D66C, "M", "w"), + (0x1D66D, "M", "x"), + (0x1D66E, "M", "y"), + (0x1D66F, "M", "z"), + (0x1D670, "M", "a"), + (0x1D671, "M", "b"), + (0x1D672, "M", "c"), + (0x1D673, "M", "d"), + (0x1D674, "M", "e"), + (0x1D675, "M", "f"), + (0x1D676, "M", "g"), + (0x1D677, "M", "h"), + (0x1D678, "M", "i"), + (0x1D679, "M", "j"), + (0x1D67A, "M", "k"), + (0x1D67B, "M", "l"), + (0x1D67C, "M", "m"), + (0x1D67D, "M", "n"), + (0x1D67E, "M", "o"), + (0x1D67F, "M", "p"), + (0x1D680, "M", "q"), + (0x1D681, "M", "r"), + (0x1D682, "M", "s"), + (0x1D683, "M", "t"), + (0x1D684, "M", "u"), + (0x1D685, "M", "v"), + (0x1D686, "M", "w"), + (0x1D687, "M", "x"), + (0x1D688, "M", "y"), + (0x1D689, "M", "z"), + (0x1D68A, "M", "a"), + (0x1D68B, "M", "b"), + (0x1D68C, "M", "c"), + (0x1D68D, "M", "d"), + (0x1D68E, "M", "e"), + (0x1D68F, "M", "f"), + (0x1D690, "M", "g"), + (0x1D691, "M", "h"), + (0x1D692, "M", "i"), + (0x1D693, "M", "j"), + (0x1D694, "M", "k"), + (0x1D695, "M", "l"), + (0x1D696, "M", "m"), + (0x1D697, "M", "n"), + (0x1D698, "M", "o"), + (0x1D699, "M", "p"), + (0x1D69A, "M", "q"), + (0x1D69B, "M", "r"), + (0x1D69C, "M", "s"), + (0x1D69D, "M", "t"), + (0x1D69E, "M", "u"), + (0x1D69F, "M", "v"), + (0x1D6A0, "M", "w"), + (0x1D6A1, "M", "x"), + (0x1D6A2, "M", "y"), + (0x1D6A3, "M", "z"), + (0x1D6A4, "M", "ı"), + (0x1D6A5, "M", "ȷ"), + (0x1D6A6, "X"), + (0x1D6A8, "M", "α"), + (0x1D6A9, "M", "β"), + (0x1D6AA, "M", "γ"), + (0x1D6AB, "M", "δ"), + (0x1D6AC, "M", "ε"), + (0x1D6AD, "M", "ζ"), + (0x1D6AE, "M", "η"), + (0x1D6AF, "M", "θ"), + (0x1D6B0, "M", "ι"), + (0x1D6B1, "M", "κ"), + (0x1D6B2, "M", "λ"), + (0x1D6B3, "M", "μ"), + (0x1D6B4, "M", "ν"), + (0x1D6B5, "M", "ξ"), + (0x1D6B6, "M", "ο"), + (0x1D6B7, "M", "π"), + (0x1D6B8, "M", "ρ"), + (0x1D6B9, "M", "θ"), + (0x1D6BA, "M", "σ"), + ] + + +def _seg_69() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D6BB, "M", "τ"), + (0x1D6BC, "M", "υ"), + (0x1D6BD, "M", "φ"), + (0x1D6BE, "M", "χ"), + (0x1D6BF, "M", "ψ"), + (0x1D6C0, "M", "ω"), + (0x1D6C1, "M", "∇"), + (0x1D6C2, "M", "α"), + (0x1D6C3, "M", "β"), + (0x1D6C4, "M", "γ"), + (0x1D6C5, "M", "δ"), + (0x1D6C6, "M", "ε"), + (0x1D6C7, "M", "ζ"), + (0x1D6C8, "M", "η"), + (0x1D6C9, "M", "θ"), + (0x1D6CA, "M", "ι"), + (0x1D6CB, "M", "κ"), + (0x1D6CC, "M", "λ"), + (0x1D6CD, "M", "μ"), + (0x1D6CE, "M", "ν"), + (0x1D6CF, "M", "ξ"), + (0x1D6D0, "M", "ο"), + (0x1D6D1, "M", "π"), + (0x1D6D2, "M", "ρ"), + (0x1D6D3, "M", "σ"), + (0x1D6D5, "M", "τ"), + (0x1D6D6, "M", "υ"), + (0x1D6D7, "M", "φ"), + (0x1D6D8, "M", "χ"), + (0x1D6D9, "M", "ψ"), + (0x1D6DA, "M", "ω"), + (0x1D6DB, "M", "∂"), + (0x1D6DC, "M", "ε"), + (0x1D6DD, "M", "θ"), + (0x1D6DE, "M", "κ"), + (0x1D6DF, "M", "φ"), + (0x1D6E0, "M", "ρ"), + (0x1D6E1, "M", "π"), + (0x1D6E2, "M", "α"), + (0x1D6E3, "M", "β"), + (0x1D6E4, "M", "γ"), + (0x1D6E5, "M", "δ"), + (0x1D6E6, "M", "ε"), + (0x1D6E7, "M", "ζ"), + (0x1D6E8, "M", "η"), + (0x1D6E9, "M", "θ"), + (0x1D6EA, "M", "ι"), + (0x1D6EB, "M", "κ"), + (0x1D6EC, "M", "λ"), + (0x1D6ED, "M", "μ"), + (0x1D6EE, "M", "ν"), + (0x1D6EF, "M", "ξ"), + (0x1D6F0, "M", "ο"), + (0x1D6F1, "M", "π"), + (0x1D6F2, "M", "ρ"), + (0x1D6F3, "M", "θ"), + (0x1D6F4, "M", "σ"), + (0x1D6F5, "M", "τ"), + (0x1D6F6, "M", "υ"), + (0x1D6F7, "M", "φ"), + (0x1D6F8, "M", "χ"), + (0x1D6F9, "M", "ψ"), + (0x1D6FA, "M", "ω"), + (0x1D6FB, "M", "∇"), + (0x1D6FC, "M", "α"), + (0x1D6FD, "M", "β"), + (0x1D6FE, "M", "γ"), + (0x1D6FF, "M", "δ"), + (0x1D700, "M", "ε"), + (0x1D701, "M", "ζ"), + (0x1D702, "M", "η"), + (0x1D703, "M", "θ"), + (0x1D704, "M", "ι"), + (0x1D705, "M", "κ"), + (0x1D706, "M", "λ"), + (0x1D707, "M", "μ"), + (0x1D708, "M", "ν"), + (0x1D709, "M", "ξ"), + (0x1D70A, "M", "ο"), + (0x1D70B, "M", "π"), + (0x1D70C, "M", "ρ"), + (0x1D70D, "M", "σ"), + (0x1D70F, "M", "τ"), + (0x1D710, "M", "υ"), + (0x1D711, "M", "φ"), + (0x1D712, "M", "χ"), + (0x1D713, "M", "ψ"), + (0x1D714, "M", "ω"), + (0x1D715, "M", "∂"), + (0x1D716, "M", "ε"), + (0x1D717, "M", "θ"), + (0x1D718, "M", "κ"), + (0x1D719, "M", "φ"), + (0x1D71A, "M", "ρ"), + (0x1D71B, "M", "π"), + (0x1D71C, "M", "α"), + (0x1D71D, "M", "β"), + (0x1D71E, "M", "γ"), + (0x1D71F, "M", "δ"), + (0x1D720, "M", "ε"), + ] + + +def _seg_70() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D721, "M", "ζ"), + (0x1D722, "M", "η"), + (0x1D723, "M", "θ"), + (0x1D724, "M", "ι"), + (0x1D725, "M", "κ"), + (0x1D726, "M", "λ"), + (0x1D727, "M", "μ"), + (0x1D728, "M", "ν"), + (0x1D729, "M", "ξ"), + (0x1D72A, "M", "ο"), + (0x1D72B, "M", "π"), + (0x1D72C, "M", "ρ"), + (0x1D72D, "M", "θ"), + (0x1D72E, "M", "σ"), + (0x1D72F, "M", "τ"), + (0x1D730, "M", "υ"), + (0x1D731, "M", "φ"), + (0x1D732, "M", "χ"), + (0x1D733, "M", "ψ"), + (0x1D734, "M", "ω"), + (0x1D735, "M", "∇"), + (0x1D736, "M", "α"), + (0x1D737, "M", "β"), + (0x1D738, "M", "γ"), + (0x1D739, "M", "δ"), + (0x1D73A, "M", "ε"), + (0x1D73B, "M", "ζ"), + (0x1D73C, "M", "η"), + (0x1D73D, "M", "θ"), + (0x1D73E, "M", "ι"), + (0x1D73F, "M", "κ"), + (0x1D740, "M", "λ"), + (0x1D741, "M", "μ"), + (0x1D742, "M", "ν"), + (0x1D743, "M", "ξ"), + (0x1D744, "M", "ο"), + (0x1D745, "M", "π"), + (0x1D746, "M", "ρ"), + (0x1D747, "M", "σ"), + (0x1D749, "M", "τ"), + (0x1D74A, "M", "υ"), + (0x1D74B, "M", "φ"), + (0x1D74C, "M", "χ"), + (0x1D74D, "M", "ψ"), + (0x1D74E, "M", "ω"), + (0x1D74F, "M", "∂"), + (0x1D750, "M", "ε"), + (0x1D751, "M", "θ"), + (0x1D752, "M", "κ"), + (0x1D753, "M", "φ"), + (0x1D754, "M", "ρ"), + (0x1D755, "M", "π"), + (0x1D756, "M", "α"), + (0x1D757, "M", "β"), + (0x1D758, "M", "γ"), + (0x1D759, "M", "δ"), + (0x1D75A, "M", "ε"), + (0x1D75B, "M", "ζ"), + (0x1D75C, "M", "η"), + (0x1D75D, "M", "θ"), + (0x1D75E, "M", "ι"), + (0x1D75F, "M", "κ"), + (0x1D760, "M", "λ"), + (0x1D761, "M", "μ"), + (0x1D762, "M", "ν"), + (0x1D763, "M", "ξ"), + (0x1D764, "M", "ο"), + (0x1D765, "M", "π"), + (0x1D766, "M", "ρ"), + (0x1D767, "M", "θ"), + (0x1D768, "M", "σ"), + (0x1D769, "M", "τ"), + (0x1D76A, "M", "υ"), + (0x1D76B, "M", "φ"), + (0x1D76C, "M", "χ"), + (0x1D76D, "M", "ψ"), + (0x1D76E, "M", "ω"), + (0x1D76F, "M", "∇"), + (0x1D770, "M", "α"), + (0x1D771, "M", "β"), + (0x1D772, "M", "γ"), + (0x1D773, "M", "δ"), + (0x1D774, "M", "ε"), + (0x1D775, "M", "ζ"), + (0x1D776, "M", "η"), + (0x1D777, "M", "θ"), + (0x1D778, "M", "ι"), + (0x1D779, "M", "κ"), + (0x1D77A, "M", "λ"), + (0x1D77B, "M", "μ"), + (0x1D77C, "M", "ν"), + (0x1D77D, "M", "ξ"), + (0x1D77E, "M", "ο"), + (0x1D77F, "M", "π"), + (0x1D780, "M", "ρ"), + (0x1D781, "M", "σ"), + (0x1D783, "M", "τ"), + (0x1D784, "M", "υ"), + (0x1D785, "M", "φ"), + (0x1D786, "M", "χ"), + ] + + +def _seg_71() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D787, "M", "ψ"), + (0x1D788, "M", "ω"), + (0x1D789, "M", "∂"), + (0x1D78A, "M", "ε"), + (0x1D78B, "M", "θ"), + (0x1D78C, "M", "κ"), + (0x1D78D, "M", "φ"), + (0x1D78E, "M", "ρ"), + (0x1D78F, "M", "π"), + (0x1D790, "M", "α"), + (0x1D791, "M", "β"), + (0x1D792, "M", "γ"), + (0x1D793, "M", "δ"), + (0x1D794, "M", "ε"), + (0x1D795, "M", "ζ"), + (0x1D796, "M", "η"), + (0x1D797, "M", "θ"), + (0x1D798, "M", "ι"), + (0x1D799, "M", "κ"), + (0x1D79A, "M", "λ"), + (0x1D79B, "M", "μ"), + (0x1D79C, "M", "ν"), + (0x1D79D, "M", "ξ"), + (0x1D79E, "M", "ο"), + (0x1D79F, "M", "π"), + (0x1D7A0, "M", "ρ"), + (0x1D7A1, "M", "θ"), + (0x1D7A2, "M", "σ"), + (0x1D7A3, "M", "τ"), + (0x1D7A4, "M", "υ"), + (0x1D7A5, "M", "φ"), + (0x1D7A6, "M", "χ"), + (0x1D7A7, "M", "ψ"), + (0x1D7A8, "M", "ω"), + (0x1D7A9, "M", "∇"), + (0x1D7AA, "M", "α"), + (0x1D7AB, "M", "β"), + (0x1D7AC, "M", "γ"), + (0x1D7AD, "M", "δ"), + (0x1D7AE, "M", "ε"), + (0x1D7AF, "M", "ζ"), + (0x1D7B0, "M", "η"), + (0x1D7B1, "M", "θ"), + (0x1D7B2, "M", "ι"), + (0x1D7B3, "M", "κ"), + (0x1D7B4, "M", "λ"), + (0x1D7B5, "M", "μ"), + (0x1D7B6, "M", "ν"), + (0x1D7B7, "M", "ξ"), + (0x1D7B8, "M", "ο"), + (0x1D7B9, "M", "π"), + (0x1D7BA, "M", "ρ"), + (0x1D7BB, "M", "σ"), + (0x1D7BD, "M", "τ"), + (0x1D7BE, "M", "υ"), + (0x1D7BF, "M", "φ"), + (0x1D7C0, "M", "χ"), + (0x1D7C1, "M", "ψ"), + (0x1D7C2, "M", "ω"), + (0x1D7C3, "M", "∂"), + (0x1D7C4, "M", "ε"), + (0x1D7C5, "M", "θ"), + (0x1D7C6, "M", "κ"), + (0x1D7C7, "M", "φ"), + (0x1D7C8, "M", "ρ"), + (0x1D7C9, "M", "π"), + (0x1D7CA, "M", "ϝ"), + (0x1D7CC, "X"), + (0x1D7CE, "M", "0"), + (0x1D7CF, "M", "1"), + (0x1D7D0, "M", "2"), + (0x1D7D1, "M", "3"), + (0x1D7D2, "M", "4"), + (0x1D7D3, "M", "5"), + (0x1D7D4, "M", "6"), + (0x1D7D5, "M", "7"), + (0x1D7D6, "M", "8"), + (0x1D7D7, "M", "9"), + (0x1D7D8, "M", "0"), + (0x1D7D9, "M", "1"), + (0x1D7DA, "M", "2"), + (0x1D7DB, "M", "3"), + (0x1D7DC, "M", "4"), + (0x1D7DD, "M", "5"), + (0x1D7DE, "M", "6"), + (0x1D7DF, "M", "7"), + (0x1D7E0, "M", "8"), + (0x1D7E1, "M", "9"), + (0x1D7E2, "M", "0"), + (0x1D7E3, "M", "1"), + (0x1D7E4, "M", "2"), + (0x1D7E5, "M", "3"), + (0x1D7E6, "M", "4"), + (0x1D7E7, "M", "5"), + (0x1D7E8, "M", "6"), + (0x1D7E9, "M", "7"), + (0x1D7EA, "M", "8"), + (0x1D7EB, "M", "9"), + (0x1D7EC, "M", "0"), + (0x1D7ED, "M", "1"), + ] + + +def _seg_72() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1D7EE, "M", "2"), + (0x1D7EF, "M", "3"), + (0x1D7F0, "M", "4"), + (0x1D7F1, "M", "5"), + (0x1D7F2, "M", "6"), + (0x1D7F3, "M", "7"), + (0x1D7F4, "M", "8"), + (0x1D7F5, "M", "9"), + (0x1D7F6, "M", "0"), + (0x1D7F7, "M", "1"), + (0x1D7F8, "M", "2"), + (0x1D7F9, "M", "3"), + (0x1D7FA, "M", "4"), + (0x1D7FB, "M", "5"), + (0x1D7FC, "M", "6"), + (0x1D7FD, "M", "7"), + (0x1D7FE, "M", "8"), + (0x1D7FF, "M", "9"), + (0x1D800, "V"), + (0x1DA8C, "X"), + (0x1DA9B, "V"), + (0x1DAA0, "X"), + (0x1DAA1, "V"), + (0x1DAB0, "X"), + (0x1DF00, "V"), + (0x1DF1F, "X"), + (0x1DF25, "V"), + (0x1DF2B, "X"), + (0x1E000, "V"), + (0x1E007, "X"), + (0x1E008, "V"), + (0x1E019, "X"), + (0x1E01B, "V"), + (0x1E022, "X"), + (0x1E023, "V"), + (0x1E025, "X"), + (0x1E026, "V"), + (0x1E02B, "X"), + (0x1E030, "M", "а"), + (0x1E031, "M", "б"), + (0x1E032, "M", "в"), + (0x1E033, "M", "г"), + (0x1E034, "M", "д"), + (0x1E035, "M", "е"), + (0x1E036, "M", "ж"), + (0x1E037, "M", "з"), + (0x1E038, "M", "и"), + (0x1E039, "M", "к"), + (0x1E03A, "M", "л"), + (0x1E03B, "M", "м"), + (0x1E03C, "M", "о"), + (0x1E03D, "M", "п"), + (0x1E03E, "M", "р"), + (0x1E03F, "M", "с"), + (0x1E040, "M", "т"), + (0x1E041, "M", "у"), + (0x1E042, "M", "ф"), + (0x1E043, "M", "х"), + (0x1E044, "M", "ц"), + (0x1E045, "M", "ч"), + (0x1E046, "M", "ш"), + (0x1E047, "M", "ы"), + (0x1E048, "M", "э"), + (0x1E049, "M", "ю"), + (0x1E04A, "M", "ꚉ"), + (0x1E04B, "M", "ә"), + (0x1E04C, "M", "і"), + (0x1E04D, "M", "ј"), + (0x1E04E, "M", "ө"), + (0x1E04F, "M", "ү"), + (0x1E050, "M", "ӏ"), + (0x1E051, "M", "а"), + (0x1E052, "M", "б"), + (0x1E053, "M", "в"), + (0x1E054, "M", "г"), + (0x1E055, "M", "д"), + (0x1E056, "M", "е"), + (0x1E057, "M", "ж"), + (0x1E058, "M", "з"), + (0x1E059, "M", "и"), + (0x1E05A, "M", "к"), + (0x1E05B, "M", "л"), + (0x1E05C, "M", "о"), + (0x1E05D, "M", "п"), + (0x1E05E, "M", "с"), + (0x1E05F, "M", "у"), + (0x1E060, "M", "ф"), + (0x1E061, "M", "х"), + (0x1E062, "M", "ц"), + (0x1E063, "M", "ч"), + (0x1E064, "M", "ш"), + (0x1E065, "M", "ъ"), + (0x1E066, "M", "ы"), + (0x1E067, "M", "ґ"), + (0x1E068, "M", "і"), + (0x1E069, "M", "ѕ"), + (0x1E06A, "M", "џ"), + (0x1E06B, "M", "ҫ"), + (0x1E06C, "M", "ꙑ"), + (0x1E06D, "M", "ұ"), + ] + + +def _seg_73() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1E06E, "X"), + (0x1E08F, "V"), + (0x1E090, "X"), + (0x1E100, "V"), + (0x1E12D, "X"), + (0x1E130, "V"), + (0x1E13E, "X"), + (0x1E140, "V"), + (0x1E14A, "X"), + (0x1E14E, "V"), + (0x1E150, "X"), + (0x1E290, "V"), + (0x1E2AF, "X"), + (0x1E2C0, "V"), + (0x1E2FA, "X"), + (0x1E2FF, "V"), + (0x1E300, "X"), + (0x1E4D0, "V"), + (0x1E4FA, "X"), + (0x1E5D0, "V"), + (0x1E5FB, "X"), + (0x1E5FF, "V"), + (0x1E600, "X"), + (0x1E7E0, "V"), + (0x1E7E7, "X"), + (0x1E7E8, "V"), + (0x1E7EC, "X"), + (0x1E7ED, "V"), + (0x1E7EF, "X"), + (0x1E7F0, "V"), + (0x1E7FF, "X"), + (0x1E800, "V"), + (0x1E8C5, "X"), + (0x1E8C7, "V"), + (0x1E8D7, "X"), + (0x1E900, "M", "𞤢"), + (0x1E901, "M", "𞤣"), + (0x1E902, "M", "𞤤"), + (0x1E903, "M", "𞤥"), + (0x1E904, "M", "𞤦"), + (0x1E905, "M", "𞤧"), + (0x1E906, "M", "𞤨"), + (0x1E907, "M", "𞤩"), + (0x1E908, "M", "𞤪"), + (0x1E909, "M", "𞤫"), + (0x1E90A, "M", "𞤬"), + (0x1E90B, "M", "𞤭"), + (0x1E90C, "M", "𞤮"), + (0x1E90D, "M", "𞤯"), + (0x1E90E, "M", "𞤰"), + (0x1E90F, "M", "𞤱"), + (0x1E910, "M", "𞤲"), + (0x1E911, "M", "𞤳"), + (0x1E912, "M", "𞤴"), + (0x1E913, "M", "𞤵"), + (0x1E914, "M", "𞤶"), + (0x1E915, "M", "𞤷"), + (0x1E916, "M", "𞤸"), + (0x1E917, "M", "𞤹"), + (0x1E918, "M", "𞤺"), + (0x1E919, "M", "𞤻"), + (0x1E91A, "M", "𞤼"), + (0x1E91B, "M", "𞤽"), + (0x1E91C, "M", "𞤾"), + (0x1E91D, "M", "𞤿"), + (0x1E91E, "M", "𞥀"), + (0x1E91F, "M", "𞥁"), + (0x1E920, "M", "𞥂"), + (0x1E921, "M", "𞥃"), + (0x1E922, "V"), + (0x1E94C, "X"), + (0x1E950, "V"), + (0x1E95A, "X"), + (0x1E95E, "V"), + (0x1E960, "X"), + (0x1EC71, "V"), + (0x1ECB5, "X"), + (0x1ED01, "V"), + (0x1ED3E, "X"), + (0x1EE00, "M", "ا"), + (0x1EE01, "M", "ب"), + (0x1EE02, "M", "ج"), + (0x1EE03, "M", "د"), + (0x1EE04, "X"), + (0x1EE05, "M", "و"), + (0x1EE06, "M", "ز"), + (0x1EE07, "M", "ح"), + (0x1EE08, "M", "ط"), + (0x1EE09, "M", "ي"), + (0x1EE0A, "M", "ك"), + (0x1EE0B, "M", "ل"), + (0x1EE0C, "M", "م"), + (0x1EE0D, "M", "ن"), + (0x1EE0E, "M", "س"), + (0x1EE0F, "M", "ع"), + (0x1EE10, "M", "ف"), + (0x1EE11, "M", "ص"), + (0x1EE12, "M", "ق"), + (0x1EE13, "M", "ر"), + (0x1EE14, "M", "ش"), + ] + + +def _seg_74() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1EE15, "M", "ت"), + (0x1EE16, "M", "ث"), + (0x1EE17, "M", "خ"), + (0x1EE18, "M", "ذ"), + (0x1EE19, "M", "ض"), + (0x1EE1A, "M", "ظ"), + (0x1EE1B, "M", "غ"), + (0x1EE1C, "M", "ٮ"), + (0x1EE1D, "M", "ں"), + (0x1EE1E, "M", "ڡ"), + (0x1EE1F, "M", "ٯ"), + (0x1EE20, "X"), + (0x1EE21, "M", "ب"), + (0x1EE22, "M", "ج"), + (0x1EE23, "X"), + (0x1EE24, "M", "ه"), + (0x1EE25, "X"), + (0x1EE27, "M", "ح"), + (0x1EE28, "X"), + (0x1EE29, "M", "ي"), + (0x1EE2A, "M", "ك"), + (0x1EE2B, "M", "ل"), + (0x1EE2C, "M", "م"), + (0x1EE2D, "M", "ن"), + (0x1EE2E, "M", "س"), + (0x1EE2F, "M", "ع"), + (0x1EE30, "M", "ف"), + (0x1EE31, "M", "ص"), + (0x1EE32, "M", "ق"), + (0x1EE33, "X"), + (0x1EE34, "M", "ش"), + (0x1EE35, "M", "ت"), + (0x1EE36, "M", "ث"), + (0x1EE37, "M", "خ"), + (0x1EE38, "X"), + (0x1EE39, "M", "ض"), + (0x1EE3A, "X"), + (0x1EE3B, "M", "غ"), + (0x1EE3C, "X"), + (0x1EE42, "M", "ج"), + (0x1EE43, "X"), + (0x1EE47, "M", "ح"), + (0x1EE48, "X"), + (0x1EE49, "M", "ي"), + (0x1EE4A, "X"), + (0x1EE4B, "M", "ل"), + (0x1EE4C, "X"), + (0x1EE4D, "M", "ن"), + (0x1EE4E, "M", "س"), + (0x1EE4F, "M", "ع"), + (0x1EE50, "X"), + (0x1EE51, "M", "ص"), + (0x1EE52, "M", "ق"), + (0x1EE53, "X"), + (0x1EE54, "M", "ش"), + (0x1EE55, "X"), + (0x1EE57, "M", "خ"), + (0x1EE58, "X"), + (0x1EE59, "M", "ض"), + (0x1EE5A, "X"), + (0x1EE5B, "M", "غ"), + (0x1EE5C, "X"), + (0x1EE5D, "M", "ں"), + (0x1EE5E, "X"), + (0x1EE5F, "M", "ٯ"), + (0x1EE60, "X"), + (0x1EE61, "M", "ب"), + (0x1EE62, "M", "ج"), + (0x1EE63, "X"), + (0x1EE64, "M", "ه"), + (0x1EE65, "X"), + (0x1EE67, "M", "ح"), + (0x1EE68, "M", "ط"), + (0x1EE69, "M", "ي"), + (0x1EE6A, "M", "ك"), + (0x1EE6B, "X"), + (0x1EE6C, "M", "م"), + (0x1EE6D, "M", "ن"), + (0x1EE6E, "M", "س"), + (0x1EE6F, "M", "ع"), + (0x1EE70, "M", "ف"), + (0x1EE71, "M", "ص"), + (0x1EE72, "M", "ق"), + (0x1EE73, "X"), + (0x1EE74, "M", "ش"), + (0x1EE75, "M", "ت"), + (0x1EE76, "M", "ث"), + (0x1EE77, "M", "خ"), + (0x1EE78, "X"), + (0x1EE79, "M", "ض"), + (0x1EE7A, "M", "ظ"), + (0x1EE7B, "M", "غ"), + (0x1EE7C, "M", "ٮ"), + (0x1EE7D, "X"), + (0x1EE7E, "M", "ڡ"), + (0x1EE7F, "X"), + (0x1EE80, "M", "ا"), + (0x1EE81, "M", "ب"), + (0x1EE82, "M", "ج"), + (0x1EE83, "M", "د"), + ] + + +def _seg_75() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1EE84, "M", "ه"), + (0x1EE85, "M", "و"), + (0x1EE86, "M", "ز"), + (0x1EE87, "M", "ح"), + (0x1EE88, "M", "ط"), + (0x1EE89, "M", "ي"), + (0x1EE8A, "X"), + (0x1EE8B, "M", "ل"), + (0x1EE8C, "M", "م"), + (0x1EE8D, "M", "ن"), + (0x1EE8E, "M", "س"), + (0x1EE8F, "M", "ع"), + (0x1EE90, "M", "ف"), + (0x1EE91, "M", "ص"), + (0x1EE92, "M", "ق"), + (0x1EE93, "M", "ر"), + (0x1EE94, "M", "ش"), + (0x1EE95, "M", "ت"), + (0x1EE96, "M", "ث"), + (0x1EE97, "M", "خ"), + (0x1EE98, "M", "ذ"), + (0x1EE99, "M", "ض"), + (0x1EE9A, "M", "ظ"), + (0x1EE9B, "M", "غ"), + (0x1EE9C, "X"), + (0x1EEA1, "M", "ب"), + (0x1EEA2, "M", "ج"), + (0x1EEA3, "M", "د"), + (0x1EEA4, "X"), + (0x1EEA5, "M", "و"), + (0x1EEA6, "M", "ز"), + (0x1EEA7, "M", "ح"), + (0x1EEA8, "M", "ط"), + (0x1EEA9, "M", "ي"), + (0x1EEAA, "X"), + (0x1EEAB, "M", "ل"), + (0x1EEAC, "M", "م"), + (0x1EEAD, "M", "ن"), + (0x1EEAE, "M", "س"), + (0x1EEAF, "M", "ع"), + (0x1EEB0, "M", "ف"), + (0x1EEB1, "M", "ص"), + (0x1EEB2, "M", "ق"), + (0x1EEB3, "M", "ر"), + (0x1EEB4, "M", "ش"), + (0x1EEB5, "M", "ت"), + (0x1EEB6, "M", "ث"), + (0x1EEB7, "M", "خ"), + (0x1EEB8, "M", "ذ"), + (0x1EEB9, "M", "ض"), + (0x1EEBA, "M", "ظ"), + (0x1EEBB, "M", "غ"), + (0x1EEBC, "X"), + (0x1EEF0, "V"), + (0x1EEF2, "X"), + (0x1F000, "V"), + (0x1F02C, "X"), + (0x1F030, "V"), + (0x1F094, "X"), + (0x1F0A0, "V"), + (0x1F0AF, "X"), + (0x1F0B1, "V"), + (0x1F0C0, "X"), + (0x1F0C1, "V"), + (0x1F0D0, "X"), + (0x1F0D1, "V"), + (0x1F0F6, "X"), + (0x1F101, "M", "0,"), + (0x1F102, "M", "1,"), + (0x1F103, "M", "2,"), + (0x1F104, "M", "3,"), + (0x1F105, "M", "4,"), + (0x1F106, "M", "5,"), + (0x1F107, "M", "6,"), + (0x1F108, "M", "7,"), + (0x1F109, "M", "8,"), + (0x1F10A, "M", "9,"), + (0x1F10B, "V"), + (0x1F110, "M", "(a)"), + (0x1F111, "M", "(b)"), + (0x1F112, "M", "(c)"), + (0x1F113, "M", "(d)"), + (0x1F114, "M", "(e)"), + (0x1F115, "M", "(f)"), + (0x1F116, "M", "(g)"), + (0x1F117, "M", "(h)"), + (0x1F118, "M", "(i)"), + (0x1F119, "M", "(j)"), + (0x1F11A, "M", "(k)"), + (0x1F11B, "M", "(l)"), + (0x1F11C, "M", "(m)"), + (0x1F11D, "M", "(n)"), + (0x1F11E, "M", "(o)"), + (0x1F11F, "M", "(p)"), + (0x1F120, "M", "(q)"), + (0x1F121, "M", "(r)"), + (0x1F122, "M", "(s)"), + (0x1F123, "M", "(t)"), + (0x1F124, "M", "(u)"), + (0x1F125, "M", "(v)"), + ] + + +def _seg_76() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1F126, "M", "(w)"), + (0x1F127, "M", "(x)"), + (0x1F128, "M", "(y)"), + (0x1F129, "M", "(z)"), + (0x1F12A, "M", "〔s〕"), + (0x1F12B, "M", "c"), + (0x1F12C, "M", "r"), + (0x1F12D, "M", "cd"), + (0x1F12E, "M", "wz"), + (0x1F12F, "V"), + (0x1F130, "M", "a"), + (0x1F131, "M", "b"), + (0x1F132, "M", "c"), + (0x1F133, "M", "d"), + (0x1F134, "M", "e"), + (0x1F135, "M", "f"), + (0x1F136, "M", "g"), + (0x1F137, "M", "h"), + (0x1F138, "M", "i"), + (0x1F139, "M", "j"), + (0x1F13A, "M", "k"), + (0x1F13B, "M", "l"), + (0x1F13C, "M", "m"), + (0x1F13D, "M", "n"), + (0x1F13E, "M", "o"), + (0x1F13F, "M", "p"), + (0x1F140, "M", "q"), + (0x1F141, "M", "r"), + (0x1F142, "M", "s"), + (0x1F143, "M", "t"), + (0x1F144, "M", "u"), + (0x1F145, "M", "v"), + (0x1F146, "M", "w"), + (0x1F147, "M", "x"), + (0x1F148, "M", "y"), + (0x1F149, "M", "z"), + (0x1F14A, "M", "hv"), + (0x1F14B, "M", "mv"), + (0x1F14C, "M", "sd"), + (0x1F14D, "M", "ss"), + (0x1F14E, "M", "ppv"), + (0x1F14F, "M", "wc"), + (0x1F150, "V"), + (0x1F16A, "M", "mc"), + (0x1F16B, "M", "md"), + (0x1F16C, "M", "mr"), + (0x1F16D, "V"), + (0x1F190, "M", "dj"), + (0x1F191, "V"), + (0x1F1AE, "X"), + (0x1F1E6, "V"), + (0x1F200, "M", "ほか"), + (0x1F201, "M", "ココ"), + (0x1F202, "M", "サ"), + (0x1F203, "X"), + (0x1F210, "M", "手"), + (0x1F211, "M", "字"), + (0x1F212, "M", "双"), + (0x1F213, "M", "デ"), + (0x1F214, "M", "二"), + (0x1F215, "M", "多"), + (0x1F216, "M", "解"), + (0x1F217, "M", "天"), + (0x1F218, "M", "交"), + (0x1F219, "M", "映"), + (0x1F21A, "M", "無"), + (0x1F21B, "M", "料"), + (0x1F21C, "M", "前"), + (0x1F21D, "M", "後"), + (0x1F21E, "M", "再"), + (0x1F21F, "M", "新"), + (0x1F220, "M", "初"), + (0x1F221, "M", "終"), + (0x1F222, "M", "生"), + (0x1F223, "M", "販"), + (0x1F224, "M", "声"), + (0x1F225, "M", "吹"), + (0x1F226, "M", "演"), + (0x1F227, "M", "投"), + (0x1F228, "M", "捕"), + (0x1F229, "M", "一"), + (0x1F22A, "M", "三"), + (0x1F22B, "M", "遊"), + (0x1F22C, "M", "左"), + (0x1F22D, "M", "中"), + (0x1F22E, "M", "右"), + (0x1F22F, "M", "指"), + (0x1F230, "M", "走"), + (0x1F231, "M", "打"), + (0x1F232, "M", "禁"), + (0x1F233, "M", "空"), + (0x1F234, "M", "合"), + (0x1F235, "M", "満"), + (0x1F236, "M", "有"), + (0x1F237, "M", "月"), + (0x1F238, "M", "申"), + (0x1F239, "M", "割"), + (0x1F23A, "M", "営"), + (0x1F23B, "M", "配"), + (0x1F23C, "X"), + ] + + +def _seg_77() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x1F240, "M", "〔本〕"), + (0x1F241, "M", "〔三〕"), + (0x1F242, "M", "〔二〕"), + (0x1F243, "M", "〔安〕"), + (0x1F244, "M", "〔点〕"), + (0x1F245, "M", "〔打〕"), + (0x1F246, "M", "〔盗〕"), + (0x1F247, "M", "〔勝〕"), + (0x1F248, "M", "〔敗〕"), + (0x1F249, "X"), + (0x1F250, "M", "得"), + (0x1F251, "M", "可"), + (0x1F252, "X"), + (0x1F260, "V"), + (0x1F266, "X"), + (0x1F300, "V"), + (0x1F6D8, "X"), + (0x1F6DC, "V"), + (0x1F6ED, "X"), + (0x1F6F0, "V"), + (0x1F6FD, "X"), + (0x1F700, "V"), + (0x1F777, "X"), + (0x1F77B, "V"), + (0x1F7DA, "X"), + (0x1F7E0, "V"), + (0x1F7EC, "X"), + (0x1F7F0, "V"), + (0x1F7F1, "X"), + (0x1F800, "V"), + (0x1F80C, "X"), + (0x1F810, "V"), + (0x1F848, "X"), + (0x1F850, "V"), + (0x1F85A, "X"), + (0x1F860, "V"), + (0x1F888, "X"), + (0x1F890, "V"), + (0x1F8AE, "X"), + (0x1F8B0, "V"), + (0x1F8BC, "X"), + (0x1F8C0, "V"), + (0x1F8C2, "X"), + (0x1F900, "V"), + (0x1FA54, "X"), + (0x1FA60, "V"), + (0x1FA6E, "X"), + (0x1FA70, "V"), + (0x1FA7D, "X"), + (0x1FA80, "V"), + (0x1FA8A, "X"), + (0x1FA8F, "V"), + (0x1FAC7, "X"), + (0x1FACE, "V"), + (0x1FADD, "X"), + (0x1FADF, "V"), + (0x1FAEA, "X"), + (0x1FAF0, "V"), + (0x1FAF9, "X"), + (0x1FB00, "V"), + (0x1FB93, "X"), + (0x1FB94, "V"), + (0x1FBF0, "M", "0"), + (0x1FBF1, "M", "1"), + (0x1FBF2, "M", "2"), + (0x1FBF3, "M", "3"), + (0x1FBF4, "M", "4"), + (0x1FBF5, "M", "5"), + (0x1FBF6, "M", "6"), + (0x1FBF7, "M", "7"), + (0x1FBF8, "M", "8"), + (0x1FBF9, "M", "9"), + (0x1FBFA, "X"), + (0x20000, "V"), + (0x2A6E0, "X"), + (0x2A700, "V"), + (0x2B73A, "X"), + (0x2B740, "V"), + (0x2B81E, "X"), + (0x2B820, "V"), + (0x2CEA2, "X"), + (0x2CEB0, "V"), + (0x2EBE1, "X"), + (0x2EBF0, "V"), + (0x2EE5E, "X"), + (0x2F800, "M", "丽"), + (0x2F801, "M", "丸"), + (0x2F802, "M", "乁"), + (0x2F803, "M", "𠄢"), + (0x2F804, "M", "你"), + (0x2F805, "M", "侮"), + (0x2F806, "M", "侻"), + (0x2F807, "M", "倂"), + (0x2F808, "M", "偺"), + (0x2F809, "M", "備"), + (0x2F80A, "M", "僧"), + (0x2F80B, "M", "像"), + (0x2F80C, "M", "㒞"), + (0x2F80D, "M", "𠘺"), + (0x2F80E, "M", "免"), + ] + + +def _seg_78() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2F80F, "M", "兔"), + (0x2F810, "M", "兤"), + (0x2F811, "M", "具"), + (0x2F812, "M", "𠔜"), + (0x2F813, "M", "㒹"), + (0x2F814, "M", "內"), + (0x2F815, "M", "再"), + (0x2F816, "M", "𠕋"), + (0x2F817, "M", "冗"), + (0x2F818, "M", "冤"), + (0x2F819, "M", "仌"), + (0x2F81A, "M", "冬"), + (0x2F81B, "M", "况"), + (0x2F81C, "M", "𩇟"), + (0x2F81D, "M", "凵"), + (0x2F81E, "M", "刃"), + (0x2F81F, "M", "㓟"), + (0x2F820, "M", "刻"), + (0x2F821, "M", "剆"), + (0x2F822, "M", "割"), + (0x2F823, "M", "剷"), + (0x2F824, "M", "㔕"), + (0x2F825, "M", "勇"), + (0x2F826, "M", "勉"), + (0x2F827, "M", "勤"), + (0x2F828, "M", "勺"), + (0x2F829, "M", "包"), + (0x2F82A, "M", "匆"), + (0x2F82B, "M", "北"), + (0x2F82C, "M", "卉"), + (0x2F82D, "M", "卑"), + (0x2F82E, "M", "博"), + (0x2F82F, "M", "即"), + (0x2F830, "M", "卽"), + (0x2F831, "M", "卿"), + (0x2F834, "M", "𠨬"), + (0x2F835, "M", "灰"), + (0x2F836, "M", "及"), + (0x2F837, "M", "叟"), + (0x2F838, "M", "𠭣"), + (0x2F839, "M", "叫"), + (0x2F83A, "M", "叱"), + (0x2F83B, "M", "吆"), + (0x2F83C, "M", "咞"), + (0x2F83D, "M", "吸"), + (0x2F83E, "M", "呈"), + (0x2F83F, "M", "周"), + (0x2F840, "M", "咢"), + (0x2F841, "M", "哶"), + (0x2F842, "M", "唐"), + (0x2F843, "M", "啓"), + (0x2F844, "M", "啣"), + (0x2F845, "M", "善"), + (0x2F847, "M", "喙"), + (0x2F848, "M", "喫"), + (0x2F849, "M", "喳"), + (0x2F84A, "M", "嗂"), + (0x2F84B, "M", "圖"), + (0x2F84C, "M", "嘆"), + (0x2F84D, "M", "圗"), + (0x2F84E, "M", "噑"), + (0x2F84F, "M", "噴"), + (0x2F850, "M", "切"), + (0x2F851, "M", "壮"), + (0x2F852, "M", "城"), + (0x2F853, "M", "埴"), + (0x2F854, "M", "堍"), + (0x2F855, "M", "型"), + (0x2F856, "M", "堲"), + (0x2F857, "M", "報"), + (0x2F858, "M", "墬"), + (0x2F859, "M", "𡓤"), + (0x2F85A, "M", "売"), + (0x2F85B, "M", "壷"), + (0x2F85C, "M", "夆"), + (0x2F85D, "M", "多"), + (0x2F85E, "M", "夢"), + (0x2F85F, "M", "奢"), + (0x2F860, "M", "𡚨"), + (0x2F861, "M", "𡛪"), + (0x2F862, "M", "姬"), + (0x2F863, "M", "娛"), + (0x2F864, "M", "娧"), + (0x2F865, "M", "姘"), + (0x2F866, "M", "婦"), + (0x2F867, "M", "㛮"), + (0x2F868, "M", "㛼"), + (0x2F869, "M", "嬈"), + (0x2F86A, "M", "嬾"), + (0x2F86C, "M", "𡧈"), + (0x2F86D, "M", "寃"), + (0x2F86E, "M", "寘"), + (0x2F86F, "M", "寧"), + (0x2F870, "M", "寳"), + (0x2F871, "M", "𡬘"), + (0x2F872, "M", "寿"), + (0x2F873, "M", "将"), + (0x2F874, "M", "当"), + (0x2F875, "M", "尢"), + (0x2F876, "M", "㞁"), + ] + + +def _seg_79() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2F877, "M", "屠"), + (0x2F878, "M", "屮"), + (0x2F879, "M", "峀"), + (0x2F87A, "M", "岍"), + (0x2F87B, "M", "𡷤"), + (0x2F87C, "M", "嵃"), + (0x2F87D, "M", "𡷦"), + (0x2F87E, "M", "嵮"), + (0x2F87F, "M", "嵫"), + (0x2F880, "M", "嵼"), + (0x2F881, "M", "巡"), + (0x2F882, "M", "巢"), + (0x2F883, "M", "㠯"), + (0x2F884, "M", "巽"), + (0x2F885, "M", "帨"), + (0x2F886, "M", "帽"), + (0x2F887, "M", "幩"), + (0x2F888, "M", "㡢"), + (0x2F889, "M", "𢆃"), + (0x2F88A, "M", "㡼"), + (0x2F88B, "M", "庰"), + (0x2F88C, "M", "庳"), + (0x2F88D, "M", "庶"), + (0x2F88E, "M", "廊"), + (0x2F88F, "M", "𪎒"), + (0x2F890, "M", "廾"), + (0x2F891, "M", "𢌱"), + (0x2F893, "M", "舁"), + (0x2F894, "M", "弢"), + (0x2F896, "M", "㣇"), + (0x2F897, "M", "𣊸"), + (0x2F898, "M", "𦇚"), + (0x2F899, "M", "形"), + (0x2F89A, "M", "彫"), + (0x2F89B, "M", "㣣"), + (0x2F89C, "M", "徚"), + (0x2F89D, "M", "忍"), + (0x2F89E, "M", "志"), + (0x2F89F, "M", "忹"), + (0x2F8A0, "M", "悁"), + (0x2F8A1, "M", "㤺"), + (0x2F8A2, "M", "㤜"), + (0x2F8A3, "M", "悔"), + (0x2F8A4, "M", "𢛔"), + (0x2F8A5, "M", "惇"), + (0x2F8A6, "M", "慈"), + (0x2F8A7, "M", "慌"), + (0x2F8A8, "M", "慎"), + (0x2F8A9, "M", "慌"), + (0x2F8AA, "M", "慺"), + (0x2F8AB, "M", "憎"), + (0x2F8AC, "M", "憲"), + (0x2F8AD, "M", "憤"), + (0x2F8AE, "M", "憯"), + (0x2F8AF, "M", "懞"), + (0x2F8B0, "M", "懲"), + (0x2F8B1, "M", "懶"), + (0x2F8B2, "M", "成"), + (0x2F8B3, "M", "戛"), + (0x2F8B4, "M", "扝"), + (0x2F8B5, "M", "抱"), + (0x2F8B6, "M", "拔"), + (0x2F8B7, "M", "捐"), + (0x2F8B8, "M", "𢬌"), + (0x2F8B9, "M", "挽"), + (0x2F8BA, "M", "拼"), + (0x2F8BB, "M", "捨"), + (0x2F8BC, "M", "掃"), + (0x2F8BD, "M", "揤"), + (0x2F8BE, "M", "𢯱"), + (0x2F8BF, "M", "搢"), + (0x2F8C0, "M", "揅"), + (0x2F8C1, "M", "掩"), + (0x2F8C2, "M", "㨮"), + (0x2F8C3, "M", "摩"), + (0x2F8C4, "M", "摾"), + (0x2F8C5, "M", "撝"), + (0x2F8C6, "M", "摷"), + (0x2F8C7, "M", "㩬"), + (0x2F8C8, "M", "敏"), + (0x2F8C9, "M", "敬"), + (0x2F8CA, "M", "𣀊"), + (0x2F8CB, "M", "旣"), + (0x2F8CC, "M", "書"), + (0x2F8CD, "M", "晉"), + (0x2F8CE, "M", "㬙"), + (0x2F8CF, "M", "暑"), + (0x2F8D0, "M", "㬈"), + (0x2F8D1, "M", "㫤"), + (0x2F8D2, "M", "冒"), + (0x2F8D3, "M", "冕"), + (0x2F8D4, "M", "最"), + (0x2F8D5, "M", "暜"), + (0x2F8D6, "M", "肭"), + (0x2F8D7, "M", "䏙"), + (0x2F8D8, "M", "朗"), + (0x2F8D9, "M", "望"), + (0x2F8DA, "M", "朡"), + (0x2F8DB, "M", "杞"), + (0x2F8DC, "M", "杓"), + ] + + +def _seg_80() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2F8DD, "M", "𣏃"), + (0x2F8DE, "M", "㭉"), + (0x2F8DF, "M", "柺"), + (0x2F8E0, "M", "枅"), + (0x2F8E1, "M", "桒"), + (0x2F8E2, "M", "梅"), + (0x2F8E3, "M", "𣑭"), + (0x2F8E4, "M", "梎"), + (0x2F8E5, "M", "栟"), + (0x2F8E6, "M", "椔"), + (0x2F8E7, "M", "㮝"), + (0x2F8E8, "M", "楂"), + (0x2F8E9, "M", "榣"), + (0x2F8EA, "M", "槪"), + (0x2F8EB, "M", "檨"), + (0x2F8EC, "M", "𣚣"), + (0x2F8ED, "M", "櫛"), + (0x2F8EE, "M", "㰘"), + (0x2F8EF, "M", "次"), + (0x2F8F0, "M", "𣢧"), + (0x2F8F1, "M", "歔"), + (0x2F8F2, "M", "㱎"), + (0x2F8F3, "M", "歲"), + (0x2F8F4, "M", "殟"), + (0x2F8F5, "M", "殺"), + (0x2F8F6, "M", "殻"), + (0x2F8F7, "M", "𣪍"), + (0x2F8F8, "M", "𡴋"), + (0x2F8F9, "M", "𣫺"), + (0x2F8FA, "M", "汎"), + (0x2F8FB, "M", "𣲼"), + (0x2F8FC, "M", "沿"), + (0x2F8FD, "M", "泍"), + (0x2F8FE, "M", "汧"), + (0x2F8FF, "M", "洖"), + (0x2F900, "M", "派"), + (0x2F901, "M", "海"), + (0x2F902, "M", "流"), + (0x2F903, "M", "浩"), + (0x2F904, "M", "浸"), + (0x2F905, "M", "涅"), + (0x2F906, "M", "𣴞"), + (0x2F907, "M", "洴"), + (0x2F908, "M", "港"), + (0x2F909, "M", "湮"), + (0x2F90A, "M", "㴳"), + (0x2F90B, "M", "滋"), + (0x2F90C, "M", "滇"), + (0x2F90D, "M", "𣻑"), + (0x2F90E, "M", "淹"), + (0x2F90F, "M", "潮"), + (0x2F910, "M", "𣽞"), + (0x2F911, "M", "𣾎"), + (0x2F912, "M", "濆"), + (0x2F913, "M", "瀹"), + (0x2F914, "M", "瀞"), + (0x2F915, "M", "瀛"), + (0x2F916, "M", "㶖"), + (0x2F917, "M", "灊"), + (0x2F918, "M", "災"), + (0x2F919, "M", "灷"), + (0x2F91A, "M", "炭"), + (0x2F91B, "M", "𠔥"), + (0x2F91C, "M", "煅"), + (0x2F91D, "M", "𤉣"), + (0x2F91E, "M", "熜"), + (0x2F91F, "M", "𤎫"), + (0x2F920, "M", "爨"), + (0x2F921, "M", "爵"), + (0x2F922, "M", "牐"), + (0x2F923, "M", "𤘈"), + (0x2F924, "M", "犀"), + (0x2F925, "M", "犕"), + (0x2F926, "M", "𤜵"), + (0x2F927, "M", "𤠔"), + (0x2F928, "M", "獺"), + (0x2F929, "M", "王"), + (0x2F92A, "M", "㺬"), + (0x2F92B, "M", "玥"), + (0x2F92C, "M", "㺸"), + (0x2F92E, "M", "瑇"), + (0x2F92F, "M", "瑜"), + (0x2F930, "M", "瑱"), + (0x2F931, "M", "璅"), + (0x2F932, "M", "瓊"), + (0x2F933, "M", "㼛"), + (0x2F934, "M", "甤"), + (0x2F935, "M", "𤰶"), + (0x2F936, "M", "甾"), + (0x2F937, "M", "𤲒"), + (0x2F938, "M", "異"), + (0x2F939, "M", "𢆟"), + (0x2F93A, "M", "瘐"), + (0x2F93B, "M", "𤾡"), + (0x2F93C, "M", "𤾸"), + (0x2F93D, "M", "𥁄"), + (0x2F93E, "M", "㿼"), + (0x2F93F, "M", "䀈"), + (0x2F940, "M", "直"), + (0x2F941, "M", "𥃳"), + ] + + +def _seg_81() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2F942, "M", "𥃲"), + (0x2F943, "M", "𥄙"), + (0x2F944, "M", "𥄳"), + (0x2F945, "M", "眞"), + (0x2F946, "M", "真"), + (0x2F948, "M", "睊"), + (0x2F949, "M", "䀹"), + (0x2F94A, "M", "瞋"), + (0x2F94B, "M", "䁆"), + (0x2F94C, "M", "䂖"), + (0x2F94D, "M", "𥐝"), + (0x2F94E, "M", "硎"), + (0x2F94F, "M", "碌"), + (0x2F950, "M", "磌"), + (0x2F951, "M", "䃣"), + (0x2F952, "M", "𥘦"), + (0x2F953, "M", "祖"), + (0x2F954, "M", "𥚚"), + (0x2F955, "M", "𥛅"), + (0x2F956, "M", "福"), + (0x2F957, "M", "秫"), + (0x2F958, "M", "䄯"), + (0x2F959, "M", "穀"), + (0x2F95A, "M", "穊"), + (0x2F95B, "M", "穏"), + (0x2F95C, "M", "𥥼"), + (0x2F95D, "M", "𥪧"), + (0x2F95F, "M", "竮"), + (0x2F960, "M", "䈂"), + (0x2F961, "M", "𥮫"), + (0x2F962, "M", "篆"), + (0x2F963, "M", "築"), + (0x2F964, "M", "䈧"), + (0x2F965, "M", "𥲀"), + (0x2F966, "M", "糒"), + (0x2F967, "M", "䊠"), + (0x2F968, "M", "糨"), + (0x2F969, "M", "糣"), + (0x2F96A, "M", "紀"), + (0x2F96B, "M", "𥾆"), + (0x2F96C, "M", "絣"), + (0x2F96D, "M", "䌁"), + (0x2F96E, "M", "緇"), + (0x2F96F, "M", "縂"), + (0x2F970, "M", "繅"), + (0x2F971, "M", "䌴"), + (0x2F972, "M", "𦈨"), + (0x2F973, "M", "𦉇"), + (0x2F974, "M", "䍙"), + (0x2F975, "M", "𦋙"), + (0x2F976, "M", "罺"), + (0x2F977, "M", "𦌾"), + (0x2F978, "M", "羕"), + (0x2F979, "M", "翺"), + (0x2F97A, "M", "者"), + (0x2F97B, "M", "𦓚"), + (0x2F97C, "M", "𦔣"), + (0x2F97D, "M", "聠"), + (0x2F97E, "M", "𦖨"), + (0x2F97F, "M", "聰"), + (0x2F980, "M", "𣍟"), + (0x2F981, "M", "䏕"), + (0x2F982, "M", "育"), + (0x2F983, "M", "脃"), + (0x2F984, "M", "䐋"), + (0x2F985, "M", "脾"), + (0x2F986, "M", "媵"), + (0x2F987, "M", "𦞧"), + (0x2F988, "M", "𦞵"), + (0x2F989, "M", "𣎓"), + (0x2F98A, "M", "𣎜"), + (0x2F98B, "M", "舁"), + (0x2F98C, "M", "舄"), + (0x2F98D, "M", "辞"), + (0x2F98E, "M", "䑫"), + (0x2F98F, "M", "芑"), + (0x2F990, "M", "芋"), + (0x2F991, "M", "芝"), + (0x2F992, "M", "劳"), + (0x2F993, "M", "花"), + (0x2F994, "M", "芳"), + (0x2F995, "M", "芽"), + (0x2F996, "M", "苦"), + (0x2F997, "M", "𦬼"), + (0x2F998, "M", "若"), + (0x2F999, "M", "茝"), + (0x2F99A, "M", "荣"), + (0x2F99B, "M", "莭"), + (0x2F99C, "M", "茣"), + (0x2F99D, "M", "莽"), + (0x2F99E, "M", "菧"), + (0x2F99F, "M", "著"), + (0x2F9A0, "M", "荓"), + (0x2F9A1, "M", "菊"), + (0x2F9A2, "M", "菌"), + (0x2F9A3, "M", "菜"), + (0x2F9A4, "M", "𦰶"), + (0x2F9A5, "M", "𦵫"), + (0x2F9A6, "M", "𦳕"), + (0x2F9A7, "M", "䔫"), + ] + + +def _seg_82() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2F9A8, "M", "蓱"), + (0x2F9A9, "M", "蓳"), + (0x2F9AA, "M", "蔖"), + (0x2F9AB, "M", "𧏊"), + (0x2F9AC, "M", "蕤"), + (0x2F9AD, "M", "𦼬"), + (0x2F9AE, "M", "䕝"), + (0x2F9AF, "M", "䕡"), + (0x2F9B0, "M", "𦾱"), + (0x2F9B1, "M", "𧃒"), + (0x2F9B2, "M", "䕫"), + (0x2F9B3, "M", "虐"), + (0x2F9B4, "M", "虜"), + (0x2F9B5, "M", "虧"), + (0x2F9B6, "M", "虩"), + (0x2F9B7, "M", "蚩"), + (0x2F9B8, "M", "蚈"), + (0x2F9B9, "M", "蜎"), + (0x2F9BA, "M", "蛢"), + (0x2F9BB, "M", "蝹"), + (0x2F9BC, "M", "蜨"), + (0x2F9BD, "M", "蝫"), + (0x2F9BE, "M", "螆"), + (0x2F9BF, "M", "䗗"), + (0x2F9C0, "M", "蟡"), + (0x2F9C1, "M", "蠁"), + (0x2F9C2, "M", "䗹"), + (0x2F9C3, "M", "衠"), + (0x2F9C4, "M", "衣"), + (0x2F9C5, "M", "𧙧"), + (0x2F9C6, "M", "裗"), + (0x2F9C7, "M", "裞"), + (0x2F9C8, "M", "䘵"), + (0x2F9C9, "M", "裺"), + (0x2F9CA, "M", "㒻"), + (0x2F9CB, "M", "𧢮"), + (0x2F9CC, "M", "𧥦"), + (0x2F9CD, "M", "䚾"), + (0x2F9CE, "M", "䛇"), + (0x2F9CF, "M", "誠"), + (0x2F9D0, "M", "諭"), + (0x2F9D1, "M", "變"), + (0x2F9D2, "M", "豕"), + (0x2F9D3, "M", "𧲨"), + (0x2F9D4, "M", "貫"), + (0x2F9D5, "M", "賁"), + (0x2F9D6, "M", "贛"), + (0x2F9D7, "M", "起"), + (0x2F9D8, "M", "𧼯"), + (0x2F9D9, "M", "𠠄"), + (0x2F9DA, "M", "跋"), + (0x2F9DB, "M", "趼"), + (0x2F9DC, "M", "跰"), + (0x2F9DD, "M", "𠣞"), + (0x2F9DE, "M", "軔"), + (0x2F9DF, "M", "輸"), + (0x2F9E0, "M", "𨗒"), + (0x2F9E1, "M", "𨗭"), + (0x2F9E2, "M", "邔"), + (0x2F9E3, "M", "郱"), + (0x2F9E4, "M", "鄑"), + (0x2F9E5, "M", "𨜮"), + (0x2F9E6, "M", "鄛"), + (0x2F9E7, "M", "鈸"), + (0x2F9E8, "M", "鋗"), + (0x2F9E9, "M", "鋘"), + (0x2F9EA, "M", "鉼"), + (0x2F9EB, "M", "鏹"), + (0x2F9EC, "M", "鐕"), + (0x2F9ED, "M", "𨯺"), + (0x2F9EE, "M", "開"), + (0x2F9EF, "M", "䦕"), + (0x2F9F0, "M", "閷"), + (0x2F9F1, "M", "𨵷"), + (0x2F9F2, "M", "䧦"), + (0x2F9F3, "M", "雃"), + (0x2F9F4, "M", "嶲"), + (0x2F9F5, "M", "霣"), + (0x2F9F6, "M", "𩅅"), + (0x2F9F7, "M", "𩈚"), + (0x2F9F8, "M", "䩮"), + (0x2F9F9, "M", "䩶"), + (0x2F9FA, "M", "韠"), + (0x2F9FB, "M", "𩐊"), + (0x2F9FC, "M", "䪲"), + (0x2F9FD, "M", "𩒖"), + (0x2F9FE, "M", "頋"), + (0x2FA00, "M", "頩"), + (0x2FA01, "M", "𩖶"), + (0x2FA02, "M", "飢"), + (0x2FA03, "M", "䬳"), + (0x2FA04, "M", "餩"), + (0x2FA05, "M", "馧"), + (0x2FA06, "M", "駂"), + (0x2FA07, "M", "駾"), + (0x2FA08, "M", "䯎"), + (0x2FA09, "M", "𩬰"), + (0x2FA0A, "M", "鬒"), + (0x2FA0B, "M", "鱀"), + (0x2FA0C, "M", "鳽"), + ] + + +def _seg_83() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: + return [ + (0x2FA0D, "M", "䳎"), + (0x2FA0E, "M", "䳭"), + (0x2FA0F, "M", "鵧"), + (0x2FA10, "M", "𪃎"), + (0x2FA11, "M", "䳸"), + (0x2FA12, "M", "𪄅"), + (0x2FA13, "M", "𪈎"), + (0x2FA14, "M", "𪊑"), + (0x2FA15, "M", "麻"), + (0x2FA16, "M", "䵖"), + (0x2FA17, "M", "黹"), + (0x2FA18, "M", "黾"), + (0x2FA19, "M", "鼅"), + (0x2FA1A, "M", "鼏"), + (0x2FA1B, "M", "鼖"), + (0x2FA1C, "M", "鼻"), + (0x2FA1D, "M", "𪘀"), + (0x2FA1E, "X"), + (0x30000, "V"), + (0x3134B, "X"), + (0x31350, "V"), + (0x323B0, "X"), + (0xE0100, "I"), + (0xE01F0, "X"), + ] + + +uts46data = tuple( + _seg_0() + + _seg_1() + + _seg_2() + + _seg_3() + + _seg_4() + + _seg_5() + + _seg_6() + + _seg_7() + + _seg_8() + + _seg_9() + + _seg_10() + + _seg_11() + + _seg_12() + + _seg_13() + + _seg_14() + + _seg_15() + + _seg_16() + + _seg_17() + + _seg_18() + + _seg_19() + + _seg_20() + + _seg_21() + + _seg_22() + + _seg_23() + + _seg_24() + + _seg_25() + + _seg_26() + + _seg_27() + + _seg_28() + + _seg_29() + + _seg_30() + + _seg_31() + + _seg_32() + + _seg_33() + + _seg_34() + + _seg_35() + + _seg_36() + + _seg_37() + + _seg_38() + + _seg_39() + + _seg_40() + + _seg_41() + + _seg_42() + + _seg_43() + + _seg_44() + + _seg_45() + + _seg_46() + + _seg_47() + + _seg_48() + + _seg_49() + + _seg_50() + + _seg_51() + + _seg_52() + + _seg_53() + + _seg_54() + + _seg_55() + + _seg_56() + + _seg_57() + + _seg_58() + + _seg_59() + + _seg_60() + + _seg_61() + + _seg_62() + + _seg_63() + + _seg_64() + + _seg_65() + + _seg_66() + + _seg_67() + + _seg_68() + + _seg_69() + + _seg_70() + + _seg_71() + + _seg_72() + + _seg_73() + + _seg_74() + + _seg_75() + + _seg_76() + + _seg_77() + + _seg_78() + + _seg_79() + + _seg_80() + + _seg_81() + + _seg_82() + + _seg_83() +) # type: Tuple[Union[Tuple[int, str], Tuple[int, str, str]], ...] diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Blob.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Blob.h new file mode 100644 index 0000000000000000000000000000000000000000..11877dc7f2998c225a064bbb88eaac2cc9183753 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Blob.h @@ -0,0 +1,82 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002 +// +// Copyright @ 2015 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Reference counted container class for Binary Large Objects (BLOBs) +// + +#if !defined(Magick_BlobRef_header) +#define Magick_BlobRef_header + +#include "Magick++/Include.h" +#include + +namespace Magick +{ + // Forward decl + class BlobRef; + + class MagickPPExport Blob + { + public: + + enum Allocator + { + MallocAllocator, + NewAllocator + }; + + // Default constructor + Blob(void); + + // Construct object with data, making a copy of the supplied data. + Blob(const void* data_,const size_t length_); + + // Copy constructor (reference counted) + Blob(const Blob& blob_); + + // Destructor (reference counted) + virtual ~Blob(); + + // Assignment operator (reference counted) + Blob& operator=(const Blob& blob_); + + // Update object contents from Base64-encoded string representation. + void base64(const std::string base64_); + // Return Base64-encoded string representation. + std::string base64(void) const; + + // Obtain pointer to data. The user should never try to modify or + // free this data since the Blob class manages its own data. The + // user must be finished with the data before allowing the Blob to + // be destroyed since the pointer is invalid once the Blob is + // destroyed. + const void* data(void) const; + + // Obtain data length. + size_t length(void) const; + + // Update object contents, making a copy of the supplied data. + // Any existing data in the object is deallocated. + void update(const void* data_,const size_t length_); + + // Update object contents, using supplied pointer directly (no + // copy). Any existing data in the object is deallocated. The user + // must ensure that the pointer supplied is not deleted or + // otherwise modified after it has been supplied to this method. + // Specify allocator_ as "MallocAllocator" if memory is allocated + // via the C language malloc() function, or "NewAllocator" if + // memory is allocated via C++ 'new'. + void updateNoCopy(void* data_,const size_t length_, + const Allocator allocator_=NewAllocator); + + private: + BlobRef *_blobRef; + }; + +} // namespace Magick + +#endif // Magick_BlobRef_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/CoderInfo.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/CoderInfo.h new file mode 100644 index 0000000000000000000000000000000000000000..cc65fac5506c0e23ce54071319a73ab33cb5c13f --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/CoderInfo.h @@ -0,0 +1,90 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 2001, 2002 +// +// Copyright @ 2013 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// CoderInfo Definition +// +// Container for image format support information. +// + +#if !defined (Magick_CoderInfo_header) +#define Magick_CoderInfo_header 1 + +#include "Magick++/Include.h" +#include + +namespace Magick +{ + class MagickPPExport CoderInfo + { + public: + + enum MatchType { + AnyMatch, // match any coder + TrueMatch, // match coder if true + FalseMatch // match coder if false + }; + + // Default constructor + CoderInfo(void); + + // Copy constructor + CoderInfo(const CoderInfo &coder_); + + // Construct with coder name + CoderInfo(const std::string &name_); + + // Destructor + ~CoderInfo(void); + + // Assignment operator + CoderInfo& operator=(const CoderInfo &coder_); + + // Format can read multi-threaded + bool canReadMultithreaded(void) const; + + // Format can write multi-threaded + bool canWriteMultithreaded(void) const; + + // Format description + std::string description(void) const; + + // Format supports multiple frames + bool isMultiFrame(void) const; + + // Format is readable + bool isReadable(void) const; + + // Format is writeable + bool isWritable(void) const; + + // Format mime type + std::string mimeType(void) const; + + // Name of the module + std::string module(void) const; + + // Format name + std::string name(void) const; + + // Unregisters this coder + bool unregister(void) const; + + private: + bool _decoderThreadSupport; + std::string _description; + bool _encoderThreadSupport; + bool _isMultiFrame; + bool _isReadable; + bool _isWritable; + std::string _mimeType; + std::string _module; + std::string _name; + }; + +} // namespace Magick + +#endif // Magick_CoderInfo_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Color.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Color.h new file mode 100644 index 0000000000000000000000000000000000000000..41f7538ed8079efe4d58203aadc17c1f0448983e --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Color.h @@ -0,0 +1,446 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003, 2008 +// +// Copyright @ 2013 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Color Implementation +// +#if !defined (Magick_Color_header) +#define Magick_Color_header + +#include "Magick++/Include.h" +#include + +namespace Magick +{ + class MagickPPExport Color; + + // Compare two Color objects regardless of LHS/RHS + MagickPPExport int operator == + (const Magick::Color& left_,const Magick::Color& right_); + MagickPPExport int operator != + (const Magick::Color& left_,const Magick::Color& right_); + MagickPPExport int operator > + (const Magick::Color& left_,const Magick::Color& right_); + MagickPPExport int operator < + (const Magick::Color& left_,const Magick::Color& right_); + MagickPPExport int operator >= + (const Magick::Color& left_,const Magick::Color& right_); + MagickPPExport int operator <= + (const Magick::Color& left_,const Magick::Color& right_); + + // Base color class stores RGBA components scaled to fit Quantum + // All double arguments have a valid range of 0.0 - 1.0. + class MagickPPExport Color + { + public: + + // PixelType specifies the interpretation of PixelInfo members + // CMYKPixel: + // Cyan = red + // Magenta = green + // Yellow = blue + // Black(K) = black + // CMYKPixel: + // Cyan = red + // Magenta = green + // Yellow = blue + // Black(K) = black + // Alpha = alpha + // RGBPixel: + // Red = red; + // Green = green; + // Blue = blue; + // RGBAPixel: + // Red = red; + // Green = green; + // Blue = blue; + // Alpha = alpha; + enum PixelType + { + CMYKPixel, + CMYKAPixel, + RGBPixel, + RGBAPixel + }; + + // Default constructor + Color(void); + + // Construct Color using the specified RGB values + Color(const Magick::Quantum red_,const Magick::Quantum green_, + const Magick::Quantum blue_); + + // Construct Color using the specified RGBA values + Color(const Magick::Quantum red_,const Magick::Quantum green_, + const Magick::Quantum blue_,const Magick::Quantum alpha_); + + // Construct Color using the specified CMYKA values + Color(const Magick::Quantum cyan_,const Magick::Quantum magenta_, + const Magick::Quantum yellow_,const Magick::Quantum black_, + const Magick::Quantum alpha_); + + // Construct Color using the specified color string + Color(const char *color_); + + // Copy constructor + Color(const Color &color_); + + // Construct color via ImageMagick PixelInfo + Color(const PixelInfo &color_); + + // Constructor Color using the specified color string + Color(const std::string &color_); + + // Destructor + virtual ~Color(void); + + // Assignment operator + Color& operator=(const Color &color_); + + // Set color via X11 color specification string + const Color& operator=(const char *color); + + // Set color via ImageMagick PixelInfo + const Color& operator=(const PixelInfo &color_); + + // Set color via color specification string + const Color& operator=(const std::string &color); + + // Return ImageMagick PixelInfo + operator PixelInfo() const; + + // Return color specification string + operator std::string() const; + + // Returns true if the distance between the other color is less than the + // specified distance in a linear three(or four) % dimensional color space. + bool isFuzzyEquivalent(const Color &color_,const double fuzz_) const; + + // Does object contain valid color? + void isValid(const bool valid_); + bool isValid(void) const; + + // Returns pixel type of the color + Magick::Color::PixelType pixelType(void) const; + + // Alpha level (range OpaqueAlpha=0 to TransparentAlpha=QuantumRange) + void quantumAlpha(const Quantum alpha_); + Quantum quantumAlpha(void) const; + + // Black color (range 0 to QuantumRange) + void quantumBlack(const Quantum black_); + Quantum quantumBlack(void) const; + + // Blue/Yellow color (range 0 to QuantumRange) + void quantumBlue(const Quantum blue_); + Quantum quantumBlue(void) const; + + // Green/Magenta color (range 0 to QuantumRange) + void quantumGreen(const Quantum green_); + Quantum quantumGreen(void) const; + + // Red/Cyan color (range 0 to QuantumRange) + void quantumRed(const Quantum red_); + Quantum quantumRed(void) const; + + protected: + + // Constructor to construct with PixelInfo* + // Used to point Color at a pixel in an image + Color(PixelInfo *rep_,PixelType pixelType_); + + // Constructor to construct with PixelType + Color(PixelType pixelType_); + + // Set pixel + // Used to point Color at a pixel in an image + void pixel(PixelInfo *rep_,PixelType pixelType_); + + // Scale a value expressed as a double (0-1) to Quantum range (0-QuantumRange) + static Quantum scaleDoubleToQuantum(const double double_); + + // Scale a value expressed as a Quantum (0-QuantumRange) to double range (0-1) + static double scaleQuantumToDouble(const Quantum quantum_); + + // PixelInfo represents a color pixel: + // red = red (range 0 to QuantumRange) + // green = green (range 0 to QuantumRange) + // blue = blue (range 0 to QuantumRange) + // alpha = alpha (range OpaqueAlpha=0 to TransparentAlpha=QuantumRange) + // index = PseudoColor colormap index + PixelInfo *_pixel; + + private: + + bool _isValid; // Set true if pixel is "valid" + bool _pixelOwn; // Set true if we allocated pixel + PixelType _pixelType; // Color type supported by _pixel + + // Common initializer for PixelInfo representation + void initPixel(); + + void setAlpha(const Magick::Quantum alpha_); + + // Sets the pixel type using the specified PixelInfo. + void setPixelType(const PixelInfo &color_); + }; + + class MagickPPExport ColorCMYK: public Color + { + public: + + // Default constructor + ColorCMYK(void); + + // Copy constructor + ColorCMYK(const Color &color_); + + // Construct ColorCMYK using the specified CMYK values + ColorCMYK(const double cyan_,const double magenta_,const double yellow_, + const double black_); + + // Construct ColorCMYK using the specified CMYKA values + ColorCMYK(const double cyan_,const double magenta_,const double yellow_, + const double black_,const double alpha_); + + // Destructor + ~ColorCMYK(void); + + // Assignment operator from base class + ColorCMYK& operator=(const Color& color_); + + // Alpha level (range 0 to 1.0) + void alpha(const double alpha_); + double alpha(void) const; + + // Black/Key color (range 0 to 1.0) + void black(const double black_); + double black(void) const; + + // Black/Key color (range 0.0 to 1.0) + void cyan(const double cyan_); + double cyan(void) const; + + // Magenta color (range 0 to 1.0) + void magenta(const double magenta_); + double magenta(void) const; + + // Yellow color (range 0 to 1.0) + void yellow(const double yellow_); + double yellow(void) const; + + protected: + + // Constructor to construct with PixelInfo* + ColorCMYK(PixelInfo *rep_,PixelType pixelType_); + }; + + // + // Grayscale RGB color + // + // Grayscale is simply RGB with equal parts of red, green, and blue + // All double arguments have a valid range of 0.0 - 1.0. + class MagickPPExport ColorGray: public Color + { + public: + + // Default constructor + ColorGray(void); + + // Copy constructor + ColorGray(const Color &color_); + + // Construct ColorGray using the specified shade + ColorGray(const double shade_); + + // Destructor + ~ColorGray(); + + // Shade + void shade(const double shade_); + double shade(void) const; + + // Assignment operator from base class + ColorGray& operator=(const Color& color_); + + protected: + + // Constructor to construct with PixelInfo* + ColorGray(PixelInfo *rep_,PixelType pixelType_); + }; + + // + // HSL Colorspace colors + // + // All double arguments have a valid range of 0.0 - 1.0. + class MagickPPExport ColorHSL: public Color + { + public: + + // Default constructor + ColorHSL(void); + + // Copy constructor + ColorHSL(const Color &color_); + + // Construct ColorHSL using the specified HSL values + ColorHSL(const double hue_,const double saturation_, + const double lightness_); + + // Destructor + ~ColorHSL(); + + // Assignment operator from base class + ColorHSL& operator=(const Color& color_); + + // Hue color + void hue(const double hue_); + double hue(void) const; + + // Lightness color + void lightness(const double lightness_); + double lightness(void) const; + + // Saturation color + void saturation(const double saturation_); + double saturation(void) const; + + protected: + + // Constructor to construct with PixelInfo* + ColorHSL(PixelInfo *rep_,PixelType pixelType_); + }; + + // + // Monochrome color + // + // Color arguments are constrained to 'false' (black pixel) and 'true' + // (white pixel) + class MagickPPExport ColorMono: public Color + { + public: + + // Default constructor + ColorMono(void); + + // Construct ColorMono (false=black, true=white) + ColorMono(const bool mono_); + + // Copy constructor + ColorMono(const Color &color_); + + // Destructor + ~ColorMono(); + + // Assignment operator from base class + ColorMono& operator=(const Color& color_); + + // Mono color + void mono(const bool mono_); + bool mono(void) const; + + protected: + + // Constructor to construct with PixelInfo* + ColorMono(PixelInfo* rep_,PixelType pixelType_); + }; + + class MagickPPExport ColorRGB: public Color + { + public: + + // Default constructor + ColorRGB(void); + + // Copy constructor + ColorRGB(const Color &color_); + + // Construct ColorRGB using the specified RGB values + ColorRGB(const double red_,const double green_,const double blue_); + + // Construct ColorRGB using the specified RGBA values + ColorRGB(const double red_,const double green_,const double blue_, + const double alpha_); + + // Destructor + ~ColorRGB(void); + + // Assignment operator from base class + ColorRGB& operator=(const Color& color_); + + // Alpha level (range 0 to 1.0) + void alpha(const double alpha_); + double alpha(void) const; + + // Blue color (range 0.0 to 1.0) + void blue(const double blue_); + double blue(void) const; + + // Green color (range 0 to 1.0) + void green(const double green_); + double green(void) const; + + // Red color (range 0 to 1.0) + void red(const double red_); + double red(void) const; + + protected: + + // Constructor to construct with PixelInfo* + ColorRGB(PixelInfo *rep_,PixelType pixelType_); + }; + + // + // YUV Colorspace color + // + // Argument ranges: + // Y: 0.0 through 1.0 + // U: -0.5 through 0.5 + // V: -0.5 through 0.5 + class MagickPPExport ColorYUV: public Color + { + public: + + // Default constructor + ColorYUV(void); + + // Copy constructor + ColorYUV(const Color &color_); + + // Construct ColorYUV using the specified YUV values + ColorYUV(const double y_,const double u_,const double v_); + + // Destructor + ~ColorYUV(void); + + // Assignment operator from base class + ColorYUV& operator=(const Color& color_); + + // Color U (0.0 through 1.0) + void u(const double u_); + double u(void) const; + + // Color V (-0.5 through 0.5) + void v(const double v_); + double v(void) const; + + // Color Y (-0.5 through 0.5) + void y(const double y_); + double y(void) const; + + protected: + + // Constructor to construct with PixelInfo* + ColorYUV(PixelInfo *rep_,PixelType pixelType_); + + private: + + void convert(const double y_,const double u_,const double v_); + + }; +} // namespace Magick + +#endif // Magick_Color_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Drawable.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Drawable.h new file mode 100644 index 0000000000000000000000000000000000000000..802adbc35848f88f4b680ae21e62f4cfcd50668b --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Drawable.h @@ -0,0 +1,3140 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002 +// +// Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Definition of Drawable (Graphic objects) +// +// The technique used for instantiating classes which derive from STL +// templates is described in Microsoft MSDN Article ID: Q168958 +// "HOWTO: Exporting STL Components Inside & Outside of a Class". +// "http://support.microsoft.com/kb/168958" +// +// Note that version 3.0 of this article says that only STL +// container template which supports DLL export is and we are +// not using as part of the Drawable implementation. +// + +#if !defined(Magick_Drawable_header) +#define Magick_Drawable_header + +#include "Magick++/Include.h" + +#include +#include +#include +#include +#include "Magick++/Color.h" +#include "Magick++/Geometry.h" + +#if defined(MagickDLLExplicitTemplate) +# if defined(MAGICK_PLUSPLUS_IMPLEMENTATION) +# define MagickDrawableExtern +# else +# pragma warning( disable: 4231 ) // Disable warning regarding using extern +# define MagickDrawableExtern extern +# endif // MAGICK_PLUSPLUS_IMPLEMENTATION +#else +# define MagickDrawableExtern +#endif // MagickDLLExplicitTemplate + +namespace Magick +{ + // + // Representation of an x,y coordinate + // + class MagickPPExport Coordinate + { + public: + + Coordinate(void) + : _x(0), + _y(0) {} + + Coordinate(double x_,double y_) + : _x(x_), + _y(y_) {} + + virtual ~Coordinate() {} + + void x(double x_) { _x=x_; } + double x(void) const { return _x; } + + void y(double y_) { _y=y_; } + double y(void) const { return _y; } + + private: + double _x; + double _y; + }; + + typedef std::vector CoordinateList; + +#if defined(MagickDLLExplicitTemplate) + + MagickDrawableExtern template class MagickPPExport + std::allocator; + +#endif // MagickDLLExplicitTemplate + + // Compare two Coordinate objects regardless of LHS/RHS + extern MagickPPExport int operator == + (const Coordinate& left_,const Coordinate& right_); + extern MagickPPExport int operator != + (const Coordinate& left_, const Coordinate& right_); + extern MagickPPExport int operator > + (const Coordinate& left_, const Coordinate& right_); + extern MagickPPExport int operator < + (const Coordinate& left_, const Coordinate& right_); + extern MagickPPExport int operator >= + (const Coordinate& left_, const Coordinate& right_); + extern MagickPPExport int operator <= + (const Coordinate& left_, const Coordinate& right_); + + // + // Base class for all drawable objects + // + class MagickPPExport DrawableBase + { + public: + + // Default constructor + DrawableBase(void); + + // Destructor + virtual ~DrawableBase(void); + + // Operator to invoke equivalent draw API call + virtual void operator()(MagickCore::DrawingWand *) const; + + // Return polymorphic copy of object + virtual DrawableBase* copy() const; + }; + + // + // Representation of a drawable surrogate object to manage drawable objects + // + #undef Drawable // Conflict with + class MagickPPExport Drawable + { + public: + + // Default constructor + Drawable(void); + + // Construct from DrawableBase + Drawable(const DrawableBase& original_); + + // Destructor + ~Drawable(void); + + // Copy constructor + Drawable(const Drawable& original_); + + // Assignment operator + Drawable& operator=(const Drawable& original_); + + // Operator to invoke contained object + void operator()(MagickCore::DrawingWand *) const; + + private: + DrawableBase* dp; + }; + + typedef std::vector DrawableList; + +#if defined(MagickDLLExplicitTemplate) + + MagickDrawableExtern template class MagickPPExport + std::allocator; + +#endif // MagickDLLExplicitTemplate + +// +// Base class for all drawable path elements for use with +// DrawablePath +// +class MagickPPExport VPathBase +{ +public: + // Constructor + VPathBase ( void ) + { } + + // Destructor + virtual ~VPathBase ( void ); + + // Assignment operator + // const VPathBase& operator= (const VPathBase& original_ ); + + // Operator to invoke equivalent draw API call + virtual void operator()( MagickCore::DrawingWand *context_ ) const = 0; + + // Return polymorphic copy of object + virtual VPathBase* copy() const = 0; +}; + +// +// Representation of a drawable path element surrogate object to +// manage drawable path elements so they may be passed as a list to +// DrawablePath. +// +class MagickPPExport VPath +{ +public: + // Constructor + VPath ( void ); + + // Construct from VPathBase + VPath ( const VPathBase& original_ ); + + // Destructor + virtual ~VPath ( void ); + + // Copy constructor + VPath ( const VPath& original_ ); + + // Assignment operator + VPath& operator= (const VPath& original_ ); + + // Operator to invoke contained object + void operator()( MagickCore::DrawingWand *context_ ) const; + +private: + VPathBase* dp; +}; + +typedef std::vector VPathList; + +#if defined(MagickDLLExplicitTemplate) + +MagickDrawableExtern template class MagickPPExport +std::allocator; + +// MagickDrawableExtern template class MagickPPExport +// std::vector >; + +#endif // MagickDLLExplicitTemplate + +// +// Drawable Objects +// + +// Affine (scaling, rotation, and translation) +class MagickPPExport DrawableAffine : public DrawableBase +{ +public: + DrawableAffine ( double sx_, double sy_, + double rx_, double ry_, + double tx_, double ty_ ); + + DrawableAffine ( void ); + + /*virtual*/ ~DrawableAffine( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ + DrawableBase* copy() const; + + void sx( const double sx_ ) + { + _affine.sx = sx_; + } + double sx( void ) const + { + return _affine.sx; + } + + void sy( const double sy_ ) + { + _affine.sy = sy_; + } + double sy( void ) const + { + return _affine.sy; + } + + void rx( const double rx_ ) + { + _affine.rx = rx_; + } + double rx( void ) const + { + return _affine.rx; + } + + void ry( const double ry_ ) + { + _affine.ry = ry_; + } + double ry( void ) const + { + return _affine.ry; + } + + void tx( const double tx_ ) + { + _affine.tx = tx_; + } + double tx( void ) const + { + return _affine.tx; + } + + void ty( const double ty_ ) + { + _affine.ty = ty_; + } + double ty( void ) const + { + return _affine.ty; + } + +private: + MagickCore::AffineMatrix _affine; +}; + +// Change pixel alpha value to transparent using PaintMethod +class MagickPPExport DrawableAlpha : public DrawableBase +{ +public: + + DrawableAlpha(double x_, double y_,PaintMethod paintMethod_) + : _x(x_), + _y(y_), + _paintMethod(paintMethod_) + { + } + + ~DrawableAlpha(void); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + + void x(double x_) + { + _x=x_; + } + + double x(void) const + { + return(_x); + } + + void y(double y_) + { + _y=y_; + } + + double y(void) const + { + return(_y); + } + + void paintMethod(PaintMethod paintMethod_) + { + _paintMethod=paintMethod_; + } + + PaintMethod paintMethod(void) const + { + return(_paintMethod); + } + + private: + + double _x; + double _y; + PaintMethod _paintMethod; +}; + +// Arc +class MagickPPExport DrawableArc : public DrawableBase +{ +public: + DrawableArc ( double startX_, double startY_, + double endX_, double endY_, + double startDegrees_, double endDegrees_ ) + : _startX(startX_), + _startY(startY_), + _endX(endX_), + _endY(endY_), + _startDegrees(startDegrees_), + _endDegrees(endDegrees_) + { } + + /*virtual*/ ~DrawableArc( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void startX( double startX_ ) + { + _startX = startX_; + } + double startX( void ) const + { + return _startX; + } + + void startY( double startY_ ) + { + _startY = startY_; + } + double startY( void ) const + { + return _startY; + } + + void endX( double endX_ ) + { + _endX = endX_; + } + double endX( void ) const + { + return _endX; + } + + void endY( double endY_ ) + { + _endY = endY_; + } + double endY( void ) const + { + return _endY; + } + + void startDegrees( double startDegrees_ ) + { + _startDegrees = startDegrees_; + } + double startDegrees( void ) const + { + return _startDegrees; + } + + void endDegrees( double endDegrees_ ) + { + _endDegrees = endDegrees_; + } + double endDegrees( void ) const + { + return _endDegrees; + } + +private: + double _startX; + double _startY; + double _endX; + double _endY; + double _startDegrees; + double _endDegrees; +}; + +// Bezier curve (Coordinate list must contain at least three members) +class MagickPPExport DrawableBezier : public DrawableBase +{ +public: + // Construct from coordinates + DrawableBezier ( const CoordinateList &coordinates_ ); + + // Copy constructor + DrawableBezier ( const DrawableBezier& original_ ); + + // Destructor + /*virtual*/ ~DrawableBezier ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +private: + CoordinateList _coordinates; +}; + + // Sets the border color to be used for drawing bordered objects. + class MagickPPExport DrawableBorderColor : public DrawableBase + { + public: + + DrawableBorderColor(const Color &color_); + + DrawableBorderColor(const DrawableBorderColor &original_); + + ~DrawableBorderColor(void); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + void color(const Color &color_); + Color color(void) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + + private: + Color _color; + }; + + // Sets the polygon fill rule to be used by the clipping path. + class MagickPPExport DrawableClipRule : public DrawableBase + { + public: + + DrawableClipRule(const FillRule fillRule_); + + ~DrawableClipRule(void); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + void fillRule(const FillRule fillRule_); + FillRule fillRule(void) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + + private: + FillRule _fillRule; + }; + + // Sets the interpretation of clip path units. + class MagickPPExport DrawableClipUnits : public DrawableBase + { + public: + + DrawableClipUnits(const ClipPathUnits units_); + + ~DrawableClipUnits(void); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + void units(const ClipPathUnits units_); + ClipPathUnits units(void) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + + private: + ClipPathUnits _units; + }; + +// Pop (terminate) clip path definition +class MagickPPExport DrawablePopClipPath : public DrawableBase +{ +public: + DrawablePopClipPath ( void ) + : _dummy(0) + { + } + + /*virtual*/ ~DrawablePopClipPath ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +private: + ::ssize_t _dummy; +}; + +// Push (create) Clip path definition +class MagickPPExport DrawablePushClipPath : public DrawableBase +{ +public: + DrawablePushClipPath ( const std::string &id_); + + DrawablePushClipPath ( const DrawablePushClipPath& original_ ); + + /*virtual*/ ~DrawablePushClipPath ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +private: + std::string _id; +}; + +// Named Clip Path +class MagickPPExport DrawableClipPath : public DrawableBase +{ +public: + DrawableClipPath ( const std::string &id_ ); + DrawableClipPath ( const DrawableClipPath& original_ ); + + /*virtual*/ ~DrawableClipPath ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void clip_path( const std::string &id_ ) + { + _id = id_.c_str(); //multithread safe + } + std::string clip_path( void ) const + { + return _id; + } + +private: + std::string _id; +}; + +// Circle +class MagickPPExport DrawableCircle : public DrawableBase +{ +public: + DrawableCircle ( double originX_, double originY_, + double perimX_, double perimY_ ) + : _originX(originX_), + _originY(originY_), + _perimX(perimX_), + _perimY(perimY_) + { + } + + /*virtual*/ ~DrawableCircle ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void originX( double originX_ ) + { + _originX = originX_; + } + double originX( void ) const + { + return _originX; + } + + void originY( double originY_ ) + { + _originY = originY_; + } + double originY( void ) const + { + return _originY; + } + + void perimX( double perimX_ ) + { + _perimX = perimX_; + } + double perimX( void ) const + { + return _perimX; + } + + void perimY( double perimY_ ) + { + _perimY = perimY_; + } + double perimY( void ) const + { + return _perimY; + } + +private: + double _originX; + double _originY; + double _perimX; + double _perimY; +}; + +// Colorize at point using PaintMethod +class MagickPPExport DrawableColor : public DrawableBase +{ +public: + DrawableColor ( double x_, double y_, + PaintMethod paintMethod_ ) + : _x(x_), + _y(y_), + _paintMethod(paintMethod_) + { } + + /*virtual*/ ~DrawableColor ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void x( double x_ ) + { + _x = x_; + } + double x( void ) const + { + return _x; + } + + void y( double y_ ) + { + _y = y_; + } + double y( void ) const + { + return _y; + } + + void paintMethod( PaintMethod paintMethod_ ) + { + _paintMethod = paintMethod_; + } + PaintMethod paintMethod( void ) const + { + return _paintMethod; + } + +private: + double _x; + double _y; + PaintMethod _paintMethod; +}; + +// Draw image at point, scaled to size specified by width and height +class MagickPPExport Image; +class MagickPPExport DrawableCompositeImage : public DrawableBase +{ +public: + DrawableCompositeImage ( double x_, double y_, + const std::string &filename_ ); + + DrawableCompositeImage ( double x_, double y_, + const Image &image_ ); + + DrawableCompositeImage ( double x_, double y_, + double width_, double height_, + const std::string &filename_ ); + + DrawableCompositeImage ( double x_, double y_, + double width_, double height_, + const Image &image_ ); + + DrawableCompositeImage ( double x_, double y_, + double width_, double height_, + const std::string &filename_, + CompositeOperator composition_ ); + + DrawableCompositeImage ( double x_, double y_, + double width_, double height_, + const Image &image_, + CompositeOperator composition_ ); + + // Copy constructor + DrawableCompositeImage ( const DrawableCompositeImage& original_ ); + + // Destructor + /*virtual*/ ~DrawableCompositeImage( void ); + + // Assignment operator + DrawableCompositeImage& operator= + (const DrawableCompositeImage& original_ ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void composition( CompositeOperator composition_ ) + { + _composition = composition_; + } + CompositeOperator composition( void ) const + { + return _composition; + } + + void filename( const std::string &image_ ); + std::string filename( void ) const; + + void x( double x_ ) + { + _x = x_; + } + double x( void ) const + { + return _x; + } + + void y( double y_ ) + { + _y = y_; + } + double y( void ) const + { + return _y; + } + + void width( double width_ ) + { + _width = width_; + } + double width( void ) const + { + return _width; + } + + void height( double height_ ) + { + _height = height_; + } + double height( void ) const + { + return _height; + } + + void image( const Image &image_ ); + Magick::Image image( void ) const; + + // Specify image format used to output Base64 inlined image data. + void magick( std::string magick_ ); + std::string magick( void ); + +private: + CompositeOperator _composition; + double _x; + double _y; + double _width; + double _height; + Image* _image; +}; + +// Density +class MagickPPExport DrawableDensity : public DrawableBase +{ +public: + + DrawableDensity(const Point &density_); + + DrawableDensity(const std::string &density_); + + ~DrawableDensity(void); + + void operator()(MagickCore::DrawingWand *context_) const; + + DrawableBase* copy() const; + +private: + std::string _density; +}; + +// Ellipse +class MagickPPExport DrawableEllipse : public DrawableBase +{ +public: + DrawableEllipse ( double originX_, double originY_, + double radiusX_, double radiusY_, + double arcStart_, double arcEnd_ ) + : _originX(originX_), + _originY(originY_), + _radiusX(radiusX_), + _radiusY(radiusY_), + _arcStart(arcStart_), + _arcEnd(arcEnd_) + { } + + /*virtual*/ ~DrawableEllipse( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void originX( double originX_ ) + { + _originX = originX_; + } + double originX( void ) const + { + return _originX; + } + + void originY( double originY_ ) + { + _originY = originY_; + } + double originY( void ) const + { + return _originY; + } + + void radiusX( double radiusX_ ) + { + _radiusX = radiusX_; + } + double radiusX( void ) const + { + return _radiusX; + } + + void radiusY( double radiusY_ ) + { + _radiusY = radiusY_; + } + double radiusY( void ) const + { + return _radiusY; + } + + void arcStart( double arcStart_ ) + { + _arcStart = arcStart_; + } + double arcStart( void ) const + { + return _arcStart; + } + + void arcEnd( double arcEnd_ ) + { + _arcEnd = arcEnd_; + } + double arcEnd( void ) const + { + return _arcEnd; + } + +private: + double _originX; + double _originY; + double _radiusX; + double _radiusY; + double _arcStart; + double _arcEnd; +}; + +// Specify drawing fill color +class MagickPPExport DrawableFillColor : public DrawableBase +{ +public: + DrawableFillColor ( const Color &color_ ); + + DrawableFillColor ( const DrawableFillColor& original_ ); + + /*virtual*/ ~DrawableFillColor( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void color( const Color &color_ ) + { + _color = color_; + } + Color color( void ) const + { + return _color; + } + +private: + Color _color; +}; + + // Sets the URL to use as a fill pattern for filling objects. Only local + // URLs("#identifier") are supported at this time. These local URLs are + // normally created by defining a named fill pattern with + // DrawablePushPattern/DrawablePopPattern. + class MagickPPExport DrawableFillPatternUrl : public DrawableBase + { + public: + + DrawableFillPatternUrl(const std::string &url_); + + ~DrawableFillPatternUrl(void); + + DrawableFillPatternUrl(const DrawableFillPatternUrl& original_); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + void url(const std::string &url_); + std::string url(void) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + + private: + std::string _url; + }; + +// Specify fill rule (fill-rule) +class MagickPPExport DrawableFillRule : public DrawableBase +{ +public: + DrawableFillRule ( const FillRule fillRule_ ) + : _fillRule(fillRule_) + { + } + + /*virtual*/ ~DrawableFillRule ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void fillRule( const FillRule fillRule_ ) + { + _fillRule = fillRule_; + } + FillRule fillRule( void ) const + { + return _fillRule; + } + +private: + FillRule _fillRule; +}; + +// Specify drawing fill alpha +class MagickPPExport DrawableFillOpacity : public DrawableBase +{ +public: + + DrawableFillOpacity(double opacity_) + : _opacity(opacity_) + { + } + + ~DrawableFillOpacity ( void ); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + + void opacity(double opacity_) + { + _opacity=opacity_; + } + + double opacity(void) const + { + return(_opacity); + } + +private: + double _opacity; +}; + +// Specify text font +class MagickPPExport DrawableFont : public DrawableBase +{ +public: + DrawableFont ( const std::string &font_ ); + + DrawableFont ( const std::string &family_, + StyleType style_, + const unsigned int weight_, + StretchType stretch_ ); + DrawableFont ( const DrawableFont& original_ ); + + /*virtual*/ ~DrawableFont ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void font( const std::string &font_ ) + { + _font = font_; + } + std::string font( void ) const + { + return _font; + } + +private: + std::string _font; + std::string _family; + StyleType _style; + unsigned int _weight; + StretchType _stretch; +}; + +// Specify text positioning gravity +class MagickPPExport DrawableGravity : public DrawableBase +{ +public: + DrawableGravity ( GravityType gravity_ ) + : _gravity(gravity_) + { + } + + /*virtual*/ ~DrawableGravity ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void gravity( GravityType gravity_ ) + { + _gravity = gravity_; + } + GravityType gravity( void ) const + { + return _gravity; + } + +private: + GravityType _gravity; +}; + +// Line +class MagickPPExport DrawableLine : public DrawableBase +{ +public: + DrawableLine ( double startX_, double startY_, + double endX_, double endY_ ) + : _startX(startX_), + _startY(startY_), + _endX(endX_), + _endY(endY_) + { } + + /*virtual*/ ~DrawableLine ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void startX( double startX_ ) + { + _startX = startX_; + } + double startX( void ) const + { + return _startX; + } + + void startY( double startY_ ) + { + _startY = startY_; + } + double startY( void ) const + { + return _startY; + } + + void endX( double endX_ ) + { + _endX = endX_; + } + double endX( void ) const + { + return _endX; + } + + void endY( double endY_ ) + { + _endY = endY_; + } + double endY( void ) const + { + return _endY; + } + +private: + double _startX; + double _startY; + double _endX; + double _endY; +}; + +// Drawable Path +class MagickPPExport DrawablePath : public DrawableBase +{ +public: + DrawablePath ( const VPathList &path_ ); + + DrawablePath ( const DrawablePath& original_ ); + + /*virtual*/ ~DrawablePath ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +private: + VPathList _path; +}; + +// Point +class MagickPPExport DrawablePoint : public DrawableBase +{ +public: + DrawablePoint ( double x_, double y_ ) + : _x(x_), + _y(y_) + { } + + /*virtual*/ ~DrawablePoint ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void x( double x_ ) + { + _x = x_; + } + double x( void ) const + { + return _x; + } + + void y( double y_ ) + { + _y = y_; + } + double y( void ) const + { + return _y; + } + +private: + double _x; + double _y; +}; + +// Text pointsize +class MagickPPExport DrawablePointSize : public DrawableBase +{ +public: + DrawablePointSize ( double pointSize_ ) + : _pointSize(pointSize_) + { } + + /*virtual*/ ~DrawablePointSize ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void pointSize( double pointSize_ ) + { + _pointSize = pointSize_; + } + double pointSize( void ) const + { + return _pointSize; + } + +private: + double _pointSize; +}; + +// Polygon (Coordinate list must contain at least three members) +class MagickPPExport DrawablePolygon : public DrawableBase +{ +public: + DrawablePolygon ( const CoordinateList &coordinates_ ); + + DrawablePolygon ( const DrawablePolygon& original_ ); + + /*virtual*/ ~DrawablePolygon ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +private: + CoordinateList _coordinates; +}; + +// Polyline (Coordinate list must contain at least three members) +class MagickPPExport DrawablePolyline : public DrawableBase +{ +public: + DrawablePolyline ( const CoordinateList &coordinates_ ); + + DrawablePolyline ( const DrawablePolyline& original_ ); + + /*virtual*/ ~DrawablePolyline ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +private: + CoordinateList _coordinates; +}; + +// Pop Graphic Context +class MagickPPExport DrawablePopGraphicContext : public DrawableBase +{ +public: + DrawablePopGraphicContext ( void ) + : _dummy(0) + { + } + + /*virtual*/ ~DrawablePopGraphicContext ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +private: + ::ssize_t _dummy; +}; + +// Push Graphic Context +class MagickPPExport DrawablePushGraphicContext : public DrawableBase +{ +public: + DrawablePushGraphicContext ( void ) + : _dummy(0) + { + } + + /*virtual*/ ~DrawablePushGraphicContext ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +private: + ::ssize_t _dummy; +}; + +// Pop (terminate) Pattern definition +class MagickPPExport DrawablePopPattern : public DrawableBase +{ +public: + DrawablePopPattern ( void ) + : _dummy(0) + { + } + + /*virtual*/ ~DrawablePopPattern ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +private: + ::ssize_t _dummy; +}; + +// Push (create) Pattern definition +class MagickPPExport DrawablePushPattern : public DrawableBase +{ +public: + DrawablePushPattern ( const std::string &id_, ::ssize_t x_, ::ssize_t y_, + size_t width_, size_t height_ ); + + DrawablePushPattern ( const DrawablePushPattern& original_ ); + + /*virtual*/ ~DrawablePushPattern ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +private: + std::string _id; + ::ssize_t _x; + ::ssize_t _y; + size_t _width; + size_t _height; +}; + +// Rectangle +class MagickPPExport DrawableRectangle : public DrawableBase +{ +public: + DrawableRectangle ( double upperLeftX_, double upperLeftY_, + double lowerRightX_, double lowerRightY_ ) + : _upperLeftX(upperLeftX_), + _upperLeftY(upperLeftY_), + _lowerRightX(lowerRightX_), + _lowerRightY(lowerRightY_) + { } + + /*virtual*/ ~DrawableRectangle ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void upperLeftX( double upperLeftX_ ) + { + _upperLeftX = upperLeftX_; + } + double upperLeftX( void ) const + { + return _upperLeftX; + } + + void upperLeftY( double upperLeftY_ ) + { + _upperLeftY = upperLeftY_; + } + double upperLeftY( void ) const + { + return _upperLeftY; + } + + void lowerRightX( double lowerRightX_ ) + { + _lowerRightX = lowerRightX_; + } + double lowerRightX( void ) const + { + return _lowerRightX; + } + + void lowerRightY( double lowerRightY_ ) + { + _lowerRightY = lowerRightY_; + } + double lowerRightY( void ) const + { + return _lowerRightY; + } + +private: + double _upperLeftX; + double _upperLeftY; + double _lowerRightX; + double _lowerRightY; +}; + +// Apply Rotation +class MagickPPExport DrawableRotation : public DrawableBase +{ +public: + DrawableRotation ( double angle_ ) + : _angle( angle_ ) + { } + + /*virtual*/ ~DrawableRotation ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void angle( double angle_ ) + { + _angle = angle_; + } + double angle( void ) const + { + return _angle; + } + +private: + double _angle; +}; + +// Round Rectangle +class MagickPPExport DrawableRoundRectangle : public DrawableBase +{ +public: + DrawableRoundRectangle ( double upperLeftX_, double upperLeftY_, + double lowerRightX_, double lowerRightY_, + double cornerWidth_, double cornerHeight_ ) + : _upperLeftX(upperLeftX_), + _upperLeftY(upperLeftY_), + _lowerRightX(lowerRightX_), + _lowerRightY(lowerRightY_), + _cornerWidth(cornerWidth_), + _cornerHeight(cornerHeight_) + { } + + /*virtual*/ ~DrawableRoundRectangle ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + +#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + + void centerX( double centerX_ ) + { + _upperLeftX = centerX_; + } + double centerX( void ) const + { + return _upperLeftX; + } + + void centerY( double centerY_ ) + { + _upperLeftY = centerY_; + } + double centerY( void ) const + { + return _upperLeftY; + } + + void width( double width_ ) + { + _lowerRightX = width_; + } + double width( void ) const + { + return _lowerRightX; + } + + void hight( double hight_ ) + { + _lowerRightY = hight_; + } + double hight( void ) const + { + return _lowerRightY; + } + +#endif + + void upperLeftX( double upperLeftX_ ) + { + _upperLeftX = upperLeftX_; + } + double upperLeftX( void ) const + { + return _upperLeftX; + } + + void upperLeftY( double upperLeftY_ ) + { + _upperLeftY = upperLeftY_; + } + double upperLeftY( void ) const + { + return _upperLeftY; + } + + void lowerRightX( double lowerRightX_ ) + { + _lowerRightX = lowerRightX_; + } + double lowerRightX( void ) const + { + return _lowerRightX; + } + + void lowerRightY( double lowerRightY_ ) + { + _lowerRightY = lowerRightY_; + } + double lowerRightY( void ) const + { + return _lowerRightY; + } + + void cornerWidth( double cornerWidth_ ) + { + _cornerWidth = cornerWidth_; + } + double cornerWidth( void ) const + { + return _cornerWidth; + } + + void cornerHeight( double cornerHeight_ ) + { + _cornerHeight = cornerHeight_; + } + double cornerHeight( void ) const + { + return _cornerHeight; + } + +private: + double _upperLeftX; + double _upperLeftY; + double _lowerRightX; + double _lowerRightY; + double _cornerWidth; + double _cornerHeight; +}; + +// Apply Scaling +class MagickPPExport DrawableScaling : public DrawableBase +{ +public: + DrawableScaling ( double x_, double y_ ) + : _x(x_), + _y(y_) + { } + + /*virtual*/ ~DrawableScaling ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void x( double x_ ) + { + _x = x_; + } + double x( void ) const + { + return _x; + } + + void y( double y_ ) + { + _y = y_; + } + double y( void ) const + { + return _y; + } + +private: + double _x; + double _y; +}; + +// Apply Skew in X direction +class MagickPPExport DrawableSkewX : public DrawableBase +{ +public: + DrawableSkewX ( double angle_ ) + : _angle(angle_) + { } + + /*virtual*/ ~DrawableSkewX ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void angle( double angle_ ) + { + _angle = angle_; + } + double angle( void ) const + { + return _angle; + } + +private: + double _angle; +}; + +// Apply Skew in Y direction +class MagickPPExport DrawableSkewY : public DrawableBase +{ +public: + DrawableSkewY ( double angle_ ) + : _angle(angle_) + { } + + /*virtual*/ ~DrawableSkewY ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void angle( double angle_ ) + { + _angle = angle_; + } + double angle( void ) const + { + return _angle; + } + +private: + double _angle; +}; + + // Stroke dasharray + // + // dasharray_ is an allocated array terminated by value 0.0 or 0. + // The array is copied so the original does not need to be preserved. + // Pass a null pointer to clear an existing dash array setting. + class MagickPPExport DrawableStrokeDashArray : public DrawableBase + { + public: + + DrawableStrokeDashArray(const double* dasharray_); + + DrawableStrokeDashArray(const Magick::DrawableStrokeDashArray &original_); + + ~DrawableStrokeDashArray(void); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + + void dasharray(const double* dasharray_); + const double* dasharray(void) const; + + DrawableStrokeDashArray& operator=( + const Magick::DrawableStrokeDashArray &original_); + + private: + size_t _size; + double *_dasharray; + }; + + // Stroke dashoffset + class MagickPPExport DrawableStrokeDashOffset : public DrawableBase + { + public: + DrawableStrokeDashOffset(const double offset_) + : _offset(offset_) + { } + + ~DrawableStrokeDashOffset(void); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + + void offset(const double offset_); + double offset(void) const; + + private: + double _offset; + }; + +// Stroke linecap +class MagickPPExport DrawableStrokeLineCap : public DrawableBase +{ +public: + DrawableStrokeLineCap ( LineCap linecap_ ) + : _linecap(linecap_) + { } + + /*virtual*/ ~DrawableStrokeLineCap ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void linecap( LineCap linecap_ ) + { + _linecap = linecap_; + } + LineCap linecap( void ) const + { + return _linecap; + } + +private: + LineCap _linecap; +}; + +// Stroke linejoin +class MagickPPExport DrawableStrokeLineJoin : public DrawableBase +{ +public: + DrawableStrokeLineJoin ( LineJoin linejoin_ ) + : _linejoin(linejoin_) + { } + + /*virtual*/ ~DrawableStrokeLineJoin ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void linejoin( LineJoin linejoin_ ) + { + _linejoin = linejoin_; + } + LineJoin linejoin( void ) const + { + return _linejoin; + } + +private: + LineJoin _linejoin; +}; + +// Stroke miterlimit +class MagickPPExport DrawableMiterLimit : public DrawableBase +{ +public: + DrawableMiterLimit ( size_t miterlimit_ ) + : _miterlimit(miterlimit_) + { } + + /*virtual*/ ~DrawableMiterLimit ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void miterlimit( size_t miterlimit_ ) + { + _miterlimit = miterlimit_; + } + size_t miterlimit( void ) const + { + return _miterlimit; + } + +private: + size_t _miterlimit; +}; + +// Sets the pattern used for stroking object outlines. +class MagickPPExport DrawableStrokePatternUrl : public DrawableBase +{ +public: + + DrawableStrokePatternUrl(const std::string &url_); + + ~DrawableStrokePatternUrl(void); + + DrawableStrokePatternUrl(const DrawableStrokePatternUrl& original_); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + void url(const std::string &url_); + std::string url(void) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + +private: + std::string _url; +}; + +// Stroke antialias +class MagickPPExport DrawableStrokeAntialias : public DrawableBase +{ +public: + DrawableStrokeAntialias ( bool flag_ ) + : _flag(flag_) + { } + + /*virtual*/ ~DrawableStrokeAntialias ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void flag( bool flag_ ) + { + _flag = flag_; + } + bool flag( void ) const + { + return _flag; + } + +private: + bool _flag; +}; + +// Stroke color +class MagickPPExport DrawableStrokeColor : public DrawableBase +{ +public: + DrawableStrokeColor ( const Color &color_ ); + + DrawableStrokeColor ( const DrawableStrokeColor& original_ ); + + /*virtual*/ ~DrawableStrokeColor ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void color( const Color& color_ ) + { + _color = color_; + } + Color color( void ) const + { + return _color; + } + +private: + Color _color; +}; + +// Stroke opacity +class MagickPPExport DrawableStrokeOpacity : public DrawableBase +{ +public: + + DrawableStrokeOpacity(double opacity_) + : _opacity(opacity_) + { + } + + ~DrawableStrokeOpacity(void); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + + void opacity(double opacity_) + { + _opacity=opacity_; + } + + double opacity(void) const + { + return(_opacity); + } + +private: + double _opacity; +}; + +// Stroke width +class MagickPPExport DrawableStrokeWidth : public DrawableBase +{ +public: + DrawableStrokeWidth ( double width_ ) + : _width(width_) + { } + + /*virtual*/ ~DrawableStrokeWidth ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void width( double width_ ) + { + _width = width_; + } + double width( void ) const + { + return _width; + } + +private: + double _width; +}; + +// Draw text at point +class MagickPPExport DrawableText : public DrawableBase +{ +public: + DrawableText ( const double x_, const double y_, + const std::string &text_ ); + DrawableText ( const double x_, const double y_, + const std::string &text_, const std::string &encoding_); + + DrawableText ( const DrawableText& original_ ); + + /*virtual*/ ~DrawableText ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void encoding(const std::string &encoding_) + { + _encoding = encoding_; + } + + void x( double x_ ) + { + _x = x_; + } + double x( void ) const + { + return _x; + } + + void y( double y_ ) + { + _y = y_; + } + double y( void ) const + { + return _y; + } + + void text( const std::string &text_ ) + { + _text = text_; + } + std::string text( void ) const + { + return _text; + } + +private: + double _x; + double _y; + std::string _text; + std::string _encoding; +}; + +// Text alignment +class MagickPPExport DrawableTextAlignment : public DrawableBase +{ +public: + + DrawableTextAlignment(AlignType alignment_); + + DrawableTextAlignment(const DrawableTextAlignment& original_); + + ~DrawableTextAlignment(void); + + // Operator to invoke equivalent draw API call + void operator()(MagickCore::DrawingWand *context_) const; + + void alignment(AlignType alignment_); + AlignType alignment(void) const; + + // Return polymorphic copy of object + DrawableBase* copy() const; + +private: + AlignType _alignment; +}; + +// Text antialias +class MagickPPExport DrawableTextAntialias : public DrawableBase +{ +public: + DrawableTextAntialias ( bool flag_ ); + + DrawableTextAntialias( const DrawableTextAntialias &original_ ); + + /*virtual*/ ~DrawableTextAntialias ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void flag( bool flag_ ) + { + _flag = flag_; + } + bool flag( void ) const + { + return _flag; + } + +private: + bool _flag; +}; + +// Decoration (text decoration) +class MagickPPExport DrawableTextDecoration : public DrawableBase +{ +public: + DrawableTextDecoration ( DecorationType decoration_ ); + + DrawableTextDecoration ( const DrawableTextDecoration& original_ ); + + /*virtual*/ ~DrawableTextDecoration( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void decoration( DecorationType decoration_ ) + { + _decoration = decoration_; + } + DecorationType decoration( void ) const + { + return _decoration; + } + +private: + DecorationType _decoration; +}; + + // Render text right-to-left or left-to-right. + class MagickPPExport DrawableTextDirection : public DrawableBase + { + public: + + DrawableTextDirection(DirectionType direction_); + + ~DrawableTextDirection(void); + + void operator()(MagickCore::DrawingWand *context_) const; + + void direction(DirectionType direction_); + DirectionType direction(void) const; + + DrawableBase* copy() const; + + private: + DirectionType _direction; + }; + + // Specify text inter-line spacing + class MagickPPExport DrawableTextInterlineSpacing : public DrawableBase + { + public: + + DrawableTextInterlineSpacing(double spacing_); + + ~DrawableTextInterlineSpacing(void); + + void operator()(MagickCore::DrawingWand *context_) const; + + void spacing(double spacing_); + double spacing(void) const; + + DrawableBase* copy() const; + + private: + double _spacing; + }; + + // Specify text inter-word spacing + class MagickPPExport DrawableTextInterwordSpacing : public DrawableBase + { + public: + + DrawableTextInterwordSpacing(double spacing_); + + ~DrawableTextInterwordSpacing(void); + + void operator()(MagickCore::DrawingWand *context_) const; + + void spacing(double spacing_); + double spacing(void) const; + + DrawableBase *copy() const; + + private: + double _spacing; + }; + + // Specify text kerning + class MagickPPExport DrawableTextKerning : public DrawableBase + { + public: + + DrawableTextKerning(double kerning_); + + ~DrawableTextKerning(void); + + void operator()(MagickCore::DrawingWand *context_) const; + + void kerning(double kerning_); + double kerning(void) const; + + DrawableBase *copy() const; + + private: + double _kerning; + }; + +// Text undercolor box +class MagickPPExport DrawableTextUnderColor : public DrawableBase +{ +public: + DrawableTextUnderColor ( const Color &color_ ); + + DrawableTextUnderColor ( const DrawableTextUnderColor& original_ ); + + /*virtual*/ ~DrawableTextUnderColor ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void color( const Color& color_ ) + { + _color = color_; + } + Color color( void ) const + { + return _color; + } + +private: + Color _color; +}; + +// Apply Translation +class MagickPPExport DrawableTranslation : public DrawableBase +{ +public: + DrawableTranslation ( double x_, double y_ ) + : _x(x_), + _y(y_) + { } + + /*virtual*/ ~DrawableTranslation ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ DrawableBase* copy() const; + + void x( double x_ ) + { + _x = x_; + } + double x( void ) const + { + return _x; + } + + void y( double y_ ) + { + _y = y_; + } + double y( void ) const + { + return _y; + } + +private: + double _x; + double _y; +}; + +// Set the size of the viewbox +class MagickPPExport DrawableViewbox : public DrawableBase +{ +public: + DrawableViewbox(::ssize_t x1_, ::ssize_t y1_, + ::ssize_t x2_, ::ssize_t y2_) + : _x1(x1_), + _y1(y1_), + _x2(x2_), + _y2(y2_) { } + + /*virtual*/ ~DrawableViewbox ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ + DrawableBase* copy() const; + + void x1( ::ssize_t x1_ ) + { + _x1 = x1_; + } + ::ssize_t x1( void ) const + { + return _x1; + } + + void y1( ::ssize_t y1_ ) + { + _y1 = y1_; + } + ::ssize_t y1( void ) const + { + return _y1; + } + + void x2( ::ssize_t x2_ ) + { + _x2 = x2_; + } + ::ssize_t x2( void ) const + { + return _x2; + } + + void y2( ::ssize_t y2_ ) + { + _y2 = y2_; + } + ::ssize_t y2( void ) const + { + return _y2; + } + +private: + ::ssize_t _x1; + ::ssize_t _y1; + ::ssize_t _x2; + ::ssize_t _y2; +}; + +// +// Path Element Classes To Support DrawablePath +// +class MagickPPExport PathArcArgs +{ +public: + PathArcArgs( void ); + + PathArcArgs( double radiusX_, double radiusY_, + double xAxisRotation_, bool largeArcFlag_, + bool sweepFlag_, double x_, double y_ ); + + PathArcArgs( const PathArcArgs &original_ ); + + ~PathArcArgs ( void ); + + void radiusX( double radiusX_ ) + { + _radiusX = radiusX_; + } + double radiusX( void ) const + { + return _radiusX; + } + + void radiusY( double radiusY_ ) + { + _radiusY = radiusY_; + } + double radiusY( void ) const + { + return _radiusY; + } + + void xAxisRotation( double xAxisRotation_ ) + { + _xAxisRotation = xAxisRotation_; + } + double xAxisRotation( void ) const + { + return _xAxisRotation; + } + + void largeArcFlag( bool largeArcFlag_ ) + { + _largeArcFlag = largeArcFlag_; + } + bool largeArcFlag( void ) const + { + return _largeArcFlag; + } + + void sweepFlag( bool sweepFlag_ ) + { + _sweepFlag = sweepFlag_; + } + bool sweepFlag( void ) const + { + return _sweepFlag; + } + + void x( double x_ ) + { + _x = x_; + } + double x( void ) const + { + return _x; + } + + void y( double y_ ) + { + _y = y_; + } + double y( void ) const + { + return _y; + } + +private: + double _radiusX; // X radius + double _radiusY; // Y radius + double _xAxisRotation; // Rotation relative to X axis + bool _largeArcFlag; // Draw longer of the two matching arcs + bool _sweepFlag; // Draw arc matching clock-wise rotation + double _x; // End-point X + double _y; // End-point Y +}; + +// Compare two PathArcArgs objects regardless of LHS/RHS +extern MagickPPExport int operator == ( const PathArcArgs& left_, + const PathArcArgs& right_ ); +extern MagickPPExport int operator != ( const PathArcArgs& left_, + const PathArcArgs& right_ ); +extern MagickPPExport int operator > ( const PathArcArgs& left_, + const PathArcArgs& right_ ); +extern MagickPPExport int operator < ( const PathArcArgs& left_, + const PathArcArgs& right_ ); +extern MagickPPExport int operator >= ( const PathArcArgs& left_, + const PathArcArgs& right_ ); +extern MagickPPExport int operator <= ( const PathArcArgs& left_, + const PathArcArgs& right_ ); + +typedef std::vector PathArcArgsList; + +#if defined(MagickDLLExplicitTemplate) + +MagickDrawableExtern template class MagickPPExport +std::allocator; + +// MagickDrawableExtern template class MagickPPExport +// std::vector >; + +#endif // MagickDLLExplicitTemplate + +// Path Arc (Elliptical Arc) +class MagickPPExport PathArcAbs : public VPathBase +{ +public: + // Draw a single arc segment + PathArcAbs ( const PathArcArgs &coordinates_ ); + + // Draw multiple arc segments + PathArcAbs ( const PathArcArgsList &coordinates_ ); + + // Copy constructor + PathArcAbs ( const PathArcAbs& original_ ); + + // Destructor + /*virtual*/ ~PathArcAbs ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + PathArcArgsList _coordinates; +}; +class MagickPPExport PathArcRel : public VPathBase +{ +public: + // Draw a single arc segment + PathArcRel ( const PathArcArgs &coordinates_ ); + + // Draw multiple arc segments + PathArcRel ( const PathArcArgsList &coordinates_ ); + + PathArcRel ( const PathArcRel& original_ ); + + /*virtual*/ ~PathArcRel ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + PathArcArgsList _coordinates; +}; + +// Path Closepath +class MagickPPExport PathClosePath : public VPathBase +{ +public: + PathClosePath ( void ) + : _dummy(0) + { + } + + /*virtual*/ ~PathClosePath ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + ::ssize_t _dummy; +}; + +// +// Curveto (Cubic Bezier) +// +class MagickPPExport PathCurvetoArgs +{ +public: + PathCurvetoArgs( void ); + + PathCurvetoArgs( double x1_, double y1_, + double x2_, double y2_, + double x_, double y_ ); + + PathCurvetoArgs( const PathCurvetoArgs &original_ ); + + ~PathCurvetoArgs ( void ); + + void x1( double x1_ ) + { + _x1 = x1_; + } +double x1( void ) const +{ + return _x1; +} + +void y1( double y1_ ) +{ + _y1 = y1_; +} +double y1( void ) const +{ + return _y1; +} + +void x2( double x2_ ) +{ + _x2 = x2_; +} +double x2( void ) const +{ + return _x2; +} + +void y2( double y2_ ) +{ + _y2 = y2_; +} +double y2( void ) const +{ + return _y2; +} + +void x( double x_ ) +{ + _x = x_; +} +double x( void ) const +{ + return _x; +} + +void y( double y_ ) +{ + _y = y_; +} +double y( void ) const +{ + return _y; +} + +private: +double _x1; +double _y1; +double _x2; +double _y2; +double _x; +double _y; +}; + +// Compare two PathCurvetoArgs objects regardless of LHS/RHS +extern MagickPPExport int operator == ( const PathCurvetoArgs& left_, + const PathCurvetoArgs& right_ ); +extern MagickPPExport int operator != ( const PathCurvetoArgs& left_, + const PathCurvetoArgs& right_ ); +extern MagickPPExport int operator > ( const PathCurvetoArgs& left_, + const PathCurvetoArgs& right_ ); +extern MagickPPExport int operator < ( const PathCurvetoArgs& left_, + const PathCurvetoArgs& right_ ); +extern MagickPPExport int operator >= ( const PathCurvetoArgs& left_, + const PathCurvetoArgs& right_ ); +extern MagickPPExport int operator <= ( const PathCurvetoArgs& left_, + const PathCurvetoArgs& right_ ); + +typedef std::vector PathCurveToArgsList; + +#if defined(MagickDLLExplicitTemplate) + +MagickDrawableExtern template class MagickPPExport +std::allocator; + +// MagickDrawableExtern template class MagickPPExport +// std::vector >; + +#endif // MagickDLLExplicitTemplate + +class MagickPPExport PathCurvetoAbs : public VPathBase +{ +public: + // Draw a single curve + PathCurvetoAbs ( const PathCurvetoArgs &args_ ); + + // Draw multiple curves + PathCurvetoAbs ( const PathCurveToArgsList &args_ ); + + // Copy constructor + PathCurvetoAbs ( const PathCurvetoAbs& original_ ); + + // Destructor + /*virtual*/ ~PathCurvetoAbs ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + PathCurveToArgsList _args; +}; +class MagickPPExport PathCurvetoRel : public VPathBase +{ +public: + // Draw a single curve + PathCurvetoRel ( const PathCurvetoArgs &args_ ); + + // Draw multiple curves + PathCurvetoRel ( const PathCurveToArgsList &args_ ); + + // Copy constructor + PathCurvetoRel ( const PathCurvetoRel& original_ ); + + /*virtual*/ ~PathCurvetoRel ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + PathCurveToArgsList _args; +}; +class MagickPPExport PathSmoothCurvetoAbs : public VPathBase +{ +public: + // Draw a single curve + PathSmoothCurvetoAbs ( const Magick::Coordinate &coordinates_ ); + + // Draw multiple curves + PathSmoothCurvetoAbs ( const CoordinateList &coordinates_ ); + + // Copy constructor + PathSmoothCurvetoAbs ( const PathSmoothCurvetoAbs& original_ ); + + /*virtual*/ ~PathSmoothCurvetoAbs ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ + VPathBase* copy() const; + +private: + CoordinateList _coordinates; +}; +class MagickPPExport PathSmoothCurvetoRel : public VPathBase +{ +public: + // Draw a single curve + PathSmoothCurvetoRel ( const Coordinate &coordinates_ ); + + // Draw multiple curves + PathSmoothCurvetoRel ( const CoordinateList &coordinates_ ); + + // Copy constructor + PathSmoothCurvetoRel ( const PathSmoothCurvetoRel& original_ ); + + // Destructor + /*virtual*/ ~PathSmoothCurvetoRel ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ + VPathBase* copy() const; + +private: + CoordinateList _coordinates; +}; + +// +// Quadratic Curveto (Quadratic Bezier) +// +class MagickPPExport PathQuadraticCurvetoArgs +{ +public: + PathQuadraticCurvetoArgs( void ); + + PathQuadraticCurvetoArgs( double x1_, double y1_, + double x_, double y_ ); + + PathQuadraticCurvetoArgs( const PathQuadraticCurvetoArgs &original_ ); + + ~PathQuadraticCurvetoArgs ( void ); + + void x1( double x1_ ) + { + _x1 = x1_; + } + double x1( void ) const + { + return _x1; + } + + void y1( double y1_ ) + { + _y1 = y1_; + } + double y1( void ) const + { + return _y1; + } + + void x( double x_ ) + { + _x = x_; + } + double x( void ) const + { + return _x; + } + + void y( double y_ ) + { + _y = y_; + } + double y( void ) const + { + return _y; + } + +private: + double _x1; + double _y1; + double _x; + double _y; +}; + +// Compare two PathQuadraticCurvetoArgs objects regardless of LHS/RHS +extern MagickPPExport int operator == ( const PathQuadraticCurvetoArgs& left_, + const PathQuadraticCurvetoArgs& right_ ); +extern MagickPPExport int operator != ( const PathQuadraticCurvetoArgs& left_, + const PathQuadraticCurvetoArgs& right_); +extern MagickPPExport int operator > ( const PathQuadraticCurvetoArgs& left_, + const PathQuadraticCurvetoArgs& right_); +extern MagickPPExport int operator < ( const PathQuadraticCurvetoArgs& left_, + const PathQuadraticCurvetoArgs& right_); +extern MagickPPExport int operator >= ( const PathQuadraticCurvetoArgs& left_, + const PathQuadraticCurvetoArgs& right_ ); +extern MagickPPExport int operator <= ( const PathQuadraticCurvetoArgs& left_, + const PathQuadraticCurvetoArgs& right_ ); + +typedef std::vector PathQuadraticCurvetoArgsList; + +#if defined(MagickDLLExplicitTemplate) + +MagickDrawableExtern template class MagickPPExport +std::allocator; + +// MagickDrawableExtern template class MagickPPExport +// std::vector >; + +#endif // MagickDLLExplicitTemplate + +class MagickPPExport PathQuadraticCurvetoAbs : public VPathBase +{ +public: + // Draw a single curve + PathQuadraticCurvetoAbs ( const Magick::PathQuadraticCurvetoArgs &args_ ); + + // Draw multiple curves + PathQuadraticCurvetoAbs ( const PathQuadraticCurvetoArgsList &args_ ); + + // Copy constructor + PathQuadraticCurvetoAbs ( const PathQuadraticCurvetoAbs& original_ ); + + // Destructor + /*virtual*/ ~PathQuadraticCurvetoAbs ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + PathQuadraticCurvetoArgsList _args; +}; +class MagickPPExport PathQuadraticCurvetoRel : public VPathBase +{ +public: + // Draw a single curve + PathQuadraticCurvetoRel ( const Magick::PathQuadraticCurvetoArgs &args_ ); + + // Draw multiple curves + PathQuadraticCurvetoRel ( const PathQuadraticCurvetoArgsList &args_ ); + + // Copy constructor + PathQuadraticCurvetoRel ( const PathQuadraticCurvetoRel& original_ ); + + // Destructor + /*virtual*/ ~PathQuadraticCurvetoRel ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + PathQuadraticCurvetoArgsList _args; +}; +class MagickPPExport PathSmoothQuadraticCurvetoAbs : public VPathBase +{ +public: + // Draw a single curve + PathSmoothQuadraticCurvetoAbs ( const Magick::Coordinate &coordinate_ ); + + // Draw multiple curves + PathSmoothQuadraticCurvetoAbs ( const CoordinateList &coordinates_ ); + + // Copy constructor + PathSmoothQuadraticCurvetoAbs ( const PathSmoothQuadraticCurvetoAbs& original_ ); + + // Destructor + /*virtual*/ ~PathSmoothQuadraticCurvetoAbs ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + CoordinateList _coordinates; +}; +class MagickPPExport PathSmoothQuadraticCurvetoRel : public VPathBase +{ +public: + // Draw a single curve + PathSmoothQuadraticCurvetoRel ( const Magick::Coordinate &coordinate_ ); + + // Draw multiple curves + PathSmoothQuadraticCurvetoRel ( const CoordinateList &coordinates_ ); + + // Copy constructor + PathSmoothQuadraticCurvetoRel ( const PathSmoothQuadraticCurvetoRel& original_ ); + + // Destructor + /*virtual*/ ~PathSmoothQuadraticCurvetoRel ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + CoordinateList _coordinates; +}; + +// +// Path Lineto +// +class MagickPPExport PathLinetoAbs : public VPathBase +{ +public: + // Draw to a single point + PathLinetoAbs ( const Magick::Coordinate& coordinate_ ); + + // Draw to multiple points + PathLinetoAbs ( const CoordinateList &coordinates_ ); + + // Copy constructor + PathLinetoAbs ( const PathLinetoAbs& original_ ); + + // Destructor + /*virtual*/ ~PathLinetoAbs ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + CoordinateList _coordinates; +}; +class MagickPPExport PathLinetoRel : public VPathBase +{ +public: + // Draw to a single point + PathLinetoRel ( const Magick::Coordinate& coordinate_ ); + + // Draw to multiple points + PathLinetoRel ( const CoordinateList &coordinates_ ); + + // Copy constructor + PathLinetoRel ( const PathLinetoRel& original_ ); + + // Destructor + /*virtual*/ ~PathLinetoRel ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + CoordinateList _coordinates; +}; + +// Path Horizontal Lineto +class MagickPPExport PathLinetoHorizontalAbs : public VPathBase +{ +public: + PathLinetoHorizontalAbs ( double x_ ) + : _x(x_) + { + } + + /*virtual*/ ~PathLinetoHorizontalAbs ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + + void x( double x_ ) + { + _x = x_; + } + double x( void ) const + { + return _x; + } + +private: + double _x; +}; +class MagickPPExport PathLinetoHorizontalRel : public VPathBase +{ +public: + PathLinetoHorizontalRel ( double x_ ) + : _x(x_) + { + } + + /*virtual*/ ~PathLinetoHorizontalRel ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + + void x( double x_ ) + { + _x = x_; + } + double x( void ) const + { + return _x; + } + +private: + double _x; +}; + +// Path Vertical Lineto +class MagickPPExport PathLinetoVerticalAbs : public VPathBase +{ +public: + PathLinetoVerticalAbs ( double y_ ) + : _y(y_) + { + } + + /*virtual*/ ~PathLinetoVerticalAbs ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + + void y( double y_ ) + { + _y = y_; + } + double y( void ) const + { + return _y; + } + +private: + double _y; +}; +class MagickPPExport PathLinetoVerticalRel : public VPathBase +{ +public: + PathLinetoVerticalRel ( double y_ ) + : _y(y_) + { + } + + /*virtual*/ ~PathLinetoVerticalRel ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + + void y( double y_ ) + { + _y = y_; + } + double y( void ) const + { + return _y; + } + +private: + double _y; +}; + +// Path Moveto +class MagickPPExport PathMovetoAbs : public VPathBase +{ +public: + // Simple moveto + PathMovetoAbs ( const Magick::Coordinate &coordinate_ ); + + // Moveto followed by implicit linetos + PathMovetoAbs ( const CoordinateList &coordinates_ ); + + // Copy constructor + PathMovetoAbs ( const PathMovetoAbs& original_ ); + + // Destructor + /*virtual*/ ~PathMovetoAbs ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + CoordinateList _coordinates; +}; +class MagickPPExport PathMovetoRel : public VPathBase +{ +public: + // Simple moveto + PathMovetoRel ( const Magick::Coordinate &coordinate_ ); + + // Moveto followed by implicit linetos + PathMovetoRel ( const CoordinateList &coordinates_ ); + + // Copy constructor + PathMovetoRel ( const PathMovetoRel& original_ ); + + // Destructor + /*virtual*/ ~PathMovetoRel ( void ); + + // Operator to invoke equivalent draw API call + /*virtual*/ void operator()( MagickCore::DrawingWand *context_ ) const; + + // Return polymorphic copy of object + /*virtual*/ VPathBase* copy() const; + +private: + CoordinateList _coordinates; +}; + +} // namespace Magick + +#endif // Magick_Drawable_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Exception.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Exception.h new file mode 100644 index 0000000000000000000000000000000000000000..e93b561c691d9fb45f62d2143950849bc2a0ae58 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Exception.h @@ -0,0 +1,427 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 +// +// Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Definition of Magick::Exception and derived classes +// Magick::Warning* and Magick::Error*. Derived from C++ STD +// 'exception' class for convenience. +// +// These classes form part of the Magick++ user interface. +// + +#if !defined(Magick_Exception_header) +#define Magick_Exception_header + +#include "Magick++/Include.h" +#include +#include + +namespace Magick +{ + class MagickPPExport Exception: public std::exception + { + public: + + // Construct with message string + Exception(const std::string& what_); + + // Construct with message string and nested exception + Exception(const std::string& what_, Exception* nested_); + + // Copy constructor + Exception(const Exception& original_); + + // Destructor + virtual ~Exception() throw(); + + // Assignment operator + Exception& operator=(const Exception& original_); + + // Get string identifying exception + virtual const char* what() const throw(); + + // Get nested exception + const Exception* nested() const throw(); + + ////////////////////////////////////////////////////////////////////// + // + // No user-serviceable parts beyond this point + // + ////////////////////////////////////////////////////////////////////// + + void nested(Exception* nested_) throw(); + + private: + std::string _what; + Exception* _nested; + }; + + // + // Error exceptions + // + + class MagickPPExport Error: public Exception + { + public: + explicit Error(const std::string& what_); + explicit Error(const std::string& what_,Exception *nested_); + ~Error() throw(); + }; + + class MagickPPExport ErrorBlob: public Error + { + public: + explicit ErrorBlob(const std::string& what_); + explicit ErrorBlob(const std::string& what_,Exception *nested_); + ~ErrorBlob() throw(); + }; + + class MagickPPExport ErrorCache: public Error + { + public: + explicit ErrorCache(const std::string& what_); + explicit ErrorCache(const std::string& what_,Exception *nested_); + ~ErrorCache() throw(); + }; + + class MagickPPExport ErrorCoder: public Error + { + public: + explicit ErrorCoder(const std::string& what_); + explicit ErrorCoder(const std::string& what_,Exception *nested_); + ~ErrorCoder() throw(); + }; + + class MagickPPExport ErrorConfigure: public Error + { + public: + explicit ErrorConfigure(const std::string& what_); + explicit ErrorConfigure(const std::string& what_,Exception *nested_); + ~ErrorConfigure() throw(); + }; + + class MagickPPExport ErrorCorruptImage: public Error + { + public: + explicit ErrorCorruptImage(const std::string& what_); + explicit ErrorCorruptImage(const std::string& what_,Exception *nested_); + ~ErrorCorruptImage() throw(); + }; + + class MagickPPExport ErrorDelegate: public Error + { + public: + explicit ErrorDelegate(const std::string& what_); + explicit ErrorDelegate(const std::string& what_,Exception *nested_); + ~ErrorDelegate() throw(); + }; + + class MagickPPExport ErrorDraw: public Error + { + public: + explicit ErrorDraw(const std::string& what_); + explicit ErrorDraw(const std::string& what_,Exception *nested_); + ~ErrorDraw() throw(); + }; + + class MagickPPExport ErrorFileOpen: public Error + { + public: + explicit ErrorFileOpen(const std::string& what_); + explicit ErrorFileOpen(const std::string& what_,Exception *nested_); + ~ErrorFileOpen() throw(); + }; + + class MagickPPExport ErrorImage: public Error + { + public: + explicit ErrorImage(const std::string& what_); + explicit ErrorImage(const std::string& what_,Exception *nested_); + ~ErrorImage() throw(); + }; + + class MagickPPExport ErrorMissingDelegate: public Error + { + public: + explicit ErrorMissingDelegate(const std::string& what_); + explicit ErrorMissingDelegate(const std::string& what_,Exception *nested_); + ~ErrorMissingDelegate() throw(); + }; + + class MagickPPExport ErrorModule: public Error + { + public: + explicit ErrorModule(const std::string& what_); + explicit ErrorModule(const std::string& what_,Exception *nested_); + ~ErrorModule() throw(); + }; + + class MagickPPExport ErrorMonitor: public Error + { + public: + explicit ErrorMonitor(const std::string& what_); + explicit ErrorMonitor(const std::string& what_,Exception *nested_); + ~ErrorMonitor() throw(); + }; + + class MagickPPExport ErrorOption: public Error + { + public: + explicit ErrorOption(const std::string& what_); + explicit ErrorOption(const std::string& what_,Exception *nested_); + ~ErrorOption() throw(); + }; + + class MagickPPExport ErrorPolicy: public Error + { + public: + explicit ErrorPolicy(const std::string& what_); + explicit ErrorPolicy(const std::string& what_,Exception *nested_); + ~ErrorPolicy() throw(); + }; + + class MagickPPExport ErrorRegistry: public Error + { + public: + explicit ErrorRegistry(const std::string& what_); + explicit ErrorRegistry(const std::string& what_,Exception *nested_); + ~ErrorRegistry() throw(); + }; + + class MagickPPExport ErrorResourceLimit: public Error + { + public: + explicit ErrorResourceLimit(const std::string& what_); + explicit ErrorResourceLimit(const std::string& what_,Exception *nested_); + ~ErrorResourceLimit() throw(); + }; + + class MagickPPExport ErrorStream: public Error + { + public: + explicit ErrorStream(const std::string& what_); + explicit ErrorStream(const std::string& what_,Exception *nested_); + ~ErrorStream() throw(); + }; + + class MagickPPExport ErrorType: public Error + { + public: + explicit ErrorType(const std::string& what_); + explicit ErrorType(const std::string& what_,Exception *nested_); + ~ErrorType() throw(); + }; + + class MagickPPExport ErrorUndefined: public Error + { + public: + explicit ErrorUndefined(const std::string& what_); + explicit ErrorUndefined(const std::string& what_,Exception *nested_); + ~ErrorUndefined() throw(); + }; + + class MagickPPExport ErrorXServer: public Error + { + public: + explicit ErrorXServer(const std::string& what_); + explicit ErrorXServer(const std::string& what_,Exception *nested_); + ~ErrorXServer() throw(); + }; + + // + // Warnings + // + + class MagickPPExport Warning: public Exception + { + public: + explicit Warning(const std::string& what_); + explicit Warning(const std::string& what_,Exception *nested_); + ~Warning() throw(); + }; + + class MagickPPExport WarningBlob: public Warning + { + public: + explicit WarningBlob(const std::string& what_); + explicit WarningBlob(const std::string& what_,Exception *nested_); + ~WarningBlob() throw(); + }; + + class MagickPPExport WarningCache: public Warning + { + public: + explicit WarningCache(const std::string& what_); + explicit WarningCache(const std::string& what_,Exception *nested_); + ~WarningCache() throw(); + }; + + class MagickPPExport WarningCoder: public Warning + { + public: + explicit WarningCoder(const std::string& what_); + explicit WarningCoder(const std::string& what_,Exception *nested_); + ~WarningCoder() throw(); + }; + + class MagickPPExport WarningConfigure: public Warning + { + public: + explicit WarningConfigure(const std::string& what_); + explicit WarningConfigure(const std::string& what_,Exception *nested_); + ~WarningConfigure() throw(); + }; + + class MagickPPExport WarningCorruptImage: public Warning + { + public: + explicit WarningCorruptImage(const std::string& what_); + explicit WarningCorruptImage(const std::string& what_,Exception *nested_); + ~WarningCorruptImage() throw(); + }; + + class MagickPPExport WarningDelegate: public Warning + { + public: + explicit WarningDelegate(const std::string& what_); + explicit WarningDelegate(const std::string& what_,Exception *nested_); + ~WarningDelegate() throw(); + }; + + class MagickPPExport WarningDraw : public Warning + { + public: + explicit WarningDraw(const std::string& what_); + explicit WarningDraw(const std::string& what_,Exception *nested_); + ~WarningDraw() throw(); + }; + + class MagickPPExport WarningFileOpen: public Warning + { + public: + explicit WarningFileOpen(const std::string& what_); + explicit WarningFileOpen(const std::string& what_,Exception *nested_); + ~WarningFileOpen() throw(); + }; + + class MagickPPExport WarningImage: public Warning + { + public: + explicit WarningImage(const std::string& what_); + explicit WarningImage(const std::string& what_,Exception *nested_); + ~WarningImage() throw(); + }; + + class MagickPPExport WarningMissingDelegate: public Warning + { + public: + explicit WarningMissingDelegate(const std::string& what_); + explicit WarningMissingDelegate(const std::string& what_, + Exception *nested_); + ~WarningMissingDelegate() throw(); + }; + + class MagickPPExport WarningModule: public Warning + { + public: + explicit WarningModule(const std::string& what_); + explicit WarningModule(const std::string& what_,Exception *nested_); + ~WarningModule() throw(); + }; + + class MagickPPExport WarningMonitor: public Warning + { + public: + explicit WarningMonitor(const std::string& what_); + explicit WarningMonitor(const std::string& what_,Exception *nested_); + ~WarningMonitor() throw(); + }; + + class MagickPPExport WarningOption: public Warning + { + public: + explicit WarningOption(const std::string& what_); + explicit WarningOption(const std::string& what_,Exception *nested_); + ~WarningOption() throw(); + }; + + class MagickPPExport WarningPolicy: public Warning + { + public: + explicit WarningPolicy(const std::string& what_); + explicit WarningPolicy(const std::string& what_,Exception *nested_); + ~WarningPolicy() throw(); + }; + + class MagickPPExport WarningRegistry: public Warning + { + public: + explicit WarningRegistry(const std::string& what_); + explicit WarningRegistry(const std::string& what_,Exception *nested_); + ~WarningRegistry() throw(); + }; + + class MagickPPExport WarningResourceLimit: public Warning + { + public: + explicit WarningResourceLimit(const std::string& what_); + explicit WarningResourceLimit(const std::string& what_,Exception *nested_); + ~WarningResourceLimit() throw(); + }; + + class MagickPPExport WarningStream: public Warning + { + public: + explicit WarningStream(const std::string& what_); + explicit WarningStream(const std::string& what_,Exception *nested_); + ~WarningStream() throw(); + }; + + class MagickPPExport WarningType: public Warning + { + public: + explicit WarningType(const std::string& what_); + explicit WarningType(const std::string& what_,Exception *nested_); + ~WarningType() throw(); + }; + + class MagickPPExport WarningUndefined: public Warning + { + public: + explicit WarningUndefined(const std::string& what_); + explicit WarningUndefined(const std::string& what_,Exception *nested_); + ~WarningUndefined() throw(); + }; + + class MagickPPExport WarningXServer: public Warning + { + public: + explicit WarningXServer(const std::string& what_); + explicit WarningXServer(const std::string& what_,Exception *nested_); + ~WarningXServer() throw(); + }; + + // + // No user-serviceable components beyond this point. + // + + std::string formatExceptionMessage( + const MagickCore::ExceptionInfo *exception_); + + Exception* createException(const MagickCore::ExceptionInfo *exception_); + + // Throw exception based on raw data + extern MagickPPExport void throwExceptionExplicit( + const MagickCore::ExceptionType severity_,const char* reason_, + const char* description_=(char *) NULL); + + // Thow exception based on ImageMagick's ExceptionInfo + extern MagickPPExport void throwException( + MagickCore::ExceptionInfo *exception_,const bool quiet_=false); + +} // namespace Magick + +#endif // Magick_Exception_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Functions.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Functions.h new file mode 100644 index 0000000000000000000000000000000000000000..d992ee15138f988f0950dfd938fdf847c0b1542d --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Functions.h @@ -0,0 +1,42 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2003 +// +// Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Simple C++ function wrappers for often used or otherwise +// inconvenient ImageMagick equivalents +// + +#if !defined(Magick_Functions_header) +#define Magick_Functions_header + +#include "Magick++/Include.h" +#include + +namespace Magick +{ + // Clone C++ string as allocated C string, de-allocating any existing string + MagickPPExport void CloneString(char **destination_, + const std::string &source_); + + // Disable OpenCL acceleration (only works when build with OpenCL support) + MagickPPExport void DisableOpenCL(void); + + // Enable OpenCL acceleration (only works when build with OpenCL support) + MagickPPExport bool EnableOpenCL(void); + + // C library initialization routine + MagickPPExport void InitializeMagick(const char *path_); + + // Seed a new sequence of pseudo-random numbers + MagickPPExport void SetRandomSeed(const unsigned long seed); + + // Set the ImageMagick security policy. + MagickPPExport bool SetSecurityPolicy(const std::string &policy_); + + // C library initialization routine + MagickPPExport void TerminateMagick(); +} +#endif // Magick_Functions_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Geometry.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Geometry.h new file mode 100644 index 0000000000000000000000000000000000000000..1b8d3772e4f673d0cc9b6595a45eb93c211a6efc --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Geometry.h @@ -0,0 +1,263 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002 +// +// Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Geometry Definition +// +// Representation of an ImageMagick geometry specification +// X11 geometry specification plus hints + +#if !defined (Magick_Geometry_header) +#define Magick_Geometry_header + +#include "Magick++/Include.h" +#include + +namespace Magick +{ + class MagickPPExport Geometry; + + // Compare two Geometry objects regardless of LHS/RHS + MagickPPExport int operator == + (const Magick::Geometry& left_,const Magick::Geometry& right_); + MagickPPExport int operator != + (const Magick::Geometry& left_,const Magick::Geometry& right_); + MagickPPExport int operator > + (const Magick::Geometry& left_,const Magick::Geometry& right_); + MagickPPExport int operator < + (const Magick::Geometry& left_,const Magick::Geometry& right_); + MagickPPExport int operator >= + (const Magick::Geometry& left_,const Magick::Geometry& right_); + MagickPPExport int operator <= + (const Magick::Geometry& left_,const Magick::Geometry& right_); + + class MagickPPExport Geometry + { + public: + + // Default constructor + Geometry(); + + // Construct Geometry from specified string + Geometry(const char *geometry_); + + // Copy constructor + Geometry(const Geometry &geometry_); + + // Construct Geometry from specified string + Geometry(const std::string &geometry_); + + // Construct Geometry from specified dimensions + Geometry(size_t width_,size_t height_,::ssize_t xOff_=0, + ::ssize_t yOff_=0); + + // Destructor + ~Geometry(void); + + // Set via geometry string + const Geometry& operator=(const char *geometry_); + + // Assignment operator + Geometry& operator=(const Geometry& Geometry_); + + // Set via geometry string + const Geometry& operator=(const std::string &geometry_); + + // Return geometry string + operator std::string() const; + + // Resize without preserving aspect ratio (!) + void aspect(bool aspect_); + bool aspect(void) const; + + // Resize the image based on the smallest fitting dimension (^) + void fillArea(bool fillArea_); + bool fillArea(void) const; + + // Resize if image is greater than size (>) + void greater(bool greater_); + bool greater(void) const; + + // Height + void height(size_t height_); + size_t height(void) const; + + // Does object contain valid geometry? + void isValid(bool isValid_); + bool isValid(void) const; + + // Resize if image is less than size (<) + void less(bool less_); + bool less(void) const; + + // Resize using a pixel area count limit (@) + void limitPixels(bool limitPixels_); + bool limitPixels(void) const; + + // Width and height are expressed as percentages + void percent(bool percent_); + bool percent(void) const; + + // Width + void width(size_t width_); + size_t width(void) const; + + // X offset from origin + void xOff(::ssize_t xOff_); + ::ssize_t xOff(void) const; + + // Y offset from origin + void yOff(::ssize_t yOff_); + ::ssize_t yOff(void) const; + + // + // Public methods below this point are for Magick++ use only. + // + + // Construct from RectangleInfo + Geometry(const MagickCore::RectangleInfo &rectangle_); + + // Set via RectangleInfo + const Geometry& operator=(const MagickCore::RectangleInfo &rectangle_); + + // Return an ImageMagick RectangleInfo struct + operator MagickCore::RectangleInfo() const; + + private: + size_t _width; + size_t _height; + ::ssize_t _xOff; + ::ssize_t _yOff; + bool _isValid; + bool _percent; // Interpret width & height as percentages (%) + bool _aspect; // Force exact size (!) + bool _greater; // Resize only if larger than geometry (>) + bool _less; // Resize only if smaller than geometry (<) + bool _fillArea; // Resize the image based on the smallest fitting dimension (^) + bool _limitPixels; // Resize using a pixel area count limit (@) + }; + + class MagickPPExport Offset; + + // Compare two Offset objects + MagickPPExport int operator == + (const Magick::Offset& left_,const Magick::Offset& right_); + MagickPPExport int operator != + (const Magick::Offset& left_,const Magick::Offset& right_); + + class MagickPPExport Offset + { + public: + + // Default constructor + Offset(); + + // Construct Offset from specified string + Offset(const char *offset_); + + // Copy constructor + Offset(const Offset &offset_); + + // Construct Offset from specified string + Offset(const std::string &offset_); + + // Construct Offset from specified x and y + Offset(ssize_t x_,ssize_t y_); + + // Destructor + ~Offset(void); + + // Set via offset string + const Offset& operator=(const char *offset_); + + // Assignment operator + Offset& operator=(const Offset& offset_); + + // Set via offset string + const Offset& operator=(const std::string &offset_); + + // X offset from origin + ssize_t x(void) const; + + // Y offset from origin + ssize_t y(void) const; + + // + // Public methods below this point are for Magick++ use only. + // + + // Return an ImageMagick OffsetInfo struct + operator MagickCore::OffsetInfo() const; + + private: + ssize_t _x; + ssize_t _y; + }; + + class MagickPPExport Point; + + // Compare two Point objects + MagickPPExport int operator == + (const Magick::Point& left_,const Magick::Point& right_); + MagickPPExport int operator != + (const Magick::Point& left_,const Magick::Point& right_); + + class MagickPPExport Point + { + public: + + // Default constructor + Point(); + + // Construct Point from specified string + Point(const char *point_); + + // Copy constructor + Point(const Point &point_); + + // Construct Point from specified string + Point(const std::string &point_); + + // Construct Point from specified x and y + Point(double x_,double y_); + + // Construct Point from specified x y + Point(double xy_); + + // Destructor + ~Point(void); + + // Set via point string + const Point& operator=(const char *point_); + + // Set via double value + const Point& operator=(double xy_); + + // Assignment operator + Point& operator=(const Point& point_); + + // Set via point string + const Point& operator=(const std::string &point_); + + // Return point string + operator std::string() const; + + // Does object contain valid point? + bool isValid() const; + + // X offset from origin + double x(void) const; + + // Y offset from origin + double y(void) const; + + private: + double _x; + double _y; + }; +} // namespace Magick + +#endif // Magick_Geometry_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Image.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Image.h new file mode 100644 index 0000000000000000000000000000000000000000..f061d9b2eca16d7df59516890d6e20a0d6e66a7c --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Image.h @@ -0,0 +1,1564 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 +// +// Copyright @ 2013 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Definition of Image, the representation of a single image in Magick++ +// + +#if !defined(Magick_Image_header) +#define Magick_Image_header + +#include "Magick++/Include.h" +#include +#include +#include "Magick++/Blob.h" +#include "Magick++/Color.h" +#include "Magick++/Drawable.h" +#include "Magick++/Exception.h" +#include "Magick++/Geometry.h" +#include "Magick++/Statistic.h" +#include "Magick++/TypeMetric.h" + +namespace Magick +{ + // Forward declarations + class Options; + class ImageRef; + + extern MagickPPExport const char *borderGeometryDefault; + extern MagickPPExport const char *frameGeometryDefault; + extern MagickPPExport const char *raiseGeometryDefault; + + // Compare two Image objects regardless of LHS/RHS + // Image sizes and signatures are used as basis of comparison + MagickPPExport int operator == + (const Magick::Image &left_,const Magick::Image &right_); + MagickPPExport int operator != + (const Magick::Image &left_,const Magick::Image &right_); + MagickPPExport int operator > + (const Magick::Image &left_,const Magick::Image &right_); + MagickPPExport int operator < + (const Magick::Image &left_,const Magick::Image &right_); + MagickPPExport int operator >= + (const Magick::Image &left_,const Magick::Image &right_); + MagickPPExport int operator <= + (const Magick::Image &left_,const Magick::Image &right_); + + // + // Image is the representation of an image. In reality, it actually + // a handle object which contains a pointer to a shared reference + // object (ImageRef). As such, this object is extremely space efficient. + // + class MagickPPExport Image + { + public: + + // Default constructor + Image(void); + + // Construct Image from in-memory BLOB + Image(const Blob &blob_); + + // Construct Image of specified size from in-memory BLOB + Image(const Blob &blob_,const Geometry &size_); + + // Construct Image of specified size and depth from in-memory BLOB + Image(const Blob &blob_,const Geometry &size_,const size_t depth_); + + // Construct Image of specified size, depth, and format from + // in-memory BLOB + Image(const Blob &blob_,const Geometry &size_,const size_t depth_, + const std::string &magick_); + + // Construct Image of specified size, and format from in-memory BLOB + Image(const Blob &blob_,const Geometry &size_,const std::string &magick_); + + // Construct a blank image canvas of specified size and color + Image(const Geometry &size_,const Color &color_); + + // Copy constructor + Image(const Image &image_); + + // Copy constructor to copy part of the image + Image(const Image &image_,const Geometry &geometry_); + + // Construct an image based on an array of raw pixels, of + // specified type and mapping, in memory + Image(const size_t width_,const size_t height_,const std::string &map_, + const StorageType type_,const void *pixels_); + + // Construct from image file or image specification + Image(const std::string &imageSpec_); + + // Destructor + virtual ~Image(); + + // Assignment operator + Image& operator=(const Image &image_); + + // Join images into a single multi-image file + void adjoin(const bool flag_); + bool adjoin(void) const; + + // Image supports transparency (alpha channel) + void alpha(const bool alphaFlag_); + bool alpha(void) const; + + // Transparent color + void matteColor(const Color &matteColor_); + Color matteColor(void) const; + + // Time in 1/100ths of a second which must expire before + // displaying the next image in an animated sequence. + void animationDelay(const size_t delay_); + size_t animationDelay(void) const; + + // Number of iterations to loop an animation (e.g. Netscape loop + // extension) for. + void animationIterations(const size_t iterations_); + size_t animationIterations(void) const; + + // Image background color + void backgroundColor(const Color &color_); + Color backgroundColor(void) const; + + // Name of texture image to tile onto the image background + void backgroundTexture(const std::string &backgroundTexture_); + std::string backgroundTexture(void) const; + + // Base image width (before transformations) + size_t baseColumns(void) const; + + // Base image filename (before transformations) + std::string baseFilename(void) const; + + // Base image height (before transformations) + size_t baseRows(void) const; + + // Use black point compensation. + void blackPointCompensation(const bool flag_); + bool blackPointCompensation(void) const; + + // Image border color + void borderColor(const Color &color_); + Color borderColor(void) const; + + // Return smallest bounding box enclosing non-border pixels. The + // current fuzz value is used when discriminating between pixels. + // This is the crop bounding box used by crop(Geometry(0,0)); + Geometry boundingBox(void) const; + + // Text bounding-box base color (default none) + void boxColor(const Color &boxColor_); + Color boxColor(void) const; + + // Set or obtain modulus channel depth + void channelDepth(const ChannelType channel_,const size_t depth_); + size_t channelDepth(const ChannelType channel_); + + // Returns the number of channels in this image. + size_t channels() const; + + // Image class (DirectClass or PseudoClass) + // NOTE: setting a DirectClass image to PseudoClass will result in + // the loss of color information if the number of colors in the + // image is greater than the maximum palette size (either 256 or + // 65536 entries depending on the value of MAGICKCORE_QUANTUM_DEPTH when + // ImageMagick was built). + void classType(const ClassType class_); + ClassType classType(void) const; + + // Colors within this distance are considered equal + void colorFuzz(const double fuzz_); + double colorFuzz(void) const; + + // Colormap size (number of colormap entries) + void colorMapSize(const size_t entries_); + size_t colorMapSize(void) const; + + // Image Color Space + void colorSpace(const ColorspaceType colorSpace_); + ColorspaceType colorSpace(void) const; + + void colorSpaceType(const ColorspaceType colorSpace_); + ColorspaceType colorSpaceType(void) const; + + // Image width + size_t columns(void) const; + + // Comment image (add comment string to image) + void comment(const std::string &comment_); + std::string comment(void) const; + + // Composition operator to be used when composition is implicitly + // used (such as for image flattening). + void compose(const CompositeOperator compose_); + CompositeOperator compose(void) const; + + // Compression type + void compressType(const CompressionType compressType_); + CompressionType compressType(void) const; + + // Enable printing of debug messages from ImageMagick + void debug(const bool flag_); + bool debug(void) const; + + // Vertical and horizontal resolution in pixels of the image + void density(const Point &density_); + Point density(void) const; + + // Image depth (bits allocated to red/green/blue components) + void depth(const size_t depth_); + size_t depth(void) const; + + // Tile names from within an image montage + std::string directory(void) const; + + // Endianness (little like Intel or big like SPARC) for image + // formats which support endian-specific options. + void endian(const EndianType endian_); + EndianType endian(void) const; + + // Exif profile (BLOB) + void exifProfile(const Blob &exifProfile_); + Blob exifProfile(void) const; + + // Image file name + void fileName(const std::string &fileName_); + std::string fileName(void) const; + + // Number of bytes of the image on disk + MagickSizeType fileSize(void) const; + + // Color to use when filling drawn objects + void fillColor(const Color &fillColor_); + Color fillColor(void) const; + + // Rule to use when filling drawn objects + void fillRule(const FillRule &fillRule_); + FillRule fillRule(void) const; + + // Pattern to use while filling drawn objects. + void fillPattern(const Image &fillPattern_); + Image fillPattern(void) const; + + // Filter to use when resizing image + void filterType(const FilterType filterType_); + FilterType filterType(void) const; + + // Text rendering font + void font(const std::string &font_); + std::string font(void) const; + + // Font family + void fontFamily(const std::string &family_); + std::string fontFamily(void) const; + + // Font point size + void fontPointsize(const double pointSize_); + double fontPointsize(void) const; + + // Font style + void fontStyle(const StyleType style_); + StyleType fontStyle(void) const; + + // Font weight + void fontWeight(const size_t weight_); + size_t fontWeight(void) const; + + // Long image format description + std::string format(void) const; + + // Formats the specified expression + // More info here: https://imagemagick.org/script/escape.php + std::string formatExpression(const std::string expression); + + // Gamma level of the image + double gamma(void) const; + + // Preferred size of the image when encoding + Geometry geometry(void) const; + + // GIF disposal method + void gifDisposeMethod(const DisposeType disposeMethod_); + DisposeType gifDisposeMethod(void) const; + + bool hasChannel(const PixelChannel channel) const; + + // When comparing images, emphasize pixel differences with this color. + void highlightColor(const Color color_); + + // ICC color profile (BLOB) + void iccColorProfile(const Blob &colorProfile_); + Blob iccColorProfile(void) const; + + // Type of interlacing to use + void interlaceType(const InterlaceType interlace_); + InterlaceType interlaceType(void) const; + + // Pixel color interpolation method to use + void interpolate(const PixelInterpolateMethod interpolate_); + PixelInterpolateMethod interpolate(void) const; + + // IPTC profile (BLOB) + void iptcProfile(const Blob &iptcProfile_); + Blob iptcProfile(void) const; + + // Returns true if none of the pixels in the image have an alpha value + // other than OpaqueAlpha (QuantumRange). + bool isOpaque(void) const; + + // Does object contain valid image? + void isValid(const bool isValid_); + bool isValid(void) const; + + // Image label + void label(const std::string &label_); + std::string label(void) const; + + // When comparing images, de-emphasize pixel differences with this color. + void lowlightColor(const Color color_); + + // File type magick identifier (.e.g "GIF") + void magick(const std::string &magick_); + std::string magick(void) const; + + // When comparing images, set pixels with a read mask to this color. + void masklightColor(const Color color_); + + // The mean error per pixel computed when an image is color reduced + double meanErrorPerPixel(void) const; + + // Image modulus depth (minimum number of bits required to support + // red/green/blue components without loss of accuracy) + void modulusDepth(const size_t modulusDepth_); + size_t modulusDepth(void) const; + + // Transform image to black and white + void monochrome(const bool monochromeFlag_); + bool monochrome(void) const; + + // Tile size and offset within an image montage + Geometry montageGeometry(void) const; + + // The normalized max error per pixel computed when an image is + // color reduced. + double normalizedMaxError(void) const; + + // The normalized mean error per pixel computed when an image is + // color reduced. + double normalizedMeanError(void) const; + + // Image orientation + void orientation(const OrientationType orientation_); + OrientationType orientation(void) const; + + // Preferred size and location of an image canvas. + void page(const Geometry &pageSize_); + Geometry page(void) const; + + // JPEG/MIFF/PNG compression level (default 75). + void quality(const size_t quality_); + size_t quality(void) const; + + // Maximum number of colors to quantize to + void quantizeColors(const size_t colors_); + size_t quantizeColors(void) const; + + // Colorspace to quantize in. + void quantizeColorSpace(const ColorspaceType colorSpace_); + ColorspaceType quantizeColorSpace(void) const; + + // Dither image during quantization (default true). + void quantizeDither(const bool ditherFlag_); + bool quantizeDither(void) const; + + // Dither method + void quantizeDitherMethod(const DitherMethod ditherMethod_); + DitherMethod quantizeDitherMethod(void) const; + + // Quantization tree-depth + void quantizeTreeDepth(const size_t treeDepth_); + size_t quantizeTreeDepth(void) const; + + // Suppress all warning messages. Error messages are still reported. + void quiet(const bool quiet_); + bool quiet(void) const; + + // The type of rendering intent + void renderingIntent(const RenderingIntent renderingIntent_); + RenderingIntent renderingIntent(void) const; + + // Units of image resolution + void resolutionUnits(const ResolutionType resolutionUnits_); + ResolutionType resolutionUnits(void) const; + + // The number of pixel rows in the image + size_t rows(void) const; + + // Image sampling factor + void samplingFactor(const std::string &samplingFactor_); + std::string samplingFactor(void) const; + + // Image scene number + void scene(const size_t scene_); + size_t scene(void) const; + + // Width and height of a raw image + void size(const Geometry &geometry_); + Geometry size(void) const; + + // enabled/disable stroke anti-aliasing + void strokeAntiAlias(const bool flag_); + bool strokeAntiAlias(void) const; + + // Color to use when drawing object outlines + void strokeColor(const Color &strokeColor_); + Color strokeColor(void) const; + + // Specify the pattern of dashes and gaps used to stroke + // paths. The strokeDashArray represents a zero-terminated array + // of numbers that specify the lengths of alternating dashes and + // gaps in pixels. If an odd number of values is provided, then + // the list of values is repeated to yield an even number of + // values. A typical strokeDashArray_ array might contain the + // members 5 3 2 0, where the zero value indicates the end of the + // pattern array. + void strokeDashArray(const double *strokeDashArray_); + const double *strokeDashArray(void) const; + + // While drawing using a dash pattern, specify distance into the + // dash pattern to start the dash (default 0). + void strokeDashOffset(const double strokeDashOffset_); + double strokeDashOffset(void) const; + + // Specify the shape to be used at the end of open subpaths when + // they are stroked. Values of LineCap are UndefinedCap, ButtCap, + // RoundCap, and SquareCap. + void strokeLineCap(const LineCap lineCap_); + LineCap strokeLineCap(void) const; + + // Specify the shape to be used at the corners of paths (or other + // vector shapes) when they are stroked. Values of LineJoin are + // UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin. + void strokeLineJoin(const LineJoin lineJoin_); + LineJoin strokeLineJoin(void) const; + + // Specify miter limit. When two line segments meet at a sharp + // angle and miter joins have been specified for 'lineJoin', it is + // possible for the miter to extend far beyond the thickness of + // the line stroking the path. The miterLimit' imposes a limit on + // the ratio of the miter length to the 'lineWidth'. The default + // value of this parameter is 4. + void strokeMiterLimit(const size_t miterLimit_); + size_t strokeMiterLimit(void) const; + + // Pattern image to use while stroking object outlines. + void strokePattern(const Image &strokePattern_); + Image strokePattern(void) const; + + // Stroke width for drawing vector objects (default one) + void strokeWidth(const double strokeWidth_); + double strokeWidth(void) const; + + // Subimage of an image sequence + void subImage(const size_t subImage_); + size_t subImage(void) const; + + // Number of images relative to the base image + void subRange(const size_t subRange_); + size_t subRange(void) const; + + // Anti-alias Postscript and TrueType fonts (default true) + void textAntiAlias(const bool flag_); + bool textAntiAlias(void) const; + + // Render text right-to-left or left-to-right. + void textDirection(DirectionType direction_); + DirectionType textDirection() const; + + // Annotation text encoding (e.g. "UTF-16") + void textEncoding(const std::string &encoding_); + std::string textEncoding(void) const; + + // Text gravity. + void textGravity(GravityType gravity_); + GravityType textGravity() const; + + // Text inter-line spacing + void textInterlineSpacing(double spacing_); + double textInterlineSpacing(void) const; + + // Text inter-word spacing + void textInterwordSpacing(double spacing_); + double textInterwordSpacing(void) const; + + // Text inter-character kerning + void textKerning(double kerning_); + double textKerning(void) const; + + // Text undercolor box + void textUnderColor(const Color &underColor_); + Color textUnderColor(void) const; + + // Number of colors in the image + size_t totalColors(void) const; + + // Rotation to use when annotating with text or drawing + void transformRotation(const double angle_); + + // Skew to use in X axis when annotating with text or drawing + void transformSkewX(const double skewx_); + + // Skew to use in Y axis when annotating with text or drawing + void transformSkewY(const double skewy_); + + // Image representation type (also see type operation) + // Available types: + // Bilevel PaletteBilevelAlpha + // Grayscale GrayscaleAlpha + // Palette PaletteAlpha + // TrueColor TrueColorAlpha + // ColorSeparation ColorSeparationAlpha + void type(const ImageType type_); + ImageType type(void) const; + + // Print detailed information about the image + void verbose(const bool verboseFlag_); + bool verbose(void) const; + + // Virtual pixel method + void virtualPixelMethod(const VirtualPixelMethod virtualPixelMethod_); + VirtualPixelMethod virtualPixelMethod(void) const; + + // X11 display to display to, obtain fonts from, or to capture + // image from + void x11Display(const std::string &display_); + std::string x11Display(void) const; + + // x resolution of the image + double xResolution(void) const; + + // y resolution of the image + double yResolution(void) const; + + // Adaptive-blur image with specified blur factor + // The radius_ parameter specifies the radius of the Gaussian, in + // pixels, not counting the center pixel. The sigma_ parameter + // specifies the standard deviation of the Laplacian, in pixels. + void adaptiveBlur(const double radius_=0.0,const double sigma_=1.0); + + // This is shortcut function for a fast interpolative resize using mesh + // interpolation. It works well for small resizes of less than +/- 50% + // of the original image size. For larger resizing on images a full + // filtered and slower resize function should be used instead. + void adaptiveResize(const Geometry &geometry_); + + // Adaptively sharpens the image by sharpening more intensely near image + // edges and less intensely far from edges. We sharpen the image with a + // Gaussian operator of the given radius and standard deviation (sigma). + // For reasonable results, radius should be larger than sigma. + void adaptiveSharpen(const double radius_=0.0,const double sigma_=1.0); + void adaptiveSharpenChannel(const ChannelType channel_, + const double radius_=0.0,const double sigma_=1.0); + + // Local adaptive threshold image + // http://www.dai.ed.ac.uk/HIPR2/adpthrsh.htm + // Width x height define the size of the pixel neighborhood + // bias = constant to subtract from pixel neighborhood mean + void adaptiveThreshold(const size_t width_,const size_t height_, + const double bias_=0.0); + + // Add noise to image with specified noise type + void addNoise(const NoiseType noiseType_,const double attenuate_=1.0); + void addNoiseChannel(const ChannelType channel_, + const NoiseType noiseType_,const double attenuate_=1.0); + + // Transform image by specified affine (or free transform) matrix. + void affineTransform(const DrawableAffine &affine); + + // Set or attenuate the alpha channel in the image. If the image + // pixels are opaque then they are set to the specified alpha + // value, otherwise they are blended with the supplied alpha + // value. The value of alpha_ ranges from 0 (completely opaque) + // to QuantumRange. The defines OpaqueAlpha and TransparentAlpha are + // available to specify completely opaque or completely + // transparent, respectively. + void alpha(const unsigned int alpha_); + + // AlphaChannel() activates, deactivates, resets, or sets the alpha + // channel. + void alphaChannel(AlphaChannelOption alphaOption_); + + // + // Annotate image (draw text on image) + // + // Gravity effects text placement in bounding area according to rules: + // NorthWestGravity text bottom-left corner placed at top-left + // NorthGravity text bottom-center placed at top-center + // NorthEastGravity text bottom-right corner placed at top-right + // WestGravity text left-center placed at left-center + // CenterGravity text center placed at center + // EastGravity text right-center placed at right-center + // SouthWestGravity text top-left placed at bottom-left + // SouthGravity text top-center placed at bottom-center + // SouthEastGravity text top-right placed at bottom-right + + // Annotate using specified text, and placement location + void annotate(const std::string &text_,const Geometry &location_); + + // Annotate using specified text, bounding area, and placement + // gravity + void annotate(const std::string &text_,const Geometry &boundingArea_, + const GravityType gravity_); + + // Annotate with text using specified text, bounding area, + // placement gravity, and rotation. + void annotate(const std::string &text_,const Geometry &boundingArea_, + const GravityType gravity_,const double degrees_); + + // Annotate with text (bounding area is entire image) and placement + // gravity. + void annotate(const std::string &text_,const GravityType gravity_); + + // Inserts the artifact with the specified name and value into + // the artifact tree of the image. + void artifact(const std::string &name_,const std::string &value_); + + // Returns the value of the artifact with the specified name. + std::string artifact(const std::string &name_) const; + + // Access/Update a named image attribute + void attribute(const std::string name_,const char *value_); + void attribute(const std::string name_,const std::string value_); + std::string attribute(const std::string name_) const; + + // Extracts the 'mean' from the image and adjust the image to try + // make set its gamma appropriately. + void autoGamma(void); + void autoGammaChannel(const ChannelType channel_); + + // Adjusts the levels of a particular image channel by scaling the + // minimum and maximum values to the full quantum range. + void autoLevel(void); + void autoLevelChannel(const ChannelType channel_); + + // Adjusts an image so that its orientation is suitable for viewing. + void autoOrient(void); + + // Automatically selects a threshold and replaces each pixel in the image + // with a black pixel if the image intensity is less than the selected + // threshold otherwise white. + void autoThreshold(const AutoThresholdMethod method_); + + // Forces all pixels below the threshold into black while leaving all + // pixels at or above the threshold unchanged. + void blackThreshold(const std::string &threshold_); + void blackThresholdChannel(const ChannelType channel_, + const std::string &threshold_); + + // Simulate a scene at nighttime in the moonlight. + void blueShift(const double factor_=1.5); + + // Blur image with specified blur factor + // The radius_ parameter specifies the radius of the Gaussian, in + // pixels, not counting the center pixel. The sigma_ parameter + // specifies the standard deviation of the Laplacian, in pixels. + void blur(const double radius_=0.0,const double sigma_=1.0); + void blurChannel(const ChannelType channel_,const double radius_=0.0, + const double sigma_=1.0); + + // Border image (add border to image) + void border(const Geometry &geometry_=borderGeometryDefault); + + // Changes the brightness and/or contrast of an image. It converts the + // brightness and contrast parameters into slope and intercept and calls + // a polynomial function to apply to the image. + void brightnessContrast(const double brightness_=0.0, + const double contrast_=0.0); + void brightnessContrastChannel(const ChannelType channel_, + const double brightness_=0.0,const double contrast_=0.0); + + // Uses a multi-stage algorithm to detect a wide range of edges in images. + void cannyEdge(const double radius_=0.0,const double sigma_=1.0, + const double lowerPercent_=0.1,const double upperPercent_=0.3); + + // Accepts a lightweight Color Correction Collection + // (CCC) file which solely contains one or more color corrections and + // applies the correction to the image. + void cdl(const std::string &cdl_); + + // Extract channel from image + void channel(const ChannelType channel_); + + // Charcoal effect image (looks like charcoal sketch) + // The radius_ parameter specifies the radius of the Gaussian, in + // pixels, not counting the center pixel. The sigma_ parameter + // specifies the standard deviation of the Laplacian, in pixels. + void charcoal(const double radius_=0.0,const double sigma_=1.0); + void charcoalChannel(const ChannelType channel_,const double radius_=0.0, + const double sigma_=1.0); + + // Chop image (remove vertical or horizontal subregion of image) + // FIXME: describe how geometry argument is used to select either + // horizontal or vertical subregion of image. + void chop(const Geometry &geometry_); + + // Chromaticity blue primary point. + void chromaBluePrimary(const double x_,const double y_,const double z_); + void chromaBluePrimary(double *x_,double *y_,double *z_) const; + + // Chromaticity green primary point. + void chromaGreenPrimary(const double x_,const double y_,const double z_); + void chromaGreenPrimary(double *x_,double *y_,double *z_) const; + + // Chromaticity red primary point. + void chromaRedPrimary(const double x_,const double y_,const double z_); + void chromaRedPrimary(double *x_,double *y_,double *z_) const; + + // Chromaticity white point. + void chromaWhitePoint(const double x_,const double y_,const double z_); + void chromaWhitePoint(double *x_,double *y_,double *z_) const; + + // Set each pixel whose value is below zero to zero and any the + // pixel whose value is above the quantum range to the quantum range (e.g. + // 65535) otherwise the pixel value remains unchanged. + void clamp(void); + void clampChannel(const ChannelType channel_); + + // Sets the image clip mask based on any clipping path information + // if it exists. + void clip(void); + void clipPath(const std::string pathname_,const bool inside_); + + // Apply a color lookup table (CLUT) to the image. + void clut(const Image &clutImage_,const PixelInterpolateMethod method); + void clutChannel(const ChannelType channel_,const Image &clutImage_, + const PixelInterpolateMethod method); + + // Colorize image with pen color, using specified percent alpha. + void colorize(const unsigned int alpha_,const Color &penColor_); + + // Colorize image with pen color, using specified percent alpha + // for red, green, and blue quantums + void colorize(const unsigned int alphaRed_,const unsigned int alphaGreen_, + const unsigned int alphaBlue_,const Color &penColor_); + + // Color at colormap position index_ + void colorMap(const size_t index_,const Color &color_); + Color colorMap(const size_t index_) const; + + // Apply a color matrix to the image channels. The user supplied + // matrix may be of order 1 to 5 (1x1 through 5x5). + void colorMatrix(const size_t order_,const double *color_matrix_); + + // Compare current image with another image + // False is returned if the images are not identical. + bool compare(const Image &reference_) const; + + // Compare current image with another image + // Returns the distortion based on the specified metric. + double compare(const Image &reference_,const MetricType metric_); + double compareChannel(const ChannelType channel_, + const Image &reference_, + const MetricType metric_ ); + + // Compare current image with another image + // Sets the distortion and returns the difference image. + Image compare(const Image &reference_,const MetricType metric_, + double *distortion); + Image compareChannel(const ChannelType channel_,const Image &reference_, + const MetricType metric_,double *distortion); + + // Compose an image onto another at specified offset and using + // specified algorithm + void composite(const Image &compositeImage_,const Geometry &offset_, + const CompositeOperator compose_=InCompositeOp); + void composite(const Image &compositeImage_,const GravityType gravity_, + const CompositeOperator compose_=InCompositeOp); + void composite(const Image &compositeImage_,const ::ssize_t xOffset_, + const ::ssize_t yOffset_,const CompositeOperator compose_=InCompositeOp); + + // Determines the connected-components of the image + void connectedComponents(const size_t connectivity_); + + // Contrast image (enhance intensity differences in image) + void contrast(const bool sharpen_); + + // A simple image enhancement technique that attempts to improve the + // contrast in an image by 'stretching' the range of intensity values + // it contains to span a desired range of values. It differs from the + // more sophisticated histogram equalization in that it can only apply a + // linear scaling function to the image pixel values. As a result the + // 'enhancement' is less harsh. + void contrastStretch(const double blackPoint_,const double whitePoint_); + void contrastStretchChannel(const ChannelType channel_, + const double blackPoint_,const double whitePoint_); + + // Convolve image. Applies a user-specified convolution to the image. + // order_ represents the number of columns and rows in the filter kernel. + // kernel_ is an array of doubles representing the convolution kernel. + void convolve(const size_t order_,const double *kernel_); + + // Copies pixels from the source image as defined by the geometry the + // destination image at the specified offset. + void copyPixels(const Image &source_,const Geometry &geometry_, + const Offset &offset_); + + // Crop image (subregion of original image) + void crop(const Geometry &geometry_); + + // Cycle image colormap + void cycleColormap(const ::ssize_t amount_); + + // Converts cipher pixels to plain pixels. + void decipher(const std::string &passphrase_); + + // Tagged image format define. Similar to the defineValue() method + // except that passing the flag_ value 'true' creates a value-less + // define with that format and key. Passing the flag_ value 'false' + // removes any existing matching definition. The method returns 'true' + // if a matching key exists, and 'false' if no matching key exists. + void defineSet(const std::string &magick_,const std::string &key_, + bool flag_); + bool defineSet(const std::string &magick_,const std::string &key_) const; + + // Tagged image format define (set/access coder-specific option) The + // magick_ option specifies the coder the define applies to. The key_ + // option provides the key specific to that coder. The value_ option + // provides the value to set (if any). See the defineSet() method if the + // key must be removed entirely. + void defineValue(const std::string &magick_,const std::string &key_, + const std::string &value_); + std::string defineValue(const std::string &magick_, + const std::string &key_) const; + + // Removes skew from the image. Skew is an artifact that occurs in scanned + // images because of the camera being misaligned, imperfections in the + // scanning or surface, or simply because the paper was not placed + // completely flat when scanned. The value of threshold_ ranges from 0 + // to QuantumRange. + void deskew(const double threshold_); + + // Despeckle image (reduce speckle noise) + void despeckle(void); + + // Display image on screen + void display(void); + + // Distort image. distorts an image using various distortion methods, by + // mapping color lookups of the source image to a new destination image + // usually of the same size as the source image, unless 'bestfit' is set to + // true. + void distort(const DistortMethod method_, + const size_t numberArguments_,const double *arguments_, + const bool bestfit_=false); + + // Draw on image using a single drawable + void draw(const Drawable &drawable_); + + // Draw on image using a drawable list + void draw(const std::vector &drawable_); + + // Edge image (highlight edges in image) + void edge(const double radius_=0.0); + + // Emboss image (highlight edges with 3D effect) + // The radius_ parameter specifies the radius of the Gaussian, in + // pixels, not counting the center pixel. The sigma_ parameter + // specifies the standard deviation of the Laplacian, in pixels. + void emboss(const double radius_=0.0,const double sigma_=1.0); + + // Converts pixels to cipher-pixels. + void encipher(const std::string &passphrase_); + + // Enhance image (minimize noise) + void enhance(void); + + // Equalize image (histogram equalization) + void equalize(void); + + // Erase image to current "background color" + void erase(void); + + // Apply a value with an arithmetic, relational, or logical operator. + void evaluate(const ChannelType channel_, + const MagickEvaluateOperator operator_,double rvalue_); + + // Apply a value with an arithmetic, relational, or logical operator. + void evaluate(const ChannelType channel_,const MagickFunction function_, + const size_t number_parameters_,const double *parameters_); + + // Apply a value with an arithmetic, relational, or logical operator. + void evaluate(const ChannelType channel_,const ::ssize_t x_, + const ::ssize_t y_,const size_t columns_,const size_t rows_, + const MagickEvaluateOperator operator_,const double rvalue_); + + // Extend the image as defined by the geometry. + void extent(const Geometry &geometry_); + void extent(const Geometry &geometry_,const Color &backgroundColor); + void extent(const Geometry &geometry_,const Color &backgroundColor, + const GravityType gravity_); + void extent(const Geometry &geometry_,const GravityType gravity_); + + // Flip image (reflect each scanline in the vertical direction) + void flip(void); + + // Floodfill pixels matching color (within fuzz factor) of target + // pixel(x,y) with replacement alpha value. + void floodFillAlpha(const ::ssize_t x_,const ::ssize_t y_, + const unsigned int alpha_,const bool invert_=false); + + // Floodfill designated area with replacement alpha value + void floodFillAlpha(const ssize_t x_,const ssize_t y_, + const unsigned int alpha_,const Color &target_,const bool invert_=false); + + // Flood-fill color across pixels that match the color of the + // target pixel and are neighbors of the target pixel. + // Uses current fuzz setting when determining color match. + void floodFillColor(const Geometry &point_,const Color &fillColor_, + const bool invert_=false); + void floodFillColor(const ::ssize_t x_,const ::ssize_t y_, + const Color &fillColor_,const bool invert_=false); + + // Flood-fill color across pixels starting at target-pixel and + // stopping at pixels matching specified border color. + // Uses current fuzz setting when determining color match. + void floodFillColor(const Geometry &point_,const Color &fillColor_, + const Color &borderColor_,const bool invert_=false); + void floodFillColor(const ::ssize_t x_,const ::ssize_t y_, + const Color &fillColor_,const Color &borderColor_, + const bool invert_=false); + + // Flood-fill texture across pixels that match the color of the + // target pixel and are neighbors of the target pixel. + // Uses current fuzz setting when determining color match. + void floodFillTexture(const Geometry &point_,const Image &texture_, + const bool invert_=false); + void floodFillTexture(const ::ssize_t x_,const ::ssize_t y_, + const Image &texture_,const bool invert_=false); + + // Flood-fill texture across pixels starting at target-pixel and + // stopping at pixels matching specified border color. + // Uses current fuzz setting when determining color match. + void floodFillTexture(const Geometry &point_,const Image &texture_, + const Color &borderColor_,const bool invert_=false); + void floodFillTexture(const ::ssize_t x_,const ::ssize_t y_, + const Image &texture_,const Color &borderColor_, + const bool invert_=false); + + // Flop image (reflect each scanline in the horizontal direction) + void flop(void); + + // Obtain font metrics for text string given current font, + // pointsize, and density settings. + void fontTypeMetrics(const std::string &text_,TypeMetric *metrics); + + // Obtain multi line font metrics for text string given current font, + // pointsize, and density settings. + void fontTypeMetricsMultiline(const std::string &text_, + TypeMetric *metrics); + + // Frame image + void frame(const Geometry &geometry_=frameGeometryDefault); + void frame(const size_t width_,const size_t height_, + const ::ssize_t innerBevel_=6,const ::ssize_t outerBevel_=6); + + // Applies a mathematical expression to the image. + void fx(const std::string expression_); + void fx(const std::string expression_,const Magick::ChannelType channel_); + + // Gamma correct image + void gamma(const double gamma_); + void gamma(const double gammaRed_,const double gammaGreen_, + const double gammaBlue_); + + // Gaussian blur image + // The number of neighbor pixels to be included in the convolution + // mask is specified by 'radius_'. The standard deviation of the + // gaussian bell curve is specified by 'sigma_'. + void gaussianBlur(const double radius_,const double sigma_); + void gaussianBlurChannel(const ChannelType channel_,const double radius_, + const double sigma_); + + // Transfers read-only pixels from the image to the pixel cache as + // defined by the specified region. + const Quantum *getConstPixels(const ::ssize_t x_, const ::ssize_t y_, + const size_t columns_,const size_t rows_) const; + + // Obtain immutable image pixel metacontent. The selected region is defined + // by the prior getPixels(), getConstPixels(), or setPixels() call. + const void *getConstMetacontent(void) const; + + // Obtain mutable image pixel metacontent. The selected region is defined + // by a prior getPixels(), getConstPixels(), or setPixels() call. + void *getMetacontent(void); + + // Transfers pixels from the image to the pixel cache as defined + // by the specified region. Modified pixels may be subsequently + // transferred back to the image via syncPixels. This method is + // valid for DirectClass images. + Quantum *getPixels(const ::ssize_t x_,const ::ssize_t y_, + const size_t columns_,const size_t rows_); + + // Converts the colors in the image to gray. + void grayscale(const PixelIntensityMethod method_); + + // Apply a color lookup table (Hald CLUT) to the image. + void haldClut(const Image &clutImage_); + + // Identifies lines in the image. + void houghLine(const size_t width_,const size_t height_, + const size_t threshold_=40); + + // Identifies the potential color type of the image. This method can be + // used to detect if the type can be changed to GrayScale. + ImageType identifyType(void) const; + + // Implode image (special effect) + void implode(const double factor_); + + // Implements the inverse discrete Fourier transform (DFT) of the image + // either as a magnitude / phase or real / imaginary image pair. + void inverseFourierTransform(const Image &phase_); + void inverseFourierTransform(const Image &phase_,const bool magnitude_); + + // An edge preserving noise reduction filter. + void kuwahara(const double radius_=0.0,const double sigma_=1.0); + void kuwaharaChannel(const ChannelType channel_,const double radius_=0.0, + const double sigma_=1.0); + + // Level image. Adjust the levels of the image by scaling the + // colors falling between specified white and black points to the + // full available quantum range. The parameters provided represent + // the black, mid (gamma), and white points. The black point + // specifies the darkest color in the image. Colors darker than + // the black point are set to zero. Mid point (gamma) specifies a + // gamma correction to apply to the image. White point specifies + // the lightest color in the image. Colors brighter than the + // white point are set to the maximum quantum value. The black and + // white point have the valid range 0 to QuantumRange while mid (gamma) + // has a useful range of 0 to ten. + void level(const double blackPoint_,const double whitePoint_, + const double gamma_=1.0); + void levelChannel(const ChannelType channel_,const double blackPoint_, + const double whitePoint_,const double gamma_=1.0); + + // Maps the given color to "black" and "white" values, linearly spreading + // out the colors, and level values on a channel by channel bases, as + // per level(). The given colors allows you to specify different level + // ranges for each of the color channels separately. + void levelColors(const Color &blackColor_,const Color &whiteColor_, + const bool invert_=true); + void levelColorsChannel(const ChannelType channel_, + const Color &blackColor_,const Color &whiteColor_, + const bool invert_=true); + + // Levelize applies the reversed level operation to just the specific + // channels specified.It compresses the full range of color values, so + // that they lie between the given black and white points. Gamma is + // applied before the values are mapped. + void levelize(const double blackPoint_,const double whitePoint_, + const double gamma_=1.0); + void levelizeChannel(const ChannelType channel_,const double blackPoint_, + const double whitePoint_,const double gamma_=1.0); + + // Discards any pixels below the black point and above the white point and + // levels the remaining pixels. + void linearStretch(const double blackPoint_,const double whitePoint_); + + // Rescales image with seam carving. + void liquidRescale(const Geometry &geometry_); + + // Local contrast enhancement + void localContrast(const double radius_,const double strength_); + void localContrastChannel(const ChannelType channel_,const double radius_, + const double strength_); + + // Magnify image by integral size + void magnify(void); + + // Remap image colors with closest color from reference image + void map(const Image &mapImage_,const bool dither_=false); + + // Delineate arbitrarily shaped clusters in the image. + void meanShift(const size_t width_,const size_t height_, + const double color_distance_); + + // Filter image by replacing each pixel component with the median + // color in a circular neighborhood + void medianFilter(const double radius_=0.0); + + // Reduce image by integral size + void minify(void); + + // Modulate percent hue, saturation, and brightness of an image + void modulate(const double brightness_,const double saturation_, + const double hue_); + + // Returns the normalized moments of one or more image channels. + ImageMoments moments(void) const; + + // Applies a kernel to the image according to the given morphology method. + void morphology(const MorphologyMethod method_,const std::string kernel_, + const ssize_t iterations_=1); + void morphology(const MorphologyMethod method_, + const KernelInfoType kernel_,const std::string arguments_, + const ssize_t iterations_=1); + void morphologyChannel(const ChannelType channel_, + const MorphologyMethod method_,const std::string kernel_, + const ssize_t iterations_=1); + void morphologyChannel(const ChannelType channel_, + const MorphologyMethod method_,const KernelInfoType kernel_, + const std::string arguments_,const ssize_t iterations_=1); + + // Motion blur image with specified blur factor + // The radius_ parameter specifies the radius of the Gaussian, in + // pixels, not counting the center pixel. The sigma_ parameter + // specifies the standard deviation of the Laplacian, in pixels. + // The angle_ parameter specifies the angle the object appears + // to be coming from (zero degrees is from the right). + void motionBlur(const double radius_,const double sigma_, + const double angle_); + + // Negate colors in image. Set grayscale to only negate grayscale + // values in image. + void negate(const bool grayscale_=false); + void negateChannel(const ChannelType channel_,const bool grayscale_=false); + + // Normalize image (increase contrast by normalizing the pixel + // values to span the full range of color values) + void normalize(void); + + // Oilpaint image (image looks like oil painting) + void oilPaint(const double radius_=0.0,const double sigma=1.0); + + // Change color of opaque pixel to specified pen color. + void opaque(const Color &opaqueColor_,const Color &penColor_, + const bool invert_=false); + + // Perform a ordered dither based on a number of pre-defined dithering + // threshold maps, but over multiple intensity levels. + void orderedDither(std::string thresholdMap_); + void orderedDitherChannel(const ChannelType channel_, + std::string thresholdMap_); + + // Set each pixel whose value is less than epsilon to epsilon or + // -epsilon (whichever is closer) otherwise the pixel value remains + // unchanged. + void perceptible(const double epsilon_); + void perceptibleChannel(const ChannelType channel_,const double epsilon_); + + // Returns the perceptual hash for this image. + Magick::ImagePerceptualHash perceptualHash() const; + + // Ping is similar to read except only enough of the image is read + // to determine the image columns, rows, and filesize. Access the + // columns(), rows(), and fileSize() attributes after invoking + // ping. The image data is not valid after calling ping. + void ping(const std::string &imageSpec_); + + // Ping is similar to read except only enough of the image is read + // to determine the image columns, rows, and filesize. Access the + // columns(), rows(), and fileSize() attributes after invoking + // ping. The image data is not valid after calling ping. + void ping(const Blob &blob_); + + // Get/set pixel color at location x & y. + void pixelColor(const ::ssize_t x_,const ::ssize_t y_,const Color &color_); + Color pixelColor(const ::ssize_t x_,const ::ssize_t y_ ) const; + + // Simulates a Polaroid picture. + void polaroid(const std::string &caption_,const double angle_, + const PixelInterpolateMethod method_); + + // Reduces the image to a limited number of colors for a "poster" effect. + void posterize(const size_t levels_,const DitherMethod method_); + void posterizeChannel(const ChannelType channel_,const size_t levels_, + const DitherMethod method_); + + // Execute a named process module using an argc/argv syntax similar to + // that accepted by a C 'main' routine. An exception is thrown if the + // requested process module doesn't exist, fails to load, or fails during + // execution. + void process(std::string name_,const ::ssize_t argc_,const char **argv_); + + // Add or remove a named profile to/from the image. Remove the + // profile by passing an empty Blob (e.g. Blob()). Valid names are + // "*", "8BIM", "ICM", "IPTC", or a user/format-defined profile name. + void profile(const std::string name_,const Blob &colorProfile_); + + // Retrieve a named profile from the image. Valid names are: + // "8BIM", "8BIMTEXT", "APP1", "APP1JPEG", "ICC", "ICM", & "IPTC" + // or an existing user/format-defined profile name. + Blob profile(const std::string name_) const; + + // Quantize image (reduce number of colors) + void quantize(const bool measureError_=false); + + // Raise image (lighten or darken the edges of an image to give a + // 3-D raised or lowered effect) + void raise(const Geometry &geometry_=raiseGeometryDefault, + const bool raisedFlag_=false); + + // Random threshold image. + // + // Changes the value of individual pixels based on the intensity + // of each pixel compared to a random threshold. The result is a + // low-contrast, two color image. + void randomThreshold(const double low_,const double high_); + void randomThresholdChannel(const ChannelType channel_,const double low_, + const double high_); + + // Read single image frame from in-memory BLOB + void read(const Blob &blob_); + + // Read single image frame of specified size from in-memory BLOB + void read(const Blob &blob_,const Geometry &size_); + + // Read single image frame of specified size and depth from + // in-memory BLOB + void read(const Blob &blob_,const Geometry &size_,const size_t depth_); + + // Read single image frame of specified size, depth, and format + // from in-memory BLOB + void read(const Blob &blob_,const Geometry &size_,const size_t depth_, + const std::string &magick_); + + // Read single image frame of specified size, and format from + // in-memory BLOB + void read(const Blob &blob_,const Geometry &size_, + const std::string &magick_); + + // Read single image frame of specified size into current object + void read(const Geometry &size_,const std::string &imageSpec_); + + // Read single image frame from an array of raw pixels, with + // specified storage type (ConstituteImage), e.g. + // image.read( 640, 480, "RGB", 0, pixels ); + void read(const size_t width_,const size_t height_,const std::string &map_, + const StorageType type_,const void *pixels_); + + // Read single image frame into current object + void read(const std::string &imageSpec_); + + // Associate a mask with the image. The mask must be the same dimensions + // as the image. Pass an invalid image to unset an existing mask. + void readMask(const Image &mask_); + Image readMask(void) const; + + // Transfers one or more pixel components from a buffer or file + // into the image pixel cache of an image. + // Used to support image decoders. + void readPixels(const QuantumType quantum_,const unsigned char *source_); + + // Reduce noise in image using a noise peak elimination filter + void reduceNoise(void); + void reduceNoise(const size_t order_); + + // Resets the image page canvas and position. + void repage(); + + // Resize image in terms of its pixel size. + void resample(const Point &density_); + + // Resize image to specified size. + void resize(const Geometry &geometry_); + + // Roll image (rolls image vertically and horizontally) by specified + // number of columns and rows) + void roll(const Geometry &roll_); + void roll(const size_t columns_,const size_t rows_); + + // Rotate image clockwise by specified number of degrees. Specify a + // negative number for degrees to rotate counter-clockwise. + void rotate(const double degrees_); + + // Rotational blur image. + void rotationalBlur(const double angle_); + void rotationalBlurChannel(const ChannelType channel_,const double angle_); + + // Resize image by using pixel sampling algorithm + void sample(const Geometry &geometry_); + + // Resize image by using simple ratio algorithm + void scale(const Geometry &geometry_); + + // Segment (coalesce similar image components) by analyzing the + // histograms of the color components and identifying units that + // are homogeneous with the fuzzy c-means technique. Also uses + // QuantizeColorSpace and Verbose image attributes + void segment(const double clusterThreshold_=1.0, + const double smoothingThreshold_=1.5); + + // Selectively blur pixels within a contrast threshold. It is similar to + // the unsharpen mask that sharpens everything with contrast above a + // certain threshold. + void selectiveBlur(const double radius_,const double sigma_, + const double threshold_); + void selectiveBlurChannel(const ChannelType channel_,const double radius_, + const double sigma_,const double threshold_); + + // Separates a channel from the image and returns it as a grayscale image. + Image separate(const ChannelType channel_) const; + + // Applies a special effect to the image, similar to the effect achieved in + // a photo darkroom by sepia toning. Threshold ranges from 0 to + // QuantumRange and is a measure of the extent of the sepia toning. + // A threshold of 80% is a good starting point for a reasonable tone. + void sepiaTone(const double threshold_); + + // Sets meanErrorPerPixel, normalizedMaxError, and normalizedMeanError + // in the current image. True is returned if the images are identical. + bool setColorMetric(const Image &reference_); + + // Allocates a pixel cache region to store image pixels as defined + // by the region rectangle. This area is subsequently transferred + // from the pixel cache to the image via syncPixels. + Quantum *setPixels(const ::ssize_t x_, const ::ssize_t y_, + const size_t columns_,const size_t rows_); + + // Shade image using distant light source + void shade(const double azimuth_=30,const double elevation_=30, + const bool colorShading_=false); + + // Simulate an image shadow + void shadow(const double percentAlpha_=80.0,const double sigma_=0.5, + const ssize_t x_=5,const ssize_t y_=5); + + // Sharpen pixels in image + // The radius_ parameter specifies the radius of the Gaussian, in + // pixels, not counting the center pixel. The sigma_ parameter + // specifies the standard deviation of the Laplacian, in pixels. + void sharpen(const double radius_=0.0,const double sigma_=1.0); + void sharpenChannel(const ChannelType channel_,const double radius_=0.0, + const double sigma_=1.0); + + // Shave pixels from image edges. + void shave(const Geometry &geometry_); + + // Shear image (create parallelogram by sliding image by X or Y axis) + void shear(const double xShearAngle_,const double yShearAngle_); + + // adjust the image contrast with a non-linear sigmoidal contrast algorithm + void sigmoidalContrast(const bool sharpen_,const double contrast, + const double midpoint=QuantumRange/2.0); + + // Image signature. Set force_ to true in order to re-calculate + // the signature regardless of whether the image data has been + // modified. + std::string signature(const bool force_=false) const; + + // Simulates a pencil sketch. We convolve the image with a Gaussian + // operator of the given radius and standard deviation (sigma). For + // reasonable results, radius should be larger than sigma. Use a + // radius of 0 and SketchImage() selects a suitable radius for you. + void sketch(const double radius_=0.0,const double sigma_=1.0, + const double angle_=0.0); + + // Solarize image (similar to effect seen when exposing a + // photographic film to light during the development process) + void solarize(const double factor_=50.0); + + // Sparse color image, given a set of coordinates, interpolates the colors + // found at those coordinates, across the whole image, using various + // methods. + void sparseColor(const ChannelType channel_, + const SparseColorMethod method_,const size_t numberArguments_, + const double *arguments_); + + // Splice the background color into the image. + void splice(const Geometry &geometry_); + void splice(const Geometry &geometry_,const Color &backgroundColor_); + void splice(const Geometry &geometry_,const Color &backgroundColor_, + const GravityType gravity_); + + // Spread pixels randomly within image by specified amount + void spread(const double amount_=3.0); + + // Returns the statistics for this image. + Magick::ImageStatistics statistics() const; + + // Add a digital watermark to the image (based on second image) + void stegano(const Image &watermark_); + + // Create an image which appears in stereo when viewed with + // red-blue glasses (Red image on left, blue on right) + void stereo(const Image &rightImage_); + + // Strip strips an image of all profiles and comments. + void strip(void); + + // Search for the specified image at EVERY possible location in this image. + // This is slow! very very slow.. It returns a similarity image such that + // an exact match location is completely white and if none of the pixels + // match, black, otherwise some gray level in-between. + Image subImageSearch(const Image &reference_,const MetricType metric_, + Geometry *offset_,double *similarityMetric_, + const double similarityThreshold=(-1.0)); + + // Swirl image (image pixels are rotated by degrees) + void swirl(const double degrees_); + + // Transfers the image cache pixels to the image. + void syncPixels(void); + + // Channel a texture on image background + void texture(const Image &texture_); + + // Threshold image + void threshold(const double threshold_); + + // Resize image to thumbnail size + void thumbnail(const Geometry &geometry_); + + // Applies a color vector to each pixel in the image. The length of the + // vector is 0 for black and white and at its maximum for the midtones. + // The vector weighting function is f(x)=(1-(4.0*((x-0.5)*(x-0.5)))) + void tint(const std::string opacity_); + + // Origin of coordinate system to use when annotating with text or drawing + void transformOrigin(const double x_,const double y_); + + // Reset transformation parameters to default + void transformReset(void); + + // Scale to use when annotating with text or drawing + void transformScale(const double sx_,const double sy_); + + // Add matte image to image, setting pixels matching color to + // transparent + void transparent(const Color &color_,const bool inverse_=false); + + // Add matte image to image, for all the pixels that lies in between + // the given two color + void transparentChroma(const Color &colorLow_,const Color &colorHigh_); + + // Creates a horizontal mirror image by reflecting the pixels around the + // central y-axis while rotating them by 90 degrees. + void transpose(void); + + // Creates a vertical mirror image by reflecting the pixels around the + // central x-axis while rotating them by 270 degrees. + void transverse(void); + + // Trim edges that are the background color from the image + void trim(void); + + // Returns the unique colors of an image. + Image uniqueColors(void) const; + + // Replace image with a sharpened version of the original image + // using the unsharp mask algorithm. + // radius_ + // the radius of the Gaussian, in pixels, not counting the + // center pixel. + // sigma_ + // the standard deviation of the Gaussian, in pixels. + // amount_ + // the percentage of the difference between the original and + // the blur image that is added back into the original. + // threshold_ + // the threshold in pixels needed to apply the difference amount. + void unsharpmask(const double radius_,const double sigma_, + const double amount_,const double threshold_); + void unsharpmaskChannel(const ChannelType channel_,const double radius_, + const double sigma_,const double amount_,const double threshold_); + + // Softens the edges of the image in vignette style. + void vignette(const double radius_=0.0,const double sigma_=1.0, + const ssize_t x_=0,const ssize_t y_=0); + + // Map image pixels to a sine wave + void wave(const double amplitude_=25.0,const double wavelength_=150.0); + + // Removes noise from the image using a wavelet transform. + void waveletDenoise(const double threshold_,const double softness_); + + // Forces all pixels above the threshold into white while leaving all + // pixels at or below the threshold unchanged. + void whiteThreshold(const std::string &threshold_); + void whiteThresholdChannel(const ChannelType channel_, + const std::string &threshold_); + + // Write single image frame to in-memory BLOB, with optional + // format and adjoin parameters. + void write(Blob *blob_); + void write(Blob *blob_,const std::string &magick_); + void write(Blob *blob_,const std::string &magick_,const size_t depth_); + + // Write single image frame to an array of pixels with storage + // type specified by user (DispatchImage), e.g. + // image.write( 0, 0, 640, 1, "RGB", 0, pixels ); + void write(const ::ssize_t x_,const ::ssize_t y_,const size_t columns_, + const size_t rows_,const std::string &map_,const StorageType type_, + void *pixels_); + + // Write single image frame to a file + void write(const std::string &imageSpec_); + + // Associate a mask with the image. The mask must be the same dimensions + // as the image. Pass an invalid image to unset an existing mask. + void writeMask(const Image &mask_); + Image writeMask(void) const; + + // Transfers one or more pixel components from the image pixel + // cache to a buffer or file. + // Used to support image encoders. + void writePixels(const QuantumType quantum_,unsigned char *destination_); + + // Zoom image to specified size. + void zoom(const Geometry &geometry_); + + ////////////////////////////////////////////////////////////////////// + // + // No user-serviceable parts beyond this point + // + ////////////////////////////////////////////////////////////////////// + + // Construct with MagickCore::Image and default options + Image(MagickCore::Image *image_); + + // Retrieve Image* + MagickCore::Image *&image(void); + const MagickCore::Image *constImage(void) const; + + // Retrieve ImageInfo* + MagickCore::ImageInfo *imageInfo(void); + const MagickCore::ImageInfo *constImageInfo(void) const; + + // Retrieve Options* + Options *options(void); + const Options *constOptions(void) const; + + // Retrieve QuantizeInfo* + MagickCore::QuantizeInfo *quantizeInfo(void); + const MagickCore::QuantizeInfo *constQuantizeInfo(void) const; + + // Prepare to update image (copy if reference > 1) + void modifyImage(void); + + // Replace current image (reference counted) + MagickCore::Image *replaceImage(MagickCore::Image *replacement_); + + private: + + void floodFill(const ssize_t x_,const ssize_t y_, + const Magick::Image *fillPattern_,const Color &fill_, + const PixelInfo *target,const bool invert_); + + void mask(const Image &mask_,const PixelMask); + Image mask(const PixelMask) const; + + void read(MagickCore::Image *image, + MagickCore::ExceptionInfo *exceptionInfo); + + ImageRef *_imgRef; + }; + +} // end of namespace Magick + +#endif // Magick_Image_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Include.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Include.h new file mode 100644 index 0000000000000000000000000000000000000000..5c3d8f023d1d7d3d6a0b7de1d94fc13d27aa0ec8 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Include.h @@ -0,0 +1,1584 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002 +// +// Copyright @ 2013 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Inclusion of ImageMagick headers (with namespace magic) + +#ifndef Magick_Include_header +#define Magick_Include_header + +#if !defined(_MAGICK_CONFIG_H) +# define _MAGICK_CONFIG_H +# if !defined(vms) +# include "MagickCore/magick-config.h" +# else +# include "magick-config.h" +# endif +# undef inline // Remove possible definition from config.h +# undef class +#endif + +// Needed for stdio FILE +#include +#include +#include +#include +#include +#include + +#include +#include + +#if defined(__BORLANDC__) +# include /* Borland C++ Builder 4.0 requirement */ +#endif // defined(__BORLANDC__) + +// +// Include ImageMagick headers into namespace "MagickCore". If +// MAGICKCORE_IMPLEMENTATION is defined, include ImageMagick development +// headers. This scheme minimizes the possibility of conflict with +// user code. +// +namespace MagickCore +{ +#include +#include +#undef inline // Remove possible definition from config.h + +#undef class +} + +// +// Provide appropriate DLL imports/exports for Visual C++, +// Borland C++Builder and MinGW builds. +// +#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__) +# define MagickCplusPlusDLLSupported +#endif +#if defined(MagickCplusPlusDLLSupported) +# if defined(_MT) && defined(_DLL) && !defined(_LIB) && !defined(STATIC_MAGICK) +// +// In a native Windows build, the following defines are used: +// +// _MT = Multithreaded +// _DLL = Using code is part of a DLL +// _LIB = Using code is being built as a library. +// _MAGICKMOD_ = Build uses loadable modules (Magick++ does not care about this) +// +// In the case where ImageMagick is built as a static library but the +// using code is dynamic, STATIC_MAGICK may be defined in the project to +// override triggering dynamic library behavior. +// +# if defined(_VISUALC_) +# define MagickDLLExplicitTemplate +# pragma warning( disable: 4275 ) +# pragma warning( disable: 4273 ) /* Disable the stupid dll linkage warnings */ +# pragma warning( disable: 4251 ) +# endif +# if !defined(MAGICKCORE_IMPLEMENTATION) +# if defined(__GNUC__) +# define MagickPPExport __attribute__ ((dllimport)) +# else +# define MagickPPExport __declspec(dllimport) +# endif +# define MagickPPPrivate extern __declspec(dllimport) +# else +# if defined(__BORLANDC__) || defined(__MINGW32__) +# define MagickPPExport __declspec(dllexport) +# define MagickPPPrivate __declspec(dllexport) +# else +# if defined(__GNUC__) +# define MagickPPExport __attribute__ ((dllexport)) +# else +# define MagickPPExport __declspec(dllexport) +# endif +# define MagickPPPrivate extern __declspec(dllexport) +# endif +# endif +# else +# define MagickPPExport +# define MagickPPPrivate +# if defined(_MSC_VER) && defined(STATIC_MAGICK) && !defined(NOAUTOLINK_MAGICK) +# if defined(_DEBUG) +# if defined(MAGICKCORE_BZLIB_DELEGATE) +# pragma comment(lib, "CORE_DB_bzlib_.lib") +# endif +# if defined(MAGICKCORE_CAIRO_DELEGATE) +# pragma comment(lib, "CORE_DB_cairo_.lib") +# endif +# if defined(MAGICKCORE_OPENEXR_DELEGATE) +# pragma comment(lib, "CORE_DB_exr_.lib") +# endif +# if defined(MAGICKCORE_FLIF_DELEGATE) +# pragma comment(lib, "CORE_DB_flif_.lib") +# endif +# if defined(MAGICKCORE_FREETYPE_DELEGATE) +# pragma comment(lib, "CORE_DB_freetype_.lib") +# endif +# if defined(MAGICKCORE_JBIG_DELEGATE) +# pragma comment(lib, "CORE_DB_jbig_.lib") +# endif +# if defined(MAGICKCORE_JP2_DELEGATE) +# pragma comment(lib, "CORE_DB_jp2_.lib") +# endif +# if defined(MAGICKCORE_JPEG_DELEGATE) +# pragma comment(lib, "CORE_DB_jpeg-turbo_.lib") +# endif +# if defined(MAGICKCORE_JXL_DELEGATE) +# pragma comment(lib, "CORE_DB_highway_.lib") +# pragma comment(lib, "CORE_DB_brotli_.lib") +# pragma comment(lib, "CORE_DB_jpeg-xl_.lib") +# endif +# if defined(MAGICKCORE_LCMS_DELEGATE) +# pragma comment(lib, "CORE_DB_lcms_.lib") +# endif +# if defined(MAGICKCORE_HEIC_DELEGATE) +# pragma comment(lib, "CORE_DB_aom_.lib") +# pragma comment(lib, "CORE_DB_de265_.lib") +# pragma comment(lib, "CORE_DB_heif_.lib") +# endif +# if defined(MAGICKCORE_LZMA_DELEGATE) +# pragma comment(lib, "CORE_DB_lzma_.lib") +# endif +# if defined(MAGICKCORE_RAW_R_DELEGATE) +# pragma comment(lib, "CORE_DB_raw_.lib") +# endif +# if defined(MAGICKCORE_RSVG_DELEGATE) +# pragma comment(lib, "CORE_DB_croco_.lib") +# pragma comment(lib, "CORE_DB_rsvg_.lib") +# endif +# if defined(MAGICKCORE_XML_DELEGATE) +# pragma comment(lib, "CORE_DB_xml_.lib") +# endif +# if defined(MAGICKCORE_ZIP_DELEGATE) +# pragma comment(lib, "CORE_DB_zip_.lib") +# endif +# if defined(MAGICKCORE_LQR_DELEGATE) +# pragma comment(lib, "CORE_DB_ffi_.lib") +# pragma comment(lib, "CORE_DB_glib_.lib") +# pragma comment(lib, "CORE_DB_lqr_.lib") +# pragma comment(lib, "winmm.lib") +# endif +# if defined(MAGICKCORE_LIBOPENJP2_DELEGATE) +# pragma comment(lib, "CORE_DB_openjpeg_.lib") +# endif +# if defined(MAGICKCORE_PANGOCAIRO_DELEGATE) +# pragma comment(lib, "CORE_DB_fribidi_.lib") +# pragma comment(lib, "CORE_DB_harfbuzz_.lib") +# pragma comment(lib, "CORE_DB_pango_.lib") +# pragma comment(lib, "CORE_DB_pixman_.lib") +# endif +# if defined(MAGICKCORE_PNG_DELEGATE) +# pragma comment(lib, "CORE_DB_png_.lib") +# endif +# if defined(MAGICKCORE_RAQM_DELEGATE) +# pragma comment(lib, "CORE_DB_raqm_.lib") +# endif +# if defined(MAGICKCORE_TIFF_DELEGATE) +# pragma comment(lib, "CORE_DB_tiff_.lib") +# endif +# if defined(MAGICKCORE_WEBP_DELEGATE) +# pragma comment(lib, "CORE_DB_webp_.lib") +# endif +# if defined(MAGICKCORE_ZLIB_DELEGATE) +# pragma comment(lib, "CORE_DB_zlib_.lib") +# endif +# pragma comment(lib, "CORE_DB_coders_.lib") +# pragma comment(lib, "CORE_DB_filters_.lib") +# pragma comment(lib, "CORE_DB_Magick++_.lib") +# pragma comment(lib, "CORE_DB_MagickCore_.lib") +# pragma comment(lib, "CORE_DB_MagickWand_.lib") +# else +# if defined(MAGICKCORE_BZLIB_DELEGATE) +# pragma comment(lib, "CORE_RL_bzlib_.lib") +# endif +# if defined(MAGICKCORE_CAIRO_DELEGATE) +# pragma comment(lib, "CORE_RL_cairo_.lib") +# endif +# if defined(MAGICKCORE_OPENEXR_DELEGATE) +# pragma comment(lib, "CORE_RL_exr_.lib") +# endif +# if defined(MAGICKCORE_FLIF_DELEGATE) +# pragma comment(lib, "CORE_RL_flif_.lib") +# endif +# if defined(MAGICKCORE_FREETYPE_DELEGATE) +# pragma comment(lib, "CORE_RL_freetype_.lib") +# endif +# if defined(MAGICKCORE_JBIG_DELEGATE) +# pragma comment(lib, "CORE_RL_jbig_.lib") +# endif +# if defined(MAGICKCORE_JP2_DELEGATE) +# pragma comment(lib, "CORE_RL_jp2_.lib") +# endif +# if defined(MAGICKCORE_JPEG_DELEGATE) +# pragma comment(lib, "CORE_RL_jpeg-turbo_.lib") +# endif +# if defined(MAGICKCORE_JXL_DELEGATE) +# pragma comment(lib, "CORE_RL_highway_.lib") +# pragma comment(lib, "CORE_RL_brotli_.lib") +# pragma comment(lib, "CORE_RL_jpeg-xl_.lib") +# endif +# if defined(MAGICKCORE_LCMS_DELEGATE) +# pragma comment(lib, "CORE_RL_lcms_.lib") +# endif +# if defined(MAGICKCORE_HEIC_DELEGATE) +# pragma comment(lib, "CORE_RL_aom_.lib") +# pragma comment(lib, "CORE_RL_de265_.lib") +# pragma comment(lib, "CORE_RL_heif_.lib") +# endif +# if defined(MAGICKCORE_LZMA_DELEGATE) +# pragma comment(lib, "CORE_RL_lzma_.lib") +# endif +# if defined(MAGICKCORE_RAW_R_DELEGATE) +# pragma comment(lib, "CORE_RL_raw_.lib") +# endif +# if defined(MAGICKCORE_RSVG_DELEGATE) +# pragma comment(lib, "CORE_RL_croco_.lib") +# pragma comment(lib, "CORE_RL_rsvg_.lib") +# endif +# if defined(MAGICKCORE_XML_DELEGATE) +# pragma comment(lib, "CORE_RL_xml_.lib") +# endif +# if defined(MAGICKCORE_ZIP_DELEGATE) +# pragma comment(lib, "CORE_RL_zip_.lib") +# endif +# if defined(MAGICKCORE_LQR_DELEGATE) +# pragma comment(lib, "CORE_RL_ffi_.lib") +# pragma comment(lib, "CORE_RL_glib_.lib") +# pragma comment(lib, "CORE_RL_lqr_.lib") +# pragma comment(lib, "winmm.lib") +# endif +# if defined(MAGICKCORE_LIBOPENJP2_DELEGATE) +# pragma comment(lib, "CORE_RL_openjpeg_.lib") +# endif +# if defined(MAGICKCORE_PANGOCAIRO_DELEGATE) +# pragma comment(lib, "CORE_RL_fribidi_.lib") +# pragma comment(lib, "CORE_RL_harfbuzz_.lib") +# pragma comment(lib, "CORE_RL_pango_.lib") +# pragma comment(lib, "CORE_RL_pixman_.lib") +# endif +# if defined(MAGICKCORE_PNG_DELEGATE) +# pragma comment(lib, "CORE_RL_png_.lib") +# endif +# if defined(MAGICKCORE_RAQM_DELEGATE) +# pragma comment(lib, "CORE_RL_raqm_.lib") +# endif +# if defined(MAGICKCORE_TIFF_DELEGATE) +# pragma comment(lib, "CORE_RL_tiff_.lib") +# endif +# if defined(MAGICKCORE_WEBP_DELEGATE) +# pragma comment(lib, "CORE_RL_webp_.lib") +# endif +# if defined(MAGICKCORE_ZLIB_DELEGATE) +# pragma comment(lib, "CORE_RL_zlib_.lib") +# endif +# pragma comment(lib, "CORE_RL_coders_.lib") +# pragma comment(lib, "CORE_RL_filters_.lib") +# pragma comment(lib, "CORE_RL_Magick++_.lib") +# pragma comment(lib, "CORE_RL_MagickCore_.lib") +# pragma comment(lib, "CORE_RL_MagickWand_.lib") +# endif +# if defined(_WIN32_WCE) +# pragma comment(lib, "wsock32.lib") +# else +# pragma comment(lib, "ws2_32.lib") +# endif +# pragma comment(lib, "urlmon.lib") +# endif +# endif +#else +# if __GNUC__ >= 4 +# define MagickPPExport __attribute__ ((visibility ("default"))) +# define MagickPPPrivate __attribute__ ((visibility ("hidden"))) +# else +# define MagickPPExport +# define MagickPPPrivate +# endif +#endif + +#if (defined(WIN32) || defined(WIN64)) && defined(_VISUALC_) +# pragma warning(disable : 4996) /* function deprecation warnings */ +#endif + +// +// Import ImageMagick symbols and types which are used as part of the +// Magick++ API definition into namespace "Magick". +// +namespace Magick +{ + // The datatype for an RGB component + using MagickCore::Quantum; + using MagickCore::MagickRealType; + using MagickCore::MagickSizeType; + using MagickCore::MagickStatusType; + + // Structures + using MagickCore::AffineMatrix; + using MagickCore::CacheView; + using MagickCore::CCObjectInfo; + using MagickCore::DrawInfo; + using MagickCore::DrawingWand; + using MagickCore::ExceptionInfo; + using MagickCore::FrameInfo; + using MagickCore::ImageInfo; + using MagickCore::KernelInfo; + using MagickCore::LinkedListInfo; + using MagickCore::MagickInfo; + using MagickCore::MagickWand; + using MagickCore::MontageInfo; + using MagickCore::OffsetInfo; + using MagickCore::PixelInfo; + using MagickCore::PixelWand; + using MagickCore::PointInfo; + using MagickCore::ProfileInfo; + using MagickCore::QuantizeInfo; + using MagickCore::QuantumInfo; + using MagickCore::RectangleInfo; + using MagickCore::StringInfo; + + // Alignment types. + using MagickCore::AlignType; + using MagickCore::UndefinedAlign; + using MagickCore::LeftAlign; + using MagickCore::CenterAlign; + using MagickCore::RightAlign; + + // Alpha channel options + using MagickCore::AlphaChannelOption; + using MagickCore::UndefinedAlphaChannel; + using MagickCore::ActivateAlphaChannel; + using MagickCore::AssociateAlphaChannel; + using MagickCore::BackgroundAlphaChannel; + using MagickCore::CopyAlphaChannel; + using MagickCore::DeactivateAlphaChannel; + using MagickCore::DiscreteAlphaChannel; + using MagickCore::DisassociateAlphaChannel; + using MagickCore::ExtractAlphaChannel; + using MagickCore::OffAlphaChannel; + using MagickCore::OnAlphaChannel; + using MagickCore::OpaqueAlphaChannel; + using MagickCore::RemoveAlphaChannel; + using MagickCore::SetAlphaChannel; + using MagickCore::ShapeAlphaChannel; + using MagickCore::TransparentAlphaChannel; + + // Auto threshold methods + using MagickCore::AutoThresholdMethod; + using MagickCore::UndefinedThresholdMethod; + using MagickCore::KapurThresholdMethod; + using MagickCore::OTSUThresholdMethod; + using MagickCore::TriangleThresholdMethod; + + // Channel types + using MagickCore::ChannelType; + using MagickCore::UndefinedChannel; + using MagickCore::RedChannel; + using MagickCore::GrayChannel; + using MagickCore::CyanChannel; + using MagickCore::GreenChannel; + using MagickCore::MagentaChannel; + using MagickCore::BlueChannel; + using MagickCore::YellowChannel; + using MagickCore::BlackChannel; + using MagickCore::AlphaChannel; + using MagickCore::OpacityChannel; + using MagickCore::IndexChannel; + using MagickCore::ReadMaskChannel; + using MagickCore::WriteMaskChannel; + using MagickCore::MetaChannel; + using MagickCore::CompositeChannels; + using MagickCore::AllChannels; + using MagickCore::TrueAlphaChannel; + using MagickCore::RGBChannels; + using MagickCore::GrayChannels; + using MagickCore::SyncChannels; + using MagickCore::DefaultChannels; + + // Image class types + using MagickCore::ClassType; + using MagickCore::UndefinedClass; + using MagickCore::DirectClass; + using MagickCore::PseudoClass; + + // Clip path units + using MagickCore::ClipPathUnits; + using MagickCore::UndefinedPathUnits; + using MagickCore::UserSpace; + using MagickCore::UserSpaceOnUse; + using MagickCore::ObjectBoundingBox; + + // Color-space types + using MagickCore::ColorspaceType; + using MagickCore::UndefinedColorspace; + using MagickCore::CMYColorspace; + using MagickCore::CMYKColorspace; + using MagickCore::GRAYColorspace; + using MagickCore::HCLColorspace; + using MagickCore::HCLpColorspace; + using MagickCore::HSBColorspace; + using MagickCore::HSIColorspace; + using MagickCore::HSLColorspace; + using MagickCore::HSVColorspace; + using MagickCore::HWBColorspace; + using MagickCore::LabColorspace; + using MagickCore::LCHColorspace; + using MagickCore::LCHabColorspace; + using MagickCore::LCHuvColorspace; + using MagickCore::LogColorspace; + using MagickCore::LMSColorspace; + using MagickCore::LuvColorspace; + using MagickCore::OHTAColorspace; + using MagickCore::Rec601YCbCrColorspace; + using MagickCore::Rec709YCbCrColorspace; + using MagickCore::RGBColorspace; + using MagickCore::scRGBColorspace; + using MagickCore::sRGBColorspace; + using MagickCore::TransparentColorspace; + using MagickCore::xyYColorspace; + using MagickCore::XYZColorspace; + using MagickCore::YCbCrColorspace; + using MagickCore::YCCColorspace; + using MagickCore::YDbDrColorspace; + using MagickCore::YIQColorspace; + using MagickCore::YPbPrColorspace; + using MagickCore::YUVColorspace; + using MagickCore::LinearGRAYColorspace; + + // Command options + using MagickCore::CommandOption; + using MagickCore::MagickDirectionOptions; + using MagickCore::MagickGravityOptions; + using MagickCore::MagickKernelOptions; + using MagickCore::MagickStyleOptions; + + // Compliance types + using MagickCore::ComplianceType; + using MagickCore::AllCompliance; + + // Composition operations + using MagickCore::CompositeOperator; + using MagickCore::AlphaCompositeOp; + using MagickCore::AtopCompositeOp; + using MagickCore::BlendCompositeOp; + using MagickCore::BlurCompositeOp; + using MagickCore::BumpmapCompositeOp; + using MagickCore::ChangeMaskCompositeOp; + using MagickCore::ClearCompositeOp; + using MagickCore::ColorBurnCompositeOp; + using MagickCore::ColorDodgeCompositeOp; + using MagickCore::ColorizeCompositeOp; + using MagickCore::CopyBlackCompositeOp; + using MagickCore::CopyBlueCompositeOp; + using MagickCore::CopyCompositeOp; + using MagickCore::CopyCyanCompositeOp; + using MagickCore::CopyGreenCompositeOp; + using MagickCore::CopyMagentaCompositeOp; + using MagickCore::CopyAlphaCompositeOp; + using MagickCore::CopyRedCompositeOp; + using MagickCore::CopyYellowCompositeOp; + using MagickCore::DarkenCompositeOp; + using MagickCore::DarkenIntensityCompositeOp; + using MagickCore::DifferenceCompositeOp; + using MagickCore::DisplaceCompositeOp; + using MagickCore::DissolveCompositeOp; + using MagickCore::DistortCompositeOp; + using MagickCore::DivideDstCompositeOp; + using MagickCore::DivideSrcCompositeOp; + using MagickCore::DstAtopCompositeOp; + using MagickCore::DstCompositeOp; + using MagickCore::DstInCompositeOp; + using MagickCore::DstOutCompositeOp; + using MagickCore::DstOverCompositeOp; + using MagickCore::ExclusionCompositeOp; + using MagickCore::HardLightCompositeOp; + using MagickCore::HardMixCompositeOp; + using MagickCore::HueCompositeOp; + using MagickCore::InCompositeOp; + using MagickCore::IntensityCompositeOp; + using MagickCore::LightenCompositeOp; + using MagickCore::LightenIntensityCompositeOp; + using MagickCore::LinearBurnCompositeOp; + using MagickCore::LinearDodgeCompositeOp; + using MagickCore::LinearLightCompositeOp; + using MagickCore::LuminizeCompositeOp; + using MagickCore::MathematicsCompositeOp; + using MagickCore::MinusDstCompositeOp; + using MagickCore::MinusSrcCompositeOp; + using MagickCore::ModulateCompositeOp; + using MagickCore::ModulusAddCompositeOp; + using MagickCore::ModulusSubtractCompositeOp; + using MagickCore::MultiplyCompositeOp; + using MagickCore::NoCompositeOp; + using MagickCore::OutCompositeOp; + using MagickCore::OverCompositeOp; + using MagickCore::OverlayCompositeOp; + using MagickCore::PegtopLightCompositeOp; + using MagickCore::PinLightCompositeOp; + using MagickCore::PlusCompositeOp; + using MagickCore::ReplaceCompositeOp; + using MagickCore::SaturateCompositeOp; + using MagickCore::ScreenCompositeOp; + using MagickCore::SoftLightCompositeOp; + using MagickCore::SrcAtopCompositeOp; + using MagickCore::SrcCompositeOp; + using MagickCore::SrcInCompositeOp; + using MagickCore::SrcOutCompositeOp; + using MagickCore::SrcOverCompositeOp; + using MagickCore::ThresholdCompositeOp; + using MagickCore::UndefinedCompositeOp; + using MagickCore::VividLightCompositeOp; + using MagickCore::XorCompositeOp; + + // Compression algorithms + using MagickCore::CompressionType; + using MagickCore::UndefinedCompression; + using MagickCore::NoCompression; + using MagickCore::B44ACompression; + using MagickCore::B44Compression; + using MagickCore::BZipCompression; + using MagickCore::DWAACompression; + using MagickCore::DWABCompression; + using MagickCore::DXT1Compression; + using MagickCore::DXT3Compression; + using MagickCore::DXT5Compression; + using MagickCore::BC7Compression; + using MagickCore::FaxCompression; + using MagickCore::Group4Compression; + using MagickCore::JBIG1Compression; + using MagickCore::JBIG2Compression; + using MagickCore::JPEG2000Compression; + using MagickCore::JPEGCompression; + using MagickCore::LosslessJPEGCompression; + using MagickCore::LZMACompression; + using MagickCore::LZWCompression; + using MagickCore::PizCompression; + using MagickCore::Pxr24Compression; + using MagickCore::RLECompression; + using MagickCore::WebPCompression; + using MagickCore::ZipCompression; + using MagickCore::ZipSCompression; + using MagickCore::ZstdCompression; + + // Decoration types + using MagickCore::DecorationType; + using MagickCore::UndefinedDecoration; + using MagickCore::NoDecoration; + using MagickCore::UnderlineDecoration; + using MagickCore::OverlineDecoration; + using MagickCore::LineThroughDecoration; + + // Direction types + using MagickCore::DirectionType; + using MagickCore::UndefinedDirection; + using MagickCore::RightToLeftDirection; + using MagickCore::LeftToRightDirection; + + // Dispose methods + using MagickCore::DisposeType; + using MagickCore::UndefinedDispose; + using MagickCore::NoneDispose; + using MagickCore::BackgroundDispose; + using MagickCore::PreviousDispose; + + // Distort methods + using MagickCore::DistortMethod; + using MagickCore::UndefinedDistortion; + using MagickCore::AffineDistortion; + using MagickCore::AffineProjectionDistortion; + using MagickCore::ScaleRotateTranslateDistortion; + using MagickCore::PerspectiveDistortion; + using MagickCore::PerspectiveProjectionDistortion; + using MagickCore::BilinearForwardDistortion; + using MagickCore::BilinearDistortion; + using MagickCore::BilinearReverseDistortion; + using MagickCore::PolynomialDistortion; + using MagickCore::ArcDistortion; + using MagickCore::PolarDistortion; + using MagickCore::DePolarDistortion; + using MagickCore::Cylinder2PlaneDistortion; + using MagickCore::Plane2CylinderDistortion; + using MagickCore::BarrelDistortion; + using MagickCore::BarrelInverseDistortion; + using MagickCore::ShepardsDistortion; + using MagickCore::ResizeDistortion; + using MagickCore::SentinelDistortion; + + // Dither methods + using MagickCore::DitherMethod; + using MagickCore::UndefinedDitherMethod; + using MagickCore::NoDitherMethod; + using MagickCore::RiemersmaDitherMethod; + using MagickCore::FloydSteinbergDitherMethod; + + // Endian options + using MagickCore::EndianType; + using MagickCore::UndefinedEndian; + using MagickCore::LSBEndian; + using MagickCore::MSBEndian; + + // Boolean types + using MagickCore::MagickBooleanType; + using MagickCore::MagickFalse; + using MagickCore::MagickTrue; + + // Evaluate options + using MagickCore::MagickEvaluateOperator; + using MagickCore::UndefinedEvaluateOperator; + using MagickCore::AbsEvaluateOperator; + using MagickCore::AddEvaluateOperator; + using MagickCore::AddModulusEvaluateOperator; + using MagickCore::AndEvaluateOperator; + using MagickCore::CosineEvaluateOperator; + using MagickCore::DivideEvaluateOperator; + using MagickCore::ExponentialEvaluateOperator; + using MagickCore::GaussianNoiseEvaluateOperator; + using MagickCore::ImpulseNoiseEvaluateOperator; + using MagickCore::LaplacianNoiseEvaluateOperator; + using MagickCore::LeftShiftEvaluateOperator; + using MagickCore::LogEvaluateOperator; + using MagickCore::MaxEvaluateOperator; + using MagickCore::MeanEvaluateOperator; + using MagickCore::MedianEvaluateOperator; + using MagickCore::MinEvaluateOperator; + using MagickCore::MultiplicativeNoiseEvaluateOperator; + using MagickCore::MultiplyEvaluateOperator; + using MagickCore::OrEvaluateOperator; + using MagickCore::PoissonNoiseEvaluateOperator; + using MagickCore::PowEvaluateOperator; + using MagickCore::RootMeanSquareEvaluateOperator; + using MagickCore::RightShiftEvaluateOperator; + using MagickCore::SetEvaluateOperator; + using MagickCore::SineEvaluateOperator; + using MagickCore::SubtractEvaluateOperator; + using MagickCore::SumEvaluateOperator; + using MagickCore::ThresholdBlackEvaluateOperator; + using MagickCore::ThresholdEvaluateOperator; + using MagickCore::ThresholdWhiteEvaluateOperator; + using MagickCore::UniformNoiseEvaluateOperator; + using MagickCore::XorEvaluateOperator; + + // Fill rules + using MagickCore::FillRule; + using MagickCore::UndefinedRule; + using MagickCore::EvenOddRule; + using MagickCore::NonZeroRule; + + // Filter types + using MagickCore::FilterType; + using MagickCore::UndefinedFilter; + using MagickCore::PointFilter; + using MagickCore::BoxFilter; + using MagickCore::TriangleFilter; + using MagickCore::HermiteFilter; + using MagickCore::HannFilter; + using MagickCore::HammingFilter; + using MagickCore::BlackmanFilter; + using MagickCore::GaussianFilter; + using MagickCore::QuadraticFilter; + using MagickCore::CubicFilter; + using MagickCore::CatromFilter; + using MagickCore::MitchellFilter; + using MagickCore::JincFilter; + using MagickCore::SincFilter; + using MagickCore::SincFastFilter; + using MagickCore::KaiserFilter; + using MagickCore::WelchFilter; + using MagickCore::ParzenFilter; + using MagickCore::BohmanFilter; + using MagickCore::BartlettFilter; + using MagickCore::LagrangeFilter; + using MagickCore::LanczosFilter; + using MagickCore::LanczosSharpFilter; + using MagickCore::Lanczos2Filter; + using MagickCore::Lanczos2SharpFilter; + using MagickCore::RobidouxFilter; + using MagickCore::RobidouxSharpFilter; + using MagickCore::CosineFilter; + using MagickCore::SplineFilter; + using MagickCore::LanczosRadiusFilter; + using MagickCore::SentinelFilter; + + // Geometry flags; + using MagickCore::GeometryFlags; + using MagickCore::AreaValue; + using MagickCore::AspectValue; + using MagickCore::GreaterValue; + using MagickCore::HeightValue; + using MagickCore::LessValue; + using MagickCore::MinimumValue; + using MagickCore::NoValue; + using MagickCore::PercentValue; + using MagickCore::WidthValue; + using MagickCore::XNegative; + using MagickCore::XValue; + using MagickCore::YNegative; + using MagickCore::YValue; + + // Bit gravity + using MagickCore::GravityType; + using MagickCore::UndefinedGravity; + using MagickCore::ForgetGravity; + using MagickCore::NorthWestGravity; + using MagickCore::NorthGravity; + using MagickCore::NorthEastGravity; + using MagickCore::WestGravity; + using MagickCore::CenterGravity; + using MagickCore::EastGravity; + using MagickCore::SouthWestGravity; + using MagickCore::SouthGravity; + using MagickCore::SouthEastGravity; + + // Image types + using MagickCore::ImageType; + using MagickCore::UndefinedType; + using MagickCore::BilevelType; + using MagickCore::GrayscaleType; + using MagickCore::GrayscaleAlphaType; + using MagickCore::PaletteType; + using MagickCore::PaletteAlphaType; + using MagickCore::TrueColorType; + using MagickCore::TrueColorAlphaType; + using MagickCore::ColorSeparationType; + using MagickCore::ColorSeparationAlphaType; + using MagickCore::OptimizeType; + using MagickCore::PaletteBilevelAlphaType; + + // Interlace types + using MagickCore::InterlaceType; + using MagickCore::UndefinedInterlace; + using MagickCore::NoInterlace; + using MagickCore::LineInterlace; + using MagickCore::PlaneInterlace; + using MagickCore::PartitionInterlace; + using MagickCore::GIFInterlace; + using MagickCore::JPEGInterlace; + using MagickCore::PNGInterlace; + + // Built-in kernels + using MagickCore::KernelInfoType; + using MagickCore::UndefinedKernel; + using MagickCore::UnityKernel; + using MagickCore::GaussianKernel; + using MagickCore::DoGKernel; + using MagickCore::LoGKernel; + using MagickCore::BlurKernel; + using MagickCore::CometKernel; + using MagickCore::BinomialKernel; + using MagickCore::LaplacianKernel; + using MagickCore::SobelKernel; + using MagickCore::FreiChenKernel; + using MagickCore::RobertsKernel; + using MagickCore::PrewittKernel; + using MagickCore::CompassKernel; + using MagickCore::KirschKernel; + using MagickCore::DiamondKernel; + using MagickCore::SquareKernel; + using MagickCore::RectangleKernel; + using MagickCore::OctagonKernel; + using MagickCore::DiskKernel; + using MagickCore::PlusKernel; + using MagickCore::CrossKernel; + using MagickCore::RingKernel; + using MagickCore::PeaksKernel; + using MagickCore::EdgesKernel; + using MagickCore::CornersKernel; + using MagickCore::DiagonalsKernel; + using MagickCore::LineEndsKernel; + using MagickCore::LineJunctionsKernel; + using MagickCore::RidgesKernel; + using MagickCore::ConvexHullKernel; + using MagickCore::ThinSEKernel; + using MagickCore::SkeletonKernel; + using MagickCore::ChebyshevKernel; + using MagickCore::ManhattanKernel; + using MagickCore::OctagonalKernel; + using MagickCore::EuclideanKernel; + using MagickCore::UserDefinedKernel; + + // Layer method + using MagickCore::LayerMethod; + using MagickCore::UndefinedLayer; + using MagickCore::CoalesceLayer; + using MagickCore::CompareAnyLayer; + using MagickCore::CompareClearLayer; + using MagickCore::CompareOverlayLayer; + using MagickCore::DisposeLayer; + using MagickCore::OptimizeLayer; + using MagickCore::OptimizeImageLayer; + using MagickCore::OptimizePlusLayer; + using MagickCore::OptimizeTransLayer; + using MagickCore::RemoveDupsLayer; + using MagickCore::RemoveZeroLayer; + using MagickCore::CompositeLayer; + using MagickCore::MergeLayer; + using MagickCore::FlattenLayer; + using MagickCore::MosaicLayer; + using MagickCore::TrimBoundsLayer; + + // Line cap types + using MagickCore::LineCap; + using MagickCore::UndefinedCap; + using MagickCore::ButtCap; + using MagickCore::RoundCap; + using MagickCore::SquareCap; + + // Line join types + using MagickCore::LineJoin; + using MagickCore::UndefinedJoin; + using MagickCore::MiterJoin; + using MagickCore::RoundJoin; + using MagickCore::BevelJoin; + + // Log event types + using MagickCore::LogEventType; + using MagickCore::UndefinedEvents; + using MagickCore::NoEvents; + using MagickCore::AccelerateEvent; + using MagickCore::AnnotateEvent; + using MagickCore::BlobEvent; + using MagickCore::CacheEvent; + using MagickCore::CoderEvent; + using MagickCore::ConfigureEvent; + using MagickCore::DeprecateEvent; + using MagickCore::DrawEvent; + using MagickCore::ExceptionEvent; + using MagickCore::ImageEvent; + using MagickCore::LocaleEvent; + using MagickCore::ModuleEvent; + using MagickCore::PixelEvent; + using MagickCore::PolicyEvent; + using MagickCore::ResourceEvent; + using MagickCore::TraceEvent; + using MagickCore::TransformEvent; + using MagickCore::UserEvent; + using MagickCore::WandEvent; + using MagickCore::X11Event; + using MagickCore::CommandEvent; + using MagickCore::AllEvents; + + // Magick functions + using MagickCore::MagickFunction; + using MagickCore::UndefinedFunction; + using MagickCore::ArcsinFunction; + using MagickCore::ArctanFunction; + using MagickCore::PolynomialFunction; + using MagickCore::SinusoidFunction; + + // Metric types + using MagickCore::MetricType; + using MagickCore::UndefinedErrorMetric; + using MagickCore::AbsoluteErrorMetric; + using MagickCore::FuzzErrorMetric; + using MagickCore::MeanAbsoluteErrorMetric; + using MagickCore::MeanErrorPerPixelErrorMetric; + using MagickCore::MeanSquaredErrorMetric; + using MagickCore::NormalizedCrossCorrelationErrorMetric; + using MagickCore::PeakAbsoluteErrorMetric; + using MagickCore::PeakSignalToNoiseRatioErrorMetric; + using MagickCore::PerceptualHashErrorMetric; + using MagickCore::RootMeanSquaredErrorMetric; + + // Morphology methods + using MagickCore::MorphologyMethod; + using MagickCore::UndefinedMorphology; + using MagickCore::ConvolveMorphology; + using MagickCore::CorrelateMorphology; + using MagickCore::ErodeMorphology; + using MagickCore::DilateMorphology; + using MagickCore::ErodeIntensityMorphology; + using MagickCore::DilateIntensityMorphology; + using MagickCore::IterativeDistanceMorphology; + using MagickCore::OpenMorphology; + using MagickCore::CloseMorphology; + using MagickCore::OpenIntensityMorphology; + using MagickCore::CloseIntensityMorphology; + using MagickCore::SmoothMorphology; + using MagickCore::EdgeInMorphology; + using MagickCore::EdgeOutMorphology; + using MagickCore::EdgeMorphology; + using MagickCore::TopHatMorphology; + using MagickCore::BottomHatMorphology; + using MagickCore::HitAndMissMorphology; + using MagickCore::ThinningMorphology; + using MagickCore::ThickenMorphology; + using MagickCore::DistanceMorphology; + using MagickCore::VoronoiMorphology; + + // Noise types + using MagickCore::NoiseType; + using MagickCore::UndefinedNoise; + using MagickCore::UniformNoise; + using MagickCore::GaussianNoise; + using MagickCore::MultiplicativeGaussianNoise; + using MagickCore::ImpulseNoise; + using MagickCore::LaplacianNoise; + using MagickCore::PoissonNoise; + + // Orientation types + using MagickCore::OrientationType; + using MagickCore::UndefinedOrientation; + using MagickCore::TopLeftOrientation; + using MagickCore::TopRightOrientation; + using MagickCore::BottomRightOrientation; + using MagickCore::BottomLeftOrientation; + using MagickCore::LeftTopOrientation; + using MagickCore::RightTopOrientation; + using MagickCore::RightBottomOrientation; + using MagickCore::LeftBottomOrientation; + + // Paint methods + using MagickCore::PaintMethod; + using MagickCore::UndefinedMethod; + using MagickCore::PointMethod; + using MagickCore::ReplaceMethod; + using MagickCore::FloodfillMethod; + using MagickCore::FillToBorderMethod; + using MagickCore::ResetMethod; + + using MagickCore::PixelChannel; + using MagickCore::UndefinedPixelChannel; + using MagickCore::RedPixelChannel; + using MagickCore::CyanPixelChannel; + using MagickCore::GrayPixelChannel; + using MagickCore::LPixelChannel; + using MagickCore::YPixelChannel; + using MagickCore::aPixelChannel; + using MagickCore::GreenPixelChannel; + using MagickCore::MagentaPixelChannel; + using MagickCore::CbPixelChannel; + using MagickCore::bPixelChannel; + using MagickCore::BluePixelChannel; + using MagickCore::YellowPixelChannel; + using MagickCore::CrPixelChannel; + using MagickCore::BlackPixelChannel; + using MagickCore::AlphaPixelChannel; + using MagickCore::IndexPixelChannel; + using MagickCore::ReadMaskPixelChannel; + using MagickCore::WriteMaskPixelChannel; + using MagickCore::MetaPixelChannel; + using MagickCore::IntensityPixelChannel; + using MagickCore::CompositePixelChannel; + using MagickCore::SyncPixelChannel; + + // Pixel intensity method + using MagickCore::PixelIntensityMethod; + using MagickCore::UndefinedPixelIntensityMethod; + using MagickCore::AveragePixelIntensityMethod; + using MagickCore::BrightnessPixelIntensityMethod; + using MagickCore::LightnessPixelIntensityMethod; + using MagickCore::MSPixelIntensityMethod; + using MagickCore::Rec601LumaPixelIntensityMethod; + using MagickCore::Rec601LuminancePixelIntensityMethod; + using MagickCore::Rec709LumaPixelIntensityMethod; + using MagickCore::Rec709LuminancePixelIntensityMethod; + using MagickCore::RMSPixelIntensityMethod; + + // PixelInterpolate methods + using MagickCore::PixelInterpolateMethod; + using MagickCore::UndefinedInterpolatePixel; + using MagickCore::AverageInterpolatePixel; + using MagickCore::Average9InterpolatePixel; + using MagickCore::Average16InterpolatePixel; + using MagickCore::BackgroundInterpolatePixel; + using MagickCore::BilinearInterpolatePixel; + using MagickCore::BlendInterpolatePixel; + using MagickCore::CatromInterpolatePixel; + using MagickCore::IntegerInterpolatePixel; + using MagickCore::MeshInterpolatePixel; + using MagickCore::NearestInterpolatePixel; + using MagickCore::SplineInterpolatePixel; + + // Pixel traits + using MagickCore::PixelTrait; + using MagickCore::UndefinedPixelTrait; + using MagickCore::CopyPixelTrait; + using MagickCore::UpdatePixelTrait; + using MagickCore::BlendPixelTrait; + + // Policy domains + using MagickCore::PolicyDomain; + using MagickCore::UndefinedPolicyDomain; + using MagickCore::CoderPolicyDomain; + using MagickCore::DelegatePolicyDomain; + using MagickCore::FilterPolicyDomain; + using MagickCore::PathPolicyDomain; + using MagickCore::ResourcePolicyDomain; + using MagickCore::SystemPolicyDomain; + using MagickCore::CachePolicyDomain; + + // Preview types. Not currently used by Magick++ + using MagickCore::PreviewType; + using MagickCore::UndefinedPreview; + using MagickCore::RotatePreview; + using MagickCore::ShearPreview; + using MagickCore::RollPreview; + using MagickCore::HuePreview; + using MagickCore::SaturationPreview; + using MagickCore::BrightnessPreview; + using MagickCore::GammaPreview; + using MagickCore::SpiffPreview; + using MagickCore::DullPreview; + using MagickCore::GrayscalePreview; + using MagickCore::QuantizePreview; + using MagickCore::DespecklePreview; + using MagickCore::ReduceNoisePreview; + using MagickCore::AddNoisePreview; + using MagickCore::SharpenPreview; + using MagickCore::BlurPreview; + using MagickCore::ThresholdPreview; + using MagickCore::EdgeDetectPreview; + using MagickCore::SpreadPreview; + using MagickCore::SolarizePreview; + using MagickCore::ShadePreview; + using MagickCore::RaisePreview; + using MagickCore::SegmentPreview; + using MagickCore::SwirlPreview; + using MagickCore::ImplodePreview; + using MagickCore::WavePreview; + using MagickCore::OilPaintPreview; + using MagickCore::CharcoalDrawingPreview; + using MagickCore::JPEGPreview; + + // Quantum types + using MagickCore::QuantumType; + using MagickCore::IndexQuantum; + using MagickCore::GrayQuantum; + using MagickCore::IndexAlphaQuantum; + using MagickCore::GrayAlphaQuantum; + using MagickCore::RedQuantum; + using MagickCore::CyanQuantum; + using MagickCore::GreenQuantum; + using MagickCore::YellowQuantum; + using MagickCore::BlueQuantum; + using MagickCore::MagentaQuantum; + using MagickCore::AlphaQuantum; + using MagickCore::BlackQuantum; + using MagickCore::RGBQuantum; + using MagickCore::RGBAQuantum; + using MagickCore::CMYKQuantum; + + // Pixel mask types + using MagickCore::PixelMask; + using MagickCore::UndefinedPixelMask; + using MagickCore::ReadPixelMask; + using MagickCore::WritePixelMask; + + // Rendering intents + using MagickCore::RenderingIntent; + using MagickCore::UndefinedIntent; + using MagickCore::SaturationIntent; + using MagickCore::PerceptualIntent; + using MagickCore::AbsoluteIntent; + using MagickCore::RelativeIntent; + + // Resource types + using MagickCore::ResourceType; + using MagickCore::UndefinedResource; + using MagickCore::AreaResource; + using MagickCore::DiskResource; + using MagickCore::FileResource; + using MagickCore::HeightResource; + using MagickCore::MapResource; + using MagickCore::MemoryResource; + using MagickCore::ThreadResource; + using MagickCore::ThrottleResource; + using MagickCore::TimeResource; + using MagickCore::WidthResource; + using MagickCore::ListLengthResource; + + // Resolution units + using MagickCore::ResolutionType; + using MagickCore::UndefinedResolution; + using MagickCore::PixelsPerInchResolution; + using MagickCore::PixelsPerCentimeterResolution; + + // Sparse Color methods + using MagickCore::SparseColorMethod; + using MagickCore::UndefinedColorInterpolate; + using MagickCore::BarycentricColorInterpolate; + using MagickCore::BilinearColorInterpolate; + using MagickCore::PolynomialColorInterpolate; + using MagickCore::ShepardsColorInterpolate; + using MagickCore::VoronoiColorInterpolate; + using MagickCore::InverseColorInterpolate; + using MagickCore::ManhattanColorInterpolate; + + // Statistic type + using MagickCore::StatisticType; + using MagickCore::UndefinedStatistic; + using MagickCore::GradientStatistic; + using MagickCore::MaximumStatistic; + using MagickCore::MeanStatistic; + using MagickCore::MedianStatistic; + using MagickCore::MinimumStatistic; + using MagickCore::ModeStatistic; + using MagickCore::NonpeakStatistic; + using MagickCore::RootMeanSquareStatistic; + using MagickCore::StandardDeviationStatistic; + + // StorageType type + using MagickCore::StorageType; + using MagickCore::UndefinedPixel; + using MagickCore::CharPixel; + using MagickCore::DoublePixel; + using MagickCore::FloatPixel; + using MagickCore::LongPixel; + using MagickCore::LongLongPixel; + using MagickCore::QuantumPixel; + using MagickCore::ShortPixel; + + // StretchType type + using MagickCore::StretchType; + using MagickCore::UndefinedStretch; + using MagickCore::NormalStretch; + using MagickCore::UltraCondensedStretch; + using MagickCore::ExtraCondensedStretch; + using MagickCore::CondensedStretch; + using MagickCore::SemiCondensedStretch; + using MagickCore::SemiExpandedStretch; + using MagickCore::ExpandedStretch; + using MagickCore::ExtraExpandedStretch; + using MagickCore::UltraExpandedStretch; + using MagickCore::AnyStretch; + + // StyleType type + using MagickCore::StyleType; + using MagickCore::UndefinedStyle; + using MagickCore::NormalStyle; + using MagickCore::ItalicStyle; + using MagickCore::ObliqueStyle; + using MagickCore::AnyStyle; + + // Virtual pixel methods + using MagickCore::VirtualPixelMethod; + using MagickCore::UndefinedVirtualPixelMethod; + using MagickCore::BackgroundVirtualPixelMethod; + using MagickCore::DitherVirtualPixelMethod; + using MagickCore::EdgeVirtualPixelMethod; + using MagickCore::MirrorVirtualPixelMethod; + using MagickCore::RandomVirtualPixelMethod; + using MagickCore::TileVirtualPixelMethod; + using MagickCore::TransparentVirtualPixelMethod; + using MagickCore::MaskVirtualPixelMethod; + using MagickCore::BlackVirtualPixelMethod; + using MagickCore::GrayVirtualPixelMethod; + using MagickCore::WhiteVirtualPixelMethod; + using MagickCore::HorizontalTileVirtualPixelMethod; + using MagickCore::VerticalTileVirtualPixelMethod; + using MagickCore::HorizontalTileEdgeVirtualPixelMethod; + using MagickCore::VerticalTileEdgeVirtualPixelMethod; + using MagickCore::CheckerTileVirtualPixelMethod; + +#if defined(MAGICKCORE_IMPLEMENTATION) + // + // ImageMagick symbols used in implementation code + // + using MagickCore::AcquireAlignedMemory; + using MagickCore::AcquireAuthenticCacheView; + using MagickCore::AcquireDrawingWand; + using MagickCore::AcquireExceptionInfo; + using MagickCore::AcquireVirtualCacheView; + using MagickCore::AcquireImage; + using MagickCore::AcquireKernelInfo; + using MagickCore::AcquireMagickInfo; + using MagickCore::AcquireMagickMemory; + using MagickCore::AcquireQuantumInfo; + using MagickCore::AcquireString; + using MagickCore::AcquireStringInfo; + using MagickCore::AdaptiveBlurImage; + using MagickCore::AdaptiveResizeImage; + using MagickCore::AdaptiveSharpenImage; + using MagickCore::AdaptiveThresholdImage; + using MagickCore::AddNoiseImage; + using MagickCore::AffineTransformImage; + using MagickCore::AnnotateImage; + using MagickCore::AutoGammaImage; + using MagickCore::AutoLevelImage; + using MagickCore::AutoOrientImage; + using MagickCore::AutoThresholdImage; + using MagickCore::Base64Decode; + using MagickCore::Base64Encode; + using MagickCore::BilevelImage; + using MagickCore::BlackThresholdImage; + using MagickCore::BlobToImage; + using MagickCore::BlueShiftImage; + using MagickCore::BlurImage; + using MagickCore::BrightnessContrastImage; + using MagickCore::BorderImage; + using MagickCore::CharcoalImage; + using MagickCore::CannyEdgeImage; + using MagickCore::ChopImage; + using MagickCore::ClampImage; + using MagickCore::ClampToQuantum; + using MagickCore::ClearMagickException; + using MagickCore::CloneDrawInfo; + using MagickCore::CloneImage; + using MagickCore::CloneImageInfo; + using MagickCore::CloneQuantizeInfo; + using MagickCore::ClutImage; + using MagickCore::ColorDecisionListImage; + using MagickCore::ColorizeImage; + using MagickCore::ColorMatrixImage; + using MagickCore::CommandOptionToMnemonic; + using MagickCore::CompareImages; + using MagickCore::CompareImagesLayers; + using MagickCore::CompositeImage; + using MagickCore::ConnectedComponentsImage; + using MagickCore::ConstituteImage; + using MagickCore::ContrastImage; + using MagickCore::ContrastStretchImage; + using MagickCore::ConvertHSLToRGB; + using MagickCore::ConvertRGBToHSL; + using MagickCore::ConvolveImage; + using MagickCore::CopyImagePixels; + using MagickCore::CopyMagickString; + using MagickCore::CropImage; + using MagickCore::CropImageToTiles; + using MagickCore::CycleColormapImage; + using MagickCore::DecipherImage; + using MagickCore::DeleteImageOption; + using MagickCore::DeleteImageRegistry; + using MagickCore::DeskewImage; + using MagickCore::DespeckleImage; + using MagickCore::DestroyCacheView; + using MagickCore::DestroyDrawInfo; + using MagickCore::DestroyDrawingWand; + using MagickCore::DestroyExceptionInfo; + using MagickCore::DestroyImageInfo; + using MagickCore::DestroyImageList; + using MagickCore::DestroyKernelInfo; + using MagickCore::DestroyMagickWand; + using MagickCore::DestroyPixelWand; + using MagickCore::DestroyQuantizeInfo; + using MagickCore::DestroyQuantumInfo; + using MagickCore::DestroyString; + using MagickCore::DestroyStringInfo; + using MagickCore::DisplayImages; + using MagickCore::DistortImage; + using MagickCore::DrawAffine; + using MagickCore::DrawAlpha; + using MagickCore::DrawAnnotation; + using MagickCore::DrawArc; + using MagickCore::DrawBezier; + using MagickCore::DrawCircle; + using MagickCore::DrawColor; + using MagickCore::DrawComment; + using MagickCore::DrawComposite; + using MagickCore::DrawEllipse; + using MagickCore::DrawImage; + using MagickCore::DrawLine; + using MagickCore::DrawPathClose; + using MagickCore::DrawPathCurveToAbsolute; + using MagickCore::DrawPathCurveToQuadraticBezierAbsolute; + using MagickCore::DrawPathCurveToQuadraticBezierRelative; + using MagickCore::DrawPathCurveToQuadraticBezierSmoothAbsolute; + using MagickCore::DrawPathCurveToQuadraticBezierSmoothRelative; + using MagickCore::DrawPathCurveToRelative; + using MagickCore::DrawPathCurveToSmoothAbsolute; + using MagickCore::DrawPathCurveToSmoothRelative; + using MagickCore::DrawPathEllipticArcAbsolute; + using MagickCore::DrawPathEllipticArcRelative; + using MagickCore::DrawPathFinish; + using MagickCore::DrawPathLineToAbsolute; + using MagickCore::DrawPathLineToHorizontalAbsolute; + using MagickCore::DrawPathLineToHorizontalRelative; + using MagickCore::DrawPathLineToRelative; + using MagickCore::DrawPathLineToVerticalAbsolute; + using MagickCore::DrawPathLineToVerticalRelative; + using MagickCore::DrawPathMoveToAbsolute; + using MagickCore::DrawPathMoveToRelative; + using MagickCore::DrawPathStart; + using MagickCore::DrawPoint; + using MagickCore::DrawPolygon; + using MagickCore::DrawPolyline; + using MagickCore::DrawPopClipPath; + using MagickCore::DrawPopDefs; + using MagickCore::DrawPopPattern; + using MagickCore::DrawPushClipPath; + using MagickCore::DrawPushDefs; + using MagickCore::DrawPushPattern; + using MagickCore::DrawRectangle; + using MagickCore::DrawRender; + using MagickCore::DrawRotate; + using MagickCore::DrawRoundRectangle; + using MagickCore::DrawScale; + using MagickCore::DrawSetClipPath; + using MagickCore::DrawSetClipRule; + using MagickCore::DrawSetClipUnits; + using MagickCore::DrawSetFillColor; + using MagickCore::DrawSetFillOpacity; + using MagickCore::DrawSetFillPatternURL; + using MagickCore::DrawSetFillRule; + using MagickCore::DrawSetFont; + using MagickCore::DrawSetFontFamily; + using MagickCore::DrawSetFontSize; + using MagickCore::DrawSetFontStretch; + using MagickCore::DrawSetFontStyle; + using MagickCore::DrawSetFontWeight; + using MagickCore::DrawSetGravity; + using MagickCore::DrawSetStrokeAntialias; + using MagickCore::DrawSetStrokeColor; + using MagickCore::DrawSetStrokeDashArray; + using MagickCore::DrawSetStrokeDashOffset; + using MagickCore::DrawSetStrokeLineCap; + using MagickCore::DrawSetStrokeLineJoin; + using MagickCore::DrawSetStrokeMiterLimit; + using MagickCore::DrawSetStrokeOpacity; + using MagickCore::DrawSetStrokePatternURL; + using MagickCore::DrawSetStrokeWidth; + using MagickCore::DrawSetTextAntialias; + using MagickCore::DrawSetTextDecoration; + using MagickCore::DrawSetTextEncoding; + using MagickCore::DrawSetTextInterlineSpacing; + using MagickCore::DrawSetTextInterwordSpacing; + using MagickCore::DrawSetTextKerning; + using MagickCore::DrawSetTextUnderColor; + using MagickCore::DrawSetViewbox; + using MagickCore::DrawSkewX; + using MagickCore::DrawSkewY; + using MagickCore::DrawTranslate; + using MagickCore::EdgeImage; + using MagickCore::EmbossImage; + using MagickCore::EncipherImage; + using MagickCore::EnhanceImage; + using MagickCore::EqualizeImage; + using MagickCore::EvaluateImage; + using MagickCore::ExportImagePixels; + using MagickCore::ExportQuantumPixels; + using MagickCore::ExtentImage; + using MagickCore::FlipImage; + using MagickCore::FloodfillPaintImage; + using MagickCore::FlopImage; + using MagickCore::FormatLocaleString; + using MagickCore::ForwardFourierTransformImage; + using MagickCore::FrameImage; + using MagickCore::FxImage; + using MagickCore::GammaImage; + using MagickCore::GaussianBlurImage; + using MagickCore::GaussianBlurImage; + using MagickCore::GetAffineMatrix; + using MagickCore::GetAuthenticMetacontent; + using MagickCore::GetBlobSize; + using MagickCore::GetCacheViewAuthenticMetacontent; + using MagickCore::GetCacheViewAuthenticPixels; + using MagickCore::GetCacheViewVirtualPixels; + using MagickCore::GetClientName; + using MagickCore::GetColorTuple; + using MagickCore::GetDrawInfo; + using MagickCore::GetGeometry; + using MagickCore::GetImageArtifact; + using MagickCore::GetImageMoments; + using MagickCore::GetImageBoundingBox; + using MagickCore::GetImageDistortion; + using MagickCore::GetImageDepth; + using MagickCore::GetImageMask; + using MagickCore::GetImageMean; + using MagickCore::GetImageKurtosis; + using MagickCore::GetImageRange; + using MagickCore::GetImageDepth; + using MagickCore::GetImageInfo; + using MagickCore::GetImageInfoFile; + using MagickCore::GetImageOption; + using MagickCore::GetImagePerceptualHash; + using MagickCore::GetAuthenticPixels; + using MagickCore::GetImageProfile; + using MagickCore::GetImageProperty; + using MagickCore::GetImageQuantizeError; + using MagickCore::GetImageType; + using MagickCore::GetMagickDecoderThreadSupport; + using MagickCore::GetMagickEncoderThreadSupport; + using MagickCore::GetMagickInfo; + using MagickCore::GetMultilineTypeMetrics; + using MagickCore::GetNextValueInLinkedList; + using MagickCore::GetNumberOfElementsInLinkedList; + using MagickCore::GetPixelBlue; + using MagickCore::GetPixelChannelOffset; + using MagickCore::GetPixelChannelTraits; + using MagickCore::GetPixelGreen; + using MagickCore::GetPixelInfo; + using MagickCore::GetPixelRed; + using MagickCore::GetNumberColors; + using MagickCore::GetPageGeometry; + using MagickCore::GetQuantizeInfo; + using MagickCore::GetStringInfoDatum; + using MagickCore::GetStringInfoLength; + using MagickCore::GetTypeMetrics; + using MagickCore::GetValueFromLinkedList; + using MagickCore::GetVirtualMetacontent; + using MagickCore::GetVirtualPixels; + using MagickCore::GetImageVirtualPixelMethod; + using MagickCore::GlobExpression; + using MagickCore::GravityAdjustGeometry; + using MagickCore::GrayscaleImage; + using MagickCore::HaldClutImage; + using MagickCore::HoughLineImage; + using MagickCore::ImageToBlob; + using MagickCore::ImagesToBlob; + using MagickCore::ImplodeImage; + using MagickCore::ImportQuantumPixels; + using MagickCore::InterpretImageProperties; + using MagickCore::InverseFourierTransformImage; + using MagickCore::InvokeDynamicImageFilter; + using MagickCore::IsEventLogging; + using MagickCore::IsGeometry; + using MagickCore::IsImageOpaque; + using MagickCore::IsImagesEqual; + using MagickCore::KuwaharaImage; + using MagickCore::LevelImage; + using MagickCore::LevelImageColors; + using MagickCore::LevelizeImage; + using MagickCore::LinearStretchImage; + using MagickCore::LiquidRescaleImage; + using MagickCore::LocalContrastImage; + using MagickCore::LocaleCompare; + using MagickCore::LockSemaphoreInfo; + using MagickCore::LogMagickEvent; + using MagickCore::MagickCoreTerminus; + using MagickCore::MagickToMime; + using MagickCore::MagnifyImage; + using MagickCore::MergeImageLayers; + using MagickCore::MinifyImage; + using MagickCore::ModulateImage; + using MagickCore::MorphologyImage; + using MagickCore::MotionBlurImage; + using MagickCore::NegateImage; + using MagickCore::NewMagickWandFromImage; + using MagickCore::NewPixelWand; + using MagickCore::NormalizeImage; + using MagickCore::OilPaintImage; + using MagickCore::OpaquePaintImage; + using MagickCore::OrderedDitherImage; + using MagickCore::OptimizeImageLayers; + using MagickCore::OptimizeImageTransparency; + using MagickCore::OptimizePlusImageLayers; + using MagickCore::ParseMetaGeometry; + using MagickCore::PerceptibleImage; + using MagickCore::PingBlob; + using MagickCore::PingImage; + using MagickCore::PixelSetPixelColor; + using MagickCore::PolaroidImage; + using MagickCore::PopDrawingWand; + using MagickCore::PosterizeImage; + using MagickCore::ProfileImage; + using MagickCore::PushDrawingWand; + using MagickCore::QuantizeImage; + using MagickCore::QueueAuthenticPixels; + using MagickCore::QueueCacheViewAuthenticPixels; + using MagickCore::RaiseImage; + using MagickCore::RandomThresholdImage; + using MagickCore::ReadImage; + using MagickCore::RegisterMagickInfo; + using MagickCore::RelinquishMagickMemory; + using MagickCore::RemapImage; + using MagickCore::ResampleImage; + using MagickCore::ResetLinkedListIterator; + using MagickCore::ResizeImage; + using MagickCore::ResizeMagickMemory; + using MagickCore::RollImage; + using MagickCore::RotateImage; + using MagickCore::RotationalBlurImage; + using MagickCore::SampleImage; + using MagickCore::ScaleImage; + using MagickCore::SegmentImage; + using MagickCore::SelectiveBlurImage; + using MagickCore::SeparateImage; + using MagickCore::SepiaToneImage; + using MagickCore::SetGeometry; + using MagickCore::SetImageAlpha; + using MagickCore::SetImageArtifact; + using MagickCore::SetImageBackgroundColor; + using MagickCore::SetImageColorspace; + using MagickCore::SetImageDepth; + using MagickCore::SetImageExtent; + using MagickCore::SetImageInfo; + using MagickCore::SetImageInfoFile; + using MagickCore::SetImageMask; + using MagickCore::SetImageOption; + using MagickCore::SetImageProfile; + using MagickCore::SetImageProperty; + using MagickCore::SetImageRegistry; + using MagickCore::SetImageType; + using MagickCore::SetLogEventMask; + using MagickCore::SetMagickResourceLimit; + using MagickCore::SetImageVirtualPixelMethod; + using MagickCore::SetPixelChannel; + using MagickCore::SetImageChannelMask; + using MagickCore::SetStringInfoDatum; + using MagickCore::ShadeImage; + using MagickCore::ShadowImage; + using MagickCore::SharpenImage; + using MagickCore::SharpenImage; + using MagickCore::ShaveImage; + using MagickCore::ShearImage; + using MagickCore::SigmoidalContrastImage; + using MagickCore::SignatureImage; + using MagickCore::SimilarityImage; + using MagickCore::SketchImage; + using MagickCore::SmushImages; + using MagickCore::SolarizeImage; + using MagickCore::SparseColorImage; + using MagickCore::SpliceImage; + using MagickCore::SpreadImage; + using MagickCore::StatisticImage; + using MagickCore::SteganoImage; + using MagickCore::StereoImage; + using MagickCore::StripImage; + using MagickCore::SwirlImage; + using MagickCore::SyncCacheViewAuthenticPixels; + using MagickCore::SyncImage; + using MagickCore::SyncAuthenticPixels; + using MagickCore::TextureImage; + using MagickCore::ThrowException; + using MagickCore::TintImage; + using MagickCore::TransformImageColorspace; + using MagickCore::TransparentPaintImage; + using MagickCore::TransparentPaintImageChroma; + using MagickCore::TransposeImage; + using MagickCore::TransverseImage; + using MagickCore::TrimImage; + using MagickCore::UniqueImageColors; + using MagickCore::UnlockSemaphoreInfo; + using MagickCore::UnregisterMagickInfo; + using MagickCore::UnsharpMaskImage; + using MagickCore::VignetteImage; + using MagickCore::WaveImage; + using MagickCore::WaveletDenoiseImage; + using MagickCore::WhiteThresholdImage; + using MagickCore::WriteImage; + +#endif // MAGICKCORE_IMPLEMENTATION + +} + +////////////////////////////////////////////////////////////////////// +// +// No user-serviceable parts beyond this point +// +////////////////////////////////////////////////////////////////////// +#define GetPPException \ + MagickCore::ExceptionInfo \ + *exceptionInfo; \ + exceptionInfo=MagickCore::AcquireExceptionInfo(); +#define GetAndSetPPChannelMask(channel) \ + MagickCore::ChannelType \ + channel_mask; \ + channel_mask=MagickCore::SetImageChannelMask(image(),channel) +#define ClonePPDrawException(wand) \ + MagickCore::ExceptionInfo \ + *exceptionInfo; \ + exceptionInfo=MagickCore::DrawCloneExceptionInfo(wand) +#define RestorePPChannelMask \ + MagickCore::SetPixelChannelMask(image(),channel_mask) +#define SetPPChannelMask(channel) \ + (void) MagickCore::SetImageChannelMask(image(),channel) +#define ThrowPPDrawException(quiet) \ + throwException(exceptionInfo,quiet); \ + (void) MagickCore::DestroyExceptionInfo(exceptionInfo) +#define ThrowPPException(quiet) \ + throwException(exceptionInfo,quiet); \ + (void) MagickCore::DestroyExceptionInfo(exceptionInfo) + +#endif // Magick_Include_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Montage.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Montage.h new file mode 100644 index 0000000000000000000000000000000000000000..3b66629b39ba1601c8a56b9370a066f6d678f1b0 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Montage.h @@ -0,0 +1,158 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 +// +// Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Definition of Montage class used to specify montage options. +// + +#if !defined(Magick_Montage_header) +#define Magick_Montage_header + +#include "Magick++/Include.h" +#include +#include "Magick++/Color.h" +#include "Magick++/Geometry.h" + +// +// Basic (Un-framed) Montage +// +namespace Magick +{ + class MagickPPExport Montage + { + public: + + Montage(void); + virtual ~Montage(void); + + // Color that thumbnails are composed on + void backgroundColor(const Color &backgroundColor_); + Color backgroundColor(void) const; + + // Composition algorithm to use (e.g. ReplaceCompositeOp) + void compose(CompositeOperator compose_); + CompositeOperator compose(void) const; + + // Filename to save montages to + void fileName(const std::string &fileName_); + std::string fileName(void) const; + + // Fill color + void fillColor(const Color &fill_); + Color fillColor(void) const; + + // Label font + void font(const std::string &font_); + std::string font(void) const; + + // Thumbnail width & height plus border width & height + void geometry(const Geometry &geometry_); + Geometry geometry(void) const; + + // Thumbnail position (e.g. SouthWestGravity) + void gravity(GravityType gravity_); + GravityType gravity(void) const; + + // Thumbnail label (applied to image prior to montage) + void label(const std::string &label_); + std::string label(void) const; + + // Font point size + void pointSize(size_t pointSize_); + size_t pointSize(void) const; + + // Enable drop-shadows on thumbnails + void shadow(bool shadow_); + bool shadow(void) const; + + // Outline color + void strokeColor(const Color &stroke_); + Color strokeColor(void) const; + + // Background texture image + void texture(const std::string &texture_); + std::string texture(void) const; + + // Thumbnail rows and columns + void tile(const Geometry &tile_); + Geometry tile(void) const; + + // Montage title + void title(const std::string &title_); + std::string title(void) const; + + // Transparent color + void transparentColor(const Color &transparentColor_); + Color transparentColor(void) const; + + // + // Implementation methods/members + // + + // Update elements in existing MontageInfo structure + virtual void updateMontageInfo(MagickCore::MontageInfo &montageInfo_) const; + + private: + + Color _backgroundColor; + std::string _fileName; + Color _fill; + std::string _font; + Geometry _geometry; + GravityType _gravity; + std::string _label; + size_t _pointSize; + bool _shadow; + Color _stroke; + std::string _texture; + Geometry _tile; + std::string _title; + Color _transparentColor; + }; + + // + // Montage With Frames (Extends Basic Montage) + // + class MagickPPExport MontageFramed : public Montage + { + public: + + MontageFramed(void); + ~MontageFramed(void); + + // Frame foreground color + void matteColor(const Color &matteColor_); + Color matteColor(void) const; + + // Frame border color + void borderColor(const Color &borderColor_); + Color borderColor(void) const; + + // Pixels between thumbnail and surrounding frame + void borderWidth(size_t borderWidth_); + size_t borderWidth(void) const; + + // Frame geometry (width & height frame thickness) + void frameGeometry(const Geometry &frame_); + Geometry frameGeometry(void) const; + + // + // Implementation methods/members + // + + // Update elements in existing MontageInfo structure + void updateMontageInfo(MagickCore::MontageInfo &montageInfo_) const; + + private: + + Color _matteColor; + Color _borderColor; + size_t _borderWidth; + Geometry _frame; + }; +} // namespace Magick + +#endif // Magick_Montage_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Pixels.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Pixels.h new file mode 100644 index 0000000000000000000000000000000000000000..a28ffc631eb0950466d5aa45582aa01c5c6d1134 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Pixels.h @@ -0,0 +1,154 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002 +// +// Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Representation of a pixel view. +// + +#if !defined(Magick_Pixels_header) +#define Magick_Pixels_header + +#include "Magick++/Include.h" +#include "Magick++/Color.h" +#include "Magick++/Image.h" + +namespace Magick +{ + class MagickPPExport Pixels + { + public: + + // Construct pixel view using specified image. + Pixels(Magick::Image &image_); + + // Destroy pixel view + ~Pixels(void); + + // Transfer pixels from the image to the pixel view as defined by + // the specified region. Modified pixels may be subsequently + // transferred back to the image via sync. + Quantum *get(const ::ssize_t x_,const ::ssize_t y_, + const size_t columns_,const size_t rows_); + + // Transfer read-only pixels from the image to the pixel view as + // defined by the specified region. + const Quantum *getConst(const ::ssize_t x_,const ::ssize_t y_, + const size_t columns_,const size_t rows_); + + // Return pixel metacontent + void *metacontent(void); + + // Returns the offset for the specified channel. + ssize_t offset(PixelChannel channel) const; + + // Allocate a pixel view region to store image pixels as defined + // by the region rectangle. This area is subsequently transferred + // from the pixel view to the image via sync. + Quantum *set(const ::ssize_t x_,const ::ssize_t y_,const size_t columns_, + const size_t rows_ ); + + // Transfers the image view pixels to the image. + void sync(void); + + // Left ordinate of view + ::ssize_t x(void) const; + + // Top ordinate of view + ::ssize_t y(void) const; + + // Width of view + size_t columns(void) const; + + // Height of view + size_t rows(void) const; + + private: + + // Copying and assigning Pixels is not supported. + Pixels(const Pixels& pixels_); + const Pixels& operator=(const Pixels& pixels_); + + Magick::Image _image; // Image reference + MagickCore::CacheView *_view; // Image view handle + ::ssize_t _x; // Left ordinate of view + ::ssize_t _y; // Top ordinate of view + size_t _columns; // Width of view + size_t _rows; // Height of view + + }; // class Pixels + + class MagickPPExport PixelData + { + public: + + // Construct pixel data using specified image + PixelData(Magick::Image &image_,std::string map_,const StorageType type_); + + // Construct pixel data using specified image + PixelData(Magick::Image &image_,const ::ssize_t x_,const ::ssize_t y_, + const size_t width_,const size_t height_,std::string map_, + const StorageType type_); + + // Destroy pixel data + ~PixelData(void); + + // Pixel data buffer + const void *data(void) const; + + // Length of the buffer + ::ssize_t length(void) const; + + // Size of the buffer in bytes + ::ssize_t size(void) const; + + private: + + // Copying and assigning PixelData is not supported + PixelData(const PixelData& pixels_); + const PixelData& operator=(const PixelData& pixels_); + + void init(Magick::Image &image_,const ::ssize_t x_,const ::ssize_t y_, + const size_t width_,const size_t height_,std::string map_, + const StorageType type_); + + void relinquish(void) throw(); + + void *_data; // The pixel data + ::ssize_t _length; // Length of the data + ::ssize_t _size; // Size of the data + }; // class PixelData + +} // Magick namespace + +// +// Inline methods +// + +// Left ordinate of view +inline ::ssize_t Magick::Pixels::x(void) const +{ + return _x; +} + +// Top ordinate of view +inline ::ssize_t Magick::Pixels::y(void) const +{ + return _y; +} + +// Width of view +inline size_t Magick::Pixels::columns(void) const +{ + return _columns; +} + +// Height of view +inline size_t Magick::Pixels::rows(void) const +{ + return _rows; +} + +#endif // Magick_Pixels_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/ResourceLimits.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/ResourceLimits.h new file mode 100644 index 0000000000000000000000000000000000000000..87153bae4554d9f871e67305378f051b325f1948 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/ResourceLimits.h @@ -0,0 +1,77 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Definition of resource limits. +// + +#if !defined(Magick_ResourceLimits_header) +#define Magick_ResourceLimits_header + +#include "Magick++/Include.h" + +namespace Magick +{ + class MagickPPExport ResourceLimits + { + public: + + // Pixel cache limit in bytes. Requests for memory above this limit + // are automagically allocated on disk. + static void area(const MagickSizeType limit_); + static MagickSizeType area(void); + + // Pixel cache limit in bytes. Requests for memory above this limit + // will fail. + static void disk(const MagickSizeType limit_); + static MagickSizeType disk(void); + + // The maximum number of open pixel cache files. When this limit is + // exceeded, any subsequent pixels cached to disk are closed and reopened + // on demand. This behavior permits a large number of images to be accessed + // simultaneously on disk, but with a speed penalty due to repeated + // open/close calls. + static void file(const MagickSizeType limit_); + static MagickSizeType file(void); + + // The maximum height of an image. + static void height(const MagickSizeType limit_); + static MagickSizeType height(void); + + // The maximum number of images in an image list. + static void listLength(const MagickSizeType limit_); + static MagickSizeType listLength(); + + // Pixel cache limit in bytes. Once this memory limit is exceeded, + // all subsequent pixels cache operations are to/from disk. + static void map(const MagickSizeType limit_); + static MagickSizeType map(void); + + // Pixel cache limit in bytes. Once this memory limit is exceeded, + // all subsequent pixels cache operations are to/from disk or to/from + // memory mapped files. + static void memory(const MagickSizeType limit_); + static MagickSizeType memory(void); + + // Limits the number of threads used in multithreaded operations. + static void thread(const MagickSizeType limit_); + static MagickSizeType thread(void); + + // Periodically yield the CPU for at least the time specified in + // milliseconds. + static void throttle(const MagickSizeType limit_); + static MagickSizeType throttle(void); + + // The maximum width of an image. + static void width(const MagickSizeType limit_); + static MagickSizeType width(void); + + private: + ResourceLimits(void); + + }; // class ResourceLimits + +} // Magick namespace + +#endif // Magick_ResourceLimits_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/STL.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/STL.h new file mode 100644 index 0000000000000000000000000000000000000000..161643a8e6e081b0d51d8a41baa84e540fd445fa --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/STL.h @@ -0,0 +1,2874 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 +// +// Copyright @ 2013 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Definition and implementation of template functions for using +// Magick::Image with STL containers. +// + +#ifndef Magick_STL_header +#define Magick_STL_header + +#include "Magick++/Include.h" +#include +#include +#include +#include +#include + +#include "Magick++/CoderInfo.h" +#include "Magick++/Drawable.h" +#include "Magick++/Exception.h" +#include "Magick++/Montage.h" + +namespace Magick +{ + // + // STL function object declarations/definitions + // + + // Function objects provide the means to invoke an operation on one + // or more image objects in an STL-compatable container. The + // arguments to the function object constructor(s) are compatable + // with the arguments to the equivalent Image class method and + // provide the means to supply these options when the function + // object is invoked. + + // For example, to read a GIF animation, set the color red to + // transparent for all frames, and write back out: + // + // list images; + // readImages( &images, "animation.gif" ); + // for_each( images.begin(), images.end(), transparentImage( "red" ) ); + // writeImages( images.begin(), images.end(), "animation.gif" ); + + // Adaptive-blur image with specified blur factor + class MagickPPExport adaptiveBlurImage + { + public: + adaptiveBlurImage( const double radius_ = 1, const double sigma_ = 0.5 ); + + void operator()( Image &image_ ) const; + + private: + double _radius; + double _sigma; + }; + + // Local adaptive threshold image + // http://www.dai.ed.ac.uk/HIPR2/adpthrsh.htm + // Width x height define the size of the pixel neighborhood + // offset = constant to subtract from pixel neighborhood mean + class MagickPPExport adaptiveThresholdImage + { + public: + adaptiveThresholdImage( const size_t width_, + const size_t height_, + const ::ssize_t offset_ = 0 ); + + void operator()( Image &image_ ) const; + + private: + size_t _width; + size_t _height; + ::ssize_t _offset; + }; + + // Add noise to image with specified noise type + class MagickPPExport addNoiseImage + { + public: + addNoiseImage(const NoiseType noiseType_,const double attenuate_ = 1.0); + + void operator()(Image &image_) const; + + private: + NoiseType _noiseType; + double _attenuate; + }; + + // Transform image by specified affine (or free transform) matrix. + class MagickPPExport affineTransformImage + { + public: + affineTransformImage( const DrawableAffine &affine_ ); + + void operator()( Image &image_ ) const; + + private: + DrawableAffine _affine; + }; + + // Annotate image (draw text on image) + class MagickPPExport annotateImage + { + public: + // Annotate using specified text, and placement location + annotateImage ( const std::string &text_, + const Geometry &geometry_ ); + + // Annotate using specified text, bounding area, and placement + // gravity + annotateImage ( const std::string &text_, + const Geometry &geometry_, + const GravityType gravity_ ); + + // Annotate with text using specified text, bounding area, + // placement gravity, and rotation. + annotateImage ( const std::string &text_, + const Geometry &geometry_, + const GravityType gravity_, + const double degrees_ ); + + // Annotate with text (bounding area is entire image) and + // placement gravity. + annotateImage ( const std::string &text_, + const GravityType gravity_ ); + + void operator()( Image &image_ ) const; + + private: + const std::string _text; + const Geometry _geometry; + const GravityType _gravity; + const double _degrees; + }; + + // Blur image with specified blur factor + class MagickPPExport blurImage + { + public: + blurImage( const double radius_ = 1, const double sigma_ = 0.5 ); + + void operator()( Image &image_ ) const; + + private: + double _radius; + double _sigma; + }; + + // Border image (add border to image) + class MagickPPExport borderImage + { + public: + borderImage( const Geometry &geometry_ = borderGeometryDefault ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + }; + + // Extract channel from image + class MagickPPExport channelImage + { + public: + channelImage( const ChannelType channel_ ); + + void operator()( Image &image_ ) const; + + private: + ChannelType _channel; + }; + + // Charcoal effect image (looks like charcoal sketch) + class MagickPPExport charcoalImage + { + public: + charcoalImage( const double radius_ = 1, const double sigma_ = 0.5 ); + + void operator()( Image &image_ ) const; + + private: + double _radius; + double _sigma; + }; + + // Chop image (remove vertical or horizontal subregion of image) + class MagickPPExport chopImage + { + public: + chopImage( const Geometry &geometry_ ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + }; + + // Accepts a lightweight Color Correction Collection (CCC) file which solely + // contains one or more color corrections and applies the correction to the + // image. + class MagickPPExport cdlImage + { + public: + cdlImage( const std::string &cdl_ ); + + void operator()( Image &image_ ) const; + + private: + std::string _cdl; + }; + + // Colorize image using pen color at specified percent alpha + class MagickPPExport colorizeImage + { + public: + colorizeImage( const unsigned int alphaRed_, + const unsigned int alphaGreen_, + const unsigned int alphaBlue_, + const Color &penColor_ ); + + colorizeImage( const unsigned int alpha_, + const Color &penColor_ ); + + void operator()( Image &image_ ) const; + + private: + unsigned int _alphaRed; + unsigned int _alphaGreen; + unsigned int _alphaBlue; + Color _penColor; + }; + + // Apply a color matrix to the image channels. The user supplied + // matrix may be of order 1 to 5 (1x1 through 5x5). + class MagickPPExport colorMatrixImage + { + public: + colorMatrixImage( const size_t order_, + const double *color_matrix_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _order; + const double *_color_matrix; + }; + + // Convert the image colorspace representation + class MagickPPExport colorSpaceImage + { + public: + colorSpaceImage( ColorspaceType colorSpace_ ); + + void operator()( Image &image_ ) const; + + private: + ColorspaceType _colorSpace; + }; + + // Comment image (add comment string to image) + class MagickPPExport commentImage + { + public: + commentImage( const std::string &comment_ ); + + void operator()( Image &image_ ) const; + + private: + std::string _comment; + }; + + // Compose an image onto another at specified offset and using + // specified algorithm + class MagickPPExport compositeImage + { + public: + compositeImage( const Image &compositeImage_, + ::ssize_t xOffset_, + ::ssize_t yOffset_, + CompositeOperator compose_ = InCompositeOp ); + + compositeImage( const Image &compositeImage_, + const Geometry &offset_, + CompositeOperator compose_ = InCompositeOp ); + + void operator()( Image &image_ ) const; + + private: + Image _compositeImage; + ::ssize_t _xOffset; + ::ssize_t _yOffset; + CompositeOperator _compose; + }; + + // Contrast image (enhance intensity differences in image) + class MagickPPExport contrastImage + { + public: + contrastImage( const size_t sharpen_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _sharpen; + }; + + // Crop image (subregion of original image) + class MagickPPExport cropImage + { + public: + cropImage( const Geometry &geometry_ ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + }; + + // Cycle image colormap + class MagickPPExport cycleColormapImage + { + public: + cycleColormapImage( const ::ssize_t amount_ ); + + void operator()( Image &image_ ) const; + + private: + ::ssize_t _amount; + }; + + // Despeckle image (reduce speckle noise) + class MagickPPExport despeckleImage + { + public: + despeckleImage( void ); + + void operator()( Image &image_ ) const; + + private: + }; + + // Distort image. distorts an image using various distortion methods, by + // mapping color lookups of the source image to a new destination image + // usually of the same size as the source image, unless 'bestfit' is set to + // true. + class MagickPPExport distortImage + { + public: + distortImage( const Magick::DistortMethod method_, + const size_t number_arguments_, + const double *arguments_, + const bool bestfit_ ); + + distortImage( const Magick::DistortMethod method_, + const size_t number_arguments_, + const double *arguments_ ); + + void operator()( Image &image_ ) const; + + private: + DistortMethod _method; + size_t _number_arguments; + const double *_arguments; + bool _bestfit; + }; + + // Draw on image + class MagickPPExport drawImage + { + public: + // Draw on image using a single drawable + // Store in list to make implementation easier + drawImage( const Drawable &drawable_ ); + + // Draw on image using a drawable list + drawImage( const DrawableList &drawable_ ); + + void operator()( Image &image_ ) const; + + private: + DrawableList _drawableList; + }; + + // Edge image (highlight edges in image) + class MagickPPExport edgeImage + { + public: + edgeImage( const double radius_ = 0.0 ); + + void operator()( Image &image_ ) const; + + private: + double _radius; + }; + + // Emboss image (highlight edges with 3D effect) + class MagickPPExport embossImage + { + public: + embossImage( void ); + embossImage( const double radius_, const double sigma_ ); + + void operator()( Image &image_ ) const; + + private: + double _radius; + double _sigma; + }; + + // Enhance image (minimize noise) + class MagickPPExport enhanceImage + { + public: + enhanceImage( void ); + + void operator()( Image &image_ ) const; + + private: + }; + + // Equalize image (histogram equalization) + class MagickPPExport equalizeImage + { + public: + equalizeImage( void ); + + void operator()( Image &image_ ) const; + + private: + }; + + // Color to use when filling drawn objects + class MagickPPExport fillColorImage + { + public: + fillColorImage( const Color &fillColor_ ); + + void operator()( Image &image_ ) const; + + private: + Color _fillColor; + }; + + // Flip image (reflect each scanline in the vertical direction) + class MagickPPExport flipImage + { + public: + flipImage( void ); + + void operator()( Image &image_ ) const; + + private: + }; + + // Floodfill designated area with a matte value + class MagickPPExport floodFillAlphaImage + + { + public: + floodFillAlphaImage(const ::ssize_t x_,const ::ssize_t y_, + const unsigned int alpha_,const Color &target_,const bool invert_=false); + + void operator()(Image &image_) const; + + private: + Color _target; + unsigned int _alpha; + ::ssize_t _x; + ::ssize_t _y; + bool _invert; + }; + + // Flood-fill image with color + class MagickPPExport floodFillColorImage + + { + public: + // Flood-fill color across pixels starting at target-pixel and + // stopping at pixels matching specified border color. + // Uses current fuzz setting when determining color match. + floodFillColorImage(const Geometry &point_,const Color &fillColor_, + const bool invert_=false); + floodFillColorImage(const ::ssize_t x_,const ::ssize_t y_, + const Color &fillColor_,const bool invert_=false); + + // Flood-fill color across pixels starting at target-pixel and + // stopping at pixels matching specified border color. + // Uses current fuzz setting when determining color match. + floodFillColorImage(const Geometry &point_,const Color &fillColor_, + const Color &borderColor_,const bool invert_=false); + floodFillColorImage(const ::ssize_t x_,const ::ssize_t y_, + const Color &fillColor_,const Color &borderColor_, + const bool invert_=false); + + void operator()(Image &image_) const; + + private: + ::ssize_t _x; + ::ssize_t _y; + Color _fillColor; + Color _borderColor; + bool _invert; + }; + + // Flood-fill image with texture + class MagickPPExport floodFillTextureImage + + { + public: + // Flood-fill texture across pixels that match the color of the + // target pixel and are neighbors of the target pixel. + // Uses current fuzz setting when determining color match. + floodFillTextureImage(const ::ssize_t x_,const ::ssize_t y_, + const Image &texture_,const bool invert_=false); + floodFillTextureImage(const Geometry &point_,const Image &texture_, + const bool invert_=false); + + // Flood-fill texture across pixels starting at target-pixel and + // stopping at pixels matching specified border color. + // Uses current fuzz setting when determining color match. + floodFillTextureImage(const ::ssize_t x_,const ::ssize_t y_, + const Image &texture_,const Color &borderColor_, + const bool invert_=false); + + floodFillTextureImage(const Geometry &point_,const Image &texture_, + const Color &borderColor_,const bool invert_=false); + + void operator()(Image &image_) const; + + private: + ::ssize_t _x; + ::ssize_t _y; + Image _texture; + Color _borderColor; + bool _invert; + }; + + // Flop image (reflect each scanline in the horizontal direction) + class MagickPPExport flopImage + { + public: + flopImage( void ); + + void operator()( Image &image_ ) const; + + private: + }; + + // Frame image + class MagickPPExport frameImage + { + public: + frameImage( const Geometry &geometry_ = frameGeometryDefault ); + + frameImage( const size_t width_, const size_t height_, + const ::ssize_t innerBevel_ = 6, const ::ssize_t outerBevel_ = 6 ); + + void operator()( Image &image_ ) const; + + private: + size_t _width; + size_t _height; + ::ssize_t _outerBevel; + ::ssize_t _innerBevel; + }; + + // Gamma correct image + class MagickPPExport gammaImage + { + public: + gammaImage( const double gamma_ ); + + gammaImage ( const double gammaRed_, + const double gammaGreen_, + const double gammaBlue_ ); + + void operator()( Image &image_ ) const; + + private: + double _gammaRed; + double _gammaGreen; + double _gammaBlue; + }; + + // Gaussian blur image + // The number of neighbor pixels to be included in the convolution + // mask is specified by 'width_'. The standard deviation of the + // gaussian bell curve is specified by 'sigma_'. + class MagickPPExport gaussianBlurImage + { + public: + gaussianBlurImage( const double width_, const double sigma_ ); + + void operator()( Image &image_ ) const; + + private: + double _width; + double _sigma; + }; + + // Apply a color lookup table (Hald CLUT) to the image. + class MagickPPExport haldClutImage + { + public: + haldClutImage( const Image &haldClutImage_ ); + + void operator()( Image &image_ ) const; + + private: + Image _haldClutImage; + }; + + // Implode image (special effect) + class MagickPPExport implodeImage + { + public: + implodeImage( const double factor_ = 50 ); + + void operator()( Image &image_ ) const; + + private: + double _factor; + }; + + // implements the inverse discrete Fourier transform (IFT) of the image + // either as a magnitude / phase or real / imaginary image pair. + class MagickPPExport inverseFourierTransformImage + { + public: + inverseFourierTransformImage( const Image &phaseImage_ ); + + void operator()( Image &image_ ) const; + + private: + Image _phaseImage; + }; + + // Set image validity. Valid images become empty (inValid) if + // argument is false. + class MagickPPExport isValidImage + { + public: + isValidImage( const bool isValid_ ); + + void operator()( Image &image_ ) const; + + private: + bool _isValid; + }; + + // Label image + class MagickPPExport labelImage + { + public: + labelImage( const std::string &label_ ); + + void operator()( Image &image_ ) const; + + private: + std::string _label; + }; + + + // Level image + class MagickPPExport levelImage + { + public: + levelImage( const double black_point, + const double white_point, + const double mid_point=1.0 ); + + void operator()( Image &image_ ) const; + + private: + double _black_point; + double _white_point; + double _mid_point; + }; + + // Magnify image by integral size + class MagickPPExport magnifyImage + { + public: + magnifyImage( void ); + + void operator()( Image &image_ ) const; + + private: + }; + + // Remap image colors with closest color from reference image + class MagickPPExport mapImage + { + public: + mapImage( const Image &mapImage_ , + const bool dither_ = false ); + + void operator()( Image &image_ ) const; + + private: + Image _mapImage; + bool _dither; + }; + + // Filter image by replacing each pixel component with the median + // color in a circular neighborhood + class MagickPPExport medianConvolveImage + { + public: + medianConvolveImage( const double radius_ = 0.0 ); + + void operator()( Image &image_ ) const; + + private: + double _radius; + }; + + // Merge image layers + class MagickPPExport mergeLayersImage + { + public: + mergeLayersImage ( LayerMethod layerMethod_ ); + + void operator()( Image &image_ ) const; + + private: + LayerMethod _layerMethod; + }; + + // Reduce image by integral size + class MagickPPExport minifyImage + { + public: + minifyImage( void ); + + void operator()( Image &image_ ) const; + + private: + }; + + // Modulate percent hue, saturation, and brightness of an image + class MagickPPExport modulateImage + { + public: + modulateImage( const double brightness_, + const double saturation_, + const double hue_ ); + + void operator()( Image &image_ ) const; + + private: + double _brightness; + double _saturation; + double _hue; + }; + + // Negate colors in image. Set grayscale to only negate grayscale + // values in image. + class MagickPPExport negateImage + { + public: + negateImage( const bool grayscale_ = false ); + + void operator()( Image &image_ ) const; + + private: + bool _grayscale; + }; + + // Normalize image (increase contrast by normalizing the pixel + // values to span the full range of color values) + class MagickPPExport normalizeImage + { + public: + normalizeImage( void ); + + void operator()( Image &image_ ) const; + + private: + }; + + // Oilpaint image (image looks like oil painting) + class MagickPPExport oilPaintImage + { + public: + oilPaintImage( const double radius_ = 3 ); + + void operator()( Image &image_ ) const; + + private: + double _radius; + }; + + // Set or attenuate the image alpha channel. If the image pixels + // are opaque then they are set to the specified alpha value, + // otherwise they are blended with the supplied alpha value. The + // value of alpha_ ranges from 0 (completely opaque) to + // QuantumRange. The defines OpaqueAlpha and TransparentAlpha are + // available to specify completely opaque or completely transparent, + // respectively. + class MagickPPExport alphaImage + { + public: + alphaImage( const unsigned int alpha_ ); + + void operator()( Image &image_ ) const; + + private: + unsigned int _alpha; + }; + + // Change color of opaque pixel to specified pen color. + class MagickPPExport opaqueImage + { + public: + opaqueImage( const Color &opaqueColor_, + const Color &penColor_ ); + + void operator()( Image &image_ ) const; + + private: + Color _opaqueColor; + Color _penColor; + }; + + // Quantize image (reduce number of colors) + class MagickPPExport quantizeImage + { + public: + quantizeImage( const bool measureError_ = false ); + + void operator()( Image &image_ ) const; + + private: + bool _measureError; + }; + + // Raise image (lighten or darken the edges of an image to give a + // 3-D raised or lowered effect) + class MagickPPExport raiseImage + { + public: + raiseImage( const Geometry &geometry_ = raiseGeometryDefault, + const bool raisedFlag_ = false ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + bool _raisedFlag; + }; + + class MagickPPExport ReadOptions + { + public: + + // Default constructor + ReadOptions(void); + + // Copy constructor + ReadOptions(const ReadOptions& options_); + + // Destructor + ~ReadOptions(); + + // Vertical and horizontal resolution in pixels of the image + void density(const Geometry &geometry_); + Geometry density(void) const; + + // Image depth (8 or 16) + void depth(size_t depth_); + size_t depth(void) const; + + // Ping the image instead of reading it + void ping(const bool flag_); + bool ping(void) const; + + // Suppress all warning messages. Error messages are still reported. + void quiet(const bool quiet_); + bool quiet(void) const; + + // Image size (required for raw formats) + void size(const Geometry &geometry_); + Geometry size(void) const; + + // + // Internal implementation methods. Please do not use. + // + + MagickCore::ImageInfo *imageInfo(void); + + private: + + // Assignment not supported + ReadOptions& operator=(const ReadOptions&); + + MagickCore::ImageInfo *_imageInfo; + bool _quiet; + }; + + // Reduce noise in image using a noise peak elimination filter + class MagickPPExport reduceNoiseImage + { + public: + reduceNoiseImage( void ); + + reduceNoiseImage (const size_t order_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _order; + }; + + // Resize image to specified size. + class MagickPPExport resizeImage + { + public: + resizeImage( const Geometry &geometry_ ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + }; + + // Roll image (rolls image vertically and horizontally) by specified + // number of columns and rows) + class MagickPPExport rollImage + { + public: + rollImage( const Geometry &roll_ ); + + rollImage( const ::ssize_t columns_, const ::ssize_t rows_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _columns; + size_t _rows; + }; + + // Rotate image counter-clockwise by specified number of degrees. + class MagickPPExport rotateImage + { + public: + rotateImage( const double degrees_ ); + + void operator()( Image &image_ ) const; + + private: + double _degrees; + }; + + // Resize image by using pixel sampling algorithm + class MagickPPExport sampleImage + { + public: + sampleImage( const Geometry &geometry_ ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + }; + + // Resize image by using simple ratio algorithm + class MagickPPExport scaleImage + { + public: + scaleImage( const Geometry &geometry_ ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + }; + + // Segment (coalesce similar image components) by analyzing the + // histograms of the color components and identifying units that are + // homogeneous with the fuzzy c-means technique. + // Also uses QuantizeColorSpace and Verbose image attributes + class MagickPPExport segmentImage + { + public: + segmentImage( const double clusterThreshold_ = 1.0, + const double smoothingThreshold_ = 1.5 ); + + void operator()( Image &image_ ) const; + + private: + double _clusterThreshold; + double _smoothingThreshold; + }; + + // Shade image using distant light source + class MagickPPExport shadeImage + { + public: + shadeImage( const double azimuth_ = 30, + const double elevation_ = 30, + const bool colorShading_ = false ); + + void operator()( Image &image_ ) const; + + private: + double _azimuth; + double _elevation; + bool _colorShading; + }; + + // Shadow effect image (simulate an image shadow) + class MagickPPExport shadowImage + { + public: + shadowImage( const double percent_opacity_ = 80, const double sigma_ = 0.5, + const ssize_t x_ = 5, const ssize_t y_ = 5 ); + + void operator()( Image &image_ ) const; + + private: + double _percent_opacity; + double _sigma; + ssize_t _x; + ssize_t _y; + }; + + // Sharpen pixels in image + class MagickPPExport sharpenImage + { + public: + sharpenImage( const double radius_ = 1, const double sigma_ = 0.5 ); + + void operator()( Image &image_ ) const; + + private: + double _radius; + double _sigma; + }; + + // Shave pixels from image edges. + class MagickPPExport shaveImage + { + public: + shaveImage( const Geometry &geometry_ ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + }; + + + // Shear image (create parallelogram by sliding image by X or Y axis) + class MagickPPExport shearImage + { + public: + shearImage( const double xShearAngle_, + const double yShearAngle_ ); + + void operator()( Image &image_ ) const; + + private: + double _xShearAngle; + double _yShearAngle; + }; + + // Solarize image (similar to effect seen when exposing a + // photographic film to light during the development process) + class MagickPPExport solarizeImage + { + public: + solarizeImage( const double factor_ ); + + void operator()( Image &image_ ) const; + + private: + double _factor; + }; + + // Splice the background color into the image. + class MagickPPExport spliceImage + { + public: + spliceImage( const Geometry &geometry_ ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + }; + + // Spread pixels randomly within image by specified amount + class MagickPPExport spreadImage + { + public: + spreadImage( const size_t amount_ = 3 ); + + void operator()( Image &image_ ) const; + + private: + size_t _amount; + }; + + // Add a digital watermark to the image (based on second image) + class MagickPPExport steganoImage + { + public: + steganoImage( const Image &waterMark_ ); + + void operator()( Image &image_ ) const; + + private: + Image _waterMark; + }; + + // Create an image which appears in stereo when viewed with red-blue glasses + // (Red image on left, blue on right) + class MagickPPExport stereoImage + { + public: + stereoImage( const Image &rightImage_ ); + + void operator()( Image &image_ ) const; + + private: + Image _rightImage; + }; + + // Color to use when drawing object outlines + class MagickPPExport strokeColorImage + { + public: + strokeColorImage( const Color &strokeColor_ ); + + void operator()( Image &image_ ) const; + + private: + Color _strokeColor; + }; + + // Swirl image (image pixels are rotated by degrees) + class MagickPPExport swirlImage + { + public: + swirlImage( const double degrees_ ); + + void operator()( Image &image_ ) const; + + private: + double _degrees; + }; + + // Channel a texture on image background + class MagickPPExport textureImage + { + public: + textureImage( const Image &texture_ ); + + void operator()( Image &image_ ) const; + + private: + Image _texture; + }; + + // Threshold image + class MagickPPExport thresholdImage + { + public: + thresholdImage( const double threshold_ ); + + void operator()( Image &image_ ) const; + + private: + double _threshold; + }; + + // Set image color to transparent + class MagickPPExport transparentImage + { + public: + transparentImage( const Color& color_ ); + + void operator()( Image &image_ ) const; + + private: + Color _color; + }; + + // Trim edges that are the background color from the image + class MagickPPExport trimImage + { + public: + trimImage( void ); + + void operator()( Image &image_ ) const; + + private: + }; + + // Map image pixels to a sine wave + class MagickPPExport waveImage + { + public: + waveImage( const double amplitude_ = 25.0, + const double wavelength_ = 150.0 ); + + void operator()( Image &image_ ) const; + + private: + double _amplitude; + double _wavelength; + }; + + // Zoom image to specified size. + class MagickPPExport zoomImage + { + public: + zoomImage( const Geometry &geometry_ ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + }; + + // + // Function object image attribute accessors + // + + // Join images into a single multi-image file + class MagickPPExport adjoinImage + { + public: + adjoinImage( const bool flag_ ); + + void operator()( Image &image_ ) const; + + private: + bool _flag; + }; + + // Time in 1/100ths of a second which must expire before displaying + // the next image in an animated sequence. + class MagickPPExport animationDelayImage + { + public: + animationDelayImage( const size_t delay_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _delay; + }; + + // Number of iterations to loop an animation (e.g. Netscape loop + // extension) for. + class MagickPPExport animationIterationsImage + { + public: + animationIterationsImage( const size_t iterations_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _iterations; + }; + + // Image background color + class MagickPPExport backgroundColorImage + { + public: + backgroundColorImage( const Color &color_ ); + + void operator()( Image &image_ ) const; + + private: + Color _color; + }; + + // Name of texture image to tile onto the image background + class MagickPPExport backgroundTextureImage + { + public: + backgroundTextureImage( const std::string &backgroundTexture_ ); + + void operator()( Image &image_ ) const; + + private: + std::string _backgroundTexture; + }; + + // Image border color + class MagickPPExport borderColorImage + { + public: + borderColorImage( const Color &color_ ); + + void operator()( Image &image_ ) const; + + private: + Color _color; + }; + + // Text bounding-box base color (default none) + class MagickPPExport boxColorImage + { + public: + boxColorImage( const Color &boxColor_ ); + + void operator()( Image &image_ ) const; + + private: + Color _boxColor; + }; + + // Chromaticity blue primary point. + class MagickPPExport chromaBluePrimaryImage + { + public: + chromaBluePrimaryImage(const double x_,const double y_,const double z_); + + void operator()(Image &image_) const; + + private: + double _x; + double _y; + double _z; + }; + + // Chromaticity green primary point. + class MagickPPExport chromaGreenPrimaryImage + { + public: + chromaGreenPrimaryImage(const double x_,const double y_,const double z_); + + void operator()(Image &image_) const; + + private: + double _x; + double _y; + double _z; + }; + + // Chromaticity red primary point. + class MagickPPExport chromaRedPrimaryImage + { + public: + chromaRedPrimaryImage(const double x_,const double y_,const double z_); + + void operator()(Image &image_) const; + + private: + double _x; + double _y; + double _z; + }; + + // Chromaticity white point. + class MagickPPExport chromaWhitePointImage + { + public: + chromaWhitePointImage(const double x_,const double y_,const double z_); + + void operator()(Image &image_) const; + + private: + double _x; + double _y; + double _z; + }; + + // Colors within this distance are considered equal + class MagickPPExport colorFuzzImage + { + public: + colorFuzzImage( const double fuzz_ ); + + void operator()( Image &image_ ) const; + + private: + double _fuzz; + }; + + // Color at colormap position index_ + class MagickPPExport colorMapImage + { + public: + colorMapImage( const size_t index_, const Color &color_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _index; + Color _color; + }; + + // Composition operator to be used when composition is implicitly used + // (such as for image flattening). + class MagickPPExport composeImage + { + public: + composeImage( const CompositeOperator compose_ ); + + void operator()( Image &image_ ) const; + + private: + CompositeOperator _compose; + }; + + // Compression type + class MagickPPExport compressTypeImage + { + public: + compressTypeImage( const CompressionType compressType_ ); + + void operator()( Image &image_ ) const; + + private: + CompressionType _compressType; + }; + + // Vertical and horizontal resolution in pixels of the image + class MagickPPExport densityImage + { + public: + densityImage( const Point &point_ ); + + void operator()( Image &image_ ) const; + + private: + Point _point; + }; + + // Image depth (bits allocated to red/green/blue components) + class MagickPPExport depthImage + { + public: + depthImage( const size_t depth_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _depth; + }; + + // Endianness (LSBEndian like Intel or MSBEndian like SPARC) for image + // formats which support endian-specific options. + class MagickPPExport endianImage + { + public: + endianImage( const EndianType endian_ ); + + void operator()( Image &image_ ) const; + + private: + EndianType _endian; + }; + + // Image file name + class MagickPPExport fileNameImage + { + public: + fileNameImage( const std::string &fileName_ ); + + void operator()( Image &image_ ) const; + + private: + std::string _fileName; + }; + + // Filter to use when resizing image + class MagickPPExport filterTypeImage + { + public: + filterTypeImage( const FilterType filterType_ ); + + void operator()( Image &image_ ) const; + + private: + FilterType _filterType; + }; + + // Text rendering font + class MagickPPExport fontImage + { + public: + fontImage( const std::string &font_ ); + + void operator()( Image &image_ ) const; + + private: + std::string _font; + }; + + // Font point size + class MagickPPExport fontPointsizeImage + { + public: + fontPointsizeImage( const size_t pointsize_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _pointsize; + }; + + // GIF disposal method + class MagickPPExport gifDisposeMethodImage + { + public: + gifDisposeMethodImage( const DisposeType disposeMethod_ ); + + void operator()( Image &image_ ) const; + + private: + DisposeType _disposeMethod; + }; + + // Type of interlacing to use + class MagickPPExport interlaceTypeImage + { + public: + interlaceTypeImage( const InterlaceType interlace_ ); + + void operator()( Image &image_ ) const; + + private: + InterlaceType _interlace; + }; + + // File type magick identifier (.e.g "GIF") + class MagickPPExport magickImage + { + public: + magickImage( const std::string &magick_ ); + + void operator()( Image &image_ ) const; + + private: + std::string _magick; + }; + + // Image supports transparent color + class MagickPPExport alphaFlagImage + { + public: + alphaFlagImage( const bool alphaFlag_ ); + + void operator()( Image &image_ ) const; + + private: + bool _alphaFlag; + }; + + // Transparent color + class MagickPPExport matteColorImage + { + public: + matteColorImage( const Color &matteColor_ ); + + void operator()( Image &image_ ) const; + + private: + Color _matteColor; + }; + + // Indicate that image is black and white + class MagickPPExport monochromeImage + { + public: + monochromeImage( const bool monochromeFlag_ ); + + void operator()( Image &image_ ) const; + + private: + bool _monochromeFlag; + }; + + // Pen color + class MagickPPExport penColorImage + { + public: + penColorImage( const Color &penColor_ ); + + void operator()( Image &image_ ) const; + + private: + Color _penColor; + }; + + // Pen texture image. + class MagickPPExport penTextureImage + { + public: + penTextureImage( const Image &penTexture_ ); + + void operator()( Image &image_ ) const; + + private: + Image _penTexture; + }; + + // Set pixel color at location x & y. + class MagickPPExport pixelColorImage + { + public: + pixelColorImage( const ::ssize_t x_, + const ::ssize_t y_, + const Color &color_); + + void operator()( Image &image_ ) const; + + private: + ::ssize_t _x; + ::ssize_t _y; + Color _color; + }; + + // Postscript page size. + class MagickPPExport pageImage + { + public: + pageImage( const Geometry &pageSize_ ); + + void operator()( Image &image_ ) const; + + private: + Geometry _pageSize; + }; + + // JPEG/MIFF/PNG compression level (default 75). + class MagickPPExport qualityImage + { + public: + qualityImage( const size_t quality_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _quality; + }; + + // Maximum number of colors to quantize to + class MagickPPExport quantizeColorsImage + { + public: + quantizeColorsImage( const size_t colors_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _colors; + }; + + // Colorspace to quantize in. + class MagickPPExport quantizeColorSpaceImage + { + public: + quantizeColorSpaceImage( const ColorspaceType colorSpace_ ); + + void operator()( Image &image_ ) const; + + private: + ColorspaceType _colorSpace; + }; + + // Dither image during quantization (default true). + class MagickPPExport quantizeDitherImage + { + public: + quantizeDitherImage( const bool ditherFlag_ ); + + void operator()( Image &image_ ) const; + + private: + bool _ditherFlag; + }; + + // Quantization tree-depth + class MagickPPExport quantizeTreeDepthImage + { + public: + quantizeTreeDepthImage( const size_t treeDepth_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _treeDepth; + }; + + // The type of rendering intent + class MagickPPExport renderingIntentImage + { + public: + renderingIntentImage( const RenderingIntent renderingIntent_ ); + + void operator()( Image &image_ ) const; + + private: + RenderingIntent _renderingIntent; + }; + + // Units of image resolution + class MagickPPExport resolutionUnitsImage + { + public: + resolutionUnitsImage( const ResolutionType resolutionUnits_ ); + + void operator()( Image &image_ ) const; + + private: + ResolutionType _resolutionUnits; + }; + + // Image scene number + class MagickPPExport sceneImage + { + public: + sceneImage( const size_t scene_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _scene; + }; + + // adjust the image contrast with a non-linear sigmoidal contrast algorithm + class MagickPPExport sigmoidalContrastImage + { + public: + sigmoidalContrastImage( const size_t sharpen_, + const double contrast, + const double midpoint = QuantumRange / 2.0 ); + + void operator()( Image &image_ ) const; + + private: + size_t _sharpen; + double contrast; + double midpoint; + }; + + // Width and height of a raw image + class MagickPPExport sizeImage + { + public: + sizeImage( const Geometry &geometry_ ); + + void operator()( Image &image_ ) const; + + private: + Geometry _geometry; + }; + + // stripImage strips an image of all profiles and comments. + class MagickPPExport stripImage + { + public: + stripImage( void ); + + void operator()( Image &image_ ) const; + + private: + }; + + // Subimage of an image sequence + class MagickPPExport subImageImage + { + public: + subImageImage( const size_t subImage_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _subImage; + }; + + // Number of images relative to the base image + class MagickPPExport subRangeImage + { + public: + subRangeImage( const size_t subRange_ ); + + void operator()( Image &image_ ) const; + + private: + size_t _subRange; + }; + + // Anti-alias Postscript and TrueType fonts (default true) + class MagickPPExport textAntiAliasImage + { + public: + textAntiAliasImage( const bool flag_ ); + + void operator()( Image &image_ ) const; + + private: + bool _flag; + }; + + // Image storage type + class MagickPPExport typeImage + { + public: + typeImage( const ImageType type_ ); + + void operator()( Image &image_ ) const; + + private: + Magick::ImageType _type; + }; + + + // Print detailed information about the image + class MagickPPExport verboseImage + { + public: + verboseImage( const bool verbose_ ); + + void operator()( Image &image_ ) const; + + private: + bool _verbose; + }; + + // X11 display to display to, obtain fonts from, or to capture + // image from + class MagickPPExport x11DisplayImage + { + public: + x11DisplayImage( const std::string &display_ ); + + void operator()( Image &image_ ) const; + + private: + std::string _display; + }; + + ////////////////////////////////////////////////////////// + // + // Implementation template definitions. Not for end-use. + // + ////////////////////////////////////////////////////////// + + // Changes the channel mask of the images and places the old + // values in the container. + template + void channelMaskImages(InputIterator first_,InputIterator last_, + Container *container_,const ChannelType channel_) + { + MagickCore::ChannelType + channel_mask; + + container_->clear(); + for (InputIterator iter = first_; iter != last_; ++iter) + { + iter->modifyImage(); + channel_mask=MagickCore::SetImageChannelMask(iter->image(),channel_); + container_->push_back(channel_mask); + } + } + + // Insert images in image list into existing container (appending to container) + // The images should not be deleted since only the image ownership is passed. + // The options are copied into the object. + template + void insertImages(Container *sequence_,MagickCore::Image* images_) + { + MagickCore::Image + *image, + *next; + + image=images_; + while (image != (MagickCore::Image *) NULL) + { + next=image->next; + image->next=(MagickCore::Image *) NULL; + + if (next != (MagickCore::Image *) NULL) + next->previous=(MagickCore::Image *) NULL; + + sequence_->push_back(Magick::Image(image)); + + image=next; + } + } + + // Link images together into an image list based on the ordering of + // the container implied by the iterator. This step is done in + // preparation for use with ImageMagick functions which operate on + // lists of images. + // Images are selected by range, first_ to last_ so that a subset of + // the container may be selected. Specify first_ via the + // container's begin() method and last_ via the container's end() + // method in order to specify the entire container. + template + bool linkImages(InputIterator first_,InputIterator last_) + { + MagickCore::Image + *current, + *previous; + + ::ssize_t + scene; + + scene=0; + previous=(MagickCore::Image *) NULL; + for (InputIterator iter = first_; iter != last_; ++iter) + { + // Unless we reduce the reference count to one, the same image + // structure may occur more than once in the container, causing + // the linked list to fail. + iter->modifyImage(); + + current=iter->image(); + + current->previous=previous; + current->next=(MagickCore::Image *) NULL; + current->scene=scene++; + + if (previous != (MagickCore::Image *) NULL) + previous->next=current; + + previous=current; + } + return(scene > 0 ? true : false); + } + + // Restores the channel mask of the images. + template + void restoreChannelMaskImages(InputIterator first_,InputIterator last_, + Container *container_) + { + typename Container::iterator + channel_mask; + + channel_mask=container_->begin(); + for (InputIterator iter = first_; iter != last_; ++iter) + { + iter->modifyImage(); + (void) MagickCore::SetImageChannelMask(iter->image(), + (const MagickCore::ChannelType) *channel_mask); + channel_mask++; + } + } + + // Remove links added by linkImages. This should be called after the + // ImageMagick function call has completed to reset the image list + // back to its pristine un-linked state. + template + void unlinkImages(InputIterator first_,InputIterator last_) + { + MagickCore::Image + *image; + + for (InputIterator iter = first_; iter != last_; ++iter) + { + image=iter->image(); + image->previous=(MagickCore::Image *) NULL; + image->next=(MagickCore::Image *) NULL; + } + } + + /////////////////////////////////////////////////////////////////// + // + // Template definitions for documented API + // + /////////////////////////////////////////////////////////////////// + + template + void animateImages( InputIterator first_,InputIterator last_) + { + if (linkImages(first_,last_) == false) + return; + GetPPException; + MagickCore::AnimateImages(first_->imageInfo(),first_->image(), + exceptionInfo); + unlinkImages(first_,last_); + ThrowPPException(first_->quiet()); + } + + // Append images from list into single image in either horizontal or + // vertical direction. + template + void appendImages( Image *appendedImage_, + InputIterator first_, + InputIterator last_, + bool stack_ = false) { + if (linkImages(first_,last_) == false) + return; + GetPPException; + MagickCore::Image* image = MagickCore::AppendImages( first_->image(), + (MagickBooleanType) stack_, + exceptionInfo ); + unlinkImages( first_, last_ ); + appendedImage_->replaceImage( image ); + ThrowPPException(appendedImage_->quiet()); + } + + // Adds the names of the artifacts of the image to the container. + template + void artifactNames(Container *names_,const Image* image_) + { + const char* + name; + + names_->clear(); + + MagickCore::ResetImageArtifactIterator(image_->constImage()); + name=MagickCore::GetNextImageArtifact(image_->constImage()); + while (name != (const char *) NULL) + { + names_->push_back(std::string(name)); + name=MagickCore::GetNextImageArtifact(image_->constImage()); + } + } + + // Adds the names of the attributes of the image to the container. + template + void attributeNames(Container *names_,const Image* image_) + { + const char* + name; + + names_->clear(); + + MagickCore::ResetImagePropertyIterator(image_->constImage()); + name=MagickCore::GetNextImageProperty(image_->constImage()); + while (name != (const char *) NULL) + { + names_->push_back(std::string(name)); + name=MagickCore::GetNextImageProperty(image_->constImage()); + } + } + + // Average a set of images. + // All the input images must be the same size in pixels. + template + void averageImages( Image *averagedImage_, + InputIterator first_, + InputIterator last_ ) { + if (linkImages(first_,last_) == false) + return; + GetPPException; + MagickCore::Image* image = MagickCore::EvaluateImages( first_->image(), + MagickCore::MeanEvaluateOperator, exceptionInfo ); + unlinkImages( first_, last_ ); + averagedImage_->replaceImage( image ); + ThrowPPException(averagedImage_->quiet()); + } + + // Merge a sequence of images. + // This is useful for GIF animation sequences that have page + // offsets and disposal methods. A container to contain + // the updated image sequence is passed via the coalescedImages_ + // option. + template + void coalesceImages(Container *coalescedImages_,InputIterator first_, + InputIterator last_) + { + bool + quiet; + + MagickCore::Image + *images; + + if (linkImages(first_,last_) == false) + return; + + GetPPException; + quiet=first_->quiet(); + images=MagickCore::CoalesceImages(first_->image(),exceptionInfo); + + // Unlink image list + unlinkImages(first_,last_); + + // Ensure container is empty + coalescedImages_->clear(); + + // Move images to container + insertImages(coalescedImages_,images); + + // Report any error + ThrowPPException(quiet); + } + + // Return format coders matching specified conditions. + // + // The default (if no match terms are supplied) is to return all + // available format coders. + // + // For example, to return all readable formats: + // list coderList; + // coderInfoList( &coderList, CoderInfo::TrueMatch, CoderInfo::AnyMatch, CoderInfo::AnyMatch) + // + template + void coderInfoList( Container *container_, + CoderInfo::MatchType isReadable_ = CoderInfo::AnyMatch, + CoderInfo::MatchType isWritable_ = CoderInfo::AnyMatch, + CoderInfo::MatchType isMultiFrame_ = CoderInfo::AnyMatch + ) { + // Obtain first entry in MagickInfo list + size_t number_formats; + GetPPException; + char **coder_list = + MagickCore::GetMagickList( "*", &number_formats, exceptionInfo ); + if( !coder_list ) + { + throwException(exceptionInfo); + throwExceptionExplicit(MagickCore::MissingDelegateError, + "Coder array not returned!", 0 ); + } + + // Clear out container + container_->clear(); + + for ( ::ssize_t i=0; i < (::ssize_t) number_formats; i++) + { + const MagickCore::MagickInfo *magick_info = + MagickCore::GetMagickInfo( coder_list[i], exceptionInfo ); + if (!magick_info) + continue; + + coder_list[i]=(char *) + MagickCore::RelinquishMagickMemory( coder_list[i] ); + + // Skip stealth coders + if ( MagickCore::GetMagickStealth(magick_info) ) + continue; + + try { + CoderInfo coderInfo( magick_info->name ); + + // Test isReadable_ + if ( isReadable_ != CoderInfo::AnyMatch && + (( coderInfo.isReadable() && isReadable_ != CoderInfo::TrueMatch ) || + ( !coderInfo.isReadable() && isReadable_ != CoderInfo::FalseMatch )) ) + continue; + + // Test isWritable_ + if ( isWritable_ != CoderInfo::AnyMatch && + (( coderInfo.isWritable() && isWritable_ != CoderInfo::TrueMatch ) || + ( !coderInfo.isWritable() && isWritable_ != CoderInfo::FalseMatch )) ) + continue; + + // Test isMultiFrame_ + if ( isMultiFrame_ != CoderInfo::AnyMatch && + (( coderInfo.isMultiFrame() && isMultiFrame_ != CoderInfo::TrueMatch ) || + ( !coderInfo.isMultiFrame() && isMultiFrame_ != CoderInfo::FalseMatch )) ) + continue; + + // Append matches to container + container_->push_back( coderInfo ); + } + // Intentionally ignore missing module errors + catch (Magick::ErrorModule&) + { + continue; + } + } + coder_list=(char **) MagickCore::RelinquishMagickMemory( coder_list ); + ThrowPPException(false); + } + + // + // Fill container with color histogram. + // Entries are of type "std::pair". Use the pair + // "first" member to access the Color and the "second" member to access + // the number of times the color occurs in the image. + // + // For example: + // + // Using : + // + // Image image("image.miff"); + // map histogram; + // colorHistogram( &histogram, image ); + // std::map::const_iterator p=histogram.begin(); + // while (p != histogram.end()) + // { + // cout << setw(10) << (int)p->second << ": (" + // << setw(quantum_width) << (int)p->first.redQuantum() << "," + // << setw(quantum_width) << (int)p->first.greenQuantum() << "," + // << setw(quantum_width) << (int)p->first.blueQuantum() << ")" + // << endl; + // p++; + // } + // + // Using : + // + // Image image("image.miff"); + // std::vector > histogram; + // colorHistogram( &histogram, image ); + // std::vector >::const_iterator p=histogram.begin(); + // while (p != histogram.end()) + // { + // cout << setw(10) << (int)p->second << ": (" + // << setw(quantum_width) << (int)p->first.redQuantum() << "," + // << setw(quantum_width) << (int)p->first.greenQuantum() << "," + // << setw(quantum_width) << (int)p->first.blueQuantum() << ")" + // << endl; + // p++; + // } + + template + void colorHistogram( Container *histogram_, const Image image) + { + GetPPException; + + // Obtain histogram array + size_t colors; + MagickCore::PixelInfo *histogram_array = + MagickCore::GetImageHistogram( image.constImage(), &colors, exceptionInfo ); + ThrowPPException(image.quiet()); + + // Clear out container + histogram_->clear(); + + // Transfer histogram array to container + for ( size_t i=0; i < colors; i++) + { + histogram_->insert( histogram_->end(), std::pair + ( Color(histogram_array[i]), (size_t) histogram_array[i].count) ); + } + + // Deallocate histogram array + histogram_array=(MagickCore::PixelInfo *) + MagickCore::RelinquishMagickMemory(histogram_array); + } + + // Combines one or more images into a single image. The grayscale value of + // the pixels of each image in the sequence is assigned in order to the + // specified channels of the combined image. The typical ordering would be + // image 1 => Red, 2 => Green, 3 => Blue, etc. + template + void combineImages(Image *combinedImage_,InputIterator first_, + InputIterator last_,const ChannelType channel_, + const ColorspaceType colorspace_ = MagickCore::sRGBColorspace) + { + MagickCore::Image + *image; + + std::vector + channelMask; + + if (linkImages(first_,last_) == false) + return; + GetPPException; + channelMaskImages(first_,last_,&channelMask,channel_); + image=CombineImages(first_->image(),colorspace_,exceptionInfo); + restoreChannelMaskImages(first_,last_,&channelMask); + unlinkImages(first_,last_); + combinedImage_->replaceImage(image); + ThrowPPException(combinedImage_->quiet()); + } + + template + void cropToTiles(Container *tiledImages_,const Image image_, + const Geometry &geometry_) + { + GetPPException; + MagickCore::Image* images=CropImageToTiles(image_.constImage(), + static_cast(geometry_).c_str(),exceptionInfo); + tiledImages_->clear(); + insertImages(tiledImages_,images); + ThrowPPException(image_.quiet()); + } + + // Break down an image sequence into constituent parts. This is + // useful for creating GIF or MNG animation sequences. + template + void deconstructImages(Container *deconstructedImages_, + InputIterator first_,InputIterator last_) + { + bool + quiet; + + MagickCore::Image + *images; + + if (linkImages(first_,last_) == false) + return; + GetPPException; + quiet=first_->quiet(); + images=CompareImagesLayers(first_->image(),CompareAnyLayer,exceptionInfo); + unlinkImages(first_,last_); + + deconstructedImages_->clear(); + insertImages(deconstructedImages_,images); + + ThrowPPException(quiet); + } + + // + // Display an image sequence + // + template + void displayImages(InputIterator first_,InputIterator last_) + { + if (linkImages(first_,last_) == false) + return; + GetPPException; + MagickCore::DisplayImages(first_->imageInfo(),first_->image(), + exceptionInfo); + unlinkImages(first_,last_); + ThrowPPException(first_->quiet()); + } + + // Applies a value to the image with an arithmetic, relational, + // or logical operator to an image. Use these operations to lighten or darken + // an image, to increase or decrease contrast in an image, or to produce the + // "negative" of an image. + template + void evaluateImages( Image *evaluatedImage_, + InputIterator first_, + InputIterator last_, + const MagickEvaluateOperator operator_ ) { + if (linkImages(first_,last_) == false) + return; + GetPPException; + MagickCore::Image* image = EvaluateImages( first_->image(), operator_, exceptionInfo ); + unlinkImages( first_, last_ ); + evaluatedImage_->replaceImage( image ); + ThrowPPException(evaluatedImage_->quiet()); + } + + // Merge a sequence of image frames which represent image layers. + // This is useful for combining Photoshop layers into a single image. + template + void flattenImages( Image *flattenedImage_, + InputIterator first_, + InputIterator last_ ) { + if (linkImages(first_,last_) == false) + return; + GetPPException; + MagickCore::Image* image = MagickCore::MergeImageLayers( first_->image(), + FlattenLayer,exceptionInfo ); + unlinkImages( first_, last_ ); + flattenedImage_->replaceImage( image ); + ThrowPPException(flattenedImage_->quiet()); + } + + // Implements the discrete Fourier transform (DFT) of the image either as a + // magnitude / phase or real / imaginary image pair. + template + void forwardFourierTransformImage( Container *fourierImages_, + const Image &image_ ) { + GetPPException; + + // Build image list + MagickCore::Image* images = ForwardFourierTransformImage( + image_.constImage(), MagickTrue, exceptionInfo); + + // Ensure container is empty + fourierImages_->clear(); + + // Move images to container + insertImages( fourierImages_, images ); + + // Report any error + ThrowPPException(image_.quiet()); + } + template + void forwardFourierTransformImage( Container *fourierImages_, + const Image &image_, const bool magnitude_ ) { + GetPPException; + + // Build image list + MagickCore::Image* images = ForwardFourierTransformImage( + image_.constImage(), magnitude_ == true ? MagickTrue : MagickFalse, + exceptionInfo); + + // Ensure container is empty + fourierImages_->clear(); + + // Move images to container + insertImages( fourierImages_, images ); + + // Report any error + ThrowPPException(image_.quiet()); + } + + // Applies a mathematical expression to a sequence of images. + template + void fxImages(Image *fxImage_,InputIterator first_,InputIterator last_, + const std::string expression) + { + MagickCore::Image + *image; + + if (linkImages(first_,last_) == false) + return; + GetPPException; + image=FxImage(first_->constImage(),expression.c_str(),exceptionInfo); + unlinkImages(first_,last_); + fxImage_->replaceImage(image); + ThrowPPException(fxImage_->quiet()); + } + + // Replace the colors of a sequence of images with the closest color + // from a reference image. + // Set dither_ to true to enable dithering. Set measureError_ to + // true in order to evaluate quantization error. + template + void mapImages(InputIterator first_,InputIterator last_, + const Image& mapImage_,bool dither_=false,bool measureError_=false) + { + MagickCore::Image + *image; + + MagickCore::QuantizeInfo + quantizeInfo; + + if (linkImages(first_,last_) == false) + return; + GetPPException; + MagickCore::GetQuantizeInfo(&quantizeInfo); + quantizeInfo.dither_method = dither_ ? MagickCore::RiemersmaDitherMethod : + MagickCore::NoDitherMethod; + MagickCore::RemapImages(&quantizeInfo,first_->image(), + (mapImage_.isValid() ? mapImage_.constImage() : + (const MagickCore::Image*) NULL),exceptionInfo); + unlinkImages(first_,last_); + if (exceptionInfo->severity != MagickCore::UndefinedException) + { + unlinkImages(first_,last_); + throwException(exceptionInfo,mapImage_.quiet()); + } + + image=first_->image(); + while(image != (MagickCore::Image *) NULL) + { + // Calculate quantization error + if (measureError_) + { + MagickCore::GetImageQuantizeError(image,exceptionInfo); + if (exceptionInfo->severity > MagickCore::UndefinedException) + { + unlinkImages(first_,last_); + throwException(exceptionInfo,mapImage_.quiet()); + } + } + + // Update DirectClass representation of pixels + MagickCore::SyncImage(image,exceptionInfo); + if (exceptionInfo->severity > MagickCore::UndefinedException) + { + unlinkImages(first_,last_); + throwException(exceptionInfo,mapImage_.quiet()); + } + + // Next image + image=image->next; + } + + unlinkImages(first_,last_); + (void) MagickCore::DestroyExceptionInfo(exceptionInfo); + } + + // Composes all the image layers from the current given + // image onward to produce a single image of the merged layers. + template + void mergeImageLayers( Image *mergedImage_, + InputIterator first_, + InputIterator last_, + const LayerMethod method_ ) { + if (linkImages(first_,last_) == false) + return; + GetPPException; + MagickCore::Image* image = MergeImageLayers( first_->image(), method_, exceptionInfo ); + unlinkImages( first_, last_ ); + mergedImage_->replaceImage( image ); + ThrowPPException(mergedImage_->quiet()); + } + + // Create a composite image by combining several separate images. + template + void montageImages(Container *montageImages_,InputIterator first_, + InputIterator last_,const Montage &options_) + { + bool + quiet; + + MagickCore::Image + *images; + + MagickCore::MontageInfo + *montageInfo; + + if (linkImages(first_,last_) == false) + return; + + montageInfo=static_cast( + MagickCore::AcquireMagickMemory(sizeof(MagickCore::MontageInfo))); + + // Update montage options with those set in montageOpts_ + options_.updateMontageInfo(*montageInfo); + + // Update options which must transfer to image options + if (options_.label().length() != 0) + first_->label(options_.label()); + + // Do montage + GetPPException; + quiet=first_->quiet(); + images=MagickCore::MontageImages(first_->image(),montageInfo, + exceptionInfo); + + // Unlink linked image list + unlinkImages(first_,last_); + + // Reset output container to pristine state + montageImages_->clear(); + + if (images != (MagickCore::Image *) NULL) + insertImages(montageImages_,images); + + // Clean up any allocated data in montageInfo + MagickCore::DestroyMontageInfo(montageInfo); + + // Report any montage error + ThrowPPException(quiet); + + // Apply transparency to montage images + if (montageImages_->size() > 0 && options_.transparentColor().isValid()) + for_each(montageImages_->begin(),montageImages_->end(),transparentImage( + options_.transparentColor())); + } + + // Morph a set of images + template + void morphImages(Container *morphedImages_,InputIterator first_, + InputIterator last_,size_t frames_) + { + bool + quiet; + + MagickCore::Image + *images; + + if (linkImages(first_,last_) == false) + return; + + GetPPException; + quiet=first_->quiet(); + images=MagickCore::MorphImages(first_->image(),frames_,exceptionInfo); + + // Unlink image list + unlinkImages(first_,last_); + + // Ensure container is empty + morphedImages_->clear(); + + // Move images to container + insertImages(morphedImages_,images); + + // Report any error + ThrowPPException(quiet); + } + + // Inlay a number of images to form a single coherent picture. + template + void mosaicImages( Image *mosaicImage_, + InputIterator first_, + InputIterator last_ ) { + if (linkImages(first_,last_) == false) + return; + GetPPException; + MagickCore::Image* image = MagickCore::MergeImageLayers( first_->image(), + MosaicLayer,exceptionInfo ); + unlinkImages( first_, last_ ); + mosaicImage_->replaceImage( image ); + ThrowPPException(mosaicImage_->quiet()); + } + + // Compares each image the GIF disposed forms of the previous image in + // the sequence. From this it attempts to select the smallest cropped + // image to replace each frame, while preserving the results of the + // GIF animation. + template + void optimizeImageLayers(Container *optimizedImages_,InputIterator first_, + InputIterator last_) + { + bool + quiet; + + MagickCore::Image + *images; + + if (linkImages(first_,last_) == false) + return; + + GetPPException; + quiet=first_->quiet(); + images=OptimizeImageLayers(first_->image(),exceptionInfo); + + unlinkImages(first_,last_); + + optimizedImages_->clear(); + + insertImages(optimizedImages_,images); + + ThrowPPException(quiet); + } + + // optimizeImagePlusLayers is exactly as optimizeImageLayers, but may + // also add or even remove extra frames in the animation, if it improves + // the total number of pixels in the resulting GIF animation. + template + void optimizePlusImageLayers(Container *optimizedImages_, + InputIterator first_,InputIterator last_ ) + { + bool + quiet; + + MagickCore::Image + *images; + + if (linkImages(first_,last_) == false) + return; + + GetPPException; + quiet=first_->quiet(); + images=OptimizePlusImageLayers(first_->image(),exceptionInfo); + + unlinkImages(first_,last_); + + optimizedImages_->clear(); + + insertImages(optimizedImages_,images); + + ThrowPPException(quiet); + } + + // Compares each image the GIF disposed forms of the previous image in the + // sequence. Any pixel that does not change the displayed result is replaced + // with transparency. + template + void optimizeTransparency(InputIterator first_,InputIterator last_) + { + if (linkImages(first_,last_) == false) + return; + GetPPException; + OptimizeImageTransparency(first_->image(),exceptionInfo); + unlinkImages(first_,last_ ); + + ThrowPPException(first_->quiet()); + } + + // Ping images into existing container (appending to container) + template + void pingImages(Container *sequence_,const std::string &imageSpec_, + ReadOptions &options) + { + options.ping(true); + readImages(sequence_,imageSpec_,options); + } + + template + void pingImages(Container *sequence_,const std::string &imageSpec_) + { + ReadOptions options; + pingImages(sequence_,imageSpec_,options); + } + + template + void pingImages(Container *sequence_,const Blob &blob_,ReadOptions &options) + { + options.ping(true); + readImages(sequence_,blob_,options); + } + + template + void pingImages(Container *sequence_,const Blob &blob_) + { + ReadOptions options; + pingImages(sequence_,blob_,options); + } + + // Adds the names of the profiles of the image to the container. + template + void profileNames(Container *names_,const Image* image_) + { + const char* + name; + + names_->clear(); + + MagickCore::ResetImageProfileIterator(image_->constImage()); + name=MagickCore::GetNextImageProfile(image_->constImage()); + while (name != (const char *) NULL) + { + names_->push_back(std::string(name)); + name=MagickCore::GetNextImageProfile(image_->constImage()); + } + } + + // Quantize colors in images using current quantization settings + // Set measureError_ to true in order to measure quantization error + template + void quantizeImages(InputIterator first_,InputIterator last_, + bool measureError_ = false) + { + if (linkImages(first_,last_) == false) + return; + GetPPException; + MagickCore::QuantizeImages(first_->quantizeInfo(),first_->image(), + exceptionInfo); + unlinkImages(first_,last_); + + MagickCore::Image *image=first_->image(); + while (image != (MagickCore::Image *) NULL) + { + // Calculate quantization error + if (measureError_) + MagickCore::GetImageQuantizeError(image,exceptionInfo); + + // Update DirectClass representation of pixels + MagickCore::SyncImage(image,exceptionInfo); + + image=image->next; + } + unlinkImages(first_,last_); + ThrowPPException(first_->quiet()); + } + + // Read images into existing container (appending to container) + template + void readImages(Container *sequence_,const std::string &imageSpec_, + ReadOptions &options) + { + MagickCore::Image + *images; + + MagickCore::ImageInfo + *imageInfo; + + imageInfo=options.imageInfo(); + imageSpec_.copy(imageInfo->filename,MagickPathExtent-1); + imageInfo->filename[imageSpec_.length()] = 0; + GetPPException; + images=MagickCore::ReadImage(imageInfo,exceptionInfo); + insertImages(sequence_,images); + ThrowPPException(options.quiet()); + } + + template + void readImages(Container *sequence_,const std::string &imageSpec_) + { + ReadOptions options; + readImages(sequence_,imageSpec_,options); + } + + template + void readImages(Container *sequence_,const Blob &blob_,ReadOptions &options) + { + MagickCore::Image + *images; + + GetPPException; + images=MagickCore::BlobToImage(options.imageInfo(),blob_.data(), + blob_.length(),exceptionInfo); + insertImages(sequence_,images); + ThrowPPException(options.quiet()); + } + + template + void readImages(Container *sequence_,const Blob &blob_) + { + ReadOptions options; + readImages(sequence_,blob_,options); + } + + // Returns a separate grayscale image for each channel specified. + template + void separateImages(Container *separatedImages_,Image &image_, + const ChannelType channel_) + { + MagickCore::ChannelType + channel_mask; + + MagickCore::Image + *images; + + GetPPException; + channel_mask=MagickCore::SetImageChannelMask(image_.image(),channel_); + images=SeparateImages(image_.constImage(),exceptionInfo); + MagickCore::SetPixelChannelMask(image_.image(),channel_mask); + + separatedImages_->clear(); + insertImages(separatedImages_,images); + + ThrowPPException(image_.quiet()); + } + + // Smush images from list into single image in either horizontal or + // vertical direction. + template + void smushImages(Image *smushedImage_,InputIterator first_, + InputIterator last_,const ssize_t offset_,bool stack_=false) + { + MagickCore::Image + *newImage; + + if (linkImages(first_,last_) == false) + return; + GetPPException; + newImage=MagickCore::SmushImages(first_->constImage(), + (MagickBooleanType) stack_,offset_,exceptionInfo); + unlinkImages(first_,last_); + smushedImage_->replaceImage(newImage); + ThrowPPException(smushedImage_->quiet()); + } + + // Write Images + template + void writeImages( InputIterator first_, + InputIterator last_, + const std::string &imageSpec_, + bool adjoin_ = true ) { + + if (linkImages(first_,last_) == false) + return; + + first_->adjoin( adjoin_ ); + + GetPPException; + ::ssize_t errorStat = MagickCore::WriteImages( first_->constImageInfo(), + first_->image(), + imageSpec_.c_str(), + exceptionInfo ); + unlinkImages( first_, last_ ); + + if ( errorStat != false ) + { + (void) MagickCore::DestroyExceptionInfo( exceptionInfo ); + return; + } + + ThrowPPException(first_->quiet()); + } + // Write images to BLOB + template + void writeImages( InputIterator first_, + InputIterator last_, + Blob *blob_, + bool adjoin_ = true) { + if (linkImages(first_,last_) == false) + return; + + first_->adjoin( adjoin_ ); + + GetPPException; + size_t length = 2048; // Efficient size for small images + void* data = MagickCore::ImagesToBlob( first_->imageInfo(), + first_->image(), + &length, + exceptionInfo); + blob_->updateNoCopy( data, length, Magick::Blob::MallocAllocator ); + + unlinkImages( first_, last_ ); + + ThrowPPException(first_->quiet()); + } + +} // namespace Magick + +#endif // Magick_STL_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/SecurityPolicy.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/SecurityPolicy.h new file mode 100644 index 0000000000000000000000000000000000000000..5a95c5d5b78a0169ba45ac197a677aadcd84557f --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/SecurityPolicy.h @@ -0,0 +1,49 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright @ 2018 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Definition of the security policy. +// + +#if !defined(Magick_SecurityPolicy_header) +#define Magick_SecurityPolicy_header + +#include "Magick++/Include.h" +#include + +namespace Magick +{ + class MagickPPExport SecurityPolicy + { + public: + + // The maximum number of significant digits to be printed. + static bool precision(const int precision_); + + // Enables anonymous mapping for pixel cache. + static bool anonymousCacheMemoryMap(); + + // Enables anonymous virtual memory. + static bool anonymousSystemMemoryMap(); + + // The memory request limit in bytes. + static bool maxMemoryRequest(const MagickSizeType limit_); + + // The number of passes to use when shredding files. + static bool shred(const int passes_); + + private: + SecurityPolicy(void); + + static bool setValue(const PolicyDomain domain_, const std::string name_, + const std::string value_); + + template + static std::string toString(const T& value); + + }; // class SecurityPolicy + +} // Magick namespace + +#endif // Magick_SecurityPolicy_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Statistic.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Statistic.h new file mode 100644 index 0000000000000000000000000000000000000000..845e57325e0fe714f848feff2ec10e378807108e --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/Statistic.h @@ -0,0 +1,308 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// Definition of channel moments. +// + +#if !defined (Magick_ChannelMoments_header) +#define Magick_ChannelMoments_header + +#include "Magick++/Include.h" +#include + +namespace Magick +{ + class Image; + + class MagickPPExport ChannelMoments + { + public: + + // Default constructor + ChannelMoments(void); + + // Copy constructor + ChannelMoments(const ChannelMoments &channelMoments_); + + // Destroy channel moments + ~ChannelMoments(void); + + // X position of centroid + double centroidX(void) const; + + // Y position of centroid + double centroidY(void) const; + + // The channel + PixelChannel channel(void) const; + + // X position of ellipse axis + double ellipseAxisX(void) const; + + // Y position of ellipse axis + double ellipseAxisY(void) const; + + // Ellipse angle + double ellipseAngle(void) const; + + // Ellipse eccentricity + double ellipseEccentricity(void) const; + + // Ellipse intensity + double ellipseIntensity(void) const; + + // Hu invariants (valid range for index is 0-7) + double huInvariants(const size_t index_) const; + + // Does object contain valid channel moments? + bool isValid() const; + + // + // Implementation methods + // + + ChannelMoments(const PixelChannel channel_, + const MagickCore::ChannelMoments *channelMoments_); + + private: + PixelChannel _channel; + std::vector _huInvariants; + double _centroidX; + double _centroidY; + double _ellipseAxisX; + double _ellipseAxisY; + double _ellipseAngle; + double _ellipseEccentricity; + double _ellipseIntensity; + }; + + class MagickPPExport ChannelPerceptualHash + { + public: + + // Default constructor + ChannelPerceptualHash(void); + + // Copy constructor + ChannelPerceptualHash(const ChannelPerceptualHash &channelPerceptualHash_); + + // Constructor using the specified hash string + ChannelPerceptualHash(const PixelChannel channel_, + const std::string &hash_); + + // Destroy channel perceptual hash + ~ChannelPerceptualHash(void); + + // Return hash string + operator std::string() const; + + // The channel + PixelChannel channel(void) const; + + // Does object contain valid channel perceptual hash? + bool isValid() const; + + // Returns the sum squared difference between this hash and the other hash + double sumSquaredDifferences( + const ChannelPerceptualHash &channelPerceptualHash_); + + // SRGB hu preceptual hash (valid range for index is 0-6) + double srgbHuPhash(const size_t index_) const; + + // HCLp hu preceptual hash (valid range for index is 0-6) + double hclpHuPhash(const size_t index_) const; + + // + // Implementation methods + // + + ChannelPerceptualHash(const PixelChannel channel_, + const MagickCore::ChannelPerceptualHash *channelPerceptualHash_); + + private: + PixelChannel _channel; + std::vector _srgbHuPhash; + std::vector _hclpHuPhash; + }; + + // Obtain image statistics. Statistics are normalized to the range + // of 0.0 to 1.0 and are output to the specified ImageStatistics + // structure. + class MagickPPExport ChannelStatistics + { + public: + + // Default constructor + ChannelStatistics(void); + + // Copy constructor + ChannelStatistics(const ChannelStatistics &channelStatistics_); + + // Destroy channel statistics + ~ChannelStatistics(void); + + // Area + double area() const; + + // The channel + PixelChannel channel(void) const; + + // Depth + size_t depth() const; + + // Entropy + double entropy() const; + + // Does object contain valid channel statistics? + bool isValid() const; + + // Kurtosis + double kurtosis() const; + + // Minimum value observed + double maxima() const; + + // Average (mean) value observed + double mean() const; + + // Maximum value observed + double minima() const; + + // Skewness + double skewness() const; + + // Standard deviation, sqrt(variance) + double standardDeviation() const; + + // Sum + double sum() const; + + // Sum cubed + double sumCubed() const; + + // Sum fourth power + double sumFourthPower() const; + + // Sum squared + double sumSquared() const; + + // Variance + double variance() const; + + // + // Implementation methods + // + + ChannelStatistics(const PixelChannel channel_, + const MagickCore::ChannelStatistics *channelStatistics_); + + private: + PixelChannel _channel; + double _area; + size_t _depth; + double _entropy; + double _kurtosis; + double _maxima; + double _mean; + double _minima; + double _skewness; + double _standardDeviation; + double _sum; + double _sumCubed; + double _sumFourthPower; + double _sumSquared; + double _variance; + }; + + class MagickPPExport ImageMoments + { + public: + + // Default constructor + ImageMoments(void); + + // Copy constructor + ImageMoments(const ImageMoments &imageMoments_); + + // Destroy image moments + ~ImageMoments(void); + + // Returns the moments for the specified channel + ChannelMoments channel(const PixelChannel channel_) const; + + // + // Implementation methods + // + ImageMoments(const Image &image_); + + private: + std::vector _channels; + }; + + class MagickPPExport ImagePerceptualHash + { + public: + + // Default constructor + ImagePerceptualHash(void); + + // Copy constructor + ImagePerceptualHash(const ImagePerceptualHash &imagePerceptualHash_); + + // Constructor using the specified hash string + ImagePerceptualHash(const std::string &hash_); + + // Destroy image perceptual hash + ~ImagePerceptualHash(void); + + // Return hash string + operator std::string() const; + + // Returns the perceptual hash for the specified channel + ChannelPerceptualHash channel(const PixelChannel channel_) const; + + // Does object contain valid perceptual hash? + bool isValid() const; + + // Returns the sum squared difference between this hash and the other hash + double sumSquaredDifferences( + const ImagePerceptualHash &channelPerceptualHash_); + + // + // Implementation methods + // + ImagePerceptualHash(const Image &image_); + + private: + std::vector _channels; + }; + + class MagickPPExport ImageStatistics + { + public: + + // Default constructor + ImageStatistics(void); + + // Copy constructor + ImageStatistics(const ImageStatistics &imageStatistics_); + + // Destroy image statistics + ~ImageStatistics(void); + + // Returns the statistics for the specified channel + ChannelStatistics channel(const PixelChannel channel_) const; + + // + // Implementation methods + // + ImageStatistics(const Image &image_); + + private: + std::vector _channels; + }; +} + +#endif // Magick_ChannelMoments_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/TypeMetric.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/TypeMetric.h new file mode 100644 index 0000000000000000000000000000000000000000..208045c043963d8ce0eea63b8c448a4df704e567 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/Magick++/TypeMetric.h @@ -0,0 +1,70 @@ +// This may look like C code, but it is really -*- C++ -*- +// +// Copyright Bob Friesenhahn, 2001, 2002 +// +// Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization +// dedicated to making software imaging solutions freely available. +// +// TypeMetric Definition +// +// Container for font type metrics +// + +#if !defined (Magick_TypeMetric_header) +#define Magick_TypeMetric_header + +#include "Magick++/Include.h" +#include "Magick++/Drawable.h" + +namespace Magick +{ + class MagickPPExport TypeMetric + { + friend class Image; + + public: + + // Default constructor + TypeMetric(void); + + // Destructor + ~TypeMetric(void); + + // The distance in pixels from the text baseline to the highest/upper + // grid coordinate used to place an outline point. + double ascent(void) const; + + // The bounds of the type metric. + Geometry bounds(void) const; + + // The distance in pixels from the baseline to the lowest grid coordinate + // used to place an outline point. Always a negative value. + double descent(void) const; + + // Maximum horizontal advance in pixels. + double maxHorizontalAdvance(void) const; + + // The origin. + Coordinate origin(void) const; + + // The number of pixels per em. + Coordinate pixelsPerEm(void) const; + + // Text height in pixels. + double textHeight(void) const; + + // Text width in pixels. + double textWidth(void) const; + + // Underline position. + double underlinePosition(void) const; + + // Underline thickness. + double underlineThickness(void) const; + + private: + MagickCore::TypeMetric _typeMetric; + }; +} // namespace Magick + +#endif // Magick_TypeMetric_header diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/animate.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/animate.h new file mode 100644 index 0000000000000000000000000000000000000000..f4abf9c6c1afbd8f46fe3136f1ffeccaf7834148 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/animate.h @@ -0,0 +1,32 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore methods to interactively animate an image sequence. +*/ +#ifndef MAGICKCORE_ANIMATE_H +#define MAGICKCORE_ANIMATE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern MagickExport MagickBooleanType + AnimateImages(const ImageInfo *,Image *,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/display.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/display.h new file mode 100644 index 0000000000000000000000000000000000000000..74d8ee7b3eae12a019639cbe043f8a888a391010 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/display.h @@ -0,0 +1,34 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore methods to interactively display and edit an image. +*/ +#ifndef MAGICKCORE_DISPLAY_H +#define MAGICKCORE_DISPLAY_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern MagickExport MagickBooleanType + DisplayImages(const ImageInfo *,Image *,ExceptionInfo *), + RemoteDisplayCommand(const ImageInfo *,const char *,const char *, + ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/distort.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/distort.h new file mode 100644 index 0000000000000000000000000000000000000000..be78f79782b698ff2cb13d320c2e52b830cd1934 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/distort.h @@ -0,0 +1,87 @@ +/* + Copyright @ 2007 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore image distortion methods. +*/ +#ifndef MAGICKCORE_DISTORT_H +#define MAGICKCORE_DISTORT_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +/* + These two enum are linked, with common enumerated values. Both + DistortImages() and SparseColor() often share code to determine functional + coefficients for common methods. + + Caution should be taken to ensure that only the common methods contain the + same enumerated value, while all others remain unique across both + enumerations. +*/ +typedef enum +{ + UndefinedDistortion, + AffineDistortion, + AffineProjectionDistortion, + ScaleRotateTranslateDistortion, + PerspectiveDistortion, + PerspectiveProjectionDistortion, + BilinearForwardDistortion, + BilinearDistortion = BilinearForwardDistortion, + BilinearReverseDistortion, + PolynomialDistortion, + ArcDistortion, + PolarDistortion, + DePolarDistortion, + Cylinder2PlaneDistortion, + Plane2CylinderDistortion, + BarrelDistortion, + BarrelInverseDistortion, + ShepardsDistortion, + ResizeDistortion, + SentinelDistortion, + RigidAffineDistortion +} DistortMethod; + +typedef enum +{ + UndefinedColorInterpolate = UndefinedDistortion, + BarycentricColorInterpolate = AffineDistortion, + BilinearColorInterpolate = BilinearReverseDistortion, + PolynomialColorInterpolate = PolynomialDistortion, + ShepardsColorInterpolate = ShepardsDistortion, + /* + Methods unique to SparseColor(). + */ + VoronoiColorInterpolate = SentinelDistortion, + InverseColorInterpolate, + ManhattanColorInterpolate +} SparseColorMethod; + +extern MagickExport Image + *AffineTransformImage(const Image *,const AffineMatrix *,ExceptionInfo *), + *DistortImage(const Image *,const DistortMethod,const size_t, + const double *,MagickBooleanType,ExceptionInfo *exception), + *DistortResizeImage(const Image *,const size_t,const size_t,ExceptionInfo *), + *RotateImage(const Image *,const double,ExceptionInfo *), + *SparseColorImage(const Image *,const SparseColorMethod,const size_t, + const double *,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/draw.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/draw.h new file mode 100644 index 0000000000000000000000000000000000000000..c430a8e91609a62092c2408ddc211ff82e2e9b3c --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/draw.h @@ -0,0 +1,422 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore drawing methods. +*/ +#ifndef MAGICKCORE_DRAW_H +#define MAGICKCORE_DRAW_H + +#include "MagickCore/geometry.h" +#include "MagickCore/image.h" +#include "MagickCore/pixel.h" +#include "MagickCore/type.h" +#include "MagickCore/color.h" + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef enum +{ + UndefinedAlign, + LeftAlign, + CenterAlign, + RightAlign +} AlignType; + +typedef enum +{ + UndefinedPathUnits, + UserSpace, + UserSpaceOnUse, + ObjectBoundingBox +} ClipPathUnits; + +typedef enum +{ + UndefinedDecoration, + NoDecoration, + UnderlineDecoration, + OverlineDecoration, + LineThroughDecoration +} DecorationType; + +typedef enum +{ + UndefinedDirection, + RightToLeftDirection, + LeftToRightDirection +} DirectionType; + +typedef enum +{ + UndefinedRule, +#undef EvenOddRule + EvenOddRule, + NonZeroRule +} FillRule; + +typedef enum +{ + UndefinedGradient, + LinearGradient, + RadialGradient +} GradientType; + +typedef enum +{ + UndefinedCap, + ButtCap, + RoundCap, + SquareCap +} LineCap; + +typedef enum +{ + UndefinedJoin, + MiterJoin, + RoundJoin, + BevelJoin +} LineJoin; + +typedef enum +{ + UndefinedMethod, + PointMethod, + ReplaceMethod, + FloodfillMethod, + FillToBorderMethod, + ResetMethod +} PaintMethod; + +typedef enum +{ + UndefinedPrimitive, + AlphaPrimitive, + ArcPrimitive, + BezierPrimitive, + CirclePrimitive, + ColorPrimitive, + EllipsePrimitive, + ImagePrimitive, + LinePrimitive, + PathPrimitive, + PointPrimitive, + PolygonPrimitive, + PolylinePrimitive, + RectanglePrimitive, + RoundRectanglePrimitive, + TextPrimitive +} PrimitiveType; + +typedef enum +{ + UndefinedReference, + GradientReference +} ReferenceType; + +typedef enum +{ + UndefinedSpread, + PadSpread, + ReflectSpread, + RepeatSpread +} SpreadMethod; + +typedef enum +{ + UndefinedWordBreakType, + NormalWordBreakType, + BreakWordBreakType +} WordBreakType; + +typedef struct _StopInfo +{ + PixelInfo + color; + + double + offset; +} StopInfo; + +typedef struct _GradientInfo +{ + GradientType + type; + + RectangleInfo + bounding_box; + + SegmentInfo + gradient_vector; + + StopInfo + *stops; + + size_t + number_stops; + + SpreadMethod + spread; + + MagickBooleanType + debug; + + PointInfo + center, + radii; + + double + radius, + angle; + + size_t + signature; +} GradientInfo; + +typedef struct _ElementReference +{ + char + *id; + + ReferenceType + type; + + GradientInfo + gradient; + + struct _ElementReference + *previous, + *next; + + size_t + signature; +} ElementReference; + +typedef struct _DrawInfo +{ + char + *primitive, + *geometry; + + RectangleInfo + viewbox; + + AffineMatrix + affine; + + PixelInfo + fill, + stroke, + undercolor, + border_color; + + Image + *fill_pattern, + *stroke_pattern; + + double + stroke_width; + + GradientInfo + gradient; + + MagickBooleanType + stroke_antialias, + text_antialias; + + FillRule + fill_rule; + + LineCap + linecap; + + LineJoin + linejoin; + + size_t + miterlimit; + + double + dash_offset; + + DecorationType + decorate; + + CompositeOperator + compose; + + char + *text, + *font, + *metrics, + *family; + + size_t + face; + + StyleType + style; + + StretchType + stretch; + + size_t + weight; + + char + *encoding; + + double + pointsize; + + char + *density; + + AlignType + align; + + GravityType + gravity; + + char + *server_name; + + double + *dash_pattern; + + char + *clip_mask; + + SegmentInfo + bounds; + + ClipPathUnits + clip_units; + + Quantum + alpha; + + MagickBooleanType + render; + + ElementReference + element_reference; + + double + kerning, + interword_spacing, + interline_spacing; + + DirectionType + direction; + + MagickBooleanType + debug; + + size_t + signature; + + double + fill_alpha, + stroke_alpha; + + MagickBooleanType + clip_path; + + Image + *clipping_mask; + + ComplianceType + compliance; + + Image + *composite_mask; + + char + *id; + + WordBreakType + word_break; + + ImageInfo + *image_info; +} DrawInfo; + +typedef struct _PrimitiveInfo +{ + PointInfo + point; + + size_t + coordinates; + + PrimitiveType + primitive; + + PaintMethod + method; + + char + *text; + + MagickBooleanType + closed_subpath; +} PrimitiveInfo; + +typedef struct _TypeMetric +{ + PointInfo + pixels_per_em; + + double + ascent, + descent, + width, + height, + max_advance, + underline_position, + underline_thickness; + + SegmentInfo + bounds; + + PointInfo + origin; +} TypeMetric; + +extern MagickExport DrawInfo + *AcquireDrawInfo(void), + *CloneDrawInfo(const ImageInfo *,const DrawInfo *), + *DestroyDrawInfo(DrawInfo *); + +extern MagickExport MagickBooleanType + DrawAffineImage(Image *,const Image *,const AffineMatrix *,ExceptionInfo *), + DrawClipPath(Image *,const DrawInfo *,const char *,ExceptionInfo *), + DrawGradientImage(Image *,const DrawInfo *,ExceptionInfo *), + DrawImage(Image *,const DrawInfo *,ExceptionInfo *), + DrawPatternPath(Image *,const DrawInfo *,const char *,Image **, + ExceptionInfo *), + DrawPrimitive(Image *,const DrawInfo *,const PrimitiveInfo *,ExceptionInfo *); + +extern MagickExport void + GetAffineMatrix(AffineMatrix *), + GetDrawInfo(const ImageInfo *,DrawInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/geometry.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/geometry.h new file mode 100644 index 0000000000000000000000000000000000000000..e2e3d33bd7557de88ab21f963ba3449dd83de9ba --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/geometry.h @@ -0,0 +1,169 @@ +/* + Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore image geometry methods. +*/ +#ifndef MAGICKCORE_GEOMETRY_H +#define MAGICKCORE_GEOMETRY_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef enum +{ +#undef NoValue + NoValue = 0x0000, +#undef XValue + XValue = 0x0001, + XiValue = 0x0001, +#undef YValue + YValue = 0x0002, + PsiValue = 0x0002, +#undef WidthValue + WidthValue = 0x0004, + RhoValue = 0x0004, +#undef HeightValue + HeightValue = 0x0008, + SigmaValue = 0x0008, + ChiValue = 0x0010, + XiNegative = 0x0020, +#undef XNegative + XNegative = 0x0020, + PsiNegative = 0x0040, +#undef YNegative + YNegative = 0x0040, + ChiNegative = 0x0080, + PercentValue = 0x1000, /* '%' percentage of something */ + AspectValue = 0x2000, /* '!' resize no-aspect - special use flag */ + NormalizeValue = 0x2000, /* '!' ScaleKernelValue() in morphology.c */ + LessValue = 0x4000, /* '<' resize smaller - special use flag */ + GreaterValue = 0x8000, /* '>' resize larger - spacial use flag */ + MinimumValue = 0x10000, /* '^' special handling needed */ + CorrelateNormalizeValue = 0x10000, /* '^' see ScaleKernelValue() */ + AreaValue = 0x20000, /* '@' resize to area - special use flag */ + DecimalValue = 0x40000, /* '.' floating point numbers found */ + SeparatorValue = 0x80000, /* 'x' separator found */ + AspectRatioValue = 0x100000, /* '~' special handling needed */ + AlphaValue = 0x200000, /* '/' alpha */ + MaximumValue = 0x400000, /* '#' special handling needed */ +#undef AllValues + AllValues = 0x7fffffff +} GeometryFlags; + +#if defined(ForgetGravity) +#undef ForgetGravity +#undef NorthWestGravity +#undef NorthGravity +#undef NorthEastGravity +#undef WestGravity +#undef CenterGravity +#undef EastGravity +#undef SouthWestGravity +#undef SouthGravity +#undef SouthEastGravity +#endif + +typedef enum +{ + UndefinedGravity, + ForgetGravity = 0, + NorthWestGravity = 1, + NorthGravity = 2, + NorthEastGravity = 3, + WestGravity = 4, + CenterGravity = 5, + EastGravity = 6, + SouthWestGravity = 7, + SouthGravity = 8, + SouthEastGravity = 9 +} GravityType; + +typedef struct _AffineMatrix +{ + double + sx, + rx, + ry, + sy, + tx, + ty; +} AffineMatrix; + +typedef struct _GeometryInfo +{ + double + rho, + sigma, + xi, + psi, + chi; +} GeometryInfo; + +typedef struct _OffsetInfo +{ + ssize_t + x, + y; +} OffsetInfo; + +typedef struct _PointInfo +{ + double + x, + y; +} PointInfo; + +typedef struct _RectangleInfo +{ + size_t + width, + height; + + ssize_t + x, + y; +} RectangleInfo; + +extern MagickExport char + *GetPageGeometry(const char *); + +extern MagickExport MagickBooleanType + IsGeometry(const char *), + IsSceneGeometry(const char *,const MagickBooleanType); + +extern MagickExport MagickStatusType + GetGeometry(const char *,ssize_t *,ssize_t *,size_t *,size_t *), + ParseAbsoluteGeometry(const char *,RectangleInfo *), + ParseAffineGeometry(const char *,AffineMatrix *,ExceptionInfo *), + ParseGeometry(const char *,GeometryInfo *), + ParseGravityGeometry(const Image *,const char *,RectangleInfo *, + ExceptionInfo *), + ParseMetaGeometry(const char *,ssize_t *,ssize_t *,size_t *,size_t *), + ParsePageGeometry(const Image *,const char *,RectangleInfo *,ExceptionInfo *), + ParseRegionGeometry(const Image *,const char *,RectangleInfo *, + ExceptionInfo *); + +extern MagickExport void + GravityAdjustGeometry(const size_t,const size_t,const GravityType, + RectangleInfo *), + SetGeometry(const Image *,RectangleInfo *), + SetGeometryInfo(GeometryInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/list.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/list.h new file mode 100644 index 0000000000000000000000000000000000000000..dadf5753c73194581e92897198f0c6f4749cd9cb --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/list.h @@ -0,0 +1,65 @@ +/* + Copyright @ 2002 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore image list methods. +*/ +#ifndef MAGICKCORE_LIST_H +#define MAGICKCORE_LIST_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern MagickExport Image + *CloneImageList(const Image *,ExceptionInfo *), + *CloneImages(const Image *,const char *,ExceptionInfo *), + *DestroyImageList(Image *), + *DuplicateImages(Image *,const size_t,const char *,ExceptionInfo *), + *GetFirstImageInList(const Image *) magick_attribute((__pure__)), + *GetImageFromList(const Image *,const ssize_t) magick_attribute((__pure__)), + *GetLastImageInList(const Image *) magick_attribute((__pure__)), + *GetNextImageInList(const Image *) magick_attribute((__pure__)), + *GetPreviousImageInList(const Image *) magick_attribute((__pure__)), + **ImageListToArray(const Image *,ExceptionInfo *), + *NewImageList(void) magick_attribute((__const__)), + *RemoveImageFromList(Image **), + *RemoveLastImageFromList(Image **), + *RemoveFirstImageFromList(Image **), + *SpliceImageIntoList(Image **,const size_t,const Image *), + *SplitImageList(Image *), + *SyncNextImageInList(const Image *); + +extern MagickExport size_t + GetImageListLength(const Image *) magick_attribute((__pure__)); + +extern MagickExport ssize_t + GetImageIndexInList(const Image *) magick_attribute((__pure__)); + +extern MagickExport void + AppendImageToList(Image **,const Image *), + DeleteImageFromList(Image **), + DeleteImages(Image **,const char *,ExceptionInfo *), + InsertImageInList(Image **,Image *), + PrependImageToList(Image **,Image *), + ReplaceImageInList(Image **,Image *), + ReplaceImageInListReturnLast(Image **,Image *), + ReverseImageList(Image **), + SyncImageList(Image *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/locale_.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/locale_.h new file mode 100644 index 0000000000000000000000000000000000000000..67091b2d7a200e7e07ad4c30379540093eb25916 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/locale_.h @@ -0,0 +1,83 @@ +/* + Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore locale methods. +*/ +#ifndef MAGICKCORE_LOCALE_H +#define MAGICKCORE_LOCALE_H + +#include "MagickCore/linked-list.h" + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef struct _LocaleInfo +{ + char + *path, + *tag, + *message; + + MagickBooleanType + stealth; + + size_t + signature; +} LocaleInfo; + +extern MagickExport char + **GetLocaleList(const char *,size_t *,ExceptionInfo *); + +extern MagickExport const char + *GetLocaleMessage(const char *); + +extern MagickExport const LocaleInfo + *GetLocaleInfo_(const char *,ExceptionInfo *), + **GetLocaleInfoList(const char *,size_t *,ExceptionInfo *); + +extern MagickExport double + InterpretLocaleValue(const char *magick_restrict,char *magick_restrict *); + +extern MagickExport int + LocaleCompare(const char *,const char *) magick_attribute((__pure__)), + LocaleLowercase(const int), + LocaleNCompare(const char *,const char *,const size_t) + magick_attribute((__pure__)), + LocaleUppercase(const int); + +extern MagickExport LinkedListInfo + *DestroyLocaleOptions(LinkedListInfo *), + *GetLocaleOptions(const char *,ExceptionInfo *); + +extern MagickExport MagickBooleanType + ListLocaleInfo(FILE *,ExceptionInfo *); + +extern MagickExport ssize_t + FormatLocaleFile(FILE *,const char *magick_restrict,...) + magick_attribute((__format__ (__printf__,2,3))), + FormatLocaleString(char *magick_restrict,const size_t, + const char *magick_restrict,...) + magick_attribute((__format__ (__printf__,3,4))); + +extern MagickExport void + LocaleLower(char *), + LocaleUpper(char *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/log.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/log.h new file mode 100644 index 0000000000000000000000000000000000000000..b4ca71c88e128da2ecf0054888e5a215dfa53269 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/log.h @@ -0,0 +1,100 @@ +/* + Copyright @ 2002 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore log methods. +*/ +#ifndef MAGICKCORE_LOG_H +#define MAGICKCORE_LOG_H + +#include "MagickCore/exception.h" + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +#if !defined(GetMagickModule) +# define GetMagickModule() __FILE__,__func__,(unsigned long) __LINE__ +#endif + +#define MagickLogFilename "log.xml" + +typedef enum +{ + UndefinedEvents = 0x000000, + NoEvents = 0x00000, + AccelerateEvent = 0x00001, + AnnotateEvent = 0x00002, + BlobEvent = 0x00004, + CacheEvent = 0x00008, + CoderEvent = 0x00010, + ConfigureEvent = 0x00020, + DeprecateEvent = 0x00040, + DrawEvent = 0x00080, + ExceptionEvent = 0x00100, /* Log Errors and Warnings immediately */ + ImageEvent = 0x00200, + LocaleEvent = 0x00400, + ModuleEvent = 0x00800, /* Log coder and filter modules */ + PixelEvent = 0x01000, + PolicyEvent = 0x02000, + ResourceEvent = 0x04000, + TraceEvent = 0x08000, + TransformEvent = 0x10000, + UserEvent = 0x20000, + WandEvent = 0x40000, /* Log MagickWand */ + X11Event = 0x80000, + CommandEvent = 0x100000, /* Log Command Processing (CLI & Scripts) */ + AllEvents = 0x7fffffff +} LogEventType; + +typedef struct _LogInfo + LogInfo; + +typedef void + (*MagickLogMethod)(const LogEventType,const char *); + +extern MagickExport char + **GetLogList(const char *,size_t *,ExceptionInfo *); + +extern MagickExport const char + *GetLogName(void) magick_attribute((__pure__)), + *SetLogName(const char *); + +extern MagickExport LogEventType + GetLogEventMask(void) magick_attribute((__pure__)); + +extern MagickExport const LogInfo + **GetLogInfoList(const char *,size_t *,ExceptionInfo *); + +extern MagickExport LogEventType + SetLogEventMask(const char *); + +extern MagickExport MagickBooleanType + IsEventLogging(void) magick_attribute((__pure__)), + ListLogInfo(FILE *,ExceptionInfo *), + LogMagickEvent(const LogEventType,const char *,const char *,const size_t, + const char *,...) magick_attribute((__format__ (__printf__,5,6))), + LogMagickEventList(const LogEventType,const char *,const char *,const size_t, + const char *,va_list) magick_attribute((__format__ (__printf__,5,0))); + +extern MagickExport void + CloseMagickLog(void), + SetLogFormat(const char *), + SetLogMethod(MagickLogMethod); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/magick-config.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/magick-config.h new file mode 100644 index 0000000000000000000000000000000000000000..cd5ef5535e31fd26f88614869ce67de2ee3cc3e1 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/magick-config.h @@ -0,0 +1,271 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickConfig not autogenerated (fixed stuff) +*/ +#ifndef MAGICKCORE_MAGICK_CONFIG_H +#define MAGICKCORE_MAGICK_CONFIG_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +#include "MagickCore/magick-baseconfig.h" + +#define MAGICKCORE_STRING_QUOTE(str) #str +#define MAGICKCORE_STRING_XQUOTE(str) MAGICKCORE_STRING_QUOTE(str) + +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +# if defined(__GNUC__) || defined(__clang__) +# define MAGICK_COMPILER_WARNING(w) _Pragma(MAGICKCORE_STRING_QUOTE(GCC warning w)) +# elif defined(_MSC_VER) +# define MAGICK_COMPILER_WARNING(w) _Pragma(MAGICKCORE_STRING_QUOTE(message(w))) +# endif +#endif + +#ifndef MAGICK_COMPILER_WARNING +# define MAGICK_COMPILER_WARNING(w) +#endif + +#ifdef MAGICKCORE__FILE_OFFSET_BITS +# ifdef _FILE_OFFSET_BITS +# if _FILE_OFFSET_BITS != MAGICKCORE__FILE_OFFSET_BITS + MAGICK_COMPILER_WARNING("_FILE_OFFSET_BITS is already defined, but does not match MAGICKCORE__FILE_OFFSET_BITS") +# else +# undef _FILE_OFFSET_BITS +# endif +# endif +# ifndef _FILE_OFFSET_BITS +# if MAGICKCORE__FILE_OFFSET_BITS == 64 +# define _FILE_OFFSET_BITS 64 +# elif MAGICKCORE__FILE_OFFSET_BITS == 32 +# define _FILE_OFFSET_BITS 32 +# else +# define _FILE_OFFSET_BITS MAGICKCORE__FILE_OFFSET_BITS +# endif +# endif +#endif + +/* Compatibility block */ +#if !defined(MAGICKCORE_QUANTUM_DEPTH) && defined(MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H) +# warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default" +# warning "this is an obsolete behavior please fix your makefile" +# define MAGICKCORE_QUANTUM_DEPTH MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H +#endif + +/* Number of bits in a pixel Quantum (8/16/32/64) */ +#ifndef MAGICKCORE_QUANTUM_DEPTH +# error "you should set MAGICKCORE_QUANTUM_DEPTH" +#endif + +/* check values */ +#if MAGICKCORE_QUANTUM_DEPTH != 8 +# if MAGICKCORE_QUANTUM_DEPTH != 16 +# if MAGICKCORE_QUANTUM_DEPTH != 32 +# if MAGICKCORE_QUANTUM_DEPTH != 64 +# error "MAGICKCORE_QUANTUM_DEPTH is not 8/16/32/64 bits" +# endif +# endif +# endif +#endif + + +#if !defined(MAGICKCORE_HDRI_ENABLE) && defined(MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H) +# warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default" +# warning "this is an obsolete behavior please fix yours makefile" +# define MAGICKCORE_HDRI_ENABLE MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H +#endif + +/* whether HDRI is enable */ +#if !defined(MAGICKCORE_HDRI_ENABLE) +# error "you should set MAGICKCORE_HDRI_ENABLE" +#endif + +#if MAGICKCORE_HDRI_ENABLE +# define MAGICKCORE_HDRI_SUPPORT 1 +#endif + +/* Compatibility block */ +#if !defined(MAGICKCORE_QUANTUM_DEPTH) && defined(MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H) +# warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default" +# warning "this is an obsolete behavior please fix yours makefile" +# define MAGICKCORE_QUANTUM_DEPTH MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H +#endif + +/* Number of bits in a pixel Quantum (8/16/32/64) */ +#ifndef MAGICKCORE_QUANTUM_DEPTH +# error "you should set MAGICKCORE_QUANTUM_DEPTH" +#endif + +/* check values */ +#if MAGICKCORE_QUANTUM_DEPTH != 8 +# if MAGICKCORE_QUANTUM_DEPTH != 16 +# if MAGICKCORE_QUANTUM_DEPTH != 32 +# if MAGICKCORE_QUANTUM_DEPTH != 64 +# error "MAGICKCORE_QUANTUM_DEPTH is not 8/16/32/64 bits" +# endif +# endif +# endif +#endif + + +#if !defined(MAGICKCORE_HDRI_ENABLE) && defined(MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H) +# warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default" +# warning "this is an obsolete behavior please fix yours makefile" +# define MAGICKCORE_HDRI_ENABLE MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H +#endif + +/* whether HDRI is enable */ +#if !defined(MAGICKCORE_HDRI_ENABLE) +# error "you should set MAGICKCORE_HDRI_ENABLE" +#endif + +#if MAGICKCORE_HDRI_ENABLE +# define MAGICKCORE_HDRI_SUPPORT 1 +#endif + +#if defined __CYGWIN32__ && !defined __CYGWIN__ + /* For backwards compatibility with Cygwin b19 and + earlier, we define __CYGWIN__ here, so that + we can rely on checking just for that macro. */ +# define __CYGWIN__ __CYGWIN32__ +#endif + +/* ABI SUFFIX */ +#ifndef MAGICKCORE_HDRI_SUPPORT +#define MAGICKCORE_ABI_SUFFIX "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH) +#else +#define MAGICKCORE_ABI_SUFFIX "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH) "HDRI" +#endif + +/* some path game */ +#if !defined __CYGWIN__ +# if defined (_WIN32) || defined (_WIN64) || defined (__MSDOS__) || defined (__DJGPP__) || defined (__OS2__) + /* Use Windows separators on all _WIN32 defining + environments, except Cygwin. */ +# define MAGICKCORE_DIR_SEPARATOR_CHAR '\\' +# define MAGICKCORE_DIR_SEPARATOR "\\" +# define MAGICKCORE_PATH_SEPARATOR_CHAR ';' +# define MAGICKCORE_PATH_SEPARATOR ";" +# endif +#endif + +/* posix */ +#ifndef MAGICKCORE_DIR_SEPARATOR_CHAR + /* Assume that not having this is an indicator that all + are missing. */ +# define MAGICKCORE_DIR_SEPARATOR_CHAR '/' +# define MAGICKCORE_DIR_SEPARATOR "/" +# define MAGICKCORE_PATH_SEPARATOR_CHAR ':' +# define MAGICKCORE_PATH_SEPARATOR ":" +#endif /* !DIR_SEPARATOR_CHAR */ + +# if defined(MAGICKCORE_POSIX_SUPPORT) || defined(__MINGW32__) + +/* module dir */ +#ifndef MAGICKCORE_MODULES_DIRNAME +# define MAGICKCORE_MODULES_DIRNAME MAGICKCORE_MODULES_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX +#endif + +#ifndef MAGICKCORE_MODULES_PATH +# define MAGICKCORE_MODULES_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME +#endif + +#ifndef MAGICKCORE_MODULES_RELATIVE_PATH +#define MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME +#endif + +/* Subdirectory under lib to place ImageMagick coder module files */ +#ifndef MAGICKCORE_CODER_PATH +# if defined(vms) +# define MAGICKCORE_CODER_PATH "sys$login:" +# else +# define MAGICKCORE_CODER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME +# endif +#endif + +#ifndef MAGICKCORE_CODER_RELATIVE_PATH +# define MAGICKCORE_CODER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME +#endif + +/* subdirectory under lib to place ImageMagick filter module files */ +#ifndef MAGICKCORE_FILTER_PATH +# if defined(vms) +# define MAGICKCORE_FILTER_PATH "sys$login:" +# else +# define MAGICKCORE_FILTER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME +# endif +#endif + +#ifndef MAGICKCORE_FILTER_RELATIVE_PATH +# define MAGICKCORE_FILTER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME +#endif + +/* sharearch dir */ +#ifndef MAGICKCORE_SHAREARCH_DIRNAME +# define MAGICKCORE_SHAREARCH_DIRNAME MAGICKCORE_SHAREARCH_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX +#endif + +#ifndef MAGICKCORE_SHAREARCH_PATH +# define MAGICKCORE_SHAREARCH_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_SHAREARCH_DIRNAME MAGICKCORE_DIR_SEPARATOR +#endif + +#ifndef MAGICKCORE_SHAREARCH_RELATIVE_PATH +#define MAGICKCORE_SHAREARCH_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_SHAREARCH_DIRNAME +#endif + +#endif + +/* for Clang compatibility */ +#ifndef __has_builtin +# define __has_builtin(x) 0 +#endif + +#if defined(__GNUC__) && !defined(__clang__) +# define MAGICKCORE_DIAGNOSTIC_PUSH() \ + _Pragma("GCC diagnostic push") +# define MAGICKCORE_DIAGNOSTIC_IGNORE_MAYBE_UNINITIALIZED() \ + _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# define MAGICKCORE_DIAGNOSTIC_POP() \ + _Pragma("GCC diagnostic pop") +#else +# define MAGICKCORE_DIAGNOSTIC_PUSH() +# define MAGICKCORE_DIAGNOSTIC_IGNORE_MAYBE_UNINITIALIZED() +# define MAGICKCORE_DIAGNOSTIC_POP() +#endif + +#define MAGICKCORE_BITS_BELOW(power_of_2) \ + ((power_of_2)-1) + +#define MAGICKCORE_MAX_ALIGNMENT_PADDING(power_of_2) \ + MAGICKCORE_BITS_BELOW(power_of_2) + +#define MAGICKCORE_IS_NOT_ALIGNED(n, power_of_2) \ + ((n) & MAGICKCORE_BITS_BELOW(power_of_2)) + +#define MAGICKCORE_IS_NOT_POWER_OF_2(n) \ + MAGICKCORE_IS_NOT_ALIGNED((n), (n)) + +#define MAGICKCORE_ALIGN_DOWN(n, power_of_2) \ + ((n) & ~MAGICKCORE_BITS_BELOW(power_of_2)) + +#define MAGICKCORE_ALIGN_UP(n, power_of_2) \ + MAGICKCORE_ALIGN_DOWN((n) + MAGICKCORE_MAX_ALIGNMENT_PADDING(power_of_2),power_of_2) + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/memory_.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/memory_.h new file mode 100644 index 0000000000000000000000000000000000000000..73ae0378f2f6dd02fa77683952565b4103fff98c --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/memory_.h @@ -0,0 +1,106 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore memory methods. +*/ +#ifndef MAGICKCORE_MEMORY_H +#define MAGICKCORE_MEMORY_H + +#include + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef struct _MemoryInfo + MemoryInfo; + +typedef void + *(*AcquireMemoryHandler)(size_t) magick_alloc_size(1), + (*DestroyMemoryHandler)(void *), + *(*ResizeMemoryHandler)(void *,size_t) magick_alloc_size(2), + *(*AcquireAlignedMemoryHandler)(const size_t,const size_t), + (*RelinquishAlignedMemoryHandler)(void *); + +extern MagickExport MemoryInfo + *AcquireVirtualMemory(const size_t,const size_t) magick_alloc_sizes(1,2), + *RelinquishVirtualMemory(MemoryInfo *); + +extern MagickExport size_t + GetMaxMemoryRequest(void); + +extern MagickExport void + *AcquireAlignedMemory(const size_t,const size_t) + magick_attribute((__malloc__)) magick_alloc_sizes(1,2), + *AcquireMagickMemory(const size_t) magick_attribute((__malloc__)) + magick_alloc_size(1), + *AcquireCriticalMemory(const size_t), + *AcquireQuantumMemory(const size_t,const size_t) + magick_attribute((__malloc__)) magick_alloc_sizes(1,2), + *CopyMagickMemory(void *magick_restrict,const void *magick_restrict, + const size_t) magick_attribute((__nonnull__)), + DestroyMagickMemory(void), + GetMagickMemoryMethods(AcquireMemoryHandler *,ResizeMemoryHandler *, + DestroyMemoryHandler *), + *GetVirtualMemoryBlob(const MemoryInfo *), + *RelinquishAlignedMemory(void *), + *RelinquishMagickMemory(void *), + *ResetMagickMemory(void *,int,const size_t), + *ResizeMagickMemory(void *,const size_t) + magick_attribute((__malloc__)) magick_alloc_size(2), + *ResizeQuantumMemory(void *,const size_t,const size_t) + magick_attribute((__malloc__)) magick_alloc_sizes(2,3), + SetMagickAlignedMemoryMethods(AcquireAlignedMemoryHandler, + RelinquishAlignedMemoryHandler), + SetMagickMemoryMethods(AcquireMemoryHandler,ResizeMemoryHandler, + DestroyMemoryHandler); + +static inline MagickBooleanType HeapOverflowSanityCheck( + const size_t count,const size_t quantum) +{ + if ((count == 0) || (quantum == 0)) + return(MagickTrue); + if (quantum != ((count*quantum)/count)) + { + errno=ENOMEM; + return(MagickTrue); + } + return(MagickFalse); +} + +static inline MagickBooleanType HeapOverflowSanityCheckGetSize( + const size_t count,const size_t quantum,size_t *const extent) +{ + size_t + length; + + if ((count == 0) || (quantum == 0)) + return(MagickTrue); + length=count*quantum; + if (quantum != (length/count)) + { + errno=ENOMEM; + return(MagickTrue); + } + if (extent != NULL) + *extent=length; + return(MagickFalse); +} + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/pixel-accessor.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/pixel-accessor.h new file mode 100644 index 0000000000000000000000000000000000000000..c1813824630ee7d08d3a4b4c1aaa446832cf0d24 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/pixel-accessor.h @@ -0,0 +1,965 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore pixel accessor methods. +*/ +#ifndef MAGICKCORE_PIXEL_ACCESSOR_H +#define MAGICKCORE_PIXEL_ACCESSOR_H + +#include "MagickCore/cache.h" +#include "MagickCore/cache-view.h" +#include "MagickCore/color.h" +#include "MagickCore/colorspace.h" +#include "MagickCore/gem.h" +#include "MagickCore/image.h" +#include "MagickCore/memory_.h" + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +#undef index + +static inline Quantum ClampPixel(const MagickRealType pixel) +{ + if (pixel < 0.0f) + return((Quantum) 0); + if (pixel >= (MagickRealType) QuantumRange) + return((Quantum) QuantumRange); +#if !defined(MAGICKCORE_HDRI_SUPPORT) + return((Quantum) (pixel+0.5f)); +#else + return((Quantum) pixel); +#endif +} + +static inline Quantum GetPixela(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[aPixelChannel].offset]); +} + +static inline Quantum GetPixelAlpha(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + if (image->channel_map[AlphaPixelChannel].traits == UndefinedPixelTrait) + return(OpaqueAlpha); + return(pixel[image->channel_map[AlphaPixelChannel].offset]); +} + +static inline PixelTrait GetPixelAlphaTraits(const Image *magick_restrict image) +{ + return(image->channel_map[AlphaPixelChannel].traits); +} + +static inline Quantum GetPixelb(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[bPixelChannel].offset]); +} + +static inline Quantum GetPixelBlack(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + if (image->channel_map[BlackPixelChannel].traits == UndefinedPixelTrait) + return((Quantum) 0); + return(pixel[image->channel_map[BlackPixelChannel].offset]); +} + +static inline PixelTrait GetPixelBlackTraits(const Image *magick_restrict image) +{ + return(image->channel_map[BlackPixelChannel].traits); +} + +static inline Quantum GetPixelBlue(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[BluePixelChannel].offset]); +} + +static inline PixelTrait GetPixelBlueTraits(const Image *magick_restrict image) +{ + return(image->channel_map[BluePixelChannel].traits); +} + +static inline Quantum GetPixelCb(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[CbPixelChannel].offset]); +} + +static inline PixelTrait GetPixelCbTraits(const Image *magick_restrict image) +{ + return(image->channel_map[CbPixelChannel].traits); +} + +static inline Quantum GetPixelChannel(const Image *magick_restrict image, + const PixelChannel channel,const Quantum *magick_restrict pixel) +{ + if (((ssize_t) channel < 0) || ((ssize_t) channel >= MaxPixelChannels)) + return((Quantum) 0); + if (image->channel_map[channel].traits == UndefinedPixelTrait) + return((Quantum) 0); + return(pixel[image->channel_map[channel].offset]); +} + +static inline PixelChannel GetPixelChannelChannel( + const Image *magick_restrict image,const ssize_t offset) +{ + if ((offset < 0) || (offset >= MaxPixelChannels)) + return(UndefinedPixelChannel); + return(image->channel_map[offset].channel); +} + +static inline ssize_t GetPixelChannelOffset(const Image *magick_restrict image, + const PixelChannel channel) +{ + return(image->channel_map[channel].offset); +} + +static inline PixelTrait GetPixelChannelTraits( + const Image *magick_restrict image,const PixelChannel channel) +{ + if (((ssize_t) channel < 0) || ((ssize_t) channel >= MaxPixelChannels)) + return(UndefinedPixelTrait); + return(image->channel_map[channel].traits); +} + +static inline size_t GetPixelChannels(const Image *magick_restrict image) +{ + return(image->number_channels); +} + +static inline Quantum GetPixelCompositeMask( + const Image *magick_restrict image,const Quantum *magick_restrict pixel) +{ + if (image->channel_map[CompositeMaskPixelChannel].traits == UndefinedPixelTrait) + return((Quantum) QuantumRange); + return(pixel[image->channel_map[CompositeMaskPixelChannel].offset]); +} + +static inline PixelTrait GetPixelCompositeMaskTraits( + const Image *magick_restrict image) +{ + return(image->channel_map[CompositeMaskPixelChannel].traits); +} + +static inline Quantum GetPixelCr(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[CrPixelChannel].offset]); +} + +static inline PixelTrait GetPixelCrTraits(const Image *magick_restrict image) +{ + return(image->channel_map[CrPixelChannel].traits); +} + +static inline Quantum GetPixelCyan(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[CyanPixelChannel].offset]); +} + +static inline PixelTrait GetPixelCyanTraits(const Image *magick_restrict image) +{ + return(image->channel_map[CyanPixelChannel].traits); +} + +static inline Quantum GetPixelGray(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[GrayPixelChannel].offset]); +} + +static inline PixelTrait GetPixelGrayTraits(const Image *magick_restrict image) +{ + return(image->channel_map[GrayPixelChannel].traits); +} + +static inline Quantum GetPixelGreen(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[GreenPixelChannel].offset]); +} + +static inline PixelTrait GetPixelGreenTraits(const Image *magick_restrict image) +{ + return(image->channel_map[GreenPixelChannel].traits); +} + +static inline Quantum GetPixelIndex(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + if (image->channel_map[IndexPixelChannel].traits == UndefinedPixelTrait) + return((Quantum) 0); + return(pixel[image->channel_map[IndexPixelChannel].offset]); +} + +static inline PixelTrait GetPixelIndexTraits(const Image *magick_restrict image) +{ + return(image->channel_map[IndexPixelChannel].traits); +} + +static inline MagickRealType GetPixelInfoChannel( + const PixelInfo *magick_restrict pixel_info,const PixelChannel channel) +{ + switch (channel) + { + case RedPixelChannel: return(pixel_info->red); + case GreenPixelChannel: return(pixel_info->green); + case BluePixelChannel: return(pixel_info->blue); + case BlackPixelChannel: + { + if (pixel_info->colorspace != CMYKColorspace) + return(0.0); + return(pixel_info->black); + } + case AlphaPixelChannel: + { + if (pixel_info->alpha_trait == UndefinedPixelTrait) + return(OpaqueAlpha); + return(pixel_info->alpha); + } + case IndexPixelChannel: return(pixel_info->index); + default: return((MagickRealType) 0.0); + } +} + +static inline double PerceptibleReciprocal(const double x) +{ + double + sign; + + /* + Return 1/x where x is perceptible (not unlimited or infinitesimal). + */ + sign=x < 0.0 ? -1.0 : 1.0; + if ((sign*x) >= MagickEpsilon) + return(1.0/x); + return(sign/MagickEpsilon); +} + +static inline MagickRealType GetPixelInfoLuma( + const PixelInfo *magick_restrict pixel) +{ + MagickRealType + intensity; + + if (pixel->colorspace == sRGBColorspace) + { + intensity=(MagickRealType) (0.212656f*pixel->red+0.715158f*pixel->green+ + 0.072186f*pixel->blue); + return(intensity); + } + intensity=(MagickRealType) (0.212656f*EncodePixelGamma(pixel->red)+ + 0.715158f*EncodePixelGamma(pixel->green)+ + 0.072186f*EncodePixelGamma(pixel->blue)); + return(intensity); +} + +static inline MagickRealType GetPixelInfoLuminance( + const PixelInfo *magick_restrict pixel) +{ + MagickRealType + intensity; + + if (pixel->colorspace != sRGBColorspace) + { + intensity=(MagickRealType) (0.212656f*pixel->red+0.715158f*pixel->green+ + 0.072186f*pixel->blue); + return(intensity); + } + intensity=(MagickRealType) (0.212656f*DecodePixelGamma(pixel->red)+ + 0.715158f*DecodePixelGamma(pixel->green)+ + 0.072186f*DecodePixelGamma(pixel->blue)); + return(intensity); +} + +static inline Quantum GetPixelL(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[LPixelChannel].offset]); +} + +static inline ssize_t GetPixelLabel(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return((ssize_t) pixel[image->channel_map[LabelPixelChannel].offset]); +} + +static inline MagickRealType GetPixelLuma( + const Image *magick_restrict image,const Quantum *magick_restrict pixel) +{ + MagickRealType + intensity; + + intensity= + 0.212656f*(MagickRealType) pixel[image->channel_map[RedPixelChannel].offset]+ + 0.715158f*(MagickRealType) pixel[image->channel_map[GreenPixelChannel].offset]+ + 0.072186f*(MagickRealType) pixel[image->channel_map[BluePixelChannel].offset]; + return(intensity); +} + +static inline MagickRealType GetPixelLuminance( + const Image *magick_restrict image,const Quantum *magick_restrict pixel) +{ + MagickRealType + intensity; + + if (image->colorspace != sRGBColorspace) + { + intensity= + 0.212656f*(MagickRealType) pixel[image->channel_map[RedPixelChannel].offset]+ + 0.715158f*(MagickRealType) pixel[image->channel_map[GreenPixelChannel].offset]+ + 0.072186f*(MagickRealType) pixel[image->channel_map[BluePixelChannel].offset]; + return(intensity); + } + intensity=(MagickRealType) (0.212656f*DecodePixelGamma((MagickRealType) + pixel[image->channel_map[RedPixelChannel].offset])+0.715158f* + DecodePixelGamma((MagickRealType) + pixel[image->channel_map[GreenPixelChannel].offset])+0.072186f* + DecodePixelGamma((MagickRealType) + pixel[image->channel_map[BluePixelChannel].offset])); + return(intensity); +} + +static inline Quantum GetPixelMagenta(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[MagentaPixelChannel].offset]); +} + +static inline PixelTrait GetPixelMagentaTraits( + const Image *magick_restrict image) +{ + return(image->channel_map[MagentaPixelChannel].traits); +} + +static inline Quantum GetPixelMeta(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + if (image->channel_map[MetaPixelChannels].traits == UndefinedPixelTrait) + return(OpaqueAlpha); + return(pixel[image->channel_map[MetaPixelChannels].offset]); +} + +static inline PixelTrait GetPixelMetaTraits(const Image *magick_restrict image) +{ + return(image->channel_map[MetaPixelChannels].traits); +} + +static inline Quantum GetPixelReadMask(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + if (image->channel_map[ReadMaskPixelChannel].traits == UndefinedPixelTrait) + return((Quantum) QuantumRange); + return(pixel[image->channel_map[ReadMaskPixelChannel].offset]); +} + +static inline void GetPixelInfoRGBA(const Quantum red,const Quantum green, + const Quantum blue,const Quantum alpha,PixelInfo *magick_restrict pixel) +{ + GetPixelInfo((Image *) NULL,pixel); + pixel->red=red; + pixel->green=green; + pixel->blue=blue; + pixel->alpha=alpha; +} + +static inline Quantum GetPixelWriteMask( + const Image *magick_restrict image,const Quantum *magick_restrict pixel) +{ + if (image->channel_map[WriteMaskPixelChannel].traits == UndefinedPixelTrait) + return((Quantum) QuantumRange); + return(pixel[image->channel_map[WriteMaskPixelChannel].offset]); +} + +static inline PixelTrait GetPixelReadMaskTraits( + const Image *magick_restrict image) +{ + return(image->channel_map[ReadMaskPixelChannel].traits); +} + +static inline size_t GetPixelMetaChannels(const Image *magick_restrict image) +{ + return(image->number_meta_channels); +} + +static inline size_t GetPixelMetacontentExtent( + const Image *magick_restrict image) +{ + return(image->metacontent_extent); +} + +static inline Quantum GetPixelOpacity(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + if (image->channel_map[AlphaPixelChannel].traits != BlendPixelTrait) + return(QuantumRange-OpaqueAlpha); + return(QuantumRange-pixel[image->channel_map[AlphaPixelChannel].offset]); +} + +static inline Quantum GetPixelRed(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[RedPixelChannel].offset]); +} + +static inline PixelTrait GetPixelRedTraits(const Image *magick_restrict image) +{ + return(image->channel_map[RedPixelChannel].traits); +} + +static inline void GetPixelInfoPixel(const Image *magick_restrict image, + const Quantum *magick_restrict pixel,PixelInfo *magick_restrict pixel_info) +{ + (void) ResetMagickMemory(pixel_info,0,sizeof(*pixel_info)); + pixel_info->storage_class=DirectClass; + pixel_info->colorspace=sRGBColorspace; + pixel_info->depth=MAGICKCORE_QUANTUM_DEPTH; + pixel_info->alpha_trait=UndefinedPixelTrait; + pixel_info->alpha=(MagickRealType) OpaqueAlpha; + if (image != (Image *) NULL) + { + pixel_info->storage_class=image->storage_class; + pixel_info->colorspace=image->colorspace; + pixel_info->fuzz=image->fuzz; + pixel_info->depth=image->depth; + pixel_info->alpha_trait=image->alpha_trait; + if (pixel != (Quantum *) NULL) + { + pixel_info->red=(MagickRealType) + pixel[image->channel_map[RedPixelChannel].offset]; + pixel_info->green=(MagickRealType) + pixel[image->channel_map[GreenPixelChannel].offset]; + pixel_info->blue=(MagickRealType) + pixel[image->channel_map[BluePixelChannel].offset]; + if (image->channel_map[BlackPixelChannel].traits != UndefinedPixelTrait) + pixel_info->black=(MagickRealType) + pixel[image->channel_map[BlackPixelChannel].offset]; + if (image->channel_map[AlphaPixelChannel].traits != UndefinedPixelTrait) + pixel_info->alpha=(MagickRealType) + pixel[image->channel_map[AlphaPixelChannel].offset]; + if (image->channel_map[IndexPixelChannel].traits != UndefinedPixelTrait) + pixel_info->index=(MagickRealType) + pixel[image->channel_map[IndexPixelChannel].offset]; + } + } +} + +static inline PixelTrait GetPixelTraits(const Image *magick_restrict image, + const PixelChannel channel) +{ + if (((ssize_t) channel < 0) || ((ssize_t) channel >= MaxPixelChannels)) + return(UndefinedPixelTrait); + return(image->channel_map[channel].traits); +} + +static inline PixelTrait GetPixelWriteMaskTraits( + const Image *magick_restrict image) +{ + return(image->channel_map[WriteMaskPixelChannel].traits); +} + +static inline Quantum GetPixelY(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[YPixelChannel].offset]); +} + +static inline PixelTrait GetPixelYTraits(const Image *magick_restrict image) +{ + return(image->channel_map[YPixelChannel].traits); +} + +static inline Quantum GetPixelYellow(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + return(pixel[image->channel_map[YellowPixelChannel].offset]); +} + +static inline PixelTrait GetPixelYellowTraits( + const Image *magick_restrict image) +{ + return(image->channel_map[YellowPixelChannel].traits); +} + +static inline MagickRealType AbsolutePixelValue(const MagickRealType x) +{ + return(x < 0.0f ? -x : x); +} + +static inline MagickBooleanType IsPixelAtDepth(const Quantum pixel, + const QuantumAny range) +{ + Quantum + quantum; + + if (range == 0) + return(MagickTrue); +#if !defined(MAGICKCORE_HDRI_SUPPORT) + quantum=(Quantum) (((MagickRealType) QuantumRange*((QuantumAny) + (((MagickRealType) range*pixel)/QuantumRange+0.5)))/range+0.5); +#else + quantum=(Quantum) (((MagickRealType) QuantumRange*((QuantumAny) + (((MagickRealType) range*pixel)/QuantumRange+0.5)))/(MagickRealType) range); +#endif + return(pixel == quantum ? MagickTrue : MagickFalse); +} + +static inline MagickBooleanType IsPixelEquivalent( + const Image *magick_restrict image,const Quantum *magick_restrict p, + const PixelInfo *magick_restrict q) +{ + MagickRealType + alpha, + beta, + color; + + color=(MagickRealType) p[image->channel_map[AlphaPixelChannel].offset]; + alpha=image->alpha_trait == UndefinedPixelTrait ? (MagickRealType) + OpaqueAlpha : color; + beta=q->alpha_trait == UndefinedPixelTrait ? (MagickRealType) OpaqueAlpha : + q->alpha; + if (AbsolutePixelValue(alpha-beta) >= MagickEpsilon) + return(MagickFalse); + if ((AbsolutePixelValue(alpha-TransparentAlpha) < MagickEpsilon) || + (AbsolutePixelValue(beta-TransparentAlpha) < MagickEpsilon)) + return(MagickTrue); /* no color component if pixel is transparent */ + color=(MagickRealType) p[image->channel_map[RedPixelChannel].offset]; + if (AbsolutePixelValue(color-q->red) >= MagickEpsilon) + return(MagickFalse); + color=(MagickRealType) p[image->channel_map[GreenPixelChannel].offset]; + if (AbsolutePixelValue(color-q->green) >= MagickEpsilon) + return(MagickFalse); + color=(MagickRealType) p[image->channel_map[BluePixelChannel].offset]; + if (AbsolutePixelValue(color-q->blue) >= MagickEpsilon) + return(MagickFalse); + if (image->colorspace == CMYKColorspace) + { + color=(MagickRealType) p[image->channel_map[BlackPixelChannel].offset]; + if (AbsolutePixelValue(color-q->black) >= MagickEpsilon) + return(MagickFalse); + } + return(MagickTrue); +} + +static inline MagickBooleanType IsPixelGray(const Image *magick_restrict image, + const Quantum *magick_restrict pixel) +{ + MagickRealType + green_blue, + red_green; + + red_green=(MagickRealType) pixel[image->channel_map[RedPixelChannel].offset]- + pixel[image->channel_map[GreenPixelChannel].offset]; + green_blue=(MagickRealType) + pixel[image->channel_map[GreenPixelChannel].offset]- + pixel[image->channel_map[BluePixelChannel].offset]; + if ((AbsolutePixelValue(red_green) < MagickEpsilon) && + (AbsolutePixelValue(green_blue) < MagickEpsilon)) + return(MagickTrue); + return(MagickFalse); +} + +static inline MagickBooleanType IsPixelInfoEquivalent( + const PixelInfo *magick_restrict p,const PixelInfo *magick_restrict q) +{ + MagickRealType + alpha, + beta; + + alpha=p->alpha_trait == UndefinedPixelTrait ? (MagickRealType) OpaqueAlpha : + p->alpha; + beta=q->alpha_trait == UndefinedPixelTrait ? (MagickRealType) OpaqueAlpha : + q->alpha; + if (AbsolutePixelValue(alpha-beta) >= MagickEpsilon) + return(MagickFalse); + if ((AbsolutePixelValue(alpha-TransparentAlpha) < MagickEpsilon) || + (AbsolutePixelValue(beta-TransparentAlpha) < MagickEpsilon)) + return(MagickTrue); /* no color component if pixel is transparent */ + if (AbsolutePixelValue(p->red-q->red) >= MagickEpsilon) + return(MagickFalse); + if (AbsolutePixelValue(p->green-q->green) >= MagickEpsilon) + return(MagickFalse); + if (AbsolutePixelValue(p->blue-q->blue) >= MagickEpsilon) + return(MagickFalse); + if (p->colorspace == CMYKColorspace) + { + if (AbsolutePixelValue(p->black-q->black) >= MagickEpsilon) + return(MagickFalse); + } + return(MagickTrue); +} + +static inline MagickBooleanType IsPixelMonochrome( + const Image *magick_restrict image,const Quantum *magick_restrict pixel) +{ + MagickRealType + green_blue, + red, + red_green; + + red=(MagickRealType) pixel[image->channel_map[RedPixelChannel].offset]; + if ((AbsolutePixelValue(red) >= MagickEpsilon) && + (AbsolutePixelValue(red-QuantumRange) >= MagickEpsilon)) + return(MagickFalse); + red_green=(MagickRealType) pixel[image->channel_map[RedPixelChannel].offset]- + pixel[image->channel_map[GreenPixelChannel].offset]; + green_blue=(MagickRealType) + pixel[image->channel_map[GreenPixelChannel].offset]- + pixel[image->channel_map[BluePixelChannel].offset]; + if ((AbsolutePixelValue(red_green) < MagickEpsilon) && + (AbsolutePixelValue(green_blue) < MagickEpsilon)) + return(MagickTrue); + return(MagickFalse); +} + +static inline MagickBooleanType IsPixelInfoGray( + const PixelInfo *magick_restrict pixel) +{ + if ((AbsolutePixelValue(pixel->red-pixel->green) < MagickEpsilon) && + (AbsolutePixelValue(pixel->green-pixel->blue) < MagickEpsilon)) + return(MagickTrue); + return(MagickFalse); +} + +static inline MagickBooleanType IsPixelInfoMonochrome( + const PixelInfo *magick_restrict pixel_info) +{ + MagickRealType + green_blue, + red_green; + + if ((AbsolutePixelValue(pixel_info->red) >= MagickEpsilon) || + (AbsolutePixelValue(pixel_info->red-QuantumRange) >= MagickEpsilon)) + return(MagickFalse); + red_green=pixel_info->red-pixel_info->green; + green_blue=pixel_info->green-pixel_info->blue; + if ((AbsolutePixelValue(red_green) < MagickEpsilon) && + (AbsolutePixelValue(green_blue) < MagickEpsilon)) + return(MagickTrue); + return(MagickFalse); +} + +static inline void SetPixela(const Image *magick_restrict image, + const Quantum a,Quantum *magick_restrict pixel) +{ + if (image->channel_map[aPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[aPixelChannel].offset]=a; +} + +static inline void SetPixelAlpha(const Image *magick_restrict image, + const Quantum alpha,Quantum *magick_restrict pixel) +{ + if (image->channel_map[AlphaPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[AlphaPixelChannel].offset]=alpha; +} + +static inline void SetPixelAlphaTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[AlphaPixelChannel].traits=traits; +} + +static inline void SetPixelb(const Image *magick_restrict image, + const Quantum b,Quantum *magick_restrict pixel) +{ + if (image->channel_map[bPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[bPixelChannel].offset]=b; +} + +static inline void SetPixelBackgroundColor(const Image *magick_restrict image, + Quantum *magick_restrict pixel) +{ + ssize_t + i; + + for (i=0; i < (ssize_t) GetPixelChannels(image); i++) + pixel[i]=(Quantum) 0; + pixel[image->channel_map[RedPixelChannel].offset]= + ClampToQuantum(image->background_color.red); + pixel[image->channel_map[GreenPixelChannel].offset]= + ClampToQuantum(image->background_color.green); + pixel[image->channel_map[BluePixelChannel].offset]= + ClampToQuantum(image->background_color.blue); + if (image->channel_map[BlackPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[BlackPixelChannel].offset]= + ClampToQuantum(image->background_color.black); + if (image->channel_map[AlphaPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[AlphaPixelChannel].offset]= + image->background_color.alpha_trait == UndefinedPixelTrait ? OpaqueAlpha : + ClampToQuantum(image->background_color.alpha); +} + +static inline void SetPixelBackgoundColor(const Image *magick_restrict image, + Quantum *magick_restrict pixel) magick_attribute((deprecated)); + +static inline void SetPixelBackgoundColor(const Image *magick_restrict image, + Quantum *magick_restrict pixel) +{ + SetPixelBackgroundColor(image,pixel); +} + +static inline void SetPixelBlack(const Image *magick_restrict image, + const Quantum black,Quantum *magick_restrict pixel) +{ + if (image->channel_map[BlackPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[BlackPixelChannel].offset]=black; +} + +static inline void SetPixelBlackTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[BlackPixelChannel].traits=traits; +} + +static inline void SetPixelBlue(const Image *magick_restrict image, + const Quantum blue,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[BluePixelChannel].offset]=blue; +} + +static inline void SetPixelBlueTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[BluePixelChannel].traits=traits; +} + +static inline void SetPixelCb(const Image *magick_restrict image, + const Quantum cb,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[CbPixelChannel].offset]=cb; +} + +static inline void SetPixelCbTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[CbPixelChannel].traits=traits; +} + +static inline void SetPixelChannel(const Image *magick_restrict image, + const PixelChannel channel,const Quantum quantum, + Quantum *magick_restrict pixel) +{ + if (((ssize_t) channel < 0) || ((ssize_t) channel >= MaxPixelChannels)) + return; + if (image->channel_map[channel].traits != UndefinedPixelTrait) + pixel[image->channel_map[channel].offset]=quantum; +} + +static inline void SetPixelChannelAttributes( + const Image *magick_restrict image,const PixelChannel channel, + const PixelTrait traits,const ssize_t offset) +{ + if (((ssize_t) offset < 0) || ((ssize_t) offset >= MaxPixelChannels)) + return; + if (((ssize_t) channel < 0) || ((ssize_t) channel >= MaxPixelChannels)) + return; + image->channel_map[offset].channel=channel; + image->channel_map[channel].offset=offset; + image->channel_map[channel].traits=traits; +} + +static inline void SetPixelChannelChannel(const Image *magick_restrict image, + const PixelChannel channel,const ssize_t offset) +{ + if (((ssize_t) offset < 0) || ((ssize_t) offset >= MaxPixelChannels)) + return; + if (((ssize_t) channel < 0) || ((ssize_t) channel >= MaxPixelChannels)) + return; + image->channel_map[offset].channel=channel; + image->channel_map[channel].offset=offset; +} + +static inline void SetPixelChannels(Image *image,const size_t number_channels) +{ + image->number_channels=number_channels; +} + +static inline void SetPixelChannelTraits(Image *image, + const PixelChannel channel,const PixelTrait traits) +{ + if (((ssize_t) channel < 0) || ((ssize_t) channel >= MaxPixelChannels)) + return; + image->channel_map[channel].traits=traits; +} + +static inline void SetPixelCompositeMask(const Image *magick_restrict image, + const Quantum mask,Quantum *magick_restrict pixel) +{ + if (image->channel_map[CompositeMaskPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[CompositeMaskPixelChannel].offset]=mask; +} + +static inline void SetPixelCr(const Image *magick_restrict image, + const Quantum cr,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[CrPixelChannel].offset]=cr; +} + +static inline void SetPixelCrTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[CrPixelChannel].traits=traits; +} + +static inline void SetPixelCyan(const Image *magick_restrict image, + const Quantum cyan,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[CyanPixelChannel].offset]=cyan; +} + +static inline void SetPixelGray(const Image *magick_restrict image, + const Quantum gray,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[GrayPixelChannel].offset]=gray; +} + +static inline void SetPixelGrayTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[GrayPixelChannel].traits=traits; +} + +static inline void SetPixelGreen(const Image *magick_restrict image, + const Quantum green,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[GreenPixelChannel].offset]=green; +} + +static inline void SetPixelGreenTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[GreenPixelChannel].traits=traits; +} + +static inline void SetPixelIndex(const Image *magick_restrict image, + const Quantum index,Quantum *magick_restrict pixel) +{ + if (image->channel_map[IndexPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[IndexPixelChannel].offset]=index; +} + +static inline void SetPixelIndexTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[IndexPixelChannel].traits=traits; +} + +static inline void SetPixelViaPixelInfo(const Image *magick_restrict image, + const PixelInfo *magick_restrict pixel_info,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[RedPixelChannel].offset]= + ClampToQuantum(pixel_info->red); + pixel[image->channel_map[GreenPixelChannel].offset]= + ClampToQuantum(pixel_info->green); + pixel[image->channel_map[BluePixelChannel].offset]= + ClampToQuantum(pixel_info->blue); + if (image->channel_map[BlackPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[BlackPixelChannel].offset]= + ClampToQuantum(pixel_info->black); + if (image->channel_map[AlphaPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[AlphaPixelChannel].offset]= + pixel_info->alpha_trait == UndefinedPixelTrait ? OpaqueAlpha : + ClampToQuantum(pixel_info->alpha); +} + +static inline void SetPixelL(const Image *magick_restrict image,const Quantum L, + Quantum *magick_restrict pixel) +{ + if (image->channel_map[LPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[LPixelChannel].offset]=L; +} + +static inline void SetPixelMagenta(const Image *magick_restrict image, + const Quantum magenta,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[MagentaPixelChannel].offset]=magenta; +} + +static inline void SetPixelMagentaTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[MagentaPixelChannel].traits=traits; +} + +static inline void SetPixelMeta(const Image *magick_restrict image, + const Quantum red,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[MetaPixelChannels].offset]=red; +} + +static inline void SetPixelMetaTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[MetaPixelChannels].traits=traits; +} + +static inline void SetPixelReadMask(const Image *magick_restrict image, + const Quantum mask,Quantum *magick_restrict pixel) +{ + if (image->channel_map[ReadMaskPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[ReadMaskPixelChannel].offset]=mask; +} + +static inline void SetPixelMetacontentExtent(Image *image,const size_t extent) +{ + image->metacontent_extent=extent; +} + +static inline void SetPixelOpacity(const Image *magick_restrict image, + const Quantum alpha,Quantum *magick_restrict pixel) +{ + if (image->channel_map[AlphaPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[AlphaPixelChannel].offset]=QuantumRange-alpha; +} + +static inline void SetPixelRed(const Image *magick_restrict image, + const Quantum red,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[RedPixelChannel].offset]=red; +} + +static inline void SetPixelRedTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[RedPixelChannel].traits=traits; +} + +static inline void SetPixelWriteMask(const Image *magick_restrict image, + const Quantum mask,Quantum *magick_restrict pixel) +{ + if (image->channel_map[WriteMaskPixelChannel].traits != UndefinedPixelTrait) + pixel[image->channel_map[WriteMaskPixelChannel].offset]=mask; +} + +static inline void SetPixelYellow(const Image *magick_restrict image, + const Quantum yellow,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[YellowPixelChannel].offset]=yellow; +} + +static inline void SetPixelYellowTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[YellowPixelChannel].traits=traits; +} + +static inline void SetPixelY(const Image *magick_restrict image, + const Quantum y,Quantum *magick_restrict pixel) +{ + pixel[image->channel_map[YPixelChannel].offset]=y; +} + +static inline void SetPixelYTraits(Image *image,const PixelTrait traits) +{ + image->channel_map[YPixelChannel].traits=traits; +} + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/signature.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/signature.h new file mode 100644 index 0000000000000000000000000000000000000000..5209f5d305f26b6ff214100aa3db4b28afc993d6 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/signature.h @@ -0,0 +1,32 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore digital signature methods. +*/ +#ifndef MAGICKCORE_SIGNATURE_H +#define MAGICKCORE_SIGNATURE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern MagickExport MagickBooleanType + SignatureImage(Image *,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/static.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/static.h new file mode 100644 index 0000000000000000000000000000000000000000..fbba45dee2c37ee115f1e335cbfe01a9bb8441bf --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/static.h @@ -0,0 +1,319 @@ +/* + Copyright @ 2000 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore static coder registration methods. +*/ +#ifndef MAGICKCORE_STATIC_H +#define MAGICKCORE_STATIC_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern MagickExport MagickBooleanType + InvokeStaticImageFilter(const char *,Image **,const int,const char **, + ExceptionInfo *), + RegisterStaticModule(const char *,ExceptionInfo *exception), + UnregisterStaticModule(const char *); + +extern MagickExport void + RegisterStaticModules(void), + UnregisterStaticModules(void); + +extern ModuleExport size_t + RegisterAAIImage(void), + RegisterARTImage(void), + RegisterASHLARImage(void), + RegisterAVSImage(void), + RegisterBAYERImage(void), + RegisterBGRImage(void), + RegisterBMPImage(void), + RegisterBRAILLEImage(void), + RegisterCALSImage(void), + RegisterCAPTIONImage(void), + RegisterCINImage(void), + RegisterCIPImage(void), + RegisterCLIPImage(void), + RegisterCLIPBOARDImage(void), + RegisterCMYKImage(void), + RegisterCUBEImage(void), + RegisterCUTImage(void), + RegisterDCMImage(void), + RegisterDDSImage(void), + RegisterDEBUGImage(void), + RegisterDIBImage(void), + RegisterDJVUImage(void), + RegisterDNGImage(void), + RegisterDPSImage(void), + RegisterDPXImage(void), + RegisterEMFImage(void), + RegisterEPTImage(void), + RegisterEXRImage(void), + RegisterFARBFELDImage(void), + RegisterFAXImage(void), + RegisterFITSImage(void), + RegisterFL32Image(void), + RegisterFLIFImage(void), + RegisterFPXImage(void), + RegisterFTXTImage(void), + RegisterGIFImage(void), + RegisterGRADIENTImage(void), + RegisterGRAYImage(void), + RegisterHALDImage(void), + RegisterHDRImage(void), + RegisterHEICImage(void), + RegisterHISTOGRAMImage(void), + RegisterHRZImage(void), + RegisterHTMLImage(void), + RegisterICONImage(void), + RegisterINFOImage(void), + RegisterINLINEImage(void), + RegisterIPLImage(void), + RegisterJBIGImage(void), + RegisterJNXImage(void), + RegisterJPEGImage(void), + RegisterJSONImage(void), + RegisterJP2Image(void), + RegisterJXLImage(void), + RegisterLABELImage(void), + RegisterMACImage(void), + RegisterMAGICKImage(void), + RegisterMAPImage(void), + RegisterMASKImage(void), + RegisterMATImage(void), + RegisterMATTEImage(void), + RegisterMETAImage(void), + RegisterMIFFImage(void), + RegisterMONOImage(void), + RegisterMPCImage(void), + RegisterMPRImage(void), + RegisterMSLImage(void), + RegisterMTVImage(void), + RegisterMVGImage(void), + RegisterNULLImage(void), + RegisterORAImage(void), + RegisterOTBImage(void), + RegisterPALMImage(void), + RegisterPANGOImage(void), + RegisterPATTERNImage(void), + RegisterPCDImage(void), + RegisterPCLImage(void), + RegisterPCXImage(void), + RegisterPDBImage(void), + RegisterPDFImage(void), + RegisterPESImage(void), + RegisterPGXImage(void), + RegisterPICTImage(void), + RegisterPIXImage(void), + RegisterPLASMAImage(void), + RegisterPNGImage(void), + RegisterPNMImage(void), + RegisterPSImage(void), + RegisterPS2Image(void), + RegisterPS3Image(void), + RegisterPSDImage(void), + RegisterPWPImage(void), + RegisterQOIImage(void), + RegisterRAWImage(void), + RegisterRGBImage(void), + RegisterRGFImage(void), + RegisterRLAImage(void), + RegisterRLEImage(void), + RegisterSCRImage(void), + RegisterSCREENSHOTImage(void), + RegisterSCTImage(void), + RegisterSFWImage(void), + RegisterSGIImage(void), + RegisterSIXELImage(void), + RegisterSTEGANOImage(void), + RegisterSTRIMGImage(void), + RegisterSUNImage(void), + RegisterSVGImage(void), + RegisterTGAImage(void), + RegisterTHUMBNAILImage(void), + RegisterTIFFImage(void), + RegisterTILEImage(void), + RegisterTIMImage(void), + RegisterTIM2Image(void), + RegisterTTFImage(void), + RegisterTXTImage(void), + RegisterUILImage(void), + RegisterURLImage(void), + RegisterUYVYImage(void), + RegisterVICARImage(void), + RegisterVIDImage(void), + RegisterVIDEOImage(void), + RegisterVIFFImage(void), + RegisterVIPSImage(void), + RegisterWBMPImage(void), + RegisterWEBPImage(void), + RegisterWMFImage(void), + RegisterWPGImage(void), + RegisterXImage(void), + RegisterXBMImage(void), + RegisterXCImage(void), + RegisterXCFImage(void), + RegisterXPMImage(void), + RegisterXPSImage(void), + RegisterXWDImage(void), + RegisterYAMLImage(void), + RegisterYCBCRImage(void), + RegisterYUVImage(void); + +extern ModuleExport void + UnregisterAAIImage(void), + UnregisterARTImage(void), + UnregisterASHLARImage(void), + UnregisterAVSImage(void), + UnregisterBAYERImage(void), + UnregisterBGRImage(void), + UnregisterBMPImage(void), + UnregisterBRAILLEImage(void), + UnregisterCALSImage(void), + UnregisterCAPTIONImage(void), + UnregisterCINImage(void), + UnregisterCIPImage(void), + UnregisterCLIPImage(void), + UnregisterCLIPBOARDImage(void), + UnregisterCMYKImage(void), + UnregisterCUBEImage(void), + UnregisterCUTImage(void), + UnregisterDCMImage(void), + UnregisterDDSImage(void), + UnregisterDEBUGImage(void), + UnregisterDIBImage(void), + UnregisterDJVUImage(void), + UnregisterDNGImage(void), + UnregisterDPSImage(void), + UnregisterDPXImage(void), + UnregisterEMFImage(void), + UnregisterEPTImage(void), + UnregisterEXRImage(void), + UnregisterFARBFELDImage(void), + UnregisterFAXImage(void), + UnregisterFITSImage(void), + UnregisterFL32Image(void), + UnregisterFLIFImage(void), + UnregisterFPXImage(void), + UnregisterFTXTImage(void), + UnregisterGIFImage(void), + UnregisterGRADIENTImage(void), + UnregisterGRAYImage(void), + UnregisterHALDImage(void), + UnregisterHDRImage(void), + UnregisterHEICImage(void), + UnregisterHISTOGRAMImage(void), + UnregisterHRZImage(void), + UnregisterHTMLImage(void), + UnregisterICONImage(void), + UnregisterINFOImage(void), + UnregisterINLINEImage(void), + UnregisterIPLImage(void), + UnregisterJBIGImage(void), + UnregisterJNXImage(void), + UnregisterJPEGImage(void), + UnregisterJP2Image(void), + UnregisterJSONImage(void), + UnregisterJXLImage(void), + UnregisterLABELImage(void), + UnregisterMACImage(void), + UnregisterMAGICKImage(void), + UnregisterMAPImage(void), + UnregisterMASKImage(void), + UnregisterMATImage(void), + UnregisterMATTEImage(void), + UnregisterMETAImage(void), + UnregisterMIFFImage(void), + UnregisterMONOImage(void), + UnregisterMPCImage(void), + UnregisterMPRImage(void), + UnregisterMSLImage(void), + UnregisterMTVImage(void), + UnregisterMVGImage(void), + UnregisterNULLImage(void), + UnregisterORAImage(void), + UnregisterOTBImage(void), + UnregisterPALMImage(void), + UnregisterPANGOImage(void), + UnregisterPATTERNImage(void), + UnregisterPCDImage(void), + UnregisterPCLImage(void), + UnregisterPCXImage(void), + UnregisterPDBImage(void), + UnregisterPDFImage(void), + UnregisterPESImage(void), + UnregisterPGXImage(void), + UnregisterPICTImage(void), + UnregisterPIXImage(void), + UnregisterPLASMAImage(void), + UnregisterPNGImage(void), + UnregisterPNMImage(void), + UnregisterPSImage(void), + UnregisterPS2Image(void), + UnregisterPS3Image(void), + UnregisterPSDImage(void), + UnregisterPWPImage(void), + UnregisterQOIImage(void), + UnregisterRAWImage(void), + UnregisterRGBImage(void), + UnregisterRGFImage(void), + UnregisterRLAImage(void), + UnregisterRLEImage(void), + UnregisterSCRImage(void), + UnregisterSCREENSHOTImage(void), + UnregisterSCTImage(void), + UnregisterSFWImage(void), + UnregisterSGIImage(void), + UnregisterSIXELImage(void), + UnregisterSTEGANOImage(void), + UnregisterSTRIMGImage(void), + UnregisterSUNImage(void), + UnregisterSVGImage(void), + UnregisterTGAImage(void), + UnregisterTHUMBNAILImage(void), + UnregisterTIFFImage(void), + UnregisterTILEImage(void), + UnregisterTIMImage(void), + UnregisterTIM2Image(void), + UnregisterTTFImage(void), + UnregisterTXTImage(void), + UnregisterUILImage(void), + UnregisterURLImage(void), + UnregisterUYVYImage(void), + UnregisterVICARImage(void), + UnregisterVIDImage(void), + UnregisterVIDEOImage(void), + UnregisterVIFFImage(void), + UnregisterVIPSImage(void), + UnregisterWBMPImage(void), + UnregisterWEBPImage(void), + UnregisterWMFImage(void), + UnregisterWPGImage(void), + UnregisterXImage(void), + UnregisterXBMImage(void), + UnregisterXCImage(void), + UnregisterXCFImage(void), + UnregisterXPMImage(void), + UnregisterXPSImage(void), + UnregisterXWDImage(void), + UnregisterYAMLImage(void), + UnregisterYCBCRImage(void), + UnregisterYUVImage(void); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/stream.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/stream.h new file mode 100644 index 0000000000000000000000000000000000000000..f4f8261cc3376ead5549a268b45318fb53407221 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/stream.h @@ -0,0 +1,53 @@ +/* + Copyright @ 2000 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore image stream methods. +*/ +#ifndef MAGICKCORE_STREAM_H +#define MAGICKCORE_STREAM_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +#include "MagickCore/pixel.h" + +typedef struct _StreamInfo + StreamInfo; + +typedef size_t + (*StreamHandler)(const Image *,const void *,const size_t); + +extern MagickExport Image + *ReadStream(const ImageInfo *,StreamHandler,ExceptionInfo *), + *StreamImage(const ImageInfo *,StreamInfo *,ExceptionInfo *); + +extern MagickExport MagickBooleanType + OpenStream(const ImageInfo *,StreamInfo *,const char *,ExceptionInfo *), + WriteStream(const ImageInfo *,Image *,StreamHandler,ExceptionInfo *); + +extern MagickExport StreamInfo + *AcquireStreamInfo(const ImageInfo *,ExceptionInfo *), + *DestroyStreamInfo(StreamInfo *); + +extern MagickExport void + SetStreamInfoMap(StreamInfo *,const char *), + SetStreamInfoStorageType(StreamInfo *,const StorageType); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/token.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/token.h new file mode 100644 index 0000000000000000000000000000000000000000..da861cfe2d45133a61d0740d92ace7fc42e6a6ee --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/token.h @@ -0,0 +1,51 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore token methods. +*/ +#ifndef MAGICKCORE_TOKEN_H +#define MAGICKCORE_TOKEN_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +/* + Typedef declarations. +*/ +typedef struct _TokenInfo + TokenInfo; + +extern MagickExport int + Tokenizer(TokenInfo *,const unsigned int,char *,const size_t,const char *, + const char *,const char *,const char *,const char,char *,int *,char *); + +extern MagickExport MagickBooleanType + GlobExpression(const char *magick_restrict,const char *magick_restrict, + const MagickBooleanType) magick_attribute((__pure__)); + +extern MagickExport size_t + GetNextToken(const char *magick_restrict,const char **magick_restrict, + const size_t,char *magick_restrict) magick_hot_spot; + +extern MagickExport TokenInfo + *AcquireTokenInfo(void), + *DestroyTokenInfo(TokenInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/transform.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/transform.h new file mode 100644 index 0000000000000000000000000000000000000000..6f9ada924a2ffbe2df0b7690c92a9b510e2b0219 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/transform.h @@ -0,0 +1,46 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore image transform methods. +*/ +#ifndef MAGICKCORE_TRANSFORM_H +#define MAGICKCORE_TRANSFORM_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern MagickExport Image + *AutoOrientImage(const Image *,const OrientationType,ExceptionInfo *), + *ChopImage(const Image *,const RectangleInfo *,ExceptionInfo *), + *ConsolidateCMYKImages(const Image *,ExceptionInfo *), + *CropImage(const Image *,const RectangleInfo *,ExceptionInfo *), + *CropImageToTiles(const Image *,const char *, ExceptionInfo *), + *ExcerptImage(const Image *,const RectangleInfo *,ExceptionInfo *), + *ExtentImage(const Image *,const RectangleInfo *,ExceptionInfo *), + *FlipImage(const Image *,ExceptionInfo *), + *FlopImage(const Image *,ExceptionInfo *), + *RollImage(const Image *,const ssize_t,const ssize_t,ExceptionInfo *), + *ShaveImage(const Image *,const RectangleInfo *,ExceptionInfo *), + *SpliceImage(const Image *,const RectangleInfo *,ExceptionInfo *), + *TransposeImage(const Image *,ExceptionInfo *), + *TransverseImage(const Image *,ExceptionInfo *), + *TrimImage(const Image *,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/type.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/type.h new file mode 100644 index 0000000000000000000000000000000000000000..8b80ea2c657de30b19952e34a478120ca23e6ac3 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/type.h @@ -0,0 +1,100 @@ +/* + Copyright @ 2001 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore image type methods. +*/ +#ifndef MAGICKCORE_TYPE_H +#define MAGICKCORE_TYPE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef enum +{ + UndefinedStretch, + NormalStretch, + UltraCondensedStretch, + ExtraCondensedStretch, + CondensedStretch, + SemiCondensedStretch, + SemiExpandedStretch, + ExpandedStretch, + ExtraExpandedStretch, + UltraExpandedStretch, + AnyStretch +} StretchType; + +typedef enum +{ + UndefinedStyle, + NormalStyle, + ItalicStyle, + ObliqueStyle, + AnyStyle, + BoldStyle /* deprecated */ +} StyleType; + +typedef struct _TypeInfo +{ + size_t + face; + + char + *path, + *name, + *description, + *family; + + StyleType + style; + + StretchType + stretch; + + size_t + weight; + + char + *encoding, + *foundry, + *format, + *metrics, + *glyphs; + + MagickBooleanType + stealth; + + size_t + signature; +} TypeInfo; + +extern MagickExport char + **GetTypeList(const char *,size_t *,ExceptionInfo *); + +extern MagickExport MagickBooleanType + ListTypeInfo(FILE *,ExceptionInfo *); + +extern MagickExport const TypeInfo + *GetTypeInfo(const char *,ExceptionInfo *), + *GetTypeInfoByFamily(const char *,const StyleType,const StretchType, + const size_t,ExceptionInfo *), + **GetTypeInfoList(const char *,size_t *,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/vision.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/vision.h new file mode 100644 index 0000000000000000000000000000000000000000..a08924a03e54d723f560d7ffb72cf63680297f57 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickCore/vision.h @@ -0,0 +1,64 @@ +/* + Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore computer vision methods. +*/ +#ifndef MAGICKCORE_VISION_H +#define MAGICKCORE_VISION_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +#define CCMaxMetrics 16 + +typedef struct _CCObjectInfo +{ + ssize_t + id; + + RectangleInfo + bounding_box; + + PixelInfo + color; + + PointInfo + centroid; + + double + area, + census; + + MagickBooleanType + merge; + + double + metric[CCMaxMetrics]; + + ssize_t + key; +} CCObjectInfo; + +extern MagickExport Image + *ConnectedComponentsImage(const Image *,const size_t,CCObjectInfo **, + ExceptionInfo *), + *IntegralImage(const Image *,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/MagickWand.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/MagickWand.h new file mode 100644 index 0000000000000000000000000000000000000000..5018e65ce9bf55ae80ca0db670251c7e7919502f --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/MagickWand.h @@ -0,0 +1,134 @@ +/* + Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand Application Programming Interface declarations. +*/ + +#ifndef MAGICKWAND_MAGICKWAND_H +#define MAGICKWAND_MAGICKWAND_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +#if !defined(MAGICKWAND_CONFIG_H) +# define MAGICKWAND_CONFIG_H +# if !defined(vms) +# include "MagickCore/magick-config.h" +# else +# include "magick-config.h" +# endif +#if defined(_magickcore_const) && !defined(const) +# define const _magickcore_const +#endif +#if defined(_magickcore_inline) && !defined(inline) +# define inline _magickcore_inline +#endif +#if !defined(magick_restrict) +# if !defined(_magickcore_restrict) +# define magick_restrict restrict +# else +# define magick_restrict _magickcore_restrict +# endif +#endif +# if defined(__cplusplus) || defined(c_plusplus) +# undef inline +# endif +#endif + +#define MAGICKWAND_CHECK_VERSION(major,minor,micro) \ + ((MAGICKWAND_MAJOR_VERSION > (major)) || \ + ((MAGICKWAND_MAJOR_VERSION == (major)) && \ + (MAGICKWAND_MINOR_VERSION > (minor))) || \ + ((MAGICKWAND_MAJOR_VERSION == (major)) && \ + (MAGICKWAND_MINOR_VERSION == (minor)) && \ + (MAGICKWAND_MICRO_VERSION >= (micro)))) + +#include +#include +#include +#include +#include +#include +#include + +#if defined(WIN32) || defined(WIN64) +# define MAGICKWAND_WINDOWS_SUPPORT +#else +# define MAGICKWAND_POSIX_SUPPORT +#endif + +typedef struct _MagickWand + MagickWand; + +#include "MagickWand/method-attribute.h" +#include "MagickCore/MagickCore.h" +#include "MagickWand/animate.h" +#include "MagickWand/compare.h" +#include "MagickWand/composite.h" +#include "MagickWand/conjure.h" +#include "MagickWand/convert.h" +#include "MagickWand/deprecate.h" +#include "MagickWand/display.h" +#include "MagickWand/drawing-wand.h" +#include "MagickWand/identify.h" +#include "MagickWand/import.h" +#include "MagickWand/wandcli.h" +#include "MagickWand/operation.h" +#include "MagickWand/magick-cli.h" +#include "MagickWand/magick-property.h" +#include "MagickWand/magick-image.h" +#include "MagickWand/mogrify.h" +#include "MagickWand/montage.h" +#include "MagickWand/pixel-iterator.h" +#include "MagickWand/pixel-wand.h" +#include "MagickWand/stream.h" +#include "MagickWand/wand-view.h" + +extern WandExport char + *MagickGetException(const MagickWand *,ExceptionType *); + +extern WandExport ExceptionType + MagickGetExceptionType(const MagickWand *); + +extern WandExport MagickBooleanType + IsMagickWand(const MagickWand *), + IsMagickWandInstantiated(void), + MagickClearException(MagickWand *), + MagickSetIteratorIndex(MagickWand *,const ssize_t); + +extern WandExport MagickWand + *CloneMagickWand(const MagickWand *), + *DestroyMagickWand(MagickWand *), + *NewMagickWand(void), + *NewMagickWandFromImage(const Image *); + +extern WandExport ssize_t + MagickGetIteratorIndex(MagickWand *); + +extern WandExport void + ClearMagickWand(MagickWand *), + MagickWandGenesis(void), + MagickWandTerminus(void), + *MagickRelinquishMemory(void *), + MagickResetIterator(MagickWand *), + MagickSetFirstIterator(MagickWand *), + MagickSetLastIterator(MagickWand *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/animate.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/animate.h new file mode 100644 index 0000000000000000000000000000000000000000..b78225eb6d1572804d5380ab3839ee4f6898ed35 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/animate.h @@ -0,0 +1,32 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand animate command-line methods. +*/ +#ifndef MAGICKWAND_ANIMATE_H +#define MAGICKWAND_ANIMATE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + AnimateImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/compare.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/compare.h new file mode 100644 index 0000000000000000000000000000000000000000..7aae6364ec3275220611cd5f2a3796c0301ca0ab --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/compare.h @@ -0,0 +1,32 @@ +/* + Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand compare command-line method. +*/ +#ifndef MAGICKWAND_COMPARE_H +#define MAGICKWAND_COMPARE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + CompareImagesCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/composite.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/composite.h new file mode 100644 index 0000000000000000000000000000000000000000..3895c26dad0dbc8118709de471d4232cca8cca01 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/composite.h @@ -0,0 +1,32 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand composite command-line method. +*/ +#ifndef MAGICKWAND_COMPOSITE_H +#define MAGICKWAND_COMPOSITE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + CompositeImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/conjure.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/conjure.h new file mode 100644 index 0000000000000000000000000000000000000000..f11c94b619d1adb56b19c694ff7088fadb8c50a8 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/conjure.h @@ -0,0 +1,32 @@ +/* + Copyright @ 2001 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand conjure command-line method. +*/ +#ifndef MAGICKWAND_CONJURE_H +#define MAGICKWAND_CONJURE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + ConjureImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/convert.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/convert.h new file mode 100644 index 0000000000000000000000000000000000000000..b4e17de6a55aca9d2227679ea9b52537a0d371c4 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/convert.h @@ -0,0 +1,32 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand convert command-line method. +*/ +#ifndef MAGICKWAND_CONVERT_H +#define MAGICKWAND_CONVERT_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + ConvertImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/deprecate.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/deprecate.h new file mode 100644 index 0000000000000000000000000000000000000000..2ba3e44672b2414b39345ffe843b19c14697fe31 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/deprecate.h @@ -0,0 +1,39 @@ +/* + Copyright @ 2002 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickCore deprecated methods. +*/ +#ifndef MAGICKWAND_DEPRECATE_H +#define MAGICKWAND_DEPRECATE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +#include "MagickWand/pixel-wand.h" + +#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + +extern WandExport MagickBooleanType + MagickGetImageAlphaColor(MagickWand *,PixelWand *), + MagickSetImageAlphaColor(MagickWand *,const PixelWand *); + +#endif + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/display.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/display.h new file mode 100644 index 0000000000000000000000000000000000000000..e39ad3b37df14b0d7cfb339fcad74fd34ae1daf3 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/display.h @@ -0,0 +1,32 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand display command-line method. +*/ +#ifndef MAGICKWAND_DISPLAY_H +#define MAGICKWAND_DISPLAY_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + DisplayImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/drawing-wand.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/drawing-wand.h new file mode 100644 index 0000000000000000000000000000000000000000..c4008b351eb133e2564aef58cba5fc39a7de2c08 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/drawing-wand.h @@ -0,0 +1,230 @@ +/* + Copyright @ 2002 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand drawing wand methods. +*/ +#ifndef MAGICKWAND_DRAWING_WAND_H +#define MAGICKWAND_DRAWING_WAND_H + +#include "MagickWand/pixel-wand.h" + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef struct _DrawingWand + DrawingWand; + +extern WandExport AlignType + DrawGetTextAlignment(const DrawingWand *); + +extern WandExport char + *DrawGetClipPath(const DrawingWand *), + *DrawGetDensity(const DrawingWand *), + *DrawGetException(const DrawingWand *,ExceptionType *), + *DrawGetFont(const DrawingWand *), + *DrawGetFontFamily(const DrawingWand *), + *DrawGetTextEncoding(const DrawingWand *), + *DrawGetVectorGraphics(DrawingWand *); + +extern WandExport ClipPathUnits + DrawGetClipUnits(const DrawingWand *) magick_attribute((__pure__)); + +extern WandExport DecorationType + DrawGetTextDecoration(const DrawingWand *) magick_attribute((__pure__)); + +extern WandExport DirectionType + DrawGetTextDirection(const DrawingWand *); + +extern WandExport double + DrawGetFillOpacity(const DrawingWand *) magick_attribute((__pure__)), + DrawGetFontSize(const DrawingWand *) magick_attribute((__pure__)), + DrawGetOpacity(const DrawingWand *) magick_attribute((__pure__)), + *DrawGetStrokeDashArray(const DrawingWand *,size_t *), + DrawGetStrokeDashOffset(const DrawingWand *) magick_attribute((__pure__)), + DrawGetStrokeOpacity(const DrawingWand *) magick_attribute((__pure__)), + DrawGetStrokeWidth(const DrawingWand *) magick_attribute((__pure__)), + DrawGetTextKerning(DrawingWand *) magick_attribute((__pure__)), + DrawGetTextInterlineSpacing(DrawingWand *) magick_attribute((__pure__)), + DrawGetTextInterwordSpacing(DrawingWand *) magick_attribute((__pure__)); + +extern WandExport DrawInfo + *PeekDrawingWand(const DrawingWand *); + +extern WandExport DrawingWand + *AcquireDrawingWand(const DrawInfo *,Image *), + *CloneDrawingWand(const DrawingWand *), + *DestroyDrawingWand(DrawingWand *), + *NewDrawingWand(void); + +extern WandExport ExceptionInfo + *DrawCloneExceptionInfo(const DrawingWand *wand); + +extern WandExport ExceptionType + DrawGetExceptionType(const DrawingWand *); + +extern WandExport FillRule + DrawGetClipRule(const DrawingWand *) magick_attribute((__pure__)), + DrawGetFillRule(const DrawingWand *) magick_attribute((__pure__)); + +extern WandExport GravityType + DrawGetGravity(const DrawingWand *) magick_attribute((__pure__)); + +extern WandExport LineCap + DrawGetStrokeLineCap(const DrawingWand *) magick_attribute((__pure__)); + +extern WandExport LineJoin + DrawGetStrokeLineJoin(const DrawingWand *) magick_attribute((__pure__)); + +extern WandExport MagickBooleanType + DrawClearException(DrawingWand *), + DrawComposite(DrawingWand *,const CompositeOperator,const double, + const double,const double,const double,MagickWand *), + DrawGetFontResolution(const DrawingWand *,double *,double *), + DrawGetStrokeAntialias(const DrawingWand *) magick_attribute((__pure__)), + DrawGetTextAntialias(const DrawingWand *) magick_attribute((__pure__)), + DrawGetTypeMetrics(const DrawingWand *,const char *,MagickBooleanType, + TypeMetric *), + DrawPopPattern(DrawingWand *), + DrawPushPattern(DrawingWand *,const char *,const double,const double, + const double,const double), + DrawRender(DrawingWand *), + DrawSetClipPath(DrawingWand *,const char *), + DrawSetDensity(DrawingWand *,const char *), + DrawSetFillPatternURL(DrawingWand *,const char *), + DrawSetFont(DrawingWand *,const char *), + DrawSetFontFamily(DrawingWand *,const char *), + DrawSetFontResolution(DrawingWand *,const double,const double), + DrawSetStrokeDashArray(DrawingWand *,const size_t,const double *), + DrawSetStrokePatternURL(DrawingWand *,const char *), + DrawSetVectorGraphics(DrawingWand *,const char *), + IsDrawingWand(const DrawingWand *), + PopDrawingWand(DrawingWand *), + PushDrawingWand(DrawingWand *); + +extern WandExport StretchType + DrawGetFontStretch(const DrawingWand *); + +extern WandExport StyleType + DrawGetFontStyle(const DrawingWand *); + +extern WandExport size_t + DrawGetFontWeight(const DrawingWand *) magick_attribute((__pure__)), + DrawGetStrokeMiterLimit(const DrawingWand *) magick_attribute((__pure__)); + +extern WandExport void + ClearDrawingWand(DrawingWand *), + DrawAffine(DrawingWand *,const AffineMatrix *), + DrawAlpha(DrawingWand *,const double,const double,const PaintMethod), + DrawAnnotation(DrawingWand *,const double,const double,const unsigned char *), + DrawArc(DrawingWand *,const double,const double,const double,const double, + const double,const double), + DrawBezier(DrawingWand *,const size_t,const PointInfo *), + DrawGetBorderColor(const DrawingWand *,PixelWand *), + DrawCircle(DrawingWand *,const double,const double,const double,const double), + DrawColor(DrawingWand *,const double,const double,const PaintMethod), + DrawComment(DrawingWand *,const char *), + DrawEllipse(DrawingWand *,const double,const double,const double,const double, + const double,const double), + DrawGetFillColor(const DrawingWand *,PixelWand *), + DrawGetStrokeColor(const DrawingWand *,PixelWand *), + DrawSetTextKerning(DrawingWand *,const double), + DrawSetTextInterlineSpacing(DrawingWand *,const double), + DrawSetTextInterwordSpacing(DrawingWand *,const double), + DrawGetTextUnderColor(const DrawingWand *,PixelWand *), + DrawLine(DrawingWand *,const double, const double,const double,const double), + DrawPathClose(DrawingWand *), + DrawPathCurveToAbsolute(DrawingWand *,const double,const double,const double, + const double,const double,const double), + DrawPathCurveToRelative(DrawingWand *,const double,const double,const double, + const double,const double, const double), + DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *,const double, + const double,const double,const double), + DrawPathCurveToQuadraticBezierRelative(DrawingWand *,const double, + const double,const double,const double), + DrawPathCurveToQuadraticBezierSmoothAbsolute(DrawingWand *,const double, + const double), + DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *,const double, + const double), + DrawPathCurveToSmoothAbsolute(DrawingWand *,const double,const double, + const double,const double), + DrawPathCurveToSmoothRelative(DrawingWand *,const double,const double, + const double,const double), + DrawPathEllipticArcAbsolute(DrawingWand *,const double,const double, + const double,const MagickBooleanType,const MagickBooleanType,const double, + const double), + DrawPathEllipticArcRelative(DrawingWand *,const double,const double, + const double,const MagickBooleanType,const MagickBooleanType,const double, + const double), + DrawPathFinish(DrawingWand *), + DrawPathLineToAbsolute(DrawingWand *,const double,const double), + DrawPathLineToRelative(DrawingWand *,const double,const double), + DrawPathLineToHorizontalAbsolute(DrawingWand *,const double), + DrawPathLineToHorizontalRelative(DrawingWand *,const double), + DrawPathLineToVerticalAbsolute(DrawingWand *,const double), + DrawPathLineToVerticalRelative(DrawingWand *,const double), + DrawPathMoveToAbsolute(DrawingWand *,const double,const double), + DrawPathMoveToRelative(DrawingWand *,const double,const double), + DrawPathStart(DrawingWand *), + DrawPoint(DrawingWand *,const double,const double), + DrawPolygon(DrawingWand *,const size_t,const PointInfo *), + DrawPolyline(DrawingWand *,const size_t,const PointInfo *), + DrawPopClipPath(DrawingWand *), + DrawPopDefs(DrawingWand *), + DrawPushClipPath(DrawingWand *,const char *), + DrawPushDefs(DrawingWand *), + DrawRectangle(DrawingWand *,const double,const double,const double, + const double), + DrawResetVectorGraphics(DrawingWand *), + DrawRotate(DrawingWand *,const double), + DrawRoundRectangle(DrawingWand *,double,double,double,double,double,double), + DrawScale(DrawingWand *,const double,const double), + DrawSetBorderColor(DrawingWand *,const PixelWand *), + DrawSetClipRule(DrawingWand *,const FillRule), + DrawSetClipUnits(DrawingWand *,const ClipPathUnits), + DrawSetFillColor(DrawingWand *,const PixelWand *), + DrawSetFillOpacity(DrawingWand *,const double), + DrawSetFillRule(DrawingWand *,const FillRule), + DrawSetFontSize(DrawingWand *,const double), + DrawSetFontStretch(DrawingWand *,const StretchType), + DrawSetFontStyle(DrawingWand *,const StyleType), + DrawSetFontWeight(DrawingWand *,const size_t), + DrawSetGravity(DrawingWand *,const GravityType), + DrawSetOpacity(DrawingWand *,const double), + DrawSetStrokeAntialias(DrawingWand *,const MagickBooleanType), + DrawSetStrokeColor(DrawingWand *,const PixelWand *), + DrawSetStrokeDashOffset(DrawingWand *,const double dashoffset), + DrawSetStrokeLineCap(DrawingWand *,const LineCap), + DrawSetStrokeLineJoin(DrawingWand *,const LineJoin), + DrawSetStrokeMiterLimit(DrawingWand *,const size_t), + DrawSetStrokeOpacity(DrawingWand *, const double), + DrawSetStrokeWidth(DrawingWand *,const double), + DrawSetTextAlignment(DrawingWand *,const AlignType), + DrawSetTextAntialias(DrawingWand *,const MagickBooleanType), + DrawSetTextDecoration(DrawingWand *,const DecorationType), + DrawSetTextDirection(DrawingWand *,const DirectionType), + DrawSetTextEncoding(DrawingWand *,const char *), + DrawSetTextUnderColor(DrawingWand *,const PixelWand *), + DrawSetViewbox(DrawingWand *,const double,const double,const double, + const double), + DrawSkewX(DrawingWand *,const double), + DrawSkewY(DrawingWand *,const double), + DrawTranslate(DrawingWand *,const double,const double); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/identify.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/identify.h new file mode 100644 index 0000000000000000000000000000000000000000..9bd6092a73da9a0b4a57c5fb7ff54e2647ba9c13 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/identify.h @@ -0,0 +1,32 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand identify command-line method. +*/ +#ifndef MAGICKWAND_IDENTIFY_H +#define MAGICKWAND_IDENTIFY_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + IdentifyImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/import.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/import.h new file mode 100644 index 0000000000000000000000000000000000000000..4ab10283e66270df2c3150d9a44279f1fd39fff2 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/import.h @@ -0,0 +1,32 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand import command-line method. +*/ +#ifndef MAGICKWAND_IMPORT_H +#define MAGICKWAND_IMPORT_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + ImportImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/magick-cli.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/magick-cli.h new file mode 100644 index 0000000000000000000000000000000000000000..d4291847f15bb27eec09ec13a167aaae0458bbbb --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/magick-cli.h @@ -0,0 +1,43 @@ +/* + Copyright @ 2012 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand convert command-line method. +*/ +#ifndef MAGICKWAND_MAGICK_CLI_H +#define MAGICKWAND_MAGICK_CLI_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef MagickBooleanType + (*MagickCommand)(ImageInfo *,int,char **,char **,ExceptionInfo *); + +extern WandExport void + ProcessScriptOptions(MagickCLI *,const char *,int,char **,int); + +extern WandExport int + ProcessCommandOptions(MagickCLI *,int,char **,int); + +extern WandExport MagickBooleanType + MagickCommandGenesis(ImageInfo *,MagickCommand,int,char **,char **, + ExceptionInfo *), + MagickImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/magick-image.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/magick-image.h new file mode 100644 index 0000000000000000000000000000000000000000..6027c434e3e050942fb5ec231af58f221c007358 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/magick-image.h @@ -0,0 +1,426 @@ +/* + Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand image Methods. +*/ + +#ifndef MAGICKWAND_MAGICK_IMAGE_H +#define MAGICKWAND_MAGICK_IMAGE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport ChannelFeatures + *MagickGetImageFeatures(MagickWand *,const size_t); + +extern WandExport ChannelType + MagickSetImageChannelMask(MagickWand *,const ChannelType); + +extern WandExport ChannelStatistics + *MagickGetImageStatistics(MagickWand *); + +extern WandExport char + *MagickGetImageFilename(MagickWand *), + *MagickGetImageFormat(MagickWand *), + *MagickGetImageSignature(MagickWand *), + *MagickIdentifyImage(MagickWand *); + +extern WandExport ColorspaceType + MagickGetImageColorspace(MagickWand *); + +extern WandExport CompositeOperator + MagickGetImageCompose(MagickWand *); + +extern WandExport CompressionType + MagickGetImageCompression(MagickWand *); + +extern WandExport DisposeType + MagickGetImageDispose(MagickWand *); + +extern WandExport double + *MagickGetImageDistortions(MagickWand *,const MagickWand *, + const MetricType), + MagickGetImageFuzz(MagickWand *), + MagickGetImageGamma(MagickWand *), + MagickGetImageTotalInkDensity(MagickWand *); + +extern WandExport EndianType + MagickGetImageEndian(MagickWand *); + +extern WandExport FilterType + MagickGetImageFilter(MagickWand *); + +extern WandExport GravityType + MagickGetImageGravity(MagickWand *); + +extern WandExport Image + *MagickDestroyImage(Image *), + *GetImageFromMagickWand(const MagickWand *); + +extern WandExport ImageType + MagickGetImageType(MagickWand *), + MagickIdentifyImageType(MagickWand *); + +extern WandExport InterlaceType + MagickGetImageInterlaceScheme(MagickWand *); + +extern WandExport PixelInterpolateMethod + MagickGetImageInterpolateMethod(MagickWand *); + +extern WandExport MagickBooleanType + MagickAdaptiveBlurImage(MagickWand *,const double,const double), + MagickAdaptiveResizeImage(MagickWand *,const size_t,const size_t), + MagickAdaptiveSharpenImage(MagickWand *,const double,const double), + MagickAdaptiveThresholdImage(MagickWand *,const size_t,const size_t, + const double), + MagickAddImage(MagickWand *,const MagickWand *), + MagickAddNoiseImage(MagickWand *,const NoiseType,const double), + MagickAffineTransformImage(MagickWand *,const DrawingWand *), + MagickAnnotateImage(MagickWand *,const DrawingWand *,const double, + const double,const double,const char *), + MagickAnimateImages(MagickWand *,const char *), + MagickAutoGammaImage(MagickWand *), + MagickAutoLevelImage(MagickWand *), + MagickAutoOrientImage(MagickWand *), + MagickAutoThresholdImage(MagickWand *,const AutoThresholdMethod), + MagickBilateralBlurImage(MagickWand *,const double,const double,const double, + const double), + MagickBlackThresholdImage(MagickWand *,const PixelWand *), + MagickBlueShiftImage(MagickWand *,const double), + MagickBlurImage(MagickWand *,const double,const double), + MagickBorderImage(MagickWand *,const PixelWand *,const size_t,const size_t, + const CompositeOperator compose), + MagickBrightnessContrastImage(MagickWand *,const double,const double), + MagickCannyEdgeImage(MagickWand *,const double,const double,const double, + const double), + MagickCharcoalImage(MagickWand *,const double,const double), + MagickChopImage(MagickWand *,const size_t,const size_t,const ssize_t, + const ssize_t), + MagickCLAHEImage(MagickWand *,const size_t,const size_t,const double, + const double), + MagickClampImage(MagickWand *), + MagickClipImage(MagickWand *), + MagickClipImagePath(MagickWand *,const char *,const MagickBooleanType), + MagickClutImage(MagickWand *,const MagickWand *,const PixelInterpolateMethod), + MagickColorDecisionListImage(MagickWand *,const char *), + MagickColorizeImage(MagickWand *,const PixelWand *,const PixelWand *), + MagickColorMatrixImage(MagickWand *,const KernelInfo *), + MagickColorThresholdImage(MagickWand *,const PixelWand *,const PixelWand *), + MagickCommentImage(MagickWand *,const char *), + MagickCompositeImage(MagickWand *,const MagickWand *,const CompositeOperator, + const MagickBooleanType,const ssize_t,const ssize_t), + MagickCompositeImageGravity(MagickWand *,const MagickWand *, + const CompositeOperator,const GravityType), + MagickCompositeLayers(MagickWand *,const MagickWand *,const CompositeOperator, + const ssize_t,const ssize_t), + MagickConnectedComponentsImage(MagickWand *,const size_t,CCObjectInfo **), + MagickConstituteImage(MagickWand *,const size_t,const size_t,const char *, + const StorageType,const void *), + MagickContrastImage(MagickWand *,const MagickBooleanType), + MagickContrastStretchImage(MagickWand *,const double,const double), + MagickConvolveImage(MagickWand *,const KernelInfo *), + MagickCropImage(MagickWand *,const size_t,const size_t,const ssize_t, + const ssize_t), + MagickCycleColormapImage(MagickWand *,const ssize_t), + MagickDecipherImage(MagickWand *,const char *), + MagickDeskewImage(MagickWand *,const double), + MagickDespeckleImage(MagickWand *), + MagickDisplayImage(MagickWand *,const char *), + MagickDisplayImages(MagickWand *,const char *), + MagickDistortImage(MagickWand *,const DistortMethod,const size_t, + const double *,const MagickBooleanType), + MagickDrawImage(MagickWand *,const DrawingWand *), + MagickEdgeImage(MagickWand *,const double), + MagickEmbossImage(MagickWand *,const double,const double), + MagickEncipherImage(MagickWand *,const char *), + MagickEnhanceImage(MagickWand *), + MagickEqualizeImage(MagickWand *), + MagickEvaluateImage(MagickWand *,const MagickEvaluateOperator,const double), + MagickExportImagePixels(MagickWand *,const ssize_t,const ssize_t, + const size_t,const size_t,const char *,const StorageType,void *), + MagickExtentImage(MagickWand *,const size_t,const size_t,const ssize_t, + const ssize_t), + MagickFlipImage(MagickWand *), + MagickFloodfillPaintImage(MagickWand *,const PixelWand *,const double, + const PixelWand *,const ssize_t,const ssize_t,const MagickBooleanType), + MagickFlopImage(MagickWand *), + MagickForwardFourierTransformImage(MagickWand *,const MagickBooleanType), + MagickFrameImage(MagickWand *,const PixelWand *,const size_t,const size_t, + const ssize_t,const ssize_t,const CompositeOperator), + MagickFunctionImage(MagickWand *,const MagickFunction,const size_t, + const double *), + MagickGammaImage(MagickWand *,const double), + MagickGaussianBlurImage(MagickWand *,const double,const double), + MagickGetImageAlphaChannel(MagickWand *), + MagickGetImageBackgroundColor(MagickWand *,PixelWand *), + MagickGetImageBluePrimary(MagickWand *,double *,double *,double *), + MagickGetImageBorderColor(MagickWand *,PixelWand *), + MagickGetImageKurtosis(MagickWand *,double *,double *), + MagickGetImageMean(MagickWand *,double *,double *), + MagickGetImageRange(MagickWand *,double *,double *), + MagickGetImageColormapColor(MagickWand *,const size_t,PixelWand *), + MagickGetImageDistortion(MagickWand *,const MagickWand *,const MetricType, + double *), + MagickGetImageGreenPrimary(MagickWand *,double *,double *,double *), + MagickGetImageLength(MagickWand *,MagickSizeType *), + MagickGetImageMatteColor(MagickWand *,PixelWand *), + MagickGetImagePage(MagickWand *,size_t *,size_t *,ssize_t *, + ssize_t *), + MagickGetImagePixelColor(MagickWand *,const ssize_t,const ssize_t, + PixelWand *), + MagickGetImageRange(MagickWand *,double *,double *), + MagickGetImageRedPrimary(MagickWand *,double *,double *,double *), + MagickGetImageResolution(MagickWand *,double *,double *), + MagickGetImageWhitePoint(MagickWand *,double *,double *,double *), + MagickHaldClutImage(MagickWand *,const MagickWand *), + MagickHasNextImage(MagickWand *), + MagickHasPreviousImage(MagickWand *), + MagickHoughLineImage(MagickWand *,const size_t,const size_t,const size_t), + MagickImplodeImage(MagickWand *,const double,const PixelInterpolateMethod), + MagickImportImagePixels(MagickWand *,const ssize_t,const ssize_t,const size_t, + const size_t,const char *,const StorageType,const void *), + MagickInterpolativeResizeImage(MagickWand *,const size_t,const size_t, + const PixelInterpolateMethod), + MagickInverseFourierTransformImage(MagickWand *,MagickWand *, + const MagickBooleanType), + MagickKmeansImage(MagickWand *, const size_t, const size_t, const double), + MagickKuwaharaImage(MagickWand *,const double,const double), + MagickLabelImage(MagickWand *,const char *), + MagickLevelImage(MagickWand *,const double,const double,const double), + MagickLevelImageColors(MagickWand *,const PixelWand *,const PixelWand *, + const MagickBooleanType), + MagickLevelizeImage(MagickWand *,const double,const double,const double), + MagickLinearStretchImage(MagickWand *,const double,const double), + MagickLiquidRescaleImage(MagickWand *,const size_t,const size_t,const double, + const double), + MagickLocalContrastImage(MagickWand *,const double,const double), + MagickMagnifyImage(MagickWand *), + MagickMeanShiftImage(MagickWand *,const size_t,const size_t,const double), + MagickMinifyImage(MagickWand *), + MagickModeImage(MagickWand *,const double), + MagickModulateImage(MagickWand *,const double,const double,const double), + MagickMorphologyImage(MagickWand *,const MorphologyMethod,const ssize_t, + const KernelInfo *), + MagickMotionBlurImage(MagickWand *,const double,const double,const double), + MagickNegateImage(MagickWand *,const MagickBooleanType), + MagickNewImage(MagickWand *,const size_t,const size_t,const PixelWand *), + MagickNextImage(MagickWand *), + MagickNormalizeImage(MagickWand *), + MagickOilPaintImage(MagickWand *,const double,const double), + MagickOpaquePaintImage(MagickWand *,const PixelWand *,const PixelWand *, + const double,const MagickBooleanType), + MagickOptimizeImageTransparency(MagickWand *), + MagickOrderedDitherImage(MagickWand *,const char *), + MagickPolynomialImage(MagickWand *,const size_t,const double *), + MagickTransparentPaintImage(MagickWand *,const PixelWand *, + const double,const double,const MagickBooleanType invert), + MagickPingImage(MagickWand *,const char *), + MagickPingImageBlob(MagickWand *,const void *,const size_t), + MagickPingImageFile(MagickWand *,FILE *), + MagickPolaroidImage(MagickWand *,const DrawingWand *,const char *, + const double,const PixelInterpolateMethod), + MagickPosterizeImage(MagickWand *,const size_t,const DitherMethod), + MagickPreviousImage(MagickWand *), + MagickQuantizeImage(MagickWand *,const size_t,const ColorspaceType, + const size_t,const DitherMethod,const MagickBooleanType), + MagickQuantizeImages(MagickWand *,const size_t,const ColorspaceType, + const size_t,const DitherMethod,const MagickBooleanType), + MagickRangeThresholdImage(MagickWand *,const double,const double, + const double,const double), + MagickRotationalBlurImage(MagickWand *,const double), + MagickRaiseImage(MagickWand *,const size_t,const size_t,const ssize_t, + const ssize_t,const MagickBooleanType), + MagickRandomThresholdImage(MagickWand *,const double,const double), + MagickReadImage(MagickWand *,const char *), + MagickReadImageBlob(MagickWand *,const void *,const size_t), + MagickReadImageFile(MagickWand *,FILE *), + MagickReduceNoiseImage(MagickWand *,const double), + MagickRemapImage(MagickWand *,const MagickWand *,const DitherMethod), + MagickRemoveImage(MagickWand *), + MagickResampleImage(MagickWand *,const double,const double,const FilterType), + MagickResetImagePage(MagickWand *,const char *), + MagickResizeImage(MagickWand *,const size_t,const size_t,const FilterType), + MagickRollImage(MagickWand *,const ssize_t,const ssize_t), + MagickRotateImage(MagickWand *,const PixelWand *,const double), + MagickSampleImage(MagickWand *,const size_t,const size_t), + MagickScaleImage(MagickWand *,const size_t,const size_t), + MagickSegmentImage(MagickWand *,const ColorspaceType,const MagickBooleanType, + const double,const double), + MagickSelectiveBlurImage(MagickWand *,const double,const double, + const double), + MagickSeparateImage(MagickWand *,const ChannelType), + MagickSepiaToneImage(MagickWand *,const double), + MagickSetImage(MagickWand *,const MagickWand *), + MagickSetImageAlpha(MagickWand *,const double), + MagickSetImageAlphaChannel(MagickWand *,const AlphaChannelOption), + MagickSetImageBackgroundColor(MagickWand *,const PixelWand *), + MagickSetImageBluePrimary(MagickWand *,const double,const double, + const double), + MagickSetImageBorderColor(MagickWand *,const PixelWand *), + MagickSetImageColor(MagickWand *,const PixelWand *), + MagickSetImageColormapColor(MagickWand *,const size_t, + const PixelWand *), + MagickSetImageColorspace(MagickWand *,const ColorspaceType), + MagickSetImageCompose(MagickWand *,const CompositeOperator), + MagickSetImageCompression(MagickWand *,const CompressionType), + MagickSetImageDelay(MagickWand *,const size_t), + MagickSetImageDepth(MagickWand *,const size_t), + MagickSetImageDispose(MagickWand *,const DisposeType), + MagickSetImageCompressionQuality(MagickWand *,const size_t), + MagickSetImageEndian(MagickWand *,const EndianType), + MagickSetImageExtent(MagickWand *,const size_t,const size_t), + MagickSetImageFilename(MagickWand *,const char *), + MagickSetImageFilter(MagickWand *,const FilterType), + MagickSetImageFormat(MagickWand *,const char *), + MagickSetImageFuzz(MagickWand *,const double), + MagickSetImageGamma(MagickWand *,const double), + MagickSetImageGravity(MagickWand *,const GravityType), + MagickSetImageGreenPrimary(MagickWand *,const double,const double, + const double), + MagickSetImageInterlaceScheme(MagickWand *,const InterlaceType), + MagickSetImageInterpolateMethod(MagickWand *,const PixelInterpolateMethod), + MagickSetImageIterations(MagickWand *,const size_t), + MagickSetImageMask(MagickWand *,const PixelMask,const MagickWand *), + MagickSetImageMatte(MagickWand *,const MagickBooleanType), + MagickSetImageMatteColor(MagickWand *,const PixelWand *), + MagickSetImageOrientation(MagickWand *,const OrientationType), + MagickSetImagePage(MagickWand *,const size_t,const size_t,const ssize_t, + const ssize_t), + MagickSetImagePixelColor(MagickWand *,const ssize_t,const ssize_t, + const PixelWand *), + MagickSetImageRedPrimary(MagickWand *,const double,const double, + const double), + MagickSetImageRenderingIntent(MagickWand *,const RenderingIntent), + MagickSetImageResolution(MagickWand *,const double,const double), + MagickSetImageScene(MagickWand *,const size_t), + MagickSetImageTicksPerSecond(MagickWand *,const ssize_t), + MagickSetImageType(MagickWand *,const ImageType), + MagickSetImageUnits(MagickWand *,const ResolutionType), + MagickSetImageWhitePoint(MagickWand *,const double,const double, + const double), + MagickShadeImage(MagickWand *,const MagickBooleanType,const double, + const double), + MagickShadowImage(MagickWand *,const double,const double,const ssize_t, + const ssize_t), + MagickSharpenImage(MagickWand *,const double,const double), + MagickShaveImage(MagickWand *,const size_t,const size_t), + MagickShearImage(MagickWand *,const PixelWand *,const double,const double), + MagickSigmoidalContrastImage(MagickWand *,const MagickBooleanType, + const double,const double), + MagickSketchImage(MagickWand *,const double,const double,const double), + MagickSolarizeImage(MagickWand *,const double), + MagickSparseColorImage(MagickWand *,const SparseColorMethod,const size_t, + const double *), + MagickSpliceImage(MagickWand *,const size_t,const size_t,const ssize_t, + const ssize_t), + MagickSpreadImage(MagickWand *,const PixelInterpolateMethod,const double), + MagickStatisticImage(MagickWand *,const StatisticType,const size_t, + const size_t), + MagickStripImage(MagickWand *), + MagickSwirlImage(MagickWand *,const double,const PixelInterpolateMethod), + MagickTintImage(MagickWand *,const PixelWand *,const PixelWand *), + MagickTransformImageColorspace(MagickWand *,const ColorspaceType), + MagickTransposeImage(MagickWand *), + MagickTransverseImage(MagickWand *), + MagickThresholdImage(MagickWand *,const double), + MagickThresholdImageChannel(MagickWand *,const ChannelType,const double), + MagickThumbnailImage(MagickWand *,const size_t,const size_t), + MagickTrimImage(MagickWand *,const double), + MagickUniqueImageColors(MagickWand *), + MagickUnsharpMaskImage(MagickWand *,const double,const double,const double, + const double), + MagickVignetteImage(MagickWand *,const double,const double,const ssize_t, + const ssize_t), + MagickWaveImage(MagickWand *,const double,const double, + const PixelInterpolateMethod), + MagickWaveletDenoiseImage(MagickWand *,const double,const double), + MagickWhiteBalanceImage(MagickWand *), + MagickWhiteThresholdImage(MagickWand *,const PixelWand *), + MagickWriteImage(MagickWand *,const char *), + MagickWriteImageFile(MagickWand *,FILE *), + MagickWriteImages(MagickWand *,const char *,const MagickBooleanType), + MagickWriteImagesFile(MagickWand *,FILE *); + +extern WandExport MagickProgressMonitor + MagickSetImageProgressMonitor(MagickWand *,const MagickProgressMonitor, + void *); + +extern WandExport MagickWand + *MagickAppendImages(MagickWand *,const MagickBooleanType), + *MagickChannelFxImage(MagickWand *,const char *), + *MagickCoalesceImages(MagickWand *), + *MagickCombineImages(MagickWand *,const ColorspaceType), + *MagickCompareImages(MagickWand *,const MagickWand *,const MetricType, + double *), + *MagickCompareImagesLayers(MagickWand *,const LayerMethod), + *MagickComplexImages(MagickWand *,const ComplexOperator), + *MagickDeconstructImages(MagickWand *), + *MagickEvaluateImages(MagickWand *,const MagickEvaluateOperator), + *MagickFxImage(MagickWand *,const char *), + *MagickGetImage(MagickWand *), + *MagickGetImageMask(MagickWand *,const PixelMask), + *MagickGetImageRegion(MagickWand *,const size_t,const size_t,const ssize_t, + const ssize_t), + *MagickMergeImageLayers(MagickWand *,const LayerMethod), + *MagickMorphImages(MagickWand *,const size_t), + *MagickMontageImage(MagickWand *,const DrawingWand *,const char *, + const char *,const MontageMode,const char *), + *MagickOptimizeImageLayers(MagickWand *), + *MagickPreviewImages(MagickWand *wand,const PreviewType), + *MagickSimilarityImage(MagickWand *,const MagickWand *,const MetricType, + const double,RectangleInfo *,double *), + *MagickSmushImages(MagickWand *,const MagickBooleanType,const ssize_t), + *MagickSteganoImage(MagickWand *,const MagickWand *,const ssize_t), + *MagickStereoImage(MagickWand *,const MagickWand *), + *MagickTextureImage(MagickWand *,const MagickWand *); + +extern WandExport OrientationType + MagickGetImageOrientation(MagickWand *); + +extern WandExport PixelWand + **MagickGetImageHistogram(MagickWand *,size_t *); + +extern WandExport RenderingIntent + MagickGetImageRenderingIntent(MagickWand *); + +extern WandExport ResolutionType + MagickGetImageUnits(MagickWand *); + +extern WandExport size_t + MagickGetImageColors(MagickWand *), + MagickGetImageCompressionQuality(MagickWand *), + MagickGetImageDelay(MagickWand *), + MagickGetImageDepth(MagickWand *), + MagickGetImageHeight(MagickWand *), + MagickGetImageIterations(MagickWand *), + MagickGetImageScene(MagickWand *), + MagickGetImageTicksPerSecond(MagickWand *), + MagickGetImageWidth(MagickWand *), + MagickGetNumberImages(MagickWand *); + +extern WandExport unsigned char + *MagickGetImageBlob(MagickWand *,size_t *), + *MagickGetImagesBlob(MagickWand *,size_t *); + +extern WandExport VirtualPixelMethod + MagickGetImageVirtualPixelMethod(MagickWand *), + MagickSetImageVirtualPixelMethod(MagickWand *,const VirtualPixelMethod); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/magick-property.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/magick-property.h new file mode 100644 index 0000000000000000000000000000000000000000..9de6f114b970ded25b7ba287fee829b931d332af --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/magick-property.h @@ -0,0 +1,150 @@ +/* + Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand property, options, and profile methods. +*/ + +#ifndef MAGICKWAND_MAGICK_PROPERTY_H +#define MAGICKWAND_MAGICK_PROPERTY_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport char + *MagickGetFilename(const MagickWand *), + *MagickGetFormat(MagickWand *), + *MagickGetFont(MagickWand *), + *MagickGetHomeURL(void), + *MagickGetImageArtifact(MagickWand *,const char *), + **MagickGetImageArtifacts(MagickWand *,const char *,size_t *), + **MagickGetImageProfiles(MagickWand *,const char *,size_t *), + *MagickGetImageProperty(MagickWand *,const char *), + **MagickGetImageProperties(MagickWand *,const char *,size_t *), + *MagickGetOption(MagickWand *,const char *), + **MagickGetOptions(MagickWand *,const char *,size_t *), + *MagickQueryConfigureOption(const char *), + **MagickQueryConfigureOptions(const char *,size_t *), + **MagickQueryFonts(const char *,size_t *), + **MagickQueryFormats(const char *,size_t *); + +extern WandExport ColorspaceType + MagickGetColorspace(MagickWand *); + +extern WandExport CompressionType + MagickGetCompression(MagickWand *); + +extern WandExport const char + *MagickGetCopyright(void), + *MagickGetPackageName(void), + *MagickGetQuantumDepth(size_t *), + *MagickGetQuantumRange(size_t *), + *MagickGetReleaseDate(void), + *MagickGetVersion(size_t *); + +extern WandExport double + MagickGetPointsize(MagickWand *), + *MagickGetSamplingFactors(MagickWand *,size_t *), + *MagickQueryFontMetrics(MagickWand *,const DrawingWand *,const char *), + *MagickQueryMultilineFontMetrics(MagickWand *,const DrawingWand *, + const char *); + +extern WandExport FilterType + MagickGetFilter(MagickWand *); + +extern WandExport GravityType + MagickGetGravity(MagickWand *); + +extern WandExport ImageType + MagickGetType(MagickWand *); + +extern WandExport InterlaceType + MagickGetInterlaceScheme(MagickWand *); + +extern WandExport PixelInterpolateMethod + MagickGetInterpolateMethod(MagickWand *); + +extern WandExport OrientationType + MagickGetOrientation(MagickWand *); + +extern WandExport MagickBooleanType + MagickDeleteImageArtifact(MagickWand *,const char *), + MagickDeleteImageProperty(MagickWand *,const char *), + MagickDeleteOption(MagickWand *,const char *), + MagickGetAntialias(const MagickWand *), + MagickGetPage(const MagickWand *,size_t *,size_t *,ssize_t *,ssize_t *), + MagickGetResolution(const MagickWand *,double *,double *), + MagickGetSize(const MagickWand *,size_t *,size_t *), + MagickGetSizeOffset(const MagickWand *,ssize_t *), + MagickProfileImage(MagickWand *,const char *,const void *,const size_t), + MagickSetAntialias(MagickWand *,const MagickBooleanType), + MagickSetBackgroundColor(MagickWand *,const PixelWand *), + MagickSetColorspace(MagickWand *,const ColorspaceType), + MagickSetCompression(MagickWand *,const CompressionType), + MagickSetCompressionQuality(MagickWand *,const size_t), + MagickSetDepth(MagickWand *,const size_t), + MagickSetExtract(MagickWand *,const char *), + MagickSetFilename(MagickWand *,const char *), + MagickSetFilter(MagickWand *,const FilterType), + MagickSetFormat(MagickWand *,const char *), + MagickSetFont(MagickWand *,const char *), + MagickSetGravity(MagickWand *,const GravityType), + MagickSetImageArtifact(MagickWand *,const char *,const char *), + MagickSetImageProfile(MagickWand *,const char *,const void *,const size_t), + MagickSetImageProperty(MagickWand *,const char *,const char *), + MagickSetInterlaceScheme(MagickWand *,const InterlaceType), + MagickSetInterpolateMethod(MagickWand *,const PixelInterpolateMethod), + MagickSetOption(MagickWand *,const char *,const char *), + MagickSetOrientation(MagickWand *,const OrientationType), + MagickSetPage(MagickWand *,const size_t,const size_t,const ssize_t, + const ssize_t), + MagickSetPassphrase(MagickWand *,const char *), + MagickSetPointsize(MagickWand *,const double), + MagickSetResolution(MagickWand *,const double,const double), + MagickSetResourceLimit(const ResourceType type,const MagickSizeType limit), + MagickSetSamplingFactors(MagickWand *,const size_t,const double *), + MagickSetSecurityPolicy(MagickWand *,const char *), + MagickSetSize(MagickWand *,const size_t,const size_t), + MagickSetSizeOffset(MagickWand *,const size_t,const size_t,const ssize_t), + MagickSetType(MagickWand *,const ImageType); + +extern WandExport MagickProgressMonitor + MagickSetProgressMonitor(MagickWand *,const MagickProgressMonitor,void *); + +extern WandExport MagickSizeType + MagickGetResource(const ResourceType), + MagickGetResourceLimit(const ResourceType); + +extern WandExport PixelWand + *MagickGetBackgroundColor(MagickWand *); + +extern WandExport OrientationType + MagickGetOrientationType(MagickWand *); + +extern WandExport size_t + MagickGetCompressionQuality(MagickWand *); + +extern WandExport unsigned char + *MagickGetImageProfile(MagickWand *,const char *,size_t *), + *MagickRemoveImageProfile(MagickWand *,const char *,size_t *); + +extern WandExport void + MagickSetSeed(const unsigned long); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/method-attribute.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/method-attribute.h new file mode 100644 index 0000000000000000000000000000000000000000..77b87be5210be2f6f6b9cf69f64e247a4a1f61b6 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/method-attribute.h @@ -0,0 +1,118 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand method attributes. +*/ +#ifndef MAGICKWAND_METHOD_ATTRIBUTE_H +#define MAGICKWAND_METHOD_ATTRIBUTE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +#if defined(__BORLANDC__) && defined(_DLL) +# define _MAGICKDLL_ +# define _MAGICKLIB_ +# define MAGICKCORE_MODULES_SUPPORT +# undef MAGICKCORE_BUILD_MODULES +#endif + +#if defined(MAGICKWAND_WINDOWS_SUPPORT) && !defined(__CYGWIN__) +# define WandPrivate +# if defined(_MT) && defined(_DLL) && !defined(_MAGICKDLL_) && !defined(_LIB) +# define _MAGICKDLL_ +# endif +# if defined(_MAGICKDLL_) +# if defined(_VISUALC_) +# pragma warning( disable: 4273 ) /* Disable the dll linkage warnings */ +# endif +# if !defined(_MAGICKLIB_) +# if defined(__clang__) || defined(__GNUC__) +# define WandExport __attribute__ ((dllimport)) +# else +# define WandExport __declspec(dllimport) +# endif +# else +# if defined(__clang__) || defined(__GNUC__) +# define WandExport __attribute__ ((dllexport)) +# else +# define WandExport __declspec(dllexport) +# endif +# endif +# else +# define WandExport +# endif +# if defined(_VISUALC_) +# pragma warning(disable : 4018) +# pragma warning(disable : 4068) +# pragma warning(disable : 4244) +# pragma warning(disable : 4142) +# pragma warning(disable : 4800) +# pragma warning(disable : 4786) +# pragma warning(disable : 4996) +# endif +#else +# if defined(__clang__) || (__GNUC__ >= 4) +# define WandExport __attribute__ ((visibility ("default"))) +# define WandPrivate __attribute__ ((visibility ("hidden"))) +# else +# define WandExport +# define WandPrivate +# endif +#endif + +#define MagickWandSignature 0xabacadabUL +#if !defined(MagickPathExtent) +# define MagickPathExtent 4096 +#endif + +#if defined(MAGICKCORE_HAVE___ATTRIBUTE__) +# define wand_aligned(x) __attribute__((aligned(x))) +# define wand_attribute __attribute__ +# define wand_unused(x) wand_unused_ ## x __attribute__((unused)) +# define wand_unreferenced(x) /* nothing */ +#elif defined(MAGICKWAND_WINDOWS_SUPPORT) && !defined(__CYGWIN__) +# define wand_aligned(x) __declspec(align(x)) +# define wand_attribute(x) /* nothing */ +# define wand_unused(x) x +# define wand_unreferenced(x) (x) +#else +# define wand_aligned(x) /* nothing */ +# define wand_attribute(x) /* nothing */ +# define wand_unused(x) x +# define wand_unreferenced(x) /* nothing */ +#endif + +#if !defined(__clang__) && (((__GNUC__) > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))) +# define wand_alloc_size(x) __attribute__((__alloc_size__(x))) +# define wand_alloc_sizes(x,y) __attribute__((__alloc_size__(x,y))) +#else +# define wand_alloc_size(x) /* nothing */ +# define wand_alloc_sizes(x,y) /* nothing */ +#endif + +#if defined(__clang__) || (((__GNUC__) > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))) +# define wand_cold_spot __attribute__((__cold__)) +# define wand_hot_spot __attribute__((__hot__)) +#else +# define wand_cold_spot +# define wand_hot_spot +#endif + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/mogrify.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/mogrify.h new file mode 100644 index 0000000000000000000000000000000000000000..956410ffdd964356120612928bc104f23f9a0b45 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/mogrify.h @@ -0,0 +1,38 @@ +/* + Copyright @ 2000 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand mogrify command-line method. +*/ +#ifndef MAGICKWAND_MOGRIFY_H +#define MAGICKWAND_MOGRIFY_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + MogrifyImage(ImageInfo *,const int,const char **,Image **,ExceptionInfo *), + MogrifyImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *), + MogrifyImageInfo(ImageInfo *,const int,const char **,ExceptionInfo *), + MogrifyImageList(ImageInfo *,const int,const char **,Image **, + ExceptionInfo *), + MogrifyImages(ImageInfo *,const MagickBooleanType,const int,const char **, + Image **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/montage.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/montage.h new file mode 100644 index 0000000000000000000000000000000000000000..4532c9e3eaa649eaeb9bdcca9c896e951d59c321 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/montage.h @@ -0,0 +1,32 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand montage command-line method. +*/ +#ifndef MAGICKWAND_MONTAGE_H +#define MAGICKWAND_MONTAGE_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + MontageImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/operation.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/operation.h new file mode 100644 index 0000000000000000000000000000000000000000..56ff93bd0b76d167f65cff24b6c0cd200632ecd4 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/operation.h @@ -0,0 +1,33 @@ +/* + Copyright @ 2011 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand command-line option process. +*/ +#ifndef MAGICKWAND_OPERATION_H +#define MAGICKWAND_OPERATION_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport void + CLIOption(MagickCLI *,const char *,...) + magick_attribute((__format__ (__printf__,2,0))); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/pixel-iterator.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/pixel-iterator.h new file mode 100644 index 0000000000000000000000000000000000000000..41fd8289fb224167ac2b70fd9adf42ae74fd0dd5 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/pixel-iterator.h @@ -0,0 +1,68 @@ +/* + Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Pixel Iterator Methods. +*/ +#ifndef MAGICKWAND_PIXEL_ITERATOR_H +#define MAGICKWAND_PIXEL_ITERATOR_H + +#include "MagickWand/MagickWand.h" +#include "MagickWand/pixel-wand.h" + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef struct _PixelIterator + PixelIterator; + +extern WandExport char + *PixelGetIteratorException(const PixelIterator *,ExceptionType *); + +extern WandExport ExceptionType + PixelGetIteratorExceptionType(const PixelIterator *); + +extern WandExport MagickBooleanType + IsPixelIterator(const PixelIterator *), + PixelClearIteratorException(PixelIterator *), + PixelSetIteratorRow(PixelIterator *,const ssize_t), + PixelSyncIterator(PixelIterator *); + +extern WandExport PixelIterator + *ClonePixelIterator(const PixelIterator *), + *DestroyPixelIterator(PixelIterator *), + *NewPixelIterator(MagickWand *), + *NewPixelRegionIterator(MagickWand *,const ssize_t,const ssize_t,const size_t, + const size_t); + +extern WandExport PixelWand + **PixelGetCurrentIteratorRow(PixelIterator *,size_t *), + **PixelGetNextIteratorRow(PixelIterator *,size_t *), + **PixelGetPreviousIteratorRow(PixelIterator *,size_t *); + +extern WandExport ssize_t + PixelGetIteratorRow(PixelIterator *); + +extern WandExport void + ClearPixelIterator(PixelIterator *), + PixelResetIterator(PixelIterator *), + PixelSetFirstIteratorRow(PixelIterator *), + PixelSetLastIteratorRow(PixelIterator *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/pixel-wand.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/pixel-wand.h new file mode 100644 index 0000000000000000000000000000000000000000..2826cc82d0a3b923320ab18f175bc1ecc5d56179 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/pixel-wand.h @@ -0,0 +1,117 @@ +/* + Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand pixel wand methods. +*/ +#ifndef MAGICKWAND_PIXEL_WAND_H +#define MAGICKWAND_PIXEL_WAND_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef struct _PixelWand + PixelWand; + +extern WandExport char + *PixelGetColorAsNormalizedString(const PixelWand *), + *PixelGetColorAsString(const PixelWand *), + *PixelGetException(const PixelWand *,ExceptionType *); + +extern WandExport double + PixelGetAlpha(const PixelWand *) magick_attribute((__pure__)), + PixelGetBlack(const PixelWand *) magick_attribute((__pure__)), + PixelGetBlue(const PixelWand *) magick_attribute((__pure__)), + PixelGetCyan(const PixelWand *) magick_attribute((__pure__)), + PixelGetFuzz(const PixelWand *) magick_attribute((__pure__)), + PixelGetGreen(const PixelWand *) magick_attribute((__pure__)), + PixelGetMagenta(const PixelWand *) magick_attribute((__pure__)), + PixelGetAlpha(const PixelWand *) magick_attribute((__pure__)), + PixelGetRed(const PixelWand *) magick_attribute((__pure__)), + PixelGetYellow(const PixelWand *) magick_attribute((__pure__)); + +extern WandExport ExceptionType + PixelGetExceptionType(const PixelWand *); + +extern WandExport MagickBooleanType + IsPixelWand(const PixelWand *), + IsPixelWandSimilar(PixelWand *,PixelWand *,const double), + PixelClearException(PixelWand *), + PixelSetColor(PixelWand *,const char *); + +extern WandExport PixelInfo + PixelGetPixel(const PixelWand *); + +extern WandExport PixelWand + *ClonePixelWand(const PixelWand *), + **ClonePixelWands(const PixelWand **,const size_t), + *DestroyPixelWand(PixelWand *), + **DestroyPixelWands(PixelWand **,const size_t), + *NewPixelWand(void), + **NewPixelWands(const size_t); + +extern WandExport Quantum + PixelGetAlphaQuantum(const PixelWand *) magick_attribute((__pure__)), + PixelGetBlackQuantum(const PixelWand *) magick_attribute((__pure__)), + PixelGetBlueQuantum(const PixelWand *) magick_attribute((__pure__)), + PixelGetCyanQuantum(const PixelWand *) magick_attribute((__pure__)), + PixelGetGreenQuantum(const PixelWand *) magick_attribute((__pure__)), + PixelGetIndex(const PixelWand *) magick_attribute((__pure__)), + PixelGetMagentaQuantum(const PixelWand *) magick_attribute((__pure__)), + PixelGetAlphaQuantum(const PixelWand *) magick_attribute((__pure__)), + PixelGetRedQuantum(const PixelWand *) magick_attribute((__pure__)), + PixelGetYellowQuantum(const PixelWand *) magick_attribute((__pure__)); + +extern WandExport size_t + PixelGetColorCount(const PixelWand *) magick_attribute((__pure__)); + +extern WandExport void + ClearPixelWand(PixelWand *), + PixelGetHSL(const PixelWand *,double *,double *,double *), + PixelGetMagickColor(const PixelWand *,PixelInfo *), + PixelGetQuantumPacket(const PixelWand *,PixelInfo *), + PixelGetQuantumPixel(const Image *,const PixelWand *,Quantum *), + PixelSetAlpha(PixelWand *,const double), + PixelSetAlphaQuantum(PixelWand *,const Quantum), + PixelSetBlack(PixelWand *,const double), + PixelSetBlackQuantum(PixelWand *,const Quantum), + PixelSetBlue(PixelWand *,const double), + PixelSetBlueQuantum(PixelWand *,const Quantum), + PixelSetColorFromWand(PixelWand *,const PixelWand *), + PixelSetColorCount(PixelWand *,const size_t), + PixelSetCyan(PixelWand *,const double), + PixelSetCyanQuantum(PixelWand *,const Quantum), + PixelSetFuzz(PixelWand *,const double), + PixelSetGreen(PixelWand *,const double), + PixelSetGreenQuantum(PixelWand *,const Quantum), + PixelSetHSL(PixelWand *,const double,const double,const double), + PixelSetIndex(PixelWand *,const Quantum), + PixelSetMagenta(PixelWand *,const double), + PixelSetMagentaQuantum(PixelWand *,const Quantum), + PixelSetPixelColor(PixelWand *,const PixelInfo *), + PixelSetAlpha(PixelWand *,const double), + PixelSetAlphaQuantum(PixelWand *,const Quantum), + PixelSetPixelColor(PixelWand *,const PixelInfo *), + PixelSetQuantumPixel(const Image *,const Quantum *,PixelWand *), + PixelSetRed(PixelWand *,const double), + PixelSetRedQuantum(PixelWand *,const Quantum), + PixelSetYellow(PixelWand *,const double), + PixelSetYellowQuantum(PixelWand *,const Quantum); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/stream.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/stream.h new file mode 100644 index 0000000000000000000000000000000000000000..2c709532169b26a88d24a8abce45a62f3293c0de --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/stream.h @@ -0,0 +1,32 @@ +/* + Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand montage command-line method. +*/ +#ifndef MAGICKWAND_STREAM_H +#define MAGICKWAND_STREAM_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +extern WandExport MagickBooleanType + StreamImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/wand-view.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/wand-view.h new file mode 100644 index 0000000000000000000000000000000000000000..8176b9030c967d71e4dc1bbf4cd5c04f51131ae6 --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/wand-view.h @@ -0,0 +1,73 @@ +/* + Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand wand view methods. +*/ +#ifndef MAGICKWAND_WAND_VIEW_H +#define MAGICKWAND_WAND_VIEW_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef struct _WandView + WandView; + +typedef MagickBooleanType + (*DuplexTransferWandViewMethod)(const WandView *,const WandView *,WandView *, + const ssize_t,const int,void *), + (*GetWandViewMethod)(const WandView *,const ssize_t,const int,void *), + (*SetWandViewMethod)(WandView *,const ssize_t,const int,void *), + (*TransferWandViewMethod)(const WandView *,WandView *,const ssize_t, + const int,void *), + (*UpdateWandViewMethod)(WandView *,const ssize_t,const int,void *); + +extern WandExport char + *GetWandViewException(const WandView *,ExceptionType *); + +extern WandExport MagickBooleanType + DuplexTransferWandViewIterator(WandView *,WandView *,WandView *, + DuplexTransferWandViewMethod,void *), + GetWandViewIterator(WandView *,GetWandViewMethod,void *), + IsWandView(const WandView *), + SetWandViewIterator(WandView *,SetWandViewMethod,void *), + TransferWandViewIterator(WandView *,WandView *,TransferWandViewMethod,void *), + UpdateWandViewIterator(WandView *,UpdateWandViewMethod,void *); + +extern WandExport MagickWand + *GetWandViewWand(const WandView *); + +extern WandExport PixelWand + **GetWandViewPixels(const WandView *); + +extern WandExport RectangleInfo + GetWandViewExtent(const WandView *); + +extern WandExport void + SetWandViewDescription(WandView *,const char *), + SetWandViewThreads(WandView *,const size_t); + +extern WandExport WandView + *CloneWandView(const WandView *), + *DestroyWandView(WandView *), + *NewWandView(MagickWand *), + *NewWandViewExtent(MagickWand *,const ssize_t,const ssize_t,const size_t, + const size_t); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/wandcli.h b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/wandcli.h new file mode 100644 index 0000000000000000000000000000000000000000..dc8cf5e69804ba155d17d8f643ca1d359600e3ad --- /dev/null +++ b/data/miniconda3/pkgs/imagemagick-7.1.1_5-pl5321h211c493_1/include/ImageMagick-7/MagickWand/wandcli.h @@ -0,0 +1,45 @@ +/* + Copyright @ 2011 ImageMagick Studio LLC, a non-profit organization + dedicated to making software imaging solutions freely available. + + You may not use this file except in compliance with the License. You may + obtain a copy of the License at + + https://imagemagick.org/script/license.php + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + MagickWand command-line option process. +*/ +#ifndef MAGICKWAND_WAND_CLI_H +#define MAGICKWAND_WAND_CLI_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef struct _MagickCLI + MagickCLI; + +extern WandExport MagickCLI + *AcquireMagickCLI(ImageInfo *,ExceptionInfo *), + *DestroyMagickCLI(MagickCLI *); + +extern WandExport MagickBooleanType + CLICatchException(MagickCLI *,const MagickBooleanType), + CLILogEvent(MagickCLI *,const LogEventType,const char *,const char *, + const size_t,const char *,...) + magick_attribute((__format__ (__printf__,6,7))), + CLIThrowException(MagickCLI *,const char *,const char *,const size_t, + const ExceptionType,const char *,const char *,...) + magick_attribute((__format__ (__printf__,7,8))); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/bin/JxrDecApp b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/bin/JxrDecApp new file mode 100644 index 0000000000000000000000000000000000000000..539bbde28f149e915290afc156685b8de331fb1e Binary files /dev/null and b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/bin/JxrDecApp differ diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/bin/JxrEncApp b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/bin/JxrEncApp new file mode 100644 index 0000000000000000000000000000000000000000..f79bafeb6fb94bc9150edc7ea95344d0cf5db582 Binary files /dev/null and b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/bin/JxrEncApp differ diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/JXRGlue.h b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/JXRGlue.h new file mode 100644 index 0000000000000000000000000000000000000000..e75a59032344a19d71af7865170bcb8d04bbbfee --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/JXRGlue.h @@ -0,0 +1,636 @@ +//*@@@+++@@@@****************************************************************** +// +// Copyright © Microsoft Corp. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// • Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// • Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +//*@@@---@@@@****************************************************************** +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include + +//================================================================ +#define WMP_SDK_VERSION 0x0101 +#define PK_SDK_VERSION 0x0101 + +#define sizeof2(array) (sizeof(array)/sizeof(*(array))) +#ifndef max +#define max(a,b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef min +#define min(b,a) ((a) < (b) ? (a) : (b)) +#endif +#ifdef __ANSI__ +#define STRCPY_SAFE(pszDest, cbDest, pszSrc) (strncpy((pszDest), (pszSrc), (cbDest)) == (pszDest) ? 0 : 1) +#else +#define STRCPY_SAFE(pszDest, cbDest, pszSrc) (strcpy_s((pszDest), (cbDest), (pszSrc))) +#endif // __ANSI__ + +//================================================================ +typedef struct tagPKRect +{ + I32 X; + I32 Y; + I32 Width; + I32 Height; +} PKRect; + +//================================================================ +typedef U32 PKIID; + +EXTERN_C const PKIID IID_PKImageScanEncode; +EXTERN_C const PKIID IID_PKImageFrameEncode; + +EXTERN_C const PKIID IID_PKImageWmpEncode; + +EXTERN_C const PKIID IID_PKImageWmpDecode; + +struct IFDEntry +{ + U16 uTag; + U16 uType; + U32 uCount; + U32 uValue; +}; +EXTERN_C const U32 IFDEntryTypeSizes[13]; +EXTERN_C const U32 SizeofIFDEntry; + +//================================================================ +typedef float Float; + +typedef enum tagPKStreamFlags +{ + PKStreamOpenRead = 0x00000000UL, + PKStreamOpenWrite = 0x00000001UL, + PKStreamOpenReadWrite = 0x00000002UL, + PKStreamNoLock = 0x00010000UL, + PKStreamNoSeek = 0x00020000UL, + PKStreamCompress = 0x00040000UL, +} PKStreamFlags; + +/* Undefined formats */ +#define GUID_PKPixelFormatUndefined GUID_PKPixelFormatDontCare + +DEFINE_GUID(GUID_PKPixelFormatDontCare, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x00); + +/* Indexed formats */ +//DEFINE_GUID(GUID_PKPixelFormat1bppIndexed, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x01); +//DEFINE_GUID(GUID_PKPixelFormat2bppIndexed, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x02); +//DEFINE_GUID(GUID_PKPixelFormat4bppIndexed, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x03); +//DEFINE_GUID(GUID_PKPixelFormat8bppIndexed, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x04); + +DEFINE_GUID(GUID_PKPixelFormatBlackWhite, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x05); +//DEFINE_GUID(GUID_PKPixelFormat2bppGray, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x06); +//DEFINE_GUID(GUID_PKPixelFormat4bppGray, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x07); +DEFINE_GUID(GUID_PKPixelFormat8bppGray, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x08); + +/* sRGB formats (gamma is approx. 2.2) */ +/* For a full definition, see the sRGB spec */ + +/* 16bpp formats */ +DEFINE_GUID(GUID_PKPixelFormat16bppRGB555, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x09); +DEFINE_GUID(GUID_PKPixelFormat16bppRGB565, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0a); +DEFINE_GUID(GUID_PKPixelFormat16bppGray, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0b); + +/* 24bpp formats */ +DEFINE_GUID(GUID_PKPixelFormat24bppBGR, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0c); +DEFINE_GUID(GUID_PKPixelFormat24bppRGB, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0d); + +/* 32bpp format */ +DEFINE_GUID(GUID_PKPixelFormat32bppBGR, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0e); +DEFINE_GUID(GUID_PKPixelFormat32bppBGRA, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0f); +DEFINE_GUID(GUID_PKPixelFormat32bppPBGRA, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x10); +DEFINE_GUID(GUID_PKPixelFormat32bppGrayFloat, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x11); +DEFINE_GUID(GUID_PKPixelFormat32bppRGB, 0xd98c6b95, 0x3efe, 0x47d6, 0xbb, 0x25, 0xeb, 0x17, 0x48, 0xab, 0x0c, 0xf1); +DEFINE_GUID(GUID_PKPixelFormat32bppRGBA, 0xf5c7ad2d, 0x6a8d, 0x43dd, 0xa7, 0xa8, 0xa2, 0x99, 0x35, 0x26, 0x1a, 0xe9); +DEFINE_GUID(GUID_PKPixelFormat32bppPRGBA, 0x3cc4a650, 0xa527, 0x4d37, 0xa9, 0x16, 0x31, 0x42, 0xc7, 0xeb, 0xed, 0xba); + +/* 48bpp format */ +DEFINE_GUID(GUID_PKPixelFormat48bppRGBFixedPoint, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x12); + +/* scRGB formats. Gamma is 1.0 */ +/* For a full definition, see the scRGB spec */ + +/* 16bpp format */ +DEFINE_GUID(GUID_PKPixelFormat16bppGrayFixedPoint, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x13); + +/* 32bpp format */ +DEFINE_GUID(GUID_PKPixelFormat32bppRGB101010, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x14); + +/* 48bpp format */ +DEFINE_GUID(GUID_PKPixelFormat48bppRGB, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x15); + +/* 64bpp format */ +DEFINE_GUID(GUID_PKPixelFormat64bppRGBA, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x16); +DEFINE_GUID(GUID_PKPixelFormat64bppPRGBA, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x17); + +/* 96bpp format */ +DEFINE_GUID(GUID_PKPixelFormat96bppRGBFixedPoint, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x18); +DEFINE_GUID(GUID_PKPixelFormat96bppRGBFloat, 0xe3fed78f, 0xe8db, 0x4acf, 0x84, 0xc1, 0xe9, 0x7f, 0x61, 0x36, 0xb3, 0x27); + + /* Floating point scRGB formats */ +DEFINE_GUID(GUID_PKPixelFormat128bppRGBAFloat, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x19); +DEFINE_GUID(GUID_PKPixelFormat128bppPRGBAFloat, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1a); +DEFINE_GUID(GUID_PKPixelFormat128bppRGBFloat, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1b); + + /* CMYK formats. */ +DEFINE_GUID(GUID_PKPixelFormat32bppCMYK, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1c); + + /* Photon formats */ +DEFINE_GUID(GUID_PKPixelFormat64bppRGBAFixedPoint, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1d); +DEFINE_GUID(GUID_PKPixelFormat64bppRGBFixedPoint, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x40); +DEFINE_GUID(GUID_PKPixelFormat128bppRGBAFixedPoint, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1e); +DEFINE_GUID(GUID_PKPixelFormat128bppRGBFixedPoint, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x41); + +DEFINE_GUID(GUID_PKPixelFormat64bppRGBAHalf, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3a); +DEFINE_GUID(GUID_PKPixelFormat64bppRGBHalf, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x42); +DEFINE_GUID(GUID_PKPixelFormat48bppRGBHalf, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3b); + +DEFINE_GUID(GUID_PKPixelFormat32bppRGBE, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3d); + +DEFINE_GUID(GUID_PKPixelFormat16bppGrayHalf, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3e); +DEFINE_GUID(GUID_PKPixelFormat32bppGrayFixedPoint, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3f); + + +/* More CMYK formats and n-Channel formats */ +DEFINE_GUID(GUID_PKPixelFormat64bppCMYK, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1f); + +DEFINE_GUID(GUID_PKPixelFormat24bpp3Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x20); +DEFINE_GUID(GUID_PKPixelFormat32bpp4Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x21); +DEFINE_GUID(GUID_PKPixelFormat40bpp5Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x22); +DEFINE_GUID(GUID_PKPixelFormat48bpp6Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x23); +DEFINE_GUID(GUID_PKPixelFormat56bpp7Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x24); +DEFINE_GUID(GUID_PKPixelFormat64bpp8Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x25); + +DEFINE_GUID(GUID_PKPixelFormat48bpp3Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x26); +DEFINE_GUID(GUID_PKPixelFormat64bpp4Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x27); +DEFINE_GUID(GUID_PKPixelFormat80bpp5Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x28); +DEFINE_GUID(GUID_PKPixelFormat96bpp6Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x29); +DEFINE_GUID(GUID_PKPixelFormat112bpp7Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2a); +DEFINE_GUID(GUID_PKPixelFormat128bpp8Channels, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2b); + +DEFINE_GUID(GUID_PKPixelFormat40bppCMYKAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2c); +DEFINE_GUID(GUID_PKPixelFormat80bppCMYKAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2d); + +DEFINE_GUID(GUID_PKPixelFormat32bpp3ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2e); +DEFINE_GUID(GUID_PKPixelFormat40bpp4ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2f); +DEFINE_GUID(GUID_PKPixelFormat48bpp5ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x30); +DEFINE_GUID(GUID_PKPixelFormat56bpp6ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x31); +DEFINE_GUID(GUID_PKPixelFormat64bpp7ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x32); +DEFINE_GUID(GUID_PKPixelFormat72bpp8ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x33); + +DEFINE_GUID(GUID_PKPixelFormat64bpp3ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x34); +DEFINE_GUID(GUID_PKPixelFormat80bpp4ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x35); +DEFINE_GUID(GUID_PKPixelFormat96bpp5ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x36); +DEFINE_GUID(GUID_PKPixelFormat112bpp6ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x37); +DEFINE_GUID(GUID_PKPixelFormat128bpp7ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x38); +DEFINE_GUID(GUID_PKPixelFormat144bpp8ChannelsAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x39); + +/* YCrCb from Advanced Profile */ +DEFINE_GUID(GUID_PKPixelFormat12bppYCC420, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x44); +DEFINE_GUID(GUID_PKPixelFormat16bppYCC422, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x45); +DEFINE_GUID(GUID_PKPixelFormat20bppYCC422, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x46); +DEFINE_GUID(GUID_PKPixelFormat32bppYCC422, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x47); +DEFINE_GUID(GUID_PKPixelFormat24bppYCC444, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x48); +DEFINE_GUID(GUID_PKPixelFormat30bppYCC444, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x49); +DEFINE_GUID(GUID_PKPixelFormat48bppYCC444, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x4a); +DEFINE_GUID(GUID_PKPixelFormat16bpp48bppYCC444FixedPoint, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x4b); +DEFINE_GUID(GUID_PKPixelFormat20bppYCC420Alpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x4c); +DEFINE_GUID(GUID_PKPixelFormat24bppYCC422Alpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x4d); +DEFINE_GUID(GUID_PKPixelFormat30bppYCC422Alpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x4e); +DEFINE_GUID(GUID_PKPixelFormat48bppYCC422Alpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x4f); +DEFINE_GUID(GUID_PKPixelFormat32bppYCC444Alpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x50); +DEFINE_GUID(GUID_PKPixelFormat40bppYCC444Alpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x51); +DEFINE_GUID(GUID_PKPixelFormat64bppYCC444Alpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x52); +DEFINE_GUID(GUID_PKPixelFormat64bppYCC444AlphaFixedPoint, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x53); + +//YUV +#define GUID_PKPixelFormat12bppYUV420 GUID_PKPixelFormat12bppYCC420 +#define GUID_PKPixelFormat16bppYUV422 GUID_PKPixelFormat16bppYCC422 +#define GUID_PKPixelFormat24bppYUV444 GUID_PKPixelFormat24bppYCC444 + +/* CMYKDIRECT from Advanced Profile */ +DEFINE_GUID(GUID_PKPixelFormat32bppCMYKDIRECT, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x54); +DEFINE_GUID(GUID_PKPixelFormat64bppCMYKDIRECT, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x55); +DEFINE_GUID(GUID_PKPixelFormat40bppCMYKDIRECTAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x56); +DEFINE_GUID(GUID_PKPixelFormat80bppCMYKDIRECTAlpha, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x43); + +// PhotometricInterpretation +#define PK_PI_W0 0 // WhiteIsZero +#define PK_PI_B0 1 // BlackIsZero +#define PK_PI_RGB 2 +#define PK_PI_RGBPalette 3 +#define PK_PI_TransparencyMask 4 +#define PK_PI_CMYK 5 +#define PK_PI_YCbCr 6 +#define PK_PI_CIELab 8 + +#define PK_PI_NCH 100 +#define PK_PI_RGBE 101 + +#define PK_pixfmtNul 0x00000000 +#define PK_pixfmtHasAlpha 0x00000010 +#define PK_pixfmtPreMul 0x00000020 +#define PK_pixfmtBGR 0x00000040 +#define PK_pixfmtNeedConvert 0x80000000 + +#define LOOKUP_FORWARD 0 +#define LOOKUP_BACKWARD_TIF 1 + +typedef unsigned long WMP_GRBIT; +typedef GUID PKPixelFormatGUID; + +typedef struct tagPKPixelInfo +{ + const PKPixelFormatGUID* pGUIDPixFmt; + + size_t cChannel; + COLORFORMAT cfColorFormat; + BITDEPTH_BITS bdBitDepth; + U32 cbitUnit; + + WMP_GRBIT grBit; + + // TIFF + U32 uInterpretation; + U32 uSamplePerPixel; + U32 uBitsPerSample; + U32 uSampleFormat; +} PKPixelInfo; + +//================================================================ +ERR PKAlloc(void** ppv, size_t cb); +ERR PKFree(void** ppv); + +//---------------------------------------------------------------- +//ERR GetPixelInfo(PKPixelFormatGUID enPixelFormat, const PKPixelInfo** ppPI); +ERR PixelFormatLookup(PKPixelInfo* pPI, U8 uLookupType); +const PKPixelFormatGUID* GetPixelFormatFromHash(const U8 uPFHash); + +ERR GetImageEncodeIID(const char* szExt, const PKIID** ppIID); +ERR GetImageDecodeIID(const char* szExt, const PKIID** ppIID); + + +//================================================================ +#ifdef __ANSI__ +struct tagPKFactory; +struct tagPKCodecFactory; +struct tagPKImageDecode; +struct tagPKImageEncode; +struct tagPKFormatConverter; +#define PKFactory struct tagPKFactory +#define PKCodecFactory struct tagPKCodecFactory +#define PKImageDecode struct tagPKImageDecode +#define PKImageEncode struct tagPKImageEncode +#define PKFormatConverter struct tagPKFormatConverter +#else // __ANSI__ +typedef struct tagPKFactory PKFactory; +typedef struct tagPKCodecFactory PKCodecFactory; +typedef struct tagPKImageDecode PKImageDecode; +typedef struct tagPKImageEncode PKImageEncode; +typedef struct tagPKFormatConverter PKFormatConverter; +#endif // __ANSI__ +//================================================================ +typedef struct tagPKStream +{ + ERR (*InitializeFromFilename)(const char*, ULong); + + ERR (*Release)(void); + + FILE* fp; +} PKStream; + + +//================================================================ +typedef struct tagPKFactory +{ + ERR (*CreateStream)(PKStream**); + + ERR (*CreateStreamFromFilename)(struct WMPStream**, const char*, const char*); + ERR (*CreateStreamFromMemory)(struct WMPStream**, void*, size_t); + + ERR (*Release)(PKFactory**); +#ifdef __ANSI__ +#undef PKFactory +#endif // __ANSI__ +} PKFactory; + +//---------------------------------------------------------------- +ERR PKCreateFactory_CreateStream(PKStream** ppStream); +ERR PKCreateFactory_Release(PKFactory** ppFactory); + +EXTERN_C ERR PKCreateFactory(PKFactory**, U32); + + +//================================================================ +typedef struct tagPKCodecFactory +{ + ERR (*CreateCodec)(const PKIID*, void**); + ERR (*CreateDecoderFromFile)(const char*, PKImageDecode**); + ERR (*CreateFormatConverter)(PKFormatConverter**); + + ERR (*Release)(PKCodecFactory**); +#ifdef __ANSI__ +#undef PKCodecFactory +#endif // __ANSI__ +} PKCodecFactory; + +//---------------------------------------------------------------- +ERR PKCodecFactory_CreateCodec(const PKIID* iid, void** ppv); +ERR PKCreateCodecFactory_Release(PKCodecFactory** ppCFactory); + +EXTERN_C ERR PKCreateCodecFactory(PKCodecFactory**, U32); + +//================================================================ + +typedef enum BANDEDENCSTATE +{ + BANDEDENCSTATE_UNINITIALIZED = 0, + BANDEDENCSTATE_INIT, + BANDEDENCSTATE_ENCODING, + BANDEDENCSTATE_TERMINATED, + BANDEDENCSTATE_NONBANDEDENCODE, +} BANDEDENCSTATE; + +typedef struct tagPKImageEncode +{ + //ERR (*GetPixelFormat)(MILPixelFormat*)); + ERR (*Initialize)(PKImageEncode*, struct WMPStream*, void*, size_t); + ERR (*Terminate)(PKImageEncode*); + + ERR (*SetPixelFormat)(PKImageEncode*, PKPixelFormatGUID); + ERR (*SetSize)(PKImageEncode*, I32, I32); + ERR (*SetResolution)(PKImageEncode*, Float, Float); + ERR (*SetColorContext)(PKImageEncode *pIE, const U8 *pbColorContext, + U32 cbColorContext); + ERR (*SetDescriptiveMetadata)(PKImageEncode *pIE, + const DESCRIPTIVEMETADATA *pDescMetadata); + + ERR (*WritePixels)(PKImageEncode*, U32, U8*, U32); + ERR (*WriteSource)(PKImageEncode*, PKFormatConverter*, PKRect*); + + // Banded encode API - currently only implemented for WMP encoder + ERR (*WritePixelsBandedBegin)(PKImageEncode* pEncoder, struct WMPStream *pPlanarAlphaTempFile); + ERR (*WritePixelsBanded)(PKImageEncode* pEncoder, U32 cLines, U8* pbPixels, U32 cbStride, Bool fLastCall); + ERR (*WritePixelsBandedEnd)(PKImageEncode* pEncoder); +#define TEMPFILE_COPYBUF_SIZE 8192 // Means when using tempfile for planar alpha banded encode, copy this many bytes at a time + + ERR (*Transcode)(PKImageEncode*, PKImageDecode*, CWMTranscodingParam*); + + ERR (*CreateNewFrame)(PKImageEncode*, void*, size_t); + + ERR (*Release)(PKImageEncode**); + + struct WMPStream* pStream; + size_t offStart; + + PKPixelFormatGUID guidPixFormat; + + U32 uWidth; + U32 uHeight; + U32 idxCurrentLine; + + Float fResX; + Float fResY; + + U32 cFrame; + + Bool fHeaderDone; + size_t offPixel; + size_t cbPixel; + U8 *pbColorContext; + U32 cbColorContext; + U8 *pbEXIFMetadata; + U32 cbEXIFMetadataByteCount; + U8 *pbGPSInfoMetadata; + U32 cbGPSInfoMetadataByteCount; + U8 *pbIPTCNAAMetadata; + U32 cbIPTCNAAMetadataByteCount; + U8 *pbXMPMetadata; + U32 cbXMPMetadataByteCount; + U8 *pbPhotoshopMetadata; + U32 cbPhotoshopMetadataByteCount; + DESCRIPTIVEMETADATA sDescMetadata; + + Bool bWMP;//for the encoder in decoding + + struct + { + WmpDEMisc wmiDEMisc; + CWMImageInfo wmiI; + CWMIStrCodecParam wmiSCP; + CTXSTRCODEC ctxSC; + CWMImageInfo wmiI_Alpha; + CWMIStrCodecParam wmiSCP_Alpha; + CTXSTRCODEC ctxSC_Alpha; + + Bool bHasAlpha; + Long nOffImage; + Long nCbImage; + Long nOffAlpha; + Long nCbAlpha; + + ORIENTATION oOrientation; + + // Banded encode state variables + BANDEDENCSTATE eBandedEncState; + struct WMPStream *pPATempFile; + } WMP; + +#ifdef __ANSI__ +#undef PKImageEncode +#endif // __ANSI__ +} PKImageEncode; + +//---------------------------------------------------------------- +ERR PKImageEncode_Create_WMP(PKImageEncode** ppIE); + +ERR PKImageEncode_Initialize(PKImageEncode* pIE, struct WMPStream* pStream, void* pvParam, size_t cbParam); +ERR PKImageEncode_Terminate(PKImageEncode* pIE); +ERR PKImageEncode_SetPixelFormat(PKImageEncode* pIE, PKPixelFormatGUID enPixelFormat); +ERR PKImageEncode_SetSize(PKImageEncode* pIE, I32 iWidth, I32 iHeight); +ERR PKImageEncode_SetResolution(PKImageEncode* pIE, Float rX, Float rY); +ERR PKImageEncode_SetColorContext(PKImageEncode *pIE, const U8 *pbColorContext, U32 cbColorContext); +ERR PKImageEncode_SetDescriptiveMetadata(PKImageEncode *pIE, const DESCRIPTIVEMETADATA *pDescMetadata); +ERR PKImageEncode_WritePixels(PKImageEncode* pIE, U32 cLine, U8* pbPixel, U32 cbStride); +ERR PKImageEncode_CreateNewFrame(PKImageEncode* pIE, void* pvParam, size_t cbParam); +ERR PKImageEncode_Release(PKImageEncode** ppIE); + +ERR PKImageEncode_SetXMPMetadata_WMP(PKImageEncode *pIE, const U8 *pbXMPMetadata, U32 cbXMPMetadata); +ERR PKImageEncode_SetEXIFMetadata_WMP(PKImageEncode *pIE, const U8 *pbEXIFMetadata, U32 cbEXIFMetadata); +ERR PKImageEncode_SetGPSInfoMetadata_WMP(PKImageEncode *pIE, const U8 *pbGPSInfoMetadata, U32 cbGPSInfoMetadata); +ERR PKImageEncode_SetIPTCNAAMetadata_WMP(PKImageEncode *pIE, const U8 *pbIPTCNAAMetadata, U32 cbIPTCNAAMetadata); +ERR PKImageEncode_SetPhotoshopMetadata_WMP(PKImageEncode *pIE, const U8 *pbPhotoshopMetadata, U32 cbPhotoshopMetadata); + +void FreeDescMetadata(DPKPROPVARIANT *pvar); + +ERR PKImageEncode_Create(PKImageEncode** ppIE); + +//================================================================ +typedef struct tagPKImageDecode +{ + ERR (*Initialize)(PKImageDecode*, struct WMPStream* pStream); + + ERR (*GetPixelFormat)(PKImageDecode*, PKPixelFormatGUID*); + ERR (*GetSize)(PKImageDecode*, I32*, I32*); + ERR (*GetResolution)(PKImageDecode*, Float*, Float*); + ERR (*GetColorContext)(PKImageDecode *pID, U8 *pbColorContext, + U32 *pcbColorContext); + ERR (*GetDescriptiveMetadata)(PKImageDecode *pIE, + DESCRIPTIVEMETADATA *pDescMetadata); + + ERR (*GetRawStream)(PKImageDecode*, struct WMPStream**); + + ERR (*Copy)(PKImageDecode*, const PKRect*, U8*, U32); + + ERR (*GetFrameCount)(PKImageDecode*, U32*); + ERR (*SelectFrame)(PKImageDecode*, U32); + + ERR (*Release)(PKImageDecode**); + + struct WMPStream* pStream; + Bool fStreamOwner; + size_t offStart; + + PKPixelFormatGUID guidPixFormat; + + U32 uWidth; + U32 uHeight; + U32 idxCurrentLine; + + Float fResX; + Float fResY; + + U32 cFrame; + + struct + { + WmpDEMisc wmiDEMisc; + CWMImageInfo wmiI; + CWMIStrCodecParam wmiSCP; + CTXSTRCODEC ctxSC; + CWMImageInfo wmiI_Alpha; + CWMIStrCodecParam wmiSCP_Alpha; + CTXSTRCODEC ctxSC_Alpha; + + Bool bHasAlpha; + Long nOffImage; + Long nCbImage; + Long nOffAlpha; + Long nCbAlpha; + Bool bIgnoreOverlap; + size_t DecoderCurrMBRow; + size_t DecoderCurrAlphaMBRow; + size_t cMarker; + size_t cLinesDecoded; + size_t cLinesCropped; // Lines may be cropped from the top - buffer for subsequent decodes must be adjusted + Bool fFirstNonZeroDecode; + + Bool fOrientationFromContainer; + ORIENTATION oOrientationFromContainer; // Tag 0xBC02 in HD Photo container + + DESCRIPTIVEMETADATA sDescMetadata; + } WMP; + +#ifdef __ANSI__ +#undef PKImageDecode +#endif // __ANSI__ +} PKImageDecode; + +//---------------------------------------------------------------- +ERR PKImageDecode_Create_WMP(PKImageDecode** ppID); + +ERR PKImageDecode_Initialize(PKImageDecode* pID, struct WMPStream* pStream); +ERR PKImageDecode_GetPixelFormat(PKImageDecode* pID, PKPixelFormatGUID* pPF); +ERR PKImageDecode_GetSize(PKImageDecode* pID, I32* piWidth, I32* piHeight); +ERR PKImageDecode_GetResolution(PKImageDecode* pID, Float* pfrX, Float* pfrY); +ERR PKImageDecode_GetColorContext(PKImageDecode *pID, U8 *pbColorContext, U32 *pcbColorContext); +ERR PKImageDecode_GetDescriptiveMetadata(PKImageDecode *pID, DESCRIPTIVEMETADATA *pDescMetadata); +ERR PKImageDecode_Copy(PKImageDecode* pID, const PKRect* pRect, U8* pb, U32 cbStride); +ERR PKImageDecode_GetFrameCount(PKImageDecode* pID, U32* puCount); +ERR PKImageDecode_SelectFrame(PKImageDecode* pID, U32 uFrame); +ERR PKImageDecode_Release(PKImageDecode** ppID); + +ERR PKImageDecode_Create(PKImageDecode** ppID); +ERR PKCodecFactory_CreateDecoderFromFile(const char* szFilename, PKImageDecode** ppDecoder); + +//================================================================ +typedef struct tagPKFormatConverter +{ + ERR (*Initialize)(PKFormatConverter*, PKImageDecode*, char *pExt, PKPixelFormatGUID); + ERR (*InitializeConvert)(PKFormatConverter* pFC, const PKPixelFormatGUID enPFFrom, + char *pExt, PKPixelFormatGUID enPFTTo); + + ERR (*GetPixelFormat)(PKFormatConverter*, PKPixelFormatGUID*); + ERR (*GetSourcePixelFormat)(PKFormatConverter*, PKPixelFormatGUID*); + ERR (*GetSize)(PKFormatConverter*, I32*, I32*); + ERR (*GetResolution)(PKFormatConverter*, Float*, Float*); + + ERR (*Copy)(PKFormatConverter*, const PKRect*, U8*, U32); + ERR (*Convert)(PKFormatConverter*, const PKRect*, U8*, U32); + + ERR (*Release)(PKFormatConverter**); + + PKImageDecode* pDecoder; + PKPixelFormatGUID enPixelFormat; +#ifdef __ANSI__ +#undef PKFormatConverter +#endif // __ANSI__ +} PKFormatConverter; + +//---------------------------------------------------------------- +ERR PKImageEncode_Transcode(PKImageEncode* pIE, PKFormatConverter* pFC, PKRect* pRect); +ERR PKImageEncode_WriteSource(PKImageEncode* pIE, PKFormatConverter* pFC, PKRect* pRect); +ERR PKFormatConverter_Initialize(PKFormatConverter* pFC, PKImageDecode* pID, char *pExt, PKPixelFormatGUID enPF); +ERR PKFormatConverter_InitializeConvert(PKFormatConverter* pFC, const PKPixelFormatGUID enPFFrom, + char *pExt, PKPixelFormatGUID enPFTo); +ERR PKFormatConverter_GetPixelFormat(PKFormatConverter* pFC, PKPixelFormatGUID* pPF); +ERR PKFormatConverter_GetSourcePixelFormat(PKFormatConverter* pFC, PKPixelFormatGUID* pPF); +ERR PKFormatConverter_GetSize(PKFormatConverter* pFC, I32* piWidth, I32* piHeight); +ERR PKFormatConverter_GetResolution(PKFormatConverter* pFC, Float* pfrX, Float* pfrY); +ERR PKFormatConverter_Copy(PKFormatConverter* pFC, const PKRect* pRect, U8* pb, U32 cbStride); +ERR PKFormatConverter_Convert(PKFormatConverter* pFC, const PKRect* pRect, U8* pb, U32 cbStride); +ERR PKFormatConverter_Release(PKFormatConverter** ppFC); + +// Think of this as static member of PKFormatConverter "class" +ERR PKFormatConverter_EnumConversions(const PKPixelFormatGUID *pguidSourcePF, + const U32 iIndex, + const PKPixelFormatGUID **ppguidTargetPF); + +ERR PKCodecFactory_CreateFormatConverter(PKFormatConverter** ppFConverter); + +//---------------------------------------------------------------- +ERR PKAlloc(void** ppv, size_t cb); +ERR PKFree(void** ppv); +ERR PKAllocAligned(void** ppv, size_t cb, size_t iAlign); +ERR PKFreeAligned(void** ppv); + +#ifdef __cplusplus +} // extern "C" +#endif + diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/JXRMeta.h b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/JXRMeta.h new file mode 100644 index 0000000000000000000000000000000000000000..bde0a56fe04c3f20c25d78ea122ac2b5ea940b34 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/JXRMeta.h @@ -0,0 +1,258 @@ +//*@@@+++@@@@****************************************************************** +// +// Copyright © Microsoft Corp. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// • Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// • Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +//*@@@---@@@@****************************************************************** +#pragma once + +#include +#ifndef WIN32 +#include +#endif + +#ifndef UNREFERENCED_PARAMETER +#define UNREFERENCED_PARAMETER(P) { (P) = (P); } +#endif UNREFERENCED_PARAMETER + +//================================================================ +// Container +//================================================================ + +// Keep these in sort order so that we can easily confirm we are outputting tags in ascending order +#define WMP_tagNull 0 + +#define WMP_tagDocumentName 0x010d // Descriptive metadata tag +#define WMP_tagImageDescription 0x010e // Descriptive metadata tag +#define WMP_tagCameraMake 0x010f // Descriptive metadata tag +#define WMP_tagCameraModel 0x0110 // Descriptive metadata tag +#define WMP_tagPageName 0x011d // Descriptive metadata tag +#define WMP_tagPageNumber 0x0129 // Descriptive metadata tag +#define WMP_tagSoftware 0x0131 // Descriptive metadata tag +#define WMP_tagDateTime 0x0132 // Descriptive metadata tag +#define WMP_tagArtist 0x013b // Descriptive metadata tag +#define WMP_tagHostComputer 0x013c // Descriptive metadata tag + +#define WMP_tagXMPMetadata 0x02bc + +#define WMP_tagRatingStars 0x4746 // Descriptive metadata tag +#define WMP_tagRatingValue 0x4749 // Descriptive metadata tag +#define WMP_tagCopyright 0x8298 // Descriptive metadata tag + +#define WMP_tagEXIFMetadata 0x8769 +#define WMP_tagGPSInfoMetadata 0x8825 +#define WMP_tagIPTCNAAMetadata 0x83bb +#define WMP_tagPhotoshopMetadata 0x8649 +#define WMP_tagInteroperabilityIFD 0xa005 +#define WMP_tagIccProfile 0x8773 // Need to use same tag as TIFF!! + +#define WMP_tagCaption 0x9c9b // Descriptive metadata tag + +#define WMP_tagPixelFormat 0xbc01 +#define WMP_tagTransformation 0xbc02 +#define WMP_tagCompression 0xbc03 +#define WMP_tagImageType 0xbc04 + +#define WMP_tagImageWidth 0xbc80 +#define WMP_tagImageHeight 0xbc81 + +#define WMP_tagWidthResolution 0xbc82 +#define WMP_tagHeightResolution 0xbc83 + +#define WMP_tagImageOffset 0xbcc0 +#define WMP_tagImageByteCount 0xbcc1 +#define WMP_tagAlphaOffset 0xbcc2 +#define WMP_tagAlphaByteCount 0xbcc3 +#define WMP_tagImageDataDiscard 0xbcc4 +#define WMP_tagAlphaDataDiscard 0xbcc5 + + +#define WMP_typBYTE 1 +#define WMP_typASCII 2 +#define WMP_typSHORT 3 +#define WMP_typLONG 4 +#define WMP_typRATIONAL 5 +#define WMP_typSBYTE 6 +#define WMP_typUNDEFINED 7 +#define WMP_typSSHORT 8 +#define WMP_typSLONG 9 +#define WMP_typSRATIONAL 10 +#define WMP_typFLOAT 11 +#define WMP_typDOUBLE 12 + + +#define WMP_valCompression 0xbc +#define WMP_valWMPhotoID WMP_valCompression + + +#ifdef WIN32 +#define __in_win __in +#define __out_win __out +#endif + + +//================================================================ + +typedef enum +{ + DPKVT_EMPTY = 0, + DPKVT_UI1 = 17, + DPKVT_UI2 = 18, + DPKVT_UI4 = 19, + DPKVT_LPSTR = 30, + DPKVT_LPWSTR = 31, + DPKVT_BYREF = 0x4000, +} DPKVARTYPE; + +typedef struct DPKPROPVARIANT +{ + DPKVARTYPE vt; + union + { + U8 bVal; // DPKVT_UI1 + U16 uiVal; // DPKVT_UI2 + U32 ulVal; // DPKVT_UI4 + char *pszVal; // DPKVT_LPSTR + U16 *pwszVal; // DPKVT_LPWSTR + U8 *pbVal; // DPKVT_BYREF | DPKVT_UI1 + } VT; +} DPKPROPVARIANT; + +typedef struct DESCRIPTIVEMETADATA +{ + DPKPROPVARIANT pvarImageDescription; // WMP_tagImageDescription + DPKPROPVARIANT pvarCameraMake; // WMP_tagCameraMake + DPKPROPVARIANT pvarCameraModel; // WMP_tagCameraModel + DPKPROPVARIANT pvarSoftware; // WMP_tagSoftware + DPKPROPVARIANT pvarDateTime; // WMP_tagDateTime + DPKPROPVARIANT pvarArtist; // WMP_tagArtist + DPKPROPVARIANT pvarCopyright; // WMP_tagCopyright + DPKPROPVARIANT pvarRatingStars; // WMP_tagRatingStars + DPKPROPVARIANT pvarRatingValue; // WMP_tagRatingValue + DPKPROPVARIANT pvarCaption; // WMP_tagCaption + DPKPROPVARIANT pvarDocumentName; // WMP_tagDocumentName + DPKPROPVARIANT pvarPageName; // WMP_tagPageName + DPKPROPVARIANT pvarPageNumber; // WMP_tagPageNumber + DPKPROPVARIANT pvarHostComputer; // WMP_tagHostComputer +} DESCRIPTIVEMETADATA; + +typedef struct tagWmpDE +{ + U16 uTag; + U16 uType; + U32 uCount; + U32 uValueOrOffset; +} WmpDE; + +typedef struct tagWmpDEMisc +{ + U32 uImageOffset; + U32 uImageByteCount; + U32 uAlphaOffset; + U32 uAlphaByteCount; + + U32 uOffPixelFormat; + U32 uOffImageByteCount; + U32 uOffAlphaOffset; + U32 uOffAlphaByteCount; + U32 uColorProfileOffset; + U32 uColorProfileByteCount; + U32 uXMPMetadataOffset; + U32 uXMPMetadataByteCount; + U32 uEXIFMetadataOffset; + U32 uEXIFMetadataByteCount; + U32 uGPSInfoMetadataOffset; + U32 uGPSInfoMetadataByteCount; + U32 uIPTCNAAMetadataOffset; + U32 uIPTCNAAMetadataByteCount; + U32 uPhotoshopMetadataOffset; + U32 uPhotoshopMetadataByteCount; + U32 uDescMetadataOffset; + U32 uDescMetadataByteCount; +} WmpDEMisc; + + +//================================================================ +EXTERN_C ERR GetUShort( + __in_ecount(1) struct WMPStream* pWS, + size_t offPos, + __out_ecount(1) U16* puValue +); + +EXTERN_C ERR PutUShort( + __in_ecount(1) struct WMPStream* pWS, + size_t offPos, + U16 uValue +); + +EXTERN_C ERR GetULong( + __in_ecount(1) struct WMPStream* pWS, + size_t offPos, + __out_ecount(1) U32* puValue +); + +EXTERN_C ERR PutULong( + __in_ecount(1) struct WMPStream* pWS, + size_t offPos, + U32 uValue +); + +EXTERN_C ERR WriteWmpDE( + __in_ecount(1) struct WMPStream* pWS, + size_t *pOffPos, + const __in_ecount(1) WmpDE* pDE, + const U8 *pbData, + U32 *pcbDataWrittenToOffset +); + + +EXTERN_C ERR ReadPropvar(__in_ecount(1) struct WMPStream* pWS, + const __in_win U16 uType, + const __in_win U32 uCount, + const __in_win U32 uValue, + __out_win DPKPROPVARIANT *pvar); + + + +// read and write little endian words/dwords from a buffer on both big and little endian cpu's +// with full buffer overflow checking + +#define WMP_INTEL_ENDIAN ('I') + +EXTERN_C ERR getbfcpy(U8* pbdest, const U8* pb, size_t cb, size_t ofs, U32 n); +EXTERN_C ERR getbfw(const U8* pb, size_t cb, size_t ofs, U16* pw); +EXTERN_C ERR getbfdw(const U8* pb, size_t cb, size_t ofs, U32* pdw); +EXTERN_C ERR getbfwbig(const U8* pb, size_t cb, size_t ofs, U16* pw); +EXTERN_C ERR getbfdwbig(const U8* pb, size_t cb, size_t ofs, U32* pdw); +EXTERN_C ERR getbfwe(const U8* pb, size_t cb, size_t ofs, U16* pw, U8 endian); +EXTERN_C ERR getbfdwe(const U8* pb, size_t cb, size_t ofs, U32* pdw, U8 endian); +EXTERN_C ERR setbfcpy(U8* pb, size_t cb, size_t ofs, const U8* pbset, size_t cbset); +EXTERN_C ERR setbfw(U8* pb, size_t cb, size_t ofs, U16 dw); +EXTERN_C ERR setbfdw(U8* pb, size_t cb, size_t ofs, U32 dw); +EXTERN_C ERR setbfwbig(U8* pb, size_t cb, size_t ofs, U16 dw); +EXTERN_C ERR setbfdwbig(U8* pb, size_t cb, size_t ofs, U32 dw); +EXTERN_C ERR BufferCalcIFDSize(const U8* pb, size_t cb, U32 uIFDOfs, U8 endian, U32 *pcbifd); +EXTERN_C ERR StreamCalcIFDSize(struct WMPStream* pWS, U32 uIFDOfs, U32 *pcbifd); +EXTERN_C ERR BufferCopyIFD(const U8* pbsrc, U32 cbsrc, U32 ofssrc, U8 endian, U8* pbdest, U32 cbdest, U32* pofsdest); +EXTERN_C ERR StreamCopyIFD(struct WMPStream* pWS, U32 ofssrc, U8* pbdest, U32 cbdest, U32* pofsdest); diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/JXRTest.h b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/JXRTest.h new file mode 100644 index 0000000000000000000000000000000000000000..d1c2724b148f5a9b32bec06461ea33bf18406ec2 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/JXRTest.h @@ -0,0 +1,164 @@ +//*@@@+++@@@@****************************************************************** +// +// Copyright © Microsoft Corp. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// • Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// • Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +//*@@@---@@@@****************************************************************** +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +EXTERN_C const PKIID IID_PKImageBmpEncode; +EXTERN_C const PKIID IID_PKImagePnmEncode; +EXTERN_C const PKIID IID_PKImageTifEncode; + +EXTERN_C const PKIID IID_PKImageBmpDecode; +EXTERN_C const PKIID IID_PKImagePnmDecode; +EXTERN_C const PKIID IID_PKImageTifDecode; + +//---------------------------------------------------------------- +ERR GetTestEncodeIID(const char* szExt, const PKIID** ppIID); +ERR GetTestDecodeIID(const char* szExt, const PKIID** ppIID); + +//================================================================ +#ifdef __ANSI__ +#define PKTestDecode struct tagPKTestDecode +#else // __ANSI__ +typedef struct tagPKTestDecode PKTestDecode; +#endif // __ANSI__ +//================================================================ + +//---------------------------------------------------------------- +ERR PKTestFactory_CreateCodec(const PKIID* iid, void** ppv); + +EXTERN_C ERR PKCreateTestFactory(PKCodecFactory**, U32); + +//---------------------------------------------------------------- +ERR PKImageEncode_Create_BMP(PKImageEncode** ppIE); +ERR PKImageEncode_Create_PNM(PKImageEncode** ppIE); +ERR PKImageEncode_Create_TIF(PKImageEncode** ppIE); +ERR PKImageEncode_Create_HDR(PKImageEncode** ppIE); +ERR PKImageEncode_Create_IYUV(PKImageEncode** ppIE); +ERR PKImageEncode_Create_YUV422(PKImageEncode** ppIE); +ERR PKImageEncode_Create_YUV444(PKImageEncode** ppIE); + +//================================================================ +typedef struct tagPKTestDecode +{ + ERR (*Initialize)(PKTestDecode*, struct WMPStream* pStream); + + ERR (*GetPixelFormat)(PKImageDecode*, PKPixelFormatGUID*); + ERR (*GetSize)(PKImageDecode*, I32*, I32*); + ERR (*GetResolution)(PKImageDecode*, Float*, Float*); + ERR (*GetColorContext)(PKImageDecode *pID, U8 *pbColorContext, + U32 *pcbColorContext); + ERR (*GetDescriptiveMetadata)(PKImageDecode *pIE, + DESCRIPTIVEMETADATA *pDescMetadata); + + ERR (*GetRawStream)(PKImageDecode*, struct WMPStream**); + + ERR (*Copy)(PKTestDecode*, const PKRect*, U8*, U32); + + ERR (*GetFrameCount)(PKImageDecode*, U32*); + ERR (*SelectFrame)(PKImageDecode*, U32); + + ERR (*Release)(PKTestDecode**); + + struct WMPStream* pStream; + Bool fStreamOwner; + size_t offStart; + + PKPixelFormatGUID guidPixFormat; + + U32 uWidth; + U32 uHeight; + U32 idxCurrentLine; + + Float fResX; + Float fResY; + + U32 cFrame; + + union + { + struct + { + size_t offPixel; + size_t cbPixel; + } BMP; + struct + { + size_t offPixel; + size_t cbPixel; + } HDR; + struct + { + size_t offPixel; + } PNM; + struct + { + U32 uRowsPerStrip; + U32* uStripOffsets; + U32* uStripByteCounts; + + U32 uInterpretation; + U32 uSamplePerPixel; + U32 uBitsPerSample; + U32 uSampleFormat; + U32 uExtraSamples; + + U16 uResolutionUnit; + Float fResX; + Float fResY; + Bool fLittleEndian; + } TIF; + } EXT; +#ifdef __ANSI__ +#undef PKTestDecode +#endif // __ANSI__ +} PKTestDecode; + +//---------------------------------------------------------------- +ERR PKImageDecode_Create_BMP(PKTestDecode** ppID); +ERR PKImageDecode_Create_PNM(PKTestDecode** ppID); +ERR PKImageDecode_Create_TIF(PKTestDecode** ppID); +ERR PKImageDecode_Create_HDR(PKTestDecode** ppID); +ERR PKImageDecode_Create_IYUV(PKTestDecode** ppID); +ERR PKImageDecode_Create_YUV422(PKTestDecode** ppID); +ERR PKImageDecode_Create_YUV444(PKTestDecode** ppID); + +ERR PKTestDecode_Initialize(PKTestDecode* pID, struct WMPStream* pStream); +ERR PKTestDecode_Copy(PKTestDecode* pID, const PKRect* pRect, U8* pb, U32 cbStride); +ERR PKTestDecode_Release(PKTestDecode** ppID); + +ERR PKTestDecode_Create(PKTestDecode** ppID); + +#ifdef __cplusplus +} // extern "C" +#endif + diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/guiddef.h b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/guiddef.h new file mode 100644 index 0000000000000000000000000000000000000000..81ef9baef138c22b53258452045758b0d40a63d2 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/guiddef.h @@ -0,0 +1,230 @@ +//+--------------------------------------------------------------------------- +// +// Copyright © Microsoft Corp. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// • Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// • Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// File: guiddef.h +// +// Contents: GUID definition +// +//---------------------------------------------------------------------------- + +#ifndef GUID_DEFINED +#define GUID_DEFINED +#if defined(__midl) +typedef struct { + unsigned long Data1; + unsigned short Data2; + unsigned short Data3; + byte Data4[ 8 ]; +} GUID; +#else +typedef struct _GUID { +#if defined(_WINDOWS_) || !__LP64__ + unsigned long Data1; +#else + unsigned int Data1; +#endif + unsigned short Data2; + unsigned short Data3; + unsigned char Data4[ 8 ]; +} GUID; +#endif +#endif + +#ifndef FAR +#if defined(_WIN32) || defined(__ANSI__) +#define FAR +#else +#define FAR _far +#endif +#endif + +#ifndef DECLSPEC_SELECTANY +#if (_MSC_VER >= 1100) +#define DECLSPEC_SELECTANY __declspec(selectany) +#else +#define DECLSPEC_SELECTANY +#endif +#endif + +#ifndef EXTERN_C +#ifdef __cplusplus +#define EXTERN_C extern "C" +#else +#define EXTERN_C extern +#endif +#endif + +#ifdef DEFINE_GUID +#undef DEFINE_GUID +#endif + +#ifdef INITGUID +#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ + const GUID DECLSPEC_SELECTANY name \ + = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } +#else +#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ + EXTERN_C const GUID FAR name +#endif // INITGUID + +#define DEFINE_OLEGUID(name, l, w1, w2) DEFINE_GUID(name, l, w1, w2, 0xC0,0,0,0,0,0,0,0x46) + +#ifndef _GUIDDEF_H_ +#define _GUIDDEF_H_ + +#ifndef __LPGUID_DEFINED__ +#define __LPGUID_DEFINED__ +typedef GUID *LPGUID; +#endif + +#ifndef __LPCGUID_DEFINED__ +#define __LPCGUID_DEFINED__ +typedef const GUID *LPCGUID; +#endif + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef GUID IID; +typedef IID *LPIID; +#define IID_NULL GUID_NULL +#define IsEqualIID(riid1, riid2) IsEqualGUID(riid1, riid2) +typedef GUID CLSID; +typedef CLSID *LPCLSID; +#define CLSID_NULL GUID_NULL +#define IsEqualCLSID(rclsid1, rclsid2) IsEqualGUID(rclsid1, rclsid2) +typedef GUID FMTID; +typedef FMTID *LPFMTID; +#define FMTID_NULL GUID_NULL +#define IsEqualFMTID(rfmtid1, rfmtid2) IsEqualGUID(rfmtid1, rfmtid2) + +#ifdef __midl_proxy +#define __MIDL_CONST +#else +#define __MIDL_CONST const +#endif + +#ifndef _REFGUID_DEFINED +#define _REFGUID_DEFINED +#ifdef __cplusplus +#define REFGUID const GUID & +#else +#define REFGUID const GUID * __MIDL_CONST +#endif +#endif + +#ifndef _REFIID_DEFINED +#define _REFIID_DEFINED +#ifdef __cplusplus +#define REFIID const IID & +#else +#define REFIID const IID * __MIDL_CONST +#endif +#endif + +#ifndef _REFCLSID_DEFINED +#define _REFCLSID_DEFINED +#ifdef __cplusplus +#define REFCLSID const IID & +#else +#define REFCLSID const IID * __MIDL_CONST +#endif +#endif + +#ifndef _REFFMTID_DEFINED +#define _REFFMTID_DEFINED +#ifdef __cplusplus +#define REFFMTID const IID & +#else +#define REFFMTID const IID * __MIDL_CONST +#endif +#endif + +#endif // !__IID_DEFINED__ + +#if !defined (__midl) +#if !defined (_SYS_GUID_OPERATORS_) +#define _SYS_GUID_OPERATORS_ +#include + +// Faster (but makes code fatter) inline version...use sparingly +#ifdef __cplusplus +__inline int InlineIsEqualGUID(REFGUID rguid1, REFGUID rguid2) +{ + return ( + ((unsigned long *) &rguid1)[0] == ((unsigned long *) &rguid2)[0] && + ((unsigned long *) &rguid1)[1] == ((unsigned long *) &rguid2)[1] && + ((unsigned long *) &rguid1)[2] == ((unsigned long *) &rguid2)[2] && + ((unsigned long *) &rguid1)[3] == ((unsigned long *) &rguid2)[3]); +} + +__inline int IsEqualGUID(REFGUID rguid1, REFGUID rguid2) +{ + return !memcmp(&rguid1, &rguid2, sizeof(GUID)); +} + +#else // ! __cplusplus + +#define InlineIsEqualGUID(rguid1, rguid2) \ + (((unsigned long *) rguid1)[0] == ((unsigned long *) rguid2)[0] && \ + ((unsigned long *) rguid1)[1] == ((unsigned long *) rguid2)[1] && \ + ((unsigned long *) rguid1)[2] == ((unsigned long *) rguid2)[2] && \ + ((unsigned long *) rguid1)[3] == ((unsigned long *) rguid2)[3]) + +#define IsEqualGUID(rguid1, rguid2) (!memcmp(rguid1, rguid2, sizeof(GUID))) + +#endif // __cplusplus + +#ifdef __INLINE_ISEQUAL_GUID +#undef IsEqualGUID +#define IsEqualGUID(rguid1, rguid2) InlineIsEqualGUID(rguid1, rguid2) +#endif + +// Same type, different name + +#define IsEqualIID(riid1, riid2) IsEqualGUID(riid1, riid2) +#define IsEqualCLSID(rclsid1, rclsid2) IsEqualGUID(rclsid1, rclsid2) + + +#if !defined _SYS_GUID_OPERATOR_EQ_ && !defined _NO_SYS_GUID_OPERATOR_EQ_ +#define _SYS_GUID_OPERATOR_EQ_ +// A couple of C++ helpers + +#ifdef __cplusplus +__inline int operator==(REFGUID guidOne, REFGUID guidOther) +{ + return IsEqualGUID(guidOne,guidOther); +} + +__inline int operator!=(REFGUID guidOne, REFGUID guidOther) +{ + return !(guidOne == guidOther); +} +#endif +#endif // _SYS_GUID_OPERATOR_EQ_ +#endif // _SYS_GUID_OPERATORS_ +#endif // __midl +#endif // _GUIDDEF_H_ diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/windowsmediaphoto.h b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/windowsmediaphoto.h new file mode 100644 index 0000000000000000000000000000000000000000..10840f04f31ac0ba3fc594e65bfdd96b50986881 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/windowsmediaphoto.h @@ -0,0 +1,515 @@ +//*@@@+++@@@@****************************************************************** +// +// Copyright © Microsoft Corp. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// • Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// • Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +//*@@@---@@@@****************************************************************** + +#ifndef WMI_WINDOWSMEDIAPHOTO_H +#define WMI_WINDOWSMEDIAPHOTO_H + +//================================================================ +#include +#include +#include +#include + +#if defined(__cplusplus) && !defined(EXTERN_C) +#define EXTERN_C extern "C" +#elif !defined(EXTERN_C)// __cplusplus +#define EXTERN_C extern +#endif // __cplusplus + +/******************************************************************************** + Type definitions +********************************************************************************/ +typedef int Bool; +typedef char Char; +typedef double Double; +typedef int Int; +typedef signed char I8; +typedef short I16; // 16 bit int +typedef int I32; +typedef long Long; +typedef unsigned char PixelC; +typedef int PixelI; +typedef unsigned int UInt; +typedef unsigned long ULong; +typedef unsigned char U8; // 8 bit uint +typedef unsigned short U16; +typedef unsigned int U32; // 32 bit uint +typedef void Void; + +typedef void* CTXSTRCODEC; + + +#define REENTRANT_MODE 1 +/* + DESCRIPTION OF COMPILER FLAG REENTRANT_MODE: + + //#define REENTRANT_MODE 1 + + This compiler flag is related to the capability of banded decode + (decoding only one MB row of the source JPEG XR image at a time). + + With REENTRANT_MODE defined, the decoder decodes one MB row on each call to + ImageStrDecDecode(). + + The decoder acts as if it can only write to the single MBRow whose pointer was passed to it. + This acts as a proof of concept that the API would work if you passed it a small buffer + on each call to ImageStrDecDecode(). + + The REENTRANT_MODE flag only works when the output image is in Orientations 0, 1 + (vertically flipped) or 2 (horizontally flipped). + + With REENTRANT_MODE defined, the function PKImageDecode_Copy_WMP() + decodes only as far as the pRect parameter indicates. The width of the rectangle must be the width + of the image, but on each call, this function will decode the image up to the end of the MB Row + which contains the i-th pixel row, where i = pRect->Y. + + A target use of this version would be to have PKImageDecode_Copy_WMP() called in a loop, once for + each MB row. On each call, pRect would specify a 1-MB-Row-tall rectangle that is the width of the + image. The decoder state is preserved until the Decoder finishes decoding the image. + + If, at a certain point, a request is made for a rectangle _above_ the last row decoded, then the + decoder instance is terminated and re-initiated, and decoding re-starts, going from the beginning + of the image to the end of the current rectangle. + + *** + + We've chosen to uncomment-out this definition in this header file. An alternate method would be + to allow the user to define this in the PREPROCESSOR DEFINITIONS section of the properties page + for each of the following projects: CommonLib, DecodeLib, JXRDecApp and JXRGlueLib. + +*/ +/************************************************************************* + enums +*************************************************************************/ +typedef enum { + ICERR_OK = 0, ICERR_ERROR = -1 +} ERR_CODE; + +typedef enum BITDEPTH { + BD_SHORT, BD_LONG, + + /* add new BITDEPTH here */ BD_MAX +} BITDEPTH; + +typedef enum BITDEPTH_BITS { + // regular ones + BD_1, //White is foreground + BD_8, BD_16, BD_16S, BD_16F, BD_32, BD_32S, BD_32F, + + // irregular ones + BD_5, BD_10, BD_565, + + /* add new BITDEPTH_BITS here */ BDB_MAX, + + BD_1alt = 0xf, //Black is foreground +} BITDEPTH_BITS; + +typedef enum OVERLAP { + OL_NONE = 0, OL_ONE, OL_TWO, + + /* add new OVERLAP here */ OL_MAX +} OVERLAP; + +typedef enum BITSTREAMFORMAT { + SPATIAL = 0, // spatial order + FREQUENCY, // frequency order +} BITSTREAMFORMAT; + +typedef enum COLORFORMAT { + Y_ONLY = 0, + YUV_420 = 1, + YUV_422 = 2, + YUV_444 = 3, + CMYK = 4, + //CMYKDIRECT = 5, + NCOMPONENT = 6, + + // these are external-only + CF_RGB = 7, + CF_RGBE = 8, + + /* add new COLORFORMAT here */ CFT_MAX +} COLORFORMAT; + +// rotation and flip +typedef enum ORIENTATION { + // CRW: Clock Wise 90% Rotation; FlipH: Flip Horizontally; FlipV: Flip Vertically + // Peform rotation FIRST! + // CRW FlipH FlipV + O_NONE = 0, // 0 0 0 + O_FLIPV, // 0 0 1 + O_FLIPH, // 0 1 0 + O_FLIPVH, // 0 1 1 + O_RCW, // 1 0 0 + O_RCW_FLIPV, // 1 0 1 + O_RCW_FLIPH, // 1 1 0 + O_RCW_FLIPVH, // 1 1 1 + /* add new ORIENTATION here */ O_MAX +} ORIENTATION; + +typedef enum SUBBAND { + SB_ALL = 0, // keep all subbands + SB_NO_FLEXBITS, // skip flex bits + SB_NO_HIGHPASS, // skip highpass + SB_DC_ONLY, // skip lowpass and highpass, DC only + SB_ISOLATED, // not decodable + /* add new SUBBAND here */ SB_MAX +} SUBBAND; + +enum { RAW = 0, BMP = 1, PPM = 2, TIF = 3, HDR = 4, IYUV = 5, YUV422 = 6, YUV444 = 7}; + +typedef enum {ERROR_FAIL = -1, SUCCESS_DONE, PRE_READ_HDR, PRE_SETUP, PRE_DECODE, POST_READ_HDR } WMIDecoderStatus; + +#ifndef FALSE +#define FALSE 0 +#endif // FALSE + +#ifndef TRUE +#define TRUE 1 +#endif // TRUE + +#define MAX_CHANNELS 16 +#define LOG_MAX_TILES 12 +#define MAX_TILES (1 << LOG_MAX_TILES) + + +//================================================================ +// Codec-specific constants +#define MB_WIDTH_PIXEL 16 +#define MB_HEIGHT_PIXEL 16 + +#define BLK_WIDTH_PIXEL 4 +#define BLK_HEIGHT_PIXEL 4 + +#define MB_WIDTH_BLK 4 +#define MB_HEIGHT_BLK 4 + +// The codec operates most efficiently when the framebuffers for encoder input +// and decoder output are: 1) aligned on a particular boundary, and 2) the stride +// is also aligned to this boundary (so that each scanline is also aligned). +// This boundary is defined below. +#define FRAMEBUFFER_ALIGNMENT 128 + + +//================================================================ +#define WMP_errSuccess 0 + +#define WMP_errFail -1 +#define WMP_errNotYetImplemented -2 +#define WMP_errAbstractMethod -3 + +#define WMP_errOutOfMemory -101 +#define WMP_errFileIO -102 +#define WMP_errBufferOverflow -103 +#define WMP_errInvalidParameter -104 +#define WMP_errInvalidArgument -105 +#define WMP_errUnsupportedFormat -106 +#define WMP_errIncorrectCodecVersion -107 +#define WMP_errIndexNotFound -108 +#define WMP_errOutOfSequence -109 +#define WMP_errNotInitialized -110 +#define WMP_errMustBeMultipleOf16LinesUntilLastCall -111 +#define WMP_errPlanarAlphaBandedEncRequiresTempFile -112 +#define WMP_errAlphaModeCannotBeTranscoded -113 +#define WMP_errIncorrectCodecSubVersion -114 + + +//================================================================ +typedef long ERR; + +#define Failed(err) ((err)<0) + +#define CRLF "\r\n" + +#define CT_ASSERT(exp, uniq) typedef char __CT_ASSERT__##uniq[(exp) ? 1 : -1] // Caller must provide a unique tag, or this fails to compile under GCC + +#if defined(_DEBUG) || defined(DBG) +#define Report(err, szExp, szFile, nLine) \ + fprintf(stderr, "FAILED: %ld=%s" CRLF, (err), (szExp)); \ + fprintf(stderr, " %s:%ld" CRLF, (szFile), (nLine)); \ + +#else +#define Report(err, szExp, szFile, lLine) err = err +#endif + +#define Call(exp) \ + if (Failed(err = (exp))) \ + { \ + Report(err, #exp, __FILE__, (long)__LINE__); \ + goto Cleanup; \ + } \ + else err = err + +#define CallIgnoreError(errTmp, exp) \ + if (Failed(errTmp = (exp))) \ + { \ + Report(errTmp, #exp, __FILE__, (long)__LINE__); \ + } \ + else errTmp = errTmp + + +#define Test(exp, err) Call((exp) ? WMP_errSuccess : (err)) +#define FailIf(exp, err) Call((exp) ? (err) : WMP_errSuccess) + +//================================================================ +// WMPStream interface +//================================================================ +struct WMPStream +{ + union + { + struct tagFile + { + FILE* pFile; + } file; + + struct tagBuf + { + U8* pbBuf; + size_t cbBuf; + size_t cbCur; + size_t cbBufCount; + } buf; + + void* pvObj; + } state; + + Bool fMem; + + ERR (*Close)(struct WMPStream** pme); + + Bool (*EOS)(struct WMPStream* me); + + ERR (*Read)(struct WMPStream* me, void* pv, size_t cb); + ERR (*Write)(struct WMPStream* me, const void* pv, size_t cb); + //ERR (*GetLine)(struct WMPStream* me, void* pv, size_t cb); + + ERR (*SetPos)(struct WMPStream* me, size_t offPos); + ERR (*GetPos)(struct WMPStream* me, size_t* poffPos); +}; + +EXTERN_C ERR CreateWS_File(struct WMPStream** ppWS, const char* szFilename, const char* szMode); +EXTERN_C ERR CloseWS_File(struct WMPStream** ppWS); + +EXTERN_C ERR CreateWS_Memory(struct WMPStream** ppWS, void* pv, size_t cb); +EXTERN_C ERR CloseWS_Memory(struct WMPStream** ppWS); + + +//================================================================ +// Enc/Dec data structure +//================================================================ +typedef struct tagCWMImageInfo { + size_t cWidth; + size_t cHeight; + COLORFORMAT cfColorFormat; + BITDEPTH_BITS bdBitDepth; + size_t cBitsPerUnit; + size_t cLeadingPadding; // number of leading padding + Bool bRGB; // true: RGB; false: BGR + U8 cChromaCenteringX; // Relative location of Chroma w.r.t Luma + U8 cChromaCenteringY; // Relative location of Chroma w.r.t Luma + + // Region of interest decoding + size_t cROILeftX; + size_t cROIWidth; + size_t cROITopY; + size_t cROIHeight; + + // thumbnail decode + Bool bSkipFlexbits; + size_t cThumbnailWidth; + size_t cThumbnailHeight; + + // image orientation + ORIENTATION oOrientation; + + // post processing + U8 cPostProcStrength; // 0(none) 1(light) 2(medium) 3(strong) 4(very strong) + + // user buffer is always padded to whole MB + Bool fPaddedUserBuffer; +} CWMImageInfo; + +typedef struct tagCWMIStrCodecParam { + Bool bVerbose; + + // for macroblock quantization (DQUANT) + U8 uiDefaultQPIndex; + U8 uiDefaultQPIndexYLP; + U8 uiDefaultQPIndexYHP; + U8 uiDefaultQPIndexU; + U8 uiDefaultQPIndexULP; + U8 uiDefaultQPIndexUHP; + U8 uiDefaultQPIndexV; + U8 uiDefaultQPIndexVLP; + U8 uiDefaultQPIndexVHP; + U8 uiDefaultQPIndexAlpha; + + COLORFORMAT cfColorFormat; + BITDEPTH bdBitDepth; + OVERLAP olOverlap; + BITSTREAMFORMAT bfBitstreamFormat; + size_t cChannel; // number of color channels including alpha + U8 uAlphaMode; // 0:no alpha 1: alpha only else: something + alpha + SUBBAND sbSubband; // which subbands to keep + U8 uiTrimFlexBits; + + struct WMPStream* pWStream; + size_t cbStream; + + // tiling info + U32 cNumOfSliceMinus1V; // # of vertical slices + U32 uiTileX[MAX_TILES]; // width in MB of each veritical slice + U32 cNumOfSliceMinus1H; // # of horizontal slices + U32 uiTileY[MAX_TILES]; // height in MB of each horizontal slice + + //32f and 32s conversion parameters + U8 nLenMantissaOrShift; + I8 nExpBias; + + Bool bBlackWhite; + + Bool bUseHardTileBoundaries; //default is soft tile boundaries + + Bool bProgressiveMode; //default is sequential mode + + Bool bYUVData; //default is cfColorFormat data + + Bool bUnscaledArith; //force unscaled arithmetic + + // Perf measurement + Bool fMeasurePerf; +} CWMIStrCodecParam; + +typedef struct tagCWMImageBufferInfo { + void* pv; // pointer to scanline buffer + size_t cLine; // count of scanlines + size_t cbStride; // count of BYTE for stride +#ifdef REENTRANT_MODE + unsigned int uiFirstMBRow; // Current First MB Row being decoded + unsigned int uiLastMBRow; // Current Last MB Row being decoded + size_t cLinesDecoded; // Number of lines decoded and returned in low-mem mode +#endif // REENTRANT_MODE +} CWMImageBufferInfo; + + + + +/****************************************************************/ +/* Encode API */ +/****************************************************************/ +EXTERN_C Int ImageStrEncInit( + CWMImageInfo* pII, + CWMIStrCodecParam *pSCP, + CTXSTRCODEC* pctxSC); + +EXTERN_C Int ImageStrEncEncode( + CTXSTRCODEC ctxSC, + const CWMImageBufferInfo* pBI); + +EXTERN_C Int ImageStrEncTerm( + CTXSTRCODEC ctxSC); + + +/****************************************************************/ +/* Decode API */ +/****************************************************************/ +struct CWMImageStrCodec; + +EXTERN_C Int ImageStrDecGetInfo( + CWMImageInfo* pII, + CWMIStrCodecParam *pSCP); + +EXTERN_C Int ImageStrDecInit( + CWMImageInfo* pII, + CWMIStrCodecParam *pSCP, + CTXSTRCODEC* pctxSC); + +EXTERN_C Int ImageStrDecDecode( + CTXSTRCODEC ctxSC, + const CWMImageBufferInfo* pBI +#ifdef REENTRANT_MODE + , size_t *pcDecodedLines +#endif + ); + +EXTERN_C Int ImageStrDecTerm( + CTXSTRCODEC ctxSC); + +EXTERN_C Int WMPhotoValidate( + CWMImageInfo * pII, + CWMIStrCodecParam * pSCP); + + +/****************************************************************/ +/* Transcoding API */ +/****************************************************************/ +typedef struct tagCWMTranscodingParam { + size_t cLeftX; + size_t cWidth; + size_t cTopY; + size_t cHeight; // interested region + + BITSTREAMFORMAT bfBitstreamFormat; // desired bitstream format +// COLORFORMAT cfColorFormat; // desired color format + U8 uAlphaMode; // 0:no alpha 1: alpha only else: something + alpha + SUBBAND sbSubband; // which subbands to keep + ORIENTATION oOrientation; // flip / right angle rotation + Bool bIgnoreOverlap; +} CWMTranscodingParam; + +EXTERN_C Int WMPhotoTranscode( + struct WMPStream* pStreamDec, // input bitstrean + struct WMPStream* pStreamEnc, // output bitstream + CWMTranscodingParam* pParam // transcoding parameters +); + +typedef struct tagCWMDetilingParam { + size_t cWidth; + size_t cHeight; // image size + size_t cChannel; // # of channels + OVERLAP olOverlap; // overlap + BITDEPTH_BITS bdBitdepth; // bit depth + + // tiling info + U32 cNumOfSliceMinus1V; // # of vertical slices + U32 uiTileX[MAX_TILES]; // position in MB of each veritical slice + U32 cNumOfSliceMinus1H; // # of horizontal slices + U32 uiTileY[MAX_TILES]; // position in MB of each horizontal slice + + // image info + void * pImage; + size_t cbStride; +} CWMDetilingParam; + +EXTERN_C Int WMPhotoDetile( + CWMDetilingParam * pParam // detiling parameters +); + +#endif // WMI_WINDOWSMEDIAPHOTO_H + diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmsal.h b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmsal.h new file mode 100644 index 0000000000000000000000000000000000000000..00a5ecf4d9433a910f50135bbf4df713cd5bf835 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmsal.h @@ -0,0 +1,757 @@ +/*** +*sal.h - markers for documenting the semantics of APIs +* +* Copyright © Microsoft Corp. +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* • Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* • Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +*Purpose: +* sal.h provides a set of annotations to describe how a function uses its +* parameters - the assumptions it makes about them, and the guarantees it makes +* upon finishing. +* +* [Public] +* +****/ + +/* + ------------------------------------------------------------------------------- + Introduction + + sal.h provides a set of annotations to describe how a function uses its + parameters - the assumptions it makes about them, and the guarantees it makes + upon finishing. + + Annotations may be placed before either a function parameter's type or its return + type, and describe the function's behavior regarding the parameter or return value. + There are two classes of annotations: buffer annotations and advanced annotations. + Buffer annotations describe how functions use their pointer parameters, and + advanced annotations either describe complex/unusual buffer behavior, or provide + additional information about a parameter that is not otherwise expressible. + + ------------------------------------------------------------------------------- + Buffer Annotations + + The most important annotations in sal.h provide a consistent way to annotate + buffer parameters or return values for a function. Each of these annotations describes + a single buffer (which could be a string, a fixed-length or variable-length array, + or just a pointer) that the function interacts with: where it is, how large it is, + how much is initialized, and what the function does with it. + + The appropriate macro for a given buffer can be constructed using the table below. + Just pick the appropriate values from each category, and combine them together + with a leading underscore. Some combinations of values do not make sense as buffer + annotations. Only meaningful annotations can be added to your code; for a list of + these, see the buffer annotation definitions section. + + Only a single buffer annotation should be used for each parameter. + + |------------|------------|---------|--------|----------|----------|---------------| + | Level | Usage | Size | Output | NullTerm | Optional | Parameters | + |------------|------------|---------|--------|----------|----------|---------------| + | <> | <> | <> | <> | _z | <> | <> | + | _deref | _in | _ecount | _full | _nz | _opt | (size) | + | _deref_opt | _out | _bcount | _part | | | (size,length) | + | | _inout | | | | | | + | | | | | | | | + |------------|------------|---------|--------|----------|----------|---------------| + + Level: Describes the buffer pointer's level of indirection from the parameter or + return value 'p'. + + <> : p is the buffer pointer. + _deref : *p is the buffer pointer. p must not be NULL. + _deref_opt : *p may be the buffer pointer. p may be NULL, in which case the rest of + the annotation is ignored. + + Usage: Describes how the function uses the buffer. + + <> : The buffer is not accessed. If used on the return value or with _deref, the + function will provide the buffer, and it will be uninitialized at exit. + Otherwise, the caller must provide the buffer. This should only be used + for alloc and free functions. + _in : The function will only read from the buffer. The caller must provide the + buffer and initialize it. Cannot be used with _deref. + _out : The function will only write to the buffer. If used on the return value or + with _deref, the function will provide the buffer and initialize it. + Otherwise, the caller must provide the buffer, and the function will + initialize it. + _inout : The function may freely read from and write to the buffer. The caller must + provide the buffer and initialize it. If used with _deref, the buffer may + be reallocated by the function. + + Size: Describes the total size of the buffer. This may be less than the space actually + allocated for the buffer, in which case it describes the accessible amount. + + <> : No buffer size is given. If the type specifies the buffer size (such as + with LPSTR and LPWSTR), that amount is used. Otherwise, the buffer is one + element long. Must be used with _in, _out, or _inout. + _ecount : The buffer size is an explicit element count. + _bcount : The buffer size is an explicit byte count. + + Output: Describes how much of the buffer will be initialized by the function. For + _inout buffers, this also describes how much is initialized at entry. Omit this + category for _in buffers; they must be fully initialized by the caller. + + <> : The type specifies how much is initialized. For instance, a function initializing + an LPWSTR must NULL-terminate the string. + _full : The function initializes the entire buffer. + _part : The function initializes part of the buffer, and explicitly indicates how much. + + NullTerm: States if the present of a '\0' marks the end of valid elements in the buffer. + _z : A '\0' indicated the end of the buffer + _nz : The buffer may not be null terminated and a '\0' does not indicate the end of the + buffer. + Optional: Describes if the buffer itself is optional. + + <> : The pointer to the buffer must not be NULL. + _opt : The pointer to the buffer might be NULL. It will be checked before being dereferenced. + + Parameters: Gives explicit counts for the size and length of the buffer. + + <> : There is no explicit count. Use when neither _ecount nor _bcount is used. + (size) : Only the buffer's total size is given. Use with _ecount or _bcount but not _part. + (size,length) : The buffer's total size and initialized length are given. Use with _ecount_part + and _bcount_part. + + ------------------------------------------------------------------------------- + Buffer Annotation Examples + + LWSTDAPI_(BOOL) StrToIntExA( + LPCSTR pszString, -- No annotation required, const implies __in. + DWORD dwFlags, + __out int *piRet -- A pointer whose dereference will be filled in. + ); + + void MyPaintingFunction( + __in HWND hwndControl, -- An initialized read-only parameter. + __in_opt HDC hdcOptional, -- An initialized read-only parameter that might be NULL. + __inout IPropertyStore *ppsStore -- An initialized parameter that may be freely used + -- and modified. + ); + + LWSTDAPI_(BOOL) PathCompactPathExA( + __out_ecount(cchMax) LPSTR pszOut, -- A string buffer with cch elements that will + -- be NULL terminated on exit. + LPCSTR pszSrc, -- No annotation required, const implies __in. + UINT cchMax, + DWORD dwFlags + ); + + HRESULT SHLocalAllocBytes( + size_t cb, + __deref_bcount(cb) T **ppv -- A pointer whose dereference will be set to an + -- uninitialized buffer with cb bytes. + ); + + __inout_bcount_full(cb) : A buffer with cb elements that is fully initialized at + entry and exit, and may be written to by this function. + + __out_ecount_part(count, *countOut) : A buffer with count elements that will be + partially initialized by this function. The function indicates how much it + initialized by setting *countOut. + + ------------------------------------------------------------------------------- + Advanced Annotations + + Advanced annotations describe behavior that is not expressible with the regular + buffer macros. These may be used either to annotate buffer parameters that involve + complex or conditional behavior, or to enrich existing annotations with additional + information. + + __success(expr) f : + indicates whether function f succeeded or not. If is true at exit, + all the function's guarantees (as given by other annotations) must hold. If + is false at exit, the caller should not expect any of the function's guarantees + to hold. If not used, the function must always satisfy its guarantees. Added + automatically to functions that indicate success in standard ways, such as by + returning an HRESULT. + + __nullterminated p : + Pointer p is a buffer that may be read or written up to and including the first + NULL character or pointer. May be used on typedefs, which marks valid (properly + initialized) instances of that type as being NULL-terminated. + + __nullnullterminated p : + Pointer p is a buffer that may be read or written up to and including the first + sequence of two NULL characters or pointers. May be used on typedefs, which marks + valid instances of that type as being double-NULL terminated. + + __reserved v : + Value v must be 0/NULL, reserved for future use. + + __checkReturn v : + Return value v must not be ignored by callers of this function. + + __typefix(ctype) v : + Value v should be treated as an instance of ctype, rather than its declared type. + + __override f : + Specify C#-style 'override' behaviour for overriding virtual methods. + + __callback f : + Function f can be used as a function pointer. + + __format_string p : + Pointer p is a string that contains % markers in the style of printf. + + __blocksOn(resource) f : + Function f blocks on the resource 'resource'. + + __fallthrough : + Annotates switch statement labels where fall-through is desired, to distinguish + from forgotten break statements. + + ------------------------------------------------------------------------------- + Advanced Annotation Examples + + __success(return == TRUE) LWSTDAPI_(BOOL) + PathCanonicalizeA(__out_ecount(MAX_PATH) LPSTR pszBuf, LPCSTR pszPath) : + pszBuf is only guaranteed to be NULL-terminated when TRUE is returned. + + typedef __nullterminated WCHAR* LPWSTR : Initialized LPWSTRs are NULL-terminated strings. + + __out_ecount(cch) __typefix(LPWSTR) void *psz : psz is a buffer parameter which will be + a NULL-terminated WCHAR string at exit, and which initially contains cch WCHARs. + + ------------------------------------------------------------------------------- +*/ + +#pragma once +#ifndef __specstrings +#define __specstrings + +#ifdef __cplusplus +#ifndef __nothrow +# define __nothrow __declspec(nothrow) +#endif +extern "C" { +#else +#ifndef __nothrow +# define __nothrow +#endif +#endif /* #ifdef __cplusplus */ + +/* + ------------------------------------------------------------------------------- + Helper Macro Definitions + + These express behavior common to many of the high-level annotations. + DO NOT USE THESE IN YOUR CODE. + ------------------------------------------------------------------------------- +*/ + +/* +The helper annotations are only understood by the compiler version used by various +defect detection tools. When the regular compiler is running, they are defined into +nothing, and do not affect the compiled code. +*/ + +#if !defined(__midl) && defined(_PREFAST_) + + /* + In the primitive __declspec("SAL_*") annotations "SAL" stands for Standard + Annotation Language. These __declspec("SAL_*") annotations are the + primitives the compiler understands and all high-level SpecString MACROs + will decompose into these primivates. + */ + + #define SPECSTRINGIZE( x ) #x + + /* + __null p + __notnull p + __maybenull p + + Annotates a pointer p. States that pointer p is null. Commonly used + in the negated form __notnull or the possibly null form __maybenull. + */ + +// #define __null __declspec("SAL_null") + #define __notnull __declspec("SAL_notnull") + #define __maybenull __declspec("SAL_maybenull") + + /* + __readonly l + __notreadonly l + __mabyereadonly l + + Annotates a location l. States that location l is not modified after + this point. If the annotation is placed on the precondition state of + a function, the restriction only applies until the postcondition state + of the function. __maybereadonly states that the annotated location + may be modified, whereas __notreadonly states that a location must be + modified. + */ + + #define __readonly __declspec("SAL_readonly") + #define __notreadonly __declspec("SAL_notreadonly") + #define __maybereadonly __declspec("SAL_maybereadonly") + + /* + __valid v + __notvalid v + __maybevalid v + + Annotates any value v. States that the value satisfies all properties of + valid values of its type. For example, for a string buffer, valid means + that the buffer pointer is either NULL or points to a NULL-terminated string. + */ + + #define __valid __declspec("SAL_valid") + #define __notvalid __declspec("SAL_notvalid") + #define __maybevalid __declspec("SAL_maybevalid") + + /* + __readableTo(extent) p + + Annotates a buffer pointer p. If the buffer can be read, extent describes + how much of the buffer is readable. For a reader of the buffer, this is + an explicit permission to read up to that amount, rather than a restriction to + read only up to it. + */ + + #define __readableTo(extent) __declspec("SAL_readableTo("SPECSTRINGIZE(extent)")") + + /* + + __elem_readableTo(size) + + Annotates a buffer pointer p as being readable to size elements. + */ + + #define __elem_readableTo(size) __declspec("SAL_readableTo(elementCount("SPECSTRINGIZE(size)"))") + + /* + __byte_readableTo(size) + + Annotates a buffer pointer p as being readable to size bytes. + */ + #define __byte_readableTo(size) __declspec("SAL_readableTo(byteCount("SPECSTRINGIZE(size)"))") + + /* + __writableTo(extent) p + + Annotates a buffer pointer p. If the buffer can be modified, extent + describes how much of the buffer is writable (usually the allocation + size). For a writer of the buffer, this is an explicit permission to + write up to that amount, rather than a restriction to write only up to it. + */ + #define __writableTo(size) __declspec("SAL_writableTo("SPECSTRINGIZE(size)")") + + /* + __elem_writableTo(size) + + Annotates a buffer pointer p as being writable to size elements. + */ + #define __elem_writableTo(size) __declspec("SAL_writableTo(elementCount("SPECSTRINGIZE(size)"))") + + /* + __byte_writableTo(size) + + Annotates a buffer pointer p as being writable to size bytes. + */ + #define __byte_writableTo(size) __declspec("SAL_writableTo(byteCount("SPECSTRINGIZE(size)"))") + + /* + __deref p + + Annotates a pointer p. The next annotation applies one dereference down + in the type. If readableTo(p, size) then the next annotation applies to + all elements *(p+i) for which i satisfies the size. If p is a pointer + to a struct, the next annotation applies to all fields of the struct. + */ + #define __deref __declspec("SAL_deref") + + /* + __pre __next_annotation + + The next annotation applies in the precondition state + */ + #define __pre __declspec("SAL_pre") + + /* + __post __next_annotation + + The next annotation applies in the postcondition state + */ + #define __post __declspec("SAL_post") + + /* + __precond() + + When is true, the next annotation applies in the precondition state + (currently not enabled) + */ + #define __precond(expr) __pre + + /* + __postcond() + + When is true, the next annotation applies in the postcondition state + (currently not enabled) + */ + #define __postcond(expr) __post + + /* + __exceptthat + + Given a set of annotations Q containing __exceptthat maybeP, the effect of + the except clause is to erase any P or notP annotations (explicit or + implied) within Q at the same level of dereferencing that the except + clause appears, and to replace it with maybeP. + + Example 1: __valid __exceptthat __maybenull on a pointer p means that the + pointer may be null, and is otherwise valid, thus overriding + the implicit notnull annotation implied by __valid on + pointers. + + Example 2: __valid __deref __exceptthat __maybenull on an int **p means + that p is not null (implied by valid), but the elements + pointed to by p could be null, and are otherwise valid. + */ + #define __exceptthat __declspec("SAL_except") + #define __execeptthat __exceptthat + + /* + _refparam + + Added to all out parameter macros to indicate that they are all reference + parameters. + */ + #define __refparam __deref __notreadonly + + /* + __inner_* + + Helper macros that directly correspond to certain high-level annotations. + + */ + + /* + Macros to classify the entrypoints and indicate their category. + + Pre-defined control point categories include: RPC, LPC, DeviceDriver, UserToKernel, ISAPI, COM. + + */ + #define __inner_control_entrypoint(category) __declspec("SAL_entrypoint(controlEntry, "SPECSTRINGIZE(category)")") + + /* + Pre-defined data entry point categories include: Registry, File, Network. + */ + #define __inner_data_entrypoint(category) __declspec("SAL_entrypoint(dataEntry, "SPECSTRINGIZE(category)")") + + #define __inner_success(expr) __declspec("SAL_success("SPECSTRINGIZE(expr)")") + #define __inner_checkReturn __declspec("SAL_checkReturn") + #define __inner_typefix(ctype) __declspec("SAL_typefix("SPECSTRINGIZE(ctype)")") + #define __inner_override __declspec("__override") + #define __inner_callback __declspec("__callback") + #define __inner_blocksOn(resource) __declspec("SAL_blocksOn("SPECSTRINGIZE(resource)")") + #define __inner_fallthrough_dec __inline __nothrow void __FallThrough() {} + #define __inner_fallthrough __FallThrough(); + +#else +// This conflicts with gcc definition of __null. +// #define __null + #define __notnull + #define __maybenull + #define __readonly + #define __notreadonly + #define __maybereadonly + #define __valid + #define __notvalid + #define __maybevalid + #define __readableTo(extent) + #define __elem_readableTo(size) + #define __byte_readableTo(size) + #define __writableTo(size) + #define __elem_writableTo(size) + #define __byte_writableTo(size) + #define __deref + #define __pre + #define __post + #define __precond(expr) + #define __postcond(expr) + #define __exceptthat + #define __execeptthat + #define __inner_success(expr) + #define __inner_checkReturn + #define __inner_typefix(ctype) + #define __inner_override + #define __inner_callback + #define __inner_blocksOn(resource) + #define __inner_fallthrough_dec + #define __inner_fallthrough + #define __refparam + #define __inner_control_entrypoint(category) + #define __inner_data_entrypoint(category) +#endif /* #if !defined(__midl) && defined(_PREFAST_) */ + +/* +------------------------------------------------------------------------------- +Buffer Annotation Definitions + +Any of these may be used to directly annotate functions, but only one should +be used for each parameter. To determine which annotation to use for a given +buffer, use the table in the buffer annotations section. +------------------------------------------------------------------------------- +*/ + +#define __ecount(size) __notnull __elem_writableTo(size) +#define __bcount(size) __notnull __byte_writableTo(size) +//#define __in __pre __valid __pre __deref __readonly +#define __in_win __pre __valid __pre __deref __readonly + +#define __in_ecount(size) __in_win __pre __elem_readableTo(size) +#define __in_bcount(size) __in_win __pre __byte_readableTo(size) +#define __in_z __in_win __pre __nullterminated +#define __in_ecount_z(size) __in_ecount(size) __pre __nullterminated +#define __in_bcount_z(size) __in_bcount(size) __pre __nullterminated +#define __in_nz __in_win +#define __in_ecount_nz(size) __in_ecount(size) +#define __in_bcount_nz(size) __in_bcount(size) + +//#define __out __ecount(1) __post __valid __refparam +#define __out_win __ecount(1) __post __valid __refparam + +#define __out_ecount(size) __ecount(size) __post __valid __refparam +#define __out_bcount(size) __bcount(size) __post __valid __refparam +#define __out_ecount_part(size,length) __out_ecount(size) __post __elem_readableTo(length) +#define __out_bcount_part(size,length) __out_bcount(size) __post __byte_readableTo(length) +#define __out_ecount_full(size) __out_ecount_part(size,size) +#define __out_bcount_full(size) __out_bcount_part(size,size) +#define __out_z __post __valid __refparam __post __nullterminated +#define __out_z_opt __post __valid __refparam __post __nullterminated __exceptthat __maybenull +#define __out_ecount_z(size) __ecount(size) __post __valid __refparam __post __nullterminated +#define __out_bcount_z(size) __bcount(size) __post __valid __refparam __post __nullterminated +#define __out_ecount_part_z(size,length) __out_ecount_part(size,length) __post __nullterminated +#define __out_bcount_part_z(size,length) __out_bcount_part(size,length) __post __nullterminated +#define __out_ecount_full_z(size) __out_ecount_full(size) __post __nullterminated +#define __out_bcount_full_z(size) __out_bcount_full(size) __post __nullterminated +#define __out_nz __post __valid __refparam __post +#define __out_nz_opt __post __valid __refparam __post __exceptthat __maybenull +#define __out_ecount_nz(size) __ecount(size) __post __valid __refparam +#define __out_bcount_nz(size) __bcount(size) __post __valid __refparam +#define __inout __pre __valid __post __valid __refparam +#define __inout_ecount(size) __out_ecount(size) __pre __valid +#define __inout_bcount(size) __out_bcount(size) __pre __valid +#define __inout_ecount_part(size,length) __out_ecount_part(size,length) __pre __valid __pre __elem_readableTo(length) +#define __inout_bcount_part(size,length) __out_bcount_part(size,length) __pre __valid __pre __byte_readableTo(length) +#define __inout_ecount_full(size) __inout_ecount_part(size,size) +#define __inout_bcount_full(size) __inout_bcount_part(size,size) +#define __inout_z __inout __pre __nullterminated __post __nullterminated +#define __inout_ecount_z(size) __inout_ecount(size) __pre __nullterminated __post __nullterminated +#define __inout_bcount_z(size) __inout_bcount(size) __pre __nullterminated __post __nullterminated +#define __inout_nz __inout +#define __inout_ecount_nz(size) __inout_ecount(size) +#define __inout_bcount_nz(size) __inout_bcount(size) +#define __ecount_opt(size) __ecount(size) __exceptthat __maybenull +#define __bcount_opt(size) __bcount(size) __exceptthat __maybenull +#define __in_opt __in_win __exceptthat __maybenull +#define __in_ecount_opt(size) __in_ecount(size) __exceptthat __maybenull +#define __in_bcount_opt(size) __in_bcount(size) __exceptthat __maybenull +#define __in_z_opt __in_opt __pre __nullterminated +#define __in_ecount_z_opt(size) __in_ecount_opt(size) __pre __nullterminated +#define __in_bcount_z_opt(size) __in_bcount_opt(size) __pre __nullterminated +#define __in_nz_opt __in_opt +#define __in_ecount_nz_opt(size) __in_ecount_opt(size) +#define __in_bcount_nz_opt(size) __in_bcount_opt(size) +#define __out_opt __out_win __exceptthat __maybenull +#define __out_ecount_opt(size) __out_ecount(size) __exceptthat __maybenull +#define __out_bcount_opt(size) __out_bcount(size) __exceptthat __maybenull +#define __out_ecount_part_opt(size,length) __out_ecount_part(size,length) __exceptthat __maybenull +#define __out_bcount_part_opt(size,length) __out_bcount_part(size,length) __exceptthat __maybenull +#define __out_ecount_full_opt(size) __out_ecount_full(size) __exceptthat __maybenull +#define __out_bcount_full_opt(size) __out_bcount_full(size) __exceptthat __maybenull +#define __out_ecount_z_opt(size) __out_ecount_opt(size) __post __nullterminated +#define __out_bcount_z_opt(size) __out_bcount_opt(size) __post __nullterminated +#define __out_ecount_part_z_opt(size,length) __out_ecount_part_opt(size,length) __post __nullterminated +#define __out_bcount_part_z_opt(size,length) __out_bcount_part_opt(size,length) __post __nullterminated +#define __out_ecount_full_z_opt(size) __out_ecount_full_opt(size) __post __nullterminated +#define __out_bcount_full_z_opt(size) __out_bcount_full_opt(size) __post __nullterminated +#define __out_ecount_nz_opt(size) __out_ecount_opt(size) __post __nullterminated +#define __out_bcount_nz_opt(size) __out_bcount_opt(size) __post __nullterminated +#define __inout_opt __inout __exceptthat __maybenull +#define __inout_ecount_opt(size) __inout_ecount(size) __exceptthat __maybenull +#define __inout_bcount_opt(size) __inout_bcount(size) __exceptthat __maybenull +#define __inout_ecount_part_opt(size,length) __inout_ecount_part(size,length) __exceptthat __maybenull +#define __inout_bcount_part_opt(size,length) __inout_bcount_part(size,length) __exceptthat __maybenull +#define __inout_ecount_full_opt(size) __inout_ecount_full(size) __exceptthat __maybenull +#define __inout_bcount_full_opt(size) __inout_bcount_full(size) __exceptthat __maybenull +#define __inout_z_opt __inout_opt __pre __nullterminated __post __nullterminated +#define __inout_ecount_z_opt(size) __inout_ecount_opt(size) __pre __nullterminated __post __nullterminated +#define __inout_ecount_z_opt(size) __inout_ecount_opt(size) __pre __nullterminated __post __nullterminated +#define __inout_bcount_z_opt(size) __inout_bcount_opt(size) +#define __inout_nz_opt __inout_opt +#define __inout_ecount_nz_opt(size) __inout_ecount_opt(size) +#define __inout_bcount_nz_opt(size) __inout_bcount_opt(size) +#define __deref_ecount(size) __ecount(1) __post __elem_readableTo(1) __post __deref __notnull __post __deref __elem_writableTo(size) +#define __deref_bcount(size) __ecount(1) __post __elem_readableTo(1) __post __deref __notnull __post __deref __byte_writableTo(size) +#define __deref_out __deref_ecount(1) __post __deref __valid __refparam +#define __deref_out_ecount(size) __deref_ecount(size) __post __deref __valid __refparam +#define __deref_out_bcount(size) __deref_bcount(size) __post __deref __valid __refparam +#define __deref_out_ecount_part(size,length) __deref_out_ecount(size) __post __deref __elem_readableTo(length) +#define __deref_out_bcount_part(size,length) __deref_out_bcount(size) __post __deref __byte_readableTo(length) +#define __deref_out_ecount_full(size) __deref_out_ecount_part(size,size) +#define __deref_out_bcount_full(size) __deref_out_bcount_part(size,size) +#define __deref_out_z __post __deref __valid __refparam __post __deref __nullterminated +#define __deref_out_ecount_z(size) __deref_out_ecount(size) __post __deref __nullterminated +#define __deref_out_bcount_z(size) __deref_out_ecount(size) __post __deref __nullterminated +#define __deref_out_nz __deref_out +#define __deref_out_ecount_nz(size) __deref_out_ecount(size) +#define __deref_out_bcount_nz(size) __deref_out_ecount(size) +#define __deref_inout __notnull __elem_readableTo(1) __pre __deref __valid __post __deref __valid __refparam +#define __deref_inout_z __deref_inout __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_inout_ecount(size) __deref_inout __pre __deref __elem_writableTo(size) __post __deref __elem_writableTo(size) +#define __deref_inout_bcount(size) __deref_inout __pre __deref __byte_writableTo(size) __post __deref __byte_writableTo(size) +#define __deref_inout_ecount_part(size,length) __deref_inout_ecount(size) __pre __deref __elem_readableTo(length) __post __deref __elem_readableTo(length) +#define __deref_inout_bcount_part(size,length) __deref_inout_bcount(size) __pre __deref __byte_readableTo(length) __post __deref __byte_readableTo(length) +#define __deref_inout_ecount_full(size) __deref_inout_ecount_part(size,size) +#define __deref_inout_bcount_full(size) __deref_inout_bcount_part(size,size) +#define __deref_inout_z __deref_inout __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_inout_ecount_z(size) __deref_inout_ecount(size) __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_inout_bcount_z(size) __deref_inout_ecount(size) __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_inout_nz __deref_inout +#define __deref_inout_ecount_nz(size) __deref_inout_ecount(size) +#define __deref_inout_bcount_nz(size) __deref_inout_ecount(size) +#define __deref_ecount_opt(size) __deref_ecount(size) __post __deref __exceptthat __maybenull +#define __deref_bcount_opt(size) __deref_bcount(size) __post __deref __exceptthat __maybenull +#define __deref_out_opt __deref_out __post __deref __exceptthat __maybenull +#define __deref_out_ecount_opt(size) __deref_out_ecount(size) __post __deref __exceptthat __maybenull +#define __deref_out_bcount_opt(size) __deref_out_bcount(size) __post __deref __exceptthat __maybenull +#define __deref_out_ecount_part_opt(size,length) __deref_out_ecount_part(size,length) __post __deref __exceptthat __maybenull +#define __deref_out_bcount_part_opt(size,length) __deref_out_bcount_part(size,length) __post __deref __exceptthat __maybenull +#define __deref_out_ecount_full_opt(size) __deref_out_ecount_full(size) __post __deref __exceptthat __maybenull +#define __deref_out_bcount_full_opt(size) __deref_out_bcount_full(size) __post __deref __exceptthat __maybenull +#define __deref_out_z_opt __post __deref __valid __refparam __execeptthat __maybenull __post __deref __nullterminated +#define __deref_out_ecount_z_opt(size) __deref_out_ecount_opt(size) __post __deref __nullterminated +#define __deref_out_bcount_z_opt(size) __deref_out_bcount_opt(size) __post __deref __nullterminated +#define __deref_out_nz_opt __deref_out_opt +#define __deref_out_ecount_nz_opt(size) __deref_out_ecount_opt(size) +#define __deref_out_bcount_nz_opt(size) __deref_out_bcount_opt(size) +#define __deref_inout_opt __deref_inout __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull +#define __deref_inout_ecount_opt(size) __deref_inout_ecount(size) __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull +#define __deref_inout_bcount_opt(size) __deref_inout_bcount(size) __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull +#define __deref_inout_ecount_part_opt(size,length) __deref_inout_ecount_part(size,length) __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull +#define __deref_inout_bcount_part_opt(size,length) __deref_inout_bcount_part(size,length) __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull +#define __deref_inout_ecount_full_opt(size) __deref_inout_ecount_full(size) __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull +#define __deref_inout_bcount_full_opt(size) __deref_inout_bcount_full(size) __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull +#define __deref_inout_z_opt __deref_inout_opt __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_inout_ecount_z_opt(size) __deref_inout_ecount_opt(size) __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_inout_bcount_z_opt(size) __deref_inout_bcount_opt(size) __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_inout_nz_opt __deref_inout_opt +#define __deref_inout_ecount_nz_opt(size) __deref_inout_ecount_opt(size) +#define __deref_inout_bcount_nz_opt(size) __deref_inout_bcount_opt(size) +#define __deref_opt_ecount(size) __deref_ecount(size) __exceptthat __maybenull +#define __deref_opt_bcount(size) __deref_bcount(size) __exceptthat __maybenull +#define __deref_opt_out __deref_out __exceptthat __maybenull +#define __deref_opt_out_z __deref_opt_out __post __deref __nullterminated +#define __deref_opt_out_ecount(size) __deref_out_ecount(size) __exceptthat __maybenull +#define __deref_opt_out_bcount(size) __deref_out_bcount(size) __exceptthat __maybenull +#define __deref_opt_out_ecount_part(size,length) __deref_out_ecount_part(size,length) __exceptthat __maybenull +#define __deref_opt_out_bcount_part(size,length) __deref_out_bcount_part(size,length) __exceptthat __maybenull +#define __deref_opt_out_ecount_full(size) __deref_out_ecount_full(size) __exceptthat __maybenull +#define __deref_opt_out_bcount_full(size) __deref_out_bcount_full(size) __exceptthat __maybenull +#define __deref_opt_inout __deref_inout __exceptthat __maybenull +#define __deref_opt_inout_ecount(size) __deref_inout_ecount(size) __exceptthat __maybenull +#define __deref_opt_inout_bcount(size) __deref_inout_bcount(size) __exceptthat __maybenull +#define __deref_opt_inout_ecount_part(size,length) __deref_inout_ecount_part(size,length) __exceptthat __maybenull +#define __deref_opt_inout_bcount_part(size,length) __deref_inout_bcount_part(size,length) __exceptthat __maybenull +#define __deref_opt_inout_ecount_full(size) __deref_inout_ecount_full(size) __exceptthat __maybenull +#define __deref_opt_inout_bcount_full(size) __deref_inout_bcount_full(size) __exceptthat __maybenull +#define __deref_opt_inout_z __deref_opt_inout __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_opt_inout_ecount_z(size) __deref_opt_inout_ecount(size) __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_opt_inout_bcount_z(size) __deref_opt_inout_bcount(size) __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_opt_inout_nz __deref_opt_inout +#define __deref_opt_inout_ecount_nz(size) __deref_opt_inout_ecount(size) +#define __deref_opt_inout_bcount_nz(size) __deref_opt_inout_bcount(size) +#define __deref_opt_ecount_opt(size) __deref_ecount_opt(size) __exceptthat __maybenull +#define __deref_opt_bcount_opt(size) __deref_bcount_opt(size) __exceptthat __maybenull +#define __deref_opt_out_opt __deref_out_opt __exceptthat __maybenull +#define __deref_opt_out_ecount_opt(size) __deref_out_ecount_opt(size) __exceptthat __maybenull +#define __deref_opt_out_bcount_opt(size) __deref_out_bcount_opt(size) __exceptthat __maybenull +#define __deref_opt_out_ecount_part_opt(size,length) __deref_out_ecount_part_opt(size,length) __exceptthat __maybenull +#define __deref_opt_out_bcount_part_opt(size,length) __deref_out_bcount_part_opt(size,length) __exceptthat __maybenull +#define __deref_opt_out_ecount_full_opt(size) __deref_out_ecount_full_opt(size) __exceptthat __maybenull +#define __deref_opt_out_bcount_full_opt(size) __deref_out_bcount_full_opt(size) __exceptthat __maybenull +#define __deref_opt_out_z_opt __post __deref __valid __refparam __exceptthat __maybenull __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull __post __deref __nullterminated +#define __deref_opt_out_ecount_z_opt(size) __deref_opt_out_ecount_opt(size) __post __deref __nullterminated +#define __deref_opt_out_bcount_z_opt(size) __deref_opt_out_bcount_opt(size) __post __deref __nullterminated +#define __deref_opt_out_nz_opt __deref_opt_out_opt +#define __deref_opt_out_ecount_nz_opt(size) __deref_opt_out_ecount_opt(size) +#define __deref_opt_out_bcount_nz_opt(size) __deref_opt_out_bcount_opt(size) +#define __deref_opt_inout_opt __deref_inout_opt __exceptthat __maybenull +#define __deref_opt_inout_ecount_opt(size) __deref_inout_ecount_opt(size) __exceptthat __maybenull +#define __deref_opt_inout_bcount_opt(size) __deref_inout_bcount_opt(size) __exceptthat __maybenull +#define __deref_opt_inout_ecount_part_opt(size,length) __deref_inout_ecount_part_opt(size,length) __exceptthat __maybenull +#define __deref_opt_inout_bcount_part_opt(size,length) __deref_inout_bcount_part_opt(size,length) __exceptthat __maybenull +#define __deref_opt_inout_ecount_full_opt(size) __deref_inout_ecount_full_opt(size) __exceptthat __maybenull +#define __deref_opt_inout_bcount_full_opt(size) __deref_inout_bcount_full_opt(size) __exceptthat __maybenull +#define __deref_opt_inout_z_opt __deref_opt_inout_opt __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_opt_inout_ecount_z_opt(size) __deref_opt_inout_ecount_opt(size) __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_opt_inout_bcount_z_opt(size) __deref_opt_inout_bcount_opt(size) __pre __deref __nullterminated __post __deref __nullterminated +#define __deref_opt_inout_nz_opt __deref_opt_inout_opt +#define __deref_opt_inout_ecount_nz_opt(size) __deref_opt_inout_ecount_opt(size) +#define __deref_opt_inout_bcount_nz_opt(size) __deref_opt_inout_bcount_opt(size) + +/* +------------------------------------------------------------------------------- +Advanced Annotation Definitions + +Any of these may be used to directly annotate functions, and may be used in +combination with each other or with regular buffer macros. For an explanation +of each annotation, see the advanced annotations section. +------------------------------------------------------------------------------- +*/ + +#define __success(expr) __inner_success(expr) +#define __nullterminated __readableTo(sentinel(0)) +#define __nullnullterminated +#define __reserved __pre __null +#define __checkReturn __inner_checkReturn +#define __typefix(ctype) __inner_typefix(ctype) +#define __override __inner_override +#define __callback __inner_callback +#define __format_string +#define __blocksOn(resource) __inner_blocksOn(resource) +#define __control_entrypoint(category) __inner_control_entrypoint(category) +#define __data_entrypoint(category) __inner_data_entrypoint(category) + +#ifndef __fallthrough + __inner_fallthrough_dec + #define __fallthrough __inner_fallthrough +#endif + +#ifndef __analysis_assume +#ifdef _PREFAST_ +#define __analysis_assume(expr) __assume(expr) +#else +#define __analysis_assume(expr) +#endif +#endif + +#ifdef __cplusplus +} +#endif + +#endif //__specstrings \ No newline at end of file diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstring.h b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstring.h new file mode 100644 index 0000000000000000000000000000000000000000..b29b34cf3329a021d5cbdfe1d977376c2ca6c06f --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstring.h @@ -0,0 +1,342 @@ +//*@@@+++@@@@****************************************************************** +// +// Copyright © Microsoft Corp. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// • Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// • Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +//*@@@---@@@@****************************************************************** + +#ifndef _WMSPECSTRING_H_ +#define _WMSPECSTRING_H_ + +#if (!defined UNDER_CE && !defined NO_WINDOWS && !defined SPECSTRINGS_H) +#define SPECSTRINGS_H +/************************************************************************* +* See specstrings_strict.h for documentation of all user visible macros. +*************************************************************************/ +#if _MSC_VER +#pragma once +#endif +#include + +#ifndef __SAL_H_FULL_VER +#define __SAL_H_FULL_VER 140050727 +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* version specific fixes to bring sal.h upto date */ +#if __SAL_H_FULL_VER <= 140050727 + +/* Missing from RTM sal.h */ +#if !defined(__midl) && defined(_PREFAST_) && _MSC_VER >= 1000 + +#define __inexpressible_readableTo(size) __declspec("SAL_readableTo(inexpressibleCount('" SPECSTRINGIZE(size) "'))") +#define __inexpressible_writableTo(size) __declspec("SAL_writableTo(inexpressibleCount('" SPECSTRINGIZE(size) "'))") +#define __inner_bound __declspec("SAL_bound") +#define __inner_range(lb,ub) __declspec("SAL_range(" SPECSTRINGIZE(lb) "," SPECSTRINGIZE(ub) ")") +#define __inner_assume_bound_dec __inline __nothrow void __AssumeBoundInt(__post __inner_bound int i) {i;} +#define __inner_assume_bound(i) __AssumeBoundInt(i); +#define __inner_allocator __declspec("SAL_allocator") +#else +#define __inexpressible_readableTo(size) +#define __inexpressible_writableTo(size) +#define __inner_bound +#define __inner_range(lb,ub) +#define __inner_assume_bound_dec +#define __inner_assume_bound(i) +#define __inner_allocator +#endif + +#define __xcount(size) __notnull __inexpressible_writableTo(size) +#define __in_xcount(size) __in __pre __inexpressible_readableTo(size) +#define __out_xcount(size) __xcount(size) __post __valid __refparam +#define __out_xcount_part(size,length) __out_xcount(size) __post __inexpressible_readableTo(length) +#define __out_xcount_full(size) __out_xcount_part(size,size) +#define __inout_xcount(size) __out_xcount(size) __pre __valid +#define __inout_xcount_part(size,length) __out_xcount_part(size,length) __pre __valid __pre __inexpressible_readableTo(length) +#define __inout_xcount_full(size) __inout_xcount_part(size,size) +#define __xcount_opt(size) __xcount(size) __exceptthat __maybenull +#define __in_xcount_opt(size) __in_xcount(size) __exceptthat __maybenull +#define __out_xcount_opt(size) __out_xcount(size) __exceptthat __maybenull +#define __out_xcount_part_opt(size,length) __out_xcount_part(size,length) __exceptthat __maybenull +#define __out_xcount_full_opt(size) __out_xcount_full(size) __exceptthat __maybenull +#define __inout_xcount_opt(size) __inout_xcount(size) __exceptthat __maybenull +#define __inout_xcount_part_opt(size,length) __inout_xcount_part(size,length) __exceptthat __maybenull +#define __inout_xcount_full_opt(size) __inout_xcount_full(size) __exceptthat __maybenull +#define __deref_xcount(size) __ecount(1) __post __elem_readableTo(1) __post __deref __notnull __post __deref __inexpressible_writableTo(size) +#define __deref_in __in __pre __deref __deref __readonly +#define __deref_in_ecount(size) __deref_in __pre __deref __elem_readableTo(size) +#define __deref_in_bcount(size) __deref_in __pre __deref __byte_readableTo(size) +#define __deref_in_xcount(size) __deref_in __pre __deref __inexpressible_readableTo(size) +#define __deref_out_xcount(size) __deref_xcount(size) __post __deref __valid __refparam +#define __deref_out_xcount_part(size,length) __deref_out_xcount(size) __post __deref __inexpressible_readableTo(length) +#define __deref_out_xcount_full(size) __deref_out_xcount_part(size,size) +#define __deref_out_xcount(size) __deref_xcount(size) __post __deref __valid __refparam +#define __inout_xcount_opt(size) __inout_xcount(size) __exceptthat __maybenull +#define __inout_xcount_part_opt(size,length) __inout_xcount_part(size,length) __exceptthat __maybenull +#define __inout_xcount_full_opt(size) __inout_xcount_full(size) __exceptthat __maybenull +#define __deref_xcount(size) __ecount(1) __post __elem_readableTo(1) __post __deref __notnull __post __deref __inexpressible_writableTo(size) +#define __deref_in __in __pre __deref __deref __readonly +#define __deref_in_ecount(size) __deref_in __pre __deref __elem_readableTo(size) +#define __deref_in_bcount(size) __deref_in __pre __deref __byte_readableTo(size) +#define __deref_in_xcount(size) __deref_in __pre __deref __inexpressible_readableTo(size) +#define __deref_out_xcount(size) __deref_xcount(size) __post __deref __valid __refparam +#define __deref_out_xcount_part(size,length) __deref_out_xcount(size) __post __deref __inexpressible_readableTo(length) +#define __deref_out_xcount_full(size) __deref_out_xcount_part(size,size) +#define __deref_out_xcount(size) __deref_xcount(size) __post __deref __valid __refparam +#define __deref_inout_xcount(size) __deref_inout __pre __deref __inexpressible_writableTo(size) __post __deref __inexpressible_writableTo(size) +#define __deref_inout_xcount_part(size,length) __deref_inout_xcount(size) __pre __deref __inexpressible_readableTo(length) __post __deref __inexpressible_readableTo(length) +#define __deref_inout_xcount_full(size) __deref_inout_xcount_part(size,size) +#define __deref_xcount_opt(size) __deref_xcount(size) __post __deref __exceptthat __maybenull +#define __deref_in_opt __deref_in __pre __deref __exceptthat __maybenull +#define __deref_in_ecount_opt(size) __deref_in_ecount(size) __pre __deref __exceptthat __maybenull +#define __deref_in_bcount_opt(size) __deref_in_bcount(size) __pre __deref __exceptthat __maybenull +#define __deref_in_xcount_opt(size) __deref_in_xcount(size) __pre __deref __exceptthat __maybenull +#define __deref_out_xcount_opt(size) __deref_out_xcount(size) __post __deref __exceptthat __maybenull +#define __deref_out_xcount_part_opt(size,length) __deref_out_xcount_part(size,length) __post __deref __exceptthat __maybenull +#define __deref_out_xcount_full_opt(size) __deref_out_xcount_full(size) __post __deref __exceptthat __maybenull +#define __deref_inout_xcount_opt(size) __deref_inout_xcount(size) __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull +#define __deref_inout_xcount_part_opt(size,length) __deref_inout_xcount_part(size,length) __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull +#define __deref_inout_xcount_full_opt(size) __deref_inout_xcount_full(size) __pre __deref __exceptthat __maybenull __post __deref __exceptthat __maybenull +#define __deref_opt_xcount(size) __deref_xcount(size) __exceptthat __maybenull +#define __deref_opt_in __deref_in __exceptthat __maybenull +#define __deref_opt_in_ecount(size) __deref_in_ecount(size) __exceptthat __maybenull +#define __deref_opt_in_bcount(size) __deref_in_bcount(size) __exceptthat __maybenull +#define __deref_opt_in_xcount(size) __deref_in_xcount(size) __exceptthat __maybenull +#define __deref_opt_out_xcount(size) __deref_out_xcount(size) __exceptthat __maybenull +#define __deref_opt_out_xcount_part(size,length) __deref_out_xcount_part(size,length) __exceptthat __maybenull +#define __deref_opt_out_xcount_full(size) __deref_out_xcount_full(size) __exceptthat __maybenull +#define __deref_opt_inout_xcount(size) __deref_inout_xcount(size) __exceptthat __maybenull +#define __deref_opt_inout_xcount_part(size,length) __deref_inout_xcount_part(size,length) __exceptthat __maybenull +#define __deref_opt_inout_xcount_full(size) __deref_inout_xcount_full(size) __exceptthat __maybenull +#define __deref_opt_xcount_opt(size) __deref_xcount_opt(size) __exceptthat __maybenull +#define __deref_opt_in_opt __deref_in_opt __exceptthat __maybenull +#define __deref_opt_in_ecount_opt(size) __deref_in_ecount_opt(size) __exceptthat __maybenull +#define __deref_opt_in_bcount_opt(size) __deref_in_bcount_opt(size) __exceptthat __maybenull +#define __deref_opt_in_xcount_opt(size) __deref_in_xcount_opt(size) __exceptthat __maybenull +#define __deref_opt_out_xcount_opt(size) __deref_out_xcount_opt(size) __exceptthat __maybenull +#define __deref_opt_out_xcount_part_opt(size,length) __deref_out_xcount_part_opt(size,length) __exceptthat __maybenull +#define __deref_opt_out_xcount_full_opt(size) __deref_out_xcount_full_opt(size) __exceptthat __maybenull +#define __deref_opt_inout_xcount_opt(size) __deref_inout_xcount_opt(size) __exceptthat __maybenull +#define __deref_opt_inout_xcount_part_opt(size,length) __deref_inout_xcount_part_opt(size,length) __exceptthat __maybenull +#define __deref_opt_inout_xcount_full_opt(size) __deref_inout_xcount_full_opt(size) __exceptthat __maybenull +/* Must protect redfinitions of macros to workaround rc.exe issues. */ +#ifndef RC_INVOKED +#undef __nullnullterminated +#define __nullnullterminated __xcount("string terminated by two nulls") +#undef __checkReturn +#define __checkReturn __post __inner_checkReturn +#endif +#endif //__SAL_H_FULL_VER <= 140050727 + +/************************************************************************ + New extensions to sal.h follow here. +*************************************************************************/ + +#if (_MSC_VER >= 1000) && !defined(__midl) && defined(_PREFAST_) +#define __file_parser(typ) __declspec("SAL_file_parser(function, " #typ ")") +#define __file_parser_class(typ) __declspec("SAL_file_parser(class, " #typ ")") +#define __file_parser_library(typ) extern int __declspec("SAL_file_parser(library, " #typ ")") __iSALFileParserLibrary##typ; +#define __source_code_content(typ) extern int __declspec("SAL_source_code_content(" #typ ")") __iSAL_Source_Code_Content##typ; +#define __class_code_content(typ) __declspec("SAL_class_code_content(" #typ ")") +#define __analysis_assert(e) __assume(e) +#define __analysis_hint(hint) __declspec("SAL_analysisHint(" #hint ")") +/* Internal defintions */ +#define __inner_data_source(src_raw) __declspec("SAL_untrusted_data_source(" src_raw ")") +#define __inner_this_data_source(src_raw) __declspec("SAL_untrusted_data_source_this(" src_raw ")") +#define __inner_out_validated(typ_raw) __declspec("SAL_post") __declspec("SAL_validated(" typ_raw ")") +#define __inner_this_out_validated(typ_raw) __declspec("SAL_validated_this(" typ_raw ")") +#define __inner_assume_validated_dec __inline __nothrow void __AssumeValidated(__inner_out_validated("BY_DESIGN") const void *p) {p;} +#define __inner_assume_validated(p) __AssumeValidated(p) +#define __inner_transfer(formal) __declspec("SAL_transfer_adt_property_from(" SPECSTRINGIZE(formal) ")") +#define __inner_encoded __declspec("SAL_encoded") + +#define __$adt_prop(adt,prop) __declspec("SAL_adt("#adt","#prop")") +#define __$adt_add_prop(adt,prop) __declspec("SAL_add_adt_property("#adt","#prop")") +#define __$adt_remove_prop(adt,prop) __declspec("SAL_remove_adt_property("#adt","#prop")") +#define __$adt_transfer_prop(arg) __declspec("SAL_transfer_adt_property_from("#arg")") +#define __$adt_type_props(typ) __declspec("SAL_post_type("#typ")") +#define __$volatile __declspec("SAL_volatile") +#define __$nonvolatile __declspec("SAL_nonvolatile") +#define __$possibly_notnulltermiated __declspec("SAL_RequiresZeroTermination(sometimes)") +#else +#define __file_parser(typ) +#define __file_parser_class(typ) +#define __file_parser_library(typ) +#define __source_code_content(typ) +#define __class_code_content(typ) +#define __analysis_assert(e) +#define __analysis_hint(hint) +/* Internal defintions */ +#define __inner_data_source(src_raw) +#define __inner_this_data_source(src_raw) +#define __inner_out_validated(typ_raw) +#define __inner_this_out_validated(typ_raw) +#define __inner_assume_validated_dec +#define __inner_assume_validated(p) +#define __inner_transfer(formal) +#define __inner_encoded +#define __$adt_prop(adt,prop) +#define __$adt_add_prop(adt,prop) +#define __$adt_remove_prop(adt,prop) +#define __$adt_transfer_prop(arg) +#define __$adt_type_props(typ) +#define __$volatile +#define __$nonvolatile +#define __$possibly_notnulltermiated +#endif // #if (_MSC_VER >= 1000) && !defined(__midl) && defined(_PREFAST_) + +#define __field_ecount(size) __notnull __elem_writableTo(size) +#define __field_bcount(size) __notnull __byte_writableTo(size) +#define __field_xcount(size) __notnull __inexpressible_writableTo(size) + +#define __field_ecount_opt(size) __maybenull __elem_writableTo(size) +#define __field_bcount_opt(size) __maybenull __byte_writableTo(size) +#define __field_xcount_opt(size) __maybenull __inexpressible_writableTo(size) + +#define __field_ecount_part(size,init) __notnull __elem_writableTo(size) __elem_readableTo(init) +#define __field_bcount_part(size,init) __notnull __byte_writableTo(size) __byte_readableTo(init) +#define __field_xcount_part(size,init) __notnull __inexpressible_writableTo(size) __inexpressible_readableTo(init) + +#define __field_ecount_part_opt(size,init) __maybenull __elem_writableTo(size) __elem_readableTo(init) +#define __field_bcount_part_opt(size,init) __maybenull __byte_writableTo(size) __byte_readableTo(init) +#define __field_xcount_part_opt(size,init) __maybenull __inexpressible_writableTo(size) __inexpressible_readableTo(init) + +#define __field_ecount_full(size) __field_ecount_part(size,size) +#define __field_bcount_full(size) __field_bcount_part(size,size) +#define __field_xcount_full(size) __field_xcount_part(size,size) + +#define __field_ecount_full_opt(size) __field_ecount_part_opt(size,size) +#define __field_bcount_full_opt(size) __field_bcount_part_opt(size,size) +#define __field_xcount_full_opt(size) __field_xcount_part_opt(size,size) + +#define __struct_bcount(size) __field_bcount(size) +#define __struct_xcount(size) __field_xcount(size) + +#if !defined(__out_awcount) +#define __out_awcount(expr,size) __pre __notnull \ + __byte_writableTo((expr) ? (size) : (size) * 2) \ + __post __valid __refparam +#endif +#if !defined(__in_awcount) +#define __in_awcount(expr,size) __pre __valid \ + __pre __deref __readonly \ + __byte_readableTo((expr) ? (size) : (size) * 2) +#endif + +/* integer related macros */ +#define __allocator __inner_allocator +#define __bound __inner_bound +#define __range(lb,ub) __inner_range(lb,ub) +#define __in_bound __pre __inner_bound +#define __out_bound __post __inner_bound +#define __deref_out_bound __post __deref __inner_bound +#define __in_range(lb,ub) __pre __inner_range(lb,ub) +#define __out_range(lb,ub) __post __inner_range(lb,ub) +#define __deref_in_range(lb,ub) __pre __deref __inner_range(lb,ub) +#define __deref_out_range(lb,ub) __post __deref __inner_range(lb,ub) +#define __field_range(lb,ub) __range(lb,ub) +#define __field_data_source(src_sym) __inner_data_source(#src_sym) + +/* Pentraion review macros */ +#define __in_data_source(src_sym) __pre __inner_data_source(#src_sym) +#define __out_data_source(src_sym) __post __inner_data_source(#src_sym) +#define __out_validated(typ_sym) __inner_out_validated(#typ_sym) +#define __this_out_data_source(src_sym) __inner_this_data_source(#src_sym) +#define __this_out_validated(typ_sym) __inner_this_out_validated(#typ_sym) +#define __transfer(formal) __post __inner_transfer(formal) +#define __rpc_entry __inner_control_entrypoint(RPC) +#define __kernel_entry __inner_control_entrypoint(UserToKernel) +#define __gdi_entry __inner_control_entrypoint(GDI) +#define __encoded_pointer __inner_encoded +#define __encoded_array __inner_encoded +#define __field_encoded_pointer __inner_encoded +#define __field_encoded_array __inner_encoded +#define __type_has_adt_prop(adt,prop) __$adt_prop(adt,prop) +#define __out_has_adt_prop(adt,prop) __post __$adt_add_prop(adt,prop) +#define __out_not_has_adt_prop(adt,prop) __post __$adt_remove_prop(adt,prop) +#define __out_transfer_adt_prop(arg) __post __$adt_transfer_prop(arg) +#define __out_has_type_adt_props(typ) __post __$adt_type_props(typ) + +/* useful PFD related macros */ +#define __possibly_notnulltermiated __post __$possibly_notnulltermiated + +#if defined(_WINDOWS_) +/* Windows Internal */ +#define __volatile __$volatile +#define __nonvolatile __$nonvolatile +#define __deref_volatile __deref __volatile +#define __deref_nonvolatile __deref __nonvolatile +#endif + +/* declare stub functions for macros */ +__inner_assume_validated_dec +__inner_assume_bound_dec + +#define __assume_validated(p) __inner_assume_validated(p) +#define __assume_bound(i) __inner_assume_bound(i) +#ifdef __cplusplus +} +#endif +#include +#ifdef _PREFIX_ +/************************************************************************** +* Defintion of __pfx_assume and __pfx_assert. Thse should be the only +* defintions of these functions. +***************************************************************************/ +#if __cplusplus +extern "C" void __pfx_assert(bool, const char *); +extern "C" void __pfx_assume(bool, const char *); +#else +void __pfx_assert(int, const char *); +void __pfx_assume(int, const char *); +#endif +/************************************************************************** +* Redefintion of __analysis_assume and __analysis_assert for PREFIX build +**************************************************************************/ +#undef __analysis_assume +#undef __analysis_assert +#define __analysis_assume(e) (__pfx_assume(e,"pfx_assume"),__assume(e)); +#define __analysis_assert(e) (__pfx_assert(e,"pfx_assert"),__assume(e)); +#endif /* ifdef _PREFIX_ */ + +/************************************************************************** +* This include should always be the last thing in this file. +* Must avoid redfinitions of macros to workaround rc.exe issues. +***************************************************************************/ +#if !(defined(RC_INVOKED) || defined(SORTPP_PASS)) +#include +#endif /* if !(defined(RC_INVOKED) || defined(SORTPP_PASS)) */ +#endif /* #ifndef SPECSTRINGS_H */ + +// Some CE versions don't have specstrings.h, some have very old version without +// __specstrings defined. So we handle CE separately in wmasalce.h +#if defined(UNDER_CE) || defined(NO_WINDOWS) + #include "wmspecstringce.h" +#endif + +#endif //_WMSPECSTRING_H_ + diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstrings_adt.h b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstrings_adt.h new file mode 100644 index 0000000000000000000000000000000000000000..2fed4dce9b2fb45ac2e1a929dd7ff8f7cee4ab39 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstrings_adt.h @@ -0,0 +1,71 @@ +//*@@@+++@@@@****************************************************************** +// +// Copyright © Microsoft Corp. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// • Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// • Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +//*@@@---@@@@****************************************************************** + +#pragma once +/************************************************************************* +* DEFINITIONS OF NEW TYPES +*************************************************************************/ +#if !defined(__midl) +#define __$compname_props \ + __type_has_adt_prop(compname,nullterminated) \ + __type_has_adt_prop(compname,valid_schars) \ + __type_has_adt_prop(compname,correct_len) \ + __nullterminated +#if defined(UNICODE) || defined(_UNICODE) +#define __$TCHAR unsigned short +#else +#define __$TCHAR char +#endif +typedef __$compname_props char* ValidCompNameA; +typedef __$compname_props unsigned short* ValidCompNameW; +typedef __$compname_props const unsigned short* ConstValidCompNameW; +typedef __$compname_props __$TCHAR* SAL_ValidCompNameT; +typedef __$compname_props const __$TCHAR* SAL_ConstValidCompNameT; +#undef __$compname_props +#undef __$TCHAR +#endif + +/************************************************************************* +* DEFINITIONS OF INLINE FUNCTIONS FOR CASTING TO THE NEW TYPES : USER +*************************************************************************/ +#if (_MSC_VER >= 1000) && !defined(__midl) && defined(_PREFAST_) +#ifdef __cplusplus +extern "C" { +#endif +void __inline __nothrow __SAL_ValidCompNameA(__out_has_type_adt_props(ValidCompNameA) const void *expr) { expr;} +void __inline __nothrow __SAL_ValidCompNameW(__out_has_type_adt_props(ValidCompNameW) const void *expr) { expr;} +#ifdef __cplusplus +} +#endif +#define __assume_ValidCompNameA(expr) __SAL_ValidCompNameA(expr) +#define __assume_ValidCompNameW(expr) __SAL_ValidCompNameW(expr) +#else +#define __assume_ValidCompNameA(expr) +#define __assume_ValidCompNameW(expr) +#endif + diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstrings_strict.h b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstrings_strict.h new file mode 100644 index 0000000000000000000000000000000000000000..b7e1a34e6d00eb826ce533d3a7967bd76a6e990c --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstrings_strict.h @@ -0,0 +1,1096 @@ +//*@@@+++@@@@****************************************************************** +// +// Copyright © Microsoft Corp. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// • Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// • Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +//*@@@---@@@@****************************************************************** + + +/************************************************************************* +* This file documents all the macros approved for use in windows source +* code. It includes some experimental macros which should only be used by +* experts. +* +* DO NOT include this file directly. This file is include after +* specstrings.h. So we can undefine every possible old definition including +* private internal macros people should not be using, as well as macros from +* sal.h. Macros are redefined here in a way to cause syntax errors when used +* incorrectly during a normal build when specstrings.h is included and +* __SPECSTRINGS_STRICT_LEVEL is defined. +* +* There are several levels of strictness, each level includes the behavior of +* all previous levels. +* +* 0 - Disable strict checking +* 1 - Break on unapproved macros and misuse of statement +* macros such as __fallthrough (default) +* 2 - Deprecated some old macros that should not be used +* 3 - Use VS 2005 Source Annotation to make sure every macro +* is used in the right context. For example placing __in on a return +* parameter will result in an error. +************************************************************************/ +#ifndef __SPECSTRINGS_STRICT_LEVEL +#define __SPECSTRINGS_STRICT_LEVEL 1 +#endif +/************************************************************************ +* Introduction +* +* specstrings.h provides a set of annotations to describe how a function uses +* its parameters - the assumptions it makes about them, and the guarantees it +* makes upon finishing. +* +* Annotations must be placed before a function parameter's type or its return +* type. There are two basic classes of common annotations buffer annotations +* and advanced annotations. Buffer annotations describe how functions use +* their pointer parameters, and advanced annotations either describe +* complex/unusual buffer behavior, or provide additional information about a +* parameter that is not otherwise expressible. +* +* Buffer Annotations +* +* The most important annotations in SpecStrings.h provide a consistent way to +* annotate buffer parameters or return values for a function. Each of these +* annotations describes a single buffer (which could be a string, a +* fixed-length or variable-length array, or just a pointer) that the function +* interacts with: where it is, how large it is, how much is initialized, and +* what the function does with it. +* +* The appropriate macro for a given buffer can be constructed using the table +* below. Just pick the appropriate values from each category, and combine +* them together with a leading underscore. Some combinations of values do not +* make sense as buffer annotations. Only meaningful annotations can be added +* to your code; for a list of these, see the buffer annotation definitions +* section. +* +* Only a single buffer annotation should be used for each parameter. +* +* |------------|------------|---------|--------|----------|---------------| +* | Level | Usage | Size | Output | Optional | Parameters | +* |------------|------------|---------|--------|----------|---------------| +* | <> | <> | <> | <> | <> | <> | +* | _deref | _in | _ecount | _full | _opt | (size) | +* | _deref_opt | _out | _bcount | _part | | (size,length) | +* | | _inout | | | | | +* | | | | | | | +* |------------|------------|---------|--------|----------|---------------| +* +* Note: "<>" represents the empty string. +* +* Level: Describes the buffer pointer's level of indirection from the +* parameter or return value 'p'. +* +* <> : p is the buffer pointer. +* _deref : *p is the buffer pointer. p must not be NULL. +* _deref_opt : *p may be the buffer pointer. p may be NULL, in which case the +* rest of the annotation is ignored. +* +* Usage: Describes how the function uses the buffer. +* +* <> : The buffer is not accessed. If used on the return value or with +* _deref, the function will provide the buffer, and it will be uninitialized +* at exit. Otherwise, the caller must provide the buffer. This should only +* be used for alloc and free functions. +* +* _in : The function will only read from the buffer. The caller must provide +* the buffer and initialize it. +* +* _out : The function will only write to the buffer. If used on the return +* value or with _deref, the function will provide the buffer and initialize +* it. Otherwise, the caller must provide the buffer, and the function will +* initialize it. +* +* _inout : The function may freely read from and write to the buffer. The +* caller must provide the buffer and initialize it. If used with _deref, the +* buffer may be reallocated by the function. +* +* Size: Describes the total size of the buffer. This may be less than the +* space actually allocated for the buffer, in which case it describes the +* accessible amount. +* +* <> : No buffer size is given. If the type specifies the buffer size (such +* as with LPSTR and LPWSTR), that amount is used. Otherwise, the buffer is +* one element long. Must be used with _in, _out, or _inout. +* +* _ecount : The buffer size is an explicit element count. +* +* _bcount : The buffer size is an explicit byte count. +* +* Output: Describes how much of the buffer will be initialized by the +* function. For _inout buffers, this also describes how much is initialized +* at entry. Omit this category for _in buffers; they must be fully +* initialized by the caller. +* +* <> : The type specifies how much is initialized. For instance, a function +* initializing an LPWSTR must NULL-terminate the string. +* +* _full : The function initializes the entire buffer. +* +* _part : The function initializes part of the buffer, and explicitly +* indicates how much. +* +* Optional: Describes if the buffer itself is optional. +* +* <> : The pointer to the buffer must not be NULL. +* +* _opt : The pointer to the buffer might be NULL. It will be checked before +* being dereferenced. +* +* Parameters: Gives explicit counts for the size and length of the buffer. +* +* <> : There is no explicit count. Use when neither _ecount nor _bcount is +* used. +* +* (size) : Only the buffer's total size is given. Use with _ecount or _bcount +* but not _part. +* +* (size,length) : The buffer's total size and initialized length are +* given. Use with _ecount_part and _bcount_part. +* +* ---------------------------------------------------------------------------- +* Buffer Annotation Examples +* +* LWSTDAPI_(BOOL) StrToIntExA( +* LPCSTR pszString, // No annotation required, const implies __in. +* DWORD dwFlags, +* __out int *piRet // A pointer whose dereference will be filled in. +* ); +* +* void MyPaintingFunction( +* __in HWND hwndControl, // An initialized read-only parameter. +* __in_opt HDC hdcOptional, // An initialized read-only parameter that +* // might be NULL. +* __inout IPropertyStore *ppsStore // An initialized parameter that +* // may be freely used and modified. +* ); +* +* LWSTDAPI_(BOOL) PathCompactPathExA( +* __out_ecount(cchMax) LPSTR pszOut, // A string buffer with cch elements +* // that will be '\0' terminated +* // on exit. +* LPCSTR pszSrc, // No annotation required, +* // const implies __in. +* UINT cchMax, +* DWORD dwFlags +* ); +* +* HRESULT SHLocalAllocBytes( +* size_t cb, +* __deref_bcount(cb) T **ppv // A pointer whose dereference will be set +* // to an uninitialized buffer with cb bytes. +* ); +* +* __inout_bcount_full(cb) : A buffer with cb elements that is fully +* initialized at entry and exit, and may be written to by this function. +* +* __out_ecount_part(count, *countOut) : A buffer with count elements that +* will be partially initialized by this function. The function indicates how +* much it initialized by setting *countOut. +* +************************************************************************/ +#if (_MSC_VER >= 1400) && !defined(__midl) && !defined(_PREFAST_) && (__SPECSTRINGS_STRICT_LEVEL > 0) +#pragma once +#include +#define __ecount(size) __allowed(on_return) +#define __bcount(size) __allowed(on_return) +#define __xcount(size) __allowed(on_return) +#define __in __allowed(on_parameter) +#define __in_ecount(size) __allowed(on_parameter) +#define __in_bcount(size) __allowed(on_parameter) +#define __in_xcount(size) __allowed(on_parameter) +#define __in_z __allowed(on_parameter) +#define __in_ecount_z(size) __allowed(on_parameter) +#define __in_bcount_z(size) __allowed(on_parameter) +#define __out __allowed(on_parameter) +#define __out_ecount(size) __allowed(on_parameter) +#define __out_bcount(size) __allowed(on_parameter) +#define __out_xcount(size) __allowed(on_parameter) +#define __out_ecount_part(size,len) __allowed(on_parameter) +#define __out_bcount_part(size,len) __allowed(on_parameter) +#define __out_xcount_part(size,len) __allowed(on_parameter) +#define __out_ecount_full(size) __allowed(on_parameter) +#define __out_bcount_full(size) __allowed(on_parameter) +#define __out_xcount_full(size) __allowed(on_parameter) +#define __out_z __allowed(on_parameter) +#define __out_ecount_z(size) __allowed(on_parameter) +#define __out_bcount_z(size) __allowed(on_parameter) +#define __inout __allowed(on_parameter) +#define __inout_ecount(size) __allowed(on_parameter) +#define __inout_bcount(size) __allowed(on_parameter) +#define __inout_xcount(size) __allowed(on_parameter) +#define __inout_ecount_part(size,len) __allowed(on_parameter) +#define __inout_bcount_part(size,len) __allowed(on_parameter) +#define __inout_xcount_part(size,len) __allowed(on_parameter) +#define __inout_ecount_full(size) __allowed(on_parameter) +#define __inout_bcount_full(size) __allowed(on_parameter) +#define __inout_xcount_full(size) __allowed(on_parameter) +#define __inout_z __allowed(on_parameter) +#define __inout_ecount_z(size) __allowed(on_parameter) +#define __inout_bcount_z(size) __allowed(on_parameter) +#define __ecount_opt(size) __allowed(on_parameter) +#define __bcount_opt(size) __allowed(on_parameter) +#define __xcount_opt(size) __allowed(on_parameter) +#define __in_opt __allowed(on_parameter) +#define __in_ecount_opt(size) __allowed(on_parameter) +#define __in_bcount_opt(size) __allowed(on_parameter) +#define __in_z_opt __allowed(on_parameter) +#define __in_ecount_z_opt(size) __allowed(on_parameter) +#define __in_bcount_z_opt(size) __allowed(on_parameter) +#define __in_xcount_opt(size) __allowed(on_parameter) +#define __out_opt __allowed(on_parameter) +#define __out_ecount_opt(size) __allowed(on_parameter) +#define __out_bcount_opt(size) __allowed(on_parameter) +#define __out_xcount_opt(size) __allowed(on_parameter) +#define __out_ecount_part_opt(size,len) __allowed(on_parameter) +#define __out_bcount_part_opt(size,len) __allowed(on_parameter) +#define __out_xcount_part_opt(size,len) __allowed(on_parameter) +#define __out_ecount_full_opt(size) __allowed(on_parameter) +#define __out_bcount_full_opt(size) __allowed(on_parameter) +#define __out_xcount_full_opt(size) __allowed(on_parameter) +#define __out_ecount_z_opt(size) __allowed(on_parameter) +#define __out_bcount_z_opt(size) __allowed(on_parameter) +#define __inout_opt __allowed(on_parameter) +#define __inout_ecount_opt(size) __allowed(on_parameter) +#define __inout_bcount_opt(size) __allowed(on_parameter) +#define __inout_xcount_opt(size) __allowed(on_parameter) +#define __inout_ecount_part_opt(size,len) __allowed(on_parameter) +#define __inout_bcount_part_opt(size,len) __allowed(on_parameter) +#define __inout_xcount_part_opt(size,len) __allowed(on_parameter) +#define __inout_ecount_full_opt(size) __allowed(on_parameter) +#define __inout_bcount_full_opt(size) __allowed(on_parameter) +#define __inout_xcount_full_opt(size) __allowed(on_parameter) +#define __inout_z_opt __allowed(on_parameter) +#define __inout_ecount_z_opt(size) __allowed(on_parameter) +#define __inout_ecount_z_opt(size) __allowed(on_parameter) +#define __inout_bcount_z_opt(size) __allowed(on_parameter) +#define __deref_ecount(size) __allowed(on_parameter) +#define __deref_bcount(size) __allowed(on_parameter) +#define __deref_xcount(size) __allowed(on_parameter) +#define __deref_in __allowed(on_parameter) +#define __deref_in_ecount(size) __allowed(on_parameter) +#define __deref_in_bcount(size) __allowed(on_parameter) +#define __deref_in_xcount(size) __allowed(on_parameter) +#define __deref_out __allowed(on_parameter) +#define __deref_out_ecount(size) __allowed(on_parameter) +#define __deref_out_bcount(size) __allowed(on_parameter) +#define __deref_out_xcount(size) __allowed(on_parameter) +#define __deref_out_ecount_part(size,len) __allowed(on_parameter) +#define __deref_out_bcount_part(size,len) __allowed(on_parameter) +#define __deref_out_xcount_part(size,len) __allowed(on_parameter) +#define __deref_out_ecount_full(size) __allowed(on_parameter) +#define __deref_out_bcount_full(size) __allowed(on_parameter) +#define __deref_out_xcount_full(size) __allowed(on_parameter) +#define __deref_out_z __allowed(on_parameter) +#define __deref_out_ecount_z(size) __allowed(on_parameter) +#define __deref_out_bcount_z(size) __allowed(on_parameter) +#define __deref_out_xcount(size) __allowed(on_parameter) +#define __deref_inout __allowed(on_parameter) +#define __deref_inout_ecount(size) __allowed(on_parameter) +#define __deref_inout_bcount(size) __allowed(on_parameter) +#define __deref_inout_xcount(size) __allowed(on_parameter) +#define __deref_inout_ecount_part(size,len) __allowed(on_parameter) +#define __deref_inout_bcount_part(size,len) __allowed(on_parameter) +#define __deref_inout_xcount_part(size,len) __allowed(on_parameter) +#define __deref_inout_ecount_full(size) __allowed(on_parameter) +#define __deref_inout_bcount_full(size) __allowed(on_parameter) +#define __deref_inout_xcount_full(size) __allowed(on_parameter) +#define __deref_inout_z __allowed(on_parameter) +#define __deref_inout_ecount_z(size) __allowed(on_parameter) +#define __deref_inout_bcount_z(size) __allowed(on_parameter) +#define __deref_ecount_opt(size) __allowed(on_parameter) +#define __deref_bcount_opt(size) __allowed(on_parameter) +#define __deref_xcount_opt(size) __allowed(on_parameter) +#define __deref_in_opt __allowed(on_parameter) +#define __deref_in_ecount_opt(size) __allowed(on_parameter) +#define __deref_in_bcount_opt(size) __allowed(on_parameter) +#define __deref_in_xcount_opt(size) __allowed(on_parameter) +#define __deref_out_opt __allowed(on_parameter) +#define __deref_out_ecount_opt(size) __allowed(on_parameter) +#define __deref_out_bcount_opt(size) __allowed(on_parameter) +#define __deref_out_xcount_opt(size) __allowed(on_parameter) +#define __deref_out_ecount_part_opt(size,len) __allowed(on_parameter) +#define __deref_out_bcount_part_opt(size,len) __allowed(on_parameter) +#define __deref_out_xcount_part_opt(size,len) __allowed(on_parameter) +#define __deref_out_ecount_full_opt(size) __allowed(on_parameter) +#define __deref_out_bcount_full_opt(size) __allowed(on_parameter) +#define __deref_out_xcount_full_opt(size) __allowed(on_parameter) +#define __deref_out_z_opt __allowed(on_parameter) +#define __deref_out_ecount_z_opt(size) __allowed(on_parameter) +#define __deref_out_bcount_z_opt(size) __allowed(on_parameter) +#define __deref_inout_opt __allowed(on_parameter) +#define __deref_inout_ecount_opt(size) __allowed(on_parameter) +#define __deref_inout_bcount_opt(size) __allowed(on_parameter) +#define __deref_inout_xcount_opt(size) __allowed(on_parameter) +#define __deref_inout_ecount_part_opt(size,len) __allowed(on_parameter) +#define __deref_inout_bcount_part_opt(size,len) __allowed(on_parameter) +#define __deref_inout_xcount_part_opt(size,len) __allowed(on_parameter) +#define __deref_inout_ecount_full_opt(size) __allowed(on_parameter) +#define __deref_inout_bcount_full_opt(size) __allowed(on_parameter) +#define __deref_inout_xcount_full_opt(size) __allowed(on_parameter) +#define __deref_inout_z_opt __allowed(on_parameter) +#define __deref_inout_ecount_z_opt(size) __allowed(on_parameter) +#define __deref_inout_bcount_z_opt(size) __allowed(on_parameter) +#define __deref_opt_ecount(size) __allowed(on_parameter) +#define __deref_opt_bcount(size) __allowed(on_parameter) +#define __deref_opt_xcount(size) __allowed(on_parameter) +#define __deref_opt_in __allowed(on_parameter) +#define __deref_opt_in_ecount(size) __allowed(on_parameter) +#define __deref_opt_in_bcount(size) __allowed(on_parameter) +#define __deref_opt_in_xcount(size) __allowed(on_parameter) +#define __deref_opt_out __allowed(on_parameter) +#define __deref_opt_out_ecount(size) __allowed(on_parameter) +#define __deref_opt_out_bcount(size) __allowed(on_parameter) +#define __deref_opt_out_xcount(size) __allowed(on_parameter) +#define __deref_opt_out_ecount_part(size,len) __allowed(on_parameter) +#define __deref_opt_out_bcount_part(size,len) __allowed(on_parameter) +#define __deref_opt_out_xcount_part(size,len) __allowed(on_parameter) +#define __deref_opt_out_ecount_full(size) __allowed(on_parameter) +#define __deref_opt_out_bcount_full(size) __allowed(on_parameter) +#define __deref_opt_out_xcount_full(size) __allowed(on_parameter) +#define __deref_opt_inout __allowed(on_parameter) +#define __deref_opt_inout_ecount(size) __allowed(on_parameter) +#define __deref_opt_inout_bcount(size) __allowed(on_parameter) +#define __deref_opt_inout_xcount(size) __allowed(on_parameter) +#define __deref_opt_inout_ecount_part(size,len) __allowed(on_parameter) +#define __deref_opt_inout_bcount_part(size,len) __allowed(on_parameter) +#define __deref_opt_inout_xcount_part(size,len) __allowed(on_parameter) +#define __deref_opt_inout_ecount_full(size) __allowed(on_parameter) +#define __deref_opt_inout_bcount_full(size) __allowed(on_parameter) +#define __deref_opt_inout_xcount_full(size) __allowed(on_parameter) +#define __deref_opt_inout_z __allowed(on_parameter) +#define __deref_opt_inout_ecount_z(size) __allowed(on_parameter) +#define __deref_opt_inout_bcount_z(size) __allowed(on_parameter) +#define __deref_opt_ecount_opt(size) __allowed(on_parameter) +#define __deref_opt_bcount_opt(size) __allowed(on_parameter) +#define __deref_opt_xcount_opt(size) __allowed(on_parameter) +#define __deref_opt_in_opt __allowed(on_parameter) +#define __deref_opt_in_ecount_opt(size) __allowed(on_parameter) +#define __deref_opt_in_bcount_opt(size) __allowed(on_parameter) +#define __deref_opt_in_xcount_opt(size) __allowed(on_parameter) +#define __deref_opt_out_opt __allowed(on_parameter) +#define __deref_opt_out_ecount_opt(size) __allowed(on_parameter) +#define __deref_opt_out_bcount_opt(size) __allowed(on_parameter) +#define __deref_opt_out_xcount_opt(size) __allowed(on_parameter) +#define __deref_opt_out_ecount_part_opt(size,len) __allowed(on_parameter) +#define __deref_opt_out_bcount_part_opt(size,len) __allowed(on_parameter) +#define __deref_opt_out_xcount_part_opt(size,len) __allowed(on_parameter) +#define __deref_opt_out_ecount_full_opt(size) __allowed(on_parameter) +#define __deref_opt_out_bcount_full_opt(size) __allowed(on_parameter) +#define __deref_opt_out_xcount_full_opt(size) __allowed(on_parameter) +#define __deref_opt_out_z_opt __allowed(on_parameter) +#define __deref_opt_out_ecount_z_opt(size) __allowed(on_parameter) +#define __deref_opt_out_bcount_z_opt(size) __allowed(on_parameter) +#define __deref_opt_inout_opt __allowed(on_parameter) +#define __deref_opt_inout_ecount_opt(size) __allowed(on_parameter) +#define __deref_opt_inout_bcount_opt(size) __allowed(on_parameter) +#define __deref_opt_inout_xcount_opt(size) __allowed(on_parameter) +#define __deref_opt_inout_ecount_part_opt(size,len) __allowed(on_parameter) +#define __deref_opt_inout_bcount_part_opt(size,len) __allowed(on_parameter) +#define __deref_opt_inout_xcount_part_opt(size,len) __allowed(on_parameter) +#define __deref_opt_inout_ecount_full_opt(size) __allowed(on_parameter) +#define __deref_opt_inout_bcount_full_opt(size) __allowed(on_parameter) +#define __deref_opt_inout_xcount_full_opt(size) __allowed(on_parameter) +#define __deref_opt_inout_z_opt __allowed(on_parameter) +#define __deref_opt_inout_ecount_z_opt(size) __allowed(on_parameter) +#define __deref_opt_inout_bcount_z_opt(size) __allowed(on_parameter) +/************************************************************************ +* Advanced Annotations +* +* Advanced annotations describe behavior that is not expressible with the +* regular buffer macros. These may be used either to annotate buffer +* parameters that involve complex or conditional behavior, or to enrich +* existing annotations with additional information. +* +* __success(expr) T f() : indicates whether function f succeeded or +* not. If is true at exit, all the function's guarantees (as given +* by other annotations) must hold. If is false at exit, the caller +* should not expect any of the function's guarantees to hold. If not used, +* the function must always satisfy its guarantees. Added automatically to +* functions that indicate success in standard ways, such as by returning an +* HRESULT. +* +* __out_awcount(expr, size) T *p : Pointer p is a buffer whose size may be +* given in either bytes or elements. If is true, this acts like +* __out_bcount. If is false, this acts like __out_ecount. This +* should only be used to annotate old APIs. +* +* __in_awcount(expr, size) T* p : Pointer p is a buffer whose size may be given +* in either bytes or elements. If is true, this acts like +* __in_bcount. If is false, this acts like __in_ecount. This should +* only be used to annotate old APIs. +* +* __nullterminated T* p : Pointer p is a buffer that may be read or written +* up to and including the first '\0' character or pointer. May be used on +* typedefs, which marks valid (properly initialized) instances of that type +* as being null-terminated. +* +* __nullnullterminated T* p : Pointer p is a buffer that may be read or +* written up to and including the first sequence of two '\0' characters or +* pointers. May be used on typedefs, which marks valid instances of that +* type as being double-null terminated. +* +* __reserved T v : Value v must be 0/NULL, reserved for future use. +* +* __checkReturn T f(); : Return value of f must not be ignored by callers +* of this function. +* +* __typefix(ctype) T v : Value v should be treated as an instance of ctype, +* rather than its declared type when considering validity. +* +* __override T f(); : Specify C#-style 'override' behaviour for overriding +* virtual methods. +* +* __callback T f(); : Function f can be used as a function pointer. +* +* __format_string T p : Pointer p is a string that contains % markers in +* the style of printf. +* +* __blocksOn(resource) f(); : Function f blocks on the resource 'resource'. +* +* __fallthrough : Annotates switch statement labels where fall-through is +* desired, to distinguish from forgotten break statements. +* +* __range(low_bnd, up_bnd) int f(): The return from the function "f" must +* be in the inclusive numeric range [low_bnd, up_bnd]. +* +* __in_range(low_bnd, up_bnd) int i : Precondition that integer i must be +* in the inclusive numeric range [low_bnd, up_bnd]. +* +* __out_range(low_bnd, up_bnd) int i : Postcondition that integer i must be +* in the inclusive numeric range [low_bnd, up_bnd]. +* +* __deref_in_range(low_bnd, up_bnd) int* pi : Precondition that integer *pi +* must be in the inclusive numeric range [low_bnd, up_bnd]. +* +* __deref_out_range(low_bnd, up_bnd) int* pi : Postcondition that integer +* *pi must be in the inclusive numeric range [low_bnd, up_bnd]. +* +* The first argument of a range macro may also be a C relational operator +* (<,>,!=, ==, <=, >=). +* +* __range(rel_op, j) int f(): Postcondition that "f() rel_op j" must be +* true. Note that j may be a expression known only at runtime. +* +* __in_range(rel_op, j) int i : Precondition that "i rel_op j" must be +* true. Note that j may be a expression known only at runtime. +* +* __out_range(rel_op, j) int i : Postcondition that integer "i rel_op j" +* must be true. Note that j may be a expression known only at runtime. +* +* __deref_in_range(rel_op, j) int *pi : Precondition that "*pi rel_op j" +* must be true. Note that j may be a expression known only at runtime. +* +* __deref_out_range(rel_op, j) int *pi : Postcondition that "*pi rel_op j" +* must be true. Note that j may be a expression known only at runtime. +* +* __in_bound int i : Precondition that integer i must be bound, but the +* exact range can't be specified at compile time. __in_range should be +* used if the range can be explicitly stated. +* +* __out_bound int i : Postcondition that integer i must be bound, but the +* exact range can't be specified at compile time. __out_range should be +* used if the range can be explicitly stated. +* +* __deref_out_bound int pi : Postcondition that integer *pi must be bound, +* but the exact range can't be specified at compile time. +* __deref_out_range should be used if the range can be explicitly stated. +* +* __assume_bound(expr); : Assume that the expression is bound to some known +* range. This can be used to suppress integer overflow warnings on integral +* expressions that are known to be bound due to reasons not explicit in the +* code. Use as a statement in the body of a function. +* +* __allocator void f(): Function allocates memory using an integral size +* argument +* +* ---------------------------------------------------------------------------- +* Advanced Annotation Examples +* +* __success(return == TRUE) LWSTDAPI_(BOOL) +* PathCanonicalizeA(__out_ecount(MAX_PATH) LPSTR pszBuf, LPCSTR pszPath); +* // pszBuf is only guaranteed to be null-terminated when TRUE is returned. +* +* // Initialized LPWSTRs are null-terminated strings. +* typedef __nullterminated WCHAR* LPWSTR; +* +* __out_ecount(cch) __typefix(LPWSTR) void *psz; +* // psz is a buffer parameter which will be a null-terminated WCHAR string +* // at exit, and which initially contains cch WCHARs. +* +************************************************************************/ +#define __success(expr) __allowed(on_function_or_typedecl) +#define __out_awcount(expr,size) __allowed(on_parameter) +#define __in_awcount(expr,size) __allowed(on_parameter) +#define __nullterminated __allowed(on_typedecl) +#define __nullnullterminated __allowed(on_typedecl) +#define __reserved __allowed(on_parameter) +#define __checkReturn __allowed(on_function) +#define __typefix(ctype) __allowed(on_parameter_or_return) +#define __override __allowed(on_function) +#define __callback __allowed(on_function) +#define __format_string __allowed(on_parameter_or_return) +#define __blocksOn(resource) __allowed(on_function) +#define __fallthrough __allowed(as_statement) +#define __range(lb,ub) __allowed(on_return) +#define __in_range(lb,ub) __allowed(on_parameter) +#define __out_range(lb,ub) __allowed(on_parameter) +#define __deref_in_range(lb,ub) __allowed(on_parameter) +#define __deref_out_range(lb,ub) __allowed(on_parameter) +#define __field_range(lb,ub) __allowed(on_field) +#define __bound __allowed(on_return) +#define __in_bound __allowed(on_parameter) +#define __out_bound __allowed(on_parameter) +#define __deref_out_bound __allowed(on_parameter) +#define __assume_bound(i) __allowed(as_statement_with_arg(i)) +#define __allocator __allowed(on_function) +/*************************************************************************** +* Expert Macros +***************************************************************************/ +#define __null __allowed(on_typedecl) +#define __notnull __allowed(on_typedecl) +#define __maybenull __allowed(on_typedecl) +#define __exceptthat __allowed(on_typedecl) +/*************************************************************************** +* Macros to classify fields of structures. +* Structure Annotations +* +* The buffer annotations are a convenient way of describing +* relationships between buffers and their size on a function by +* function basis. Very often struct or class data members have similar +* invariants, which can be expressed directly on the type. +* +* Similar to our buffer annotations we can summarize all the various +* structure annotations by one choosing an element from each column of +* this table to build a composite annotation. +* +* +--------------------------------------------------+ +* | Selector | Units | Size/Init | Optional | +* |----------+---------+------------------+----------| +* | __field | _ecount | (size) | empty | +* |----------+---------+------------------+----------| +* | __struct | _bcount | _full(size) | _opt | +* |----------+---------+------------------+----------| +* | | _xcount | _part(size,init) | | +* +--------------------------------------------------+ +* +* Note that empty represents the empty string. Sometime arguments need +* to be "floated" to the left to give us a valid annotation name. For +* example the naive combination __field_ecount(size)_opt is actually +* written as __field_ecount_opt(size). Not all possible combinations +* are currently supported or sensible. See specstrings_strict.h for +* the currently supported set. Those that are supported are documented +* below. +* +*Summary of Elements +* +* Selector +* +* __field +* The annotation should only be placed in front +* of data members of structures and classes. The +* data members are pointers to a block of data. +* The annotations describe properties about the +* size of the block of data. This can be used for +* +* __struct +* The annotation should only be placed at the +* beginning of the definition of a structure or +* class. These annotations are used when a struct +* or class is used as a "header" that is +* allocated inline with a block of data and there +* is no apparent field that represents the tail +* end of the structure. +* +* Units +* +* _ecount +* All size and initialization values are in terms +* of elements of the appropriate type +* +* _bcount +* All size and initialization values are in terms +* of raw byte sizes. +* +* _xcount +* The size or initialization values cannot be +* properly expressed as a simple byte or element +* count, and instead a place holder is used to +* document the relationship. +* +* Size/Init +* All the size/init expressions can contain references to +* other fields in the struct or class. +* +* (size) +* The size of the buffer is determined by the +* expression size. Unless, the type of the buffer +* provides more information nothing is know about +* how much of this data is initialized. For +* example, if the data member happens to be a +* string type such as LPSTR. It is assumed that +* the data is initialized to the first '\0'. +* +* _full(size) +* The size of the buffer is determined by the +* expression size and all the data in the buffer +* is guaranteed to be initialized. +* +* _part(size,init) +* The size of the buffer is determined by the +* expression size and all the data in the buffer +* is guaranteed to be initialized up to init +* elements or bytes. +* +* Optional +* +* empty +* The pointer to the block of memory is never +* NULL +* +* _opt +* The pointer to the block of memory is may be +* NULL +* +* +* // Basic Usage of Struct Annotations +* #include +* #include +* struct buf_s { +* int sz; +* __field_bcount_full(sz) +* char *buf; +* }; +* void InitBuf(__out struct *buf_s b,int sz) { +* b->buf = calloc(sz,sizeof(char)); +* b->sz = sz; +* } +* void WriteBuf(__in FILE *fp,__in struct *buf_s b) { +* fwrite(b->buf,b->sz,sizeof(char),fp); +* } +* void ReadBuf(__in FILE *fp,__inout struct *buf_s b) { +* fread(b->buf,b->sz,sizeof(char),fp); +* } +* +* +* +* // Inline Allocated Buffer +* struct buf_s { +* int sz; +* __field_bcount(sz) +* char buf[1]; +* }; +* void WriteBuf(__in FILE *fp,__in struct *buf_s b) { +* fwrite(&(b->buf),b->sz,sizeof(char),fp); +* } +* void ReadBuf(__in FILE *fp,__inout struct *buf_s b) { +* fread(&(b->buf),b->sz,sizeof(char),fp); +* } +* +* +* +* // Embedded Header Structure +* __struct_bcount(sz) +* struct buf_s { +* int sz; +* }; +* void WriteBuf(__in FILE *fp,__in struct *buf_s b) { +* fwrite(&b,b->sz,sizeof(char),fp); +* } +* void ReadBuf(__in FILE *fp,__inout struct *buf_s b) { +* fread(&b,b->sz,sizeof(char),fp); +* } +* +* +****************************************************************************/ +#define __field_ecount(size) __allowed(on_field) +#define __field_bcount(size) __allowed(on_field) +#define __field_xcount(size) __allowed(on_field) +#define __field_ecount_opt(size) __allowed(on_field) +#define __field_bcount_opt(size) __allowed(on_field) +#define __field_xcount_opt(size) __allowed(on_field) +#define __field_ecount_part(size,init) __allowed(on_field) +#define __field_bcount_part(size,init) __allowed(on_field) +#define __field_xcount_part(size,init) __allowed(on_field) +#define __field_ecount_part_opt(size,init) __allowed(on_field) +#define __field_bcount_part_opt(size,init) __allowed(on_field) +#define __field_xcount_part_opt(size,init) __allowed(on_field) +#define __field_ecount_full(size) __allowed(on_field) +#define __field_bcount_full(size) __allowed(on_field) +#define __field_xcount_full(size) __allowed(on_field) +#define __field_ecount_full_opt(size) __allowed(on_field) +#define __field_bcount_full_opt(size) __allowed(on_field) +#define __field_xcount_full_opt(size) __allowed(on_field) +#define __struct_bcount(size) __allowed(on_struct) +#define __struct_xcount(size) __allowed(on_struct) + +/*************************************************************************** +* Macros to classify the entrypoints and indicate their category. +* +* Pre-defined control point categories include: RPC, KERNEL, GDI. +* +* Pre-defined control point macros include: +* __rpc_entry, __kernel_entry, __gdi_entry. +***************************************************************************/ +#define __control_entrypoint(category) __allowed(on_function) +#define __rpc_entry __allowed(on_function) +#define __kernel_entry __allowed(on_function) +#define __gdi_entry __allowed(on_function) + +/*************************************************************************** +* Macros to track untrusted data and their validation. The list of untrusted +* sources include: +* +* FILE - File reading stream or API +* NETWORK - Socket readers +* INTERNET - WinInet and WinHttp readers +* USER_REGISTRY - HKCU portions of the registry +* USER_MODE - Parameters to kernel entry points +* RPC - Parameters to RPC entry points +* DRIVER - Device driver +***************************************************************************/ +#define __in_data_source(src_sym) __allowed(on_parameter) +#define __out_data_source(src_sym) __allowed(on_parameter) +#define __field_data_source(src_sym) __allowed(on_field) +#define __this_out_data_source(src_syn) __allowed(on_function) + +/************************************************************************** +* Macros to tag file parsing code. Predefined formats include: +* PNG - Portable Network Graphics +* JPEG - Joint Photographic Experts Group +* BMP - Bitmap +* RC_BMP - Resource bitmap +* WMF - Windows Metafile +* EMF - Windows Enhanced Metafile +* GIF - Graphics Interchange Format +* MIME_TYPE - MIME type from header tokens +* MAIL_MONIKER - MAIL information refered by URL moniker +* HTML - HyperText Markup Language +* WMPHOTO - Windows media photo +* OE_VCARD - Outlook Express virtual card +* OE_CONTACT - Outlook Express contact +* MIDI - Musical Instrument Digital Interface +* LDIF - LDAP Data Interchange Format +* AVI - Audio Visual Interchange +* ACM - Audio Compression Manager +**************************************************************************/ +#define __out_validated(filetype_sym) __allowed(on_parameter) +#define __this_out_validated(filetype_sym) __allowed(on_function) +#define __file_parser(filetype_sym) __allowed(on_function) +#define __file_parser_class(filetype_sym) __allowed(on_struct) +#define __file_parser_library(filetype_sym) __allowed(as_global_decl) + +/*************************************************************************** +* Macros to track the code content in the file. The type of code +* contents currently tracked: +* +* NDIS_DRIVER - NDIS Device driver +***************************************************************************/ +#define __source_code_content(codetype_sym) __allowed(as_global_decl) + +/*************************************************************************** +* Macros to track the code content in the class. The type of code +* contents currently tracked: +* +* DCOM - Class implementing DCOM +***************************************************************************/ +#define __class_code_content(codetype_sym) __allowed(on_struct) + +/************************************************************************* +* Macros to tag encoded function pointers +**************************************************************************/ +#define __encoded_pointer +#define __encoded_array +#define __field_encoded_pointer __allowed(on_field) +#define __field_encoded_array __allowed(on_field) + +#define __transfer(formal) __allowed(on_parameter_or_return) +#define __assume_validated(exp) __allowed(as_statement_with_arg(exp)) + +/************************************************************************* +* __analysis_assume(expr) : Expert macro use only when directed. Use this to +* tell static analysis tools like PREfix and PREfast about a non-coded +* assumption that you wish the tools to assume. The assumption will be +* understood by those tools. By default there is no dynamic checking or +* static checking of the assumption in any build. +* +* To obtain dynamic checking wrap this macro in your local version of a debug +* assert. +* Please do not put function calls in the expression because this is not +* supported by all tools: +* __analysis_assume(GetObject () != NULL); // DO NOT DO THIS +* +*************************************************************************/ +#define __analysis_assume(expr) __allowed(as_statement_with_arg(expr)) +#define __analysis_assert(expr) __allowed(as_statement_with_arg(expr)) + +/************************************************************************* +* __analysis_hint(hint_sym) : Expert macro use only when +* directed. Use this to influence certain analysis heuristics +* used by the tools. These hints do not describe the semantics +* of functions but simply direct the tools to act in a certain +* way. +* +* Current hints that are supported are: +* +* INLINE - inline this function during analysis overrides any +* default heuristics +* NOINLINE - do not inline this function during analysis overrides +* and default heuristics +*************************************************************************/ +#define __analysis_hint(hint) __allowed(on_function) + +/************************************************************************* +* Macros to encode abstract properties of values. Used by SALadt.h +*************************************************************************/ +#define __type_has_adt_prop(adt,prop) __allowed(on_typdecl) +#define __out_has_adt_prop(adt,prop) __allowed(on_parameter) +#define __out_not_has_adt_prop(adt,prop) __allowed(on_parameter) +#define __out_transfer_adt_prop(arg) __allowed(on_parameter) +#define __out_has_type_adt_props(typ) __allowed(on_parameter) +#define __assume_ValidCompNameA(expr) __allowed(as_statement_with_arg(expr)) +#define __assume_ValidCompNameW(expr) __allowed(as_statement_with_arg(expr)) + +/************************************************************************* +* Macros used by Prefast for Drivers +* +* __possibly_notnulltermiated : +* +* Used for return values of parameters or functions that do not +* guarantee nullterimination in all cases. +* +*************************************************************************/ +#define __possibly_notnulltermiated __allowed(on_parameter_or_return) + +/************************************************************************* +* Advanced macros +* +* __volatile +* The __volatile annotation identifies a global variable or +* structure field that: +* 1) is not declared volatile; +* 2) is accessed concurrently by multiple threads. +* +* The __deref_volatile annotation identifies a global variable +* or structure field that stores a pointer to some data that: +* 1) is not declared volatile; +* 2) is accessed concurrently by multiple threads. +* +* Prefast uses these annotations to find patterns of code that +* may result in unexpected re-fetching of the global variable +* into a local variable. +* +* We also provide two complimentary annotations __nonvolatile +* and __deref_nonvolatile that could be used to suppress Prefast +* +* re-fetching warnings on variables that are known either: +* 1) not to be in danger of being re-fetched or, +* 2) not to lead to incorrect results if they are re-fetched +* +*************************************************************************/ +#define __volatile __allowed(on_global_or_field) +#define __deref_volatile __allowed(on_global_or_field) +#define __nonvolatile __allowed(on_global_or_field) +#define __deref_nonvolatile __allowed(on_global_or_field) + +/************************************************************************* +* Macros deprecated with strict level greater then 1. +**************************************************************************/ +#if (__SPECSTRINGS_STRICT_LEVEL > 1) +/* Must come before macro defintions */ +#pragma deprecated(__in_nz) +#pragma deprecated(__in_ecount_nz) +#pragma deprecated(__in_bcount_nz) +#pragma deprecated(__out_nz) +#pragma deprecated(__out_nz_opt) +#pragma deprecated(__out_ecount_nz) +#pragma deprecated(__out_bcount_nz) +#pragma deprecated(__inout_nz) +#pragma deprecated(__inout_ecount_nz) +#pragma deprecated(__inout_bcount_nz) +#pragma deprecated(__in_nz_opt) +#pragma deprecated(__in_ecount_nz_opt) +#pragma deprecated(__in_bcount_nz_opt) +#pragma deprecated(__out_ecount_nz_opt) +#pragma deprecated(__out_bcount_nz_opt) +#pragma deprecated(__inout_nz_opt) +#pragma deprecated(__inout_ecount_nz_opt) +#pragma deprecated(__inout_bcount_nz_opt) +#pragma deprecated(__deref_out_nz) +#pragma deprecated(__deref_out_ecount_nz) +#pragma deprecated(__deref_out_bcount_nz) +#pragma deprecated(__deref_inout_nz) +#pragma deprecated(__deref_inout_ecount_nz) +#pragma deprecated(__deref_inout_bcount_nz) +#pragma deprecated(__deref_out_nz_opt) +#pragma deprecated(__deref_out_ecount_nz_opt) +#pragma deprecated(__deref_out_bcount_nz_opt) +#pragma deprecated(__deref_inout_nz_opt) +#pragma deprecated(__deref_inout_ecount_nz_opt) +#pragma deprecated(__deref_inout_bcount_nz_opt) +#pragma deprecated(__deref_opt_inout_nz) +#pragma deprecated(__deref_opt_inout_ecount_nz) +#pragma deprecated(__deref_opt_inout_bcount_nz) +#pragma deprecated(__deref_opt_out_nz_opt) +#pragma deprecated(__deref_opt_out_ecount_nz_opt) +#pragma deprecated(__deref_opt_out_bcount_nz_opt) +#pragma deprecated(__deref_opt_inout_nz_opt) +#pragma deprecated(__deref_opt_inout_ecount_nz_opt) +#pragma deprecated(__deref_opt_inout_bcount_nz_opt) +#pragma deprecated(__deref) +#pragma deprecated(__pre) +#pragma deprecated(__post) +#pragma deprecated(__readableTo) +#pragma deprecated(__writableTo) +#pragma deprecated(__maybevalid) +#pragma deprecated(__data_entrypoint) +#pragma deprecated(__inexpressible_readableTo) +#pragma deprecated(__readonly) +#pragma deprecated(__byte_writableTo) +#pragma deprecated(__byte_readableTo) +#pragma deprecated(__elem_readableTo) +#pragma deprecated(__elem_writableTo) +#pragma deprecated(__valid) +#pragma deprecated(__notvalid) +#pragma deprecated(__refparam) +#pragma deprecated(__precond) +#endif +/* Define soon to be deprecated macros to nops. */ +#define __in_nz +#define __in_ecount_nz(size) +#define __in_bcount_nz(size) +#define __out_nz +#define __out_nz_opt +#define __out_ecount_nz(size) +#define __out_bcount_nz(size) +#define __inout_nz +#define __inout_ecount_nz(size) +#define __inout_bcount_nz(size) +#define __in_nz_opt +#define __in_ecount_nz_opt(size) +#define __in_bcount_nz_opt(size) +#define __out_ecount_nz_opt(size) +#define __out_bcount_nz_opt(size) +#define __inout_nz_opt +#define __inout_ecount_nz_opt(size) +#define __inout_bcount_nz_opt(size) +#define __deref_out_nz +#define __deref_out_ecount_nz(size) +#define __deref_out_bcount_nz(size) +#define __deref_inout_nz +#define __deref_inout_ecount_nz(size) +#define __deref_inout_bcount_nz(size) +#define __deref_out_nz_opt +#define __deref_out_ecount_nz_opt(size) +#define __deref_out_bcount_nz_opt(size) +#define __deref_inout_nz_opt +#define __deref_inout_ecount_nz_opt(size) +#define __deref_inout_bcount_nz_opt(size) +#define __deref_opt_inout_nz +#define __deref_opt_inout_ecount_nz(size) +#define __deref_opt_inout_bcount_nz(size) +#define __deref_opt_out_nz_opt +#define __deref_opt_out_ecount_nz_opt(size) +#define __deref_opt_out_bcount_nz_opt(size) +#define __deref_opt_inout_nz_opt +#define __deref_opt_inout_ecount_nz_opt(size) +#define __deref_opt_inout_bcount_nz_opt(size) +#define __deref +#define __pre +#define __post +#define __readableTo(count) +#define __writableTo(count) +#define __maybevalid +#define __inexpressible_readableTo(string) +#define __data_entrypoint(category) +#define __readonly +#define __byte_writableTo(count) +#define __byte_readableTo(count) +#define __elem_readableTo(count) +#define __elem_writableTo(count) +#define __valid +#define __notvalid +#define __refparam +#define __precond(condition) + +/************************************************************************* +* Definitions to force a compile error when macros are used improperly. +* Relies on VS 2005 source annotations. +*************************************************************************/ +#define __allowed(p) __$allowed_##p +#define __$allowed_as_global_decl /* empty */ +#define __$allowed_as_statement_with_arg(x) \ + __pragma(warning(push)) __pragma(warning(disable : 4548)) \ + do {__noop(x);} while((0,0) __pragma(warning(pop)) ) +#define __$allowed_as_statement __$allowed_as_statement_with_arg(1) + +/************************************************************************** +* This should go away. It's only for __success which we should split into. +* __success and __typdecl_sucess +***************************************************************************/ +#define __$allowed_on_function_or_typedecl /* empty */ +#if (__SPECSTRINGS_STRICT_LEVEL == 1) || (__SPECSTRINGS_STRICT_LEVEL == 2) +#define __$allowed_on_typedecl /* empty */ +#define __$allowed_on_return /* empty */ +#define __$allowed_on_parameter /* empty */ +#define __$allowed_on_function /* empty */ +#define __$allowed_on_struct /* empty */ +#define __$allowed_on_field /* empty */ +#define __$allowed_on_parameter_or_return /* empty */ +#define __$allowed_on_global_or_field /* empty */ +#elif __SPECSTRINGS_STRICT_LEVEL == 3 +#define __$allowed_on_typedecl /* empty */ +/* Define dummy source attributes. Still needs more testing */ +#define __$allowed_on_return [returnvalue: OnReturnOnly] +#define __$allowed_on_parameter [OnParameterOnly] +#define __$allowed_on_function [method: OnFunctionOnly] +#define __$allowed_on_struct [OnStructOnly] +#define __$allowed_on_field [OnFieldOnly] +#define __$allowed_on_parameter_or_return [OnParameterOrReturnOnly] +#define __$allowed_on_global_or_field /* empty */ +#pragma push_macro( "DECL_SA" ) +#pragma push_macro( "SA" ) +#ifdef __cplusplus +#define SA(x) x +#define DECL_SA(name,loc) \ + [repeatable] \ + [source_annotation_attribute( loc )] \ + struct name##Attribute { name##Attribute(); const char* ignored; }; +#else +#define SA(x) SA_##x +#define DECL_SA(name,loc) \ + [source_annotation_attribute( loc )] \ + struct name { const char* ignored; };\ + typedef struct name name; +#endif /* #endif __cplusplus */ +DECL_SA(OnParameterOnly,SA(Parameter)); +DECL_SA(OnReturnOnly,SA(ReturnValue)); +DECL_SA(OnFunctionOnly,SA(Method)); +DECL_SA(OnStructOnly,SA(Struct)); +DECL_SA(OnFieldOnly,SA(Field)); +DECL_SA(OnParameterOrReturnOnly,SA(Parameter) | SA(ReturnValue)); +#pragma pop_macro( "SA" ) +#pragma pop_macro( "DECL_SA" ) +#endif +#endif + + diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstrings_undef.h b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstrings_undef.h new file mode 100644 index 0000000000000000000000000000000000000000..6bbbf6b1b5f699b5512cdb39bcc0024a822471e0 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/include/jxrlib/wmspecstrings_undef.h @@ -0,0 +1,406 @@ +//*@@@+++@@@@****************************************************************** +// +// Copyright © Microsoft Corp. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// • Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// • Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +//*@@@---@@@@****************************************************************** + + +#undef __$adt_add_prop +#undef __$adt_prop +#undef __$adt_remove_prop +#undef __$adt_transfer_prop +#undef __$adt_type_props +#undef __$nonvolatile +#undef __$possibly_notnulltermiated +#undef __$volatile +#undef __allocator +#undef __analysis_assert +#undef __analysis_assume +#undef __analysis_hint +#undef __assume_ValidCompNameA +#undef __assume_ValidCompNameW +#undef __assume_bound +#undef __assume_validated +#undef __bcount +#undef __bcount_opt +#undef __blocksOn +#undef __bound +#undef __byte_readableTo +#undef __byte_writableTo +#undef __callback +#undef __checkReturn +#undef __class_code_content +#undef __control_entrypoint +#undef __data_entrypoint +#undef __deref +#undef __deref_bcount +#undef __deref_bcount_opt +#undef __deref_ecount +#undef __deref_ecount_opt +#undef __deref_in +#undef __deref_in_bcount +#undef __deref_in_bcount_opt +#undef __deref_in_ecount +#undef __deref_in_ecount_opt +#undef __deref_in_opt +#undef __deref_in_range +#undef __deref_in_xcount +#undef __deref_in_xcount_opt +#undef __deref_inout +#undef __deref_inout_bcount +#undef __deref_inout_bcount_full +#undef __deref_inout_bcount_full_opt +#undef __deref_inout_bcount_nz +#undef __deref_inout_bcount_nz_opt +#undef __deref_inout_bcount_opt +#undef __deref_inout_bcount_part +#undef __deref_inout_bcount_part_opt +#undef __deref_inout_bcount_z +#undef __deref_inout_bcount_z_opt +#undef __deref_inout_ecount +#undef __deref_inout_ecount_full +#undef __deref_inout_ecount_full_opt +#undef __deref_inout_ecount_nz +#undef __deref_inout_ecount_nz_opt +#undef __deref_inout_ecount_opt +#undef __deref_inout_ecount_part +#undef __deref_inout_ecount_part_opt +#undef __deref_inout_ecount_z +#undef __deref_inout_ecount_z_opt +#undef __deref_inout_nz +#undef __deref_inout_nz_opt +#undef __deref_inout_opt +#undef __deref_inout_xcount +#undef __deref_inout_xcount_full +#undef __deref_inout_xcount_full_opt +#undef __deref_inout_xcount_opt +#undef __deref_inout_xcount_part +#undef __deref_inout_xcount_part_opt +#undef __deref_inout_z +#undef __deref_inout_z_opt +#undef __deref_nonvolatile +#undef __deref_opt_bcount +#undef __deref_opt_bcount_opt +#undef __deref_opt_ecount +#undef __deref_opt_ecount_opt +#undef __deref_opt_in +#undef __deref_opt_in_bcount +#undef __deref_opt_in_bcount_opt +#undef __deref_opt_in_ecount +#undef __deref_opt_in_ecount_opt +#undef __deref_opt_in_opt +#undef __deref_opt_in_xcount +#undef __deref_opt_in_xcount_opt +#undef __deref_opt_inout +#undef __deref_opt_inout_bcount +#undef __deref_opt_inout_bcount_full +#undef __deref_opt_inout_bcount_full_opt +#undef __deref_opt_inout_bcount_nz +#undef __deref_opt_inout_bcount_nz_opt +#undef __deref_opt_inout_bcount_opt +#undef __deref_opt_inout_bcount_part +#undef __deref_opt_inout_bcount_part_opt +#undef __deref_opt_inout_bcount_z +#undef __deref_opt_inout_bcount_z_opt +#undef __deref_opt_inout_ecount +#undef __deref_opt_inout_ecount_full +#undef __deref_opt_inout_ecount_full_opt +#undef __deref_opt_inout_ecount_nz +#undef __deref_opt_inout_ecount_nz_opt +#undef __deref_opt_inout_ecount_opt +#undef __deref_opt_inout_ecount_part +#undef __deref_opt_inout_ecount_part_opt +#undef __deref_opt_inout_ecount_z +#undef __deref_opt_inout_ecount_z_opt +#undef __deref_opt_inout_nz +#undef __deref_opt_inout_nz_opt +#undef __deref_opt_inout_opt +#undef __deref_opt_inout_xcount +#undef __deref_opt_inout_xcount_full +#undef __deref_opt_inout_xcount_full_opt +#undef __deref_opt_inout_xcount_opt +#undef __deref_opt_inout_xcount_part +#undef __deref_opt_inout_xcount_part_opt +#undef __deref_opt_inout_z +#undef __deref_opt_inout_z_opt +#undef __deref_opt_out +#undef __deref_opt_out_bcount +#undef __deref_opt_out_bcount_full +#undef __deref_opt_out_bcount_full_opt +#undef __deref_opt_out_bcount_nz_opt +#undef __deref_opt_out_bcount_opt +#undef __deref_opt_out_bcount_part +#undef __deref_opt_out_bcount_part_opt +#undef __deref_opt_out_bcount_z_opt +#undef __deref_opt_out_ecount +#undef __deref_opt_out_ecount_full +#undef __deref_opt_out_ecount_full_opt +#undef __deref_opt_out_ecount_nz_opt +#undef __deref_opt_out_ecount_opt +#undef __deref_opt_out_ecount_part +#undef __deref_opt_out_ecount_part_opt +#undef __deref_opt_out_ecount_z_opt +#undef __deref_opt_out_nz_opt +#undef __deref_opt_out_opt +#undef __deref_opt_out_xcount +#undef __deref_opt_out_xcount_full +#undef __deref_opt_out_xcount_full_opt +#undef __deref_opt_out_xcount_opt +#undef __deref_opt_out_xcount_part +#undef __deref_opt_out_xcount_part_opt +#undef __deref_opt_out_z_opt +#undef __deref_opt_xcount +#undef __deref_opt_xcount_opt +#undef __deref_out +#undef __deref_out_bcount +#undef __deref_out_bcount_full +#undef __deref_out_bcount_full_opt +#undef __deref_out_bcount_nz +#undef __deref_out_bcount_nz_opt +#undef __deref_out_bcount_opt +#undef __deref_out_bcount_part +#undef __deref_out_bcount_part_opt +#undef __deref_out_bcount_z +#undef __deref_out_bcount_z_opt +#undef __deref_out_bound +#undef __deref_out_ecount +#undef __deref_out_ecount_full +#undef __deref_out_ecount_full_opt +#undef __deref_out_ecount_nz +#undef __deref_out_ecount_nz_opt +#undef __deref_out_ecount_opt +#undef __deref_out_ecount_part +#undef __deref_out_ecount_part_opt +#undef __deref_out_ecount_z +#undef __deref_out_ecount_z_opt +#undef __deref_out_nz +#undef __deref_out_nz_opt +#undef __deref_out_opt +#undef __deref_out_range +#undef __deref_out_range +#undef __deref_out_xcount +#undef __deref_out_xcount +#undef __deref_out_xcount_full +#undef __deref_out_xcount_full_opt +#undef __deref_out_xcount_opt +#undef __deref_out_xcount_part +#undef __deref_out_xcount_part_opt +#undef __deref_out_z +#undef __deref_out_z_opt +#undef __deref_volatile +#undef __deref_xcount +#undef __deref_xcount_opt +#undef __ecount +#undef __ecount_opt +#undef __elem_readableTo +#undef __elem_writableTo +#undef __encoded_array +#undef __encoded_pointer +#undef __exceptthat +#undef __fallthrough +#undef __field_bcount +#undef __field_bcount_full +#undef __field_bcount_full_opt +#undef __field_bcount_opt +#undef __field_bcount_part +#undef __field_bcount_part_opt +#undef __field_data_source +#undef __field_ecount +#undef __field_ecount_full +#undef __field_ecount_full_opt +#undef __field_ecount_opt +#undef __field_ecount_part +#undef __field_ecount_part_opt +#undef __field_encoded_array +#undef __field_encoded_pointer +#undef __field_range +#undef __field_xcount +#undef __field_xcount_full +#undef __field_xcount_full_opt +#undef __field_xcount_opt +#undef __field_xcount_part +#undef __field_xcount_part_opt +#undef __file_parser +#undef __file_parser_class +#undef __file_parser_library +#undef __format_string +#undef __format_string +#undef __gdi_entry +#undef __in +#undef __in_awcount +#undef __in_bcount +#undef __in_bcount_nz +#undef __in_bcount_nz_opt +#undef __in_bcount_opt +#undef __in_bcount_z +#undef __in_bcount_z_opt +#undef __in_bound +#undef __in_data_source +#undef __in_ecount +#undef __in_ecount_nz +#undef __in_ecount_nz_opt +#undef __in_ecount_opt +#undef __in_ecount_z +#undef __in_ecount_z_opt +#undef __in_nz +#undef __in_nz_opt +#undef __in_opt +#undef __in_range +#undef __in_xcount +#undef __in_xcount_opt +#undef __in_z +#undef __in_z_opt +#undef __inexpressible_readableTo +#undef __inexpressible_writableTo +#undef __inner_assume_bound +#undef __inner_assume_bound_dec +#undef __inner_assume_validated +#undef __inner_assume_validated_dec +#undef __inner_blocksOn +#undef __inner_bound +#undef __inner_callback +#undef __inner_checkReturn +#undef __inner_control_entrypoint +#undef __inner_data_entrypoint +#undef __inner_data_source +#undef __inner_encoded +#undef __inner_fallthrough +#undef __inner_fallthrough_dec +#undef __inner_out_validated +#undef __inner_override +#undef __inner_range +#undef __inner_success +#undef __inner_transfer +#undef __inner_typefix +#undef __inout +#undef __inout_bcount +#undef __inout_bcount_full +#undef __inout_bcount_full_opt +#undef __inout_bcount_nz +#undef __inout_bcount_nz_opt +#undef __inout_bcount_opt +#undef __inout_bcount_part +#undef __inout_bcount_part_opt +#undef __inout_bcount_z +#undef __inout_bcount_z_opt +#undef __inout_ecount +#undef __inout_ecount_full +#undef __inout_ecount_full_opt +#undef __inout_ecount_nz +#undef __inout_ecount_nz_opt +#undef __inout_ecount_opt +#undef __inout_ecount_part +#undef __inout_ecount_part_opt +#undef __inout_ecount_z +#undef __inout_ecount_z_opt +#undef __inout_ecount_z_opt +#undef __inout_nz +#undef __inout_nz_opt +#undef __inout_opt +#undef __inout_xcount +#undef __inout_xcount_full +#undef __inout_xcount_full_opt +#undef __inout_xcount_opt +#undef __inout_xcount_part +#undef __inout_xcount_part_opt +#undef __inout_z +#undef __inout_z_opt +#undef __kernel_entry +#undef __maybenull +#undef __maybereadonly +#undef __maybevalid +#undef __nonvolatile +#undef __notnull +#undef __notreadonly +#undef __notvalid +#undef __null +#undef __nullnullterminated +#undef __nullterminated +#undef __out +#undef __out_awcount +#undef __out_bcount +#undef __out_bcount_full +#undef __out_bcount_full_opt +#undef __out_bcount_nz +#undef __out_bcount_nz_opt +#undef __out_bcount_opt +#undef __out_bcount_part +#undef __out_bcount_part_opt +#undef __out_bcount_z +#undef __out_bcount_z_opt +#undef __out_bound +#undef __out_data_source +#undef __out_ecount +#undef __out_ecount_full +#undef __out_ecount_full_opt +#undef __out_ecount_nz +#undef __out_ecount_nz_opt +#undef __out_ecount_opt +#undef __out_ecount_part +#undef __out_ecount_part_opt +#undef __out_ecount_z +#undef __out_ecount_z_opt +#undef __out_has_adt_prop +#undef __out_has_type_adt_props +#undef __out_not_has_adt_prop +#undef __out_nz +#undef __out_nz_opt +#undef __out_opt +#undef __out_range +#undef __out_transfer_adt_prop +#undef __out_validated +#undef __out_xcount +#undef __out_xcount_full +#undef __out_xcount_full_opt +#undef __out_xcount_opt +#undef __out_xcount_part +#undef __out_xcount_part_opt +#undef __out_z +#undef __override +#undef __possibly_notnulltermiated +#undef __post +#undef __postcond +#undef __pre +#undef __precond +#undef __range +#undef __readableTo +#undef __readonly +#undef __refparam +#undef __reserved +#undef __rpc_entry +#undef __source_code_content +#undef __struct_bcount +#undef __struct_xcount +#undef __success +#undef __this_out_data_source +#undef __this_out_validated +#undef __transfer +#undef __type_has_adt_prop +#undef __typefix +#undef __valid +#undef __volatile +#undef __writableTo +#undef __xcount +#undef __xcount_opt \ No newline at end of file diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/about.json b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..e8804e89ef76a6070086471860feb6e395a0a8b6 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/about.json @@ -0,0 +1,202 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge" + ], + "conda_build_version": "3.28.2", + "conda_version": "23.11.0", + "description": "This package seems to be no longer maintained by the original developer (Microsoft).", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "flow_run_id": "azure_20231223.3.1", + "recipe-maintainers": [ + "csachs", + "hmaarrfk" + ], + "remote_url": "https://github.com/conda-forge/jxrlib-feedstock", + "sha": "0160e553d21ab0f429bb5dda3fda9deb3f984e63" + }, + "home": "https://packages.debian.org/source/sid/jxrlib", + "identifiers": [], + "keywords": [], + "license": "BSD-2-Clause", + "license_family": "BSD", + "license_file": "LICENSE", + "root_pkgs": [ + "gettext 0.21.1 h27087fc_0", + "urllib3 2.1.0 pyhd8ed1ab_0", + "conda-index 0.3.0 pyhd8ed1ab_1", + "setuptools 68.2.2 pyhd8ed1ab_0", + "libffi 3.4.2 h7f98852_5", + "ncurses 6.4 h59595ed_2", + "libarchive 3.7.2 h2aa1ff5_1", + "libstdcxx-ng 13.2.0 h7e041cc_3", + "charset-normalizer 3.3.2 pyhd8ed1ab_0", + "jupyter_core 5.5.0 py310hff52083_0", + "pillow 10.1.0 py310h01dd4db_0", + "lcms2 2.16 hb7c19ff_0", + "libnghttp2 1.58.0 h47da74e_1", + "conda 23.11.0 py310hff52083_1", + "importlib_resources 6.1.1 pyhd8ed1ab_0", + "defusedxml 0.7.1 pyhd8ed1ab_0", + "ruamel_yaml 0.15.80 py310h2372a71_1009", + "pyopenssl 23.3.0 pyhd8ed1ab_0", + "clyent 1.2.2 pyhd8ed1ab_2", + "jsonpatch 1.33 pyhd8ed1ab_0", + "libcurl 8.5.0 hca28451_0", + "freetype 2.12.1 h267a509_2", + "patchelf 0.17.2 h58526e2_0", + "requests 2.31.0 pyhd8ed1ab_0", + "bzip2 1.0.8 hd590300_5", + "libiconv 1.17 hd590300_2", + "libedit 3.1.20191231 he28a2e2_2", + "jsonschema-specifications 2023.11.2 pyhd8ed1ab_0", + "tqdm 4.66.1 pyhd8ed1ab_0", + "c-ares 1.23.0 hd590300_0", + "boltons 23.0.0 pyhd8ed1ab_0", + "libexpat 2.5.0 hcb278e6_1", + "chardet 5.2.0 py310hff52083_1", + "tini 0.19.0 h166bdaf_1", + "more-itertools 10.1.0 pyhd8ed1ab_0", + "tzdata 2023c h71feb2d_0", + "python-fastjsonschema 2.19.0 pyhd8ed1ab_0", + "conda-libmamba-solver 23.12.0 pyhd8ed1ab_0", + "icu 73.2 h59595ed_0", + "colorama 0.4.6 pyhd8ed1ab_0", + "xorg-libxau 1.0.11 hd590300_0", + "beautifulsoup4 4.12.2 pyha770c72_0", + "conda-pack 0.7.1 pyhd8ed1ab_0", + "anaconda-project 0.11.1 pyhd8ed1ab_0", + "click 8.1.7 unix_pyh707e725_0", + "perl 5.32.1 4_hd590300_perl5", + "jsonschema 4.20.0 pyhd8ed1ab_0", + "libuuid 2.38.1 h0b41bf4_0", + "ca-certificates 2023.11.17 hbcca054_0", + "platformdirs 4.1.0 pyhd8ed1ab_0", + "reproc-cpp 14.2.4.post0 h59595ed_1", + "pyyaml 6.0.1 py310h2372a71_1", + "libjpeg-turbo 3.0.0 hd590300_1", + "keyutils 1.6.1 h166bdaf_0", + "lzo 2.10 h516909a_1000", + "attrs 23.1.0 pyh71513ae_1", + "wheel 0.42.0 pyhd8ed1ab_0", + "libzlib 1.2.13 hd590300_5", + "pycosat 0.6.6 py310h2372a71_0", + "libxml2 2.12.3 h232c23b_0", + "python-libarchive-c 5.0 py310hff52083_2", + "tk 8.6.13 noxft_h4845f30_101", + "pkginfo 1.9.6 pyhd8ed1ab_0", + "xorg-libxdmcp 1.1.3 h7f98852_0", + "libgomp 13.2.0 h807b86a_3", + "pybind11-abi 4 hd8ed1ab_3", + "lz4-c 1.9.4 hcb278e6_0", + "tornado 6.3.3 py310h2372a71_1", + "distro 1.8.0 pyhd8ed1ab_0", + "conda-package-streaming 0.9.0 pyhd8ed1ab_0", + "libpng 1.6.39 h753d276_0", + "brotli-python 1.1.0 py310hc6cd4ac_1", + "markupsafe 2.1.3 py310h2372a71_1", + "pthread-stubs 0.4 h36c2ea0_1001", + "requests-toolbelt 1.0.0 pyhd8ed1ab_0", + "libtiff 4.6.0 ha9c0a0a_2", + "libxcb 1.15 h0b41bf4_0", + "zstandard 0.22.0 py310h1275a96_0", + "pytz 2023.3.post1 pyhd8ed1ab_0", + "xz 5.2.6 h166bdaf_0", + "ld_impl_linux-64 2.40 h41732ed_0", + "yaml 0.2.5 h7f98852_2", + "zstd 1.5.5 hfc55251_0", + "toolz 0.12.0 pyhd8ed1ab_0", + "liblief 0.12.3 h27087fc_0", + "pcre2 10.42 hcad00b1_0", + "pysocks 1.7.1 pyha2e5f31_6", + "tomli 2.0.1 pyhd8ed1ab_0", + "libsolv 0.7.27 hfc55251_0", + "truststore 0.8.0 pyhd8ed1ab_0", + "pycparser 2.21 pyhd8ed1ab_0", + "ripgrep 14.0.3 he8a937b_1", + "openjpeg 2.5.0 h488ebb8_3", + "libsqlite 3.44.2 h2797004_0", + "rpds-py 0.13.2 py310hcb5633a_0", + "python-dateutil 2.8.2 pyhd8ed1ab_0", + "conda-package-handling 2.2.0 pyh38be061_0", + "krb5 1.21.2 h659d440_0", + "pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1", + "filelock 3.13.1 pyhd8ed1ab_0", + "py-lief 0.12.3 py310hd8f1fbe_0", + "anaconda-client 1.12.1 pyhd8ed1ab_1", + "menuinst 2.0.1 py310hff52083_0", + "certifi 2023.11.17 pyhd8ed1ab_0", + "traitlets 5.14.0 pyhd8ed1ab_0", + "libnsl 2.0.1 hd590300_0", + "zipp 3.17.0 pyhd8ed1ab_0", + "python 3.10.13 hd12c33a_0_cpython", + "cryptography 41.0.7 py310hb8475ec_1", + "libev 4.33 hd590300_2", + "libssh2 1.11.0 h0841786_0", + "git 2.43.0 pl5321h7bc287a_0", + "_libgcc_mutex 0.1 conda_forge", + "lerc 4.0.0 h27087fc_0", + "python_abi 3.10 4_cp310", + "openssl 3.2.0 hd590300_1", + "jsonpointer 2.4 py310hff52083_3", + "soupsieve 2.5 pyhd8ed1ab_1", + "six 1.16.0 pyh6c4a22f_0", + "libdeflate 1.19 hd590300_0", + "pluggy 1.3.0 pyhd8ed1ab_0", + "nbformat 5.9.2 pyhd8ed1ab_0", + "readline 8.2 h8228510_1", + "su-exec 0.2 h166bdaf_1003", + "idna 3.6 pyhd8ed1ab_0", + "fmt 10.1.1 h00ab1b0_1", + "jinja2 3.1.2 pyhd8ed1ab_1", + "libwebp-base 1.3.2 hd590300_0", + "yaml-cpp 0.8.0 h59595ed_0", + "archspec 0.2.2 pyhd8ed1ab_0", + "psutil 5.9.5 py310h2372a71_1", + "reproc 14.2.4.post0 hd590300_1", + "_openmp_mutex 4.5 2_gnu", + "curl 8.5.0 hca28451_0", + "libgcc-ng 13.2.0 h807b86a_3", + "ruamel.yaml 0.18.5 py310h2372a71_0", + "patch 2.7.6 h7f98852_1002", + "cffi 1.16.0 py310h2fee648_0", + "ruamel.yaml.clib 0.2.7 py310h2372a71_2", + "referencing 0.32.0 pyhd8ed1ab_0", + "packaging 23.2 pyhd8ed1ab_0", + "rich 13.7.0 pyhd8ed1ab_0", + "typing-extensions 4.9.0 hd8ed1ab_0", + "conda-oci-mirror 0.1.0 pyhd8ed1ab_0", + "libmambapy 1.5.6 py310h39ff949_0", + "sniffio 1.3.0 pyhd8ed1ab_0", + "watchgod 0.8.2 pyhd8ed1ab_0", + "exceptiongroup 1.2.0 pyhd8ed1ab_0", + "jq 1.7.1 hd590300_0", + "joblib 1.3.2 pyhd8ed1ab_0", + "markdown-it-py 3.0.0 pyhd8ed1ab_0", + "wcwidth 0.2.12 pyhd8ed1ab_0", + "oniguruma 6.9.9 hd590300_0", + "oras-py 0.1.14 pyhd8ed1ab_0", + "pygments 2.17.2 pyhd8ed1ab_0", + "typing_extensions 4.9.0 pyha770c72_0", + "boa 0.16.0 pyhd8ed1ab_1", + "pip 23.3.2 pyhd8ed1ab_0", + "conda-forge-metadata 0.6.1 pyhd8ed1ab_0", + "conda-env 2.6.0 1", + "conda-build 3.28.2 py310hff52083_0", + "shyaml 0.6.2 pyhd3deb0d_0", + "mdurl 0.1.0 pyhd8ed1ab_0", + "conda-forge-ci-setup 4.3.1 py310h7a2d8a0_100", + "mamba 1.5.6 py310h51d5547_0", + "prompt-toolkit 3.0.42 pyha770c72_0", + "prompt_toolkit 3.0.42 hd8ed1ab_0", + "anyio 3.7.1 pyhd8ed1ab_0", + "json5 0.9.14 pyhd8ed1ab_0", + "libmamba 1.5.6 had39da4_0" + ], + "summary": "jxrlib - JPEG XR Library by Microsoft, built from Debian hosted sources.", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/files b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/files new file mode 100644 index 0000000000000000000000000000000000000000..63e1dcc87bad1fdac6ac7fe9af620aac09c55a0a --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/files @@ -0,0 +1,18 @@ +bin/JxrDecApp +bin/JxrEncApp +include/jxrlib/JXRGlue.h +include/jxrlib/JXRMeta.h +include/jxrlib/JXRTest.h +include/jxrlib/guiddef.h +include/jxrlib/windowsmediaphoto.h +include/jxrlib/wmsal.h +include/jxrlib/wmspecstring.h +include/jxrlib/wmspecstrings_adt.h +include/jxrlib/wmspecstrings_strict.h +include/jxrlib/wmspecstrings_undef.h +lib/libjpegxr.so +lib/libjpegxr.so.0 +lib/libjpegxr.so.1.1 +lib/libjxrglue.so +lib/libjxrglue.so.0 +lib/libjxrglue.so.1.1 diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/git b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/hash_input.json b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..171fec8702d2aad41bdea4ee2fd021ea98f526b7 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/hash_input.json @@ -0,0 +1,6 @@ +{ + "c_compiler": "gcc", + "channel_targets": "conda-forge main", + "c_compiler_version": "12", + "target_platform": "linux-64" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/index.json b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..37f3900dd2c1d90e130367c30b34493bb6850cd0 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/index.json @@ -0,0 +1,15 @@ +{ + "arch": "x86_64", + "build": "hd590300_3", + "build_number": 3, + "depends": [ + "libgcc-ng >=12" + ], + "license": "BSD-2-Clause", + "license_family": "BSD", + "name": "jxrlib", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1703333860145, + "version": "1.1" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/licenses/LICENSE b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..288627e0e34c8809fd340f17d40955dd59b3952e --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/licenses/LICENSE @@ -0,0 +1,7 @@ +Microsoft Corporation Technical Documentation License Agreement for the specification “JPEG XR Device Porting Kit” +Copyright © 2013 Microsoft Corp. +All rights reserved. +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BELIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THEPOSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/paths.json b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..e91e3bbbf6669441e22df781875442c49d648d41 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/paths.json @@ -0,0 +1,113 @@ +{ + "paths": [ + { + "_path": "bin/JxrDecApp", + "path_type": "hardlink", + "sha256": "3093166a337730e63f436347d0f8baa79fad6398c30af4cd7987f07a4734ff7a", + "size_in_bytes": 31128 + }, + { + "_path": "bin/JxrEncApp", + "path_type": "hardlink", + "sha256": "e90fbe24f31892912ce49d28a4167ef1de78aa27595fc6c1d07c8aa41628e988", + "size_in_bytes": 32800 + }, + { + "_path": "include/jxrlib/JXRGlue.h", + "path_type": "hardlink", + "sha256": "9f7d3c1c73994401be28c9b3c5787cec8e7b069a3ba4432f8780e30e802370ae", + "size_in_bytes": 29598 + }, + { + "_path": "include/jxrlib/JXRMeta.h", + "path_type": "hardlink", + "sha256": "121933695b12006a29152c3a41a4201ef885c34ec4e27c54a6ea786d53e60b53", + "size_in_bytes": 9263 + }, + { + "_path": "include/jxrlib/JXRTest.h", + "path_type": "hardlink", + "sha256": "78d08d4ca5bc3bcfb570ace1aa48175016e8773934208b3d860bd247822aa6e9", + "size_in_bytes": 5638 + }, + { + "_path": "include/jxrlib/guiddef.h", + "path_type": "hardlink", + "sha256": "59b2b126a261bd803401cd309576dbb70b7e49a0fdc9e36ad7e2408df89ba1ba", + "size_in_bytes": 6470 + }, + { + "_path": "include/jxrlib/windowsmediaphoto.h", + "path_type": "hardlink", + "sha256": "2ebf4f1cff5d8f9262727b785d845c4e8d799a94cf2aa815aabb83182fffcaf4", + "size_in_bytes": 16549 + }, + { + "_path": "include/jxrlib/wmsal.h", + "path_type": "hardlink", + "sha256": "20be70d7a9e152b7889ef7f769c07a320e47929138528a740e4caa388b5a285c", + "size_in_bytes": 47506 + }, + { + "_path": "include/jxrlib/wmspecstring.h", + "path_type": "hardlink", + "sha256": "0f87ccdd9cb4fc84d280e2b55ec67d30ec2aa4c5c78eb1cb302aa0e1bd9fb42b", + "size_in_bytes": 23581 + }, + { + "_path": "include/jxrlib/wmspecstrings_adt.h", + "path_type": "hardlink", + "sha256": "4047c48f7adeaa382c000222b5f5088059aaa18ef543d65e42d71a8ceef833af", + "size_in_bytes": 3282 + }, + { + "_path": "include/jxrlib/wmspecstrings_strict.h", + "path_type": "hardlink", + "sha256": "dcf870905455ce70baa67aebe976d98628773c1cbe2cf188d511cbe13024a704", + "size_in_bytes": 59942 + }, + { + "_path": "include/jxrlib/wmspecstrings_undef.h", + "path_type": "hardlink", + "sha256": "8e5ffe3ffae3ee6e4f1797553c384eb6e8332559c0b34eedbd3caf219c811cc9", + "size_in_bytes": 12055 + }, + { + "_path": "lib/libjpegxr.so", + "path_type": "softlink", + "sha256": "4e154dd2c231e065f7c5e93c82914e94eafb6970e3069af0a17061999efd4ce7", + "size_in_bytes": 307488 + }, + { + "_path": "lib/libjpegxr.so.0", + "path_type": "softlink", + "sha256": "4e154dd2c231e065f7c5e93c82914e94eafb6970e3069af0a17061999efd4ce7", + "size_in_bytes": 307488 + }, + { + "_path": "lib/libjpegxr.so.1.1", + "path_type": "hardlink", + "sha256": "4e154dd2c231e065f7c5e93c82914e94eafb6970e3069af0a17061999efd4ce7", + "size_in_bytes": 307488 + }, + { + "_path": "lib/libjxrglue.so", + "path_type": "softlink", + "sha256": "002147e0bfe84bf3676e0f4a63da55f2440694f7ebc36f39b3af04cb659deb66", + "size_in_bytes": 177112 + }, + { + "_path": "lib/libjxrglue.so.0", + "path_type": "softlink", + "sha256": "002147e0bfe84bf3676e0f4a63da55f2440694f7ebc36f39b3af04cb659deb66", + "size_in_bytes": 177112 + }, + { + "_path": "lib/libjxrglue.so.1.1", + "path_type": "hardlink", + "sha256": "002147e0bfe84bf3676e0f4a63da55f2440694f7ebc36f39b3af04cb659deb66", + "size_in_bytes": 177112 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/LICENSE b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..288627e0e34c8809fd340f17d40955dd59b3952e --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/LICENSE @@ -0,0 +1,7 @@ +Microsoft Corporation Technical Documentation License Agreement for the specification “JPEG XR Device Porting Kit” +Copyright © 2013 Microsoft Corp. +All rights reserved. +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BELIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THEPOSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/bld.bat b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/bld.bat new file mode 100644 index 0000000000000000000000000000000000000000..7a7896d9c4dc3bd02b405856eed5c6034cd47e4c --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/bld.bat @@ -0,0 +1,29 @@ +cl /c /DWIN32 /DDISABLE_PERF_MEASUREMENT /DENABLE_OPTIMIZATIONS /Iimage\sys /Iimage\x86 /Icommon\include /Ijxrgluelib /Ijxrtestlib image\encode\encode.c image\encode\segenc.c image\encode\strenc.c image\encode\strFwdTransform.c image\encode\strPredQuantEnc.c image\decode\decode.c image\decode\postprocess.c image\decode\segdec.c image\decode\strdec.c image\decode\strInvTransform.c image\decode\strPredQuantDec.c image\decode\JXRTranscode.c image\sys\adapthuff.c image\sys\image.c image\sys\strcodec.c image\sys\strPredQuant.c image\sys\strTransform.c image\sys\perfTimerANSI.c + +lib *.obj /out:libjpegxr.lib +del *.obj + +cl /c /DWIN32 /DDISABLE_PERF_MEASUREMENT /DENABLE_OPTIMIZATIONS /Iimage\sys /Iimage\x86 /Icommon\include /Ijxrgluelib /Ijxrtestlib jxrgluelib\JXRGlue.c jxrgluelib\JXRMeta.c jxrgluelib\JXRGluePFC.c jxrgluelib\JXRGlueJxr.c jxrtestlib\JXRTest.c jxrtestlib\JXRTestBmp.c jxrtestlib\JXRTestHdr.c jxrtestlib\JXRTestPnm.c jxrtestlib\JXRTestTif.c jxrtestlib\JXRTestYUV.c + + +lib *.obj /out:libjxrglue.lib +del *.obj + +cl /DWIN32 /DDISABLE_PERF_MEASUREMENT /DENABLE_OPTIMIZATIONS /Iimage\sys /Iimage\x86 /Icommon\include /Ijxrgluelib /Ijxrtestlib jxrencoderdecoder\JxrEncApp.c libjpegxr.lib libjxrglue.lib /OUT:JxrEncApp.exe +cl /DWIN32 /DDISABLE_PERF_MEASUREMENT /DENABLE_OPTIMIZATIONS /Iimage\sys /Iimage\x86 /Icommon\include /Ijxrgluelib /Ijxrtestlib jxrencoderdecoder\JxrDecApp.c libjpegxr.lib libjxrglue.lib /OUT:JxrDecApp.exe + +copy libjpegxr.lib "%LIBRARY_LIB%" +copy libjxrglue.lib "%LIBRARY_LIB%" +copy JxrEncApp.exe "%LIBRARY_BIN%" +copy JxrDecApp.exe "%LIBRARY_BIN%" + + +set "TARGET_INC=%LIBRARY_INC%\jxrlib" +mkdir "%TARGET_INC%" + +copy common\include\*.h "%TARGET_INC%" + +copy jxrtestlib\JXRTest.h"%TARGET_INC%" +copy jxrgluelib\JXRMeta.h "%TARGET_INC%" +copy jxrgluelib\JXRGlue.h "%TARGET_INC%" +copy image\sys\windowsmediaphoto.h "%TARGET_INC%" diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/build.sh b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..713371a7902c2cc953052113dca888e2e3342730 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/build.sh @@ -0,0 +1,8 @@ +mkdir build && cd build + +cmake ${CMAKE_ARGS} -D CMAKE_INSTALL_PREFIX="$PREFIX" \ + -D CMAKE_BUILD_TYPE=Release \ + $SRC_DIR + +make +make install diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c9343e098713a7bdbd5a610a2f253e8fad337dc5 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/conda_build_config.yaml @@ -0,0 +1,32 @@ +CI: azure +c_compiler: gcc +c_compiler_version: '12' +cdt_name: cos6 +channel_sources: conda-forge +channel_targets: conda-forge main +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cxx_compiler: gxx +docker_image: quay.io/condaforge/linux-anvil-cos7-x86_64 +extend_keys: +- ignore_build_only_deps +- extend_keys +- ignore_version +- pin_run_as_build +fortran_compiler: gfortran +ignore_build_only_deps: +- numpy +- python +lua: '5' +numpy: '1.22' +perl: 5.26.2 +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x + r-base: + min_pin: x.x + max_pin: x.x +python: '3.10' +r_base: '3.5' +target_platform: linux-64 diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/define_byteswap.patch b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/define_byteswap.patch new file mode 100644 index 0000000000000000000000000000000000000000..e3c0480babdef41b70042aabd17543a09503af07 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/define_byteswap.patch @@ -0,0 +1,27 @@ +diff --git a/image/decode/segdec.c b/image/decode/segdec.c +index fb83f2b..1eb9ae4 100644 +--- a/image/decode/segdec.c ++++ b/image/decode/segdec.c +@@ -52,6 +52,9 @@ static Int DecodeSignificantAbsLevel (struct CAdaptiveHuffman *pAHexpt, BitIOInf + //================================================================ + // Memory access functions + //================================================================ ++ ++U32 _byteswap_ulong(U32 bits); ++ + static U32 _FORCEINLINE _load4(void* pv) + { + #ifdef _BIG__ENDIAN_ +diff --git a/jxrgluelib/JXRGlueJxr.c b/jxrgluelib/JXRGlueJxr.c +index 0fde9bb..e6c54e4 100644 +--- a/jxrgluelib/JXRGlueJxr.c ++++ b/jxrgluelib/JXRGlueJxr.c +@@ -28,7 +28,7 @@ + //*@@@---@@@@****************************************************************** + #include + #include +- ++#include + + static const char szHDPhotoFormat[] = "image/vnd.ms-photo"; + const U32 IFDEntryTypeSizes[] = { 0, 1, 1, 2, 4, 8, 1, 1, 2, 4, 8, 4, 8 }; diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/meta.yaml b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d079c4e25f322b32de771ab4b71fb5ecc621b68e --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/meta.yaml @@ -0,0 +1,83 @@ +# This file created by conda-build 3.28.2 +# meta.yaml template originally from: +# /home/conda/recipe_root, last modified Sat Dec 23 12:13:46 2023 +# ------------------------------------------------ + +package: + name: jxrlib + version: '1.1' +source: + patches: + - define_byteswap.patch + - usecmake.patch + sha256: c7287b86780befa0914f2eeb8be2ac83e672ebd4bd16dc5574a36a59d9708303 + url: http://http.debian.net/debian/pool/main/j/jxrlib/jxrlib_1.1.orig.tar.gz +build: + number: '3' + run_exports: + - jxrlib >=1.1,<1.2.0a0 + string: hd590300_3 +requirements: + build: + - _libgcc_mutex 0.1 conda_forge + - _openmp_mutex 4.5 2_gnu + - binutils_impl_linux-64 2.40 hf600244_0 + - binutils_linux-64 2.40 hbdbef99_2 + - bzip2 1.0.8 hd590300_5 + - c-ares 1.24.0 hd590300_0 + - ca-certificates 2023.11.17 hbcca054_0 + - cmake 3.28.1 hcfe8598_0 + - gcc_impl_linux-64 12.3.0 he2b93b0_3 + - gcc_linux-64 12.3.0 h76fc315_2 + - kernel-headers_linux-64 2.6.32 he073ed8_16 + - keyutils 1.6.1 h166bdaf_0 + - krb5 1.21.2 h659d440_0 + - ld_impl_linux-64 2.40 h41732ed_0 + - libcurl 8.5.0 hca28451_0 + - libedit 3.1.20191231 he28a2e2_2 + - libev 4.33 hd590300_2 + - libexpat 2.5.0 hcb278e6_1 + - libgcc-devel_linux-64 12.3.0 h8bca6fd_103 + - libgcc-ng 13.2.0 h807b86a_3 + - libgomp 13.2.0 h807b86a_3 + - libnghttp2 1.58.0 h47da74e_1 + - libsanitizer 12.3.0 h0f45ef3_3 + - libssh2 1.11.0 h0841786_0 + - libstdcxx-ng 13.2.0 h7e041cc_3 + - libuv 1.46.0 hd590300_0 + - libzlib 1.2.13 hd590300_5 + - make 4.3 hd18ef5c_1 + - ncurses 6.4 h59595ed_2 + - openssl 3.2.0 hd590300_1 + - rhash 1.4.4 hd590300_0 + - sysroot_linux-64 2.12 he073ed8_16 + - xz 5.2.6 h166bdaf_0 + - zstd 1.5.5 hfc55251_0 + host: + - _libgcc_mutex 0.1 conda_forge + - _openmp_mutex 4.5 2_gnu + - libgcc-ng 13.2.0 h807b86a_3 + - libgomp 13.2.0 h807b86a_3 + run: + - libgcc-ng >=12 +test: + commands: + - test -f ${PREFIX}/lib/libjxrglue${SHLIB_EXT} + - test -f ${PREFIX}/lib/libjpegxr${SHLIB_EXT} +about: + description: This package seems to be no longer maintained by the original developer + (Microsoft). + home: https://packages.debian.org/source/sid/jxrlib + license: BSD-2-Clause + license_family: BSD + license_file: LICENSE + summary: jxrlib - JPEG XR Library by Microsoft, built from Debian hosted sources. +extra: + copy_test_source_files: true + final: true + flow_run_id: azure_20231223.3.1 + recipe-maintainers: + - csachs + - hmaarrfk + remote_url: https://github.com/conda-forge/jxrlib-feedstock + sha: 0160e553d21ab0f429bb5dda3fda9deb3f984e63 diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/meta.yaml.template b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/meta.yaml.template new file mode 100644 index 0000000000000000000000000000000000000000..04b93e004acabf9e3692a90168948426b8d2e087 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/meta.yaml.template @@ -0,0 +1,43 @@ +{% set version = "1.1" %} + +package: + name: jxrlib + version: {{ version }} + +source: + url: http://http.debian.net/debian/pool/main/j/jxrlib/jxrlib_{{ version }}.orig.tar.gz + sha256: c7287b86780befa0914f2eeb8be2ac83e672ebd4bd16dc5574a36a59d9708303 + patches: + - usecmake.patch # [unix] + - define_byteswap.patch + +build: + number: 3 + run_exports: + - {{ pin_subpackage('jxrlib', max_pin='x.x') }} + +requirements: + build: + - {{ compiler('c') }} + - cmake # [unix] + - make # [unix] + +test: + commands: + - test -f ${PREFIX}/lib/libjxrglue${SHLIB_EXT} # [unix] + - test -f ${PREFIX}/lib/libjpegxr${SHLIB_EXT} # [unix] + - if not exist %LIBRARY_LIB%\\libjxrglue.lib exit 1 # [win] + - if not exist %LIBRARY_LIB%\\libjpegxr.lib exit 1 # [win] + +about: + home: https://packages.debian.org/source/sid/jxrlib + license: BSD-2-Clause + summary: "jxrlib - JPEG XR Library by Microsoft, built from Debian hosted sources." + description: "This package seems to be no longer maintained by the original developer (Microsoft)." + license_family: BSD + license_file: LICENSE + +extra: + recipe-maintainers: + - csachs + - hmaarrfk diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/recipe-scripts-license.txt b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..2ec51d75f362bc4327a3cfe1c515c16bb3c57367 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/recipe-scripts-license.txt @@ -0,0 +1,27 @@ +BSD-3-Clause license +Copyright (c) 2015-2022, conda-forge contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/usecmake.patch b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/usecmake.patch new file mode 100644 index 0000000000000000000000000000000000000000..139e0ba99a4a8746e5f079d5deb2307e8506fec8 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/recipe/usecmake.patch @@ -0,0 +1,143 @@ +Description: Prefer a cmake based build system +Author: Mathieu Malaterre +Forwarded: https://jxrlib.codeplex.com/discussions/440294 + +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt 1970-01-01 00:00:00.000000000 +0000 ++++ CMakeLists.txt 2014-03-26 17:05:04.429637801 +0100 +@@ -0,0 +1,134 @@ ++# Copyright Mathieu Malaterre ++# BSD (Same as jxrlib) ++cmake_minimum_required(VERSION 2.8) ++project(jxrlib C) ++ ++# Need shared libs for ABI ++set(BUILD_SHARED_LIBS ON) ++ ++# helper macro to preserve original Makefile convention ++macro(JXR_MAKE_OBJ SET_NAME) ++ foreach(src ${SRC_${SET_NAME}}) ++ list(APPEND OBJ_${SET_NAME} ${DIR_${SET_NAME}}/${src}) ++ endforeach() ++endmacro() ++ ++include(TestBigEndian) ++test_big_endian(ISBIGENDIAN) ++if(ISBIGENDIAN) ++ set(DEF_ENDIAN _BIG__ENDIAN_) ++endif() ++ ++set(DIR_SYS image/sys) ++set(DIR_DEC image/decode) ++set(DIR_ENC image/encode) ++ ++set(DIR_GLUE jxrgluelib) ++set(DIR_TEST jxrtestlib) ++set(DIR_EXEC jxrencoderdecoder) ++ ++if(NOT JXRLIB_INSTALL_BIN_DIR) ++ set(JXRLIB_INSTALL_BIN_DIR "bin") ++endif() ++ ++if(NOT JXRLIB_INSTALL_LIB_DIR) ++ set(JXRLIB_INSTALL_LIB_DIR "lib") ++endif() ++ ++if(NOT JXRLIB_INSTALL_INCLUDE_DIR) ++ set(JXRLIB_INSTALL_INCLUDE_DIR "include/jxrlib") ++endif() ++ ++include_directories( ++ common/include ++ ${DIR_SYS} ++ ${DIR_GLUE} ++ ${DIR_TEST} ++) ++ ++# where is strlcpy ? ++include(CheckSymbolExists) ++check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY) ++#set(CMAKE_REQUIRED_LIBRARIES bsd) ++#CHECK_SYMBOL_EXISTS(strlcpy "string.h" HAVE_STRLCPY4) ++# on linux, strlcpy is in -lbsd: ++#if(NOT HAVE_STRLCPY) ++# include(CheckLibraryExists) ++# find_library(BSD_LIBRARY bsd) ++# check_library_exists(bsd "strlcpy" ${BSD_LIBRARY} HAVE_STRLCPY_BSD) ++#endif() ++ ++# JPEG-XR ++set(SRC_SYS adapthuff.c image.c strcodec.c strPredQuant.c strTransform.c perfTimerANSI.c) ++JXR_MAKE_OBJ(SYS) ++set(SRC_DEC decode.c postprocess.c segdec.c strdec.c strInvTransform.c strPredQuantDec.c JXRTranscode.c) ++JXR_MAKE_OBJ(DEC) ++set(SRC_ENC encode.c segenc.c strenc.c strFwdTransform.c strPredQuantEnc.c) ++JXR_MAKE_OBJ(ENC) ++ ++add_library(jpegxr ${OBJ_ENC} ${OBJ_DEC} ${OBJ_SYS}) ++set_property(TARGET jpegxr ++ PROPERTY COMPILE_DEFINITIONS __ANSI__ DISABLE_PERF_MEASUREMENT ${DEF_ENDIAN} ++) ++set_property(TARGET jpegxr PROPERTY LINK_INTERFACE_LIBRARIES "") ++set_property(TARGET jpegxr PROPERTY COMPILE_FLAGS -w) ++# VERSION/SOVERSION ++set_property(TARGET jpegxr PROPERTY VERSION 1.1) ++set_property(TARGET jpegxr PROPERTY SOVERSION 0) ++install(TARGETS jpegxr ++ EXPORT JXRLibTargets ++ RUNTIME DESTINATION ${JXRLIB_INSTALL_BIN_DIR} COMPONENT Applications ++ LIBRARY DESTINATION ${JXRLIB_INSTALL_LIB_DIR} COMPONENT Libraries ++) ++ ++# JXR-GLUE ++set(SRC_GLUE JXRGlue.c JXRMeta.c JXRGluePFC.c JXRGlueJxr.c) ++JXR_MAKE_OBJ(GLUE) ++set(SRC_TEST JXRTest.c JXRTestBmp.c JXRTestHdr.c JXRTestPnm.c JXRTestTif.c JXRTestYUV.c) ++JXR_MAKE_OBJ(TEST) ++ ++add_library(jxrglue ${OBJ_GLUE} ${OBJ_TEST}) ++set_property(TARGET jxrglue ++ PROPERTY COMPILE_DEFINITIONS __ANSI__ DISABLE_PERF_MEASUREMENT ${DEF_ENDIAN} ++) ++set_property(TARGET jxrglue PROPERTY LINK_INTERFACE_LIBRARIES "") ++set_property(TARGET jxrglue PROPERTY COMPILE_FLAGS -w) ++# VERSION/SOVERSION ++set_property(TARGET jxrglue PROPERTY VERSION 1.1) ++set_property(TARGET jxrglue PROPERTY SOVERSION 0) ++install(TARGETS jxrglue ++ EXPORT JXRLibTargets ++ RUNTIME DESTINATION ${JXRLIB_INSTALL_BIN_DIR} COMPONENT Applications ++ LIBRARY DESTINATION ${JXRLIB_INSTALL_LIB_DIR} COMPONENT Libraries ++) ++#if(HAVE_STRLCPY_BSD) ++# target_link_libraries(jxrglue ${BSD_LIBRARY}) ++#endif() ++target_link_libraries(jxrglue jpegxr m) ++# Enc app files ++set(ENCAPP JxrEncApp) ++add_executable(${ENCAPP} ${DIR_EXEC}/${ENCAPP}.c) ++set_property(TARGET ${ENCAPP} ++ PROPERTY COMPILE_DEFINITIONS __ANSI__ DISABLE_PERF_MEASUREMENT ${DEF_ENDIAN} ++) ++set_property(TARGET ${ENCAPP} PROPERTY COMPILE_FLAGS -w) ++target_link_libraries(${ENCAPP} jxrglue) # jpegxr) ++install(TARGETS ${ENCAPP} RUNTIME DESTINATION ${JXRLIB_INSTALL_BIN_DIR}) ++# Dec app files ++set(DECAPP JxrDecApp) ++add_executable(${DECAPP} ${DIR_EXEC}/${DECAPP}.c) ++set_property(TARGET ${DECAPP} ++ PROPERTY COMPILE_DEFINITIONS __ANSI__ DISABLE_PERF_MEASUREMENT ${DEF_ENDIAN} ++) ++set_property(TARGET ${DECAPP} PROPERTY COMPILE_FLAGS -w) ++target_link_libraries(${DECAPP} jxrglue) # jpegxr) ++install(TARGETS ${DECAPP} RUNTIME DESTINATION ${JXRLIB_INSTALL_BIN_DIR}) ++ ++# install rules ++install(FILES jxrgluelib/JXRGlue.h jxrgluelib/JXRMeta.h jxrtestlib/JXRTest.h ++ image/sys/windowsmediaphoto.h ++ DESTINATION ${JXRLIB_INSTALL_INCLUDE_DIR} COMPONENT Headers ++) ++install(DIRECTORY common/include/ DESTINATION ${JXRLIB_INSTALL_INCLUDE_DIR} ++ FILES_MATCHING PATTERN "*.h" ++) diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/repodata_record.json b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..4e62668da5aacd1337d39edc94fa823708bbdf64 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/repodata_record.json @@ -0,0 +1,22 @@ +{ + "name": "jxrlib", + "version": "1.1", + "build": "hd590300_3", + "build_number": 3, + "channel": "https://conda.anaconda.org/conda-forge/linux-64", + "subdir": "linux-64", + "fn": "jxrlib-1.1-hd590300_3.conda", + "md5": "5aeabe88534ea4169d4c49998f293d6c", + "url": "https://conda.anaconda.org/conda-forge/linux-64/jxrlib-1.1-hd590300_3.conda", + "sha256": "2057ca87b313bde5b74b93b0e696f8faab69acd4cb0edebb78469f3f388040c0", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "libgcc-ng >=12" + ], + "constrains": [], + "license": "BSD-2-Clause", + "license_family": "BSD", + "timestamp": 1703333860000, + "size": 239104 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/run_exports.json b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..62eb3255704d7996dd5574f7e8dd4f08ff5e1ba2 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/run_exports.json @@ -0,0 +1 @@ +{"weak": ["jxrlib >=1.1,<1.2.0a0"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/test/run_test.sh b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..0214ccd590b1eb68350f9bb0c36ac037040b6d46 --- /dev/null +++ b/data/miniconda3/pkgs/jxrlib-1.1-hd590300_3/info/test/run_test.sh @@ -0,0 +1,9 @@ + + +set -ex + + + +test -f ${PREFIX}/lib/libjxrglue${SHLIB_EXT} +test -f ${PREFIX}/lib/libjpegxr${SHLIB_EXT} +exit 0 diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/jpgicc b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/jpgicc new file mode 100644 index 0000000000000000000000000000000000000000..c2e29c6e601d998b54c85f13348dd7f65b59ace8 Binary files /dev/null and b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/jpgicc differ diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/linkicc b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/linkicc new file mode 100644 index 0000000000000000000000000000000000000000..b7c67144450e17c2928472a33771ae1954648b40 Binary files /dev/null and b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/linkicc differ diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/psicc b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/psicc new file mode 100644 index 0000000000000000000000000000000000000000..72cf03c516cc7dd3db81d0ee09334fdc164fb7a8 Binary files /dev/null and b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/psicc differ diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/tificc b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/tificc new file mode 100644 index 0000000000000000000000000000000000000000..a943b2620b34f220c97faa4a9a3b277d529ba0fc Binary files /dev/null and b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/tificc differ diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/transicc b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/transicc new file mode 100644 index 0000000000000000000000000000000000000000..efe22470c46d55185256a173f0f5d9aa1f169a1f Binary files /dev/null and b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/bin/transicc differ diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/include/lcms2.h b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/include/lcms2.h new file mode 100644 index 0000000000000000000000000000000000000000..8dc59fb42fca5970354e0e71313501c4e213e120 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/include/lcms2.h @@ -0,0 +1,1999 @@ +//--------------------------------------------------------------------------------- +// +// Little Color Management System +// Copyright (c) 1998-2026 Marti Maria Saguer +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the "Software"), +// to deal in the Software without restriction, including without limitation +// the rights to use, copy, modify, merge, publish, distribute, sublicense, +// and/or sell copies of the Software, and to permit persons to whom the Software +// is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//--------------------------------------------------------------------------------- +// +// Version 2.18 +// + +#ifndef _lcms2_H + +// ********** Configuration toggles **************************************** + +// Uncomment this one if you are using big endian machines +// #define CMS_USE_BIG_ENDIAN 1 + +// Uncomment this one if your compiler/machine does NOT support the +// "long long" type. +// #define CMS_DONT_USE_INT64 1 + +// Uncomment this if your compiler doesn't work with fast floor function +// #define CMS_DONT_USE_FAST_FLOOR 1 + +// Uncomment this line if you want lcms to use the black point tag in profile, +// if commented, lcms will compute the black point by its own. +// It is safer to leave it commented out +// #define CMS_USE_PROFILE_BLACK_POINT_TAG 1 + +// Uncomment this line if you are compiling as C++ and want a C++ API +// #define CMS_USE_CPP_API + +// Uncomment this line if you need strict CGATS syntax. Makes CGATS files to +// require "KEYWORD" on undefined identifiers, keep it commented out unless needed +// #define CMS_STRICT_CGATS 1 + +// Uncomment to get rid of the tables for "half" float support +// #define CMS_NO_HALF_SUPPORT 1 + +// Uncomment to get rid of pthreads/windows dependency +// #define CMS_NO_PTHREADS 1 + +// Uncomment this for special windows mutex initialization (see lcms2_internal.h) +// #define CMS_RELY_ON_WINDOWS_STATIC_MUTEX_INIT + +// Uncomment this to remove the "register" storage class +// #define CMS_NO_REGISTER_KEYWORD 1 + +// Uncomment this to remove visibility attribute when building shared objects +// #define CMS_NO_VISIBILITY 1 + +// ********** End of configuration toggles ****************************** + +// Needed for streams +#include + +// Needed for portability (C99 per 7.1.2) +#include +#include +#include + +#ifndef CMS_USE_CPP_API +# ifdef __cplusplus +# if __cplusplus >= 201703L +# define CMS_NO_REGISTER_KEYWORD 1 +# endif +extern "C" { +# endif +#endif + +// Version/release +#define LCMS_VERSION 2180 + +// I will give the chance of redefining basic types for compilers that are not fully C99 compliant +#ifndef CMS_BASIC_TYPES_ALREADY_DEFINED + +// Base types +typedef unsigned char cmsUInt8Number; // That is guaranteed by the C99 spec +typedef signed char cmsInt8Number; // That is guaranteed by the C99 spec + +#if CHAR_BIT != 8 +# error "Unable to find 8 bit type, unsupported compiler" +#endif + +// IEEE float storage numbers +typedef float cmsFloat32Number; +typedef double cmsFloat64Number; + +// 16-bit base types +#if (USHRT_MAX == 65535U) + typedef unsigned short cmsUInt16Number; +#elif (UINT_MAX == 65535U) + typedef unsigned int cmsUInt16Number; +#else +# error "Unable to find 16 bits unsigned type, unsupported compiler" +#endif + +#if (SHRT_MAX == 32767) + typedef short cmsInt16Number; +#elif (INT_MAX == 32767) + typedef int cmsInt16Number; +#else +# error "Unable to find 16 bits signed type, unsupported compiler" +#endif + +// 32-bit base type +#if (UINT_MAX == 4294967295U) + typedef unsigned int cmsUInt32Number; +#elif (ULONG_MAX == 4294967295U) + typedef unsigned long cmsUInt32Number; +#else +# error "Unable to find 32 bit unsigned type, unsupported compiler" +#endif + +#if (INT_MAX == +2147483647) + typedef int cmsInt32Number; +#elif (LONG_MAX == +2147483647) + typedef long cmsInt32Number; +#else +# error "Unable to find 32 bit signed type, unsupported compiler" +#endif + +// 64-bit base types +#ifndef CMS_DONT_USE_INT64 +# if (ULONG_MAX == 18446744073709551615U) + typedef unsigned long cmsUInt64Number; +# elif (ULLONG_MAX == 18446744073709551615U) + typedef unsigned long long cmsUInt64Number; +# else +# define CMS_DONT_USE_INT64 1 +# endif +# if (LONG_MAX == +9223372036854775807) + typedef long cmsInt64Number; +# elif (LLONG_MAX == +9223372036854775807) + typedef long long cmsInt64Number; +# else +# define CMS_DONT_USE_INT64 1 +# endif +#endif +#endif + +// Handle "register" keyword +#if defined(CMS_NO_REGISTER_KEYWORD) +# define CMSREGISTER +#else +# define CMSREGISTER register +#endif + +// In the case 64 bit numbers are not supported by the compiler +#ifdef CMS_DONT_USE_INT64 + typedef cmsUInt32Number cmsUInt64Number[2]; + typedef cmsInt32Number cmsInt64Number[2]; +#endif + +// Derivative types +typedef cmsUInt32Number cmsSignature; +typedef cmsUInt16Number cmsU8Fixed8Number; +typedef cmsInt32Number cmsS15Fixed16Number; +typedef cmsUInt32Number cmsU16Fixed16Number; + +// Boolean type, which will be using the native integer +typedef int cmsBool; + +// Try to detect windows +#if defined (_WIN32) || defined(_WIN64) || defined(WIN32) || defined(_WIN32_) +# define CMS_IS_WINDOWS_ 1 +#endif + +#ifdef _MSC_VER +# define CMS_IS_WINDOWS_ 1 +#endif + +#ifdef __BORLANDC__ +# define CMS_IS_WINDOWS_ 1 +#endif + +// Try to detect big endian platforms. This list can be endless, so primarily rely on the configure script +// on Unix-like systems, and allow it to be set on the compiler command line using +// -DCMS_USE_BIG_ENDIAN or something similar +#ifdef CMS_USE_BIG_ENDIAN // set at compiler command line takes overall precedence + +# if CMS_USE_BIG_ENDIAN == 0 +# undef CMS_USE_BIG_ENDIAN +# endif + +#else // CMS_USE_BIG_ENDIAN + +# ifdef WORDS_BIGENDIAN // set by configure (or explicitly on compiler command line) +# define CMS_USE_BIG_ENDIAN 1 +# else // WORDS_BIGENDIAN +// Fall back to platform/compiler specific tests +# if defined(__sgi__) || defined(__sgi) || defined(sparc) +# define CMS_USE_BIG_ENDIAN 1 +# endif + +# if defined(__s390__) || defined(__s390x__) +# define CMS_USE_BIG_ENDIAN 1 +# endif + +# ifdef macintosh +# ifdef __BIG_ENDIAN__ +# define CMS_USE_BIG_ENDIAN 1 +# endif +# ifdef __LITTLE_ENDIAN__ +# undef CMS_USE_BIG_ENDIAN +# endif +# endif +# endif // WORDS_BIGENDIAN + +# if defined(_HOST_BIG_ENDIAN) || defined(__BIG_ENDIAN__) +# define CMS_USE_BIG_ENDIAN 1 +# endif + +#endif // CMS_USE_BIG_ENDIAN + + +// Calling convention -- this is hardly platform and compiler dependent +#if defined(CMS_IS_WINDOWS_) && !defined(__GNUC__) +# if defined(CMS_DLL) || defined(CMS_DLL_BUILD) +# ifdef __BORLANDC__ +# define CMSEXPORT __stdcall _export +# define CMSAPI +# else +# define CMSEXPORT __stdcall +# ifdef CMS_DLL_BUILD +# define CMSAPI __declspec(dllexport) +# else +# define CMSAPI __declspec(dllimport) +# endif +# endif +# else +# define CMSEXPORT +# define CMSAPI +# endif +#else // not Windows +# if defined(HAVE_FUNC_ATTRIBUTE_VISIBILITY) && !defined(CMS_NO_VISIBILITY) +# define CMSEXPORT +# define CMSAPI __attribute__((visibility("default"))) +# else +# define CMSEXPORT +# define CMSAPI +# endif +#endif // CMS_IS_WINDOWS_ + +#ifdef HasTHREADS +# if HasTHREADS == 1 +# undef CMS_NO_PTHREADS +# else +# define CMS_NO_PTHREADS 1 +# endif +#endif + +// Some common definitions +#define cmsMAX_PATH 256 + +#ifndef FALSE +# define FALSE 0 +#endif +#ifndef TRUE +# define TRUE 1 +#endif + +// D50 XYZ normalized to Y=1.0 +#define cmsD50X 0.9642 +#define cmsD50Y 1.0 +#define cmsD50Z 0.8249 + +// V4 perceptual black +#define cmsPERCEPTUAL_BLACK_X 0.00336 +#define cmsPERCEPTUAL_BLACK_Y 0.0034731 +#define cmsPERCEPTUAL_BLACK_Z 0.00287 + +// Definitions in ICC spec +#define cmsMagicNumber 0x61637370 // 'acsp' +#define lcmsSignature 0x6c636d73 // 'lcms' + + +// Base ICC type definitions +typedef enum { + cmsSigChromaticityType = 0x6368726D, // 'chrm' + cmsSigcicpType = 0x63696370, // 'cicp' + cmsSigColorantOrderType = 0x636C726F, // 'clro' + cmsSigColorantTableType = 0x636C7274, // 'clrt' + cmsSigCrdInfoType = 0x63726469, // 'crdi' + cmsSigCurveType = 0x63757276, // 'curv' + cmsSigDataType = 0x64617461, // 'data' + cmsSigDictType = 0x64696374, // 'dict' + cmsSigDateTimeType = 0x6474696D, // 'dtim' + cmsSigDeviceSettingsType = 0x64657673, // 'devs' + cmsSigLut16Type = 0x6d667432, // 'mft2' + cmsSigLut8Type = 0x6d667431, // 'mft1' + cmsSigLutAtoBType = 0x6d414220, // 'mAB ' + cmsSigLutBtoAType = 0x6d424120, // 'mBA ' + cmsSigMeasurementType = 0x6D656173, // 'meas' + cmsSigMultiLocalizedUnicodeType = 0x6D6C7563, // 'mluc' + cmsSigMultiProcessElementType = 0x6D706574, // 'mpet' + cmsSigNamedColorType = 0x6E636f6C, // 'ncol' -- DEPRECATED! + cmsSigNamedColor2Type = 0x6E636C32, // 'ncl2' + cmsSigParametricCurveType = 0x70617261, // 'para' + cmsSigProfileSequenceDescType = 0x70736571, // 'pseq' + cmsSigProfileSequenceIdType = 0x70736964, // 'psid' + cmsSigResponseCurveSet16Type = 0x72637332, // 'rcs2' + cmsSigS15Fixed16ArrayType = 0x73663332, // 'sf32' + cmsSigScreeningType = 0x7363726E, // 'scrn' + cmsSigSignatureType = 0x73696720, // 'sig ' + cmsSigTextType = 0x74657874, // 'text' + cmsSigTextDescriptionType = 0x64657363, // 'desc' + cmsSigU16Fixed16ArrayType = 0x75663332, // 'uf32' + cmsSigUcrBgType = 0x62666420, // 'bfd ' + cmsSigUInt16ArrayType = 0x75693136, // 'ui16' + cmsSigUInt32ArrayType = 0x75693332, // 'ui32' + cmsSigUInt64ArrayType = 0x75693634, // 'ui64' + cmsSigUInt8ArrayType = 0x75693038, // 'ui08' + cmsSigVcgtType = 0x76636774, // 'vcgt' + cmsSigViewingConditionsType = 0x76696577, // 'view' + cmsSigXYZType = 0x58595A20, // 'XYZ ' + cmsSigMHC2Type = 0x4D484332 // 'MHC2' + + +} cmsTagTypeSignature; + +// Base ICC tag definitions +typedef enum { + cmsSigAToB0Tag = 0x41324230, // 'A2B0' + cmsSigAToB1Tag = 0x41324231, // 'A2B1' + cmsSigAToB2Tag = 0x41324232, // 'A2B2' + cmsSigBlueColorantTag = 0x6258595A, // 'bXYZ' + cmsSigBlueMatrixColumnTag = 0x6258595A, // 'bXYZ' + cmsSigBlueTRCTag = 0x62545243, // 'bTRC' + cmsSigBToA0Tag = 0x42324130, // 'B2A0' + cmsSigBToA1Tag = 0x42324131, // 'B2A1' + cmsSigBToA2Tag = 0x42324132, // 'B2A2' + cmsSigCalibrationDateTimeTag = 0x63616C74, // 'calt' + cmsSigCharTargetTag = 0x74617267, // 'targ' + cmsSigChromaticAdaptationTag = 0x63686164, // 'chad' + cmsSigChromaticityTag = 0x6368726D, // 'chrm' + cmsSigColorantOrderTag = 0x636C726F, // 'clro' + cmsSigColorantTableTag = 0x636C7274, // 'clrt' + cmsSigColorantTableOutTag = 0x636C6F74, // 'clot' + cmsSigColorimetricIntentImageStateTag = 0x63696973, // 'ciis' + cmsSigCopyrightTag = 0x63707274, // 'cprt' + cmsSigCrdInfoTag = 0x63726469, // 'crdi' + cmsSigDataTag = 0x64617461, // 'data' + cmsSigDateTimeTag = 0x6474696D, // 'dtim' + cmsSigDeviceMfgDescTag = 0x646D6E64, // 'dmnd' + cmsSigDeviceModelDescTag = 0x646D6464, // 'dmdd' + cmsSigDeviceSettingsTag = 0x64657673, // 'devs' + cmsSigDToB0Tag = 0x44324230, // 'D2B0' + cmsSigDToB1Tag = 0x44324231, // 'D2B1' + cmsSigDToB2Tag = 0x44324232, // 'D2B2' + cmsSigDToB3Tag = 0x44324233, // 'D2B3' + cmsSigBToD0Tag = 0x42324430, // 'B2D0' + cmsSigBToD1Tag = 0x42324431, // 'B2D1' + cmsSigBToD2Tag = 0x42324432, // 'B2D2' + cmsSigBToD3Tag = 0x42324433, // 'B2D3' + cmsSigGamutTag = 0x67616D74, // 'gamt' + cmsSigGrayTRCTag = 0x6b545243, // 'kTRC' + cmsSigGreenColorantTag = 0x6758595A, // 'gXYZ' + cmsSigGreenMatrixColumnTag = 0x6758595A, // 'gXYZ' + cmsSigGreenTRCTag = 0x67545243, // 'gTRC' + cmsSigLuminanceTag = 0x6C756d69, // 'lumi' + cmsSigMeasurementTag = 0x6D656173, // 'meas' + cmsSigMediaBlackPointTag = 0x626B7074, // 'bkpt' + cmsSigMediaWhitePointTag = 0x77747074, // 'wtpt' + cmsSigNamedColorTag = 0x6E636f6C, // 'ncol' // Deprecated by the ICC + cmsSigNamedColor2Tag = 0x6E636C32, // 'ncl2' + cmsSigOutputResponseTag = 0x72657370, // 'resp' + cmsSigPerceptualRenderingIntentGamutTag = 0x72696730, // 'rig0' + cmsSigPreview0Tag = 0x70726530, // 'pre0' + cmsSigPreview1Tag = 0x70726531, // 'pre1' + cmsSigPreview2Tag = 0x70726532, // 'pre2' + cmsSigProfileDescriptionTag = 0x64657363, // 'desc' + cmsSigProfileDescriptionMLTag = 0x6473636d, // 'dscm' + cmsSigProfileSequenceDescTag = 0x70736571, // 'pseq' + cmsSigProfileSequenceIdTag = 0x70736964, // 'psid' + cmsSigPs2CRD0Tag = 0x70736430, // 'psd0' + cmsSigPs2CRD1Tag = 0x70736431, // 'psd1' + cmsSigPs2CRD2Tag = 0x70736432, // 'psd2' + cmsSigPs2CRD3Tag = 0x70736433, // 'psd3' + cmsSigPs2CSATag = 0x70733273, // 'ps2s' + cmsSigPs2RenderingIntentTag = 0x70733269, // 'ps2i' + cmsSigRedColorantTag = 0x7258595A, // 'rXYZ' + cmsSigRedMatrixColumnTag = 0x7258595A, // 'rXYZ' + cmsSigRedTRCTag = 0x72545243, // 'rTRC' + cmsSigSaturationRenderingIntentGamutTag = 0x72696732, // 'rig2' + cmsSigScreeningDescTag = 0x73637264, // 'scrd' + cmsSigScreeningTag = 0x7363726E, // 'scrn' + cmsSigTechnologyTag = 0x74656368, // 'tech' + cmsSigUcrBgTag = 0x62666420, // 'bfd ' + cmsSigViewingCondDescTag = 0x76756564, // 'vued' + cmsSigViewingConditionsTag = 0x76696577, // 'view' + cmsSigVcgtTag = 0x76636774, // 'vcgt' + cmsSigMetaTag = 0x6D657461, // 'meta' + cmsSigcicpTag = 0x63696370, // 'cicp' + cmsSigArgyllArtsTag = 0x61727473, // 'arts' + cmsSigMHC2Tag = 0x4D484332 // 'MHC2' + +} cmsTagSignature; + + +// ICC Technology tag +typedef enum { + cmsSigDigitalCamera = 0x6463616D, // 'dcam' + cmsSigFilmScanner = 0x6673636E, // 'fscn' + cmsSigReflectiveScanner = 0x7273636E, // 'rscn' + cmsSigInkJetPrinter = 0x696A6574, // 'ijet' + cmsSigThermalWaxPrinter = 0x74776178, // 'twax' + cmsSigElectrophotographicPrinter = 0x6570686F, // 'epho' + cmsSigElectrostaticPrinter = 0x65737461, // 'esta' + cmsSigDyeSublimationPrinter = 0x64737562, // 'dsub' + cmsSigPhotographicPaperPrinter = 0x7270686F, // 'rpho' + cmsSigFilmWriter = 0x6670726E, // 'fprn' + cmsSigVideoMonitor = 0x7669646D, // 'vidm' + cmsSigVideoCamera = 0x76696463, // 'vidc' + cmsSigProjectionTelevision = 0x706A7476, // 'pjtv' + cmsSigCRTDisplay = 0x43525420, // 'CRT ' + cmsSigPMDisplay = 0x504D4420, // 'PMD ' + cmsSigAMDisplay = 0x414D4420, // 'AMD ' + cmsSigPhotoCD = 0x4B504344, // 'KPCD' + cmsSigPhotoImageSetter = 0x696D6773, // 'imgs' + cmsSigGravure = 0x67726176, // 'grav' + cmsSigOffsetLithography = 0x6F666673, // 'offs' + cmsSigSilkscreen = 0x73696C6B, // 'silk' + cmsSigFlexography = 0x666C6578, // 'flex' + cmsSigMotionPictureFilmScanner = 0x6D706673, // 'mpfs' + cmsSigMotionPictureFilmRecorder = 0x6D706672, // 'mpfr' + cmsSigDigitalMotionPictureCamera = 0x646D7063, // 'dmpc' + cmsSigDigitalCinemaProjector = 0x64636A70 // 'dcpj' + +} cmsTechnologySignature; + + +// ICC Color spaces +typedef enum { + cmsSigXYZData = 0x58595A20, // 'XYZ ' + cmsSigLabData = 0x4C616220, // 'Lab ' + cmsSigLuvData = 0x4C757620, // 'Luv ' + cmsSigYCbCrData = 0x59436272, // 'YCbr' + cmsSigYxyData = 0x59787920, // 'Yxy ' + cmsSigRgbData = 0x52474220, // 'RGB ' + cmsSigGrayData = 0x47524159, // 'GRAY' + cmsSigHsvData = 0x48535620, // 'HSV ' + cmsSigHlsData = 0x484C5320, // 'HLS ' + cmsSigCmykData = 0x434D594B, // 'CMYK' + cmsSigCmyData = 0x434D5920, // 'CMY ' + cmsSigMCH1Data = 0x4D434831, // 'MCH1' + cmsSigMCH2Data = 0x4D434832, // 'MCH2' + cmsSigMCH3Data = 0x4D434833, // 'MCH3' + cmsSigMCH4Data = 0x4D434834, // 'MCH4' + cmsSigMCH5Data = 0x4D434835, // 'MCH5' + cmsSigMCH6Data = 0x4D434836, // 'MCH6' + cmsSigMCH7Data = 0x4D434837, // 'MCH7' + cmsSigMCH8Data = 0x4D434838, // 'MCH8' + cmsSigMCH9Data = 0x4D434839, // 'MCH9' + cmsSigMCHAData = 0x4D434841, // 'MCHA' + cmsSigMCHBData = 0x4D434842, // 'MCHB' + cmsSigMCHCData = 0x4D434843, // 'MCHC' + cmsSigMCHDData = 0x4D434844, // 'MCHD' + cmsSigMCHEData = 0x4D434845, // 'MCHE' + cmsSigMCHFData = 0x4D434846, // 'MCHF' + cmsSigNamedData = 0x6e6d636c, // 'nmcl' + cmsSig1colorData = 0x31434C52, // '1CLR' + cmsSig2colorData = 0x32434C52, // '2CLR' + cmsSig3colorData = 0x33434C52, // '3CLR' + cmsSig4colorData = 0x34434C52, // '4CLR' + cmsSig5colorData = 0x35434C52, // '5CLR' + cmsSig6colorData = 0x36434C52, // '6CLR' + cmsSig7colorData = 0x37434C52, // '7CLR' + cmsSig8colorData = 0x38434C52, // '8CLR' + cmsSig9colorData = 0x39434C52, // '9CLR' + cmsSig10colorData = 0x41434C52, // 'ACLR' + cmsSig11colorData = 0x42434C52, // 'BCLR' + cmsSig12colorData = 0x43434C52, // 'CCLR' + cmsSig13colorData = 0x44434C52, // 'DCLR' + cmsSig14colorData = 0x45434C52, // 'ECLR' + cmsSig15colorData = 0x46434C52, // 'FCLR' + cmsSigLuvKData = 0x4C75764B // 'LuvK' + +} cmsColorSpaceSignature; + +// ICC Profile Class +typedef enum { + cmsSigInputClass = 0x73636E72, // 'scnr' + cmsSigDisplayClass = 0x6D6E7472, // 'mntr' + cmsSigOutputClass = 0x70727472, // 'prtr' + cmsSigLinkClass = 0x6C696E6B, // 'link' + cmsSigAbstractClass = 0x61627374, // 'abst' + cmsSigColorSpaceClass = 0x73706163, // 'spac' + cmsSigNamedColorClass = 0x6e6d636c // 'nmcl' + +} cmsProfileClassSignature; + +// ICC Platforms +typedef enum { + cmsSigMacintosh = 0x4150504C, // 'APPL' + cmsSigMicrosoft = 0x4D534654, // 'MSFT' + cmsSigSolaris = 0x53554E57, // 'SUNW' + cmsSigSGI = 0x53474920, // 'SGI ' + cmsSigTaligent = 0x54474E54, // 'TGNT' + cmsSigUnices = 0x2A6E6978 // '*nix' // From argyll -- Not official + +} cmsPlatformSignature; + +// Reference gamut +#define cmsSigPerceptualReferenceMediumGamut 0x70726d67 //'prmg' + +// For cmsSigColorimetricIntentImageStateTag +#define cmsSigSceneColorimetryEstimates 0x73636F65 //'scoe' +#define cmsSigSceneAppearanceEstimates 0x73617065 //'sape' +#define cmsSigFocalPlaneColorimetryEstimates 0x66706365 //'fpce' +#define cmsSigReflectionHardcopyOriginalColorimetry 0x72686F63 //'rhoc' +#define cmsSigReflectionPrintOutputColorimetry 0x72706F63 //'rpoc' + +// Multi process elements types +typedef enum { + cmsSigCurveSetElemType = 0x63767374, //'cvst' + cmsSigMatrixElemType = 0x6D617466, //'matf' + cmsSigCLutElemType = 0x636C7574, //'clut' + + cmsSigBAcsElemType = 0x62414353, // 'bACS' + cmsSigEAcsElemType = 0x65414353, // 'eACS' + + // Custom from here, not in the ICC Spec + cmsSigXYZ2LabElemType = 0x6C327820, // 'l2x ' + cmsSigLab2XYZElemType = 0x78326C20, // 'x2l ' + cmsSigNamedColorElemType = 0x6E636C20, // 'ncl ' + cmsSigLabV2toV4 = 0x32203420, // '2 4 ' + cmsSigLabV4toV2 = 0x34203220, // '4 2 ' + + // Identities + cmsSigIdentityElemType = 0x69646E20, // 'idn ' + + // Float to floatPCS + cmsSigLab2FloatPCS = 0x64326C20, // 'd2l ' + cmsSigFloatPCS2Lab = 0x6C326420, // 'l2d ' + cmsSigXYZ2FloatPCS = 0x64327820, // 'd2x ' + cmsSigFloatPCS2XYZ = 0x78326420, // 'x2d ' + cmsSigClipNegativesElemType = 0x636c7020 // 'clp ' + +} cmsStageSignature; + +// Types of CurveElements +typedef enum { + + cmsSigFormulaCurveSeg = 0x70617266, // 'parf' + cmsSigSampledCurveSeg = 0x73616D66, // 'samf' + cmsSigSegmentedCurve = 0x63757266 // 'curf' + +} cmsCurveSegSignature; + +// Used in ResponseCurveType +#define cmsSigStatusA 0x53746141 //'StaA' +#define cmsSigStatusE 0x53746145 //'StaE' +#define cmsSigStatusI 0x53746149 //'StaI' +#define cmsSigStatusT 0x53746154 //'StaT' +#define cmsSigStatusM 0x5374614D //'StaM' +#define cmsSigDN 0x444E2020 //'DN ' +#define cmsSigDNP 0x444E2050 //'DN P' +#define cmsSigDNN 0x444E4E20 //'DNN ' +#define cmsSigDNNP 0x444E4E50 //'DNNP' + +// Device attributes, currently defined values correspond to the low 4 bytes +// of the 8 byte attribute quantity +#define cmsReflective 0 +#define cmsTransparency 1 +#define cmsGlossy 0 +#define cmsMatte 2 + +// Common structures in ICC tags +typedef struct { + cmsUInt32Number len; + cmsUInt32Number flag; + cmsUInt8Number data[1]; + +} cmsICCData; + +// ICC date time +typedef struct { + cmsUInt16Number year; + cmsUInt16Number month; + cmsUInt16Number day; + cmsUInt16Number hours; + cmsUInt16Number minutes; + cmsUInt16Number seconds; + +} cmsDateTimeNumber; + +// ICC XYZ +typedef struct { + cmsS15Fixed16Number X; + cmsS15Fixed16Number Y; + cmsS15Fixed16Number Z; + +} cmsEncodedXYZNumber; + + +// Profile ID as computed by MD5 algorithm +typedef union { + cmsUInt8Number ID8[16]; + cmsUInt16Number ID16[8]; + cmsUInt32Number ID32[4]; + +} cmsProfileID; + + +// ---------------------------------------------------------------------------------------------- +// ICC profile internal base types. Strictly, shouldn't be declared in this header, but maybe +// somebody want to use this info for accessing profile header directly, so here it is. + +// Profile header -- it is 32-bit aligned, so no issues are expected on alignment +typedef struct { + cmsUInt32Number size; // Profile size in bytes + cmsSignature cmmId; // CMM for this profile + cmsUInt32Number version; // Format version number + cmsProfileClassSignature deviceClass; // Type of profile + cmsColorSpaceSignature colorSpace; // Color space of data + cmsColorSpaceSignature pcs; // PCS, XYZ or Lab only + cmsDateTimeNumber date; // Date profile was created + cmsSignature magic; // Magic Number to identify an ICC profile + cmsPlatformSignature platform; // Primary Platform + cmsUInt32Number flags; // Various bit settings + cmsSignature manufacturer; // Device manufacturer + cmsUInt32Number model; // Device model number + cmsUInt64Number attributes; // Device attributes + cmsUInt32Number renderingIntent;// Rendering intent + cmsEncodedXYZNumber illuminant; // Profile illuminant + cmsSignature creator; // Profile creator + cmsProfileID profileID; // Profile ID using MD5 + cmsInt8Number reserved[28]; // Reserved for future use + +} cmsICCHeader; + +// ICC base tag +typedef struct { + cmsTagTypeSignature sig; + cmsInt8Number reserved[4]; + +} cmsTagBase; + +// A tag entry in directory +typedef struct { + cmsTagSignature sig; // The tag signature + cmsUInt32Number offset; // Start of tag + cmsUInt32Number size; // Size in bytes + +} cmsTagEntry; + +// ---------------------------------------------------------------------------------------------- + +// Little CMS specific typedefs + +typedef void* cmsHANDLE ; // Generic handle +typedef void* cmsHPROFILE; // Opaque typedefs to hide internals +typedef void* cmsHTRANSFORM; + +#define cmsMAXCHANNELS 16 // Maximum number of channels in ICC profiles + +// Format of pixel is defined by one cmsUInt32Number, using bit fields as follows +// +// 2 1 0 +// 4 3 2 10987 6 5 4 3 2 1 098 7654 321 +// M A O TTTTT U Y F P X S EEE CCCC BBB +// +// M: Premultiplied alpha (only works when extra samples is 1) +// A: Floating point -- With this flag we can differentiate 16 bits as float and as int +// O: Optimized -- previous optimization already returns the final 8-bit value +// T: Pixeltype +// F: Flavor 0=MinIsBlack(Chocolate) 1=MinIsWhite(Vanilla) +// P: Planar? 0=Chunky, 1=Planar +// X: swap 16 bps endianness? +// S: Do swap? ie, BGR, KYMC +// E: Extra samples +// C: Channels (Samples per pixel) +// B: bytes per sample +// Y: Swap first - changes ABGR to BGRA and KCMY to CMYK + +#define PREMUL_SH(m) ((m) << 23) +#define FLOAT_SH(a) ((a) << 22) +#define OPTIMIZED_SH(s) ((s) << 21) +#define COLORSPACE_SH(s) ((s) << 16) +#define SWAPFIRST_SH(s) ((s) << 14) +#define FLAVOR_SH(s) ((s) << 13) +#define PLANAR_SH(p) ((p) << 12) +#define ENDIAN16_SH(e) ((e) << 11) +#define DOSWAP_SH(e) ((e) << 10) +#define EXTRA_SH(e) ((e) << 7) +#define CHANNELS_SH(c) ((c) << 3) +#define BYTES_SH(b) (b) + +// These macros unpack format specifiers into integers +#define T_PREMUL(m) (((m)>>23)&1) +#define T_FLOAT(a) (((a)>>22)&1) +#define T_OPTIMIZED(o) (((o)>>21)&1) +#define T_COLORSPACE(s) (((s)>>16)&31) +#define T_SWAPFIRST(s) (((s)>>14)&1) +#define T_FLAVOR(s) (((s)>>13)&1) +#define T_PLANAR(p) (((p)>>12)&1) +#define T_ENDIAN16(e) (((e)>>11)&1) +#define T_DOSWAP(e) (((e)>>10)&1) +#define T_EXTRA(e) (((e)>>7)&7) +#define T_CHANNELS(c) (((c)>>3)&15) +#define T_BYTES(b) ((b)&7) + + +// Pixel types +#define PT_ANY 0 // Don't check colorspace + // 1 & 2 are reserved +#define PT_GRAY 3 +#define PT_RGB 4 +#define PT_CMY 5 +#define PT_CMYK 6 +#define PT_YCbCr 7 +#define PT_YUV 8 // Lu'v' +#define PT_XYZ 9 +#define PT_Lab 10 +#define PT_YUVK 11 // Lu'v'K +#define PT_HSV 12 +#define PT_HLS 13 +#define PT_Yxy 14 +#define PT_MCH1 15 +#define PT_MCH2 16 +#define PT_MCH3 17 +#define PT_MCH4 18 +#define PT_MCH5 19 +#define PT_MCH6 20 +#define PT_MCH7 21 +#define PT_MCH8 22 +#define PT_MCH9 23 +#define PT_MCH10 24 +#define PT_MCH11 25 +#define PT_MCH12 26 +#define PT_MCH13 27 +#define PT_MCH14 28 +#define PT_MCH15 29 +#define PT_LabV2 30 // Identical to PT_Lab, but using the V2 old encoding + +// Some (not all!) representations + +#ifndef TYPE_RGB_8 // TYPE_RGB_8 is a very common identifier, so don't include ours + // if user has it already defined. + +#define TYPE_GRAY_8 (COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(1)) +#define TYPE_GRAY_8_REV (COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(1)|FLAVOR_SH(1)) +#define TYPE_GRAY_16 (COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(2)) +#define TYPE_GRAY_16_REV (COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(2)|FLAVOR_SH(1)) +#define TYPE_GRAY_16_SE (COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_GRAYA_8 (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(1)) +#define TYPE_GRAYA_8_PREMUL (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(1)|PREMUL_SH(1)) +#define TYPE_GRAYA_16 (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(2)) +#define TYPE_GRAYA_16_PREMUL (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(2)|PREMUL_SH(1)) +#define TYPE_GRAYA_16_SE (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_GRAYA_8_PLANAR (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(1)|PLANAR_SH(1)) +#define TYPE_GRAYA_16_PLANAR (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(2)|PLANAR_SH(1)) + +#define TYPE_RGB_8 (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(1)) +#define TYPE_RGB_8_PLANAR (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1)) +#define TYPE_BGR_8 (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)) +#define TYPE_BGR_8_PLANAR (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|PLANAR_SH(1)) +#define TYPE_RGB_16 (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_RGB_16_PLANAR (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1)) +#define TYPE_RGB_16_SE (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_BGR_16 (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_BGR_16_PLANAR (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|PLANAR_SH(1)) +#define TYPE_BGR_16_SE (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1)) + +#define TYPE_RGBA_8 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)) +#define TYPE_RGBA_8_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|PREMUL_SH(1)) +#define TYPE_RGBA_8_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1)) +#define TYPE_RGBA_16 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_RGBA_16_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|PREMUL_SH(1)) +#define TYPE_RGBA_16_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1)) +#define TYPE_RGBA_16_SE (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1)) + +#define TYPE_ARGB_8 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|SWAPFIRST_SH(1)) +#define TYPE_ARGB_8_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|SWAPFIRST_SH(1)|PREMUL_SH(1)) +#define TYPE_ARGB_8_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|SWAPFIRST_SH(1)|PLANAR_SH(1)) +#define TYPE_ARGB_16 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|SWAPFIRST_SH(1)) +#define TYPE_ARGB_16_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|SWAPFIRST_SH(1)|PREMUL_SH(1)) + +#define TYPE_ABGR_8 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)) +#define TYPE_ABGR_8_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|PREMUL_SH(1)) +#define TYPE_ABGR_8_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|PLANAR_SH(1)) +#define TYPE_ABGR_16 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_ABGR_16_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|PREMUL_SH(1)) +#define TYPE_ABGR_16_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|PLANAR_SH(1)) +#define TYPE_ABGR_16_SE (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1)) + +#define TYPE_BGRA_8 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|SWAPFIRST_SH(1)) +#define TYPE_BGRA_8_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|SWAPFIRST_SH(1)|PREMUL_SH(1)) +#define TYPE_BGRA_8_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|SWAPFIRST_SH(1)|PLANAR_SH(1)) +#define TYPE_BGRA_16 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|SWAPFIRST_SH(1)) +#define TYPE_BGRA_16_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|SWAPFIRST_SH(1)|PREMUL_SH(1)) +#define TYPE_BGRA_16_SE (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1)|DOSWAP_SH(1)|SWAPFIRST_SH(1)) + +#define TYPE_CMY_8 (COLORSPACE_SH(PT_CMY)|CHANNELS_SH(3)|BYTES_SH(1)) +#define TYPE_CMY_8_PLANAR (COLORSPACE_SH(PT_CMY)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1)) +#define TYPE_CMY_16 (COLORSPACE_SH(PT_CMY)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_CMY_16_PLANAR (COLORSPACE_SH(PT_CMY)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1)) +#define TYPE_CMY_16_SE (COLORSPACE_SH(PT_CMY)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1)) + +#define TYPE_CMYK_8 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)) +#define TYPE_CMYKA_8 (COLORSPACE_SH(PT_CMYK)|EXTRA_SH(1)|CHANNELS_SH(4)|BYTES_SH(1)) +#define TYPE_CMYK_8_REV (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)|FLAVOR_SH(1)) +#define TYPE_YUVK_8 TYPE_CMYK_8_REV +#define TYPE_CMYK_8_PLANAR (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)|PLANAR_SH(1)) +#define TYPE_CMYK_16 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)) +#define TYPE_CMYK_16_REV (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|FLAVOR_SH(1)) +#define TYPE_YUVK_16 TYPE_CMYK_16_REV +#define TYPE_CMYK_16_PLANAR (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|PLANAR_SH(1)) +#define TYPE_CMYK_16_SE (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|ENDIAN16_SH(1)) + +#define TYPE_KYMC_8 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)|DOSWAP_SH(1)) +#define TYPE_KYMC_16 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_KYMC_16_SE (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1)) + +#define TYPE_KCMY_8 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)|SWAPFIRST_SH(1)) +#define TYPE_KCMY_8_REV (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)|FLAVOR_SH(1)|SWAPFIRST_SH(1)) +#define TYPE_KCMY_16 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|SWAPFIRST_SH(1)) +#define TYPE_KCMY_16_REV (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|FLAVOR_SH(1)|SWAPFIRST_SH(1)) +#define TYPE_KCMY_16_SE (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|ENDIAN16_SH(1)|SWAPFIRST_SH(1)) + +#define TYPE_CMYK5_8 (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(1)) +#define TYPE_CMYK5_16 (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(2)) +#define TYPE_CMYK5_16_SE (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_KYMC5_8 (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(1)|DOSWAP_SH(1)) +#define TYPE_KYMC5_16 (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_KYMC5_16_SE (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1)) +#define TYPE_CMYK6_8 (COLORSPACE_SH(PT_MCH6)|CHANNELS_SH(6)|BYTES_SH(1)) +#define TYPE_CMYK6_8_PLANAR (COLORSPACE_SH(PT_MCH6)|CHANNELS_SH(6)|BYTES_SH(1)|PLANAR_SH(1)) +#define TYPE_CMYK6_16 (COLORSPACE_SH(PT_MCH6)|CHANNELS_SH(6)|BYTES_SH(2)) +#define TYPE_CMYK6_16_PLANAR (COLORSPACE_SH(PT_MCH6)|CHANNELS_SH(6)|BYTES_SH(2)|PLANAR_SH(1)) +#define TYPE_CMYK6_16_SE (COLORSPACE_SH(PT_MCH6)|CHANNELS_SH(6)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_CMYK7_8 (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(1)) +#define TYPE_CMYK7_16 (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(2)) +#define TYPE_CMYK7_16_SE (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_KYMC7_8 (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(1)|DOSWAP_SH(1)) +#define TYPE_KYMC7_16 (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_KYMC7_16_SE (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1)) +#define TYPE_CMYK8_8 (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(1)) +#define TYPE_CMYK8_16 (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(2)) +#define TYPE_CMYK8_16_SE (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_KYMC8_8 (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(1)|DOSWAP_SH(1)) +#define TYPE_KYMC8_16 (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_KYMC8_16_SE (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1)) +#define TYPE_CMYK9_8 (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(1)) +#define TYPE_CMYK9_16 (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(2)) +#define TYPE_CMYK9_16_SE (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_KYMC9_8 (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(1)|DOSWAP_SH(1)) +#define TYPE_KYMC9_16 (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_KYMC9_16_SE (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1)) +#define TYPE_CMYK10_8 (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(1)) +#define TYPE_CMYK10_16 (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(2)) +#define TYPE_CMYK10_16_SE (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_KYMC10_8 (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(1)|DOSWAP_SH(1)) +#define TYPE_KYMC10_16 (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_KYMC10_16_SE (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1)) +#define TYPE_CMYK11_8 (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(1)) +#define TYPE_CMYK11_16 (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(2)) +#define TYPE_CMYK11_16_SE (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_KYMC11_8 (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(1)|DOSWAP_SH(1)) +#define TYPE_KYMC11_16 (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_KYMC11_16_SE (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1)) +#define TYPE_CMYK12_8 (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(1)) +#define TYPE_CMYK12_16 (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(2)) +#define TYPE_CMYK12_16_SE (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(2)|ENDIAN16_SH(1)) +#define TYPE_KYMC12_8 (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(1)|DOSWAP_SH(1)) +#define TYPE_KYMC12_16 (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_KYMC12_16_SE (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1)) + +// Colorimetric +#define TYPE_XYZ_16 (COLORSPACE_SH(PT_XYZ)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_Lab_8 (COLORSPACE_SH(PT_Lab)|CHANNELS_SH(3)|BYTES_SH(1)) +#define TYPE_LabV2_8 (COLORSPACE_SH(PT_LabV2)|CHANNELS_SH(3)|BYTES_SH(1)) + +#define TYPE_ALab_8 (COLORSPACE_SH(PT_Lab)|CHANNELS_SH(3)|BYTES_SH(1)|EXTRA_SH(1)|SWAPFIRST_SH(1)) +#define TYPE_ALabV2_8 (COLORSPACE_SH(PT_LabV2)|CHANNELS_SH(3)|BYTES_SH(1)|EXTRA_SH(1)|SWAPFIRST_SH(1)) +#define TYPE_Lab_16 (COLORSPACE_SH(PT_Lab)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_LabV2_16 (COLORSPACE_SH(PT_LabV2)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_Yxy_16 (COLORSPACE_SH(PT_Yxy)|CHANNELS_SH(3)|BYTES_SH(2)) + +// YCbCr +#define TYPE_YCbCr_8 (COLORSPACE_SH(PT_YCbCr)|CHANNELS_SH(3)|BYTES_SH(1)) +#define TYPE_YCbCr_8_PLANAR (COLORSPACE_SH(PT_YCbCr)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1)) +#define TYPE_YCbCr_16 (COLORSPACE_SH(PT_YCbCr)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_YCbCr_16_PLANAR (COLORSPACE_SH(PT_YCbCr)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1)) +#define TYPE_YCbCr_16_SE (COLORSPACE_SH(PT_YCbCr)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1)) + +// YUV +#define TYPE_YUV_8 (COLORSPACE_SH(PT_YUV)|CHANNELS_SH(3)|BYTES_SH(1)) +#define TYPE_YUV_8_PLANAR (COLORSPACE_SH(PT_YUV)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1)) +#define TYPE_YUV_16 (COLORSPACE_SH(PT_YUV)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_YUV_16_PLANAR (COLORSPACE_SH(PT_YUV)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1)) +#define TYPE_YUV_16_SE (COLORSPACE_SH(PT_YUV)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1)) + +// HLS +#define TYPE_HLS_8 (COLORSPACE_SH(PT_HLS)|CHANNELS_SH(3)|BYTES_SH(1)) +#define TYPE_HLS_8_PLANAR (COLORSPACE_SH(PT_HLS)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1)) +#define TYPE_HLS_16 (COLORSPACE_SH(PT_HLS)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_HLS_16_PLANAR (COLORSPACE_SH(PT_HLS)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1)) +#define TYPE_HLS_16_SE (COLORSPACE_SH(PT_HLS)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1)) + +// HSV +#define TYPE_HSV_8 (COLORSPACE_SH(PT_HSV)|CHANNELS_SH(3)|BYTES_SH(1)) +#define TYPE_HSV_8_PLANAR (COLORSPACE_SH(PT_HSV)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1)) +#define TYPE_HSV_16 (COLORSPACE_SH(PT_HSV)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_HSV_16_PLANAR (COLORSPACE_SH(PT_HSV)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1)) +#define TYPE_HSV_16_SE (COLORSPACE_SH(PT_HSV)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1)) + +// Named color index. Only 16 bits is allowed (don't check colorspace) +#define TYPE_NAMED_COLOR_INDEX (CHANNELS_SH(1)|BYTES_SH(2)) + +// Float formatters. +#define TYPE_XYZ_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_XYZ)|CHANNELS_SH(3)|BYTES_SH(4)) +#define TYPE_Lab_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_Lab)|CHANNELS_SH(3)|BYTES_SH(4)) +#define TYPE_LabA_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_Lab)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)) +#define TYPE_GRAY_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(4)) +#define TYPE_GRAYA_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(4)|EXTRA_SH(1)) +#define TYPE_GRAYA_FLT_PREMUL (FLOAT_SH(1)|COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(4)|EXTRA_SH(1)|PREMUL_SH(1)) +#define TYPE_RGB_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(4)) + +#define TYPE_RGBA_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)) +#define TYPE_RGBA_FLT_PREMUL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|PREMUL_SH(1)) +#define TYPE_ARGB_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|SWAPFIRST_SH(1)) +#define TYPE_ARGB_FLT_PREMUL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|SWAPFIRST_SH(1)|PREMUL_SH(1)) +#define TYPE_BGR_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(4)|DOSWAP_SH(1)) +#define TYPE_BGRA_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|DOSWAP_SH(1)|SWAPFIRST_SH(1)) +#define TYPE_BGRA_FLT_PREMUL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|DOSWAP_SH(1)|SWAPFIRST_SH(1)|PREMUL_SH(1)) +#define TYPE_ABGR_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|DOSWAP_SH(1)) +#define TYPE_ABGR_FLT_PREMUL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|DOSWAP_SH(1)|PREMUL_SH(1)) + +#define TYPE_CMYK_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(4)) + +// Floating point formatters. +// NOTE THAT 'BYTES' FIELD IS SET TO ZERO ON DLB because 8 bytes overflows the bitfield +#define TYPE_XYZ_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_XYZ)|CHANNELS_SH(3)|BYTES_SH(0)) +#define TYPE_Lab_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_Lab)|CHANNELS_SH(3)|BYTES_SH(0)) +#define TYPE_GRAY_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(0)) +#define TYPE_RGB_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(0)) +#define TYPE_BGR_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(0)|DOSWAP_SH(1)) +#define TYPE_CMYK_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(0)) +#define TYPE_OKLAB_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_MCH3)|CHANNELS_SH(3)|BYTES_SH(0)) + +// IEEE 754-2008 "half" +#define TYPE_GRAY_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(2)) +#define TYPE_RGB_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_CMYK_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)) + +#define TYPE_RGBA_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)) +#define TYPE_ARGB_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|SWAPFIRST_SH(1)) +#define TYPE_BGR_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)) +#define TYPE_BGRA_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|SWAPFIRST_SH(1)) +#define TYPE_ABGR_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)) + +#endif + +// Colorspaces +typedef struct { + cmsFloat64Number X; + cmsFloat64Number Y; + cmsFloat64Number Z; + + } cmsCIEXYZ; + +typedef struct { + cmsFloat64Number x; + cmsFloat64Number y; + cmsFloat64Number Y; + + } cmsCIExyY; + +typedef struct { + cmsFloat64Number L; + cmsFloat64Number a; + cmsFloat64Number b; + + } cmsCIELab; + +typedef struct { + cmsFloat64Number L; + cmsFloat64Number C; + cmsFloat64Number h; + + } cmsCIELCh; + +typedef struct { + cmsFloat64Number J; + cmsFloat64Number C; + cmsFloat64Number h; + + } cmsJCh; + +typedef struct { + cmsCIEXYZ Red; + cmsCIEXYZ Green; + cmsCIEXYZ Blue; + + } cmsCIEXYZTRIPLE; + +typedef struct { + cmsCIExyY Red; + cmsCIExyY Green; + cmsCIExyY Blue; + + } cmsCIExyYTRIPLE; + +// Illuminant types for structs below +#define cmsILLUMINANT_TYPE_UNKNOWN 0x0000000 +#define cmsILLUMINANT_TYPE_D50 0x0000001 +#define cmsILLUMINANT_TYPE_D65 0x0000002 +#define cmsILLUMINANT_TYPE_D93 0x0000003 +#define cmsILLUMINANT_TYPE_F2 0x0000004 +#define cmsILLUMINANT_TYPE_D55 0x0000005 +#define cmsILLUMINANT_TYPE_A 0x0000006 +#define cmsILLUMINANT_TYPE_E 0x0000007 +#define cmsILLUMINANT_TYPE_F8 0x0000008 + +typedef struct { + cmsUInt32Number Observer; // 0 = unknown, 1=CIE 1931, 2=CIE 1964 + cmsCIEXYZ Backing; // Value of backing + cmsUInt32Number Geometry; // 0=unknown, 1=45/0, 0/45 2=0d, d/0 + cmsFloat64Number Flare; // 0..1.0 + cmsUInt32Number IlluminantType; + + } cmsICCMeasurementConditions; + +typedef struct { + cmsCIEXYZ IlluminantXYZ; // Not the same struct as CAM02, + cmsCIEXYZ SurroundXYZ; // This is for storing the tag + cmsUInt32Number IlluminantType; // viewing condition + + } cmsICCViewingConditions; + +typedef struct { + cmsUInt8Number ColourPrimaries; // Recommendation ITU-T H.273 + cmsUInt8Number TransferCharacteristics; // (ISO/IEC 23091-2) + cmsUInt8Number MatrixCoefficients; + cmsUInt8Number VideoFullRangeFlag; + +} cmsVideoSignalType; + +typedef struct { + cmsUInt32Number CurveEntries; + cmsFloat64Number* RedCurve; + cmsFloat64Number* GreenCurve; + cmsFloat64Number* BlueCurve; + + cmsFloat64Number MinLuminance; // ST.2086 min luminance in nits + cmsFloat64Number PeakLuminance; // ST.2086 peak luminance in nits + + cmsFloat64Number XYZ2XYZmatrix[3][4]; + +} cmsMHC2Type; + + + +// Get LittleCMS version (for shared objects) ----------------------------------------------------------------------------- + +CMSAPI int CMSEXPORT cmsGetEncodedCMMversion(void); + +// Support of non-standard functions -------------------------------------------------------------------------------------- + +CMSAPI int CMSEXPORT cmsstrcasecmp(const char* s1, const char* s2); +CMSAPI long int CMSEXPORT cmsfilelength(FILE* f); + + +// Context handling -------------------------------------------------------------------------------------------------------- + +// Each context holds its owns globals and its own plug-ins. There is a global context with the id = 0 for lecacy compatibility +// though using the global context is not recommended. Proper context handling makes lcms more thread-safe. + +typedef struct _cmsContext_struct* cmsContext; + +CMSAPI cmsContext CMSEXPORT cmsCreateContext(void* Plugin, void* UserData); +CMSAPI void CMSEXPORT cmsDeleteContext(cmsContext ContextID); +CMSAPI cmsContext CMSEXPORT cmsDupContext(cmsContext ContextID, void* NewUserData); +CMSAPI void* CMSEXPORT cmsGetContextUserData(cmsContext ContextID); + +// Plug-In registering -------------------------------------------------------------------------------------------------- + +CMSAPI cmsBool CMSEXPORT cmsPlugin(void* Plugin); +CMSAPI cmsBool CMSEXPORT cmsPluginTHR(cmsContext ContextID, void* Plugin); +CMSAPI void CMSEXPORT cmsUnregisterPlugins(void); +CMSAPI void CMSEXPORT cmsUnregisterPluginsTHR(cmsContext ContextID); + +// Error logging ---------------------------------------------------------------------------------------------------------- + +// There is no error handling at all. When a function fails, it returns proper value. +// For example, all create functions does return NULL on failure. Other may return FALSE. +// It may be interesting, for the developer, to know why the function is failing. +// for that reason, lcms2 does offer a logging function. This function will get +// an ENGLISH string with some clues on what is going wrong. You can show this +// info to the end user if you wish, or just create some sort of log on disk. +// The logging function should NOT terminate the program, as this obviously can leave +// unfreed resources. It is the programmer's responsibility to check each function +// return code to make sure it didn't fail. + +#define cmsERROR_UNDEFINED 0 +#define cmsERROR_FILE 1 +#define cmsERROR_RANGE 2 +#define cmsERROR_INTERNAL 3 +#define cmsERROR_NULL 4 +#define cmsERROR_READ 5 +#define cmsERROR_SEEK 6 +#define cmsERROR_WRITE 7 +#define cmsERROR_UNKNOWN_EXTENSION 8 +#define cmsERROR_COLORSPACE_CHECK 9 +#define cmsERROR_ALREADY_DEFINED 10 +#define cmsERROR_BAD_SIGNATURE 11 +#define cmsERROR_CORRUPTION_DETECTED 12 +#define cmsERROR_NOT_SUITABLE 13 + +// Error logger is called with the ContextID when a message is raised. This gives the +// chance to know which thread is responsible of the warning and any environment associated +// with it. Non-multithreading applications may safely ignore this parameter. +// Note that under certain special circumstances, ContextID may be NULL. +typedef void (* cmsLogErrorHandlerFunction)(cmsContext ContextID, cmsUInt32Number ErrorCode, const char *Text); + +// Allows user to set any specific logger +CMSAPI void CMSEXPORT cmsSetLogErrorHandler(cmsLogErrorHandlerFunction Fn); +CMSAPI void CMSEXPORT cmsSetLogErrorHandlerTHR(cmsContext ContextID, cmsLogErrorHandlerFunction Fn); + +// Conversions -------------------------------------------------------------------------------------------------------------- + +// Returns pointers to constant structs +CMSAPI const cmsCIEXYZ* CMSEXPORT cmsD50_XYZ(void); +CMSAPI const cmsCIExyY* CMSEXPORT cmsD50_xyY(void); + +// Colorimetric space conversions +CMSAPI void CMSEXPORT cmsXYZ2xyY(cmsCIExyY* Dest, const cmsCIEXYZ* Source); +CMSAPI void CMSEXPORT cmsxyY2XYZ(cmsCIEXYZ* Dest, const cmsCIExyY* Source); +CMSAPI void CMSEXPORT cmsXYZ2Lab(const cmsCIEXYZ* WhitePoint, cmsCIELab* Lab, const cmsCIEXYZ* xyz); +CMSAPI void CMSEXPORT cmsLab2XYZ(const cmsCIEXYZ* WhitePoint, cmsCIEXYZ* xyz, const cmsCIELab* Lab); +CMSAPI void CMSEXPORT cmsLab2LCh(cmsCIELCh*LCh, const cmsCIELab* Lab); +CMSAPI void CMSEXPORT cmsLCh2Lab(cmsCIELab* Lab, const cmsCIELCh* LCh); + +// Encoding /Decoding on PCS +CMSAPI void CMSEXPORT cmsLabEncoded2Float(cmsCIELab* Lab, const cmsUInt16Number wLab[3]); +CMSAPI void CMSEXPORT cmsLabEncoded2FloatV2(cmsCIELab* Lab, const cmsUInt16Number wLab[3]); +CMSAPI void CMSEXPORT cmsFloat2LabEncoded(cmsUInt16Number wLab[3], const cmsCIELab* Lab); +CMSAPI void CMSEXPORT cmsFloat2LabEncodedV2(cmsUInt16Number wLab[3], const cmsCIELab* Lab); +CMSAPI void CMSEXPORT cmsXYZEncoded2Float(cmsCIEXYZ* fxyz, const cmsUInt16Number XYZ[3]); +CMSAPI void CMSEXPORT cmsFloat2XYZEncoded(cmsUInt16Number XYZ[3], const cmsCIEXYZ* fXYZ); + +// DeltaE metrics +CMSAPI cmsFloat64Number CMSEXPORT cmsDeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2); +CMSAPI cmsFloat64Number CMSEXPORT cmsCIE94DeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2); +CMSAPI cmsFloat64Number CMSEXPORT cmsBFDdeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2); +CMSAPI cmsFloat64Number CMSEXPORT cmsCMCdeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2, cmsFloat64Number l, cmsFloat64Number c); +CMSAPI cmsFloat64Number CMSEXPORT cmsCIE2000DeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2, cmsFloat64Number Kl, cmsFloat64Number Kc, cmsFloat64Number Kh); + +// Temperature <-> Chromaticity (Black body) +CMSAPI cmsBool CMSEXPORT cmsWhitePointFromTemp(cmsCIExyY* WhitePoint, cmsFloat64Number TempK); +CMSAPI cmsBool CMSEXPORT cmsTempFromWhitePoint(cmsFloat64Number* TempK, const cmsCIExyY* WhitePoint); + +// Chromatic adaptation +CMSAPI cmsBool CMSEXPORT cmsAdaptToIlluminant(cmsCIEXYZ* Result, const cmsCIEXYZ* SourceWhitePt, + const cmsCIEXYZ* Illuminant, + const cmsCIEXYZ* Value); + +// CIECAM02 --------------------------------------------------------------------------------------------------- + +// Viewing conditions. Please note those are CAM model viewing conditions, and not the ICC tag viewing +// conditions, which I'm naming cmsICCViewingConditions to make differences evident. Unfortunately, the tag +// cannot deal with surround La, Yb and D value so is basically useless to store CAM02 viewing conditions. + + +#define AVG_SURROUND 1 +#define DIM_SURROUND 2 +#define DARK_SURROUND 3 +#define CUTSHEET_SURROUND 4 + +#define D_CALCULATE (-1) + +typedef struct { + cmsCIEXYZ whitePoint; + cmsFloat64Number Yb; + cmsFloat64Number La; + cmsUInt32Number surround; + cmsFloat64Number D_value; + + } cmsViewingConditions; + +CMSAPI cmsHANDLE CMSEXPORT cmsCIECAM02Init(cmsContext ContextID, const cmsViewingConditions* pVC); +CMSAPI void CMSEXPORT cmsCIECAM02Done(cmsHANDLE hModel); +CMSAPI void CMSEXPORT cmsCIECAM02Forward(cmsHANDLE hModel, const cmsCIEXYZ* pIn, cmsJCh* pOut); +CMSAPI void CMSEXPORT cmsCIECAM02Reverse(cmsHANDLE hModel, const cmsJCh* pIn, cmsCIEXYZ* pOut); + + +// Tone curves ----------------------------------------------------------------------------------------- + +// This describes a curve segment. For a table of supported types, see the manual. User can increase the number of +// available types by using a proper plug-in. Parametric segments allow 10 parameters at most + +typedef struct { + cmsFloat32Number x0, x1; // Domain; for x0 < x <= x1 + cmsInt32Number Type; // Parametric type, Type == 0 means sampled segment. Negative values are reserved + cmsFloat64Number Params[10]; // Parameters if Type != 0 + cmsUInt32Number nGridPoints; // Number of grid points if Type == 0 + cmsFloat32Number* SampledPoints; // Points to an array of floats if Type == 0 + +} cmsCurveSegment; + +// The internal representation is none of your business. +typedef struct _cms_curve_struct cmsToneCurve; + +CMSAPI cmsToneCurve* CMSEXPORT cmsBuildSegmentedToneCurve(cmsContext ContextID, cmsUInt32Number nSegments, const cmsCurveSegment Segments[]); +CMSAPI cmsToneCurve* CMSEXPORT cmsBuildParametricToneCurve(cmsContext ContextID, cmsInt32Number Type, const cmsFloat64Number Params[]); +CMSAPI cmsToneCurve* CMSEXPORT cmsBuildGamma(cmsContext ContextID, cmsFloat64Number Gamma); +CMSAPI cmsToneCurve* CMSEXPORT cmsBuildTabulatedToneCurve16(cmsContext ContextID, cmsUInt32Number nEntries, const cmsUInt16Number values[]); +CMSAPI cmsToneCurve* CMSEXPORT cmsBuildTabulatedToneCurveFloat(cmsContext ContextID, cmsUInt32Number nEntries, const cmsFloat32Number values[]); +CMSAPI void CMSEXPORT cmsFreeToneCurve(cmsToneCurve* Curve); +CMSAPI void CMSEXPORT cmsFreeToneCurveTriple(cmsToneCurve* Curve[3]); +CMSAPI cmsToneCurve* CMSEXPORT cmsDupToneCurve(const cmsToneCurve* Src); +CMSAPI cmsToneCurve* CMSEXPORT cmsReverseToneCurve(const cmsToneCurve* InGamma); +CMSAPI cmsToneCurve* CMSEXPORT cmsReverseToneCurveEx(cmsUInt32Number nResultSamples, const cmsToneCurve* InGamma); +CMSAPI cmsToneCurve* CMSEXPORT cmsJoinToneCurve(cmsContext ContextID, const cmsToneCurve* X, const cmsToneCurve* Y, cmsUInt32Number nPoints); +CMSAPI cmsBool CMSEXPORT cmsSmoothToneCurve(cmsToneCurve* Tab, cmsFloat64Number lambda); +CMSAPI cmsFloat32Number CMSEXPORT cmsEvalToneCurveFloat(const cmsToneCurve* Curve, cmsFloat32Number v); +CMSAPI cmsUInt16Number CMSEXPORT cmsEvalToneCurve16(const cmsToneCurve* Curve, cmsUInt16Number v); +CMSAPI cmsBool CMSEXPORT cmsIsToneCurveMultisegment(const cmsToneCurve* InGamma); +CMSAPI cmsBool CMSEXPORT cmsIsToneCurveLinear(const cmsToneCurve* Curve); +CMSAPI cmsBool CMSEXPORT cmsIsToneCurveMonotonic(const cmsToneCurve* t); +CMSAPI cmsBool CMSEXPORT cmsIsToneCurveDescending(const cmsToneCurve* t); +CMSAPI cmsInt32Number CMSEXPORT cmsGetToneCurveParametricType(const cmsToneCurve* t); +CMSAPI cmsFloat64Number CMSEXPORT cmsEstimateGamma(const cmsToneCurve* t, cmsFloat64Number Precision); + +CMSAPI const cmsCurveSegment* CMSEXPORT cmsGetToneCurveSegment(cmsInt32Number n, const cmsToneCurve* t); + +// Tone curve tabular estimation +CMSAPI cmsUInt32Number CMSEXPORT cmsGetToneCurveEstimatedTableEntries(const cmsToneCurve* t); +CMSAPI const cmsUInt16Number* CMSEXPORT cmsGetToneCurveEstimatedTable(const cmsToneCurve* t); + + +// Implements pipelines of multi-processing elements ------------------------------------------------------------- + +// Nothing to see here, move along +typedef struct _cmsPipeline_struct cmsPipeline; +typedef struct _cmsStage_struct cmsStage; + +// Those are hi-level pipelines +CMSAPI cmsPipeline* CMSEXPORT cmsPipelineAlloc(cmsContext ContextID, cmsUInt32Number InputChannels, cmsUInt32Number OutputChannels); +CMSAPI void CMSEXPORT cmsPipelineFree(cmsPipeline* lut); +CMSAPI cmsPipeline* CMSEXPORT cmsPipelineDup(const cmsPipeline* Orig); + +CMSAPI cmsContext CMSEXPORT cmsGetPipelineContextID(const cmsPipeline* lut); +CMSAPI cmsUInt32Number CMSEXPORT cmsPipelineInputChannels(const cmsPipeline* lut); +CMSAPI cmsUInt32Number CMSEXPORT cmsPipelineOutputChannels(const cmsPipeline* lut); + +CMSAPI cmsUInt32Number CMSEXPORT cmsPipelineStageCount(const cmsPipeline* lut); +CMSAPI cmsStage* CMSEXPORT cmsPipelineGetPtrToFirstStage(const cmsPipeline* lut); +CMSAPI cmsStage* CMSEXPORT cmsPipelineGetPtrToLastStage(const cmsPipeline* lut); + +CMSAPI void CMSEXPORT cmsPipelineEval16(const cmsUInt16Number In[], cmsUInt16Number Out[], const cmsPipeline* lut); +CMSAPI void CMSEXPORT cmsPipelineEvalFloat(const cmsFloat32Number In[], cmsFloat32Number Out[], const cmsPipeline* lut); +CMSAPI cmsBool CMSEXPORT cmsPipelineEvalReverseFloat(cmsFloat32Number Target[], cmsFloat32Number Result[], cmsFloat32Number Hint[], const cmsPipeline* lut); +CMSAPI cmsBool CMSEXPORT cmsPipelineCat(cmsPipeline* l1, const cmsPipeline* l2); +CMSAPI cmsBool CMSEXPORT cmsPipelineSetSaveAs8bitsFlag(cmsPipeline* lut, cmsBool On); + +// Where to place/locate the stages in the pipeline chain +typedef enum { cmsAT_BEGIN, cmsAT_END } cmsStageLoc; + +CMSAPI cmsBool CMSEXPORT cmsPipelineInsertStage(cmsPipeline* lut, cmsStageLoc loc, cmsStage* mpe); +CMSAPI void CMSEXPORT cmsPipelineUnlinkStage(cmsPipeline* lut, cmsStageLoc loc, cmsStage** mpe); + +// This function is quite useful to analyze the structure of a Pipeline and retrieve the Stage elements +// that conform the Pipeline. It should be called with the Pipeline, the number of expected elements and +// then a list of expected types followed with a list of double pointers to Stage elements. If +// the function founds a match with current pipeline, it fills the pointers and returns TRUE +// if not, returns FALSE without touching anything. +CMSAPI cmsBool CMSEXPORT cmsPipelineCheckAndRetreiveStages(const cmsPipeline* Lut, cmsUInt32Number n, ...); + +// Matrix has double precision and CLUT has only float precision. That is because an ICC profile can encode +// matrices with far more precision that CLUTS +CMSAPI cmsStage* CMSEXPORT cmsStageAllocIdentity(cmsContext ContextID, cmsUInt32Number nChannels); +CMSAPI cmsStage* CMSEXPORT cmsStageAllocToneCurves(cmsContext ContextID, cmsUInt32Number nChannels, cmsToneCurve* const Curves[]); +CMSAPI cmsStage* CMSEXPORT cmsStageAllocMatrix(cmsContext ContextID, cmsUInt32Number Rows, cmsUInt32Number Cols, const cmsFloat64Number* Matrix, const cmsFloat64Number* Offset); + +CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLut16bit(cmsContext ContextID, cmsUInt32Number nGridPoints, cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsUInt16Number* Table); +CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLutFloat(cmsContext ContextID, cmsUInt32Number nGridPoints, cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsFloat32Number* Table); + +CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLut16bitGranular(cmsContext ContextID, const cmsUInt32Number clutPoints[], cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsUInt16Number* Table); +CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLutFloatGranular(cmsContext ContextID, const cmsUInt32Number clutPoints[], cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsFloat32Number* Table); + +CMSAPI cmsStage* CMSEXPORT cmsStageDup(cmsStage* mpe); +CMSAPI void CMSEXPORT cmsStageFree(cmsStage* mpe); +CMSAPI cmsStage* CMSEXPORT cmsStageNext(const cmsStage* mpe); + +CMSAPI cmsUInt32Number CMSEXPORT cmsStageInputChannels(const cmsStage* mpe); +CMSAPI cmsUInt32Number CMSEXPORT cmsStageOutputChannels(const cmsStage* mpe); +CMSAPI cmsStageSignature CMSEXPORT cmsStageType(const cmsStage* mpe); +CMSAPI void* CMSEXPORT cmsStageData(const cmsStage* mpe); +CMSAPI cmsContext CMSEXPORT cmsGetStageContextID(const cmsStage* mpe); + +// Sampling +typedef cmsInt32Number (* cmsSAMPLER16) (CMSREGISTER const cmsUInt16Number In[], + CMSREGISTER cmsUInt16Number Out[], + CMSREGISTER void * Cargo); + +typedef cmsInt32Number (* cmsSAMPLERFLOAT)(CMSREGISTER const cmsFloat32Number In[], + CMSREGISTER cmsFloat32Number Out[], + CMSREGISTER void * Cargo); + +// Use this flag to prevent changes being written to destination +#define SAMPLER_INSPECT 0x01000000 + +// For CLUT only +CMSAPI cmsBool CMSEXPORT cmsStageSampleCLut16bit(cmsStage* mpe, cmsSAMPLER16 Sampler, void* Cargo, cmsUInt32Number dwFlags); +CMSAPI cmsBool CMSEXPORT cmsStageSampleCLutFloat(cmsStage* mpe, cmsSAMPLERFLOAT Sampler, void* Cargo, cmsUInt32Number dwFlags); + +// Slicers +CMSAPI cmsBool CMSEXPORT cmsSliceSpace16(cmsUInt32Number nInputs, const cmsUInt32Number clutPoints[], + cmsSAMPLER16 Sampler, void * Cargo); + +CMSAPI cmsBool CMSEXPORT cmsSliceSpaceFloat(cmsUInt32Number nInputs, const cmsUInt32Number clutPoints[], + cmsSAMPLERFLOAT Sampler, void * Cargo); + +// Multilocalized Unicode management --------------------------------------------------------------------------------------- + +typedef struct _cms_MLU_struct cmsMLU; + +#define cmsNoLanguage "\0\0" +#define cmsNoCountry "\0\0" + +// Special language/country to retrieve unicode field for description in V2 profiles. Use with care. +#define cmsV2Unicode "\xff\xff" + +CMSAPI cmsMLU* CMSEXPORT cmsMLUalloc(cmsContext ContextID, cmsUInt32Number nItems); +CMSAPI void CMSEXPORT cmsMLUfree(cmsMLU* mlu); +CMSAPI cmsMLU* CMSEXPORT cmsMLUdup(const cmsMLU* mlu); + +CMSAPI cmsBool CMSEXPORT cmsMLUsetASCII(cmsMLU* mlu, + const char LanguageCode[3], const char CountryCode[3], + const char* ASCIIString); +CMSAPI cmsBool CMSEXPORT cmsMLUsetWide(cmsMLU* mlu, + const char LanguageCode[3], const char CountryCode[3], + const wchar_t* WideString); +CMSAPI cmsBool CMSEXPORT cmsMLUsetUTF8(cmsMLU* mlu, + const char LanguageCode[3], const char CountryCode[3], + const char* UTF8String); + +CMSAPI cmsUInt32Number CMSEXPORT cmsMLUgetASCII(const cmsMLU* mlu, + const char LanguageCode[3], const char CountryCode[3], + char* Buffer, cmsUInt32Number BufferSize); + +CMSAPI cmsUInt32Number CMSEXPORT cmsMLUgetWide(const cmsMLU* mlu, + const char LanguageCode[3], const char CountryCode[3], + wchar_t* Buffer, cmsUInt32Number BufferSize); +CMSAPI cmsUInt32Number CMSEXPORT cmsMLUgetUTF8(const cmsMLU* mlu, + const char LanguageCode[3], const char CountryCode[3], + char* Buffer, cmsUInt32Number BufferSize); + + +CMSAPI cmsBool CMSEXPORT cmsMLUgetTranslation(const cmsMLU* mlu, + const char LanguageCode[3], const char CountryCode[3], + char ObtainedLanguage[3], char ObtainedCountry[3]); + +CMSAPI cmsUInt32Number CMSEXPORT cmsMLUtranslationsCount(const cmsMLU* mlu); + +CMSAPI cmsBool CMSEXPORT cmsMLUtranslationsCodes(const cmsMLU* mlu, + cmsUInt32Number idx, + char LanguageCode[3], + char CountryCode[3]); + +// Undercolorremoval & black generation ------------------------------------------------------------------------------------- + +typedef struct { + cmsToneCurve* Ucr; + cmsToneCurve* Bg; + cmsMLU* Desc; + +} cmsUcrBg; + +// Screening ---------------------------------------------------------------------------------------------------------------- + +#define cmsPRINTER_DEFAULT_SCREENS 0x0001 +#define cmsFREQUENCE_UNITS_LINES_CM 0x0000 +#define cmsFREQUENCE_UNITS_LINES_INCH 0x0002 + +#define cmsSPOT_UNKNOWN 0 +#define cmsSPOT_PRINTER_DEFAULT 1 +#define cmsSPOT_ROUND 2 +#define cmsSPOT_DIAMOND 3 +#define cmsSPOT_ELLIPSE 4 +#define cmsSPOT_LINE 5 +#define cmsSPOT_SQUARE 6 +#define cmsSPOT_CROSS 7 + +typedef struct { + cmsFloat64Number Frequency; + cmsFloat64Number ScreenAngle; + cmsUInt32Number SpotShape; + +} cmsScreeningChannel; + +typedef struct { + cmsUInt32Number Flag; + cmsUInt32Number nChannels; + cmsScreeningChannel Channels[cmsMAXCHANNELS]; + +} cmsScreening; + + +// Named color ----------------------------------------------------------------------------------------------------------------- + +typedef struct _cms_NAMEDCOLORLIST_struct cmsNAMEDCOLORLIST; + +CMSAPI cmsNAMEDCOLORLIST* CMSEXPORT cmsAllocNamedColorList(cmsContext ContextID, + cmsUInt32Number n, + cmsUInt32Number ColorantCount, + const char* Prefix, const char* Suffix); + +CMSAPI void CMSEXPORT cmsFreeNamedColorList(cmsNAMEDCOLORLIST* v); +CMSAPI cmsNAMEDCOLORLIST* CMSEXPORT cmsDupNamedColorList(const cmsNAMEDCOLORLIST* v); +CMSAPI cmsBool CMSEXPORT cmsAppendNamedColor(cmsNAMEDCOLORLIST* v, const char* Name, + cmsUInt16Number PCS[3], + cmsUInt16Number Colorant[cmsMAXCHANNELS]); + +CMSAPI cmsUInt32Number CMSEXPORT cmsNamedColorCount(const cmsNAMEDCOLORLIST* v); +CMSAPI cmsInt32Number CMSEXPORT cmsNamedColorIndex(const cmsNAMEDCOLORLIST* v, const char* Name); + +CMSAPI cmsBool CMSEXPORT cmsNamedColorInfo(const cmsNAMEDCOLORLIST* NamedColorList, cmsUInt32Number nColor, + char* Name, + char* Prefix, + char* Suffix, + cmsUInt16Number* PCS, + cmsUInt16Number* Colorant); + +// Retrieve named color list from transform +CMSAPI cmsNAMEDCOLORLIST* CMSEXPORT cmsGetNamedColorList(cmsHTRANSFORM xform); + +// Profile sequence ----------------------------------------------------------------------------------------------------- + +// Profile sequence descriptor. Some fields come from profile sequence descriptor tag, others +// come from Profile Sequence Identifier Tag +typedef struct { + + cmsSignature deviceMfg; + cmsSignature deviceModel; + cmsUInt64Number attributes; + cmsTechnologySignature technology; + cmsProfileID ProfileID; + cmsMLU* Manufacturer; + cmsMLU* Model; + cmsMLU* Description; + +} cmsPSEQDESC; + +typedef struct { + + cmsUInt32Number n; + cmsContext ContextID; + cmsPSEQDESC* seq; + +} cmsSEQ; + +CMSAPI cmsSEQ* CMSEXPORT cmsAllocProfileSequenceDescription(cmsContext ContextID, cmsUInt32Number n); +CMSAPI cmsSEQ* CMSEXPORT cmsDupProfileSequenceDescription(const cmsSEQ* pseq); +CMSAPI void CMSEXPORT cmsFreeProfileSequenceDescription(cmsSEQ* pseq); + +// Dictionaries -------------------------------------------------------------------------------------------------------- + +typedef struct _cmsDICTentry_struct { + + struct _cmsDICTentry_struct* Next; + + cmsMLU *DisplayName; + cmsMLU *DisplayValue; + wchar_t* Name; + wchar_t* Value; + +} cmsDICTentry; + +CMSAPI cmsHANDLE CMSEXPORT cmsDictAlloc(cmsContext ContextID); +CMSAPI void CMSEXPORT cmsDictFree(cmsHANDLE hDict); +CMSAPI cmsHANDLE CMSEXPORT cmsDictDup(cmsHANDLE hDict); + +CMSAPI cmsBool CMSEXPORT cmsDictAddEntry(cmsHANDLE hDict, const wchar_t* Name, const wchar_t* Value, const cmsMLU *DisplayName, const cmsMLU *DisplayValue); +CMSAPI const cmsDICTentry* CMSEXPORT cmsDictGetEntryList(cmsHANDLE hDict); +CMSAPI const cmsDICTentry* CMSEXPORT cmsDictNextEntry(const cmsDICTentry* e); + +// Access to Profile data ---------------------------------------------------------------------------------------------- +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateProfilePlaceholder(cmsContext ContextID); + +CMSAPI cmsContext CMSEXPORT cmsGetProfileContextID(cmsHPROFILE hProfile); +CMSAPI cmsInt32Number CMSEXPORT cmsGetTagCount(cmsHPROFILE hProfile); +CMSAPI cmsTagSignature CMSEXPORT cmsGetTagSignature(cmsHPROFILE hProfile, cmsUInt32Number n); +CMSAPI cmsBool CMSEXPORT cmsIsTag(cmsHPROFILE hProfile, cmsTagSignature sig); + +// Read and write pre-formatted data +CMSAPI void* CMSEXPORT cmsReadTag(cmsHPROFILE hProfile, cmsTagSignature sig); +CMSAPI cmsBool CMSEXPORT cmsWriteTag(cmsHPROFILE hProfile, cmsTagSignature sig, const void* data); +CMSAPI cmsBool CMSEXPORT cmsLinkTag(cmsHPROFILE hProfile, cmsTagSignature sig, cmsTagSignature dest); +CMSAPI cmsTagSignature CMSEXPORT cmsTagLinkedTo(cmsHPROFILE hProfile, cmsTagSignature sig); + +// Read and write raw data +CMSAPI cmsUInt32Number CMSEXPORT cmsReadRawTag(cmsHPROFILE hProfile, cmsTagSignature sig, void* Buffer, cmsUInt32Number BufferSize); +CMSAPI cmsBool CMSEXPORT cmsWriteRawTag(cmsHPROFILE hProfile, cmsTagSignature sig, const void* data, cmsUInt32Number Size); + +// Access header data +#define cmsEmbeddedProfileFalse 0x00000000 +#define cmsEmbeddedProfileTrue 0x00000001 +#define cmsUseAnywhere 0x00000000 +#define cmsUseWithEmbeddedDataOnly 0x00000002 + +CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderFlags(cmsHPROFILE hProfile); +CMSAPI void CMSEXPORT cmsGetHeaderAttributes(cmsHPROFILE hProfile, cmsUInt64Number* Flags); +CMSAPI void CMSEXPORT cmsGetHeaderProfileID(cmsHPROFILE hProfile, cmsUInt8Number* ProfileID); +CMSAPI cmsBool CMSEXPORT cmsGetHeaderCreationDateTime(cmsHPROFILE hProfile, struct tm *Dest); +CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderRenderingIntent(cmsHPROFILE hProfile); + +CMSAPI void CMSEXPORT cmsSetHeaderFlags(cmsHPROFILE hProfile, cmsUInt32Number Flags); +CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderManufacturer(cmsHPROFILE hProfile); +CMSAPI void CMSEXPORT cmsSetHeaderManufacturer(cmsHPROFILE hProfile, cmsUInt32Number manufacturer); +CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderCreator(cmsHPROFILE hProfile); +CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderModel(cmsHPROFILE hProfile); +CMSAPI void CMSEXPORT cmsSetHeaderModel(cmsHPROFILE hProfile, cmsUInt32Number model); +CMSAPI void CMSEXPORT cmsSetHeaderAttributes(cmsHPROFILE hProfile, cmsUInt64Number Flags); +CMSAPI void CMSEXPORT cmsSetHeaderProfileID(cmsHPROFILE hProfile, cmsUInt8Number* ProfileID); +CMSAPI void CMSEXPORT cmsSetHeaderRenderingIntent(cmsHPROFILE hProfile, cmsUInt32Number RenderingIntent); + +CMSAPI cmsColorSpaceSignature + CMSEXPORT cmsGetPCS(cmsHPROFILE hProfile); +CMSAPI void CMSEXPORT cmsSetPCS(cmsHPROFILE hProfile, cmsColorSpaceSignature pcs); +CMSAPI cmsColorSpaceSignature + CMSEXPORT cmsGetColorSpace(cmsHPROFILE hProfile); +CMSAPI void CMSEXPORT cmsSetColorSpace(cmsHPROFILE hProfile, cmsColorSpaceSignature sig); +CMSAPI cmsProfileClassSignature + CMSEXPORT cmsGetDeviceClass(cmsHPROFILE hProfile); +CMSAPI void CMSEXPORT cmsSetDeviceClass(cmsHPROFILE hProfile, cmsProfileClassSignature sig); +CMSAPI void CMSEXPORT cmsSetProfileVersion(cmsHPROFILE hProfile, cmsFloat64Number Version); +CMSAPI cmsFloat64Number CMSEXPORT cmsGetProfileVersion(cmsHPROFILE hProfile); + +CMSAPI cmsUInt32Number CMSEXPORT cmsGetEncodedICCversion(cmsHPROFILE hProfile); +CMSAPI void CMSEXPORT cmsSetEncodedICCversion(cmsHPROFILE hProfile, cmsUInt32Number Version); + +// How profiles may be used +#define LCMS_USED_AS_INPUT 0 +#define LCMS_USED_AS_OUTPUT 1 +#define LCMS_USED_AS_PROOF 2 + +CMSAPI cmsBool CMSEXPORT cmsIsIntentSupported(cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number UsedDirection); +CMSAPI cmsBool CMSEXPORT cmsIsMatrixShaper(cmsHPROFILE hProfile); +CMSAPI cmsBool CMSEXPORT cmsIsCLUT(cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number UsedDirection); + +// Translate form/to our notation to ICC +CMSAPI cmsColorSpaceSignature CMSEXPORT _cmsICCcolorSpace(int OurNotation); +CMSAPI int CMSEXPORT _cmsLCMScolorSpace(cmsColorSpaceSignature ProfileSpace); + +// Deprecated, use cmsChannelsOfColorSpace instead +CMSAPI cmsUInt32Number CMSEXPORT cmsChannelsOf(cmsColorSpaceSignature ColorSpace); + +// Get number of channels of color space or -1 if color space is not listed/supported +CMSAPI cmsInt32Number CMSEXPORT cmsChannelsOfColorSpace(cmsColorSpaceSignature ColorSpace); + +// Build a suitable formatter for the colorspace of this profile. nBytes=1 means 8 bits, nBytes=2 means 16 bits. +CMSAPI cmsUInt32Number CMSEXPORT cmsFormatterForColorspaceOfProfile(cmsHPROFILE hProfile, cmsUInt32Number nBytes, cmsBool lIsFloat); +CMSAPI cmsUInt32Number CMSEXPORT cmsFormatterForPCSOfProfile(cmsHPROFILE hProfile, cmsUInt32Number nBytes, cmsBool lIsFloat); + + +// Localized info +typedef enum { + cmsInfoDescription = 0, + cmsInfoManufacturer = 1, + cmsInfoModel = 2, + cmsInfoCopyright = 3 +} cmsInfoType; + +CMSAPI cmsUInt32Number CMSEXPORT cmsGetProfileInfo(cmsHPROFILE hProfile, cmsInfoType Info, + const char LanguageCode[3], const char CountryCode[3], + wchar_t* Buffer, cmsUInt32Number BufferSize); + +CMSAPI cmsUInt32Number CMSEXPORT cmsGetProfileInfoASCII(cmsHPROFILE hProfile, cmsInfoType Info, + const char LanguageCode[3], const char CountryCode[3], + char* Buffer, cmsUInt32Number BufferSize); + +CMSAPI cmsUInt32Number CMSEXPORT cmsGetProfileInfoUTF8(cmsHPROFILE hProfile, cmsInfoType Info, + const char LanguageCode[3], const char CountryCode[3], + char* Buffer, cmsUInt32Number BufferSize); + +// IO handlers ---------------------------------------------------------------------------------------------------------- + +typedef struct _cms_io_handler cmsIOHANDLER; + +CMSAPI cmsIOHANDLER* CMSEXPORT cmsOpenIOhandlerFromFile(cmsContext ContextID, const char* FileName, const char* AccessMode); +CMSAPI cmsIOHANDLER* CMSEXPORT cmsOpenIOhandlerFromStream(cmsContext ContextID, FILE* Stream); +CMSAPI cmsIOHANDLER* CMSEXPORT cmsOpenIOhandlerFromMem(cmsContext ContextID, void *Buffer, cmsUInt32Number size, const char* AccessMode); +CMSAPI cmsIOHANDLER* CMSEXPORT cmsOpenIOhandlerFromNULL(cmsContext ContextID); +CMSAPI cmsIOHANDLER* CMSEXPORT cmsGetProfileIOhandler(cmsHPROFILE hProfile); +CMSAPI cmsBool CMSEXPORT cmsCloseIOhandler(cmsIOHANDLER* io); + +// MD5 message digest -------------------------------------------------------------------------------------------------- + +CMSAPI cmsBool CMSEXPORT cmsMD5computeID(cmsHPROFILE hProfile); + +// Profile high level functions ------------------------------------------------------------------------------------------ + +CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromFile(const char *ICCProfile, const char *sAccess); +CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromFileTHR(cmsContext ContextID, const char *ICCProfile, const char *sAccess); +CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromStream(FILE* ICCProfile, const char* sAccess); +CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromStreamTHR(cmsContext ContextID, FILE* ICCProfile, const char* sAccess); +CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromMem(const void * MemPtr, cmsUInt32Number dwSize); +CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromMemTHR(cmsContext ContextID, const void * MemPtr, cmsUInt32Number dwSize); +CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromIOhandlerTHR(cmsContext ContextID, cmsIOHANDLER* io); +CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromIOhandler2THR(cmsContext ContextID, cmsIOHANDLER* io, cmsBool write); +CMSAPI cmsBool CMSEXPORT cmsCloseProfile(cmsHPROFILE hProfile); + +CMSAPI cmsBool CMSEXPORT cmsSaveProfileToFile(cmsHPROFILE hProfile, const char* FileName); +CMSAPI cmsBool CMSEXPORT cmsSaveProfileToStream(cmsHPROFILE hProfile, FILE* Stream); +CMSAPI cmsBool CMSEXPORT cmsSaveProfileToMem(cmsHPROFILE hProfile, void *MemPtr, cmsUInt32Number* BytesNeeded); +CMSAPI cmsUInt32Number CMSEXPORT cmsSaveProfileToIOhandler(cmsHPROFILE hProfile, cmsIOHANDLER* io); + +// Predefined virtual profiles ------------------------------------------------------------------------------------------ + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateRGBProfileTHR(cmsContext ContextID, + const cmsCIExyY* WhitePoint, + const cmsCIExyYTRIPLE* Primaries, + cmsToneCurve* const TransferFunction[3]); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateRGBProfile(const cmsCIExyY* WhitePoint, + const cmsCIExyYTRIPLE* Primaries, + cmsToneCurve* const TransferFunction[3]); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateGrayProfileTHR(cmsContext ContextID, + const cmsCIExyY* WhitePoint, + const cmsToneCurve* TransferFunction); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateGrayProfile(const cmsCIExyY* WhitePoint, + const cmsToneCurve* TransferFunction); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLinearizationDeviceLinkTHR(cmsContext ContextID, + cmsColorSpaceSignature ColorSpace, + cmsToneCurve* const TransferFunctions[]); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLinearizationDeviceLink(cmsColorSpaceSignature ColorSpace, + cmsToneCurve* const TransferFunctions[]); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateInkLimitingDeviceLinkTHR(cmsContext ContextID, + cmsColorSpaceSignature ColorSpace, cmsFloat64Number Limit); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateInkLimitingDeviceLink(cmsColorSpaceSignature ColorSpace, cmsFloat64Number Limit); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateDeviceLinkFromCubeFile(const char* cFileName); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateDeviceLinkFromCubeFileTHR(cmsContext ContextID, const char* cFileName); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLab2ProfileTHR(cmsContext ContextID, const cmsCIExyY* WhitePoint); +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLab2Profile(const cmsCIExyY* WhitePoint); +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLab4ProfileTHR(cmsContext ContextID, const cmsCIExyY* WhitePoint); +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLab4Profile(const cmsCIExyY* WhitePoint); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateXYZProfileTHR(cmsContext ContextID); +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateXYZProfile(void); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreate_sRGBProfileTHR(cmsContext ContextID); +CMSAPI cmsHPROFILE CMSEXPORT cmsCreate_sRGBProfile(void); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreate_OkLabProfile(cmsContext ctx); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateBCHSWabstractProfileTHR(cmsContext ContextID, + cmsUInt32Number nLUTPoints, + cmsFloat64Number Bright, + cmsFloat64Number Contrast, + cmsFloat64Number Hue, + cmsFloat64Number Saturation, + cmsUInt32Number TempSrc, + cmsUInt32Number TempDest); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateBCHSWabstractProfile(cmsUInt32Number nLUTPoints, + cmsFloat64Number Bright, + cmsFloat64Number Contrast, + cmsFloat64Number Hue, + cmsFloat64Number Saturation, + cmsUInt32Number TempSrc, + cmsUInt32Number TempDest); + +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateNULLProfileTHR(cmsContext ContextID); +CMSAPI cmsHPROFILE CMSEXPORT cmsCreateNULLProfile(void); + +// Converts a transform to a devicelink profile +CMSAPI cmsHPROFILE CMSEXPORT cmsTransform2DeviceLink(cmsHTRANSFORM hTransform, cmsFloat64Number Version, cmsUInt32Number dwFlags); + +// Intents ---------------------------------------------------------------------------------------------- + +// ICC Intents +#define INTENT_PERCEPTUAL 0 +#define INTENT_RELATIVE_COLORIMETRIC 1 +#define INTENT_SATURATION 2 +#define INTENT_ABSOLUTE_COLORIMETRIC 3 + +// Non-ICC intents +#define INTENT_PRESERVE_K_ONLY_PERCEPTUAL 10 +#define INTENT_PRESERVE_K_ONLY_RELATIVE_COLORIMETRIC 11 +#define INTENT_PRESERVE_K_ONLY_SATURATION 12 +#define INTENT_PRESERVE_K_PLANE_PERCEPTUAL 13 +#define INTENT_PRESERVE_K_PLANE_RELATIVE_COLORIMETRIC 14 +#define INTENT_PRESERVE_K_PLANE_SATURATION 15 + +// Call with NULL as parameters to get the intent count +CMSAPI cmsUInt32Number CMSEXPORT cmsGetSupportedIntents(cmsUInt32Number nMax, cmsUInt32Number* Codes, char** Descriptions); +CMSAPI cmsUInt32Number CMSEXPORT cmsGetSupportedIntentsTHR(cmsContext ContextID, cmsUInt32Number nMax, cmsUInt32Number* Codes, char** Descriptions); + +// Flags + +#define cmsFLAGS_NOCACHE 0x0040 // Inhibit 1-pixel cache +#define cmsFLAGS_NOOPTIMIZE 0x0100 // Inhibit optimizations +#define cmsFLAGS_NULLTRANSFORM 0x0200 // Don't transform anyway + +// Proofing flags +#define cmsFLAGS_GAMUTCHECK 0x1000 // Out of Gamut alarm +#define cmsFLAGS_SOFTPROOFING 0x4000 // Do softproofing + +// Misc +#define cmsFLAGS_BLACKPOINTCOMPENSATION 0x2000 +#define cmsFLAGS_NOWHITEONWHITEFIXUP 0x0004 // Don't fix scum dot +#define cmsFLAGS_HIGHRESPRECALC 0x0400 // Use more memory to give better accuracy +#define cmsFLAGS_LOWRESPRECALC 0x0800 // Use less memory to minimize resources + +// For devicelink creation +#define cmsFLAGS_8BITS_DEVICELINK 0x0008 // Create 8 bits devicelinks +#define cmsFLAGS_GUESSDEVICECLASS 0x0020 // Guess device class (for transform2devicelink) +#define cmsFLAGS_KEEP_SEQUENCE 0x0080 // Keep profile sequence for devicelink creation + +// Specific to a particular optimizations +#define cmsFLAGS_FORCE_CLUT 0x0002 // Force CLUT optimization +#define cmsFLAGS_CLUT_POST_LINEARIZATION 0x0001 // create postlinearization tables if possible +#define cmsFLAGS_CLUT_PRE_LINEARIZATION 0x0010 // create prelinearization tables if possible + +// Specific to unbounded mode +#define cmsFLAGS_NONEGATIVES 0x8000 // Prevent negative numbers in floating point transforms + +// Copy alpha channels when transforming +#define cmsFLAGS_COPY_ALPHA 0x04000000 // Alpha channels are copied on cmsDoTransform() + +// Fine-tune control over number of gridpoints +#define cmsFLAGS_GRIDPOINTS(n) (((n) & 0xFF) << 16) + +// CRD special +#define cmsFLAGS_NODEFAULTRESOURCEDEF 0x01000000 + +// Transforms --------------------------------------------------------------------------------------------------- + +CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateTransformTHR(cmsContext ContextID, + cmsHPROFILE Input, + cmsUInt32Number InputFormat, + cmsHPROFILE Output, + cmsUInt32Number OutputFormat, + cmsUInt32Number Intent, + cmsUInt32Number dwFlags); + +CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateTransform(cmsHPROFILE Input, + cmsUInt32Number InputFormat, + cmsHPROFILE Output, + cmsUInt32Number OutputFormat, + cmsUInt32Number Intent, + cmsUInt32Number dwFlags); + +CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateProofingTransformTHR(cmsContext ContextID, + cmsHPROFILE Input, + cmsUInt32Number InputFormat, + cmsHPROFILE Output, + cmsUInt32Number OutputFormat, + cmsHPROFILE Proofing, + cmsUInt32Number Intent, + cmsUInt32Number ProofingIntent, + cmsUInt32Number dwFlags); + +CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateProofingTransform(cmsHPROFILE Input, + cmsUInt32Number InputFormat, + cmsHPROFILE Output, + cmsUInt32Number OutputFormat, + cmsHPROFILE Proofing, + cmsUInt32Number Intent, + cmsUInt32Number ProofingIntent, + cmsUInt32Number dwFlags); + +CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateMultiprofileTransformTHR(cmsContext ContextID, + cmsHPROFILE hProfiles[], + cmsUInt32Number nProfiles, + cmsUInt32Number InputFormat, + cmsUInt32Number OutputFormat, + cmsUInt32Number Intent, + cmsUInt32Number dwFlags); + + +CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateMultiprofileTransform(cmsHPROFILE hProfiles[], + cmsUInt32Number nProfiles, + cmsUInt32Number InputFormat, + cmsUInt32Number OutputFormat, + cmsUInt32Number Intent, + cmsUInt32Number dwFlags); + + +CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateExtendedTransform(cmsContext ContextID, + cmsUInt32Number nProfiles, cmsHPROFILE hProfiles[], + cmsBool BPC[], + cmsUInt32Number Intents[], + cmsFloat64Number AdaptationStates[], + cmsHPROFILE hGamutProfile, + cmsUInt32Number nGamutPCSposition, + cmsUInt32Number InputFormat, + cmsUInt32Number OutputFormat, + cmsUInt32Number dwFlags); + +CMSAPI void CMSEXPORT cmsDeleteTransform(cmsHTRANSFORM hTransform); + +CMSAPI void CMSEXPORT cmsDoTransform(cmsHTRANSFORM Transform, + const void * InputBuffer, + void * OutputBuffer, + cmsUInt32Number Size); + +CMSAPI void CMSEXPORT cmsDoTransformStride(cmsHTRANSFORM Transform, // Deprecated + const void * InputBuffer, + void * OutputBuffer, + cmsUInt32Number Size, + cmsUInt32Number Stride); + +CMSAPI void CMSEXPORT cmsDoTransformLineStride(cmsHTRANSFORM Transform, + const void* InputBuffer, + void* OutputBuffer, + cmsUInt32Number PixelsPerLine, + cmsUInt32Number LineCount, + cmsUInt32Number BytesPerLineIn, + cmsUInt32Number BytesPerLineOut, + cmsUInt32Number BytesPerPlaneIn, + cmsUInt32Number BytesPerPlaneOut); + + +CMSAPI void CMSEXPORT cmsSetAlarmCodes(const cmsUInt16Number NewAlarm[cmsMAXCHANNELS]); +CMSAPI void CMSEXPORT cmsGetAlarmCodes(cmsUInt16Number NewAlarm[cmsMAXCHANNELS]); + + +CMSAPI void CMSEXPORT cmsSetAlarmCodesTHR(cmsContext ContextID, + const cmsUInt16Number AlarmCodes[cmsMAXCHANNELS]); +CMSAPI void CMSEXPORT cmsGetAlarmCodesTHR(cmsContext ContextID, + cmsUInt16Number AlarmCodes[cmsMAXCHANNELS]); + + + +// Adaptation state for absolute colorimetric intent +CMSAPI cmsFloat64Number CMSEXPORT cmsSetAdaptationState(cmsFloat64Number d); +CMSAPI cmsFloat64Number CMSEXPORT cmsSetAdaptationStateTHR(cmsContext ContextID, cmsFloat64Number d); + + + +// Grab the ContextID from an open transform. Returns NULL if a NULL transform is passed +CMSAPI cmsContext CMSEXPORT cmsGetTransformContextID(cmsHTRANSFORM hTransform); + +// Grab the input/output formats +CMSAPI cmsUInt32Number CMSEXPORT cmsGetTransformInputFormat(cmsHTRANSFORM hTransform); +CMSAPI cmsUInt32Number CMSEXPORT cmsGetTransformOutputFormat(cmsHTRANSFORM hTransform); + +// For backwards compatibility +CMSAPI cmsBool CMSEXPORT cmsChangeBuffersFormat(cmsHTRANSFORM hTransform, + cmsUInt32Number InputFormat, + cmsUInt32Number OutputFormat); + + + +// PostScript ColorRenderingDictionary and ColorSpaceArray ---------------------------------------------------- + +typedef enum { cmsPS_RESOURCE_CSA, cmsPS_RESOURCE_CRD } cmsPSResourceType; + +// lcms2 unified method to access postscript color resources +CMSAPI cmsUInt32Number CMSEXPORT cmsGetPostScriptColorResource(cmsContext ContextID, + cmsPSResourceType Type, + cmsHPROFILE hProfile, + cmsUInt32Number Intent, + cmsUInt32Number dwFlags, + cmsIOHANDLER* io); + +CMSAPI cmsUInt32Number CMSEXPORT cmsGetPostScriptCSA(cmsContext ContextID, cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number dwFlags, void* Buffer, cmsUInt32Number dwBufferLen); +CMSAPI cmsUInt32Number CMSEXPORT cmsGetPostScriptCRD(cmsContext ContextID, cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number dwFlags, void* Buffer, cmsUInt32Number dwBufferLen); + + +// IT8.7 / CGATS.17-200x handling ----------------------------------------------------------------------------- + +CMSAPI cmsHANDLE CMSEXPORT cmsIT8Alloc(cmsContext ContextID); +CMSAPI void CMSEXPORT cmsIT8Free(cmsHANDLE hIT8); + +// Tables +CMSAPI cmsUInt32Number CMSEXPORT cmsIT8TableCount(cmsHANDLE hIT8); +CMSAPI cmsInt32Number CMSEXPORT cmsIT8SetTable(cmsHANDLE hIT8, cmsUInt32Number nTable); + +// Persistence +CMSAPI cmsHANDLE CMSEXPORT cmsIT8LoadFromFile(cmsContext ContextID, const char* cFileName); +CMSAPI cmsHANDLE CMSEXPORT cmsIT8LoadFromMem(cmsContext ContextID, const void *Ptr, cmsUInt32Number len); +// CMSAPI cmsHANDLE CMSEXPORT cmsIT8LoadFromIOhandler(cmsContext ContextID, cmsIOHANDLER* io); + +CMSAPI cmsBool CMSEXPORT cmsIT8SaveToFile(cmsHANDLE hIT8, const char* cFileName); +CMSAPI cmsBool CMSEXPORT cmsIT8SaveToMem(cmsHANDLE hIT8, void *MemPtr, cmsUInt32Number* BytesNeeded); + +// Properties +CMSAPI const char* CMSEXPORT cmsIT8GetSheetType(cmsHANDLE hIT8); +CMSAPI cmsBool CMSEXPORT cmsIT8SetSheetType(cmsHANDLE hIT8, const char* Type); + +CMSAPI cmsBool CMSEXPORT cmsIT8SetComment(cmsHANDLE hIT8, const char* cComment); + +CMSAPI cmsBool CMSEXPORT cmsIT8SetPropertyStr(cmsHANDLE hIT8, const char* cProp, const char *Str); +CMSAPI cmsBool CMSEXPORT cmsIT8SetPropertyDbl(cmsHANDLE hIT8, const char* cProp, cmsFloat64Number Val); +CMSAPI cmsBool CMSEXPORT cmsIT8SetPropertyHex(cmsHANDLE hIT8, const char* cProp, cmsUInt32Number Val); +CMSAPI cmsBool CMSEXPORT cmsIT8SetPropertyMulti(cmsHANDLE hIT8, const char* Key, const char* SubKey, const char *Buffer); +CMSAPI cmsBool CMSEXPORT cmsIT8SetPropertyUncooked(cmsHANDLE hIT8, const char* Key, const char* Buffer); + + +CMSAPI const char* CMSEXPORT cmsIT8GetProperty(cmsHANDLE hIT8, const char* cProp); +CMSAPI cmsFloat64Number CMSEXPORT cmsIT8GetPropertyDbl(cmsHANDLE hIT8, const char* cProp); +CMSAPI const char* CMSEXPORT cmsIT8GetPropertyMulti(cmsHANDLE hIT8, const char* Key, const char *SubKey); +CMSAPI cmsUInt32Number CMSEXPORT cmsIT8EnumProperties(cmsHANDLE hIT8, char ***PropertyNames); +CMSAPI cmsUInt32Number CMSEXPORT cmsIT8EnumPropertyMulti(cmsHANDLE hIT8, const char* cProp, const char ***SubpropertyNames); + +// Datasets +CMSAPI const char* CMSEXPORT cmsIT8GetDataRowCol(cmsHANDLE hIT8, int row, int col); +CMSAPI cmsFloat64Number CMSEXPORT cmsIT8GetDataRowColDbl(cmsHANDLE hIT8, int row, int col); + +CMSAPI cmsBool CMSEXPORT cmsIT8SetDataRowCol(cmsHANDLE hIT8, int row, int col, + const char* Val); + +CMSAPI cmsBool CMSEXPORT cmsIT8SetDataRowColDbl(cmsHANDLE hIT8, int row, int col, + cmsFloat64Number Val); + +CMSAPI const char* CMSEXPORT cmsIT8GetData(cmsHANDLE hIT8, const char* cPatch, const char* cSample); + + +CMSAPI cmsFloat64Number CMSEXPORT cmsIT8GetDataDbl(cmsHANDLE hIT8, const char* cPatch, const char* cSample); + +CMSAPI cmsBool CMSEXPORT cmsIT8SetData(cmsHANDLE hIT8, const char* cPatch, + const char* cSample, + const char *Val); + +CMSAPI cmsBool CMSEXPORT cmsIT8SetDataDbl(cmsHANDLE hIT8, const char* cPatch, + const char* cSample, + cmsFloat64Number Val); + +CMSAPI int CMSEXPORT cmsIT8FindDataFormat(cmsHANDLE hIT8, const char* cSample); +CMSAPI cmsBool CMSEXPORT cmsIT8SetDataFormat(cmsHANDLE hIT8, int n, const char *Sample); +CMSAPI int CMSEXPORT cmsIT8EnumDataFormat(cmsHANDLE hIT8, char ***SampleNames); + +CMSAPI const char* CMSEXPORT cmsIT8GetPatchName(cmsHANDLE hIT8, int nPatch, char* buffer); +CMSAPI int CMSEXPORT cmsIT8GetPatchByName(cmsHANDLE hIT8, const char *cPatch); + +// The LABEL extension +CMSAPI int CMSEXPORT cmsIT8SetTableByLabel(cmsHANDLE hIT8, const char* cSet, const char* cField, const char* ExpectedType); + +CMSAPI cmsBool CMSEXPORT cmsIT8SetIndexColumn(cmsHANDLE hIT8, const char* cSample); + +// Formatter for double +CMSAPI void CMSEXPORT cmsIT8DefineDblFormat(cmsHANDLE hIT8, const char* Formatter); + +// Gamut boundary description routines ------------------------------------------------------------------------------ + +CMSAPI cmsHANDLE CMSEXPORT cmsGBDAlloc(cmsContext ContextID); +CMSAPI void CMSEXPORT cmsGBDFree(cmsHANDLE hGBD); +CMSAPI cmsBool CMSEXPORT cmsGDBAddPoint(cmsHANDLE hGBD, const cmsCIELab* Lab); +CMSAPI cmsBool CMSEXPORT cmsGDBCompute(cmsHANDLE hGDB, cmsUInt32Number dwFlags); +CMSAPI cmsBool CMSEXPORT cmsGDBCheckPoint(cmsHANDLE hGBD, const cmsCIELab* Lab); + +// Feature detection ---------------------------------------------------------------------------------------------- + +// Estimate the black point +CMSAPI cmsBool CMSEXPORT cmsDetectBlackPoint(cmsCIEXYZ* BlackPoint, cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number dwFlags); +CMSAPI cmsBool CMSEXPORT cmsDetectDestinationBlackPoint(cmsCIEXYZ* BlackPoint, cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number dwFlags); + +// Estimate total area coverage +CMSAPI cmsFloat64Number CMSEXPORT cmsDetectTAC(cmsHPROFILE hProfile); + +// Estimate gamma space, always positive. Returns -1 on error. +CMSAPI cmsFloat64Number CMSEXPORT cmsDetectRGBProfileGamma(cmsHPROFILE hProfile, cmsFloat64Number threshold); + +// Poor man's gamut mapping +CMSAPI cmsBool CMSEXPORT cmsDesaturateLab(cmsCIELab* Lab, + double amax, double amin, + double bmax, double bmin); + +#ifndef CMS_USE_CPP_API +# ifdef __cplusplus + } +# endif +#endif + +#define _lcms2_H +#endif diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/include/lcms2_plugin.h b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/include/lcms2_plugin.h new file mode 100644 index 0000000000000000000000000000000000000000..fc9b11f02de290956b1ef584f3424a15ed4c4e7c --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/include/lcms2_plugin.h @@ -0,0 +1,700 @@ +//--------------------------------------------------------------------------------- +// +// Little Color Management System +// Copyright (c) 1998-2026 Marti Maria Saguer +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the "Software"), +// to deal in the Software without restriction, including without limitation +// the rights to use, copy, modify, merge, publish, distribute, sublicense, +// and/or sell copies of the Software, and to permit persons to whom the Software +// is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//--------------------------------------------------------------------------------- +// +// This is the plug-in header file. Normal LittleCMS clients should not use it. +// It is provided for plug-in writers that may want to access the support +// functions to do low level operations. All plug-in related structures +// are defined here. Including this file forces to include the standard API too. + +#ifndef _lcms_plugin_H + +// Deal with Microsoft's attempt at deprecating C standard runtime functions +#ifdef _MSC_VER +# if (_MSC_VER >= 1400) +# ifndef _CRT_SECURE_NO_DEPRECATE +# define _CRT_SECURE_NO_DEPRECATE +# endif +# ifndef _CRT_SECURE_NO_WARNINGS +# define _CRT_SECURE_NO_WARNINGS +# endif +# endif +#endif + +#ifndef _lcms2_H +#include "lcms2.h" +#endif + +// We need some standard C functions. +#include +#include +#include +#include +#include + + +#ifndef CMS_USE_CPP_API +# ifdef __cplusplus +extern "C" { +# endif +#endif + +// Vector & Matrix operations ----------------------------------------------------------------------- + +// Axis of the matrix/array. No specific meaning at all. +#define VX 0 +#define VY 1 +#define VZ 2 + +// Vectors +typedef struct { + cmsFloat64Number n[3]; + + } cmsVEC3; + +// 3x3 Matrix +typedef struct { + cmsVEC3 v[3]; + + } cmsMAT3; + +CMSAPI void CMSEXPORT _cmsVEC3init(cmsVEC3* r, cmsFloat64Number x, cmsFloat64Number y, cmsFloat64Number z); +CMSAPI void CMSEXPORT _cmsVEC3minus(cmsVEC3* r, const cmsVEC3* a, const cmsVEC3* b); +CMSAPI void CMSEXPORT _cmsVEC3cross(cmsVEC3* r, const cmsVEC3* u, const cmsVEC3* v); +CMSAPI cmsFloat64Number CMSEXPORT _cmsVEC3dot(const cmsVEC3* u, const cmsVEC3* v); +CMSAPI cmsFloat64Number CMSEXPORT _cmsVEC3length(const cmsVEC3* a); +CMSAPI cmsFloat64Number CMSEXPORT _cmsVEC3distance(const cmsVEC3* a, const cmsVEC3* b); + +CMSAPI void CMSEXPORT _cmsMAT3identity(cmsMAT3* a); +CMSAPI cmsBool CMSEXPORT _cmsMAT3isIdentity(const cmsMAT3* a); +CMSAPI void CMSEXPORT _cmsMAT3per(cmsMAT3* r, const cmsMAT3* a, const cmsMAT3* b); +CMSAPI cmsBool CMSEXPORT _cmsMAT3inverse(const cmsMAT3* a, cmsMAT3* b); +CMSAPI cmsBool CMSEXPORT _cmsMAT3solve(cmsVEC3* x, cmsMAT3* a, cmsVEC3* b); +CMSAPI void CMSEXPORT _cmsMAT3eval(cmsVEC3* r, const cmsMAT3* a, const cmsVEC3* v); + + +// MD5 low level ------------------------------------------------------------------------------------- + +CMSAPI cmsHANDLE CMSEXPORT cmsMD5alloc(cmsContext ContextID); +CMSAPI void CMSEXPORT cmsMD5add(cmsHANDLE Handle, const cmsUInt8Number* buf, cmsUInt32Number len); +CMSAPI void CMSEXPORT cmsMD5finish(cmsProfileID* ProfileID, cmsHANDLE Handle); + +// Error logging ------------------------------------------------------------------------------------- + +CMSAPI void CMSEXPORT cmsSignalError(cmsContext ContextID, cmsUInt32Number ErrorCode, const char *ErrorText, ...); + +// Memory management ---------------------------------------------------------------------------------- + +CMSAPI void* CMSEXPORT _cmsMalloc(cmsContext ContextID, cmsUInt32Number size); +CMSAPI void* CMSEXPORT _cmsMallocZero(cmsContext ContextID, cmsUInt32Number size); +CMSAPI void* CMSEXPORT _cmsCalloc(cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size); +CMSAPI void* CMSEXPORT _cmsRealloc(cmsContext ContextID, void* Ptr, cmsUInt32Number NewSize); +CMSAPI void CMSEXPORT _cmsFree(cmsContext ContextID, void* Ptr); +CMSAPI void* CMSEXPORT _cmsDupMem(cmsContext ContextID, const void* Org, cmsUInt32Number size); + +// I/O handler ---------------------------------------------------------------------------------- + +struct _cms_io_handler { + + void* stream; // Associated stream, which is implemented differently depending on media. + + cmsContext ContextID; + cmsUInt32Number UsedSpace; + cmsUInt32Number ReportedSize; + char PhysicalFile[cmsMAX_PATH]; + + cmsUInt32Number (* Read)(struct _cms_io_handler* iohandler, void *Buffer, + cmsUInt32Number size, + cmsUInt32Number count); + cmsBool (* Seek)(struct _cms_io_handler* iohandler, cmsUInt32Number offset); + cmsBool (* Close)(struct _cms_io_handler* iohandler); + cmsUInt32Number (* Tell)(struct _cms_io_handler* iohandler); + cmsBool (* Write)(struct _cms_io_handler* iohandler, cmsUInt32Number size, + const void* Buffer); +}; + +// Endianness adjust functions +CMSAPI cmsUInt16Number CMSEXPORT _cmsAdjustEndianess16(cmsUInt16Number Word); +CMSAPI cmsUInt32Number CMSEXPORT _cmsAdjustEndianess32(cmsUInt32Number Value); +CMSAPI void CMSEXPORT _cmsAdjustEndianess64(cmsUInt64Number* Result, cmsUInt64Number* QWord); + +// Helper IO functions +CMSAPI cmsBool CMSEXPORT _cmsReadUInt8Number(cmsIOHANDLER* io, cmsUInt8Number* n); +CMSAPI cmsBool CMSEXPORT _cmsReadUInt16Number(cmsIOHANDLER* io, cmsUInt16Number* n); +CMSAPI cmsBool CMSEXPORT _cmsReadUInt32Number(cmsIOHANDLER* io, cmsUInt32Number* n); +CMSAPI cmsBool CMSEXPORT _cmsReadFloat32Number(cmsIOHANDLER* io, cmsFloat32Number* n); +CMSAPI cmsBool CMSEXPORT _cmsReadUInt64Number(cmsIOHANDLER* io, cmsUInt64Number* n); +CMSAPI cmsBool CMSEXPORT _cmsRead15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number* n); +CMSAPI cmsBool CMSEXPORT _cmsReadXYZNumber(cmsIOHANDLER* io, cmsCIEXYZ* XYZ); +CMSAPI cmsBool CMSEXPORT _cmsReadUInt16Array(cmsIOHANDLER* io, cmsUInt32Number n, cmsUInt16Number* Array); + +CMSAPI cmsBool CMSEXPORT _cmsWriteUInt8Number(cmsIOHANDLER* io, cmsUInt8Number n); +CMSAPI cmsBool CMSEXPORT _cmsWriteUInt16Number(cmsIOHANDLER* io, cmsUInt16Number n); +CMSAPI cmsBool CMSEXPORT _cmsWriteUInt32Number(cmsIOHANDLER* io, cmsUInt32Number n); +CMSAPI cmsBool CMSEXPORT _cmsWriteFloat32Number(cmsIOHANDLER* io, cmsFloat32Number n); +CMSAPI cmsBool CMSEXPORT _cmsWriteUInt64Number(cmsIOHANDLER* io, cmsUInt64Number* n); +CMSAPI cmsBool CMSEXPORT _cmsWrite15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number n); +CMSAPI cmsBool CMSEXPORT _cmsWriteXYZNumber(cmsIOHANDLER* io, const cmsCIEXYZ* XYZ); +CMSAPI cmsBool CMSEXPORT _cmsWriteUInt16Array(cmsIOHANDLER* io, cmsUInt32Number n, const cmsUInt16Number* Array); + +// ICC base tag +typedef struct { + cmsTagTypeSignature sig; + cmsInt8Number reserved[4]; + +} _cmsTagBase; + +// Type base helper functions +CMSAPI cmsTagTypeSignature CMSEXPORT _cmsReadTypeBase(cmsIOHANDLER* io); +CMSAPI cmsBool CMSEXPORT _cmsWriteTypeBase(cmsIOHANDLER* io, cmsTagTypeSignature sig); + +// Alignment functions +CMSAPI cmsBool CMSEXPORT _cmsReadAlignment(cmsIOHANDLER* io); +CMSAPI cmsBool CMSEXPORT _cmsWriteAlignment(cmsIOHANDLER* io); + +// To deal with text streams. 2K at most +CMSAPI cmsBool CMSEXPORT _cmsIOPrintf(cmsIOHANDLER* io, const char* frm, ...); + +// Fixed point helper functions +CMSAPI cmsFloat64Number CMSEXPORT _cms8Fixed8toDouble(cmsUInt16Number fixed8); +CMSAPI cmsUInt16Number CMSEXPORT _cmsDoubleTo8Fixed8(cmsFloat64Number val); + +CMSAPI cmsFloat64Number CMSEXPORT _cms15Fixed16toDouble(cmsS15Fixed16Number fix32); +CMSAPI cmsS15Fixed16Number CMSEXPORT _cmsDoubleTo15Fixed16(cmsFloat64Number v); + +// Date/time helper functions +CMSAPI void CMSEXPORT _cmsEncodeDateTimeNumber(cmsDateTimeNumber *Dest, const struct tm *Source); +CMSAPI void CMSEXPORT _cmsDecodeDateTimeNumber(const cmsDateTimeNumber *Source, struct tm *Dest); + +//---------------------------------------------------------------------------------------------------------- + +// Shared callbacks for user data +typedef void (* _cmsFreeUserDataFn)(cmsContext ContextID, void* Data); +typedef void* (* _cmsDupUserDataFn)(cmsContext ContextID, const void* Data); + +//---------------------------------------------------------------------------------------------------------- + +// Plug-in foundation +#define cmsPluginMagicNumber 0x61637070 // 'acpp' + +#define cmsPluginMemHandlerSig 0x6D656D48 // 'memH' +#define cmsPluginInterpolationSig 0x696E7048 // 'inpH' +#define cmsPluginParametricCurveSig 0x70617248 // 'parH' +#define cmsPluginFormattersSig 0x66726D48 // 'frmH +#define cmsPluginTagTypeSig 0x74797048 // 'typH' +#define cmsPluginTagSig 0x74616748 // 'tagH' +#define cmsPluginRenderingIntentSig 0x696E7448 // 'intH' +#define cmsPluginMultiProcessElementSig 0x6D706548 // 'mpeH' +#define cmsPluginOptimizationSig 0x6F707448 // 'optH' +#define cmsPluginTransformSig 0x7A666D48 // 'xfmH' +#define cmsPluginMutexSig 0x6D747A48 // 'mtxH' +#define cmsPluginParalellizationSig 0x70726C48 // 'prlH + +typedef struct _cmsPluginBaseStruct { + + cmsUInt32Number Magic; // 'acpp' signature + cmsUInt32Number ExpectedVersion; // Expected version of LittleCMS + cmsUInt32Number Type; // Type of plug-in + struct _cmsPluginBaseStruct* Next; // For multiple plugin definition. NULL for end of list. + +} cmsPluginBase; + +// Maximum number of types in a plugin array +#define MAX_TYPES_IN_LCMS_PLUGIN 20 + +//---------------------------------------------------------------------------------------------------------- + +// Memory handler. Each new plug-in type replaces current behaviour + +typedef void* (* _cmsMallocFnPtrType)(cmsContext ContextID, cmsUInt32Number size); +typedef void (* _cmsFreeFnPtrType)(cmsContext ContextID, void *Ptr); +typedef void* (* _cmsReallocFnPtrType)(cmsContext ContextID, void* Ptr, cmsUInt32Number NewSize); + +typedef void* (* _cmsMalloZerocFnPtrType)(cmsContext ContextID, cmsUInt32Number size); +typedef void* (* _cmsCallocFnPtrType)(cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size); +typedef void* (* _cmsDupFnPtrType)(cmsContext ContextID, const void* Org, cmsUInt32Number size); + +typedef struct { + + cmsPluginBase base; + + // Required + _cmsMallocFnPtrType MallocPtr; + _cmsFreeFnPtrType FreePtr; + _cmsReallocFnPtrType ReallocPtr; + + // Optional + _cmsMalloZerocFnPtrType MallocZeroPtr; + _cmsCallocFnPtrType CallocPtr; + _cmsDupFnPtrType DupPtr; + +} cmsPluginMemHandler; + + +// ------------------------------------------------------------------------------------------------------------------ + +// Interpolation. 16 bits and floating point versions. +struct _cms_interp_struc; + +// Interpolation callbacks + +// 16 bits forward interpolation. This function performs precision-limited linear interpolation +// and is supposed to be quite fast. Implementation may be tetrahedral or trilinear, and plug-ins may +// choose to implement any other interpolation algorithm. +typedef void (* _cmsInterpFn16)(CMSREGISTER const cmsUInt16Number Input[], + CMSREGISTER cmsUInt16Number Output[], + CMSREGISTER const struct _cms_interp_struc* p); + +// Floating point forward interpolation. Full precision interpolation using floats. This is not a +// time critical function. Implementation may be tetrahedral or trilinear, and plug-ins may +// choose to implement any other interpolation algorithm. +typedef void (* _cmsInterpFnFloat)(cmsFloat32Number const Input[], + cmsFloat32Number Output[], + const struct _cms_interp_struc* p); + + + +// This type holds a pointer to an interpolator that can be either 16 bits or float +typedef union { + _cmsInterpFn16 Lerp16; // Forward interpolation in 16 bits + _cmsInterpFnFloat LerpFloat; // Forward interpolation in floating point +} cmsInterpFunction; + +// Flags for interpolator selection +#define CMS_LERP_FLAGS_16BITS 0x0000 // The default +#define CMS_LERP_FLAGS_FLOAT 0x0001 // Requires different implementation +#define CMS_LERP_FLAGS_TRILINEAR 0x0100 // Hint only + + +#define MAX_INPUT_DIMENSIONS 15 + +typedef struct _cms_interp_struc { // Used on all interpolations. Supplied by lcms2 when calling the interpolation function + + cmsContext ContextID; // The calling thread + + cmsUInt32Number dwFlags; // Keep original flags + cmsUInt32Number nInputs; // != 1 only in 3D interpolation + cmsUInt32Number nOutputs; // != 1 only in 3D interpolation + + cmsUInt32Number nSamples[MAX_INPUT_DIMENSIONS]; // Valid on all kinds of tables + cmsUInt32Number Domain[MAX_INPUT_DIMENSIONS]; // Domain = nSamples - 1 + + cmsUInt32Number opta[MAX_INPUT_DIMENSIONS]; // Optimization for 3D CLUT. This is the number of nodes premultiplied for each + // dimension. For example, in 7 nodes, 7, 7^2 , 7^3, 7^4, etc. On non-regular + // Samplings may vary according of the number of nodes for each dimension. + + const void *Table; // Points to the actual interpolation table + cmsInterpFunction Interpolation; // Points to the function to do the interpolation + + } cmsInterpParams; + +// Interpolators factory +typedef cmsInterpFunction (* cmsInterpFnFactory)(cmsUInt32Number nInputChannels, cmsUInt32Number nOutputChannels, cmsUInt32Number dwFlags); + +// The plug-in +typedef struct { + cmsPluginBase base; + + // Points to a user-supplied function which implements the factory + cmsInterpFnFactory InterpolatorsFactory; + +} cmsPluginInterpolation; + +//---------------------------------------------------------------------------------------------------------- + +// Parametric curves. A negative type means same function but analytically inverted. Max. number of params is 10 + +// Evaluator callback for user-supplied parametric curves. May implement more than one type +typedef cmsFloat64Number (* cmsParametricCurveEvaluator)(cmsInt32Number Type, const cmsFloat64Number Params[10], cmsFloat64Number R); + +// Plug-in may implement an arbitrary number of parametric curves +typedef struct { + cmsPluginBase base; + + cmsUInt32Number nFunctions; // Number of supported functions + cmsUInt32Number FunctionTypes[MAX_TYPES_IN_LCMS_PLUGIN]; // The identification types + cmsUInt32Number ParameterCount[MAX_TYPES_IN_LCMS_PLUGIN]; // Number of parameters for each function + + cmsParametricCurveEvaluator Evaluator; // The evaluator + +} cmsPluginParametricCurves; +//---------------------------------------------------------------------------------------------------------- + +// Formatters. This plug-in adds new handlers, replacing them if they already exist. Formatters dealing with +// cmsFloat32Number (bps = 4) or double (bps = 0) types are requested via FormatterFloat callback. Others come across +// Formatter16 callback + +struct _cmstransform_struct; + +typedef cmsUInt8Number* (* cmsFormatter16)(CMSREGISTER struct _cmstransform_struct* CMMcargo, + CMSREGISTER cmsUInt16Number Values[], + CMSREGISTER cmsUInt8Number* Buffer, + CMSREGISTER cmsUInt32Number Stride); + +typedef cmsUInt8Number* (* cmsFormatterFloat)(struct _cmstransform_struct* CMMcargo, + cmsFloat32Number Values[], + cmsUInt8Number* Buffer, + cmsUInt32Number Stride); + +// This type holds a pointer to a formatter that can be either 16 bits or cmsFloat32Number +typedef union { + cmsFormatter16 Fmt16; + cmsFormatterFloat FmtFloat; + +} cmsFormatter; + +#define CMS_PACK_FLAGS_16BITS 0x0000 +#define CMS_PACK_FLAGS_FLOAT 0x0001 + +typedef enum { cmsFormatterInput=0, cmsFormatterOutput=1 } cmsFormatterDirection; + +typedef cmsFormatter (* cmsFormatterFactory)(cmsUInt32Number Type, // Specific type, i.e. TYPE_RGB_8 + cmsFormatterDirection Dir, + cmsUInt32Number dwFlags); // precision + +// Plug-in may implement an arbitrary number of formatters +typedef struct { + cmsPluginBase base; + cmsFormatterFactory FormattersFactory; + +} cmsPluginFormatters; + +//---------------------------------------------------------------------------------------------------------- + +// Tag type handler. Each type is free to return anything it wants, and it is up to the caller to +// know in advance what is the type contained in the tag. +typedef struct _cms_typehandler_struct { + + cmsTagTypeSignature Signature; // The signature of the type + + // Allocates and reads items + void * (* ReadPtr)(struct _cms_typehandler_struct* self, + cmsIOHANDLER* io, + cmsUInt32Number* nItems, + cmsUInt32Number SizeOfTag); + + // Writes n Items + cmsBool (* WritePtr)(struct _cms_typehandler_struct* self, + cmsIOHANDLER* io, + void* Ptr, + cmsUInt32Number nItems); + + // Duplicate an item or array of items + void* (* DupPtr)(struct _cms_typehandler_struct* self, + const void *Ptr, + cmsUInt32Number n); + + // Free all resources + void (* FreePtr)(struct _cms_typehandler_struct* self, + void *Ptr); + + // Additional parameters used by the calling thread + cmsContext ContextID; + cmsUInt32Number ICCVersion; + +} cmsTagTypeHandler; + +// Each plug-in implements a single type +typedef struct { + cmsPluginBase base; + cmsTagTypeHandler Handler; + +} cmsPluginTagType; + +//---------------------------------------------------------------------------------------------------------- + +// This is the tag plugin, which identifies tags. For writing, a pointer to function is provided. +// This function should return the desired type for this tag, given the version of profile +// and the data being serialized. +typedef struct { + + cmsUInt32Number ElemCount; // If this tag needs an array, how many elements should keep + + // For reading. + cmsUInt32Number nSupportedTypes; // In how many types this tag can come (MAX_TYPES_IN_LCMS_PLUGIN maximum) + cmsTagTypeSignature SupportedTypes[MAX_TYPES_IN_LCMS_PLUGIN]; + + // For writing + cmsTagTypeSignature (* DecideType)(cmsFloat64Number ICCVersion, const void *Data); + +} cmsTagDescriptor; + +// Plug-in implements a single tag +typedef struct { + cmsPluginBase base; + + cmsTagSignature Signature; + cmsTagDescriptor Descriptor; + +} cmsPluginTag; + +//---------------------------------------------------------------------------------------------------------- + +// Custom intents. This function should join all profiles specified in the array in +// a single LUT. Any custom intent in the chain redirects to custom function. If more than +// one custom intent is found, the one located first is invoked. Usually users should use only one +// custom intent, so mixing custom intents in same multiprofile transform is not supported. + +typedef cmsPipeline* (* cmsIntentFn)( cmsContext ContextID, + cmsUInt32Number nProfiles, + cmsUInt32Number Intents[], + cmsHPROFILE hProfiles[], + cmsBool BPC[], + cmsFloat64Number AdaptationStates[], + cmsUInt32Number dwFlags); + + +// Each plug-in defines a single intent number. +typedef struct { + cmsPluginBase base; + cmsUInt32Number Intent; + cmsIntentFn Link; + char Description[256]; + +} cmsPluginRenderingIntent; + + +// The default ICC intents (perceptual, saturation, rel.col and abs.col) +CMSAPI cmsPipeline* CMSEXPORT _cmsDefaultICCintents(cmsContext ContextID, + cmsUInt32Number nProfiles, + cmsUInt32Number Intents[], + cmsHPROFILE hProfiles[], + cmsBool BPC[], + cmsFloat64Number AdaptationStates[], + cmsUInt32Number dwFlags); + + +//---------------------------------------------------------------------------------------------------------- + +// Pipelines, Multi Process Elements. + +typedef void (* _cmsStageEvalFn) (const cmsFloat32Number In[], cmsFloat32Number Out[], const cmsStage* mpe); +typedef void*(* _cmsStageDupElemFn) (cmsStage* mpe); +typedef void (* _cmsStageFreeElemFn) (cmsStage* mpe); + + +// This function allocates a generic MPE +CMSAPI cmsStage* CMSEXPORT _cmsStageAllocPlaceholder(cmsContext ContextID, + cmsStageSignature Type, + cmsUInt32Number InputChannels, + cmsUInt32Number OutputChannels, + _cmsStageEvalFn EvalPtr, // Points to fn that evaluates the element (always in floating point) + _cmsStageDupElemFn DupElemPtr, // Points to a fn that duplicates the stage + _cmsStageFreeElemFn FreePtr, // Points to a fn that sets the element free + void* Data); // A generic pointer to whatever memory needed by the element +typedef struct { + cmsPluginBase base; + cmsTagTypeHandler Handler; + +} cmsPluginMultiProcessElement; + + +// Data kept in "Element" member of cmsStage + +// Curves +typedef struct { + cmsUInt32Number nCurves; + cmsToneCurve** TheCurves; + +} _cmsStageToneCurvesData; + +// Matrix +typedef struct { + cmsFloat64Number* Double; // floating point for the matrix + cmsFloat64Number* Offset; // The offset + +} _cmsStageMatrixData; + +// CLUT +typedef struct { + + union { // Can have only one of both representations at same time + cmsUInt16Number* T; // Points to the table 16 bits table + cmsFloat32Number* TFloat; // Points to the cmsFloat32Number table + + } Tab; + + cmsInterpParams* Params; + cmsUInt32Number nEntries; + cmsBool HasFloatValues; + +} _cmsStageCLutData; + + +//---------------------------------------------------------------------------------------------------------- +// Optimization. Using this plug-in, additional optimization strategies may be implemented. +// The function should return TRUE if any optimization is done on the LUT, this terminates +// the optimization search. Or FALSE if it is unable to optimize and want to give a chance +// to the rest of optimizers. + +typedef cmsBool (* _cmsOPToptimizeFn)(cmsPipeline** Lut, + cmsUInt32Number Intent, + cmsUInt32Number* InputFormat, + cmsUInt32Number* OutputFormat, + cmsUInt32Number* dwFlags); + +// Pipeline Evaluator (in 16 bits) +typedef void (* _cmsPipelineEval16Fn)(CMSREGISTER const cmsUInt16Number In[], + CMSREGISTER cmsUInt16Number Out[], + const void* Data); + +// Pipeline Evaluator (in floating point) +typedef void (* _cmsPipelineEvalFloatFn)(const cmsFloat32Number In[], + cmsFloat32Number Out[], + const void* Data); + + +// This function may be used to set the optional evaluator and a block of private data. If private data is being used, an optional +// duplicator and free functions should also be specified in order to duplicate the LUT construct. Use NULL to inhibit such functionality. + +CMSAPI void CMSEXPORT _cmsPipelineSetOptimizationParameters(cmsPipeline* Lut, + _cmsPipelineEval16Fn Eval16, + void* PrivateData, + _cmsFreeUserDataFn FreePrivateDataFn, + _cmsDupUserDataFn DupPrivateDataFn); + +typedef struct { + cmsPluginBase base; + + // Optimize entry point + _cmsOPToptimizeFn OptimizePtr; + +} cmsPluginOptimization; + +//---------------------------------------------------------------------------------------------------------- +// Full xform + +typedef struct { + cmsUInt32Number BytesPerLineIn; + cmsUInt32Number BytesPerLineOut; + cmsUInt32Number BytesPerPlaneIn; + cmsUInt32Number BytesPerPlaneOut; + +} cmsStride; + +typedef void (* _cmsTransformFn)(struct _cmstransform_struct *CMMcargo, // Legacy function, handles just ONE scanline. + const void* InputBuffer, + void* OutputBuffer, + cmsUInt32Number Size, + cmsUInt32Number Stride); // Stride in bytes to the next plane in planar formats + + +typedef void (*_cmsTransform2Fn)(struct _cmstransform_struct *CMMcargo, + const void* InputBuffer, + void* OutputBuffer, + cmsUInt32Number PixelsPerLine, + cmsUInt32Number LineCount, + const cmsStride* Stride); + +typedef cmsBool (* _cmsTransformFactory)(_cmsTransformFn* xform, + void** UserData, + _cmsFreeUserDataFn* FreePrivateDataFn, + cmsPipeline** Lut, + cmsUInt32Number* InputFormat, + cmsUInt32Number* OutputFormat, + cmsUInt32Number* dwFlags); + +typedef cmsBool (* _cmsTransform2Factory)(_cmsTransform2Fn* xform, + void** UserData, + _cmsFreeUserDataFn* FreePrivateDataFn, + cmsPipeline** Lut, + cmsUInt32Number* InputFormat, + cmsUInt32Number* OutputFormat, + cmsUInt32Number* dwFlags); + + +// Retrieve user data as specified by the factory +CMSAPI void CMSEXPORT _cmsSetTransformUserData(struct _cmstransform_struct *CMMcargo, void* ptr, _cmsFreeUserDataFn FreePrivateDataFn); +CMSAPI void * CMSEXPORT _cmsGetTransformUserData(struct _cmstransform_struct *CMMcargo); + + +// Retrieve formatters +CMSAPI void CMSEXPORT _cmsGetTransformFormatters16 (struct _cmstransform_struct *CMMcargo, cmsFormatter16* FromInput, cmsFormatter16* ToOutput); +CMSAPI void CMSEXPORT _cmsGetTransformFormattersFloat(struct _cmstransform_struct *CMMcargo, cmsFormatterFloat* FromInput, cmsFormatterFloat* ToOutput); + +// Retrieve original flags +CMSAPI cmsUInt32Number CMSEXPORT _cmsGetTransformFlags(struct _cmstransform_struct* CMMcargo); + +typedef struct { + cmsPluginBase base; + + // Transform entry point + union { + _cmsTransformFactory legacy_xform; + _cmsTransform2Factory xform; + } factories; + +} cmsPluginTransform; + +//---------------------------------------------------------------------------------------------------------- +// Mutex + +typedef void* (* _cmsCreateMutexFnPtrType)(cmsContext ContextID); +typedef void (* _cmsDestroyMutexFnPtrType)(cmsContext ContextID, void* mtx); +typedef cmsBool (* _cmsLockMutexFnPtrType)(cmsContext ContextID, void* mtx); +typedef void (* _cmsUnlockMutexFnPtrType)(cmsContext ContextID, void* mtx); + +typedef struct { + cmsPluginBase base; + + _cmsCreateMutexFnPtrType CreateMutexPtr; + _cmsDestroyMutexFnPtrType DestroyMutexPtr; + _cmsLockMutexFnPtrType LockMutexPtr; + _cmsUnlockMutexFnPtrType UnlockMutexPtr; + +} cmsPluginMutex; + +CMSAPI void* CMSEXPORT _cmsCreateMutex(cmsContext ContextID); +CMSAPI void CMSEXPORT _cmsDestroyMutex(cmsContext ContextID, void* mtx); +CMSAPI cmsBool CMSEXPORT _cmsLockMutex(cmsContext ContextID, void* mtx); +CMSAPI void CMSEXPORT _cmsUnlockMutex(cmsContext ContextID, void* mtx); + +//---------------------------------------------------------------------------------------------------------- +// Parallelization + +CMSAPI _cmsTransform2Fn CMSEXPORT _cmsGetTransformWorker(struct _cmstransform_struct* CMMcargo); +CMSAPI cmsInt32Number CMSEXPORT _cmsGetTransformMaxWorkers(struct _cmstransform_struct* CMMcargo); +CMSAPI cmsUInt32Number CMSEXPORT _cmsGetTransformWorkerFlags(struct _cmstransform_struct* CMMcargo); + +// Let's plug-in to guess the best number of workers +#define CMS_GUESS_MAX_WORKERS -1 + +typedef struct { + cmsPluginBase base; + + cmsInt32Number MaxWorkers; // Number of starts to do as maximum + cmsUInt32Number WorkerFlags; // Reserved + _cmsTransform2Fn SchedulerFn; // callback to setup functions + +} cmsPluginParalellization; + + +#ifndef CMS_USE_CPP_API +# ifdef __cplusplus + } +# endif +#endif + +#define _lcms_plugin_H +#endif diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/about.json b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..43f967d6af6f35a9be66669c1929db4b3502cb0e --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/about.json @@ -0,0 +1,218 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge" + ], + "conda_build_version": "25.11.1", + "conda_version": "25.11.1", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "flow_run_id": "azure_20260111.12.1", + "recipe-maintainers": [ + "isuruf", + "hmaarrfk" + ], + "remote_url": "https://github.com/conda-forge/lcms2-feedstock", + "sha": "d8246c1447530a626a3c5fd96c3845e54ea84195" + }, + "home": "http://www.littlecms.com/", + "identifiers": [], + "keywords": [], + "license": "MIT", + "license_family": "MIT", + "license_file": "LICENSE", + "root_pkgs": [ + "tzdata 2025c hc9c84f9_1", + "markupsafe 3.0.3 py312h8a5da7c_0", + "jsonschema 4.26.0 pyhcf101f3_0", + "conda-package-handling 2.4.0 pyh7900ff3_2", + "zstd 1.5.7 hb78ec9c_6", + "libfreetype 2.14.1 ha770c72_0", + "libjpeg-turbo 3.1.2 hb03c661_0", + "charset-normalizer 3.4.4 pyhd8ed1ab_0", + "libxcb 1.17.0 h8a09558_0", + "libcurl 8.18.0 h4e3cde8_0", + "libfreetype6 2.14.1 h73754d4_0", + "typing_extensions 4.15.0 pyhcf101f3_0", + "jsonpatch 1.33 pyhd8ed1ab_1", + "setuptools 80.9.0 pyhff2d567_0", + "wheel 0.45.1 pyhd8ed1ab_1", + "perl 5.32.1 7_hd590300_perl5", + "pip 25.3 pyh8b19718_0", + "anaconda-client 1.13.1 pyhcf101f3_0", + "tomli 2.3.0 pyhcf101f3_0", + "xorg-libxdmcp 1.1.5 hb03c661_1", + "lzo 2.10 h280c20c_1002", + "filelock 3.20.3 pyhd8ed1ab_0", + "mamba 2.5.0 h9835478_0", + "python-dateutil 2.9.0.post0 pyhe01879c_2", + "lerc 4.0.0 h0aef613_1", + "libstdcxx-ng 15.2.0 hdf11a46_16", + "urllib3 2.6.3 pyhd8ed1ab_0", + "idna 3.11 pyhd8ed1ab_0", + "typing-inspection 0.4.2 pyhd8ed1ab_1", + "ncurses 6.5 h2d0b736_3", + "readchar 4.2.1 pyhe01879c_0", + "libtiff 4.7.1 h9d88235_1", + "hyperframe 6.1.0 pyhd8ed1ab_0", + "ld_impl_linux-64 2.45 default_hbd61a6d_105", + "defusedxml 0.7.1 pyhd8ed1ab_0", + "pixi 0.62.2 ha759004_0", + "pygments 2.19.2 pyhd8ed1ab_0", + "frozendict 2.4.7 py312h4c3975b_0", + "pkginfo 1.12.1.2 pyhd8ed1ab_0", + "ruamel.yaml.clib 0.2.15 py312h5253ce2_1", + "libwebp-base 1.6.0 hd42ef1d_0", + "python-libarchive-c 5.3 pyhe01879c_1", + "referencing 0.37.0 pyhcf101f3_0", + "soupsieve 2.8.1 pyhd8ed1ab_0", + "libxcrypt 4.4.36 hd590300_1", + "mbedtls 3.6.3.1 h5888daf_0", + "keyutils 1.6.3 hb9d3cd8_0", + "conda-libmamba-solver 25.11.0 pyhd8ed1ab_0", + "python 3.12.12 hd63d673_1_cpython", + "pyyaml 6.0.3 py312h8a5da7c_0", + "libdeflate 1.25 h17f619e_0", + "cffi 2.0.0 py312h460c074_1", + "git 2.52.0 pl5321h6d3cee1_1", + "traitlets 5.14.3 pyhd8ed1ab_1", + "anaconda-cli-base 0.7.0 pyhcf101f3_1", + "annotated-types 0.7.0 pyhd8ed1ab_1", + "libarchive 3.8.5 gpl_hc2c16d8_100", + "tini 0.19.0 h166bdaf_1", + "readline 8.3 h853b02a_0", + "jupyter_core 5.9.1 pyhc90fa1f_0", + "evalidate 2.0.5 pyhe01879c_0", + "c-ares 1.34.6 hb03c661_0", + "libedit 3.1.20250104 pl5321h7949ede_0", + "markdown-it-py 4.0.0 pyhd8ed1ab_0", + "libgcc-ng 15.2.0 h69a702a_16", + "libsqlite 3.51.1 hf4e2dac_1", + "archspec 0.2.5 pyhd8ed1ab_0", + "reproc-cpp 14.2.5.post0 h5888daf_0", + "distro 1.9.0 pyhd8ed1ab_1", + "libev 4.33 hd590300_2", + "rpds-py 0.30.0 py312h868fb18_0", + "truststore 0.10.4 pyhcf101f3_0", + "_libgcc_mutex 0.1 conda_forge", + "h2 4.3.0 pyhcf101f3_0", + "pybind11-abi 11 hc364b38_1", + "rich 14.2.0 pyhcf101f3_0", + "requests-toolbelt 1.0.0 pyhd8ed1ab_1", + "lcms2 2.17 h717163a_0", + "requests 2.32.5 pyhcf101f3_1", + "pthread-stubs 0.4 hb9d3cd8_1002", + "psutil 7.2.1 py312h5253ce2_0", + "backports.zstd 1.3.0 py312h90b7ffd_0", + "ripgrep 15.1.0 hdab8a38_0", + "xorg-libxau 1.0.12 hb03c661_1", + "chardet 5.2.0 pyhd8ed1ab_3", + "patchelf 0.17.2 h58526e2_0", + "libzlib 1.3.1 hb9d3cd8_2", + "patch 2.8 hb03c661_1002", + "six 1.17.0 pyhe01879c_1", + "tqdm 4.67.1 pyhd8ed1ab_1", + "fmt 12.1.0 hff5e90c_0", + "krb5 1.21.3 h659f571_0", + "su-exec 0.2 h166bdaf_1003", + "nbformat 5.10.4 pyhd8ed1ab_1", + "libxml2 2.15.1 he237659_1", + "python-fastjsonschema 2.21.2 pyhe01879c_0", + "python-dotenv 1.2.1 pyhcf101f3_0", + "libstdcxx 15.2.0 h934c35e_16", + "libmamba 2.5.0 hd28c85e_0", + "typer-slim-standard 0.21.1 h378290b_0", + "xz 5.8.1 hbcc6ac9_2", + "libgomp 15.2.0 he0feb66_16", + "conda 25.11.1 py312h7900ff3_0", + "ca-certificates 2026.1.4 hbd8a1cb_0", + "spdlog 1.17.0 hab81395_1", + "conda-build 25.11.1 py312ha128529_0", + "liblief 0.16.6 hecca717_1", + "jsonschema-specifications 2025.9.1 pyhcf101f3_0", + "xz-gpl-tools 5.8.1 hbcc6ac9_2", + "bzip2 1.0.8 hda65f42_8", + "yaml 0.2.5 h280c20c_3", + "libmambapy 2.5.0 py312h1ca65c7_0", + "typer 0.21.1 pyhf8876ea_0", + "pytz 2025.2 pyhd8ed1ab_0", + "libuuid 2.41.3 h5347b49_0", + "openssl 3.6.0 h26f9b46_0", + "jsonpointer 3.0.0 pyhcf101f3_3", + "libgcc 15.2.0 he0feb66_16", + "openjpeg 2.5.4 h55fea9a_0", + "boltons 25.0.0 pyhd8ed1ab_0", + "reproc 14.2.5.post0 hb9d3cd8_0", + "liblzma-devel 5.8.1 hb9d3cd8_2", + "python_abi 3.12 8_cp312", + "libnghttp2 1.67.0 had1ee68_0", + "pysocks 1.7.1 pyha55dd90_7", + "pluggy 1.6.0 pyhf9edf01_1", + "platformdirs 4.5.1 pyhcf101f3_0", + "zlib-ng 2.3.2 hceb46e0_1", + "_openmp_mutex 4.5 2_gnu", + "libnsl 2.0.1 hb9d3cd8_1", + "pycosat 0.6.6 py312h4c3975b_3", + "zstandard 0.25.0 py312h5253ce2_1", + "conda-index 0.7.0 pyhd8ed1ab_0", + "msgpack-python 1.1.2 py312hd9148b4_1", + "icu 78.2 h33c6efd_0", + "cpp-expected 1.3.1 h171cf75_0", + "hpack 4.1.0 pyhd8ed1ab_0", + "typer-slim 0.21.1 pyhcf101f3_0", + "beautifulsoup4 4.14.3 pyha770c72_0", + "conda-package-streaming 0.12.0 pyhd8ed1ab_0", + "lz4-c 1.10.0 h5888daf_1", + "libmamba-spdlog 2.5.0 h12fcf84_0", + "libxml2-16 2.15.1 hca6bf5a_1", + "brotli-python 1.2.0 py312hdb49522_1", + "py-lief 0.16.6 py312h1289d80_1", + "libpng 1.6.53 h421ea60_0", + "simdjson 4.2.4 hb700be7_0", + "xz-tools 5.8.1 hb9d3cd8_2", + "attrs 25.4.0 pyhcf101f3_1", + "pycparser 2.22 pyh29332c3_1", + "libiconv 1.18 h3b78370_2", + "libssh2 1.11.1 hcf80075_0", + "menuinst 2.4.2 py312h7900ff3_0", + "typing-extensions 4.15.0 h396c80c_0", + "pillow 12.1.0 py312h50c33e8_0", + "shellingham 1.5.4 pyhd8ed1ab_2", + "pydantic-core 2.41.5 py312h868fb18_1", + "click 8.3.1 pyh8f84b5b_1", + "mdurl 0.1.2 pyhd8ed1ab_1", + "pcre2 10.47 haa7fec5_0", + "certifi 2026.1.4 pyhd8ed1ab_0", + "pydantic 2.12.5 pyhcf101f3_1", + "pydantic-settings 2.12.0 pyh3cfb1c2_0", + "packaging 25.0 pyh29332c3_1", + "liblzma 5.8.1 hb9d3cd8_2", + "libexpat 2.7.3 hecca717_0", + "nlohmann_json-abi 3.12.0 h0f90c79_1", + "tk 8.6.13 noxft_ha0e22de_103", + "jinja2 3.1.6 pyhcf101f3_1", + "colorama 0.4.6 pyhd8ed1ab_1", + "libsolv 0.7.35 h9463b59_0", + "yaml-cpp 0.8.0 h59595ed_0", + "libffi 3.5.2 h9ec8514_0", + "ruamel.yaml 0.18.17 py312h5253ce2_2", + "oniguruma 6.9.10 hb9d3cd8_0", + "jq 1.8.1 h73b1eb8_0", + "conda-forge-ci-setup 4.24.1 py312hef7310e_100", + "deprecated 1.3.1 pyhd8ed1ab_0", + "rattler-build 0.55.1 he64ecbb_0", + "conda-oci-mirror 0.2.3 pyhd8ed1ab_0", + "conda-forge-metadata 0.12.0 pyhcf101f3_1", + "oras-py 0.1.14 pyhd8ed1ab_0", + "conda-env 2.6.0 1", + "shyaml 0.6.2 pyhd3deb0d_0", + "wrapt 1.17.3 py312h4c3975b_1", + "rattler-build-conda-compat 1.4.10 pyhd8ed1ab_0", + "joblib 1.5.3 pyhd8ed1ab_0" + ], + "summary": "Open Source Color Management Engine", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/files b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..c040030e8f3f1e06ab1b08a68b30971cece3b99c --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/files @@ -0,0 +1,16 @@ +bin/jpgicc +bin/linkicc +bin/psicc +bin/tificc +bin/transicc +include/lcms2.h +include/lcms2_plugin.h +lib/liblcms2.so +lib/liblcms2.so.2 +lib/liblcms2.so.2.0.18 +lib/pkgconfig/lcms2.pc +share/man/man1/jpgicc.1 +share/man/man1/linkicc.1 +share/man/man1/psicc.1 +share/man/man1/tificc.1 +share/man/man1/transicc.1 diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/git b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/has_prefix b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/has_prefix new file mode 100644 index 0000000000000000000000000000000000000000..219216f44faff9fc9d4bf784c3576d2b62f46f42 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/has_prefix @@ -0,0 +1 @@ +/home/conda/feedstock_root/build_artifacts/lcms2_1768184520280/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place text lib/pkgconfig/lcms2.pc diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/hash_input.json b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..275291213d9cff11ef74aa4f237d354e6472e2e3 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/hash_input.json @@ -0,0 +1,12 @@ +{ + "libtiff": "4.7", + "channel_targets": "conda-forge main", + "lcms2": "2", + "c_compiler": "gcc", + "c_stdlib": "sysroot", + "target_platform": "linux-64", + "c_stdlib_version": "2.17", + "libjpeg_turbo": "3", + "c_compiler_version": "14", + "__glibc": "__glibc >=2.17,<3.0.a0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/index.json b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..4cfabaa62dd5da4a5bc3a1e0df61803ff1924dfa --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/index.json @@ -0,0 +1,18 @@ +{ + "arch": "x86_64", + "build": "h0c24ade_0", + "build_number": 0, + "depends": [ + "__glibc >=2.17,<3.0.a0", + "libgcc >=14", + "libjpeg-turbo >=3.1.2,<4.0a0", + "libtiff >=4.7.1,<4.8.0a0" + ], + "license": "MIT", + "license_family": "MIT", + "name": "lcms2", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1768184673131, + "version": "2.18" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/licenses/LICENSE b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..85480b50b0c5860b541dc3b0032084c55ca91dcd --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/licenses/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2023 Marti Maria Saguer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject +to the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/paths.json b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..298c8ee2184fb7e5b4d0c8511178d6a6bdbcb49f --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/paths.json @@ -0,0 +1,103 @@ +{ + "paths": [ + { + "_path": "bin/jpgicc", + "path_type": "hardlink", + "sha256": "f1fff5d6e0cf3eabc3a1613c1ba0eecd59017310469cd3f47074b2b8db055f1c", + "size_in_bytes": 42496 + }, + { + "_path": "bin/linkicc", + "path_type": "hardlink", + "sha256": "83b94b8a787ffafa1c7a4a0c44c7c230b14cca5a1bf060926fa4c05781f9ca03", + "size_in_bytes": 31648 + }, + { + "_path": "bin/psicc", + "path_type": "hardlink", + "sha256": "b9e8e0b2f608a3f6e98e2e682eeaf6bf605a46d1ae8554441227c33e688b15b9", + "size_in_bytes": 22200 + }, + { + "_path": "bin/tificc", + "path_type": "hardlink", + "sha256": "20d2c155a713acfcca5773b28ce77c0198baaa4af8c629ab670d61f606c00d98", + "size_in_bytes": 46112 + }, + { + "_path": "bin/transicc", + "path_type": "hardlink", + "sha256": "5465b600c0119a56571d861217b15a8977f680f484667a9be73d4cd6a7ba2ef3", + "size_in_bytes": 45920 + }, + { + "_path": "include/lcms2.h", + "path_type": "hardlink", + "sha256": "475ed5f5d3843b9058e92810774e97aa34602f5038398ae9d6c17ba6d118e53b", + "size_in_bytes": 107254 + }, + { + "_path": "include/lcms2_plugin.h", + "path_type": "hardlink", + "sha256": "f822480420e2237efce5b9cb4f64e5db2cf299e2e58e4e0a25fc899a61a3cc63", + "size_in_bytes": 31557 + }, + { + "_path": "lib/liblcms2.so", + "path_type": "softlink", + "sha256": "74583c63191e150a62217811de6610ec5c82d03fc1ba844ffefc1eb4edf175cc", + "size_in_bytes": 485216 + }, + { + "_path": "lib/liblcms2.so.2", + "path_type": "softlink", + "sha256": "74583c63191e150a62217811de6610ec5c82d03fc1ba844ffefc1eb4edf175cc", + "size_in_bytes": 485216 + }, + { + "_path": "lib/liblcms2.so.2.0.18", + "path_type": "hardlink", + "sha256": "74583c63191e150a62217811de6610ec5c82d03fc1ba844ffefc1eb4edf175cc", + "size_in_bytes": 485216 + }, + { + "_path": "lib/pkgconfig/lcms2.pc", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/conda/feedstock_root/build_artifacts/lcms2_1768184520280/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place", + "sha256": "83b8dc3366888022a1bd451def1bcd267b508068bc6fb3060d813c4b19af6c47", + "size_in_bytes": 489 + }, + { + "_path": "share/man/man1/jpgicc.1", + "path_type": "hardlink", + "sha256": "cbbc7358d94e765f43b5590d269428087ad84bcd61e04e230fa832b538a50db4", + "size_in_bytes": 2927 + }, + { + "_path": "share/man/man1/linkicc.1", + "path_type": "hardlink", + "sha256": "7a8ef262b8bfa64598813ba635dda4d78e4d6baadf2ebc6aee36dd6bfebbc6a5", + "size_in_bytes": 3365 + }, + { + "_path": "share/man/man1/psicc.1", + "path_type": "hardlink", + "sha256": "fdae0be0cefd102b99cfe5f0acabfea229648eff74146be1eba5a12c2e65b250", + "size_in_bytes": 1217 + }, + { + "_path": "share/man/man1/tificc.1", + "path_type": "hardlink", + "sha256": "352148346b4553773acacae15e29ea1c197bd954aa320fccae60d7c7fffe9677", + "size_in_bytes": 2999 + }, + { + "_path": "share/man/man1/transicc.1", + "path_type": "hardlink", + "sha256": "64749bb4ad069bb95fd588434ab36f240229ec76347c28373113439cbc1ec78d", + "size_in_bytes": 2048 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/bld.bat b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/bld.bat new file mode 100644 index 0000000000000000000000000000000000000000..d4302d6ecd77ee7bb5d3729bb85697e3eafaad57 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/bld.bat @@ -0,0 +1,31 @@ +set UseEnv=true + +msbuild ^ + /p:Platform=x64 ^ + /p:Configuration=Release ^ + /p:AdditionalIncludeDirectories=%LIBRARY_INC% ^ + /p:AdditionalDependencies=/LIBPATH:%LIBRARY_LIB% ^ + Projects\VC2022\lcms2.sln +if errorlevel 1 exit 1 + +REM For debugging Purposes, you may want to list the files in the 3 important directories +REM dir +REM dir bin +REM dir include +REM dir lib + +REM Note we renamed jpegicc and tifficc to match their linux counterparts +REM That existed in conda-forge before the windows versions. + +COPY bin\jpegicc.exe %LIBRARY_BIN%\jpgicc.exe +COPY bin\tifficc.exe %LIBRARY_BIN%\tificc.exe +COPY bin\linkicc.exe %LIBRARY_BIN%\linkicc.exe +COPY bin\transicc.exe %LIBRARY_BIN%\transicc.exe +COPY bin\psicc.exe %LIBRARY_BIN%\psicc.exe + +COPY bin\lcms2.dll %LIBRARY_BIN%\lcms2.dll + +COPY bin\lcms2.lib %LIBRARY_LIB%\lcms2.lib + +COPY include\lcms2.h %LIBRARY_INC%\lcms2.h +COPY include\lcms2_plugin.h %LIBRARY_INC%\lcms2_plugin.h diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/build.sh b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..7db25091311e2611fd06c20a3a0dad431c4f008a --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# Get an updated config.sub and config.guess +cp $BUILD_PREFIX/share/libtool/build-aux/config.* . + +./configure \ + --prefix=$PREFIX \ + --disable-static \ + --with-tiff=$PREFIX \ + --with-jpeg=$PREFIX + +make -j${CPU_COUNT} +# 202210 - hmaarrfk +# Without installing before make check, it seemed that +# make check would fail on OSX-64bit +make install +if [[ "${CONDA_BUILD_CROSS_COMPILATION:-}" != "1" || "${CROSSCOMPILING_EMULATOR}" != "" ]]; then +make check +fi diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..10aaa1f1dbb8268574640b48c6b433d94a9f6075 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/conda_build_config.yaml @@ -0,0 +1,36 @@ +CI: azure +c_compiler: gcc +c_compiler_version: '14' +c_stdlib: sysroot +c_stdlib_version: '2.17' +channel_sources: conda-forge +channel_targets: conda-forge main +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cxx_compiler: gxx +docker_image: quay.io/condaforge/linux-anvil-x86_64:alma9 +extend_keys: +- pin_run_as_build +- ignore_build_only_deps +- extend_keys +- ignore_version +fortran_compiler: gfortran +ignore_build_only_deps: +- numpy +- python +lcms2: '2' +libjpeg_turbo: '3' +libtiff: '4.7' +lua: '5' +numpy: '1.26' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +python: '3.12' +r_base: '3.5' +target_platform: linux-64 diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/meta.yaml b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..da157c19b9acc18dffdb4e56f93fb6e23dd405a7 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/meta.yaml @@ -0,0 +1,85 @@ +# This file created by conda-build 25.11.1 +# meta.yaml template originally from: +# /home/conda/recipe_root, last modified Mon Jan 12 02:20:58 2026 +# ------------------------------------------------ + +package: + name: lcms2 + version: '2.18' +source: + url: https://github.com/mm2/Little-CMS/releases/download/lcms2.18/lcms2-2.18.tar.gz + sha256: ee67be3566f459362c1ee094fde2c159d33fa0390aa4ed5f5af676f9e5004347 + patches: + - win_jpegturbo.patch +build: + number: '0' + run_exports: + - lcms2 >=2.18,<3.0a0 + string: h0c24ade_0 +requirements: + build: + - _libgcc_mutex 0.1 conda_forge + - _openmp_mutex 4.5 2_gnu + - binutils_impl_linux-64 2.45 default_hfdba357_105 + - binutils_linux-64 2.45 default_h4852527_105 + - gcc_impl_linux-64 14.3.0 he8b2097_16 + - gcc_linux-64 14.3.0 h298d278_17 + - kernel-headers_linux-64 3.10.0 he073ed8_18 + - ld_impl_linux-64 2.45 default_hbd61a6d_105 + - libgcc 15.2.0 he0feb66_16 + - libgcc-devel_linux-64 14.3.0 hf649bbc_116 + - libgomp 15.2.0 he0feb66_16 + - libltdl 2.4.3a h5888daf_0 + - libsanitizer 14.3.0 h8f1669f_16 + - libstdcxx 15.2.0 h934c35e_16 + - libstdcxx-devel_linux-64 14.3.0 h9f08a49_116 + - libtool 2.5.4 h5888daf_0 + - libzlib 1.3.1 hb9d3cd8_2 + - make 4.4.1 hb9d3cd8_2 + - sysroot_linux-64 2.17 h0157908_18 + - tzdata 2025c hc9c84f9_1 + - zstd 1.5.7 hb78ec9c_6 + host: + - _libgcc_mutex 0.1 conda_forge + - _openmp_mutex 4.5 2_gnu + - lerc 4.0.0 h0aef613_1 + - libdeflate 1.25 h17f619e_0 + - libgcc 15.2.0 he0feb66_16 + - libgomp 15.2.0 he0feb66_16 + - libjpeg-turbo 3.1.2 hb03c661_0 + - liblzma 5.8.1 hb9d3cd8_2 + - libstdcxx 15.2.0 h934c35e_16 + - libtiff 4.7.1 h9d88235_1 + - libwebp-base 1.6.0 hd42ef1d_0 + - libzlib 1.3.1 hb9d3cd8_2 + - zstd 1.5.7 hb78ec9c_6 + run: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libjpeg-turbo >=3.1.2,<4.0a0 + - libtiff >=4.7.1,<4.8.0a0 +test: + commands: + - test -f ${PREFIX}/include/lcms2.h + - test ! -f ${PREFIX}/lib/liblcms2.a + - test -f ${PREFIX}/lib/liblcms2${SHLIB_EXT} + - jpgicc + - tificc + - linkicc + - transicc + - psicc +about: + home: http://www.littlecms.com/ + license: MIT + license_family: MIT + license_file: LICENSE + summary: Open Source Color Management Engine +extra: + recipe-maintainers: + - hmaarrfk + - isuruf + final: true + copy_test_source_files: true + flow_run_id: azure_20260111.12.1 + remote_url: https://github.com/conda-forge/lcms2-feedstock + sha: d8246c1447530a626a3c5fd96c3845e54ea84195 diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/meta.yaml.template b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/meta.yaml.template new file mode 100644 index 0000000000000000000000000000000000000000..0245b6c09a966c80024ae7b3abee3307de5f8151 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/meta.yaml.template @@ -0,0 +1,53 @@ +{% set name = "lcms2" %} +{% set version = "2.18" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/mm2/Little-CMS/releases/download/lcms{{ version }}/lcms2-{{ version }}.tar.gz + sha256: ee67be3566f459362c1ee094fde2c159d33fa0390aa4ed5f5af676f9e5004347 + patches: + - win_jpegturbo.patch + +build: + number: 0 + run_exports: + - {{ pin_subpackage("lcms2") }} + +requirements: + build: + - libtool # [unix] + - {{ compiler('c') }} + - {{ stdlib('c') }} + - make # [not win] + host: + - libjpeg-turbo + - libtiff + +test: + commands: + - test -f ${PREFIX}/include/lcms2.h # [not win] + - test ! -f ${PREFIX}/lib/liblcms2.a # [not win] + - test -f ${PREFIX}/lib/liblcms2${SHLIB_EXT} # [not win] + - jpgicc + - tificc + - linkicc + - transicc + - psicc + - if not exist %LIBRARY_INC%\\lcms2.h exit 1 # [win] + - if not exist %LIBRARY_LIB%\\lcms2.lib exit 1 # [win] + - if not exist %LIBRARY_BIN%\\lcms2.dll exit 1 # [win] + +about: + home: http://www.littlecms.com/ + license: MIT + license_family: MIT + license_file: LICENSE + summary: Open Source Color Management Engine + +extra: + recipe-maintainers: + - isuruf + - hmaarrfk diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/recipe-scripts-license.txt b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..2ec51d75f362bc4327a3cfe1c515c16bb3c57367 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/recipe-scripts-license.txt @@ -0,0 +1,27 @@ +BSD-3-Clause license +Copyright (c) 2015-2022, conda-forge contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/win_jpegturbo.patch b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/win_jpegturbo.patch new file mode 100644 index 0000000000000000000000000000000000000000..3658d8f0fd589b3b636ccef5ed64ed4df4533947 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/recipe/win_jpegturbo.patch @@ -0,0 +1,155 @@ +diff --git a/Projects/VC2022/fuzzers/fuzzers.vcxproj b/Projects/VC2022/fuzzers/fuzzers.vcxproj +index 2c10e6a..cbbadc3 100644 +--- a/Projects/VC2022/fuzzers/fuzzers.vcxproj ++++ b/Projects/VC2022/fuzzers/fuzzers.vcxproj +@@ -100,6 +100,7 @@ + + + ++ ../../../include;%(AdditionalIncludeDirectories) + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) +@@ -112,6 +113,7 @@ + + + ++ ../../../include;%(AdditionalIncludeDirectories) + Level3 + true + true +@@ -128,6 +130,7 @@ + + + ++ ../../../include;%(AdditionalIncludeDirectories) + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) +@@ -140,6 +143,7 @@ + + + ++ ../../../include;%(AdditionalIncludeDirectories) + Level3 + true + true +@@ -165,4 +169,4 @@ + + + +- +\ No newline at end of file ++ +diff --git a/Projects/VC2022/jpegicc/jpegicc.vcxproj b/Projects/VC2022/jpegicc/jpegicc.vcxproj +index c4d7866..d0e2279 100644 +--- a/Projects/VC2022/jpegicc/jpegicc.vcxproj ++++ b/Projects/VC2022/jpegicc/jpegicc.vcxproj +@@ -154,7 +154,7 @@ + true + + +- libjpeg.lib;%(AdditionalDependencies) ++ jpeg.lib;%(AdditionalDependencies) + true + Console + MachineX86 +@@ -176,7 +176,7 @@ + true + + +- libjpeg.lib;%(AdditionalDependencies) ++ jpeg.lib;%(AdditionalDependencies) + true + Console + false +@@ -196,7 +196,7 @@ + true + + +- libjpeg.lib;%(AdditionalDependencies) ++ jpeg.lib;%(AdditionalDependencies) + true + Console + false +@@ -221,7 +221,7 @@ + false + + +- libjpeg.lib;%(AdditionalDependencies) ++ jpeg.lib;%(AdditionalDependencies) + true + Console + true +@@ -252,7 +252,7 @@ + false + + +- libjpeg.lib;%(AdditionalDependencies) ++ jpeg.lib;%(AdditionalDependencies) + true + Console + true +@@ -281,7 +281,7 @@ + true + + +- libjpeg.lib;%(AdditionalDependencies) ++ jpeg.lib;%(AdditionalDependencies) + true + Console + true +@@ -304,4 +304,4 @@ + + + +- +\ No newline at end of file ++ +diff --git a/Projects/VC2022/tifficc/tifficc.vcxproj b/Projects/VC2022/tifficc/tifficc.vcxproj +index 8c72fca..df0369e 100644 +--- a/Projects/VC2022/tifficc/tifficc.vcxproj ++++ b/Projects/VC2022/tifficc/tifficc.vcxproj +@@ -154,7 +154,7 @@ + true + + +- tiff.lib;jpeg-static.lib;zlibstatic.lib;webp.lib;webpdecoder.lib;webpdemux.lib;webpmux.lib;%(AdditionalDependencies) ++ tiff.lib;jpeg-static.lib;%(AdditionalDependencies) + true + Console + MachineX86 +@@ -196,7 +196,7 @@ + true + + +- tiff.lib;jpeg-static.lib;zlibstatic.lib;webp.lib;webpdecoder.lib;webpdemux.lib;webpmux.lib;%(AdditionalDependencies) ++ tiff.lib;jpeg-static.lib;%(AdditionalDependencies) + true + Console + false +@@ -218,7 +218,7 @@ + false + + +- tiff.lib;jpeg-static.lib;zlibstatic.lib;webp.lib;webpdecoder.lib;webpdemux.lib;webpmux.lib;%(AdditionalDependencies) ++ tiff.lib;jpeg-static.lib;%(AdditionalDependencies) + true + Console + true +@@ -272,7 +272,7 @@ + true + + +- tiff.lib;jpeg-static.lib;zlibstatic.lib;webp.lib;webpdecoder.lib;webpdemux.lib;webpmux.lib;%(AdditionalDependencies) ++ tiff.lib;jpeg-static.lib;%(AdditionalDependencies) + true + Console + true +@@ -297,4 +297,4 @@ + + + +- +\ No newline at end of file ++ diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/repodata_record.json b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..16517b950ab8a9e6db2a52aaae7a98fa04b16d5b --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/repodata_record.json @@ -0,0 +1,25 @@ +{ + "name": "lcms2", + "version": "2.18", + "build": "h0c24ade_0", + "build_number": 0, + "channel": "https://conda.anaconda.org/conda-forge/linux-64", + "subdir": "linux-64", + "fn": "lcms2-2.18-h0c24ade_0.conda", + "md5": "6f2e2c8f58160147c4d1c6f4c14cbac4", + "url": "https://conda.anaconda.org/conda-forge/linux-64/lcms2-2.18-h0c24ade_0.conda", + "sha256": "836ec4b895352110335b9fdcfa83a8dcdbe6c5fb7c06c4929130600caea91c0a", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "__glibc >=2.17,<3.0.a0", + "libgcc >=14", + "libjpeg-turbo >=3.1.2,<4.0a0", + "libtiff >=4.7.1,<4.8.0a0" + ], + "constrains": [], + "license": "MIT", + "license_family": "MIT", + "timestamp": 1768184673000, + "size": 249959 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/run_exports.json b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..08cfca10fa3547e24245c6379841b9036c412974 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/run_exports.json @@ -0,0 +1 @@ +{"weak": ["lcms2 >=2.18,<3.0a0"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/test/run_test.sh b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2c633b63e433106deebba5ced060b3b3c552057 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/info/test/run_test.sh @@ -0,0 +1,15 @@ + + +set -ex + + + +test -f ${PREFIX}/include/lcms2.h +test ! -f ${PREFIX}/lib/liblcms2.a +test -f ${PREFIX}/lib/liblcms2${SHLIB_EXT} +jpgicc +tificc +linkicc +transicc +psicc +exit 0 diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/lib/pkgconfig/lcms2.pc b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/lib/pkgconfig/lcms2.pc new file mode 100644 index 0000000000000000000000000000000000000000..1dc22c9e4e288bf6a9bcce2a11aa1834a7dc99a5 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/lib/pkgconfig/lcms2.pc @@ -0,0 +1,11 @@ +prefix=/home/conda/feedstock_root/build_artifacts/lcms2_1768184520280/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: lcms2 +Description: LCMS Color Management Library +Version: 2.18 +Libs: -L${libdir} -llcms2 +Libs.private: -lm -lpthread +Cflags: -I${includedir} diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/jpgicc.1 b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/jpgicc.1 new file mode 100644 index 0000000000000000000000000000000000000000..44795a38eb1c7ad0ac5eb9afaea48350bc752748 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/jpgicc.1 @@ -0,0 +1,122 @@ +.\"Shiju P. Nair September 30, 2004 +.\"Thomas Weber April 23, 2014 +.TH JPGICC 1 "September 30, 2004" +.SH NAME +jpgicc - little cms ICC profile applier for JPEG. +.SH SYNOPSIS +.B jpgicc +.RI [ options ] " input.jpg output.jpg" +.SH DESCRIPTION +lcms is a standalone CMM engine, which deals with the color management. +It implements a fast transformation between ICC profiles. +.B jpgicc +is a little cms ICC profile applier for JPEG. +.SH OPTIONS +.TP +.B \-b +Black point compensation. +.TP +.BI \-c\ NUM +Precalculates transform (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1]. +.TP +.BI \-d\ NUM +Observer adaptation state (abs.col. only), (0..1.0, float value) [defaults to 0.0]. +.TP +.B \-e +Embed destination profile. +.TP +.B \-g +Marks out-of-gamut colors on softproof. +.TP +.BI \-h\ NUM +Show summary of options and examples (0=help, 1=Examples, 2=Built-in profiles, 3=Contact information) +.TP +.BI \-i\ profile +Input profile (defaults to sRGB). +.TP +.BI \-l\ link +TODO: explain this option. +.TP +.BI \-m\ NUM +SoftProof intent (0,1,2,3) [defaults to 0]. +.TP +.B \-n +Ignore embedded profile. +.TP +.BI \-o\ profile +Output profile (defaults to sRGB). +.TP +.BI \-p\ profile +Soft proof profile. +.TP +.BI \-q\ NUM +Output JPEG quality, (0..100) [defaults to 75]. +.TP +.BI \-s\ newprofile +Save embedded profile as \fInewprofile\fR. +.TP +.BI \-t\ NUM +Rendering intent +.nf +.RS +0=Perceptual [default] +1=Relative colorimetric +2=Saturation +3=Absolute colorimetric +10=Perceptual preserving black ink +11=Relative colorimetric preserving black ink +12=Saturation preserving black ink +13=Perceptual preserving black plane +14=Relative colorimetric preserving black plane +15=Saturation preserving black plane +.RE +.fi +.TP +.B \-v +Verbose. +.TP +.BI \-!\ NUM,NUM,NUM +Out-of-gamut marker channel values (r,g,b) [defaults: 128,128,128]. +.SH BUILT-IN PROFILES +.nf + *Lab2 -- D50-based v2 CIEL*a*b + *Lab4 -- D50-based v4 CIEL*a*b + *Lab -- D50-based v4 CIEL*a*b + *XYZ -- CIE XYZ (PCS) + *sRGB -- sRGB color space + *Gray22 - Monochrome of Gamma 2.2 + *Gray30 - Monochrome of Gamma 3.0 + *null - Monochrome black for all input + *Lin2222- CMYK linearization of gamma 2.2 on each channel +.fi +.SH EXAMPLES +.nf +To color correct from scanner to sRGB: + jpgicc -iscanner.icm in.jpg out.jpg + +To convert from monitor1 to monitor2: + jpgicc -imon1.icm -omon2.icm in.jpg out.jpg + +To make a CMYK separation: + jpgicc -oprinter.icm inrgb.jpg outcmyk.jpg + +To recover sRGB from a CMYK separation: + jpgicc -iprinter.icm incmyk.jpg outrgb.jpg + +To convert from CIELab ITU/Fax JPEG to sRGB + jpgicc -iitufax.icm in.jpg out.jpg + +To convert from CIELab ITU/Fax JPEG to sRGB + jpgicc in.jpg out.jpg +.fi +.SH NOTES +For suggestions, comments, bug reports etc. send mail to +info@littlecms.com. +.SH SEE ALSO +.BR linkicc (1), +.BR psicc (1), +.BR tificc (1), +.BR transicc (1) +.SH AUTHOR +This manual page was written by Shiju p. Nair , +for the Debian project. diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/linkicc.1 b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/linkicc.1 new file mode 100644 index 0000000000000000000000000000000000000000..56f73bb9a1daed0bae783a50cf3dda0073740796 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/linkicc.1 @@ -0,0 +1,123 @@ +.\"Shiju P. Nair September 30, 2004 +.\"Thomas Weber April 23, 2014 +.TH LINKICC 1 "September 30, 2004" +.SH NAME +linkicc - little cms device link generator. +.SH SYNOPSIS +.B linkicc +.RI [ options ] " profiles" +.SH DESCRIPTION +lcms is a standalone CMM engine, which deals with the color management. +It implements a fast transformation between ICC profiles. +.B linkicc +is a little cms device link generator. +.P +Links two or more profiles into a single devicelink profile. +Colorspaces must be paired except Lab/XYZ, that can be interchanged. +.SH OPTIONS +.TP +.BR \-a\ NUM +Observer adaptation state (abs.col. only), (0..1.0, float value) [defaults to 1.0]. +.TP +.B \-b +Black point compensation. +.TP +.BI \-c\ precision +Precision (0=LowRes, 1=Normal, 2=Hi-res) [defaults to 1]. +.TP +.BI \-d\ description +Description text (quotes can be used). +.TP +.BI \-h\ NUM +Show summary of options and examples (0=help, 1=Built-in profiles, 2=Examples, 3=Contact information) +.TP +.BI \-k\ inklimit +Ink-limiting in % (CMYK only), (0..400.0, float value) [default 400.0]. +.TP +.B \-l +Use linearization curves (may affect accuracy). +.TP +.BI \-n\ gridpoints +Alternate way to set precision, number of CLUT points. +.TP +.BI \-o\ profile +Output devicelink profile [defaults to 'devicelink.icm']. +.TP +.BI \-r\ profileversion +Profile version. (CAUTION: may change the profile implementation), (2.0..4.3, float value) [defaults to 4.3]. +.TP +.BI \-t\ NUM +Rendering intent +.nf +.RS +0=Perceptual [default] +1=Relative colorimetric +2=Saturation +3=Absolute colorimetric +10=Perceptual preserving black ink +11=Relative colorimetric preserving black ink +12=Saturation preserving black ink +13=Perceptual preserving black plane +14=Relative colorimetric preserving black plane +15=Saturation preserving black plane +.RE +.fi +.TP +.BI \-v\ verbosity +Verbosity level, (0=None, 1=Normal, 2=High, 3=Very High) [defaults to 0]. +.TP +.B \-x +Creatively, guess deviceclass of resulting profile. +.TP +.BI \-y\ copyright +Copyright notice (quotes can be used) ["No copyright, use freely"]. +.TP +.B \-8 +Creates 8-bit devicelink. +.SH BUILT-IN PROFILES +.nf + *Lab2 -- D50-based v2 CIEL*a*b + *Lab4 -- D50-based v4 CIEL*a*b + *Lab -- D50-based v4 CIEL*a*b + *XYZ -- CIE XYZ (PCS) + *sRGB -- sRGB color space + *Gray22 - Monochrome of Gamma 2.2 + *Gray30 - Monochrome of Gamma 3.0 + *null - Monochrome black for all input + *Lin2222- CMYK linearization of gamma 2.2 on each channel +.fi +.SH EXAMPLES +.nf +To create 'devicelink.icm' from a.icc to b.icc: + linkicc a.icc b.icc + +To create 'out.icc' from sRGB to cmyk.icc: + linkicc -o out.icc *sRGB cmyk.icc + +To create a sRGB input profile working in Lab: + linkicc -x -o sRGBLab.icc *sRGB *Lab + +To create a XYZ -> sRGB output profile: + linkicc -x -o sRGBLab.icc *XYZ *sRGB + +To create a abstract profile doing softproof for cmyk.icc: + linkicc -t1 -x -o softproof.icc *Lab cmyk.icc cmyk.icc *Lab + +To create a 'grayer' sRGB input profile: + linkicc -x -o grayer.icc *sRGB gray.icc gray.icc *Lab + +To embed ink limiting into a cmyk output profile: + linkicc -x -o cmyklimited.icc -k 250 cmyk.icc *Lab + +.fi +.SH NOTES +For suggestions, comments, bug reports etc. send mail to +info@littlecms.com. +.SH SEE ALSO +.BR jpgicc (1), +.BR psicc (1), +.BR tificc (1), +.BR transicc (1) +.SH AUTHOR +This manual page was written by Shiju p. Nair , +for the Debian project. diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/psicc.1 b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/psicc.1 new file mode 100644 index 0000000000000000000000000000000000000000..816139eed22cf48515557aadba92eaa6c65b0846 --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/psicc.1 @@ -0,0 +1,46 @@ +.\"Shiju P. Nair September 30, 2004 +.\"Thomas Weber April 23, 2014 +.TH PSICC 1 "September 30, 2004" +.SH NAME +psicc - little cms PostScript converter. +.SH SYNOPSIS +.B psicc +.RI [ options ] +.SH DESCRIPTION +lcms is a standalone CMM engine, which deals with the color management. +It implements a fast transformation between ICC profiles. +.B psicc +is a little cms PostScript converter. +.SH OPTIONS +.TP +.B \-b +Black point compensation (CRD only). +.TP +.BI \-c\ precision +Precision (0=LowRes, 1=Normal, 2=Hi-res) (CRD only) [defaults to 1]. +.TP +.BI \-i\ profile +Input profile: Generates Color Space Array (CSA). +.TP +.BI \-n\ gridpoints +Alternate way to set precision, number of CLUT points (CRD only). +.TP +.BI \-o\ profile +Output profile: Generates Color Rendering Dictionary(CRD). +.TP +.BI \-t\ intent +Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute) [defaults to 0]. +.TP +.B \-u +Do NOT generate resource name on CRD. +.SH NOTES +For suggestions, comments, bug reports etc. send mail to +info@littlecms.com. +.SH SEE ALSO +.BR jpgicc (1), +.BR linkicc (1), +.BR tificc (1), +.BR transicc (1) +.SH AUTHOR +This manual page was written by Shiju p. Nair , +for the Debian project. diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/tificc.1 b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/tificc.1 new file mode 100644 index 0000000000000000000000000000000000000000..9af0d8688c3e38f53b7ebb4db9b6c5b82af1131d --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/tificc.1 @@ -0,0 +1,117 @@ +.\"Shiju P. Nair September 30, 2004 +.\"Thomas Weber April 23, 2014 +.TH TIFICC 1 "October 23, 2004" +.SH NAME +tificc - little cms ICC profile applier for TIFF. +.SH SYNOPSIS +.B tificc +.RI [ options ] " input.tif output.tif" +.SH DESCRIPTION +lcms is a standalone CMM engine, which deals with the color management. +It implements a fast transformation between ICC profiles. +.B tificc +is a little cms ICC profile applier for TIFF. +.SH OPTIONS +.TP +.B \-a +Handle channels > 4 as alpha. +.TP +.B \-b +Black point compensation. +.TP +.BI \-c\ NUM +Precalculates transform (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1]. +.TP +.BI \-d\ NUM +Observer adaptation state (abs.col. only), (0..1.0, float value) [defaults to 0.0]. +.TP +.B \-e +Embed destination profile. +.TP +.B \-g +Marks out-of-gamut colors on softproof. +.TP +.BI \-h\ NUM +Show summary of options and examples (0=help, 1=Examples, 2=Built-in profiles, 3=Contact information) +.TP +.BI \-i\ profile +Input profile (defaults to sRGB). +.TP +.BI \-k\ inklimit +Ink-limiting in % (CMYK only), (0..400.0, float value) [default 400.0]. +.TP +.BI \-l\ profile +Transform by device-link profile. +.TP +.B \-m TODO: check if values outside 0..3 are possible +SoftProof intent [defaults to 0]. +.TP +.B \-n +Ignore embedded profile on input. +.TP +.BI \-o\ profile +Output profile (defaults to sRGB). +.TP +.BI \-p\ profile +Soft proof profile. +.TP +.BI \-s\ newprofile +Save embedded profile as \fInewprofile\fR. +.TP +.BI \-t\ NUM +Rendering intent +.nf +.RS +0=Perceptual [default] +1=Relative colorimetric +2=Saturation +3=Absolute colorimetric +10=Perceptual preserving black ink +11=Relative colorimetric preserving black ink +12=Saturation preserving black ink +13=Perceptual preserving black plane +14=Relative colorimetric preserving black plane +15=Saturation preserving black plane +.RE +.fi +.TP +.B \-v +Verbose. +.TP +.BI \-w\ NUM +Output depth (8, 16 or 32). Use 32 for floating-point. +.SH BUILT-IN PROFILES +.nf + *Lab2 -- D50-based v2 CIEL*a*b + *Lab4 -- D50-based v4 CIEL*a*b + *Lab -- D50-based v4 CIEL*a*b + *XYZ -- CIE XYZ (PCS) + *sRGB -- sRGB color space + *Gray22 - Monochrome of Gamma 2.2 + *Gray30 - Monochrome of Gamma 3.0 + *null - Monochrome black for all input + *Lin2222- CMYK linearization of gamma 2.2 on each channel +.fi +.SH EXAMPLES +.nf +To color correct from scanner to sRGB: + tificc -iscanner.icm in.tif out.tif +To convert from monitor1 to monitor2: + tificc -imon1.icm -omon2.icm in.tif out.tif +To make a CMYK separation: + tificc -oprinter.icm inrgb.tif outcmyk.tif +To recover sRGB from a CMYK separation: + tificc -iprinter.icm incmyk.tif outrgb.tif +To convert from CIELab TIFF to sRGB + tificc -i*Lab in.tif out.tif +.fi +.SH NOTES +For suggestions, comments, bug reports etc. send mail to info@littlecms.com. +.SH SEE ALSO +.BR jpgicc (1), +.BR linkicc (1), +.BR psicc (1), +.BR transicc (1) +.SH AUTHOR +This manual page was originally written by Shiju p. Nair , +for the Debian project. Modified by Marti Maria to reflect further changes. diff --git a/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/transicc.1 b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/transicc.1 new file mode 100644 index 0000000000000000000000000000000000000000..3d9b87d9c8296cf26e9d9acafc4c224fc953fadf --- /dev/null +++ b/data/miniconda3/pkgs/lcms2-2.18-h0c24ade_0/share/man/man1/transicc.1 @@ -0,0 +1,89 @@ +.\"Shiju P. Nair September 30, 2004 +.\"Thomas Weber April 23, 2014 +.TH TRANSICC 1 "MAY 30, 2011" +.SH NAME +transicc - little cms ColorSpace conversion calculator. +.SH SYNOPSIS +.B transicc +.RI [ options ]\ [ CGATSINPUT ]\ [ CGATSOUTPUT ] +.SH DESCRIPTION +lcms is a standalone CMM engine, which deals with the color management. +It implements a fast transformation between ICC profiles. +.B transicc +is a lcms ColorSpace conversion calculator. +.SH OPTIONS +.TP +.B \-b +Black point compensation. +.TP +.BI \-c\ NUM +Precalculates transform (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1]. +.TP +.BI \-d\ NUM +Observer adaptation state (abs.col. only), (0..1.0, float value) [defaults to 0.0]. +.TP +.B \-e +Encoded representation of numbers is not float (Option \fB\-w\fR=use 16 bits, Option \fB\-x\fR=hexadecimal). +.TP +.B \-g +Marks out-of-gamut colors on softproof. +.TP +.BI \-i\ profile +Input profile (defaults to sRGB). +.TP +.B \-l +Transform by device-link profile. +.TP +.BI \-m\ NUM +SoftProof intent (0,1,2,3) [defaults to 0]. +.TP +.B \-n +Terse output, intended for pipe usage. +.TP +.BI \-o\ profile +Output profile (defaults to sRGB). +.TP +.B \-q +Quantize CGATS to 8 bits. +.TP +.BI \-s +Bounded mode. +.TP +.BI \-t\ NUM +Rendering intent +.nf +.RS +0=Perceptual [default] +1=Relative colorimetric +2=Saturation +3=Absolute colorimetric +10=Perceptual preserving black ink +11=Relative colorimetric preserving black ink +12=Saturation preserving black ink +13=Perceptual preserving black plane +14=Relative colorimetric preserving black plane +15=Saturation preserving black plane +.RE +.fi +.TP +.BI \-v\ verbosity +Verbosity level, (0=None, 1=Normal, 2=High, 3=Very High) [defaults to 1]. +.TP +.B \-w +Use 16 bits. +.TP +.B \-x +Hexadecimal. +.TP +You can use '*Lab' and '*xyz' as built-in profiles. +.SH NOTES +For suggestions, comments, bug reports etc. send mail to +info@littlecms.com. +.SH SEE ALSO +.BR jpgicc (1), +.BR linkicc (1), +.BR psicc (1), +.BR tificc (1) +.SH AUTHOR +This manual page was written by Shiju p. Nair , +for the Debian project. diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/about.json b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..1294923479479b1cb5b0ad8a3222a43a2f9c9bfc --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/about.json @@ -0,0 +1,143 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://conda.anaconda.org/nvidia/linux-64" + ], + "conda_build_version": "24.1.2", + "conda_version": "24.1.2", + "description": "cuSOLVER - Direct Linear Solvers on NVIDIA GPUs\n", + "doc_url": "https://docs.nvidia.com/cuda/cusolver/index.html", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "parent_recipe": { + "name": "libcusolver", + "path": "/compute_installer/components/libcusolver/recipe", + "version": "11.7.3.90" + }, + "recipe-maintainers": [ + "conda-forge/cuda" + ] + }, + "home": "https://developer.nvidia.com/cusolver", + "identifiers": [], + "keywords": [], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "license_file": "LICENSE", + "license_url": "https://docs.nvidia.com/cuda/eula/index.html", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "_openmp_mutex 5.1 1_gnu", + "archspec 0.2.1 pyhd3eb1b0_0", + "boltons 23.0.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_7", + "bzip2 1.0.8 h7b6447c_0", + "c-ares 1.19.1 h5eee18b_0", + "ca-certificates 2023.12.12 h06a4308_0", + "certifi 2024.2.2 py312h06a4308_0", + "cffi 1.16.0 py312h5eee18b_0", + "charset-normalizer 2.0.4 pyhd3eb1b0_0", + "conda 24.1.2 py312h06a4308_0", + "conda-content-trust 0.2.0 py312h06a4308_0", + "conda-libmamba-solver 23.12.0 pyhd3eb1b0_1", + "conda-package-handling 2.2.0 py312h06a4308_0", + "conda-package-streaming 0.9.0 py312h06a4308_0", + "cryptography 41.0.7 py312hdda0065_0", + "distro 1.8.0 py312h06a4308_0", + "expat 2.5.0 h6a678d5_0", + "fmt 9.1.0 hdb19cb5_0", + "icu 73.1 h6a678d5_0", + "idna 3.4 py312h06a4308_0", + "jsonpatch 1.32 pyhd3eb1b0_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "krb5 1.20.1 h143b758_1", + "ld_impl_linux-64 2.38 h1181459_1", + "libarchive 3.6.2 h6ac8c49_2", + "libcurl 8.5.0 h251f7ec_0", + "libedit 3.1.20230828 h5eee18b_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_0", + "libgcc-ng 11.2.0 h1234567_1", + "libgomp 11.2.0 h1234567_1", + "libmamba 1.5.3 haf1ee3a_0", + "libmambapy 1.5.3 py312h2dafd23_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libsolv 0.7.24 he621ea3_0", + "libssh2 1.10.0 hdbd6064_2", + "libstdcxx-ng 11.2.0 h1234567_1", + "libuuid 1.41.5 h5eee18b_0", + "libxml2 2.10.4 hf1b16e4_1", + "lz4-c 1.9.4 h6a678d5_0", + "menuinst 2.0.2 py312h06a4308_0", + "ncurses 6.4 h6a678d5_0", + "openssl 3.0.13 h7f8727e_0", + "packaging 23.1 py312h06a4308_0", + "pcre2 10.42 hebb0a14_0", + "pip 23.3.1 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.0.0 py312h06a4308_1", + "pybind11-abi 4 hd3eb1b0_1", + "pycosat 0.6.6 py312h5eee18b_0", + "pycparser 2.21 pyhd3eb1b0_0", + "pysocks 1.7.1 py312h06a4308_0", + "python 3.12.1 h996f2a0_0", + "readline 8.2 h5eee18b_0", + "reproc 14.2.4 h295c915_1", + "reproc-cpp 14.2.4 h295c915_1", + "requests 2.31.0 py312h06a4308_1", + "ruamel.yaml 0.17.21 py312h5eee18b_0", + "setuptools 68.2.2 py312h06a4308_0", + "sqlite 3.41.2 h5eee18b_0", + "tk 8.6.12 h1ccaba5_0", + "tqdm 4.65.0 py312he106c6f_0", + "truststore 0.8.0 py312h06a4308_0", + "tzdata 2023d h04d1e81_0", + "urllib3 2.1.0 py312h06a4308_1", + "wheel 0.41.2 py312h06a4308_0", + "xz 5.4.5 h5eee18b_0", + "yaml-cpp 0.8.0 h6a678d5_0", + "zlib 1.2.13 h5eee18b_0", + "zstandard 0.19.0 py312h5eee18b_0", + "zstd 1.5.5 hc292b87_0", + "anaconda-anon-usage 0.4.3 py312hfc0e8ea_100", + "anaconda-client 1.12.3 py312h06a4308_0", + "attrs 23.1.0 py312h06a4308_0", + "beautifulsoup4 4.12.2 py312h06a4308_0", + "chardet 4.0.0 py312h06a4308_1003", + "click 8.1.7 py312h06a4308_0", + "conda-build 24.1.2 py312h06a4308_0", + "conda-index 0.4.0 pyhd3eb1b0_0", + "defusedxml 0.7.1 pyhd3eb1b0_0", + "filelock 3.13.1 py312h06a4308_0", + "jinja2 3.1.3 py312h06a4308_0", + "jsonschema 4.19.2 py312h06a4308_0", + "jsonschema-specifications 2023.7.1 py312h06a4308_0", + "jupyter_core 5.5.0 py312h06a4308_0", + "liblief 0.12.3 h6a678d5_0", + "markupsafe 2.1.3 py312h5eee18b_0", + "more-itertools 10.1.0 py312h06a4308_0", + "nbformat 5.9.2 py312h06a4308_0", + "patch 2.7.6 h7b6447c_1001", + "patchelf 0.17.2 h6a678d5_0", + "pkginfo 1.9.6 py312h06a4308_0", + "psutil 5.9.0 py312h5eee18b_0", + "py-lief 0.12.3 py312h6a678d5_0", + "python-dateutil 2.8.2 pyhd3eb1b0_0", + "python-fastjsonschema 2.16.2 py312h06a4308_0", + "python-libarchive-c 2.9 pyhd3eb1b0_1", + "pytz 2023.3.post1 py312h06a4308_0", + "pyyaml 6.0.1 py312h5eee18b_0", + "referencing 0.30.2 py312h06a4308_0", + "requests-toolbelt 1.0.0 py312h06a4308_0", + "rpds-py 0.10.6 py312hb02cf49_0", + "six 1.16.0 pyhd3eb1b0_1", + "soupsieve 2.5 py312h06a4308_0", + "traitlets 5.7.1 py312h06a4308_0", + "yaml 0.2.5 h7b6447c_0" + ], + "summary": "CUDA Linear Solver Library", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/files b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..04c746d80dd9f0c33560940d104f6d895b247de5 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/files @@ -0,0 +1,13 @@ +lib/libcusolver.so +lib/libcusolverMg.so +lib/pkgconfig/cusolver-12.8.pc +targets/x86_64-linux/include/cusolverDn.h +targets/x86_64-linux/include/cusolverMg.h +targets/x86_64-linux/include/cusolverRf.h +targets/x86_64-linux/include/cusolverSp.h +targets/x86_64-linux/include/cusolverSp_LOWLEVEL_PREVIEW.h +targets/x86_64-linux/include/cusolver_common.h +targets/x86_64-linux/lib/libcusolver.so +targets/x86_64-linux/lib/libcusolverMg.so +targets/x86_64-linux/lib/stubs/libcusolver.so +targets/x86_64-linux/lib/stubs/libcusolverMg.so diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/git b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/has_prefix b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/has_prefix new file mode 100644 index 0000000000000000000000000000000000000000..2f725c4efc294da9698bb7b081fa2883b4950e2c --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/has_prefix @@ -0,0 +1 @@ +/conda/miniconda3/conda-bld/libcusolver_1739450213129/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text lib/pkgconfig/cusolver-12.8.pc diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/index.json b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..0c9127d62778c748bd27de25524bc425bc36b312 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/index.json @@ -0,0 +1,21 @@ +{ + "arch": "x86_64", + "build": "0", + "build_number": 0, + "constrains": [ + "libcusolver-static >=11.7.3.90" + ], + "depends": [ + "__glibc >=2.17,<3.0.a0", + "cuda-version >=12.8,<12.9.0a0", + "libcusolver 11.7.3.90 0", + "libgcc-ng >=11.2.0", + "libstdcxx-ng >=11.2.0" + ], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "name": "libcusolver-dev", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1739450506827, + "version": "11.7.3.90" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/licenses/LICENSE b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..6622367aff6567f25c18f500137a36caf101ea50 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/licenses/LICENSE @@ -0,0 +1,1632 @@ +End User License Agreement +-------------------------- + +NVIDIA Software License Agreement and CUDA Supplement to +Software License Agreement. + +The CUDA Toolkit End User License Agreement applies to the +NVIDIA CUDA Toolkit, the NVIDIA CUDA Samples, the NVIDIA +Display Driver, NVIDIA Nsight tools (Visual Studio Edition), +and the associated documentation on CUDA APIs, programming +model and development tools. If you do not agree with the +terms and conditions of the license agreement, then do not +download or use the software. + +Last updated: January 12, 2024. + + +Preface +------- + +The Software License Agreement in Chapter 1 and the Supplement +in Chapter 2 contain license terms and conditions that govern +the use of NVIDIA toolkit. By accepting this agreement, you +agree to comply with all the terms and conditions applicable +to the product(s) included herein. + + +NVIDIA Driver + + +Description + +This package contains the operating system driver and +fundamental system software components for NVIDIA GPUs. + + +NVIDIA CUDA Toolkit + + +Description + +The NVIDIA CUDA Toolkit provides command-line and graphical +tools for building, debugging and optimizing the performance +of applications accelerated by NVIDIA GPUs, runtime and math +libraries, and documentation including programming guides, +user manuals, and API references. + + +Default Install Location of CUDA Toolkit + +Windows platform: + +%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v#.# + +Linux platform: + +/usr/local/cuda-#.# + +Mac platform: + +/Developer/NVIDIA/CUDA-#.# + + +NVIDIA CUDA Samples + + +Description + +CUDA Samples are now located in +https://github.com/nvidia/cuda-samples, which includes +instructions for obtaining, building, and running the samples. +They are no longer included in the CUDA toolkit. + + +NVIDIA Nsight Visual Studio Edition (Windows only) + + +Description + +NVIDIA Nsight Development Platform, Visual Studio Edition is a +development environment integrated into Microsoft Visual +Studio that provides tools for debugging, profiling, analyzing +and optimizing your GPU computing and graphics applications. + + +Default Install Location of Nsight Visual Studio Edition + +Windows platform: + +%ProgramFiles(x86)%\NVIDIA Corporation\Nsight Visual Studio Edition #.# + + +1. License Agreement for NVIDIA Software Development Kits +--------------------------------------------------------- + + +Important Notice—Read before downloading, installing, +copying or using the licensed software: +------------------------------------------------------- + +This license agreement, including exhibits attached +("Agreement”) is a legal agreement between you and NVIDIA +Corporation ("NVIDIA") and governs your use of a NVIDIA +software development kit (“SDK”). + +Each SDK has its own set of software and materials, but here +is a description of the types of items that may be included in +a SDK: source code, header files, APIs, data sets and assets +(examples include images, textures, models, scenes, videos, +native API input/output files), binary software, sample code, +libraries, utility programs, programming code and +documentation. + +This Agreement can be accepted only by an adult of legal age +of majority in the country in which the SDK is used. + +If you are entering into this Agreement on behalf of a company +or other legal entity, you represent that you have the legal +authority to bind the entity to this Agreement, in which case +“you” will mean the entity you represent. + +If you don’t have the required age or authority to accept +this Agreement, or if you don’t accept all the terms and +conditions of this Agreement, do not download, install or use +the SDK. + +You agree to use the SDK only for purposes that are permitted +by (a) this Agreement, and (b) any applicable law, regulation +or generally accepted practices or guidelines in the relevant +jurisdictions. + + +1.1. License + + +1.1.1. License Grant + +Subject to the terms of this Agreement, NVIDIA hereby grants +you a non-exclusive, non-transferable license, without the +right to sublicense (except as expressly provided in this +Agreement) to: + + 1. Install and use the SDK, + + 2. Modify and create derivative works of sample source code + delivered in the SDK, and + + 3. Distribute those portions of the SDK that are identified + in this Agreement as distributable, as incorporated in + object code format into a software application that meets + the distribution requirements indicated in this Agreement. + + +1.1.2. Distribution Requirements + +These are the distribution requirements for you to exercise +the distribution grant: + + 1. Your application must have material additional + functionality, beyond the included portions of the SDK. + + 2. The distributable portions of the SDK shall only be + accessed by your application. + + 3. The following notice shall be included in modifications + and derivative works of sample source code distributed: + “This software contains source code provided by NVIDIA + Corporation.” + + 4. Unless a developer tool is identified in this Agreement + as distributable, it is delivered for your internal use + only. + + 5. The terms under which you distribute your application + must be consistent with the terms of this Agreement, + including (without limitation) terms relating to the + license grant and license restrictions and protection of + NVIDIA’s intellectual property rights. Additionally, you + agree that you will protect the privacy, security and + legal rights of your application users. + + 6. You agree to notify NVIDIA in writing of any known or + suspected distribution or use of the SDK not in compliance + with the requirements of this Agreement, and to enforce + the terms of your agreements with respect to distributed + SDK. + + +1.1.3. Authorized Users + +You may allow employees and contractors of your entity or of +your subsidiary(ies) to access and use the SDK from your +secure network to perform work on your behalf. + +If you are an academic institution you may allow users +enrolled or employed by the academic institution to access and +use the SDK from your secure network. + +You are responsible for the compliance with the terms of this +Agreement by your authorized users. If you become aware that +your authorized users didn’t follow the terms of this +Agreement, you agree to take reasonable steps to resolve the +non-compliance and prevent new occurrences. + + +1.1.4. Pre-Release SDK + +The SDK versions identified as alpha, beta, preview or +otherwise as pre-release, may not be fully functional, may +contain errors or design flaws, and may have reduced or +different security, privacy, accessibility, availability, and +reliability standards relative to commercial versions of +NVIDIA software and materials. Use of a pre-release SDK may +result in unexpected results, loss of data, project delays or +other unpredictable damage or loss. + +You may use a pre-release SDK at your own risk, understanding +that pre-release SDKs are not intended for use in production +or business-critical systems. + +NVIDIA may choose not to make available a commercial version +of any pre-release SDK. NVIDIA may also choose to abandon +development and terminate the availability of a pre-release +SDK at any time without liability. + + +1.1.5. Updates + +NVIDIA may, at its option, make available patches, workarounds +or other updates to this SDK. Unless the updates are provided +with their separate governing terms, they are deemed part of +the SDK licensed to you as provided in this Agreement. You +agree that the form and content of the SDK that NVIDIA +provides may change without prior notice to you. While NVIDIA +generally maintains compatibility between versions, NVIDIA may +in some cases make changes that introduce incompatibilities in +future versions of the SDK. + + +1.1.6. Components Under Other Licenses + +The SDK may come bundled with, or otherwise include or be +distributed with, NVIDIA or third-party components with +separate legal notices or terms as may be described in +proprietary notices accompanying the SDK. If and to the extent +there is a conflict between the terms in this Agreement and +the license terms associated with the component, the license +terms associated with the components control only to the +extent necessary to resolve the conflict. + +Subject to the other terms of this Agreement, you may use the +SDK to develop and test applications released under Open +Source Initiative (OSI) approved open source software +licenses. + + +1.1.7. Reservation of Rights + +NVIDIA reserves all rights, title, and interest in and to the +SDK, not expressly granted to you under this Agreement. + + +1.2. Limitations + +The following license limitations apply to your use of the +SDK: + + 1. You may not reverse engineer, decompile or disassemble, + or remove copyright or other proprietary notices from any + portion of the SDK or copies of the SDK. + + 2. Except as expressly provided in this Agreement, you may + not copy, sell, rent, sublicense, transfer, distribute, + modify, or create derivative works of any portion of the + SDK. For clarity, you may not distribute or sublicense the + SDK as a stand-alone product. + + 3. Unless you have an agreement with NVIDIA for this + purpose, you may not indicate that an application created + with the SDK is sponsored or endorsed by NVIDIA. + + 4. You may not bypass, disable, or circumvent any + encryption, security, digital rights management or + authentication mechanism in the SDK. + + 5. You may not use the SDK in any manner that would cause it + to become subject to an open source software license. As + examples, licenses that require as a condition of use, + modification, and/or distribution that the SDK be: + + a. Disclosed or distributed in source code form; + + b. Licensed for the purpose of making derivative works; + or + + c. Redistributable at no charge. + + 6. You acknowledge that the SDK as delivered is not tested + or certified by NVIDIA for use in connection with the + design, construction, maintenance, and/or operation of any + system where the use or failure of such system could + result in a situation that threatens the safety of human + life or results in catastrophic damages (each, a "Critical + Application"). Examples of Critical Applications include + use in avionics, navigation, autonomous vehicle + applications, ai solutions for automotive products, + military, medical, life support or other life critical + applications. NVIDIA shall not be liable to you or any + third party, in whole or in part, for any claims or + damages arising from such uses. You are solely responsible + for ensuring that any product or service developed with + the SDK as a whole includes sufficient features to comply + with all applicable legal and regulatory standards and + requirements. + + 7. You agree to defend, indemnify and hold harmless NVIDIA + and its affiliates, and their respective employees, + contractors, agents, officers and directors, from and + against any and all claims, damages, obligations, losses, + liabilities, costs or debt, fines, restitutions and + expenses (including but not limited to attorney’s fees + and costs incident to establishing the right of + indemnification) arising out of or related to products or + services that use the SDK in or for Critical Applications, + and for use of the SDK outside of the scope of this + Agreement or not in compliance with its terms. + + 8. You may not reverse engineer, decompile or disassemble + any portion of the output generated using SDK elements for + the purpose of translating such output artifacts to target + a non-NVIDIA platform. + + +1.3. Ownership + + 1. NVIDIA or its licensors hold all rights, title and + interest in and to the SDK and its modifications and + derivative works, including their respective intellectual + property rights, subject to your rights under Section + 1.3.2. This SDK may include software and materials from + NVIDIA’s licensors, and these licensors are intended + third party beneficiaries that may enforce this Agreement + with respect to their intellectual property rights. + + 2. You hold all rights, title and interest in and to your + applications and your derivative works of the sample + source code delivered in the SDK, including their + respective intellectual property rights, subject to + NVIDIA’s rights under Section 1.3.1. + + 3. You may, but don’t have to, provide to NVIDIA + suggestions, feature requests or other feedback regarding + the SDK, including possible enhancements or modifications + to the SDK. For any feedback that you voluntarily provide, + you hereby grant NVIDIA and its affiliates a perpetual, + non-exclusive, worldwide, irrevocable license to use, + reproduce, modify, license, sublicense (through multiple + tiers of sublicensees), and distribute (through multiple + tiers of distributors) it without the payment of any + royalties or fees to you. NVIDIA will use feedback at its + choice. NVIDIA is constantly looking for ways to improve + its products, so you may send feedback to NVIDIA through + the developer portal at https://developer.nvidia.com. + + +1.4. No Warranties + +THE SDK IS PROVIDED BY NVIDIA “AS IS” AND “WITH ALL +FAULTS.” TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND +ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND +OR NATURE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, +BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, OR THE +ABSENCE OF ANY DEFECTS THEREIN, WHETHER LATENT OR PATENT. NO +WARRANTY IS MADE ON THE BASIS OF TRADE USAGE, COURSE OF +DEALING OR COURSE OF TRADE. + + +1.5. Limitation of Liability + +TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS +AFFILIATES SHALL NOT BE LIABLE FOR ANY (I) SPECIAL, INCIDENTAL, +PUNITIVE OR CONSEQUENTIAL DAMAGES, OR (II) DAMAGES FOR (A) ANY +LOST PROFITS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL, +OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF +OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFORMANCE +OF THE SDK, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED +UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING +NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR +THEORY OF LIABILITY. IN NO EVENT WILL NVIDIA’S AND ITS AFFILIATES +TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS +AGREEMENT EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE +NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE OR EXTEND THIS +LIMIT. + +These exclusions and limitations of liability shall apply +regardless if NVIDIA or its affiliates have been advised of +the possibility of such damages, and regardless of whether a +remedy fails its essential purpose. These exclusions and +limitations of liability form an essential basis of the +bargain between the parties, and, absent any of these +exclusions or limitations of liability, the provisions of this +Agreement, including, without limitation, the economic terms, +would be substantially different. + + +1.6. Termination + + 1. This Agreement will continue to apply until terminated by + either you or NVIDIA as described below. + + 2. If you want to terminate this Agreement, you may do so by + stopping to use the SDK. + + 3. NVIDIA may, at any time, terminate this Agreement if: + + a. (i) you fail to comply with any term of this + Agreement and the non-compliance is not fixed within + thirty (30) days following notice from NVIDIA (or + immediately if you violate NVIDIA’s intellectual + property rights); + + b. (ii) you commence or participate in any legal + proceeding against NVIDIA with respect to the SDK; or + + c. (iii) NVIDIA decides to no longer provide the SDK in + a country or, in NVIDIA’s sole discretion, the + continued use of it is no longer commercially viable. + + 4. Upon any termination of this Agreement, you agree to + promptly discontinue use of the SDK and destroy all copies + in your possession or control. Your prior distributions in + accordance with this Agreement are not affected by the + termination of this Agreement. Upon written request, you + will certify in writing that you have complied with your + commitments under this section. Upon any termination of + this Agreement all provisions survive except for the + license grant provisions. + + +1.7. General + +If you wish to assign this Agreement or your rights and +obligations, including by merger, consolidation, dissolution +or operation of law, contact NVIDIA to ask for permission. Any +attempted assignment not approved by NVIDIA in writing shall +be void and of no effect. NVIDIA may assign, delegate or +transfer this Agreement and its rights and obligations, and if +to a non-affiliate you will be notified. + +You agree to cooperate with NVIDIA and provide reasonably +requested information to verify your compliance with this +Agreement. + +This Agreement will be governed in all respects by the laws of +the United States and of the State of Delaware, without regard to the +conflicts of laws principles. The United Nations Convention on +Contracts for the International Sale of Goods is specifically +disclaimed. You agree to all terms of this Agreement in the +English language. + +The state or federal courts residing in Santa Clara County, +California shall have exclusive jurisdiction over any dispute +or claim arising out of this Agreement. Notwithstanding this, +you agree that NVIDIA shall still be allowed to apply for +injunctive remedies or an equivalent type of urgent legal +relief in any jurisdiction. + +If any court of competent jurisdiction determines that any +provision of this Agreement is illegal, invalid or +unenforceable, such provision will be construed as limited to +the extent necessary to be consistent with and fully +enforceable under the law and the remaining provisions will +remain in full force and effect. Unless otherwise specified, +remedies are cumulative. + +Each party acknowledges and agrees that the other is an +independent contractor in the performance of this Agreement. + +The SDK has been developed entirely at private expense and is +“commercial items” consisting of “commercial computer +software” and “commercial computer software +documentation” provided with RESTRICTED RIGHTS. Use, +duplication or disclosure by the U.S. Government or a U.S. +Government subcontractor is subject to the restrictions in +this Agreement pursuant to DFARS 227.7202-3(a) or as set forth +in subparagraphs (c)(1) and (2) of the Commercial Computer +Software - Restricted Rights clause at FAR 52.227-19, as +applicable. Contractor/manufacturer is NVIDIA, 2788 San Tomas +Expressway, Santa Clara, CA 95051. + +The SDK is subject to United States export laws and +regulations. You agree that you will not ship, transfer or +export the SDK into any country, or use the SDK in any manner, +prohibited by the United States Bureau of Industry and +Security or economic sanctions regulations administered by the +U.S. Department of Treasury’s Office of Foreign Assets +Control (OFAC), or any applicable export laws, restrictions or +regulations. These laws include restrictions on destinations, +end users and end use. By accepting this Agreement, you +confirm that you are not located in a country currently +embargoed by the U.S. or otherwise prohibited from receiving +the SDK under U.S. law. + +Any notice delivered by NVIDIA to you under this Agreement +will be delivered via mail, email or fax. You agree that any +notices that NVIDIA sends you electronically will satisfy any +legal communication requirements. Please direct your legal +notices or other correspondence to NVIDIA Corporation, 2788 +San Tomas Expressway, Santa Clara, California 95051, United +States of America, Attention: Legal Department. + +This Agreement and any exhibits incorporated into this +Agreement constitute the entire agreement of the parties with +respect to the subject matter of this Agreement and supersede +all prior negotiations or documentation exchanged between the +parties relating to this SDK license. Any additional and/or +conflicting terms on documents issued by you are null, void, +and invalid. Any amendment or waiver under this Agreement +shall be in writing and signed by representatives of both +parties. + + +2. CUDA Toolkit Supplement to Software License Agreement for +NVIDIA Software Development Kits +------------------------------------------------------------ + +The terms in this supplement govern your use of the NVIDIA +CUDA Toolkit SDK under the terms of your license agreement +(“Agreement”) as modified by this supplement. Capitalized +terms used but not defined below have the meaning assigned to +them in the Agreement. + +This supplement is an exhibit to the Agreement and is +incorporated as an integral part of the Agreement. In the +event of conflict between the terms in this supplement and the +terms in the Agreement, the terms in this supplement govern. + + +2.1. License Scope + +The SDK is licensed for you to develop applications only for +use in systems with NVIDIA GPUs. + + +2.2. Distribution + +The portions of the SDK that are distributable under the +Agreement are listed in Attachment A. + + +2.3. Operating Systems + +Those portions of the SDK designed exclusively for use on the +Linux or FreeBSD operating systems, or other operating systems +derived from the source code to these operating systems, may +be copied and redistributed for use in accordance with this +Agreement, provided that the object code files are not +modified in any way (except for unzipping of compressed +files). + + +2.4. Audio and Video Encoders and Decoders + +You acknowledge and agree that it is your sole responsibility +to obtain any additional third-party licenses required to +make, have made, use, have used, sell, import, and offer for +sale your products or services that include or incorporate any +third-party software and content relating to audio and/or +video encoders and decoders from, including but not limited +to, Microsoft, Thomson, Fraunhofer IIS, Sisvel S.p.A., +MPEG-LA, and Coding Technologies. NVIDIA does not grant to you +under this Agreement any necessary patent or other rights with +respect to any audio and/or video encoders and decoders. + + +2.5. Licensing + +If the distribution terms in this Agreement are not suitable +for your organization, or for any questions regarding this +Agreement, please contact NVIDIA at +nvidia-compute-license-questions@nvidia.com. + + +2.6. Attachment A + +The following CUDA Toolkit files may be distributed with +applications developed by you, including certain +variations of these files that have version number or +architecture specific information embedded in the file name - +as an example only, for release version 9.0 of the 64-bit +Windows software, the file cudart64_90.dll is redistributable. + +Component + +CUDA Runtime + +Windows + +cudart.dll, cudart_static.lib, cudadevrt.lib + +Mac OSX + +libcudart.dylib, libcudart_static.a, libcudadevrt.a + +Linux + +libcudart.so, libcudart_static.a, libcudadevrt.a + +Android + +libcudart.so, libcudart_static.a, libcudadevrt.a + +Component + +CUDA FFT Library + +Windows + +cufft.dll, cufftw.dll, cufft.lib, cufftw.lib + +Mac OSX + +libcufft.dylib, libcufft_static.a, libcufftw.dylib, +libcufftw_static.a + +Linux + +libcufft.so, libcufft_static.a, libcufftw.so, +libcufftw_static.a + +Android + +libcufft.so, libcufft_static.a, libcufftw.so, +libcufftw_static.a + +Component + +CUDA BLAS Library + +Windows + +cublas.dll, cublasLt.dll + +Mac OSX + +libcublas.dylib, libcublasLt.dylib, libcublas_static.a, +libcublasLt_static.a + +Linux + +libcublas.so, libcublasLt.so, libcublas_static.a, +libcublasLt_static.a + +Android + +libcublas.so, libcublasLt.so, libcublas_static.a, +libcublasLt_static.a + +Component + +NVIDIA "Drop-in" BLAS Library + +Windows + +nvblas.dll + +Mac OSX + +libnvblas.dylib + +Linux + +libnvblas.so + +Component + +CUDA Sparse Matrix Library + +Windows + +cusparse.dll, cusparse.lib + +Mac OSX + +libcusparse.dylib, libcusparse_static.a + +Linux + +libcusparse.so, libcusparse_static.a + +Android + +libcusparse.so, libcusparse_static.a + +Component + +CUDA Linear Solver Library + +Windows + +cusolver.dll, cusolver.lib + +Mac OSX + +libcusolver.dylib, libcusolver_static.a + +Linux + +libcusolver.so, libcusolver_static.a + +Android + +libcusolver.so, libcusolver_static.a + +Component + +CUDA Random Number Generation Library + +Windows + +curand.dll, curand.lib + +Mac OSX + +libcurand.dylib, libcurand_static.a + +Linux + +libcurand.so, libcurand_static.a + +Android + +libcurand.so, libcurand_static.a + +Component + +NVIDIA Performance Primitives Library + +Windows + +nppc.dll, nppc.lib, nppial.dll, nppial.lib, nppicc.dll, +nppicc.lib, nppicom.dll, nppicom.lib, nppidei.dll, +nppidei.lib, nppif.dll, nppif.lib, nppig.dll, nppig.lib, +nppim.dll, nppim.lib, nppist.dll, nppist.lib, nppisu.dll, +nppisu.lib, nppitc.dll, nppitc.lib, npps.dll, npps.lib + +Mac OSX + +libnppc.dylib, libnppc_static.a, libnppial.dylib, +libnppial_static.a, libnppicc.dylib, libnppicc_static.a, +libnppicom.dylib, libnppicom_static.a, libnppidei.dylib, +libnppidei_static.a, libnppif.dylib, libnppif_static.a, +libnppig.dylib, libnppig_static.a, libnppim.dylib, +libnppisu_static.a, libnppitc.dylib, libnppitc_static.a, +libnpps.dylib, libnpps_static.a + +Linux + +libnppc.so, libnppc_static.a, libnppial.so, +libnppial_static.a, libnppicc.so, libnppicc_static.a, +libnppicom.so, libnppicom_static.a, libnppidei.so, +libnppidei_static.a, libnppif.so, libnppif_static.a +libnppig.so, libnppig_static.a, libnppim.so, +libnppim_static.a, libnppist.so, libnppist_static.a, +libnppisu.so, libnppisu_static.a, libnppitc.so +libnppitc_static.a, libnpps.so, libnpps_static.a + +Android + +libnppc.so, libnppc_static.a, libnppial.so, +libnppial_static.a, libnppicc.so, libnppicc_static.a, +libnppicom.so, libnppicom_static.a, libnppidei.so, +libnppidei_static.a, libnppif.so, libnppif_static.a +libnppig.so, libnppig_static.a, libnppim.so, +libnppim_static.a, libnppist.so, libnppist_static.a, +libnppisu.so, libnppisu_static.a, libnppitc.so +libnppitc_static.a, libnpps.so, libnpps_static.a + +Component + +NVIDIA JPEG Library + +Windows + +nvjpeg.lib, nvjpeg.dll + +Linux + +libnvjpeg.so, libnvjpeg_static.a + +Component + +Internal common library required for statically linking to +cuBLAS, cuSPARSE, cuFFT, cuRAND, nvJPEG and NPP + +Mac OSX + +libculibos.a + +Linux + +libculibos.a + +Component + +NVIDIA Runtime Compilation Library and Header + +All + +nvrtc.h + +Windows + +nvrtc.dll, nvrtc-builtins.dll + +Mac OSX + +libnvrtc.dylib, libnvrtc-builtins.dylib + +Linux + +libnvrtc.so, libnvrtc-builtins.so, libnvrtc_static.a, libnvrtx-builtins_static.a + +Component + +NVIDIA Optimizing Compiler Library + +Windows + +nvvm.dll + +Mac OSX + +libnvvm.dylib + +Linux + +libnvvm.so + +Component + +NVIDIA JIT Linking Library + +Windows + +libnvJitLink.dll, libnvJitLink.lib + +Linux + +libnvJitLink.so, libnvJitLink_static.a + +Component + +NVIDIA Common Device Math Functions Library + +Windows + +libdevice.10.bc + +Mac OSX + +libdevice.10.bc + +Linux + +libdevice.10.bc + +Component + +CUDA Occupancy Calculation Header Library + +All + +cuda_occupancy.h + +Component + +CUDA Half Precision Headers + +All + +cuda_fp16.h, cuda_fp16.hpp + +Component + +CUDA Profiling Tools Interface (CUPTI) Library + +Windows + +cupti.dll + +Mac OSX + +libcupti.dylib + +Linux + +libcupti.so + +Component + +NVIDIA Tools Extension Library + +Windows + +nvToolsExt.dll, nvToolsExt.lib + +Mac OSX + +libnvToolsExt.dylib + +Linux + +libnvToolsExt.so + +Component + +NVIDIA CUDA Driver Libraries + +Linux + +libcuda.so, libnvidia-ptxjitcompiler.so, libnvptxcompiler_static.a + +Component + +NVIDIA CUDA File IO Libraries and Header + +All + +cufile.h + +Linux + +libcufile.so, libcufile_rdma.so, libcufile_static.a, +libcufile_rdma_static.a + +In addition to the rights above, for parties that are +developing software intended solely for use on Jetson +development kits or Jetson modules, and running Linux for +Tegra software, the following shall apply: + + * The SDK may be distributed in its entirety, as provided by + NVIDIA, and without separation of its components, for you + and/or your licensees to create software development kits + for use only on the Jetson platform and running Linux for + Tegra software. + + +2.7. Attachment B + + +Additional Licensing Obligations + +The following third party components included in the SOFTWARE +are licensed to Licensee pursuant to the following terms and +conditions: + + 1. Licensee's use of the GDB third party component is + subject to the terms and conditions of GNU GPL v3: + + This product includes copyrighted third-party software licensed + under the terms of the GNU General Public License v3 ("GPL v3"). + All third-party software packages are copyright by their respective + authors. GPL v3 terms and conditions are hereby incorporated into + the Agreement by this reference: http://www.gnu.org/licenses/gpl.txt + + Consistent with these licensing requirements, the software + listed below is provided under the terms of the specified + open source software licenses. To obtain source code for + software provided under licenses that require + redistribution of source code, including the GNU General + Public License (GPL) and GNU Lesser General Public License + (LGPL), contact oss-requests@nvidia.com. This offer is + valid for a period of three (3) years from the date of the + distribution of this product by NVIDIA CORPORATION. + + Component License + CUDA-GDB GPL v3 + + 2. Licensee represents and warrants that any and all third + party licensing and/or royalty payment obligations in + connection with Licensee's use of the H.264 video codecs + are solely the responsibility of Licensee. + + 3. Licensee's use of the Thrust library is subject to the + terms and conditions of the Apache License Version 2.0. + All third-party software packages are copyright by their + respective authors. Apache License Version 2.0 terms and + conditions are hereby incorporated into the Agreement by + this reference. + http://www.apache.org/licenses/LICENSE-2.0.html + + In addition, Licensee acknowledges the following notice: + Thrust includes source code from the Boost Iterator, + Tuple, System, and Random Number libraries. + + Boost Software License - Version 1.0 - August 17th, 2003 + . . . . + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all + subject to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR + OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + 4. Licensee's use of the LLVM third party component is + subject to the following terms and conditions: + + ====================================================== + LLVM Release License + ====================================================== + University of Illinois/NCSA + Open Source License + + Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. + All rights reserved. + + Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal with the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at Urbana- + Champaign, nor the names of its contributors may be used to endorse or + promote products derived from this Software without specific prior + written permission. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS WITH THE SOFTWARE. + + 5. Licensee's use of the PCRE third party component is + subject to the following terms and conditions: + + ------------ + PCRE LICENCE + ------------ + PCRE is a library of functions to support regular expressions whose syntax + and semantics are as close as possible to those of the Perl 5 language. + Release 8 of PCRE is distributed under the terms of the "BSD" licence, as + specified below. The documentation for PCRE, supplied in the "doc" + directory, is distributed under the same terms as the software itself. The + basic library functions are written in C and are freestanding. Also + included in the distribution is a set of C++ wrapper functions, and a just- + in-time compiler that can be used to optimize pattern matching. These are + both optional features that can be omitted when the library is built. + + THE BASIC LIBRARY FUNCTIONS + --------------------------- + Written by: Philip Hazel + Email local part: ph10 + Email domain: cam.ac.uk + University of Cambridge Computing Service, + Cambridge, England. + Copyright (c) 1997-2012 University of Cambridge + All rights reserved. + + PCRE JUST-IN-TIME COMPILATION SUPPORT + ------------------------------------- + Written by: Zoltan Herczeg + Email local part: hzmester + Emain domain: freemail.hu + Copyright(c) 2010-2012 Zoltan Herczeg + All rights reserved. + + STACK-LESS JUST-IN-TIME COMPILER + -------------------------------- + Written by: Zoltan Herczeg + Email local part: hzmester + Emain domain: freemail.hu + Copyright(c) 2009-2012 Zoltan Herczeg + All rights reserved. + + THE C++ WRAPPER FUNCTIONS + ------------------------- + Contributed by: Google Inc. + Copyright (c) 2007-2012, Google Inc. + All rights reserved. + + THE "BSD" LICENCE + ----------------- + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the University of Cambridge nor the name of Google + Inc. nor the names of their contributors may be used to endorse or + promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 6. Some of the cuBLAS library routines were written by or + derived from code written by Vasily Volkov and are subject + to the Modified Berkeley Software Distribution License as + follows: + + Copyright (c) 2007-2009, Regents of the University of California + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the University of California, Berkeley nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 7. Some of the cuBLAS library routines were written by or + derived from code written by Davide Barbieri and are + subject to the Modified Berkeley Software Distribution + License as follows: + + Copyright (c) 2008-2009 Davide Barbieri @ University of Rome Tor Vergata. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * The name of the author may not be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 8. Some of the cuBLAS library routines were derived from + code developed by the University of Tennessee and are + subject to the Modified Berkeley Software Distribution + License as follows: + + Copyright (c) 2010 The University of Tennessee. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer listed in this license in the documentation and/or + other materials provided with the distribution. + * Neither the name of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 9. Some of the cuBLAS library routines were written by or + derived from code written by Jonathan Hogg and are subject + to the Modified Berkeley Software Distribution License as + follows: + + Copyright (c) 2012, The Science and Technology Facilities Council (STFC). + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the STFC nor the names of its contributors + may be used to endorse or promote products derived from this + software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE STFC BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 10. Some of the cuBLAS library routines were written by or + derived from code written by Ahmad M. Abdelfattah, David + Keyes, and Hatem Ltaief, and are subject to the Apache + License, Version 2.0, as follows: + + -- (C) Copyright 2013 King Abdullah University of Science and Technology + Authors: + Ahmad Abdelfattah (ahmad.ahmad@kaust.edu.sa) + David Keyes (david.keyes@kaust.edu.sa) + Hatem Ltaief (hatem.ltaief@kaust.edu.sa) + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the King Abdullah University of Science and + Technology nor the names of its contributors may be used to endorse + or promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE + + 11. Some of the cuSPARSE library routines were written by or + derived from code written by Li-Wen Chang and are subject + to the NCSA Open Source License as follows: + + Copyright (c) 2012, University of Illinois. + + All rights reserved. + + Developed by: IMPACT Group, University of Illinois, http://impact.crhc.illinois.edu + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal with the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimers in the documentation and/or other materials provided + with the distribution. + * Neither the names of IMPACT Group, University of Illinois, nor + the names of its contributors may be used to endorse or promote + products derived from this Software without specific prior + written permission. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR + IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE + SOFTWARE. + + 12. Some of the cuRAND library routines were written by or + derived from code written by Mutsuo Saito and Makoto + Matsumoto and are subject to the following license: + + Copyright (c) 2009, 2010 Mutsuo Saito, Makoto Matsumoto and Hiroshima + University. All rights reserved. + + Copyright (c) 2011 Mutsuo Saito, Makoto Matsumoto, Hiroshima + University and University of Tokyo. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the Hiroshima University nor the names of + its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 13. Some of the cuRAND library routines were derived from + code developed by D. E. Shaw Research and are subject to + the following license: + + Copyright 2010-2011, D. E. Shaw Research. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions, and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of D. E. Shaw Research nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 14. Some of the Math library routines were written by or + derived from code developed by Norbert Juffa and are + subject to the following license: + + Copyright (c) 2015-2017, Norbert Juffa + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 15. Licensee's use of the lz4 third party component is + subject to the following terms and conditions: + + Copyright (C) 2011-2013, Yann Collet. + BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 16. The NPP library uses code from the Boost Math Toolkit, + and is subject to the following license: + + Boost Software License - Version 1.0 - August 17th, 2003 + . . . . + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all + subject to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR + OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + 17. Portions of the Nsight Eclipse Edition is subject to the + following license: + + The Eclipse Foundation makes available all content in this plug-in + ("Content"). Unless otherwise indicated below, the Content is provided + to you under the terms and conditions of the Eclipse Public License + Version 1.0 ("EPL"). A copy of the EPL is available at http:// + www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, "Program" + will mean the Content. + + If you did not receive this Content directly from the Eclipse + Foundation, the Content is being redistributed by another party + ("Redistributor") and different terms and conditions may apply to your + use of any object code in the Content. Check the Redistributor's + license that was provided with the Content. If no such license exists, + contact the Redistributor. Unless otherwise indicated below, the terms + and conditions of the EPL still apply to any source code in the + Content and such source code may be obtained at http://www.eclipse.org. + + 18. Some of the cuBLAS library routines uses code from + OpenAI, which is subject to the following license: + + License URL + https://github.com/openai/openai-gemm/blob/master/LICENSE + + License Text + The MIT License + + Copyright (c) 2016 OpenAI (http://openai.com), 2016 Google Inc. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + + 19. Licensee's use of the Visual Studio Setup Configuration + Samples is subject to the following license: + + The MIT License (MIT) + Copyright (C) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + 20. Licensee's use of linmath.h header for CPU functions for + GL vector/matrix operations from lunarG is subject to the + Apache License Version 2.0. + + 21. The DX12-CUDA sample uses the d3dx12.h header, which is + subject to the MIT license. + + 22. Components of the driver and compiler used for binary management, including + nvFatBin, nvcc, and cuobjdump, use the Zstandard library which is subject to + the following license: + + BSD License + + For Zstandard software + + Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name Facebook, nor Meta, nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + +----------------- diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/paths.json b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..0c08ba23a53a706a4a441756bdbd3681fd64ee60 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/paths.json @@ -0,0 +1,85 @@ +{ + "paths": [ + { + "_path": "lib/libcusolver.so", + "path_type": "softlink", + "sha256": "fd4739395116a33f7a7899e600020ae2127ba2671e8b533911fdab5ad23f38cc", + "size_in_bytes": 241587952 + }, + { + "_path": "lib/libcusolverMg.so", + "path_type": "softlink", + "sha256": "33e9b68ee0abf7c088f10939618f473f1a5b37de6b08fcad71557546c6194c90", + "size_in_bytes": 161239545 + }, + { + "_path": "lib/pkgconfig/cusolver-12.8.pc", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/conda/miniconda3/conda-bld/libcusolver_1739450213129/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac", + "sha256": "c807e1ea734abe0cdb79aba88289a10e9d679da6b08c837627666ec09a9f3a78", + "size_in_bytes": 514 + }, + { + "_path": "targets/x86_64-linux/include/cusolverDn.h", + "path_type": "hardlink", + "sha256": "06a89787eb12965ecac70863a92b9526f483c5e072aa3db17c02b42b2a06dcab", + "size_in_bytes": 152029 + }, + { + "_path": "targets/x86_64-linux/include/cusolverMg.h", + "path_type": "hardlink", + "sha256": "37cf7cf679d2d8195e78ccae7ed6d08010c9e2c30090b3d29e6cbf4bfedfc678", + "size_in_bytes": 11549 + }, + { + "_path": "targets/x86_64-linux/include/cusolverRf.h", + "path_type": "hardlink", + "sha256": "e0537aa3a1589a5d3da52e29f984f924a6f0819a8a2c4b5ff6d419af9d32668e", + "size_in_bytes": 14535 + }, + { + "_path": "targets/x86_64-linux/include/cusolverSp.h", + "path_type": "hardlink", + "sha256": "4b3207d86b77e9ffdc68dd708c5f0f9c2c182e1c2c7c9eb79f530f21cd3f026b", + "size_in_bytes": 32885 + }, + { + "_path": "targets/x86_64-linux/include/cusolverSp_LOWLEVEL_PREVIEW.h", + "path_type": "hardlink", + "sha256": "9a6997b97fe094705da604f322a85790b333f540b1c42d6e4136dc280d56e942", + "size_in_bytes": 39169 + }, + { + "_path": "targets/x86_64-linux/include/cusolver_common.h", + "path_type": "hardlink", + "sha256": "93984764465ca31c644c5a9b28958a1aec6e1cb692470588bd8760bd02746ddc", + "size_in_bytes": 8732 + }, + { + "_path": "targets/x86_64-linux/lib/libcusolver.so", + "path_type": "softlink", + "sha256": "fd4739395116a33f7a7899e600020ae2127ba2671e8b533911fdab5ad23f38cc", + "size_in_bytes": 241587952 + }, + { + "_path": "targets/x86_64-linux/lib/libcusolverMg.so", + "path_type": "softlink", + "sha256": "33e9b68ee0abf7c088f10939618f473f1a5b37de6b08fcad71557546c6194c90", + "size_in_bytes": 161239545 + }, + { + "_path": "targets/x86_64-linux/lib/stubs/libcusolver.so", + "path_type": "hardlink", + "sha256": "dc39b4e1790f165094e6d3d16b7870427f960fb760bd62c8d95e2fd2a7865615", + "size_in_bytes": 139185 + }, + { + "_path": "targets/x86_64-linux/lib/stubs/libcusolverMg.so", + "path_type": "hardlink", + "sha256": "8cec73d32215f2d5b73aae3ddbbea14f233383c8b9691c2c4eadbb4533873674", + "size_in_bytes": 40449 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/repodata_record.json b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..4b09b95b2ad7b4f93848fb95580a34a31827d9e2 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/repodata_record.json @@ -0,0 +1,27 @@ +{ + "name": "libcusolver-dev", + "version": "11.7.3.90", + "build": "0", + "build_number": 0, + "channel": "https://conda.anaconda.org/nvidia/linux-64", + "subdir": "linux-64", + "fn": "libcusolver-dev-11.7.3.90-0.conda", + "md5": "371f8306b1d47b6329a71a698e0ed3fe", + "url": "https://conda.anaconda.org/nvidia/linux-64/libcusolver-dev-11.7.3.90-0.conda", + "sha256": "d2363546c2dfb6a3ecd1e0906be9c8d8bc5f8e9be19194bf788cf08d5bdad790", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "__glibc >=2.17,<3.0.a0", + "cuda-version >=12.8,<12.9.0a0", + "libcusolver 11.7.3.90 0", + "libgcc-ng >=11.2.0", + "libstdcxx-ng >=11.2.0" + ], + "constrains": [ + "libcusolver-static >=11.7.3.90" + ], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "timestamp": 1739450506000, + "size": 56453 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/run_exports.json b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..bdaa8cabdc54d4be23d84fa4cd9fc450c2219525 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/run_exports.json @@ -0,0 +1 @@ +{"weak": ["libcusolver >=11.7.3.90,<12.0a0"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/test/run_test.sh b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..8791b700bb32c7471049827f754e950145eb2d98 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/info/test/run_test.sh @@ -0,0 +1,20 @@ + + +set -ex + + + +test -L $PREFIX/lib/libcusolver.so +test -L $PREFIX/lib/libcusolverMg.so +test -f $PREFIX/lib/pkgconfig/cusolver*.pc +test -f $PREFIX/targets/x86_64-linux/include/cusolverDn.h +test -f $PREFIX/targets/x86_64-linux/include/cusolverMg.h +test -f $PREFIX/targets/x86_64-linux/include/cusolverRf.h +test -f $PREFIX/targets/x86_64-linux/include/cusolverSp.h +test -f $PREFIX/targets/x86_64-linux/include/cusolverSp_LOWLEVEL_PREVIEW.h +test -f $PREFIX/targets/x86_64-linux/include/cusolver_common.h +test -L $PREFIX/targets/x86_64-linux/lib/libcusolver.so +test -L $PREFIX/targets/x86_64-linux/lib/libcusolverMg.so +test -f $PREFIX/targets/x86_64-linux/lib/stubs/libcusolver.so +test -f $PREFIX/targets/x86_64-linux/lib/stubs/libcusolverMg.so +exit 0 diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/lib/pkgconfig/cusolver-12.8.pc b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/lib/pkgconfig/cusolver-12.8.pc new file mode 100644 index 0000000000000000000000000000000000000000..3847e2aad7716230376b0777c73f550e5895dcbd --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/lib/pkgconfig/cusolver-12.8.pc @@ -0,0 +1,9 @@ +cudaroot=/conda/miniconda3/conda-bld/libcusolver_1739450213129/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac +libdir=${cudaroot}/targets/x86_64-linux/lib +includedir=${cudaroot}/targets/x86_64-linux/include + +Name: cusolver +Description: A LAPACK-like library on dense and sparse linear algebra +Version: 12.8 +Libs: -L${libdir} -lcusolver +Cflags: -I${includedir} diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverDn.h b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverDn.h new file mode 100644 index 0000000000000000000000000000000000000000..e2c011d2f1d8c1fd4a25729ee851c09599c0c4a3 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverDn.h @@ -0,0 +1,5009 @@ +/* + * Copyright 2014 NVIDIA Corporation. All rights reserved. + * + * NOTICE TO LICENSEE: + * + * This source code and/or documentation ("Licensed Deliverables") are + * subject to NVIDIA intellectual property rights under U.S. and + * international Copyright laws. + * + * These Licensed Deliverables contained herein is PROPRIETARY and + * CONFIDENTIAL to NVIDIA and is being provided under the terms and + * conditions of a form of NVIDIA software license agreement by and + * between NVIDIA and Licensee ("License Agreement") or electronically + * accepted by Licensee. Notwithstanding any terms or conditions to + * the contrary in the License Agreement, reproduction or disclosure + * of the Licensed Deliverables to any third party without the express + * written consent of NVIDIA is prohibited. + * + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE + * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS + * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. + * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED + * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, + * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY + * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY + * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + * OF THESE LICENSED DELIVERABLES. + * + * U.S. Government End Users. These Licensed Deliverables are a + * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT + * 1995), consisting of "commercial computer software" and "commercial + * computer software documentation" as such terms are used in 48 + * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government + * only as a commercial end item. Consistent with 48 C.F.R.12.212 and + * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all + * U.S. Government End Users acquire the Licensed Deliverables with + * only those rights set forth herein. + * + * Any use of the Licensed Deliverables in individual and commercial + * software must include, in the user documentation and internal + * comments to the code, the above Disclaimer and U.S. Government End + * Users Notice. + */ + +/* cuSolverDN : Dense Linear Algebra Library + +*/ + +#if !defined(CUSOLVERDN_H_) + #define CUSOLVERDN_H_ + +struct cusolverDnContext; +typedef struct cusolverDnContext *cusolverDnHandle_t; + +struct syevjInfo; +typedef struct syevjInfo *syevjInfo_t; + +struct gesvdjInfo; +typedef struct gesvdjInfo *gesvdjInfo_t; + +//------------------------------------------------------ +// opaque cusolverDnIRS structure for IRS solver +struct cusolverDnIRSParams; +typedef struct cusolverDnIRSParams *cusolverDnIRSParams_t; + +struct cusolverDnIRSInfos; +typedef struct cusolverDnIRSInfos *cusolverDnIRSInfos_t; +//------------------------------------------------------ + +struct cusolverDnParams; +typedef struct cusolverDnParams *cusolverDnParams_t; + +typedef enum { + CUSOLVERDN_GETRF = 0, + CUSOLVERDN_POTRF = 1 +} cusolverDnFunction_t; + +typedef enum { + CUSOLVER_DETERMINISTIC_RESULTS = 1, + CUSOLVER_ALLOW_NON_DETERMINISTIC_RESULTS = 2 +} cusolverDeterministicMode_t; + + #include + + #include "cuComplex.h" /* import complex data type */ + #include "cublas_v2.h" + #include "cusolver_common.h" + + /*******************************************************************************/ + #ifdef __cplusplus +extern "C" { + #endif + + cusolverStatus_t CUSOLVERAPI cusolverDnCreate(cusolverDnHandle_t *handle); + cusolverStatus_t CUSOLVERAPI cusolverDnDestroy(cusolverDnHandle_t handle); + cusolverStatus_t CUSOLVERAPI + cusolverDnSetStream(cusolverDnHandle_t handle, cudaStream_t streamId); + cusolverStatus_t CUSOLVERAPI + cusolverDnGetStream(cusolverDnHandle_t handle, cudaStream_t *streamId); + + //============================================================ + // Deterministic Mode + //============================================================ + cusolverStatus_t CUSOLVERAPI cusolverDnSetDeterministicMode(cusolverDnHandle_t + handle, cusolverDeterministicMode_t mode); + cusolverStatus_t CUSOLVERAPI cusolverDnGetDeterministicMode(cusolverDnHandle_t + handle, cusolverDeterministicMode_t* mode); + + //============================================================ + // IRS headers + //============================================================ + + // ============================================================================= + // IRS helper function API + // ============================================================================= + cusolverStatus_t CUSOLVERAPI + cusolverDnIRSParamsCreate(cusolverDnIRSParams_t *params_ptr); + + cusolverStatus_t CUSOLVERAPI + cusolverDnIRSParamsDestroy(cusolverDnIRSParams_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSParamsSetRefinementSolver( + cusolverDnIRSParams_t params, + cusolverIRSRefinement_t refinement_solver); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSParamsSetSolverMainPrecision( + cusolverDnIRSParams_t params, + cusolverPrecType_t solver_main_precision); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSParamsSetSolverLowestPrecision( + cusolverDnIRSParams_t params, + cusolverPrecType_t solver_lowest_precision); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSParamsSetSolverPrecisions( + cusolverDnIRSParams_t params, + cusolverPrecType_t solver_main_precision, + cusolverPrecType_t solver_lowest_precision); + + cusolverStatus_t CUSOLVERAPI + cusolverDnIRSParamsSetTol(cusolverDnIRSParams_t params, double val); + + cusolverStatus_t CUSOLVERAPI + cusolverDnIRSParamsSetTolInner(cusolverDnIRSParams_t params, double val); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSParamsSetMaxIters( + cusolverDnIRSParams_t params, + cusolver_int_t maxiters); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSParamsSetMaxItersInner( + cusolverDnIRSParams_t params, + cusolver_int_t maxiters_inner); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSParamsGetMaxIters( + cusolverDnIRSParams_t params, + cusolver_int_t * maxiters); + + cusolverStatus_t CUSOLVERAPI + cusolverDnIRSParamsEnableFallback(cusolverDnIRSParams_t params); + + cusolverStatus_t CUSOLVERAPI + cusolverDnIRSParamsDisableFallback(cusolverDnIRSParams_t params); + + // ============================================================================= + // cusolverDnIRSInfos prototypes + // ============================================================================= + cusolverStatus_t CUSOLVERAPI + cusolverDnIRSInfosDestroy(cusolverDnIRSInfos_t infos); + + cusolverStatus_t CUSOLVERAPI + cusolverDnIRSInfosCreate(cusolverDnIRSInfos_t *infos_ptr); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSInfosGetNiters( + cusolverDnIRSInfos_t infos, + cusolver_int_t * niters); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSInfosGetOuterNiters( + cusolverDnIRSInfos_t infos, + cusolver_int_t * outer_niters); + + cusolverStatus_t CUSOLVERAPI + cusolverDnIRSInfosRequestResidual(cusolverDnIRSInfos_t infos); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSInfosGetResidualHistory( + cusolverDnIRSInfos_t infos, + void ** residual_history); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSInfosGetMaxIters( + cusolverDnIRSInfos_t infos, + cusolver_int_t * maxiters); + + //============================================================ + // IRS functions API + //============================================================ + + /*******************************************************************************/ /* + * [ZZ, ZC, ZK, ZE, ZY, CC, CK, CE, CY, DD, DS, DH, DB, DX, SS, SH, SB, SX]gesv + * users API Prototypes */ + /*******************************************************************************/ + cusolverStatus_t CUSOLVERAPI cusolverDnZZgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZCgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZKgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZEgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZYgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCCgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCEgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCKgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCYgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDDgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDSgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDHgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDBgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDXgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnSSgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnSHgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnSBgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnSXgesv( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + /*******************************************************************************/ + + /*******************************************************************************/ /* + * [ZZ, ZC, ZK, ZE, ZY, CC, CK, CE, CY, DD, DS, DH, DB, DX, SS, SH, SB, SX]gesv_bufferSize + * users API Prototypes */ + /*******************************************************************************/ + cusolverStatus_t CUSOLVERAPI cusolverDnZZgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnZCgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnZKgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnZEgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnZYgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnCCgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnCKgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnCEgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnCYgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnDDgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnDSgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnDHgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnDBgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnDXgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnSSgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnSHgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnSBgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnSXgesv_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + cusolver_int_t * dipiv, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + /*******************************************************************************/ + + /*******************************************************************************/ /* + * [ZZ, ZC, ZK, ZE, ZY, CC, CK, CE, CY, DD, DS, DH, DB, DX, SS, SH, SB, SX]gels + * users API Prototypes */ + /*******************************************************************************/ + cusolverStatus_t CUSOLVERAPI cusolverDnZZgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZCgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZKgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZEgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZYgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCCgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCKgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCEgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCYgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDDgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDSgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDHgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDBgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDXgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnSSgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnSHgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnSBgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnSXgels( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * iter, + cusolver_int_t * d_info); + /*******************************************************************************/ + + /*******************************************************************************/ /* + * [ZZ, ZC, ZK, ZE, ZY, CC, CK, CE, CY, DD, DS, DH, DB, DX, SS, SH, SB, SX]gels_bufferSize + * API prototypes */ + /*******************************************************************************/ + cusolverStatus_t CUSOLVERAPI cusolverDnZZgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnZCgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnZKgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnZEgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnZYgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuDoubleComplex * dA, + cusolver_int_t ldda, + cuDoubleComplex * dB, + cusolver_int_t lddb, + cuDoubleComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnCCgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnCKgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnCEgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnCYgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + cuComplex * dA, + cusolver_int_t ldda, + cuComplex * dB, + cusolver_int_t lddb, + cuComplex * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnDDgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnDSgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnDHgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnDBgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnDXgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + double * dA, + cusolver_int_t ldda, + double * dB, + cusolver_int_t lddb, + double * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnSSgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnSHgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnSBgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnSXgels_bufferSize( + cusolverDnHandle_t handle, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + float * dA, + cusolver_int_t ldda, + float * dB, + cusolver_int_t lddb, + float * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t * lwork_bytes); + /*******************************************************************************/ + + /*******************************************************************************/ /* + * expert users API for IRS Prototypes + * */ + /*******************************************************************************/ + cusolverStatus_t CUSOLVERAPI cusolverDnIRSXgesv( + cusolverDnHandle_t handle, + cusolverDnIRSParams_t gesv_irs_params, + cusolverDnIRSInfos_t gesv_irs_infos, + cusolver_int_t n, + cusolver_int_t nrhs, + void * dA, + cusolver_int_t ldda, + void * dB, + cusolver_int_t lddb, + void * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * niters, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSXgesv_bufferSize( + cusolverDnHandle_t handle, + cusolverDnIRSParams_t params, + cusolver_int_t n, + cusolver_int_t nrhs, + size_t * lwork_bytes); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSXgels( + cusolverDnHandle_t handle, + cusolverDnIRSParams_t gels_irs_params, + cusolverDnIRSInfos_t gels_irs_infos, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + void * dA, + cusolver_int_t ldda, + void * dB, + cusolver_int_t lddb, + void * dX, + cusolver_int_t lddx, + void * dWorkspace, + size_t lwork_bytes, + cusolver_int_t * niters, + cusolver_int_t * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnIRSXgels_bufferSize( + cusolverDnHandle_t handle, + cusolverDnIRSParams_t params, + cusolver_int_t m, + cusolver_int_t n, + cusolver_int_t nrhs, + size_t * lwork_bytes); + /*******************************************************************************/ + + /* Cholesky factorization and its solver */ + cusolverStatus_t CUSOLVERAPI cusolverDnSpotrf_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDpotrf_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCpotrf_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZpotrf_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSpotrf( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float * Workspace, + int Lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnDpotrf( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double * Workspace, + int Lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnCpotrf( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + cuComplex * Workspace, + int Lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnZpotrf( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + cuDoubleComplex * Workspace, + int Lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnSpotrs( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + int nrhs, + const float * A, + int lda, + float * B, + int ldb, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnDpotrs( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + int nrhs, + const double * A, + int lda, + double * B, + int ldb, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnCpotrs( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + int nrhs, + const cuComplex * A, + int lda, + cuComplex * B, + int ldb, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnZpotrs( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + int nrhs, + const cuDoubleComplex *A, + int lda, + cuDoubleComplex * B, + int ldb, + int * devInfo); + + /* batched Cholesky factorization and its solver */ + cusolverStatus_t CUSOLVERAPI cusolverDnSpotrfBatched( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * Aarray[], + int lda, + int * infoArray, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnDpotrfBatched( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * Aarray[], + int lda, + int * infoArray, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnCpotrfBatched( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * Aarray[], + int lda, + int * infoArray, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnZpotrfBatched( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * Aarray[], + int lda, + int * infoArray, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnSpotrsBatched( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + int nrhs, /* only support rhs = 1*/ + float * A[], + int lda, + float * B[], + int ldb, + int * d_info, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnDpotrsBatched( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + int nrhs, /* only support rhs = 1*/ + double * A[], + int lda, + double * B[], + int ldb, + int * d_info, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnCpotrsBatched( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + int nrhs, /* only support rhs = 1*/ + cuComplex * A[], + int lda, + cuComplex * B[], + int ldb, + int * d_info, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnZpotrsBatched( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + int nrhs, /* only support rhs = 1*/ + cuDoubleComplex * A[], + int lda, + cuDoubleComplex * B[], + int ldb, + int * d_info, + int batchSize); + + /* s.p.d. matrix inversion (POTRI) and auxiliary routines (TRTRI and LAUUM) */ + cusolverStatus_t CUSOLVERAPI cusolverDnSpotri_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDpotri_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCpotri_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZpotri_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSpotri( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float * work, + int lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnDpotri( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double * work, + int lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnCpotri( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + cuComplex * work, + int lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnZpotri( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + cuDoubleComplex * work, + int lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnXtrtri_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + cublasDiagType_t diag, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXtrtri( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + cublasDiagType_t diag, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * devInfo); + + /* lauum, auxiliar routine for s.p.d matrix inversion */ + cusolverStatus_t CUSOLVERAPI cusolverDnSlauum_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDlauum_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnClauum_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZlauum_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSlauum( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float * work, + int lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnDlauum( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double * work, + int lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnClauum( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + cuComplex * work, + int lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnZlauum( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + cuDoubleComplex * work, + int lwork, + int * devInfo); + + /* LU Factorization */ + cusolverStatus_t CUSOLVERAPI cusolverDnSgetrf_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + float * A, + int lda, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgetrf_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + double * A, + int lda, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgetrf_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + cuComplex * A, + int lda, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgetrf_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + cuDoubleComplex * A, + int lda, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSgetrf( + cusolverDnHandle_t handle, + int m, + int n, + float * A, + int lda, + float * Workspace, + int * devIpiv, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgetrf( + cusolverDnHandle_t handle, + int m, + int n, + double * A, + int lda, + double * Workspace, + int * devIpiv, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgetrf( + cusolverDnHandle_t handle, + int m, + int n, + cuComplex * A, + int lda, + cuComplex * Workspace, + int * devIpiv, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgetrf( + cusolverDnHandle_t handle, + int m, + int n, + cuDoubleComplex * A, + int lda, + cuDoubleComplex * Workspace, + int * devIpiv, + int * devInfo); + + /* Row pivoting */ + cusolverStatus_t CUSOLVERAPI cusolverDnSlaswp( + cusolverDnHandle_t handle, + int n, + float * A, + int lda, + int k1, + int k2, + const int * devIpiv, + int incx); + + cusolverStatus_t CUSOLVERAPI cusolverDnDlaswp( + cusolverDnHandle_t handle, + int n, + double * A, + int lda, + int k1, + int k2, + const int * devIpiv, + int incx); + + cusolverStatus_t CUSOLVERAPI cusolverDnClaswp( + cusolverDnHandle_t handle, + int n, + cuComplex * A, + int lda, + int k1, + int k2, + const int * devIpiv, + int incx); + + cusolverStatus_t CUSOLVERAPI cusolverDnZlaswp( + cusolverDnHandle_t handle, + int n, + cuDoubleComplex * A, + int lda, + int k1, + int k2, + const int * devIpiv, + int incx); + + /* LU solve */ + cusolverStatus_t CUSOLVERAPI cusolverDnSgetrs( + cusolverDnHandle_t handle, + cublasOperation_t trans, + int n, + int nrhs, + const float * A, + int lda, + const int * devIpiv, + float * B, + int ldb, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgetrs( + cusolverDnHandle_t handle, + cublasOperation_t trans, + int n, + int nrhs, + const double * A, + int lda, + const int * devIpiv, + double * B, + int ldb, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgetrs( + cusolverDnHandle_t handle, + cublasOperation_t trans, + int n, + int nrhs, + const cuComplex * A, + int lda, + const int * devIpiv, + cuComplex * B, + int ldb, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgetrs( + cusolverDnHandle_t handle, + cublasOperation_t trans, + int n, + int nrhs, + const cuDoubleComplex *A, + int lda, + const int * devIpiv, + cuDoubleComplex * B, + int ldb, + int * devInfo); + + /* QR factorization */ + cusolverStatus_t CUSOLVERAPI cusolverDnSgeqrf_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + float * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgeqrf_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + double * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgeqrf_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + cuComplex * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgeqrf_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + cuDoubleComplex * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSgeqrf( + cusolverDnHandle_t handle, + int m, + int n, + float * A, + int lda, + float * TAU, + float * Workspace, + int Lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgeqrf( + cusolverDnHandle_t handle, + int m, + int n, + double * A, + int lda, + double * TAU, + double * Workspace, + int Lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgeqrf( + cusolverDnHandle_t handle, + int m, + int n, + cuComplex * A, + int lda, + cuComplex * TAU, + cuComplex * Workspace, + int Lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgeqrf( + cusolverDnHandle_t handle, + int m, + int n, + cuDoubleComplex * A, + int lda, + cuDoubleComplex * TAU, + cuDoubleComplex * Workspace, + int Lwork, + int * devInfo); + + /* generate unitary matrix Q from QR factorization */ + cusolverStatus_t CUSOLVERAPI cusolverDnSorgqr_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int k, + const float * A, + int lda, + const float * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDorgqr_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int k, + const double * A, + int lda, + const double * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCungqr_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int k, + const cuComplex * A, + int lda, + const cuComplex * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZungqr_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int k, + const cuDoubleComplex *A, + int lda, + const cuDoubleComplex *tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSorgqr( + cusolverDnHandle_t handle, + int m, + int n, + int k, + float * A, + int lda, + const float * tau, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDorgqr( + cusolverDnHandle_t handle, + int m, + int n, + int k, + double * A, + int lda, + const double * tau, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCungqr( + cusolverDnHandle_t handle, + int m, + int n, + int k, + cuComplex * A, + int lda, + const cuComplex * tau, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZungqr( + cusolverDnHandle_t handle, + int m, + int n, + int k, + cuDoubleComplex * A, + int lda, + const cuDoubleComplex *tau, + cuDoubleComplex * work, + int lwork, + int * info); + + /* compute Q**T*b in solve min||A*x = b|| */ + cusolverStatus_t CUSOLVERAPI cusolverDnSormqr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasOperation_t trans, + int m, + int n, + int k, + const float * A, + int lda, + const float * tau, + const float * C, + int ldc, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDormqr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasOperation_t trans, + int m, + int n, + int k, + const double * A, + int lda, + const double * tau, + const double * C, + int ldc, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCunmqr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasOperation_t trans, + int m, + int n, + int k, + const cuComplex * A, + int lda, + const cuComplex * tau, + const cuComplex * C, + int ldc, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZunmqr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasOperation_t trans, + int m, + int n, + int k, + const cuDoubleComplex *A, + int lda, + const cuDoubleComplex *tau, + const cuDoubleComplex *C, + int ldc, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSormqr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasOperation_t trans, + int m, + int n, + int k, + const float * A, + int lda, + const float * tau, + float * C, + int ldc, + float * work, + int lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnDormqr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasOperation_t trans, + int m, + int n, + int k, + const double * A, + int lda, + const double * tau, + double * C, + int ldc, + double * work, + int lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnCunmqr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasOperation_t trans, + int m, + int n, + int k, + const cuComplex * A, + int lda, + const cuComplex * tau, + cuComplex * C, + int ldc, + cuComplex * work, + int lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnZunmqr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasOperation_t trans, + int m, + int n, + int k, + const cuDoubleComplex *A, + int lda, + const cuDoubleComplex *tau, + cuDoubleComplex * C, + int ldc, + cuDoubleComplex * work, + int lwork, + int * devInfo); + + /* L*D*L**T,U*D*U**T factorization */ + cusolverStatus_t CUSOLVERAPI cusolverDnSsytrf_bufferSize( + cusolverDnHandle_t handle, + int n, + float * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsytrf_bufferSize( + cusolverDnHandle_t handle, + int n, + double * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCsytrf_bufferSize( + cusolverDnHandle_t handle, + int n, + cuComplex * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZsytrf_bufferSize( + cusolverDnHandle_t handle, + int n, + cuDoubleComplex * A, + int lda, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsytrf( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + int * ipiv, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsytrf( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + int * ipiv, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCsytrf( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + int * ipiv, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZsytrf( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + int * ipiv, + cuDoubleComplex * work, + int lwork, + int * info); + + /* Symmetric indefinite solve (SYTRS) */ + cusolverStatus_t CUSOLVERAPI cusolverDnXsytrs_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int64_t n, + int64_t nrhs, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + const int64_t * ipiv, + cudaDataType dataTypeB, + void * B, + int64_t ldb, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXsytrs( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int64_t n, + int64_t nrhs, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + const int64_t * ipiv, + cudaDataType dataTypeB, + void * B, + int64_t ldb, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * info); + + /* Symmetric indefinite inversion (sytri) */ + cusolverStatus_t CUSOLVERAPI cusolverDnSsytri_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + const int * ipiv, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsytri_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + const int * ipiv, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCsytri_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + const int * ipiv, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZsytri_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + const int * ipiv, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsytri( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + const int * ipiv, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsytri( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + const int * ipiv, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCsytri( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + const int * ipiv, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZsytri( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + const int * ipiv, + cuDoubleComplex * work, + int lwork, + int * info); + + /* bidiagonal factorization */ + cusolverStatus_t CUSOLVERAPI cusolverDnSgebrd_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgebrd_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgebrd_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgebrd_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int * Lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSgebrd( + cusolverDnHandle_t handle, + int m, + int n, + float * A, + int lda, + float * D, + float * E, + float * TAUQ, + float * TAUP, + float * Work, + int Lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgebrd( + cusolverDnHandle_t handle, + int m, + int n, + double * A, + int lda, + double * D, + double * E, + double * TAUQ, + double * TAUP, + double * Work, + int Lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgebrd( + cusolverDnHandle_t handle, + int m, + int n, + cuComplex * A, + int lda, + float * D, + float * E, + cuComplex * TAUQ, + cuComplex * TAUP, + cuComplex * Work, + int Lwork, + int * devInfo); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgebrd( + cusolverDnHandle_t handle, + int m, + int n, + cuDoubleComplex * A, + int lda, + double * D, + double * E, + cuDoubleComplex * TAUQ, + cuDoubleComplex * TAUP, + cuDoubleComplex * Work, + int Lwork, + int * devInfo); + + /* generates one of the unitary matrices Q or P**T determined by GEBRD*/ + cusolverStatus_t CUSOLVERAPI cusolverDnSorgbr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + int m, + int n, + int k, + const float * A, + int lda, + const float * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDorgbr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + int m, + int n, + int k, + const double * A, + int lda, + const double * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCungbr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + int m, + int n, + int k, + const cuComplex * A, + int lda, + const cuComplex * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZungbr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + int m, + int n, + int k, + const cuDoubleComplex *A, + int lda, + const cuDoubleComplex *tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSorgbr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + int m, + int n, + int k, + float * A, + int lda, + const float * tau, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDorgbr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + int m, + int n, + int k, + double * A, + int lda, + const double * tau, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCungbr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + int m, + int n, + int k, + cuComplex * A, + int lda, + const cuComplex * tau, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZungbr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + int m, + int n, + int k, + cuDoubleComplex * A, + int lda, + const cuDoubleComplex *tau, + cuDoubleComplex * work, + int lwork, + int * info); + + /* tridiagonal factorization */ + cusolverStatus_t CUSOLVERAPI cusolverDnSsytrd_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + const float * A, + int lda, + const float * d, + const float * e, + const float * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsytrd_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + const double * A, + int lda, + const double * d, + const double * e, + const double * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnChetrd_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + const cuComplex * A, + int lda, + const float * d, + const float * e, + const cuComplex * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZhetrd_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + const cuDoubleComplex *A, + int lda, + const double * d, + const double * e, + const cuDoubleComplex *tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsytrd( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float * d, + float * e, + float * tau, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsytrd( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double * d, + double * e, + double * tau, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnChetrd( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + float * d, + float * e, + cuComplex * tau, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZhetrd( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + double * d, + double * e, + cuDoubleComplex * tau, + cuDoubleComplex * work, + int lwork, + int * info); + + /* generate unitary Q comes from sytrd */ + cusolverStatus_t CUSOLVERAPI cusolverDnSorgtr_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + const float * A, + int lda, + const float * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDorgtr_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + const double * A, + int lda, + const double * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCungtr_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + const cuComplex * A, + int lda, + const cuComplex * tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZungtr_bufferSize( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + const cuDoubleComplex *A, + int lda, + const cuDoubleComplex *tau, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSorgtr( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + const float * tau, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDorgtr( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + const double * tau, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCungtr( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + const cuComplex * tau, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZungtr( + cusolverDnHandle_t handle, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + const cuDoubleComplex *tau, + cuDoubleComplex * work, + int lwork, + int * info); + + /* compute op(Q)*C or C*op(Q) where Q comes from sytrd */ + cusolverStatus_t CUSOLVERAPI cusolverDnSormtr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasFillMode_t uplo, + cublasOperation_t trans, + int m, + int n, + const float * A, + int lda, + const float * tau, + const float * C, + int ldc, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDormtr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasFillMode_t uplo, + cublasOperation_t trans, + int m, + int n, + const double * A, + int lda, + const double * tau, + const double * C, + int ldc, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCunmtr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasFillMode_t uplo, + cublasOperation_t trans, + int m, + int n, + const cuComplex * A, + int lda, + const cuComplex * tau, + const cuComplex * C, + int ldc, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZunmtr_bufferSize( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasFillMode_t uplo, + cublasOperation_t trans, + int m, + int n, + const cuDoubleComplex *A, + int lda, + const cuDoubleComplex *tau, + const cuDoubleComplex *C, + int ldc, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSormtr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasFillMode_t uplo, + cublasOperation_t trans, + int m, + int n, + float * A, + int lda, + float * tau, + float * C, + int ldc, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDormtr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasFillMode_t uplo, + cublasOperation_t trans, + int m, + int n, + double * A, + int lda, + double * tau, + double * C, + int ldc, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCunmtr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasFillMode_t uplo, + cublasOperation_t trans, + int m, + int n, + cuComplex * A, + int lda, + cuComplex * tau, + cuComplex * C, + int ldc, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZunmtr( + cusolverDnHandle_t handle, + cublasSideMode_t side, + cublasFillMode_t uplo, + cublasOperation_t trans, + int m, + int n, + cuDoubleComplex * A, + int lda, + cuDoubleComplex * tau, + cuDoubleComplex * C, + int ldc, + cuDoubleComplex * work, + int lwork, + int * info); + + /* singular value decomposition, A = U * Sigma * V^H */ + cusolverStatus_t CUSOLVERAPI cusolverDnSgesvd_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgesvd_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgesvd_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgesvd_bufferSize( + cusolverDnHandle_t handle, + int m, + int n, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSgesvd( + cusolverDnHandle_t handle, + signed char jobu, + signed char jobvt, + int m, + int n, + float * A, + int lda, + float * S, + float * U, + int ldu, + float * VT, + int ldvt, + float * work, + int lwork, + float * rwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgesvd( + cusolverDnHandle_t handle, + signed char jobu, + signed char jobvt, + int m, + int n, + double * A, + int lda, + double * S, + double * U, + int ldu, + double * VT, + int ldvt, + double * work, + int lwork, + double * rwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgesvd( + cusolverDnHandle_t handle, + signed char jobu, + signed char jobvt, + int m, + int n, + cuComplex * A, + int lda, + float * S, + cuComplex * U, + int ldu, + cuComplex * VT, + int ldvt, + cuComplex * work, + int lwork, + float * rwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgesvd( + cusolverDnHandle_t handle, + signed char jobu, + signed char jobvt, + int m, + int n, + cuDoubleComplex * A, + int lda, + double * S, + cuDoubleComplex * U, + int ldu, + cuDoubleComplex * VT, + int ldvt, + cuDoubleComplex * work, + int lwork, + double * rwork, + int * info); + + /* standard symmetric eigenvalue solver, A*x = lambda*x, by divide-and-conquer + */ + cusolverStatus_t CUSOLVERAPI cusolverDnSsyevd_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const float * A, + int lda, + const float * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsyevd_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const double * A, + int lda, + const double * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCheevd_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const cuComplex * A, + int lda, + const float * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZheevd_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const cuDoubleComplex *A, + int lda, + const double * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsyevd( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float * W, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsyevd( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double * W, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCheevd( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + float * W, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZheevd( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + double * W, + cuDoubleComplex * work, + int lwork, + int * info); + + /* standard selective symmetric eigenvalue solver, A*x = lambda*x, by + * divide-and-conquer */ + cusolverStatus_t CUSOLVERAPI cusolverDnSsyevdx_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + const float * A, + int lda, + float vl, + float vu, + int il, + int iu, + int * meig, + const float * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsyevdx_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + const double * A, + int lda, + double vl, + double vu, + int il, + int iu, + int * meig, + const double * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnCheevdx_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + const cuComplex * A, + int lda, + float vl, + float vu, + int il, + int iu, + int * meig, + const float * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZheevdx_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + const cuDoubleComplex *A, + int lda, + double vl, + double vu, + int il, + int iu, + int * meig, + const double * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsyevdx( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float vl, + float vu, + int il, + int iu, + int * meig, + float * W, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsyevdx( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double vl, + double vu, + int il, + int iu, + int * meig, + double * W, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCheevdx( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + float vl, + float vu, + int il, + int iu, + int * meig, + float * W, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZheevdx( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + double vl, + double vu, + int il, + int iu, + int * meig, + double * W, + cuDoubleComplex * work, + int lwork, + int * info); + + /* selective generalized symmetric eigenvalue solver, A*x = lambda*B*x, by + * divide-and-conquer */ + cusolverStatus_t CUSOLVERAPI cusolverDnSsygvdx_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + const float * A, + int lda, + const float * B, + int ldb, + float vl, + float vu, + int il, + int iu, + int * meig, + const float * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsygvdx_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + const double * A, + int lda, + const double * B, + int ldb, + double vl, + double vu, + int il, + int iu, + int * meig, + const double * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnChegvdx_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + const cuComplex * A, + int lda, + const cuComplex * B, + int ldb, + float vl, + float vu, + int il, + int iu, + int * meig, + const float * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZhegvdx_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + const cuDoubleComplex *A, + int lda, + const cuDoubleComplex *B, + int ldb, + double vl, + double vu, + int il, + int iu, + int * meig, + const double * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsygvdx( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float * B, + int ldb, + float vl, + float vu, + int il, + int iu, + int * meig, + float * W, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsygvdx( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double * B, + int ldb, + double vl, + double vu, + int il, + int iu, + int * meig, + double * W, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnChegvdx( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + cuComplex * B, + int ldb, + float vl, + float vu, + int il, + int iu, + int * meig, + float * W, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZhegvdx( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + cuDoubleComplex * B, + int ldb, + double vl, + double vu, + int il, + int iu, + int * meig, + double * W, + cuDoubleComplex * work, + int lwork, + int * info); + + /* generalized symmetric eigenvalue solver, A*x = lambda*B*x, by + * divide-and-conquer */ + cusolverStatus_t CUSOLVERAPI cusolverDnSsygvd_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const float * A, + int lda, + const float * B, + int ldb, + const float * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsygvd_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const double * A, + int lda, + const double * B, + int ldb, + const double * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnChegvd_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const cuComplex * A, + int lda, + const cuComplex * B, + int ldb, + const float * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnZhegvd_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const cuDoubleComplex *A, + int lda, + const cuDoubleComplex *B, + int ldb, + const double * W, + int * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsygvd( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float * B, + int ldb, + float * W, + float * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsygvd( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double * B, + int ldb, + double * W, + double * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnChegvd( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + cuComplex * B, + int ldb, + float * W, + cuComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnZhegvd( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + cuDoubleComplex * B, + int ldb, + double * W, + cuDoubleComplex * work, + int lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverDnCreateSyevjInfo(syevjInfo_t *info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDestroySyevjInfo(syevjInfo_t info); + + cusolverStatus_t CUSOLVERAPI + cusolverDnXsyevjSetTolerance(syevjInfo_t info, double tolerance); + + cusolverStatus_t CUSOLVERAPI + cusolverDnXsyevjSetMaxSweeps(syevjInfo_t info, int max_sweeps); + + cusolverStatus_t CUSOLVERAPI + cusolverDnXsyevjSetSortEig(syevjInfo_t info, int sort_eig); + + cusolverStatus_t CUSOLVERAPI cusolverDnXsyevjGetResidual( + cusolverDnHandle_t handle, + syevjInfo_t info, + double * residual); + + cusolverStatus_t CUSOLVERAPI cusolverDnXsyevjGetSweeps( + cusolverDnHandle_t handle, + syevjInfo_t info, + int * executed_sweeps); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsyevjBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const float * A, + int lda, + const float * W, + int * lwork, + syevjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsyevjBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const double * A, + int lda, + const double * W, + int * lwork, + syevjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnCheevjBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const cuComplex * A, + int lda, + const float * W, + int * lwork, + syevjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnZheevjBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const cuDoubleComplex *A, + int lda, + const double * W, + int * lwork, + syevjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsyevjBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float * W, + float * work, + int lwork, + int * info, + syevjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsyevjBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double * W, + double * work, + int lwork, + int * info, + syevjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnCheevjBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + float * W, + cuComplex * work, + int lwork, + int * info, + syevjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnZheevjBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + double * W, + cuDoubleComplex * work, + int lwork, + int * info, + syevjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsyevj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const float * A, + int lda, + const float * W, + int * lwork, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsyevj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const double * A, + int lda, + const double * W, + int * lwork, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnCheevj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const cuComplex * A, + int lda, + const float * W, + int * lwork, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnZheevj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const cuDoubleComplex *A, + int lda, + const double * W, + int * lwork, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsyevj( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float * W, + float * work, + int lwork, + int * info, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsyevj( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double * W, + double * work, + int lwork, + int * info, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnCheevj( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + float * W, + cuComplex * work, + int lwork, + int * info, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnZheevj( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + double * W, + cuDoubleComplex * work, + int lwork, + int * info, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsygvj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const float * A, + int lda, + const float * B, + int ldb, + const float * W, + int * lwork, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsygvj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const double * A, + int lda, + const double * B, + int ldb, + const double * W, + int * lwork, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnChegvj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const cuComplex * A, + int lda, + const cuComplex * B, + int ldb, + const float * W, + int * lwork, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnZhegvj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + const cuDoubleComplex *A, + int lda, + const cuDoubleComplex *B, + int ldb, + const double * W, + int * lwork, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnSsygvj( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + float * A, + int lda, + float * B, + int ldb, + float * W, + float * work, + int lwork, + int * info, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnDsygvj( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + double * A, + int lda, + double * B, + int ldb, + double * W, + double * work, + int lwork, + int * info, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnChegvj( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + cuComplex * A, + int lda, + cuComplex * B, + int ldb, + float * W, + cuComplex * work, + int lwork, + int * info, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnZhegvj( + cusolverDnHandle_t handle, + cusolverEigType_t itype, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int n, + cuDoubleComplex * A, + int lda, + cuDoubleComplex * B, + int ldb, + double * W, + cuDoubleComplex * work, + int lwork, + int * info, + syevjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnCreateGesvdjInfo(gesvdjInfo_t *info); + + cusolverStatus_t CUSOLVERAPI cusolverDnDestroyGesvdjInfo(gesvdjInfo_t info); + + cusolverStatus_t CUSOLVERAPI + cusolverDnXgesvdjSetTolerance(gesvdjInfo_t info, double tolerance); + + cusolverStatus_t CUSOLVERAPI + cusolverDnXgesvdjSetMaxSweeps(gesvdjInfo_t info, int max_sweeps); + + cusolverStatus_t CUSOLVERAPI + cusolverDnXgesvdjSetSortEig(gesvdjInfo_t info, int sort_svd); + + cusolverStatus_t CUSOLVERAPI cusolverDnXgesvdjGetResidual( + cusolverDnHandle_t handle, + gesvdjInfo_t info, + double * residual); + + cusolverStatus_t CUSOLVERAPI cusolverDnXgesvdjGetSweeps( + cusolverDnHandle_t handle, + gesvdjInfo_t info, + int * executed_sweeps); + + cusolverStatus_t CUSOLVERAPI cusolverDnSgesvdjBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int m, + int n, + const float * A, + int lda, + const float * S, + const float * U, + int ldu, + const float * V, + int ldv, + int * lwork, + gesvdjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgesvdjBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int m, + int n, + const double * A, + int lda, + const double * S, + const double * U, + int ldu, + const double * V, + int ldv, + int * lwork, + gesvdjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgesvdjBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int m, + int n, + const cuComplex * A, + int lda, + const float * S, + const cuComplex * U, + int ldu, + const cuComplex * V, + int ldv, + int * lwork, + gesvdjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgesvdjBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int m, + int n, + const cuDoubleComplex *A, + int lda, + const double * S, + const cuDoubleComplex *U, + int ldu, + const cuDoubleComplex *V, + int ldv, + int * lwork, + gesvdjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnSgesvdjBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int m, + int n, + float * A, + int lda, + float * S, + float * U, + int ldu, + float * V, + int ldv, + float * work, + int lwork, + int * info, + gesvdjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgesvdjBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int m, + int n, + double * A, + int lda, + double * S, + double * U, + int ldu, + double * V, + int ldv, + double * work, + int lwork, + int * info, + gesvdjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgesvdjBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int m, + int n, + cuComplex * A, + int lda, + float * S, + cuComplex * U, + int ldu, + cuComplex * V, + int ldv, + cuComplex * work, + int lwork, + int * info, + gesvdjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgesvdjBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int m, + int n, + cuDoubleComplex * A, + int lda, + double * S, + cuDoubleComplex * U, + int ldu, + cuDoubleComplex * V, + int ldv, + cuDoubleComplex * work, + int lwork, + int * info, + gesvdjInfo_t params, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnSgesvdj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int econ, + int m, + int n, + const float * A, + int lda, + const float * S, + const float * U, + int ldu, + const float * V, + int ldv, + int * lwork, + gesvdjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgesvdj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int econ, + int m, + int n, + const double * A, + int lda, + const double * S, + const double * U, + int ldu, + const double * V, + int ldv, + int * lwork, + gesvdjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgesvdj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int econ, + int m, + int n, + const cuComplex * A, + int lda, + const float * S, + const cuComplex * U, + int ldu, + const cuComplex * V, + int ldv, + int * lwork, + gesvdjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgesvdj_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int econ, + int m, + int n, + const cuDoubleComplex *A, + int lda, + const double * S, + const cuDoubleComplex *U, + int ldu, + const cuDoubleComplex *V, + int ldv, + int * lwork, + gesvdjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnSgesvdj( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int econ, + int m, + int n, + float * A, + int lda, + float * S, + float * U, + int ldu, + float * V, + int ldv, + float * work, + int lwork, + int * info, + gesvdjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgesvdj( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int econ, + int m, + int n, + double * A, + int lda, + double * S, + double * U, + int ldu, + double * V, + int ldv, + double * work, + int lwork, + int * info, + gesvdjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgesvdj( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int econ, + int m, + int n, + cuComplex * A, + int lda, + float * S, + cuComplex * U, + int ldu, + cuComplex * V, + int ldv, + cuComplex * work, + int lwork, + int * info, + gesvdjInfo_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgesvdj( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int econ, + int m, + int n, + cuDoubleComplex * A, + int lda, + double * S, + cuDoubleComplex * U, + int ldu, + cuDoubleComplex * V, + int ldv, + cuDoubleComplex * work, + int lwork, + int * info, + gesvdjInfo_t params); + + /* batched approximate SVD */ + + cusolverStatus_t CUSOLVERAPI cusolverDnSgesvdaStridedBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int rank, + int m, + int n, + const float * d_A, + int lda, + long long int strideA, + const float * d_S, + long long int strideS, + const float * d_U, + int ldu, + long long int strideU, + const float * d_V, + int ldv, + long long int strideV, + int * lwork, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgesvdaStridedBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int rank, + int m, + int n, + const double * d_A, + int lda, + long long int strideA, + const double * d_S, + long long int strideS, + const double * d_U, + int ldu, + long long int strideU, + const double * d_V, + int ldv, + long long int strideV, + int * lwork, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgesvdaStridedBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int rank, + int m, + int n, + const cuComplex * d_A, + int lda, + long long int strideA, + const float * d_S, + long long int strideS, + const cuComplex * d_U, + int ldu, + long long int strideU, + const cuComplex * d_V, + int ldv, + long long int strideV, + int * lwork, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgesvdaStridedBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int rank, + int m, + int n, + const cuDoubleComplex *d_A, + int lda, + long long int strideA, + const double * d_S, + long long int strideS, + const cuDoubleComplex *d_U, + int ldu, + long long int strideU, + const cuDoubleComplex *d_V, + int ldv, + long long int strideV, + int * lwork, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnSgesvdaStridedBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int rank, + int m, + int n, + const float * d_A, + int lda, + long long int strideA, + float * d_S, + long long int strideS, + float * d_U, + int ldu, + long long int strideU, + float * d_V, + int ldv, + long long int strideV, + float * d_work, + int lwork, + int * d_info, + double * h_R_nrmF, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnDgesvdaStridedBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int rank, + int m, + int n, + const double * d_A, + int lda, + long long int strideA, + double * d_S, + long long int strideS, + double * d_U, + int ldu, + long long int strideU, + double * d_V, + int ldv, + long long int strideV, + double * d_work, + int lwork, + int * d_info, + double * h_R_nrmF, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnCgesvdaStridedBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int rank, + int m, + int n, + const cuComplex * d_A, + int lda, + long long int strideA, + float * d_S, + long long int strideS, + cuComplex * d_U, + int ldu, + long long int strideU, + cuComplex * d_V, + int ldv, + long long int strideV, + cuComplex * d_work, + int lwork, + int * d_info, + double * h_R_nrmF, + int batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnZgesvdaStridedBatched( + cusolverDnHandle_t handle, + cusolverEigMode_t jobz, + int rank, + int m, + int n, + const cuDoubleComplex *d_A, + int lda, + long long int strideA, + double * d_S, + long long int strideS, + cuDoubleComplex * d_U, + int ldu, + long long int strideU, + cuDoubleComplex * d_V, + int ldv, + long long int strideV, + cuDoubleComplex * d_work, + int lwork, + int * d_info, + double * h_R_nrmF, + int batchSize); + + cusolverStatus_t CUSOLVERAPI + cusolverDnCreateParams(cusolverDnParams_t *params); + + cusolverStatus_t CUSOLVERAPI + cusolverDnDestroyParams(cusolverDnParams_t params); + + cusolverStatus_t CUSOLVERAPI cusolverDnSetAdvOptions( + cusolverDnParams_t params, + cusolverDnFunction_t function, + cusolverAlgMode_t algo); + + /* 64-bit API for POTRF */ + CUSOLVER_DEPRECATED(cusolverDnXpotrf_bufferSize) + cusolverStatus_t CUSOLVERAPI cusolverDnPotrf_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType computeType, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cusolverDnXpotrf) + cusolverStatus_t CUSOLVERAPI cusolverDnPotrf( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType computeType, + void * pBuffer, + size_t workspaceInBytes, + int * info); + + /* 64-bit API for POTRS */ + CUSOLVER_DEPRECATED(cusolverDnXpotrs) + cusolverStatus_t CUSOLVERAPI cusolverDnPotrs( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cublasFillMode_t uplo, + int64_t n, + int64_t nrhs, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeB, + void * B, + int64_t ldb, + int * info); + + /* 64-bit API for GEQRF */ + CUSOLVER_DEPRECATED(cusolverDnXgeqrf_bufferSize) + cusolverStatus_t CUSOLVERAPI cusolverDnGeqrf_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeTau, + const void * tau, + cudaDataType computeType, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cusolverDnXgeqrf) + cusolverStatus_t CUSOLVERAPI cusolverDnGeqrf( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType dataTypeTau, + void * tau, + cudaDataType computeType, + void * pBuffer, + size_t workspaceInBytes, + int * info); + + /* 64-bit API for GETRF */ + CUSOLVER_DEPRECATED(cusolverDnXgetrf_bufferSize) + cusolverStatus_t CUSOLVERAPI cusolverDnGetrf_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType computeType, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cusolverDnXgetrf) + cusolverStatus_t CUSOLVERAPI cusolverDnGetrf( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + int64_t * ipiv, + cudaDataType computeType, + void * pBuffer, + size_t workspaceInBytes, + int * info); + + /* 64-bit API for GETRS */ + CUSOLVER_DEPRECATED(cusolverDnXgetrs) + cusolverStatus_t CUSOLVERAPI cusolverDnGetrs( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cublasOperation_t trans, + int64_t n, + int64_t nrhs, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + const int64_t * ipiv, + cudaDataType dataTypeB, + void * B, + int64_t ldb, + int * info); + + /* 64-bit API for SYEVD */ + CUSOLVER_DEPRECATED(cusolverDnXsyevd_bufferSize) + cusolverStatus_t CUSOLVERAPI cusolverDnSyevd_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeW, + const void * W, + cudaDataType computeType, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cusolverDnXsyevd) + cusolverStatus_t CUSOLVERAPI cusolverDnSyevd( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType dataTypeW, + void * W, + cudaDataType computeType, + void * pBuffer, + size_t workspaceInBytes, + int * info); + + /* 64-bit API for SYEVDX */ + CUSOLVER_DEPRECATED(cusolverDnXsyevdx_bufferSize) + cusolverStatus_t CUSOLVERAPI cusolverDnSyevdx_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + void * vl, + void * vu, + int64_t il, + int64_t iu, + int64_t * h_meig, + cudaDataType dataTypeW, + const void * W, + cudaDataType computeType, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cusolverDnXsyevdx) + cusolverStatus_t CUSOLVERAPI cusolverDnSyevdx( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + void * vl, + void * vu, + int64_t il, + int64_t iu, + int64_t * meig64, + cudaDataType dataTypeW, + void * W, + cudaDataType computeType, + void * pBuffer, + size_t workspaceInBytes, + int * info); + + /* 64-bit API for GESVD */ + CUSOLVER_DEPRECATED(cusolverDnXgesvd_bufferSize) + cusolverStatus_t CUSOLVERAPI cusolverDnGesvd_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + signed char jobu, + signed char jobvt, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeS, + const void * S, + cudaDataType dataTypeU, + const void * U, + int64_t ldu, + cudaDataType dataTypeVT, + const void * VT, + int64_t ldvt, + cudaDataType computeType, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cusolverDnXgesvd) + cusolverStatus_t CUSOLVERAPI cusolverDnGesvd( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + signed char jobu, + signed char jobvt, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType dataTypeS, + void * S, + cudaDataType dataTypeU, + void * U, + int64_t ldu, + cudaDataType dataTypeVT, + void * VT, + int64_t ldvt, + cudaDataType computeType, + void * pBuffer, + size_t workspaceInBytes, + int * info); + + /* + * new 64-bit API + */ + /* 64-bit API for POTRF */ + cusolverStatus_t CUSOLVERAPI cusolverDnXpotrf_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType computeType, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXpotrf( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType computeType, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * info); + + /* 64-bit API for POTRS */ + cusolverStatus_t CUSOLVERAPI cusolverDnXpotrs( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cublasFillMode_t uplo, + int64_t n, + int64_t nrhs, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeB, + void * B, + int64_t ldb, + int * info); + + /* 64-bit API for GEQRF */ + cusolverStatus_t CUSOLVERAPI cusolverDnXgeqrf_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeTau, + const void * tau, + cudaDataType computeType, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXgeqrf( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType dataTypeTau, + void * tau, + cudaDataType computeType, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * info); + + /* 64-bit API for GETRF */ + cusolverStatus_t CUSOLVERAPI cusolverDnXgetrf_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType computeType, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXgetrf( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + int64_t * ipiv, + cudaDataType computeType, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * info); + + /* 64-bit API for GETRS */ + cusolverStatus_t CUSOLVERAPI cusolverDnXgetrs( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cublasOperation_t trans, + int64_t n, + int64_t nrhs, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + const int64_t * ipiv, + cudaDataType dataTypeB, + void * B, + int64_t ldb, + int * info); + + /* 64-bit API for SYEVD */ + cusolverStatus_t CUSOLVERAPI cusolverDnXsyevd_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeW, + const void * W, + cudaDataType computeType, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXsyevd( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType dataTypeW, + void * W, + cudaDataType computeType, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * info); + + /* 64-bit API for batched SYEV */ + cusolverStatus_t CUSOLVERAPI cusolverDnXsyevBatched_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeW, + const void * W, + cudaDataType computeType, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost, + int64_t batchSize); + + cusolverStatus_t CUSOLVERAPI cusolverDnXsyevBatched( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType dataTypeW, + void * W, + cudaDataType computeType, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * info, + int64_t batchSize); + + /* 64-bit API for SYEVDX */ + cusolverStatus_t CUSOLVERAPI cusolverDnXsyevdx_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + void * vl, + void * vu, + int64_t il, + int64_t iu, + int64_t * h_meig, + cudaDataType dataTypeW, + const void * W, + cudaDataType computeType, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXsyevdx( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + cusolverEigRange_t range, + cublasFillMode_t uplo, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + void * vl, + void * vu, + int64_t il, + int64_t iu, + int64_t * meig64, + cudaDataType dataTypeW, + void * W, + cudaDataType computeType, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * info); + + /* 64-bit API for GEEV */ + cusolverStatus_t CUSOLVERAPI cusolverDnXgeev_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobvl, + cusolverEigMode_t jobvr, + int64_t n, + cudaDataType dataTypeA, + const void* A, + int64_t lda, + cudaDataType dataTypeW, + const void* W, + cudaDataType dataTypeVL, + const void* VL, + int64_t ldvl, + cudaDataType dataTypeVR, + const void* VR, + int64_t ldvr, + cudaDataType computeType, + size_t* workspaceInBytesOnDevice, + size_t* workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXgeev( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobvl, + cusolverEigMode_t jobvr, + int64_t n, + cudaDataType dataTypeA, + void* A, + int64_t lda, + cudaDataType dataTypeW, + void* W, + cudaDataType dataTypeVL, + void* VL, + int64_t ldvl, + cudaDataType dataTypeVR, + void* VR, + int64_t ldvr, + cudaDataType computeType, + void* bufferOnDevice, + size_t workspaceInBytesOnDevice, + void* bufferOnHost, + size_t workspaceInBytesOnHost, + int* info); + + /* 64-bit API for GESVD */ + cusolverStatus_t CUSOLVERAPI cusolverDnXgesvd_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + signed char jobu, + signed char jobvt, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeS, + const void * S, + cudaDataType dataTypeU, + const void * U, + int64_t ldu, + cudaDataType dataTypeVT, + const void * VT, + int64_t ldvt, + cudaDataType computeType, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXgesvd( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + signed char jobu, + signed char jobvt, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType dataTypeS, + void * S, + cudaDataType dataTypeU, + void * U, + int64_t ldu, + cudaDataType dataTypeVT, + void * VT, + int64_t ldvt, + cudaDataType computeType, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * info); + + /* 64-bit API for GESVDP */ + cusolverStatus_t CUSOLVERAPI cusolverDnXgesvdp_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + int econ, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeS, + const void * S, + cudaDataType dataTypeU, + const void * U, + int64_t ldu, + cudaDataType dataTypeV, + const void * V, + int64_t ldv, + cudaDataType computeType, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXgesvdp( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverEigMode_t jobz, + int econ, + int64_t m, + int64_t n, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType dataTypeS, + void * S, + cudaDataType dataTypeU, + void * U, + int64_t ldu, + cudaDataType dataTypeV, + void * V, + int64_t ldv, + cudaDataType computeType, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * d_info, + double * h_err_sigma); + + cusolverStatus_t CUSOLVERAPI cusolverDnXgesvdr_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + signed char jobu, + signed char jobv, + int64_t m, + int64_t n, + int64_t k, + int64_t p, + int64_t niters, + cudaDataType dataTypeA, + const void * A, + int64_t lda, + cudaDataType dataTypeSrand, + const void * Srand, + cudaDataType dataTypeUrand, + const void * Urand, + int64_t ldUrand, + cudaDataType dataTypeVrand, + const void * Vrand, + int64_t ldVrand, + cudaDataType computeType, + size_t * workspaceInBytesOnDevice, + size_t * workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXgesvdr( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + signed char jobu, + signed char jobv, + int64_t m, + int64_t n, + int64_t k, + int64_t p, + int64_t niters, + cudaDataType dataTypeA, + void * A, + int64_t lda, + cudaDataType dataTypeSrand, + void * Srand, + cudaDataType dataTypeUrand, + void * Urand, + int64_t ldUrand, + cudaDataType dataTypeVrand, + void * Vrand, + int64_t ldVrand, + cudaDataType computeType, + void * bufferOnDevice, + size_t workspaceInBytesOnDevice, + void * bufferOnHost, + size_t workspaceInBytesOnHost, + int * d_info); + + cusolverStatus_t CUSOLVERAPI cusolverDnXlarft_bufferSize( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverDirectMode_t direct, + cusolverStorevMode_t storev, + int64_t n, + int64_t k, + cudaDataType dataTypeV, + const void *V, + int64_t ldv, + cudaDataType dataTypeTau, + const void *tau, + cudaDataType dataTypeT, + void *T, + int64_t ldt, + cudaDataType computeType, + size_t *workspaceInBytesOnDevice, + size_t *workspaceInBytesOnHost); + + cusolverStatus_t CUSOLVERAPI cusolverDnXlarft( + cusolverDnHandle_t handle, + cusolverDnParams_t params, + cusolverDirectMode_t direct, + cusolverStorevMode_t storev, + int64_t n, + int64_t k, + cudaDataType dataTypeV, + const void *V, + int64_t ldv, + cudaDataType dataTypeTau, + const void *tau, + cudaDataType dataTypeT, + void *T, + int64_t ldt, + cudaDataType computeType, + void *bufferOnDevice, + size_t workspaceInBytesOnDevice, + void *bufferOnHost, + size_t workspaceInBytesOnHost); + + typedef void (*cusolverDnLoggerCallback_t)( + int logLevel, + const char *functionName, + const char *message); + + cusolverStatus_t CUSOLVERAPI + cusolverDnLoggerSetCallback(cusolverDnLoggerCallback_t callback); + + cusolverStatus_t CUSOLVERAPI cusolverDnLoggerSetFile(FILE *file); + + cusolverStatus_t CUSOLVERAPI cusolverDnLoggerOpenFile(const char *logFile); + + cusolverStatus_t CUSOLVERAPI cusolverDnLoggerSetLevel(int level); + + cusolverStatus_t CUSOLVERAPI cusolverDnLoggerSetMask(int mask); + + cusolverStatus_t CUSOLVERAPI cusolverDnLoggerForceDisable(); + + #if defined(__cplusplus) +} + #endif /* __cplusplus */ + +#endif /* !defined(CUDENSE_H_) */ diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverMg.h b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverMg.h new file mode 100644 index 0000000000000000000000000000000000000000..7702191f7253d66cf998016f6ae9f14149fbbb0b --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverMg.h @@ -0,0 +1,318 @@ +/* + * Copyright 2019 NVIDIA Corporation. All rights reserved. + * + * NOTICE TO LICENSEE: + * + * This source code and/or documentation ("Licensed Deliverables") are + * subject to NVIDIA intellectual property rights under U.S. and + * international Copyright laws. + * + * These Licensed Deliverables contained herein is PROPRIETARY and + * CONFIDENTIAL to NVIDIA and is being provided under the terms and + * conditions of a form of NVIDIA software license agreement by and + * between NVIDIA and Licensee ("License Agreement") or electronically + * accepted by Licensee. Notwithstanding any terms or conditions to + * the contrary in the License Agreement, reproduction or disclosure + * of the Licensed Deliverables to any third party without the express + * written consent of NVIDIA is prohibited. + * + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE + * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS + * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. + * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED + * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, + * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY + * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY + * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + * OF THESE LICENSED DELIVERABLES. + * + * U.S. Government End Users. These Licensed Deliverables are a + * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT + * 1995), consisting of "commercial computer software" and "commercial + * computer software documentation" as such terms are used in 48 + * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government + * only as a commercial end item. Consistent with 48 C.F.R.12.212 and + * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all + * U.S. Government End Users acquire the Licensed Deliverables with + * only those rights set forth herein. + * + * Any use of the Licensed Deliverables in individual and commercial + * software must include, in the user documentation and internal + * comments to the code, the above Disclaimer and U.S. Government End + * Users Notice. + */ + +#if !defined(CUSOLVERMG_H_) + #define CUSOLVERMG_H_ + + #include + #include "cusolverDn.h" + + #if defined(__cplusplus) +extern "C" { + #endif /* __cplusplus */ + + struct cusolverMgContext; + typedef struct cusolverMgContext *cusolverMgHandle_t; + + /** + * \beief This enum decides how 1D device Ids (or process ranks) get mapped to + * a 2D grid. + */ + typedef enum { + + CUDALIBMG_GRID_MAPPING_ROW_MAJOR = 1, + CUDALIBMG_GRID_MAPPING_COL_MAJOR = 0 + + } cusolverMgGridMapping_t; + + /** \brief Opaque structure of the distributed grid */ + typedef void *cudaLibMgGrid_t; + /** \brief Opaque structure of the distributed matrix descriptor */ + typedef void *cudaLibMgMatrixDesc_t; + + cusolverStatus_t CUSOLVERAPI cusolverMgCreate(cusolverMgHandle_t *handle); + + cusolverStatus_t CUSOLVERAPI cusolverMgDestroy(cusolverMgHandle_t handle); + + cusolverStatus_t CUSOLVERAPI cusolverMgDeviceSelect( + cusolverMgHandle_t handle, + int nbDevices, + int deviceId[]); + + /** + * \brief Allocates resources related to the shared memory device grid. + * \param[out] grid the opaque data strcuture that holds the grid + * \param[in] numRowDevices number of devices in the row + * \param[in] numColDevices number of devices in the column + * \param[in] deviceId This array of size height * width stores the + * device-ids of the 2D grid; each entry must correspond to a valid + * gpu or to -1 (denoting CPU). \param[in] mapping whether the 2D grid is in + * row/column major \returns the status code + */ + cusolverStatus_t CUSOLVERAPI cusolverMgCreateDeviceGrid( + cudaLibMgGrid_t * grid, + int32_t numRowDevices, + int32_t numColDevices, + const int32_t deviceId[], + cusolverMgGridMapping_t mapping); + + /** + * \brief Releases the allocated resources related to the distributed grid. + * \param[in] grid the opaque data strcuture that holds the distributed grid + * \returns the status code + */ + cusolverStatus_t CUSOLVERAPI cusolverMgDestroyGrid(cudaLibMgGrid_t grid); + + /** + * \brief Allocates resources related to the distributed matrix descriptor. + * \param[out] desc the opaque data strcuture that holds the descriptor + * \param[in] numRows number of total rows + * \param[in] numCols number of total columns + * \param[in] rowBlockSize row block size + * \param[in] colBlockSize column block size + * \param[in] dataType the data type of each element in cudaDataType + * \param[in] grid the opaque data structure of the distributed grid + * \returns the status code + */ + cusolverStatus_t CUSOLVERAPI cusolverMgCreateMatrixDesc( + cudaLibMgMatrixDesc_t *desc, + int64_t numRows, + int64_t numCols, + int64_t rowBlockSize, + int64_t colBlockSize, + cudaDataType dataType, + const cudaLibMgGrid_t grid); + + /** + * \brief Releases the allocated resources related to the distributed matrix + * descriptor. \param[in] desc the opaque data strcuture that holds the + * descriptor \returns the status code + */ + cusolverStatus_t CUSOLVERAPI + cusolverMgDestroyMatrixDesc(cudaLibMgMatrixDesc_t desc); + + cusolverStatus_t CUSOLVERAPI cusolverMgSyevd_bufferSize( + cusolverMgHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int N, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + void * W, + cudaDataType dataTypeW, + cudaDataType computeType, + int64_t * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverMgSyevd( + cusolverMgHandle_t handle, + cusolverEigMode_t jobz, + cublasFillMode_t uplo, + int N, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + void * W, + cudaDataType dataTypeW, + cudaDataType computeType, + void * array_d_work[], + int64_t lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverMgGetrf_bufferSize( + cusolverMgHandle_t handle, + int M, + int N, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + int * array_d_IPIV[], + cudaDataType computeType, + int64_t * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverMgGetrf( + cusolverMgHandle_t handle, + int M, + int N, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + int * array_d_IPIV[], + cudaDataType computeType, + void * array_d_work[], + int64_t lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverMgGetrs_bufferSize( + cusolverMgHandle_t handle, + cublasOperation_t TRANS, + int N, + int NRHS, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + int * array_d_IPIV[], + void * array_d_B[], + int IB, + int JB, + cudaLibMgMatrixDesc_t descrB, + cudaDataType computeType, + int64_t * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverMgGetrs( + cusolverMgHandle_t handle, + cublasOperation_t TRANS, + int N, + int NRHS, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + int * array_d_IPIV[], + void * array_d_B[], + int IB, + int JB, + cudaLibMgMatrixDesc_t descrB, + cudaDataType computeType, + void * array_d_work[], + int64_t lwork, + int * info); + + cusolverStatus_t CUSOLVERAPI cusolverMgPotrf_bufferSize( + cusolverMgHandle_t handle, + cublasFillMode_t uplo, + int N, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + cudaDataType computeType, + int64_t * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverMgPotrf( + cusolverMgHandle_t handle, + cublasFillMode_t uplo, + int N, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + cudaDataType computeType, + void * array_d_work[], + int64_t lwork, + int * h_info); + + cusolverStatus_t CUSOLVERAPI cusolverMgPotrs_bufferSize( + cusolverMgHandle_t handle, + cublasFillMode_t uplo, + int n, + int nrhs, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + void * array_d_B[], + int IB, + int JB, + cudaLibMgMatrixDesc_t descrB, + cudaDataType computeType, + int64_t * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverMgPotrs( + cusolverMgHandle_t handle, + cublasFillMode_t uplo, + int n, + int nrhs, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + void * array_d_B[], + int IB, + int JB, + cudaLibMgMatrixDesc_t descrB, + cudaDataType computeType, + void * array_d_work[], + int64_t lwork, + int * h_info); + + cusolverStatus_t CUSOLVERAPI cusolverMgPotri_bufferSize( + cusolverMgHandle_t handle, + cublasFillMode_t uplo, + int N, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + cudaDataType computeType, + int64_t * lwork); + + cusolverStatus_t CUSOLVERAPI cusolverMgPotri( + cusolverMgHandle_t handle, + cublasFillMode_t uplo, + int N, + void * array_d_A[], + int IA, + int JA, + cudaLibMgMatrixDesc_t descrA, + cudaDataType computeType, + void * array_d_work[], + int64_t lwork, + int * h_info); + + #if defined(__cplusplus) +} + #endif /* __cplusplus */ + +#endif // CUSOLVERMG_H_ diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverRf.h b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverRf.h new file mode 100644 index 0000000000000000000000000000000000000000..8c29fe1a59693ec3fa4e848fba3bf1577cab57e3 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverRf.h @@ -0,0 +1,339 @@ +/* + * Copyright 1993-2014 NVIDIA Corporation. All rights reserved. + * + * NOTICE TO LICENSEE: + * + * This source code and/or documentation ("Licensed Deliverables") are + * subject to NVIDIA intellectual property rights under U.S. and + * international Copyright laws. + * + * These Licensed Deliverables contained herein is PROPRIETARY and + * CONFIDENTIAL to NVIDIA and is being provided under the terms and + * conditions of a form of NVIDIA software license agreement by and + * between NVIDIA and Licensee ("License Agreement") or electronically + * accepted by Licensee. Notwithstanding any terms or conditions to + * the contrary in the License Agreement, reproduction or disclosure + * of the Licensed Deliverables to any third party without the express + * written consent of NVIDIA is prohibited. + * + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE + * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS + * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. + * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED + * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, + * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY + * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY + * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + * OF THESE LICENSED DELIVERABLES. + * + * U.S. Government End Users. These Licensed Deliverables are a + * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT + * 1995), consisting of "commercial computer software" and "commercial + * computer software documentation" as such terms are used in 48 + * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government + * only as a commercial end item. Consistent with 48 C.F.R.12.212 and + * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all + * U.S. Government End Users acquire the Licensed Deliverables with + * only those rights set forth herein. + * + * Any use of the Licensed Deliverables in individual and commercial + * software must include, in the user documentation and internal + * comments to the code, the above Disclaimer and U.S. Government End + * Users Notice. + */ + +#if !defined(CUSOLVERRF_H_) + #define CUSOLVERRF_H_ + + #include "driver_types.h" + #include "cuComplex.h" + #include "cusolver_common.h" + + #if defined(__cplusplus) +extern "C" { + #endif /* __cplusplus */ + + /* CUSOLVERRF mode */ + typedef enum { + CUSOLVERRF_RESET_VALUES_FAST_MODE_OFF = 0, // default + CUSOLVERRF_RESET_VALUES_FAST_MODE_ON = 1 + } cusolverRfResetValuesFastMode_t; + + /* CUSOLVERRF matrix format */ + typedef enum { + CUSOLVERRF_MATRIX_FORMAT_CSR = 0, // default + CUSOLVERRF_MATRIX_FORMAT_CSC = 1 + } cusolverRfMatrixFormat_t; + + /* CUSOLVERRF unit diagonal */ + typedef enum { + CUSOLVERRF_UNIT_DIAGONAL_STORED_L = 0, // default + CUSOLVERRF_UNIT_DIAGONAL_STORED_U = 1, + CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_L = 2, + CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_U = 3 + } cusolverRfUnitDiagonal_t; + + /* CUSOLVERRF factorization algorithm */ + typedef enum { + CUSOLVERRF_FACTORIZATION_ALG0 = 0, // default + CUSOLVERRF_FACTORIZATION_ALG1 = 1, + CUSOLVERRF_FACTORIZATION_ALG2 = 2, + } cusolverRfFactorization_t; + + /* CUSOLVERRF triangular solve algorithm */ + typedef enum { + CUSOLVERRF_TRIANGULAR_SOLVE_ALG1 = 1, // default + CUSOLVERRF_TRIANGULAR_SOLVE_ALG2 = 2, + CUSOLVERRF_TRIANGULAR_SOLVE_ALG3 = 3 + } cusolverRfTriangularSolve_t; + + /* CUSOLVERRF numeric boost report */ + typedef enum { + CUSOLVERRF_NUMERIC_BOOST_NOT_USED = 0, // default + CUSOLVERRF_NUMERIC_BOOST_USED = 1 + } cusolverRfNumericBoostReport_t; + + /* Opaque structure holding CUSOLVERRF library common */ + struct cusolverRfCommon; + typedef struct cusolverRfCommon* cusolverRfHandle_t; + + /* CUSOLVERRF create (allocate memory) and destroy (free memory) in the handle + */ + cusolverStatus_t CUSOLVERAPI cusolverRfCreate(cusolverRfHandle_t* handle); + cusolverStatus_t CUSOLVERAPI cusolverRfDestroy(cusolverRfHandle_t handle); + + /* CUSOLVERRF set and get input format */ + cusolverStatus_t CUSOLVERAPI cusolverRfGetMatrixFormat( + cusolverRfHandle_t handle, + cusolverRfMatrixFormat_t* format, + cusolverRfUnitDiagonal_t* diag); + + cusolverStatus_t CUSOLVERAPI cusolverRfSetMatrixFormat( + cusolverRfHandle_t handle, + cusolverRfMatrixFormat_t format, + cusolverRfUnitDiagonal_t diag); + + /* CUSOLVERRF set and get numeric properties */ + cusolverStatus_t CUSOLVERAPI cusolverRfSetNumericProperties( + cusolverRfHandle_t handle, + double zero, + double boost); + + cusolverStatus_t CUSOLVERAPI cusolverRfGetNumericProperties( + cusolverRfHandle_t handle, + double* zero, + double* boost); + + cusolverStatus_t CUSOLVERAPI cusolverRfGetNumericBoostReport( + cusolverRfHandle_t handle, + cusolverRfNumericBoostReport_t* report); + + /* CUSOLVERRF choose the triangular solve algorithm */ + cusolverStatus_t CUSOLVERAPI cusolverRfSetAlgs( + cusolverRfHandle_t handle, + cusolverRfFactorization_t factAlg, + cusolverRfTriangularSolve_t solveAlg); + + cusolverStatus_t CUSOLVERAPI cusolverRfGetAlgs( + cusolverRfHandle_t handle, + cusolverRfFactorization_t* factAlg, + cusolverRfTriangularSolve_t* solveAlg); + + /* CUSOLVERRF set and get fast mode */ + cusolverStatus_t CUSOLVERAPI cusolverRfGetResetValuesFastMode( + cusolverRfHandle_t handle, + cusolverRfResetValuesFastMode_t* fastMode); + + cusolverStatus_t CUSOLVERAPI cusolverRfSetResetValuesFastMode( + cusolverRfHandle_t handle, + cusolverRfResetValuesFastMode_t fastMode); + + /*** Non-Batched Routines ***/ + /* CUSOLVERRF setup of internal structures from host or device memory */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI + cusolverRfSetupHost(/* Input (in the host memory) */ + int n, + int nnzA, + int* h_csrRowPtrA, + int* h_csrColIndA, + double* h_csrValA, + int nnzL, + int* h_csrRowPtrL, + int* h_csrColIndL, + double* h_csrValL, + int nnzU, + int* h_csrRowPtrU, + int* h_csrColIndU, + double* h_csrValU, + int* h_P, + int* h_Q, + /* Output */ + cusolverRfHandle_t handle); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI + cusolverRfSetupDevice(/* Input (in the device memory) */ + int n, + int nnzA, + int* csrRowPtrA, + int* csrColIndA, + double* csrValA, + int nnzL, + int* csrRowPtrL, + int* csrColIndL, + double* csrValL, + int nnzU, + int* csrRowPtrU, + int* csrColIndU, + double* csrValU, + int* P, + int* Q, + /* Output */ + cusolverRfHandle_t handle); + + /* CUSOLVERRF update the matrix values (assuming the reordering, pivoting + and consequently the sparsity pattern of L and U did not change), + and zero out the remaining values. */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI + cusolverRfResetValues(/* Input (in the device memory) */ + int n, + int nnzA, + int* csrRowPtrA, + int* csrColIndA, + double* csrValA, + int* P, + int* Q, + /* Output */ + cusolverRfHandle_t handle); + + /* CUSOLVERRF analysis (for parallelism) */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverRfAnalyze(cusolverRfHandle_t handle); + + /* CUSOLVERRF re-factorization (for parallelism) */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverRfRefactor(cusolverRfHandle_t handle); + + /* CUSOLVERRF extraction: Get L & U packed into a single matrix M */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI + cusolverRfAccessBundledFactorsDevice(/* Input */ + cusolverRfHandle_t handle, + /* Output (in the host memory) */ + int* nnzM, + /* Output (in the device memory) */ + int** Mp, + int** Mi, + double** Mx); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI + cusolverRfExtractBundledFactorsHost(/* Input */ + cusolverRfHandle_t handle, + /* Output (in the host memory) */ + int* h_nnzM, + int** h_Mp, + int** h_Mi, + double** h_Mx); + + /* CUSOLVERRF extraction: Get L & U individually */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI + cusolverRfExtractSplitFactorsHost(/* Input */ + cusolverRfHandle_t handle, + /* Output (in the host memory) */ + int* h_nnzL, + int** h_csrRowPtrL, + int** h_csrColIndL, + double** h_csrValL, + int* h_nnzU, + int** h_csrRowPtrU, + int** h_csrColIndU, + double** h_csrValU); + + /* CUSOLVERRF (forward and backward triangular) solves */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI + cusolverRfSolve(/* Input (in the device memory) */ + cusolverRfHandle_t handle, + int* P, + int* Q, + int nrhs, // only nrhs=1 is supported + double* Temp, // of size ldt*nrhs (ldt>=n) + int ldt, + /* Input/Output (in the device memory) */ + double* XF, + /* Input */ + int ldxf); + + /*** Batched Routines ***/ + /* CUSOLVERRF-batch setup of internal structures from host */ + cusolverStatus_t CUSOLVERAPI + cusolverRfBatchSetupHost(/* Input (in the host memory)*/ + int batchSize, + int n, + int nnzA, + int* h_csrRowPtrA, + int* h_csrColIndA, + double* h_csrValA_array[], + int nnzL, + int* h_csrRowPtrL, + int* h_csrColIndL, + double* h_csrValL, + int nnzU, + int* h_csrRowPtrU, + int* h_csrColIndU, + double* h_csrValU, + int* h_P, + int* h_Q, + /* Output (in the device memory) */ + cusolverRfHandle_t handle); + + /* CUSOLVERRF-batch update the matrix values (assuming the reordering, + pivoting and consequently the sparsity pattern of L and U did not change), + and zero out the remaining values. */ + cusolverStatus_t CUSOLVERAPI + cusolverRfBatchResetValues(/* Input (in the device memory) */ + int batchSize, + int n, + int nnzA, + int* csrRowPtrA, + int* csrColIndA, + double* csrValA_array[], + int* P, + int* Q, + /* Output */ + cusolverRfHandle_t handle); + + /* CUSOLVERRF-batch analysis (for parallelism) */ + cusolverStatus_t CUSOLVERAPI + cusolverRfBatchAnalyze(cusolverRfHandle_t handle); + + /* CUSOLVERRF-batch re-factorization (for parallelism) */ + cusolverStatus_t CUSOLVERAPI + cusolverRfBatchRefactor(cusolverRfHandle_t handle); + + /* CUSOLVERRF-batch (forward and backward triangular) solves */ + cusolverStatus_t CUSOLVERAPI + cusolverRfBatchSolve(/* Input (in the device memory) */ + cusolverRfHandle_t handle, + int* P, + int* Q, + int nrhs, // only nrhs=1 is supported + double* Temp, // of size 2*batchSize*(n*nrhs) + int ldt, // only ldt=n is supported + /* Input/Output (in the device memory) */ + double* XF_array[], + /* Input */ + int ldxf); + + /* CUSOLVERRF-batch obtain the position of zero pivot */ + cusolverStatus_t CUSOLVERAPI + cusolverRfBatchZeroPivot(/* Input */ + cusolverRfHandle_t handle, + /* Output (in the host memory) */ + int* position); + + #if defined(__cplusplus) +} + #endif /* __cplusplus */ + +#endif /* CUSOLVERRF_H_ */ diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverSp.h b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverSp.h new file mode 100644 index 0000000000000000000000000000000000000000..4222108cf93e78e1b055c06385fcf0c55b0ec057 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverSp.h @@ -0,0 +1,923 @@ +/* + * Copyright 2014 NVIDIA Corporation. All rights reserved. + * + * NOTICE TO LICENSEE: + * + * This source code and/or documentation ("Licensed Deliverables") are + * subject to NVIDIA intellectual property rights under U.S. and + * international Copyright laws. + * + * These Licensed Deliverables contained herein is PROPRIETARY and + * CONFIDENTIAL to NVIDIA and is being provided under the terms and + * conditions of a form of NVIDIA software license agreement by and + * between NVIDIA and Licensee ("License Agreement") or electronically + * accepted by Licensee. Notwithstanding any terms or conditions to + * the contrary in the License Agreement, reproduction or disclosure + * of the Licensed Deliverables to any third party without the express + * written consent of NVIDIA is prohibited. + * + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE + * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS + * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. + * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED + * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, + * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY + * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY + * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + * OF THESE LICENSED DELIVERABLES. + * + * U.S. Government End Users. These Licensed Deliverables are a + * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT + * 1995), consisting of "commercial computer software" and "commercial + * computer software documentation" as such terms are used in 48 + * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government + * only as a commercial end item. Consistent with 48 C.F.R.12.212 and + * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all + * U.S. Government End Users acquire the Licensed Deliverables with + * only those rights set forth herein. + * + * Any use of the Licensed Deliverables in individual and commercial + * software must include, in the user documentation and internal + * comments to the code, the above Disclaimer and U.S. Government End + * Users Notice. + */ + +#if !defined(CUSOLVERSP_H_) + #define CUSOLVERSP_H_ + + #include "cusparse.h" + #include "cublas_v2.h" + #include "cusolver_common.h" + + #if defined(__cplusplus) +extern "C" { + #endif /* __cplusplus */ + + struct cusolverSpContext; + typedef struct cusolverSpContext *cusolverSpHandle_t; + + struct csrqrInfo; + typedef struct csrqrInfo *csrqrInfo_t; + + cusolverStatus_t CUSOLVERAPI cusolverSpCreate(cusolverSpHandle_t *handle); + cusolverStatus_t CUSOLVERAPI cusolverSpDestroy(cusolverSpHandle_t handle); + cusolverStatus_t CUSOLVERAPI + cusolverSpSetStream(cusolverSpHandle_t handle, cudaStream_t streamId); + cusolverStatus_t CUSOLVERAPI + cusolverSpGetStream(cusolverSpHandle_t handle, cudaStream_t *streamId); + + cusolverStatus_t CUSOLVERAPI cusolverSpXcsrissymHost( + cusolverSpHandle_t handle, + int m, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrEndPtrA, + const int * csrColIndA, + int * issym); + + /* -------- GPU linear solver by LU factorization + * solve A*x = b, A can be singular + * [ls] stands for linear solve + * [v] stands for vector + * [lu] stands for LU factorization + */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrlsvluHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const float * b, + float tol, + int reorder, + float * x, + int * singularity); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrlsvluHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const double * b, + double tol, + int reorder, + double * x, + int * singularity); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrlsvluHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const cuComplex * b, + float tol, + int reorder, + cuComplex * x, + int * singularity); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrlsvluHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const cuDoubleComplex * b, + double tol, + int reorder, + cuDoubleComplex * x, + int * singularity); + + /* -------- GPU linear solver by QR factorization + * solve A*x = b, A can be singular + * [ls] stands for linear solve + * [v] stands for vector + * [qr] stands for QR factorization + */ + cusolverStatus_t CUSOLVERAPI cusolverSpScsrlsvqr( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const float * b, + float tol, + int reorder, + float * x, + int * singularity); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrlsvqr( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const double * b, + double tol, + int reorder, + double * x, + int * singularity); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrlsvqr( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const cuComplex * b, + float tol, + int reorder, + cuComplex * x, + int * singularity); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrlsvqr( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const cuDoubleComplex * b, + double tol, + int reorder, + cuDoubleComplex * x, + int * singularity); + + /* -------- CPU linear solver by QR factorization + * solve A*x = b, A can be singular + * [ls] stands for linear solve + * [v] stands for vector + * [qr] stands for QR factorization + */ + cusolverStatus_t CUSOLVERAPI cusolverSpScsrlsvqrHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const float * b, + float tol, + int reorder, + float * x, + int * singularity); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrlsvqrHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const double * b, + double tol, + int reorder, + double * x, + int * singularity); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrlsvqrHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const cuComplex * b, + float tol, + int reorder, + cuComplex * x, + int * singularity); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrlsvqrHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const cuDoubleComplex * b, + double tol, + int reorder, + cuDoubleComplex * x, + int * singularity); + + /* -------- CPU linear solver by Cholesky factorization + * solve A*x = b, A can be singular + * [ls] stands for linear solve + * [v] stands for vector + * [chol] stands for Cholesky factorization + * + * Only works for symmetric positive definite matrix. + * The upper part of A is ignored. + */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrlsvcholHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const float * b, + float tol, + int reorder, + float * x, + int * singularity); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrlsvcholHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const double * b, + double tol, + int reorder, + double * x, + int * singularity); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrlsvcholHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const cuComplex * b, + float tol, + int reorder, + cuComplex * x, + int * singularity); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrlsvcholHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const cuDoubleComplex * b, + double tol, + int reorder, + cuDoubleComplex * x, + int * singularity); + + /* -------- GPU linear solver by Cholesky factorization + * solve A*x = b, A can be singular + * [ls] stands for linear solve + * [v] stands for vector + * [chol] stands for Cholesky factorization + * + * Only works for symmetric positive definite matrix. + * The upper part of A is ignored. + */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrlsvchol( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const float * b, + float tol, + int reorder, + // output + float *x, + int * singularity); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrlsvchol( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const double * b, + double tol, + int reorder, + // output + double *x, + int * singularity); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrlsvchol( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const cuComplex * b, + float tol, + int reorder, + // output + cuComplex *x, + int * singularity); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrlsvchol( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrVal, + const int * csrRowPtr, + const int * csrColInd, + const cuDoubleComplex * b, + double tol, + int reorder, + // output + cuDoubleComplex *x, + int * singularity); + + /* ----------- CPU least square solver by QR factorization + * solve min|b - A*x| + * [lsq] stands for least square + * [v] stands for vector + * [qr] stands for QR factorization + */ + cusolverStatus_t CUSOLVERAPI cusolverSpScsrlsqvqrHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const float * b, + float tol, + int * rankA, + float * x, + int * p, + float * min_norm); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrlsqvqrHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const double * b, + double tol, + int * rankA, + double * x, + int * p, + double * min_norm); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrlsqvqrHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const cuComplex * b, + float tol, + int * rankA, + cuComplex * x, + int * p, + float * min_norm); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrlsqvqrHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const cuDoubleComplex * b, + double tol, + int * rankA, + cuDoubleComplex * x, + int * p, + double * min_norm); + + /* --------- CPU eigenvalue solver by shift inverse + * solve A*x = lambda * x + * where lambda is the eigenvalue nearest mu0. + * [eig] stands for eigenvalue solver + * [si] stands for shift-inverse + */ + cusolverStatus_t CUSOLVERAPI cusolverSpScsreigvsiHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + float mu0, + const float * x0, + int maxite, + float tol, + float * mu, + float * x); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsreigvsiHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + double mu0, + const double * x0, + int maxite, + double tol, + double * mu, + double * x); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsreigvsiHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuComplex mu0, + const cuComplex * x0, + int maxite, + float tol, + cuComplex * mu, + cuComplex * x); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsreigvsiHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuDoubleComplex mu0, + const cuDoubleComplex * x0, + int maxite, + double tol, + cuDoubleComplex * mu, + cuDoubleComplex * x); + + /* --------- GPU eigenvalue solver by shift inverse + * solve A*x = lambda * x + * where lambda is the eigenvalue nearest mu0. + * [eig] stands for eigenvalue solver + * [si] stands for shift-inverse + */ + cusolverStatus_t CUSOLVERAPI cusolverSpScsreigvsi( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + float mu0, + const float * x0, + int maxite, + float eps, + float * mu, + float * x); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsreigvsi( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + double mu0, + const double * x0, + int maxite, + double eps, + double * mu, + double * x); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsreigvsi( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuComplex mu0, + const cuComplex * x0, + int maxite, + float eps, + cuComplex * mu, + cuComplex * x); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsreigvsi( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuDoubleComplex mu0, + const cuDoubleComplex * x0, + int maxite, + double eps, + cuDoubleComplex * mu, + cuDoubleComplex * x); + + // ----------- enclosed eigenvalues + + cusolverStatus_t CUSOLVERAPI cusolverSpScsreigsHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuComplex left_bottom_corner, + cuComplex right_upper_corner, + int * num_eigs); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsreigsHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuDoubleComplex left_bottom_corner, + cuDoubleComplex right_upper_corner, + int * num_eigs); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsreigsHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuComplex left_bottom_corner, + cuComplex right_upper_corner, + int * num_eigs); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsreigsHost( + cusolverSpHandle_t handle, + int m, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuDoubleComplex left_bottom_corner, + cuDoubleComplex right_upper_corner, + int * num_eigs); + + /* --------- CPU symrcm + * Symmetric reverse Cuthill McKee permutation + * + */ + cusolverStatus_t CUSOLVERAPI cusolverSpXcsrsymrcmHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + int * p); + + /* --------- CPU symmdq + * Symmetric minimum degree algorithm by quotient graph + * + */ + cusolverStatus_t CUSOLVERAPI cusolverSpXcsrsymmdqHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + int * p); + + /* --------- CPU symmdq + * Symmetric Approximate minimum degree algorithm by quotient graph + * + */ + cusolverStatus_t CUSOLVERAPI cusolverSpXcsrsymamdHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + int * p); + + /* --------- CPU metis + * symmetric reordering + */ + cusolverStatus_t CUSOLVERAPI cusolverSpXcsrmetisndHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + const int64_t * options, + int * p); + + /* --------- CPU zfd + * Zero free diagonal reordering + */ + cusolverStatus_t CUSOLVERAPI cusolverSpScsrzfdHost( + cusolverSpHandle_t handle, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + int * P, + int * numnz); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrzfdHost( + cusolverSpHandle_t handle, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + int * P, + int * numnz); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrzfdHost( + cusolverSpHandle_t handle, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + int * P, + int * numnz); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrzfdHost( + cusolverSpHandle_t handle, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + int * P, + int * numnz); + + /* --------- CPU permuation + * P*A*Q^T + * + */ + cusolverStatus_t CUSOLVERAPI cusolverSpXcsrperm_bufferSizeHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + const int * p, + const int * q, + size_t * bufferSizeInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpXcsrpermHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + int * csrRowPtrA, + int * csrColIndA, + const int * p, + const int * q, + int * map, + void * pBuffer); + + /* + * Low-level API: Batched QR + * + */ + + cusolverStatus_t CUSOLVERAPI cusolverSpCreateCsrqrInfo(csrqrInfo_t *info); + + cusolverStatus_t CUSOLVERAPI cusolverSpDestroyCsrqrInfo(csrqrInfo_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpXcsrqrAnalysisBatched( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfo_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrBufferInfoBatched( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrVal, + const int * csrRowPtr, + const int * csrColInd, + int batchSize, + csrqrInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrBufferInfoBatched( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrVal, + const int * csrRowPtr, + const int * csrColInd, + int batchSize, + csrqrInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrBufferInfoBatched( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrVal, + const int * csrRowPtr, + const int * csrColInd, + int batchSize, + csrqrInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrBufferInfoBatched( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrVal, + const int * csrRowPtr, + const int * csrColInd, + int batchSize, + csrqrInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrsvBatched( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const float * b, + float * x, + int batchSize, + csrqrInfo_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrsvBatched( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const double * b, + double * x, + int batchSize, + csrqrInfo_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrsvBatched( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const cuComplex * b, + cuComplex * x, + int batchSize, + csrqrInfo_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrsvBatched( + cusolverSpHandle_t handle, + int m, + int n, + int nnz, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + const cuDoubleComplex * b, + cuDoubleComplex * x, + int batchSize, + csrqrInfo_t info, + void * pBuffer); + + #if defined(__cplusplus) +} + #endif /* __cplusplus */ + +#endif // define CUSOLVERSP_H_ diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverSp_LOWLEVEL_PREVIEW.h b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverSp_LOWLEVEL_PREVIEW.h new file mode 100644 index 0000000000000000000000000000000000000000..d9a52792abf1cc7594201bd5f4ddaefb600f6128 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolverSp_LOWLEVEL_PREVIEW.h @@ -0,0 +1,1107 @@ +/* + * Copyright 2015 NVIDIA Corporation. All rights reserved. + * + * NOTICE TO LICENSEE: + * + * This source code and/or documentation ("Licensed Deliverables") are + * subject to NVIDIA intellectual property rights under U.S. and + * international Copyright laws. + * + * These Licensed Deliverables contained herein is PROPRIETARY and + * CONFIDENTIAL to NVIDIA and is being provided under the terms and + * conditions of a form of NVIDIA software license agreement by and + * between NVIDIA and Licensee ("License Agreement") or electronically + * accepted by Licensee. Notwithstanding any terms or conditions to + * the contrary in the License Agreement, reproduction or disclosure + * of the Licensed Deliverables to any third party without the express + * written consent of NVIDIA is prohibited. + * + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE + * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS + * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. + * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED + * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, + * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY + * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY + * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + * OF THESE LICENSED DELIVERABLES. + * + * U.S. Government End Users. These Licensed Deliverables are a + * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT + * 1995), consisting of "commercial computer software" and "commercial + * computer software documentation" as such terms are used in 48 + * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government + * only as a commercial end item. Consistent with 48 C.F.R.12.212 and + * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all + * U.S. Government End Users acquire the Licensed Deliverables with + * only those rights set forth herein. + * + * Any use of the Licensed Deliverables in individual and commercial + * software must include, in the user documentation and internal + * comments to the code, the above Disclaimer and U.S. Government End + * Users Notice. + */ + +#if !defined(CUSOLVERSP_LOWLEVEL_PREVIEW_H_) + #define CUSOLVERSP_LOWLEVEL_PREVIEW_H_ + + #include "cusolverSp.h" + + #if defined(__cplusplus) +extern "C" { + #endif /* __cplusplus */ + + struct csrluInfoHost; + typedef struct csrluInfoHost *csrluInfoHost_t; + + struct csrqrInfoHost; + typedef struct csrqrInfoHost *csrqrInfoHost_t; + + struct csrcholInfoHost; + typedef struct csrcholInfoHost *csrcholInfoHost_t; + + struct csrcholInfo; + typedef struct csrcholInfo *csrcholInfo_t; + + /* + * Low level API for CPU LU + * + */ + cusolverStatus_t CUSOLVERAPI + cusolverSpCreateCsrluInfoHost(csrluInfoHost_t *info); + + cusolverStatus_t CUSOLVERAPI + cusolverSpDestroyCsrluInfoHost(csrluInfoHost_t info); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpXcsrluAnalysisHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + csrluInfoHost_t info); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrluBufferInfoHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrluInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrluBufferInfoHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrluInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrluBufferInfoHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrluInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrluBufferInfoHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrluInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrluFactorHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrluInfoHost_t info, + float pivot_threshold, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrluFactorHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrluInfoHost_t info, + double pivot_threshold, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrluFactorHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrluInfoHost_t info, + float pivot_threshold, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrluFactorHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrluInfoHost_t info, + double pivot_threshold, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrluZeroPivotHost( + cusolverSpHandle_t handle, + csrluInfoHost_t info, + float tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrluZeroPivotHost( + cusolverSpHandle_t handle, + csrluInfoHost_t info, + double tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrluZeroPivotHost( + cusolverSpHandle_t handle, + csrluInfoHost_t info, + float tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrluZeroPivotHost( + cusolverSpHandle_t handle, + csrluInfoHost_t info, + double tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrluSolveHost( + cusolverSpHandle_t handle, + int n, + const float * b, + float * x, + csrluInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrluSolveHost( + cusolverSpHandle_t handle, + int n, + const double * b, + double * x, + csrluInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrluSolveHost( + cusolverSpHandle_t handle, + int n, + const cuComplex * b, + cuComplex * x, + csrluInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrluSolveHost( + cusolverSpHandle_t handle, + int n, + const cuDoubleComplex *b, + cuDoubleComplex * x, + csrluInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpXcsrluNnzHost( + cusolverSpHandle_t handle, + int * nnzLRef, + int * nnzURef, + csrluInfoHost_t info); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrluExtractHost( + cusolverSpHandle_t handle, + int * P, + int * Q, + const cusparseMatDescr_t descrL, + float * csrValL, + int * csrRowPtrL, + int * csrColIndL, + const cusparseMatDescr_t descrU, + float * csrValU, + int * csrRowPtrU, + int * csrColIndU, + csrluInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrluExtractHost( + cusolverSpHandle_t handle, + int * P, + int * Q, + const cusparseMatDescr_t descrL, + double * csrValL, + int * csrRowPtrL, + int * csrColIndL, + const cusparseMatDescr_t descrU, + double * csrValU, + int * csrRowPtrU, + int * csrColIndU, + csrluInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrluExtractHost( + cusolverSpHandle_t handle, + int * P, + int * Q, + const cusparseMatDescr_t descrL, + cuComplex * csrValL, + int * csrRowPtrL, + int * csrColIndL, + const cusparseMatDescr_t descrU, + cuComplex * csrValU, + int * csrRowPtrU, + int * csrColIndU, + csrluInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrluExtractHost( + cusolverSpHandle_t handle, + int * P, + int * Q, + const cusparseMatDescr_t descrL, + cuDoubleComplex * csrValL, + int * csrRowPtrL, + int * csrColIndL, + const cusparseMatDescr_t descrU, + cuDoubleComplex * csrValU, + int * csrRowPtrU, + int * csrColIndU, + csrluInfoHost_t info, + void * pBuffer); + + /* + * Low level API for CPU QR + * + */ + cusolverStatus_t CUSOLVERAPI + cusolverSpCreateCsrqrInfoHost(csrqrInfoHost_t *info); + + cusolverStatus_t CUSOLVERAPI + cusolverSpDestroyCsrqrInfoHost(csrqrInfoHost_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpXcsrqrAnalysisHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfoHost_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrBufferInfoHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrBufferInfoHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrBufferInfoHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrBufferInfoHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrSetupHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + float mu, + csrqrInfoHost_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrSetupHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + double mu, + csrqrInfoHost_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrSetupHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuComplex mu, + csrqrInfoHost_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrSetupHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuDoubleComplex mu, + csrqrInfoHost_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrFactorHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + float * b, + float * x, + csrqrInfoHost_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrFactorHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + double * b, + double * x, + csrqrInfoHost_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrFactorHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + cuComplex * b, + cuComplex * x, + csrqrInfoHost_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrFactorHost( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + cuDoubleComplex * b, + cuDoubleComplex * x, + csrqrInfoHost_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrZeroPivotHost( + cusolverSpHandle_t handle, + csrqrInfoHost_t info, + float tol, + int * position); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrZeroPivotHost( + cusolverSpHandle_t handle, + csrqrInfoHost_t info, + double tol, + int * position); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrZeroPivotHost( + cusolverSpHandle_t handle, + csrqrInfoHost_t info, + float tol, + int * position); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrZeroPivotHost( + cusolverSpHandle_t handle, + csrqrInfoHost_t info, + double tol, + int * position); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrSolveHost( + cusolverSpHandle_t handle, + int m, + int n, + float * b, + float * x, + csrqrInfoHost_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrSolveHost( + cusolverSpHandle_t handle, + int m, + int n, + double * b, + double * x, + csrqrInfoHost_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrSolveHost( + cusolverSpHandle_t handle, + int m, + int n, + cuComplex * b, + cuComplex * x, + csrqrInfoHost_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrSolveHost( + cusolverSpHandle_t handle, + int m, + int n, + cuDoubleComplex * b, + cuDoubleComplex * x, + csrqrInfoHost_t info, + void * pBuffer); + + /* + * Low level API for GPU QR + * + */ + cusolverStatus_t CUSOLVERAPI cusolverSpXcsrqrAnalysis( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfo_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrBufferInfo( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrBufferInfo( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrBufferInfo( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrBufferInfo( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrqrInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrSetup( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + float mu, + csrqrInfo_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrSetup( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + double mu, + csrqrInfo_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrSetup( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuComplex mu, + csrqrInfo_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrSetup( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + cuDoubleComplex mu, + csrqrInfo_t info); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrFactor( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + float * b, + float * x, + csrqrInfo_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrFactor( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + double * b, + double * x, + csrqrInfo_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrFactor( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + cuComplex * b, + cuComplex * x, + csrqrInfo_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrFactor( + cusolverSpHandle_t handle, + int m, + int n, + int nnzA, + cuDoubleComplex * b, + cuDoubleComplex * x, + csrqrInfo_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrZeroPivot( + cusolverSpHandle_t handle, + csrqrInfo_t info, + float tol, + int * position); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrZeroPivot( + cusolverSpHandle_t handle, + csrqrInfo_t info, + double tol, + int * position); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrZeroPivot( + cusolverSpHandle_t handle, + csrqrInfo_t info, + float tol, + int * position); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrZeroPivot( + cusolverSpHandle_t handle, + csrqrInfo_t info, + double tol, + int * position); + + cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrSolve( + cusolverSpHandle_t handle, + int m, + int n, + float * b, + float * x, + csrqrInfo_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrSolve( + cusolverSpHandle_t handle, + int m, + int n, + double * b, + double * x, + csrqrInfo_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrSolve( + cusolverSpHandle_t handle, + int m, + int n, + cuComplex * b, + cuComplex * x, + csrqrInfo_t info, + void * pBuffer); + + cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrSolve( + cusolverSpHandle_t handle, + int m, + int n, + cuDoubleComplex * b, + cuDoubleComplex * x, + csrqrInfo_t info, + void * pBuffer); + + /* + * Low level API for CPU Cholesky + * + */ + cusolverStatus_t CUSOLVERAPI + cusolverSpCreateCsrcholInfoHost(csrcholInfoHost_t *info); + + cusolverStatus_t CUSOLVERAPI + cusolverSpDestroyCsrcholInfoHost(csrcholInfoHost_t info); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpXcsrcholAnalysisHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfoHost_t info); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholBufferInfoHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholBufferInfoHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholBufferInfoHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholBufferInfoHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfoHost_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholFactorHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholFactorHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholFactorHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholFactorHost( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholZeroPivotHost( + cusolverSpHandle_t handle, + csrcholInfoHost_t info, + float tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholZeroPivotHost( + cusolverSpHandle_t handle, + csrcholInfoHost_t info, + double tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholZeroPivotHost( + cusolverSpHandle_t handle, + csrcholInfoHost_t info, + float tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholZeroPivotHost( + cusolverSpHandle_t handle, + csrcholInfoHost_t info, + double tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholSolveHost( + cusolverSpHandle_t handle, + int n, + const float * b, + float * x, + csrcholInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholSolveHost( + cusolverSpHandle_t handle, + int n, + const double * b, + double * x, + csrcholInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholSolveHost( + cusolverSpHandle_t handle, + int n, + const cuComplex * b, + cuComplex * x, + csrcholInfoHost_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholSolveHost( + cusolverSpHandle_t handle, + int n, + const cuDoubleComplex *b, + cuDoubleComplex * x, + csrcholInfoHost_t info, + void * pBuffer); + + /* + * Low level API for GPU Cholesky + * + */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCreateCsrcholInfo(csrcholInfo_t *info); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDestroyCsrcholInfo(csrcholInfo_t info); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpXcsrcholAnalysis( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfo_t info); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholBufferInfo( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholBufferInfo( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholBufferInfo( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholBufferInfo( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfo_t info, + size_t * internalDataInBytes, + size_t * workspaceInBytes); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholFactor( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const float * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfo_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholFactor( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const double * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfo_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholFactor( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfo_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholFactor( + cusolverSpHandle_t handle, + int n, + int nnzA, + const cusparseMatDescr_t descrA, + const cuDoubleComplex * csrValA, + const int * csrRowPtrA, + const int * csrColIndA, + csrcholInfo_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholZeroPivot( + cusolverSpHandle_t handle, + csrcholInfo_t info, + float tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholZeroPivot( + cusolverSpHandle_t handle, + csrcholInfo_t info, + double tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholZeroPivot( + cusolverSpHandle_t handle, + csrcholInfo_t info, + float tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholZeroPivot( + cusolverSpHandle_t handle, + csrcholInfo_t info, + double tol, + int * position); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholSolve( + cusolverSpHandle_t handle, + int n, + const float * b, + float * x, + csrcholInfo_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholSolve( + cusolverSpHandle_t handle, + int n, + const double * b, + double * x, + csrcholInfo_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholSolve( + cusolverSpHandle_t handle, + int n, + const cuComplex * b, + cuComplex * x, + csrcholInfo_t info, + void * pBuffer); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholSolve( + cusolverSpHandle_t handle, + int n, + const cuDoubleComplex *b, + cuDoubleComplex * x, + csrcholInfo_t info, + void * pBuffer); + + /* + * "diag" is a device array of size N. + * cusolverSpcsrcholDiag returns diag(L) to "diag" where A(P,P) = L*L**T + * "diag" can estimate det(A) because det(A(P,P)) = det(A) = det(L)^2 if A = + * L*L**T. + * + * cusolverSpcsrcholDiag must be called after cusolverSpcsrcholFactor. + * otherwise "diag" is wrong. + */ + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholDiag( + cusolverSpHandle_t handle, + csrcholInfo_t info, + float * diag); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholDiag( + cusolverSpHandle_t handle, + csrcholInfo_t info, + double * diag); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholDiag( + cusolverSpHandle_t handle, + csrcholInfo_t info, + float * diag); + + CUSOLVER_DEPRECATED(cuDSS) cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholDiag( + cusolverSpHandle_t handle, + csrcholInfo_t info, + double * diag); + + #if defined(__cplusplus) +} + #endif /* __cplusplus */ + +#endif // CUSOLVERSP_LOWLEVEL_PREVIEW_H_ diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolver_common.h b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolver_common.h new file mode 100644 index 0000000000000000000000000000000000000000..82f8ad5294795dc6c851d76861f809c93988f631 --- /dev/null +++ b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/include/cusolver_common.h @@ -0,0 +1,261 @@ +/* + * Copyright 2014 NVIDIA Corporation. All rights reserved. + * + * NOTICE TO LICENSEE: + * + * This source code and/or documentation ("Licensed Deliverables") are + * subject to NVIDIA intellectual property rights under U.S. and + * international Copyright laws. + * + * These Licensed Deliverables contained herein is PROPRIETARY and + * CONFIDENTIAL to NVIDIA and is being provided under the terms and + * conditions of a form of NVIDIA software license agreement by and + * between NVIDIA and Licensee ("License Agreement") or electronically + * accepted by Licensee. Notwithstanding any terms or conditions to + * the contrary in the License Agreement, reproduction or disclosure + * of the Licensed Deliverables to any third party without the express + * written consent of NVIDIA is prohibited. + * + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE + * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS + * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. + * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED + * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, + * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. + * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE + * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY + * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY + * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + * OF THESE LICENSED DELIVERABLES. + * + * U.S. Government End Users. These Licensed Deliverables are a + * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT + * 1995), consisting of "commercial computer software" and "commercial + * computer software documentation" as such terms are used in 48 + * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government + * only as a commercial end item. Consistent with 48 C.F.R.12.212 and + * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all + * U.S. Government End Users acquire the Licensed Deliverables with + * only those rights set forth herein. + * + * Any use of the Licensed Deliverables in individual and commercial + * software must include, in the user documentation and internal + * comments to the code, the above Disclaimer and U.S. Government End + * Users Notice. + */ + +#if !defined(CUSOLVER_COMMON_H_) + #define CUSOLVER_COMMON_H_ + + #include "library_types.h" + + #ifndef CUSOLVERAPI + #ifdef _WIN32 + #define CUSOLVERAPI __stdcall + #else + #define CUSOLVERAPI + #endif + #endif + + #if defined(_MSC_VER) +typedef __int64 int64_t; + #else + #include + #endif + +typedef int cusolver_int_t; + + #define CUSOLVER_VER_MAJOR 11 + #define CUSOLVER_VER_MINOR 7 + #define CUSOLVER_VER_PATCH 3 + #define CUSOLVER_VER_BUILD 90 + #define CUSOLVER_VERSION \ + (CUSOLVER_VER_MAJOR * 1000 + CUSOLVER_VER_MINOR * 100 + CUSOLVER_VER_PATCH) + +//------------------------------------------------------------------------------ + + #if !defined(_MSC_VER) + #define CUSOLVER_CPP_VERSION __cplusplus + #elif _MSC_FULL_VER >= 190024210 // Visual Studio 2015 Update 3 + #define CUSOLVER_CPP_VERSION _MSVC_LANG + #else + #define CUSOLVER_CPP_VERSION 0 + #endif + +//------------------------------------------------------------------------------ + + #if !defined(DISABLE_CUSOLVER_DEPRECATED) + + #if CUSOLVER_CPP_VERSION >= 201402L + + #define CUSOLVER_DEPRECATED(new_func) \ + [[deprecated("please use " #new_func " instead")]] + + #elif defined(_MSC_VER) + + #define CUSOLVER_DEPRECATED(new_func) \ + __declspec(deprecated("please use " #new_func " instead")) + + #elif defined(__INTEL_COMPILER) || defined(__clang__) || \ + (defined(__GNUC__) && \ + (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))) + + #define CUSOLVER_DEPRECATED(new_func) \ + __attribute__((deprecated("please use " #new_func " instead"))) + + #elif defined(__GNUC__) || defined(__xlc__) + + #define CUSOLVER_DEPRECATED(new_func) __attribute__((deprecated)) + + #else + + #define CUSOLVER_DEPRECATED(new_func) + + #endif // defined(__cplusplus) && __cplusplus >= 201402L + //------------------------------------------------------------------------------ + + #if CUSOLVER_CPP_VERSION >= 201703L + + #define CUSOLVER_DEPRECATED_ENUM(new_enum) \ + [[deprecated("please use " #new_enum " instead")]] + + #elif defined(__clang__) || \ + (defined(__GNUC__) && __GNUC__ >= 6 && !defined(__PGI)) + + #define CUSOLVER_DEPRECATED_ENUM(new_enum) \ + __attribute__((deprecated("please use " #new_enum " instead"))) + + #else + + #define CUSOLVER_DEPRECATED_ENUM(new_enum) + + #endif // defined(__cplusplus) && __cplusplus >= 201402L + + #else // defined(DISABLE_CUSOLVER_DEPRECATED) + + #define CUSOLVER_DEPRECATED(new_func) + #define CUSOLVER_DEPRECATED_ENUM(new_enum) + + #endif // !defined(DISABLE_CUSOLVER_DEPRECATED) + + #undef CUSOLVER_CPP_VERSION + + #if defined(__cplusplus) +extern "C" { + #endif /* __cplusplus */ + + typedef enum { + CUSOLVER_STATUS_SUCCESS = 0, + CUSOLVER_STATUS_NOT_INITIALIZED = 1, + CUSOLVER_STATUS_ALLOC_FAILED = 2, + CUSOLVER_STATUS_INVALID_VALUE = 3, + CUSOLVER_STATUS_ARCH_MISMATCH = 4, + CUSOLVER_STATUS_MAPPING_ERROR = 5, + CUSOLVER_STATUS_EXECUTION_FAILED = 6, + CUSOLVER_STATUS_INTERNAL_ERROR = 7, + CUSOLVER_STATUS_MATRIX_TYPE_NOT_SUPPORTED = 8, + CUSOLVER_STATUS_NOT_SUPPORTED = 9, + CUSOLVER_STATUS_ZERO_PIVOT = 10, + CUSOLVER_STATUS_INVALID_LICENSE = 11, + CUSOLVER_STATUS_IRS_PARAMS_NOT_INITIALIZED = 12, + CUSOLVER_STATUS_IRS_PARAMS_INVALID = 13, + CUSOLVER_STATUS_IRS_PARAMS_INVALID_PREC = 14, + CUSOLVER_STATUS_IRS_PARAMS_INVALID_REFINE = 15, + CUSOLVER_STATUS_IRS_PARAMS_INVALID_MAXITER = 16, + CUSOLVER_STATUS_IRS_INTERNAL_ERROR = 20, + CUSOLVER_STATUS_IRS_NOT_SUPPORTED = 21, + CUSOLVER_STATUS_IRS_OUT_OF_RANGE = 22, + CUSOLVER_STATUS_IRS_NRHS_NOT_SUPPORTED_FOR_REFINE_GMRES = 23, + CUSOLVER_STATUS_IRS_INFOS_NOT_INITIALIZED = 25, + CUSOLVER_STATUS_IRS_INFOS_NOT_DESTROYED = 26, + CUSOLVER_STATUS_IRS_MATRIX_SINGULAR = 30, + CUSOLVER_STATUS_INVALID_WORKSPACE = 31 + } cusolverStatus_t; + + typedef enum { + CUSOLVER_EIG_TYPE_1 = 1, + CUSOLVER_EIG_TYPE_2 = 2, + CUSOLVER_EIG_TYPE_3 = 3 + } cusolverEigType_t; + + typedef enum { + CUSOLVER_EIG_MODE_NOVECTOR = 0, + CUSOLVER_EIG_MODE_VECTOR = 1 + } cusolverEigMode_t; + + typedef enum { + CUSOLVER_EIG_RANGE_ALL = 1001, + CUSOLVER_EIG_RANGE_I = 1002, + CUSOLVER_EIG_RANGE_V = 1003, + } cusolverEigRange_t; + + typedef enum { + CUSOLVER_INF_NORM = 104, + CUSOLVER_MAX_NORM = 105, + CUSOLVER_ONE_NORM = 106, + CUSOLVER_FRO_NORM = 107, + } cusolverNorm_t; + + typedef enum { + CUSOLVER_IRS_REFINE_NOT_SET = 1100, + CUSOLVER_IRS_REFINE_NONE = 1101, + CUSOLVER_IRS_REFINE_CLASSICAL = 1102, + CUSOLVER_IRS_REFINE_CLASSICAL_GMRES = 1103, + CUSOLVER_IRS_REFINE_GMRES = 1104, + CUSOLVER_IRS_REFINE_GMRES_GMRES = 1105, + CUSOLVER_IRS_REFINE_GMRES_NOPCOND = 1106, + + CUSOLVER_PREC_DD = 1150, + CUSOLVER_PREC_SS = 1151, + CUSOLVER_PREC_SHT = 1152, + + } cusolverIRSRefinement_t; + + typedef enum { + CUSOLVER_R_8I = 1201, + CUSOLVER_R_8U = 1202, + CUSOLVER_R_64F = 1203, + CUSOLVER_R_32F = 1204, + CUSOLVER_R_16F = 1205, + CUSOLVER_R_16BF = 1206, + CUSOLVER_R_TF32 = 1207, + CUSOLVER_R_AP = 1208, + CUSOLVER_C_8I = 1211, + CUSOLVER_C_8U = 1212, + CUSOLVER_C_64F = 1213, + CUSOLVER_C_32F = 1214, + CUSOLVER_C_16F = 1215, + CUSOLVER_C_16BF = 1216, + CUSOLVER_C_TF32 = 1217, + CUSOLVER_C_AP = 1218, + } cusolverPrecType_t; + + typedef enum { + CUSOLVER_ALG_0 = 0, /* default algorithm */ + CUSOLVER_ALG_1 = 1, + CUSOLVER_ALG_2 = 2 + } cusolverAlgMode_t; + + typedef enum { + CUBLAS_STOREV_COLUMNWISE = 0, + CUBLAS_STOREV_ROWWISE = 1 + } cusolverStorevMode_t; + + typedef enum { + CUBLAS_DIRECT_FORWARD = 0, + CUBLAS_DIRECT_BACKWARD = 1 + } cusolverDirectMode_t; + + cusolverStatus_t CUSOLVERAPI + cusolverGetProperty(libraryPropertyType type, int *value); + + cusolverStatus_t CUSOLVERAPI cusolverGetVersion(int *version); + + #if defined(__cplusplus) +} + #endif /* __cplusplus */ + +#endif // CUSOLVER_COMMON_H_ diff --git a/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/lib/stubs/libcusolverMg.so b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/lib/stubs/libcusolverMg.so new file mode 100644 index 0000000000000000000000000000000000000000..f199e360261c74dc4134138e3ceba2b52dc5f946 Binary files /dev/null and b/data/miniconda3/pkgs/libcusolver-dev-11.7.3.90-0/targets/x86_64-linux/lib/stubs/libcusolverMg.so differ diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/about.json b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..4c91b6b8eb5efe24b3cfb287634d682781cbecdd --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/about.json @@ -0,0 +1,169 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://repo.anaconda.com/pkgs/r", + "https://repo.anaconda.com/pkgs/r" + ], + "conda_build_version": "25.1.2", + "conda_version": "25.1.1", + "description": "\n\n[![Build Status](https://github.com/mamba-org/mamba/workflows/CI/badge.svg)](https://github.com/mamba-org/mamba/actions)\n[![Join the Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mamba-org/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n[![docs](https://readthedocs.org/projects/mamba/badge/?version=latest&style=flat)](https://mamba.readthedocs.io/en/latest)\n\n`mamba` is a reimplementation of the conda package manager in C++.\n\n- parallel downloading of repository data and package files using multi-threading\n- libsolv for much faster dependency solving, a state of the art library used in the RPM package manager of Red Hat, Fedora and OpenSUSE\n- core parts of `mamba` are implemented in C++ for maximum efficiency\n\nAt the same time, `mamba` utilizes the same command line parser, package installation and deinstallation code and transaction verification routines as `conda` to stay as compatible as possible.\n\nMamba is part of a bigger ecosystem to make scientific packaging more sustainable. You can read our [announcement blog post](https://medium.com/@QuantStack/open-software-packaging-for-science-61cecee7fc23).\nThe ecosystem also consists of `quetz`, an open source `conda` package server and `boa`, a fast `conda` package builder.\n\n\n\nPlease refer to the [`mamba` and `micromamba` installation guide](https://mamba.readthedocs.io/en/latest/installation.html) in the documentation.\n\n\n\n`mamba` and `micromamba` come with features on top of stock `conda`.\n\n\n\nTo efficiently query repositories and query package dependencies you can use `mamba repoquery` or `micromamba repoquery`.\nSee the [repoquery documentation](https://mamba.readthedocs.io/en/latest/user_guide/mamba.html#repoquery) for details.\n\n\n\n`micromamba` can be used to install lock files generated by [conda-lock](https://conda-incubator.github.io/conda-lock/) without having to install `conda-lock`. Simply invoke e.g. `micromamba create -n my-env -f conda-lock.yml` with an environment lockfile named `*-lock.yml` or `*-lock.yaml`.\n", + "dev_url": "https://github.com/mamba-org/mamba", + "doc_url": "https://mamba.readthedocs.io/", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "parent_recipe": { + "name": "mamba-split", + "path": "/home/task_176311149180614/mamba-feedstock/recipe", + "version": "2.3.2" + }, + "recipe-maintainers": [ + "adriendelsalle", + "SylvainCorlay", + "JohanMabille", + "wolfv", + "ericmjl" + ] + }, + "home": "https://github.com/mamba-org/mamba", + "identifiers": [], + "keywords": [], + "license": "BSD-3-Clause", + "license_family": "BSD", + "license_file": "LICENSE", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "ca-certificates 2025.9.9 h06a4308_0", + "ld_impl_linux-64 2.40 h12ee557_0", + "libstdcxx-ng 11.2.0 h1234567_1", + "nlohmann_json 3.11.2 h6a678d5_0", + "pybind11-abi 5 hd3eb1b0_0", + "tzdata 2025a h04d1e81_0", + "libgomp 11.2.0 h1234567_1", + "_openmp_mutex 5.1 1_gnu", + "libgcc-ng 11.2.0 h1234567_1", + "bzip2 1.0.8 h5eee18b_6", + "c-ares 1.19.1 h5eee18b_0", + "cpp-expected 1.1.0 hdb19cb5_0", + "expat 2.6.4 h6a678d5_0", + "fmt 9.1.0 hdb19cb5_1", + "icu 73.1 h6a678d5_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_1", + "libuuid 1.41.5 h5eee18b_0", + "lz4-c 1.9.4 h6a678d5_1", + "ncurses 6.4 h6a678d5_0", + "liblief 0.12.3 h6a678d5_0", + "reproc 14.2.4 h6a678d5_2", + "simdjson 3.10.1 hdb19cb5_0", + "xz 5.4.6 h5eee18b_1", + "yaml-cpp 0.8.0 h6a678d5_1", + "zlib 1.2.13 h5eee18b_1", + "libedit 3.1.20230828 h5eee18b_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libssh2 1.11.1 h251f7ec_0", + "libxml2 2.13.5 hfdd30dd_0", + "pcre2 10.42 hebb0a14_1", + "readline 8.2 h5eee18b_0", + "reproc-cpp 14.2.4 h6a678d5_2", + "spdlog 1.11.0 hdb19cb5_0", + "tk 8.6.14 h39e8969_0", + "zstd 1.5.6 hc292b87_0", + "krb5 1.20.1 h143b758_1", + "libarchive 3.7.7 hfab0078_0", + "libsolv 0.7.30 he621ea3_1", + "sqlite 3.45.3 h5eee18b_0", + "libcurl 8.11.1 hc9e6f67_0", + "python 3.12.9 h5148396_0", + "libmamba 2.0.5 haf1ee3a_1", + "menuinst 2.2.0 py312h06a4308_1", + "anaconda-anon-usage 0.5.0 py312hfc0e8ea_100", + "annotated-types 0.6.0 py312h06a4308_0", + "archspec 0.2.3 pyhd3eb1b0_0", + "boltons 24.1.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_9", + "charset-normalizer 3.3.2 pyhd3eb1b0_0", + "distro 1.9.0 py312h06a4308_0", + "frozendict 2.4.2 py312h06a4308_0", + "idna 3.7 py312h06a4308_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "libmambapy 2.0.5 py312hdb19cb5_1", + "mdurl 0.1.0 py312h06a4308_0", + "packaging 24.2 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.5.0 py312h06a4308_0", + "pycosat 0.6.6 py312h5eee18b_2", + "pycparser 2.21 pyhd3eb1b0_0", + "pygments 2.15.1 py312h06a4308_1", + "pysocks 1.7.1 py312h06a4308_0", + "ruamel.yaml.clib 0.2.8 py312h5eee18b_0", + "setuptools 75.8.0 py312h06a4308_0", + "tqdm 4.67.1 py312he106c6f_0", + "truststore 0.10.0 py312h06a4308_0", + "typing_extensions 4.12.2 py312h06a4308_0", + "wheel 0.45.1 py312h06a4308_0", + "cffi 1.17.1 py312h1fdaa30_1", + "jsonpatch 1.33 py312h06a4308_1", + "markdown-it-py 2.2.0 py312h06a4308_1", + "pip 25.0 py312h06a4308_0", + "ruamel.yaml 0.18.6 py312h5eee18b_0", + "typing-extensions 4.12.2 py312h06a4308_0", + "urllib3 2.3.0 py312h06a4308_0", + "cryptography 43.0.3 py312h7825ff9_1", + "pydantic-core 2.27.1 py312h4aa5aa6_0", + "requests 2.32.3 py312h06a4308_1", + "rich 13.9.4 py312h06a4308_0", + "zstandard 0.23.0 py312h2c38b39_1", + "conda-content-trust 0.2.0 py312h06a4308_1", + "conda-package-streaming 0.11.0 py312h06a4308_0", + "pydantic 2.10.3 py312h06a4308_0", + "conda-package-handling 2.4.0 py312h06a4308_0", + "conda 25.1.1 py312h06a4308_0", + "conda-anaconda-tos 0.1.2 py312h06a4308_0", + "conda-libmamba-solver 25.1.1 pyhd3eb1b0_0", + "libsodium 1.0.20 heac8642_0", + "openssl 3.0.18 hd6dcaed_0", + "patch 2.8 hb25bd0a_0", + "patchelf 0.17.2 h6a678d5_0", + "yaml 0.2.5 h7b6447c_0", + "argcomplete 3.6.2 py312h06a4308_0", + "attrs 24.3.0 py312h06a4308_0", + "certifi 2025.8.3 py312h06a4308_0", + "chardet 5.2.0 py312h06a4308_0", + "click 8.2.1 py312h06a4308_0", + "filelock 3.17.0 py312h06a4308_0", + "jmespath 1.0.1 py312h06a4308_0", + "markupsafe 3.0.2 py312h5eee18b_0", + "more-itertools 10.3.0 py312h06a4308_0", + "pkginfo 1.12.0 py312h06a4308_0", + "psutil 7.0.0 py312hee96239_0", + "py-lief 0.12.3 py312h6a678d5_0", + "python-libarchive-c 5.1 pyhd3eb1b0_0", + "pytz 2025.2 py312h06a4308_0", + "pyyaml 6.0.2 py312h5eee18b_0", + "rpds-py 0.22.3 py312h4aa5aa6_0", + "six 1.17.0 py312h06a4308_0", + "soupsieve 2.5 py312h06a4308_0", + "tomlkit 0.13.2 py312h06a4308_0", + "xmltodict 0.14.2 py312h06a4308_0", + "jinja2 3.1.6 py312h06a4308_0", + "python-dateutil 2.9.0post0 py312h06a4308_2", + "referencing 0.30.2 py312h06a4308_0", + "yq 3.4.3 py312h06a4308_0", + "beautifulsoup4 4.13.5 py312h06a4308_0", + "botocore 1.37.10 py312h06a4308_0", + "jsonschema-specifications 2023.7.1 py312h06a4308_0", + "pynacl 1.5.0 py312h2630517_2", + "jsonschema 4.25.0 py312h06a4308_0", + "s3transfer 0.11.2 py312h06a4308_0", + "boto3 1.37.10 py312h06a4308_0", + "conda-anaconda-telemetry 0.3.0 pyhd3eb1b0_1", + "conda-index 0.5.0 py312h06a4308_0", + "conda-build 25.1.2 py312h06a4308_0" + ], + "summary": "A fast drop-in alternative to conda, using libsolv for dependency resolution", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/files b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/files new file mode 100644 index 0000000000000000000000000000000000000000..6b72cc6a48dbc1d84d7a6df72b752a04b53796e7 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/files @@ -0,0 +1,21 @@ +lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/INSTALLER +lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/LICENSE +lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/METADATA +lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/RECORD +lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/REQUESTED +lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/WHEEL +lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/direct_url.json +lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/top_level.txt +lib/python3.13/site-packages/libmambapy/__init__.py +lib/python3.13/site-packages/libmambapy/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/libmambapy/__pycache__/specs.cpython-313.pyc +lib/python3.13/site-packages/libmambapy/__pycache__/utils.cpython-313.pyc +lib/python3.13/site-packages/libmambapy/__pycache__/version.cpython-313.pyc +lib/python3.13/site-packages/libmambapy/bindings.cpython-313-x86_64-linux-gnu.so +lib/python3.13/site-packages/libmambapy/solver/__init__.py +lib/python3.13/site-packages/libmambapy/solver/__pycache__/__init__.cpython-313.pyc +lib/python3.13/site-packages/libmambapy/solver/__pycache__/libsolv.cpython-313.pyc +lib/python3.13/site-packages/libmambapy/solver/libsolv.py +lib/python3.13/site-packages/libmambapy/specs.py +lib/python3.13/site-packages/libmambapy/utils.py +lib/python3.13/site-packages/libmambapy/version.py diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/git b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/hash_input.json b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..7f824d1a713cfbe7c4f3fa7467e67ea4ed28f8b5 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/hash_input.json @@ -0,0 +1,12 @@ +{ + "libmambapy": "2.3", + "target_platform": "linux-64", + "libmamba": "2.3", + "c_stdlib": "sysroot", + "channel_targets": "defaults", + "cxx_compiler_version": "11.2.0", + "spdlog": "1", + "cxx_compiler": "gxx", + "c_stdlib_version": "2.28", + "__glibc": "__glibc >=2.28,<3.0.a0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/index.json b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..0371af8c4c6d3a283c3f10d4a944751557f33273 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/index.json @@ -0,0 +1,24 @@ +{ + "arch": "x86_64", + "build": "py313h3f77f5b_1", + "build_number": 1, + "depends": [ + "__glibc >=2.28,<3.0.a0", + "fmt >=11.2.0,<12.0a0", + "libgcc", + "libgcc-ng >=11.2.0", + "libmamba 2.3.2 h860b5fb_1", + "libstdcxx", + "libstdcxx-ng >=11.2.0", + "pybind11-abi 5", + "python >=3.13,<3.14.0a0", + "python_abi 3.13.* *_cp313" + ], + "license": "BSD-3-Clause", + "license_family": "BSD", + "name": "libmambapy", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1763111784452, + "version": "2.3.2" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/licenses/LICENSE b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..8ae98f9375a42280a064d98edeb6470073d6ec8a --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/licenses/LICENSE @@ -0,0 +1,11 @@ +Copyright 2019 QuantStack and the Mamba contributors. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/paths.json b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..384b1a20a742e0b1333185f992e168daf6c73877 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/paths.json @@ -0,0 +1,131 @@ +{ + "paths": [ + { + "_path": "lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/INSTALLER", + "path_type": "hardlink", + "sha256": "d0edee15f91b406f3f99726e44eb990be6e34fd0345b52b910c568e0eef6a2a8", + "size_in_bytes": 5 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/LICENSE", + "path_type": "hardlink", + "sha256": "41fd98a468e39d319911bd94f4e65d6ad6a7ea66559dd5aa4112f138ff9b629a", + "size_in_bytes": 1483 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/METADATA", + "path_type": "hardlink", + "sha256": "250d716a94452a7c6497fddbf53da6f5017ad69012fd2c3653dafcd340b3e118", + "size_in_bytes": 447 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/RECORD", + "path_type": "hardlink", + "sha256": "a8694bb472de4e7d0ec21f112876f513d6796132752c430c3e729a4504ad2cf1", + "size_in_bytes": 1590 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/REQUESTED", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/WHEEL", + "path_type": "hardlink", + "sha256": "c41d1eef899b8f2504e657bdb9f624dbf1e93933b097e8e193a367ba66d78d41", + "size_in_bytes": 99 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/direct_url.json", + "path_type": "hardlink", + "sha256": "f0695e08ac9eb6bc813588b9c98a8e490414f50b76d8ff9382fc6ee285435c23", + "size_in_bytes": 112 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/top_level.txt", + "path_type": "hardlink", + "sha256": "202e1066f85f57db49bd0e9d830f0061b57e67aa4cebc25ba5565612d3398a35", + "size_in_bytes": 11 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/__init__.py", + "path_type": "hardlink", + "sha256": "ca4a1f12984d9881ba2807ef176b0a148ce5a32f5cd2bc54b0e11fd835cce477", + "size_in_bytes": 356 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "61c88f39bffc9abbb8a6c0408a4253749eb6c529019275e6671b7b1bc9b5d3c8", + "size_in_bytes": 414 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/__pycache__/specs.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "2bc5392026a8849a3bed8f69c9ef7ffc289b0fc26209d300b2727a006e1c7301", + "size_in_bytes": 192 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/__pycache__/utils.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "8434a01a949cd007fa8b1c606ec64e3be5fd8808784b8cad6b6d9b9aceda300f", + "size_in_bytes": 192 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/__pycache__/version.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "bb806cf53de1577c7f1fda03c24b582007faebd0ebc810482a63c2d587b6199d", + "size_in_bytes": 372 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/bindings.cpython-313-x86_64-linux-gnu.so", + "path_type": "hardlink", + "sha256": "b76882704b7e0697f075adb418c83b585bbb56666fc1765e937990f8a72529bd", + "size_in_bytes": 2628304 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/solver/__init__.py", + "path_type": "hardlink", + "sha256": "816b4e9e809aaf44f93340929a2435f318f86bf2f5e39975a09ffc6cb6efd962", + "size_in_bytes": 102 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/solver/__pycache__/__init__.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "d0ee6304bc3ab27411bec4a1164fa8125f9a4a62b46b487c065cfea2b670c84d", + "size_in_bytes": 253 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/solver/__pycache__/libsolv.cpython-313.pyc", + "path_type": "hardlink", + "sha256": "3eceaba43ae03fe3f10f42406b3218c0e2019aa013d3153b92babce1672c0561", + "size_in_bytes": 210 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/solver/libsolv.py", + "path_type": "hardlink", + "sha256": "0cdcceff74cb28676b708a4d8584cac170d5be1388cf407b39d8a2bd6a7b5974", + "size_in_bytes": 171 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/specs.py", + "path_type": "hardlink", + "sha256": "aa1480de84592f1801932e022930f15a93c4979dfb7ff24bb2a32bacea2c47de", + "size_in_bytes": 153 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/utils.py", + "path_type": "hardlink", + "sha256": "bb765b8466b489050aee048c7c1667855ef43ca27254c9b92beafbf30122daba", + "size_in_bytes": 153 + }, + { + "_path": "lib/python3.13/site-packages/libmambapy/version.py", + "path_type": "hardlink", + "sha256": "bc203d608686b57738176586ded65182550f4d6d036ee1ce23cb4031768c64bb", + "size_in_bytes": 187 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/build_mamba.sh b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/build_mamba.sh new file mode 100644 index 0000000000000000000000000000000000000000..cef54506b1e944e158f5dffb0d96c3d69f898e01 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/build_mamba.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +set -euxo pipefail + +export CXXFLAGS="${CXXFLAGS}" + +if [[ $PKG_NAME == "libmamba" ]]; then + + cmake -B build-lib/ \ + -G Ninja \ + ${CMAKE_ARGS} \ + -D CMAKE_INSTALL_PREFIX=$PREFIX \ + -D CMAKE_PREFIX_PATH=$PREFIX \ + -D CMAKE_BUILD_TYPE=Release \ + -D BUILD_SHARED=ON \ + -D BUILD_LIBMAMBA=ON \ + -D BUILD_MAMBA_PACKAGE=ON \ + -D BUILD_LIBMAMBAPY=OFF \ + -D BUILD_MAMBA=OFF \ + -D BUILD_MICROMAMBA=OFF \ + -D MAMBA_WARNING_AS_ERROR=OFF + cmake --build build-lib/ --parallel ${CPU_COUNT} + cmake --install build-lib/ + +elif [[ $PKG_NAME == "libmambapy" ]]; then + export CMAKE_ARGS="-G Ninja" + if [[ "$OSTYPE" == "darwin"* ]]; then + # skbuild considers that only the major version is important for the deployment target + # https://github.com/scikit-build/scikit-build/blob/main/skbuild%2Fconstants.py#L92-L94 + export CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET%.*}.0" + fi + "${PYTHON}" -m pip install --no-deps --no-build-isolation --config-settings="--build-type=Release" --config-settings="--generator=Ninja" -vv ./libmambapy + +fi \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d8f6debe1e1443465e36f977782e5003fa5fdbc1 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/conda_build_config.yaml @@ -0,0 +1,45 @@ +bzip2: '1' +c_compiler: gcc +c_compiler_version: 11.2.0 +c_stdlib: sysroot +c_stdlib_version: '2.28' +channel_targets: defaults +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cxx_compiler: gxx +cxx_compiler_version: 11.2.0 +extend_keys: +- ignore_build_only_deps +- extend_keys +- ignore_version +- pin_run_as_build +fmt: '11' +fortran_compiler: gfortran +ignore_build_only_deps: +- numpy +- python +libarchive: '3.8' +libcurl: '8' +libmamba: '2.3' +libmambapy: '2.3' +lua: '5' +numpy: '1.26' +openssl: '3' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +platform: linux-64 +python: '3.13' +r_base: '3.5' +reproc: '14.2' +reproc_cpp: '14.2' +simdjson: '3.10' +spdlog: '1' +target_platform: linux-64 +yaml_cpp: '0.8' +zstd: '1.5' diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/meta.yaml b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1b3a7b5db22a8a7eeeef8a81e1b330b9e444b50c --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/meta.yaml @@ -0,0 +1,224 @@ +# This file created by conda-build 25.1.2 +# ------------------------------------------------ + +package: + name: libmambapy + version: 2.3.2 +source: + patches: + - patches/0001-revert-use-range-in-solution.patch + sha256: c969d189b0263218467b9e3b8922fcad8f7023bd8b5a981edc37e0da27cf953f + url: https://github.com/mamba-org/mamba/archive/refs/tags/2.3.2.tar.gz +build: + ignore_run_exports: + - spdlog + number: 1 + run_exports: + - libmambapy >=2.3.2,<2.4.0a0 + string: py313h3f77f5b_1 +requirements: + build: + - _libgcc_mutex 0.1 main + - _openmp_mutex 5.1 1_gnu + - binutils_impl_linux-64 2.40 h5293946_0 + - binutils_linux-64 2.40.0 hc2dff05_2 + - bzip2 1.0.8 h5eee18b_6 + - c-ares 1.34.5 hef5626c_0 + - ca-certificates 2025.11.4 h06a4308_0 + - cmake 4.1.2 hc946e07_0 + - expat 2.7.3 h3385a95_0 + - gcc_impl_linux-64 11.2.0 h1234567_1 + - gcc_linux-64 11.2.0 h5c386dc_2 + - gettext 0.21.0 hedfda30_2 + - gxx_impl_linux-64 11.2.0 h1234567_1 + - gxx_linux-64 11.2.0 hc2dff05_2 + - icu 73.1 h6a678d5_0 + - jansson 2.14 h5eee18b_1 + - kernel-headers_linux-64 4.18.0 h528b178_0 + - ld_impl_linux-64 2.40 h12ee557_0 + - libcurl 8.16.0 heebcbe5_0 + - libev 4.33 h7f8727e_1 + - libgcc 15.2.0 h69a1729_7 + - libgcc-devel_linux-64 11.2.0 h1234567_1 + - libgcc-ng 15.2.0 h166f726_7 + - libgomp 15.2.0 h4751f2c_7 + - libiconv 1.16 h5eee18b_3 + - libidn2 2.3.8 hf80d704_0 + - libnghttp2 1.67.1 h697f920_0 + - libssh2 1.11.1 h251f7ec_0 + - libstdcxx 15.2.0 h39759b7_7 + - libstdcxx-devel_linux-64 11.2.0 h1234567_1 + - libstdcxx-ng 15.2.0 hc03a8fd_7 + - libunistring 1.3 hb25bd0a_0 + - libuv 1.48.0 h5eee18b_0 + - libxml2 2.13.9 h2c43086_0 + - libzlib 1.3.1 hb25bd0a_0 + - lz4-c 1.9.4 h6a678d5_1 + - ncurses 6.5 h7934f7d_0 + - ninja-base 1.12.1 hdb19cb5_0 + - openssl 3.0.18 hd6dcaed_0 + - rhash 1.4.6 ha914fed_0 + - sysroot_linux-64 2.28 h528b178_0 + - tzdata 2025b h04d1e81_0 + - xz 5.6.4 h5eee18b_1 + - zlib 1.3.1 hb25bd0a_0 + - zstd 1.5.7 h11fc155_0 + host: + - _libgcc_mutex 0.1 main + - _openmp_mutex 5.1 1_gnu + - bzip2 1.0.8 h5eee18b_6 + - c-ares 1.34.5 hef5626c_0 + - ca-certificates 2025.11.4 h06a4308_0 + - cmake 4.1.2 hc946e07_0 + - distro 1.9.0 py313h06a4308_0 + - expat 2.7.3 h3385a95_0 + - fmt 11.2.0 hca5f364_0 + - gettext 0.21.0 hedfda30_2 + - icu 73.1 h6a678d5_0 + - jansson 2.14 h5eee18b_1 + - ld_impl_linux-64 2.44 h153f514_2 + - libcurl 8.16.0 heebcbe5_0 + - libev 4.33 h7f8727e_1 + - libffi 3.4.4 h6a678d5_1 + - libgcc 15.2.0 h69a1729_7 + - libgcc-ng 15.2.0 h166f726_7 + - libgomp 15.2.0 h4751f2c_7 + - libiconv 1.16 h5eee18b_3 + - libidn2 2.3.8 hf80d704_0 + - libmamba 2.3.2 h860b5fb_1 + - libmpdec 4.0.0 h5eee18b_0 + - libnghttp2 1.67.1 h697f920_0 + - libssh2 1.11.1 h251f7ec_0 + - libstdcxx 15.2.0 h39759b7_7 + - libstdcxx-ng 15.2.0 hc03a8fd_7 + - libunistring 1.3 hb25bd0a_0 + - libuuid 1.41.5 h5eee18b_0 + - libuv 1.48.0 h5eee18b_0 + - libxcb 1.17.0 h9b100fa_0 + - libxml2 2.13.9 h2c43086_0 + - libzlib 1.3.1 hb25bd0a_0 + - lz4-c 1.9.4 h6a678d5_1 + - make 4.2.1 h1bed415_1 + - ncurses 6.5 h7934f7d_0 + - openssl 3.0.18 hd6dcaed_0 + - packaging 25.0 py313h06a4308_1 + - pip 25.2 pyhc872135_1 + - pthread-stubs 0.3 h0ce48e5_1 + - pybind11 2.13.6 py313hdb19cb5_1 + - pybind11-abi 5 hd3eb1b0_0 + - pybind11-global 2.13.6 py313hdb19cb5_1 + - python 3.13.9 h7e8bc2b_100_cp313 + - python_abi 3.13 1_cp313 + - readline 8.3 hc2a1206_0 + - rhash 1.4.6 ha914fed_0 + - scikit-build 0.18.1 py313hd1a145a_1 + - setuptools 72.1.0 py313h06a4308_0 + - spdlog 1.15.3 hfbf14b3_0 + - sqlite 3.51.0 h2a70700_0 + - tk 8.6.15 h54e0aa7_0 + - tzdata 2025b h04d1e81_0 + - wheel 0.45.1 py313h06a4308_0 + - xorg-libx11 1.8.12 h9b100fa_1 + - xorg-libxau 1.0.12 h9b100fa_0 + - xorg-libxdmcp 1.1.5 h9b100fa_0 + - xorg-xorgproto 2024.1 h5eee18b_1 + - xz 5.6.4 h5eee18b_1 + - zlib 1.3.1 hb25bd0a_0 + - zstd 1.5.7 h11fc155_0 + run: + - __glibc >=2.28,<3.0.a0 + - fmt >=11.2.0,<12.0a0 + - libgcc + - libgcc-ng >=11.2.0 + - libmamba 2.3.2 h860b5fb_1 + - libstdcxx + - libstdcxx-ng >=11.2.0 + - pybind11-abi ==5 + - python >=3.13,<3.14.0a0 + - python_abi 3.13.* *_cp313 +test: + commands: + - python -c "import libmambapy.version; assert libmambapy.version.__version__ + == '2.3.2'" + imports: + - libmambapy + - libmambapy.bindings + - libmambapy.solver +about: + description: ' + + + [![Build Status](https://github.com/mamba-org/mamba/workflows/CI/badge.svg)](https://github.com/mamba-org/mamba/actions) + + [![Join the Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mamba-org/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) + + [![docs](https://readthedocs.org/projects/mamba/badge/?version=latest&style=flat)](https://mamba.readthedocs.io/en/latest) + + + `mamba` is a reimplementation of the conda package manager in C++. + + + - parallel downloading of repository data and package files using multi-threading + + - libsolv for much faster dependency solving, a state of the art library used + in the RPM package manager of Red Hat, Fedora and OpenSUSE + + - core parts of `mamba` are implemented in C++ for maximum efficiency + + + At the same time, `mamba` utilizes the same command line parser, package installation + and deinstallation code and transaction verification routines as `conda` to stay + as compatible as possible. + + + Mamba is part of a bigger ecosystem to make scientific packaging more sustainable. + You can read our [announcement blog post](https://medium.com/@QuantStack/open-software-packaging-for-science-61cecee7fc23). + + The ecosystem also consists of `quetz`, an open source `conda` package server + and `boa`, a fast `conda` package builder. + + + + + Please refer to the [`mamba` and `micromamba` installation guide](https://mamba.readthedocs.io/en/latest/installation.html) + in the documentation. + + + + + `mamba` and `micromamba` come with features on top of stock `conda`. + + + + + To efficiently query repositories and query package dependencies you can use `mamba + repoquery` or `micromamba repoquery`. + + See the [repoquery documentation](https://mamba.readthedocs.io/en/latest/user_guide/mamba.html#repoquery) + for details. + + + + + `micromamba` can be used to install lock files generated by [conda-lock](https://conda-incubator.github.io/conda-lock/) + without having to install `conda-lock`. Simply invoke e.g. `micromamba create + -n my-env -f conda-lock.yml` with an environment lockfile named `*-lock.yml` or + `*-lock.yaml`. + + ' + dev_url: https://github.com/mamba-org/mamba + doc_url: https://mamba.readthedocs.io/ + home: https://github.com/mamba-org/mamba + license: BSD-3-Clause + license_family: BSD + license_file: LICENSE + summary: A fast drop-in alternative to conda, using libsolv for dependency resolution +extra: + copy_test_source_files: true + final: true + recipe-maintainers: + - JohanMabille + - SylvainCorlay + - adriendelsalle + - ericmjl + - wolfv diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/build_mamba.bat b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/build_mamba.bat new file mode 100644 index 0000000000000000000000000000000000000000..5e20c9d44018272985128ec8b7ea5e850c5424c9 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/build_mamba.bat @@ -0,0 +1,27 @@ +@echo ON + +if /I "%PKG_NAME%" == "libmamba" ( + + cmake -B build-lib/ ^ + %CMAKE_ARGS% ^ + -G Ninja ^ + -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ + -D CMAKE_PREFIX_PATH=%PREFIX% ^ + -D CMAKE_BUILD_TYPE=Release ^ + -D BUILD_SHARED=ON ^ + -D BUILD_LIBMAMBA=ON ^ + -D BUILD_MAMBA_PACKAGE=ON ^ + -D BUILD_LIBMAMBAPY=OFF ^ + -D BUILD_MAMBA=OFF ^ + -D BUILD_MICROMAMBA=OFF + if errorlevel 1 exit 1 + cmake --build build-lib/ --parallel %CPU_COUNT% + if errorlevel 1 exit 1 + cmake --install build-lib/ + +) +if /I "%PKG_NAME%" == "libmambapy" ( + + %PYTHON% -m pip install --no-deps --no-build-isolation --config-settings="--build-type=Release" --config-settings="--generator=Ninja" -vv ./libmambapy + +) \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/build_mamba.sh b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/build_mamba.sh new file mode 100644 index 0000000000000000000000000000000000000000..cef54506b1e944e158f5dffb0d96c3d69f898e01 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/build_mamba.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +set -euxo pipefail + +export CXXFLAGS="${CXXFLAGS}" + +if [[ $PKG_NAME == "libmamba" ]]; then + + cmake -B build-lib/ \ + -G Ninja \ + ${CMAKE_ARGS} \ + -D CMAKE_INSTALL_PREFIX=$PREFIX \ + -D CMAKE_PREFIX_PATH=$PREFIX \ + -D CMAKE_BUILD_TYPE=Release \ + -D BUILD_SHARED=ON \ + -D BUILD_LIBMAMBA=ON \ + -D BUILD_MAMBA_PACKAGE=ON \ + -D BUILD_LIBMAMBAPY=OFF \ + -D BUILD_MAMBA=OFF \ + -D BUILD_MICROMAMBA=OFF \ + -D MAMBA_WARNING_AS_ERROR=OFF + cmake --build build-lib/ --parallel ${CPU_COUNT} + cmake --install build-lib/ + +elif [[ $PKG_NAME == "libmambapy" ]]; then + export CMAKE_ARGS="-G Ninja" + if [[ "$OSTYPE" == "darwin"* ]]; then + # skbuild considers that only the major version is important for the deployment target + # https://github.com/scikit-build/scikit-build/blob/main/skbuild%2Fconstants.py#L92-L94 + export CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET%.*}.0" + fi + "${PYTHON}" -m pip install --no-deps --no-build-isolation --config-settings="--build-type=Release" --config-settings="--generator=Ninja" -vv ./libmambapy + +fi \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/conda_build_config.yaml b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d72ec7cab2b56d2b46d0637cbc3e1fe52390c826 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/conda_build_config.yaml @@ -0,0 +1,4 @@ +c_compiler_version: # [osx] +- '19' # [osx] +cxx_compiler_version: # [osx] +- '19' # [osx] \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/meta.yaml b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6a34fb730abeb3e357382c327bd73f66bc43bda5 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/meta.yaml @@ -0,0 +1,171 @@ +{% set name = "mamba" %} +{% set version = "2.3.2" %} + +package: + name: mamba-split + version: {{ version }} + +source: + url: https://github.com/{{ name }}-org/{{ name }}/archive/refs/tags/{{ version }}.tar.gz + sha256: c969d189b0263218467b9e3b8922fcad8f7023bd8b5a981edc37e0da27cf953f + patches: + - patches/0001-revert-use-range-in-solution.patch # [linux] + +build: + number: 1 + +outputs: + - name: libmamba + version: {{ version }} + script: build_mamba.sh # [unix] + script: build_mamba.bat # [win] + build: + run_exports: + - {{ pin_subpackage('libmamba', max_pin='x.x') }} + ignore_run_exports: + - spdlog + requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - {{ stdlib('c') }} + - cmake + - ninja-base + - pkg-config + host: + - libsolv 0.7.30 + - libcurl {{ libcurl }} + - openssl {{ openssl }} + - libarchive {{ libarchive }} + - nlohmann_json 3.11.2 + - cpp-expected 1.1.0 + - reproc-cpp {{ reproc_cpp }} + - reproc {{ reproc }} + - spdlog {{ spdlog }} + - yaml-cpp {{ yaml_cpp }} + - fmt {{ fmt }} + - winreg 4.1.2 # [win] + - zstd {{ zstd }} + - bzip2 {{ bzip2 }} + - cli11 2.1.2 + - simdjson {{ simdjson }} + run: + - {{ pin_compatible('libsolv', max_pin='x.x') }} + - {{ pin_compatible('nlohmann_json', max_pin='x.x.x') }} + - {{ pin_compatible('cpp-expected', max_pin='x.x.x') }} + # through run_exports + - libcurl + - openssl + - libarchive + - reproc-cpp + - reproc + - fmt + - zstd + - bzip2 + - simdjson + test: + commands: + - test -d ${PREFIX}/include/mamba # [unix] + - test -f ${PREFIX}/include/mamba/version.hpp # [unix] + - test -f ${PREFIX}/lib/cmake/libmamba/libmambaConfig.cmake # [unix] + - test -f ${PREFIX}/lib/cmake/libmamba/libmambaConfigVersion.cmake # [unix] + - test -e ${PREFIX}/lib/libmamba${SHLIB_EXT} # [unix] + - if not exist %LIBRARY_PREFIX%\include\mamba\version.hpp (exit 1) # [win] + - if not exist %LIBRARY_PREFIX%\lib\cmake\libmamba\libmambaConfig.cmake (exit 1) # [win] + - if not exist %LIBRARY_PREFIX%\lib\cmake\libmamba\libmambaConfigVersion.cmake (exit 1) # [win] + - if not exist %LIBRARY_PREFIX%\bin\libmamba.dll (exit 1) # [win] + - if not exist %LIBRARY_PREFIX%\lib\libmamba.lib (exit 1) # [win] + {% set libmamba_version_split = version.split('.') %} + - cat $PREFIX/include/mamba/version.hpp | grep "LIBMAMBA_VERSION_MAJOR {{ libmamba_version_split[0] }}" # [unix] + - cat $PREFIX/include/mamba/version.hpp | grep "LIBMAMBA_VERSION_MINOR {{ libmamba_version_split[1] }}" # [unix] + - cat $PREFIX/include/mamba/version.hpp | grep "LIBMAMBA_VERSION_PATCH {{ libmamba_version_split[2] }}" # [unix] + + - name: libmambapy + version: {{ version }} + script: build_mamba.sh # [unix] + script: build_mamba.bat # [win] + build: + skip: true # [py<37] + string: py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} + run_exports: + - {{ pin_subpackage('libmambapy', max_pin='x.x') }} + ignore_run_exports: + - spdlog + requirements: + build: + - {{ compiler('cxx') }} + - {{ stdlib('c') }} + - cmake + - ninja-base + host: + - python + - pip + - scikit-build + - pybind11 <3.0 + - pybind11-abi + - spdlog {{ spdlog }} + - fmt {{ fmt}} + - {{ pin_subpackage('libmamba', exact=True) }} + run: + - python + - {{ pin_subpackage('libmamba', exact=True) }} + + test: + imports: + - libmambapy + - libmambapy.bindings + - libmambapy.solver + commands: + - python -c "import libmambapy.version; assert libmambapy.version.__version__ == '{{ version }}'" + +about: + home: https://github.com/mamba-org/mamba + license: BSD-3-Clause + license_file: LICENSE + license_family: BSD + summary: A fast drop-in alternative to conda, using libsolv for dependency resolution + description: | + # Mamba, the Fast Cross-Platform Package Manager + + [![Build Status](https://github.com/mamba-org/mamba/workflows/CI/badge.svg)](https://github.com/mamba-org/mamba/actions) + [![Join the Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mamba-org/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) + [![docs](https://readthedocs.org/projects/mamba/badge/?version=latest&style=flat)](https://mamba.readthedocs.io/en/latest) + + `mamba` is a reimplementation of the conda package manager in C++. + + - parallel downloading of repository data and package files using multi-threading + - libsolv for much faster dependency solving, a state of the art library used in the RPM package manager of Red Hat, Fedora and OpenSUSE + - core parts of `mamba` are implemented in C++ for maximum efficiency + + At the same time, `mamba` utilizes the same command line parser, package installation and deinstallation code and transaction verification routines as `conda` to stay as compatible as possible. + + Mamba is part of a bigger ecosystem to make scientific packaging more sustainable. You can read our [announcement blog post](https://medium.com/@QuantStack/open-software-packaging-for-science-61cecee7fc23). + The ecosystem also consists of `quetz`, an open source `conda` package server and `boa`, a fast `conda` package builder. + + ### Installation + + Please refer to the [`mamba` and `micromamba` installation guide](https://mamba.readthedocs.io/en/latest/installation.html) in the documentation. + + ### Additional features in Mamba and Micromamba + + `mamba` and `micromamba` come with features on top of stock `conda`. + + ### `repoquery` + + To efficiently query repositories and query package dependencies you can use `mamba repoquery` or `micromamba repoquery`. + See the [repoquery documentation](https://mamba.readthedocs.io/en/latest/user_guide/mamba.html#repoquery) for details. + + ### Installing lock files + + `micromamba` can be used to install lock files generated by [conda-lock](https://conda-incubator.github.io/conda-lock/) without having to install `conda-lock`. Simply invoke e.g. `micromamba create -n my-env -f conda-lock.yml` with an environment lockfile named `*-lock.yml` or `*-lock.yaml`. + + dev_url: https://github.com/mamba-org/mamba + doc_url: https://mamba.readthedocs.io/ + +extra: + recipe-maintainers: + - adriendelsalle + - SylvainCorlay + - JohanMabille + - wolfv + - ericmjl diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/patches/0001-revert-use-range-in-solution.patch b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/patches/0001-revert-use-range-in-solution.patch new file mode 100644 index 0000000000000000000000000000000000000000..03c90baaf0c8fe92439f3ea3c1a5e49d7cd22ce1 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/patches/0001-revert-use-range-in-solution.patch @@ -0,0 +1,884 @@ +From c3e4fad12e427e3a1eed7a817a0b02f1e007ff49 Mon Sep 17 00:00:00 2001 +From: Charles Bousseau +Date: Tue, 9 Sep 2025 16:12:07 -0400 +Subject: [PATCH] Revert "Use range in Solution (#3968)" + +This reverts commit f771e520f9758ae811c4103a68f9cf106bb7dee7. +https://github.com/mamba-org/mamba/pull/3968 + +This PR is marked as not being strictly necessary. +https://github.com/mamba-org/mamba/pull/3968#issuecomment-2948922329 + +The change is unfortunately incompatible with our current compiler on linux. + +--- + .github/workflows/brew.yml | 2 +- + cmake/CompilerWarnings.cmake | 4 +- + libmamba/include/mamba/solver/solution.hpp | 188 ++++++--------- + libmamba/src/core/transaction.cpp | 222 ++++++++++-------- + libmamba/src/solver/helpers.cpp | 23 +- + libmamba/tests/src/solver/test_solution.cpp | 116 ++++----- + libmambapy/src/libmambapy/bindings/solver.cpp | 36 ++- + 7 files changed, 270 insertions(+), 321 deletions(-) + +diff --git a/.github/workflows/brew.yml b/.github/workflows/brew.yml +index faeaeee7..2a451fde 100644 +--- a/.github/workflows/brew.yml ++++ b/.github/workflows/brew.yml +@@ -29,7 +29,7 @@ jobs: + + build_homebrew: + name: Build on homebrew +- runs-on: macos-15 ++ runs-on: macos-13 + + steps: + - name: Checkout mamba repository +diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake +index 8deff360..c9e5d327 100644 +--- a/cmake/CompilerWarnings.cmake ++++ b/cmake/CompilerWarnings.cmake +@@ -97,8 +97,8 @@ function(mamba_target_add_compile_warnings target) + -Wconversion + # Warn on sign conversions + -Wsign-conversion +- # Warn if a null dereference is detected Deactivated because it produced too many false +- # positive with ranges while we are not doing many pointer operations. -Wnull-dereference ++ # Warn if a null dereference is detected ++ -Wnull-dereference + # Warn if float is implicit promoted to double + -Wdouble-promotion + # Warn on security issues around functions that format output (ie printf) +diff --git a/libmamba/include/mamba/solver/solution.hpp b/libmamba/include/mamba/solver/solution.hpp +index 8cc04c52..9f52587f 100644 +--- a/libmamba/include/mamba/solver/solution.hpp ++++ b/libmamba/include/mamba/solver/solution.hpp +@@ -7,12 +7,12 @@ + #ifndef MAMBA_CORE_SOLUTION_HPP + #define MAMBA_CORE_SOLUTION_HPP + +-#include + #include + #include + #include + + #include "mamba/specs/package_info.hpp" ++#include "mamba/util/loop_control.hpp" + #include "mamba/util/type_traits.hpp" + + namespace mamba::solver +@@ -67,39 +67,22 @@ namespace mamba::solver + using action_list = std::vector; + + action_list actions = {}; ++ }; + +- /** +- * Return a view of all unique packages involved in the solution. +- * +- * The view is invalidated if @ref actions is modified. +- */ +- [[nodiscard]] auto packages() const; +- [[nodiscard]] auto packages(); +- +- /** +- * Return a view of all packages that need to be removed. +- * +- * The view is invalidated if @ref actions is modified. +- */ +- [[nodiscard]] auto packages_to_remove() const; +- [[nodiscard]] auto packages_to_remove(); ++ template ++ void for_each_to_remove(Iter first, Iter last, UnaryFunc&& func); ++ template ++ void for_each_to_remove(Range&& actions, UnaryFunc&& func); + +- /** +- * Return a view of all packages that need to be installed. +- * +- * The view is invalidated if @ref actions is modified. +- */ +- [[nodiscard]] auto packages_to_install() const; +- [[nodiscard]] auto packages_to_install(); ++ template ++ void for_each_to_install(Iter first, Iter last, UnaryFunc&& func); ++ template ++ void for_each_to_install(Range&& actions, UnaryFunc&& func); + +- /** +- * Return a view of all packages that are omitted. +- * +- * The view is invalidated if @ref actions is modified. +- */ +- [[nodiscard]] auto packages_to_omit() const; +- [[nodiscard]] auto packages_to_omit(); +- }; ++ template ++ void for_each_to_omit(Iter first, Iter last, UnaryFunc&& func); ++ template ++ void for_each_to_omit(Range&& actions, UnaryFunc&& func); + + /******************************** + * Implementation of Solution * +@@ -132,27 +115,35 @@ namespace mamba::solver + action + ); + } +- +- template +- auto packages_to_remove_impl(Range& actions) +- { +- namespace views = std::ranges::views; +- return actions // +- | views::transform([](auto& a) { return detail::to_remove_ptr(a); }) +- | views::filter([](const auto* ptr) { return ptr != nullptr; }) +- | views::transform([](auto* ptr) -> decltype(auto) { return *ptr; }); +- } +- + } + +- inline auto Solution::packages_to_remove() const ++ // TODO(C++20): Poor man's replacement to range filter transform ++ template ++ void for_each_to_remove(Iter first, Iter last, UnaryFunc&& func) + { +- return detail::packages_to_remove_impl(actions); ++ for (; first != last; ++first) ++ { ++ if (auto* const ptr = detail::to_remove_ptr(*first)) ++ { ++ if constexpr (std::is_same_v) ++ { ++ if (func(*ptr) == util::LoopControl::Break) ++ { ++ break; ++ } ++ } ++ else ++ { ++ func(*ptr); ++ } ++ } ++ } + } + +- inline auto Solution::packages_to_remove() ++ template ++ void for_each_to_remove(Range&& actions, UnaryFunc&& func) + { +- return detail::packages_to_remove_impl(actions); ++ return for_each_to_remove(actions.begin(), actions.end(), std::forward(func)); + } + + namespace detail +@@ -182,27 +173,35 @@ namespace mamba::solver + action + ); + } +- +- template +- auto packages_to_install_impl(Range& actions) +- { +- namespace views = std::ranges::views; +- return actions // +- | views::transform([](auto& a) { return detail::to_install_ptr(a); }) +- | views::filter([](const auto* ptr) { return ptr != nullptr; }) +- | views::transform([](auto* ptr) -> decltype(auto) { return *ptr; }); +- } +- + } + +- inline auto Solution::packages_to_install() const ++ template ++ void for_each_to_install(Iter first, Iter last, UnaryFunc&& func) + { +- return detail::packages_to_install_impl(actions); ++ for (; first != last; ++first) ++ { ++ if (auto* const ptr = detail::to_install_ptr(*first)) ++ { ++ if constexpr (std::is_same_v) ++ { ++ if (func(*ptr) == util::LoopControl::Break) ++ { ++ break; ++ } ++ } ++ else ++ { ++ func(*ptr); ++ } ++ } ++ } + } + +- inline auto Solution::packages_to_install() ++ // TODO(C++20): Poor man's replacement to range filter transform ++ template ++ void for_each_to_install(Range&& actions, UnaryFunc&& func) + { +- return detail::packages_to_install_impl(actions); ++ return for_each_to_install(actions.begin(), actions.end(), std::forward(func)); + } + + namespace detail +@@ -228,72 +227,35 @@ namespace mamba::solver + action + ); + } +- +- template +- auto packages_to_omit_impl(Range& actions) +- { +- namespace views = std::ranges::views; +- return actions // +- | views::transform([](auto& a) { return detail::to_omit_ptr(a); }) +- | views::filter([](const auto* ptr) { return ptr != nullptr; }) +- | views::transform([](auto* ptr) -> decltype(auto) { return *ptr; }); +- } +- +- } +- +- inline auto Solution::packages_to_omit() const +- { +- return detail::packages_to_omit_impl(actions); + } + +- inline auto Solution::packages_to_omit() ++ // TODO(C++20): Poor man's replacement to range filter transform ++ template ++ void for_each_to_omit(Iter first, Iter last, UnaryFunc&& func) + { +- return detail::packages_to_omit_impl(actions); +- } +- +- namespace detail +- { +- template +- constexpr auto package_unique_ptrs(Action& action) ++ for (; first != last; ++first) + { +- auto out = std::array{ +- to_omit_ptr(action), +- to_install_ptr(action), +- to_remove_ptr(action), +- }; +- for (std::size_t i = 1; i < out.size(); ++i) ++ if (auto* const ptr = detail::to_omit_ptr(*first)) + { +- for (std::size_t j = i + 1; j < out.size(); ++j) ++ if constexpr (std::is_same_v) + { +- if (out[j] == out[i]) ++ if (func(*ptr) == util::LoopControl::Break) + { +- out[j] = nullptr; ++ break; + } + } ++ else ++ { ++ func(*ptr); ++ } + } +- return out; + } +- +- template +- auto packages_impl(Range& actions) +- { +- namespace views = std::ranges::views; +- return actions // +- | views::transform([](auto& a) { return package_unique_ptrs(a); }) // +- | views::join // +- | views::filter([](const auto* ptr) { return ptr != nullptr; }) // +- | views::transform([](auto* ptr) -> decltype(auto) { return *ptr; }); +- } +- } +- +- inline auto Solution::packages() const +- { +- return detail::packages_impl(actions); + } + +- inline auto Solution::packages() ++ template ++ void for_each_to_omit(Range&& actions, UnaryFunc&& func) + { +- return detail::packages_impl(actions); ++ return for_each_to_omit(actions.begin(), actions.end(), std::forward(func)); + } + } + #endif +diff --git a/libmamba/src/core/transaction.cpp b/libmamba/src/core/transaction.cpp +index 9abb58fe..486c8715 100644 +--- a/libmamba/src/core/transaction.cpp ++++ b/libmamba/src/core/transaction.cpp +@@ -7,7 +7,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -251,13 +250,16 @@ namespace mamba + else + { + // The specs to install become all the dependencies of the non intstalled specs +- for (const specs::PackageInfo& pkg : m_solution.packages_to_omit()) +- { +- for (const auto& dep : pkg.dependencies) ++ for_each_to_omit( ++ m_solution.actions, ++ [&](const specs::PackageInfo& pkg) + { +- m_history_entry.update.push_back(dep); ++ for (const auto& dep : pkg.dependencies) ++ { ++ m_history_entry.update.push_back(dep); ++ } + } +- } ++ ); + } + + using Request = solver::Request; +@@ -396,7 +398,7 @@ namespace mamba + // to be URL like (i.e. explicit). Below is a loop to fix the channel of the linked + // packages (fix applied to the unlinked packages to avoid potential bugs). Ideally, this + // should be normalised when reading the data. +- for (specs::PackageInfo& pkg : m_solution.packages()) ++ const auto fix_channel = [&](specs::PackageInfo& pkg) + { + auto unresolved_pkg_channel = mamba::specs::UnresolvedChannel::parse(pkg.channel).value(); + auto pkg_channel = mamba::specs::Channel::resolve( +@@ -407,6 +409,9 @@ namespace mamba + auto channel_url = pkg_channel[0].platform_url(pkg.platform).str(); + pkg.channel = channel_url; + }; ++ for_each_to_install(m_solution.actions, fix_channel); ++ for_each_to_remove(m_solution.actions, fix_channel); ++ for_each_to_omit(m_solution.actions, fix_channel); + + TransactionRollback rollback; + TransactionContext transaction_context( +@@ -416,11 +421,25 @@ namespace mamba + m_requested_specs + ); + +- for (const specs::PackageInfo& pkg : m_solution.packages_to_remove()) ++ const auto link = [&](const specs::PackageInfo& pkg) + { + if (is_sig_interrupted()) + { +- break; ++ return util::LoopControl::Break; ++ } ++ Console::stream() << "Linking " << pkg.str(); ++ const fs::u8path cache_path(m_multi_cache.get_extracted_dir_path(pkg, false)); ++ LinkPackage lp(pkg, cache_path, &transaction_context); ++ lp.execute(); ++ rollback.record(lp); ++ m_history_entry.link_dists.push_back(pkg.long_str()); ++ return util::LoopControl::Continue; ++ }; ++ const auto unlink = [&](const specs::PackageInfo& pkg) ++ { ++ if (is_sig_interrupted()) ++ { ++ return util::LoopControl::Break; + } + Console::stream() << "Unlinking " << pkg.str(); + const fs::u8path cache_path(m_multi_cache.get_extracted_dir_path(pkg)); +@@ -428,21 +447,11 @@ namespace mamba + up.execute(); + rollback.record(up); + m_history_entry.unlink_dists.push_back(pkg.long_str()); +- } ++ return util::LoopControl::Continue; ++ }; + +- for (const specs::PackageInfo& pkg : m_solution.packages_to_install()) +- { +- if (is_sig_interrupted()) +- { +- break; +- } +- Console::stream() << "Linking " << pkg.str(); +- const fs::u8path cache_path(m_multi_cache.get_extracted_dir_path(pkg, false)); +- LinkPackage lp(pkg, cache_path, &transaction_context); +- lp.execute(); +- rollback.record(lp); +- m_history_entry.link_dists.push_back(pkg.long_str()); +- } ++ for_each_to_remove(m_solution.actions, unlink); ++ for_each_to_install(m_solution.actions, link); + + if (is_sig_interrupted()) + { +@@ -461,29 +470,25 @@ namespace mamba + + auto MTransaction::to_conda() -> to_conda_type + { +- namespace views = std::ranges::views; +- +- auto to_remove_range = m_solution.packages_to_remove() // +- | views::transform( +- [](const auto& pkg) +- { return to_remove_type::value_type(pkg.channel, pkg.filename); } +- ); +- // TODO(C++23): std::ranges::to +- auto to_remove_structured = to_remove_type(to_remove_range.begin(), to_remove_range.end()); +- +- auto to_install_range = m_solution.packages_to_install() // +- | views::transform( +- [](const auto& pkg) +- { +- return to_install_type::value_type( +- pkg.channel, +- pkg.filename, +- nl::json(pkg).dump(4) +- ); +- } +- ); +- // TODO(C++23): std::ranges::to +- auto to_install_structured = to_install_type(to_install_range.begin(), to_install_range.end()); ++ to_remove_type to_remove_structured = {}; ++ to_remove_structured.reserve(m_solution.actions.size()); // Upper bound ++ for_each_to_remove( ++ m_solution.actions, ++ [&](const auto& pkg) ++ { ++ to_remove_structured.emplace_back(pkg.channel, pkg.filename); // ++ } ++ ); ++ ++ to_install_type to_install_structured = {}; ++ to_install_structured.reserve(m_solution.actions.size()); // Upper bound ++ for_each_to_install( ++ m_solution.actions, ++ [&](const auto& pkg) ++ { ++ to_install_structured.emplace_back(pkg.channel, pkg.filename, nl::json(pkg).dump(4)); // ++ } ++ ); + + to_specs_type specs; + std::get<0>(specs) = m_history_entry.update; +@@ -494,22 +499,27 @@ namespace mamba + + void MTransaction::log_json() + { +- namespace views = std::ranges::views; +- +- // TODO(C++23): std::ranges::to +- auto to_fetch_range = m_solution.packages_to_install() +- | views::filter([this](const auto& pkg) +- { return need_pkg_download(pkg, m_multi_cache); }); +- auto to_fetch = std::vector(to_fetch_range.begin(), to_fetch_range.end()); +- ++ std::vector to_fetch, to_link, to_unlink; + +- // TODO(C++23): std::ranges::to +- auto to_link_range = m_solution.packages_to_install(); +- auto to_link = std::vector(to_link_range.begin(), to_link_range.end()); ++ for_each_to_install( ++ m_solution.actions, ++ [&](const auto& pkg) ++ { ++ if (need_pkg_download(pkg, m_multi_cache)) ++ { ++ to_fetch.push_back(nl::json(pkg)); ++ } ++ to_link.push_back(nl::json(pkg)); ++ } ++ ); + +- // TODO(C++23): std::ranges::to +- auto to_unlink_range = m_solution.packages_to_remove(); +- auto to_unlink = std::vector(to_unlink_range.begin(), to_unlink_range.end()); ++ for_each_to_remove( ++ m_solution.actions, ++ [&](const auto& pkg) ++ { ++ to_unlink.push_back(nl::json(pkg)); // ++ } ++ ); + + auto add_json = [](const auto& jlist, const char* s) + { +@@ -549,59 +559,67 @@ namespace mamba + { + LOG_INFO << "Content trust is enabled, package(s) signatures will be verified"; + } +- for (const auto& pkg : solution.packages_to_install()) +- { +- if (ctx.validation_params.verify_artifacts) ++ for_each_to_install( ++ solution.actions, ++ [&](const auto& pkg) + { +- LOG_INFO << "Creating RepoChecker..."; +- auto repo_checker_store = RepoCheckerStore::make(ctx, channel_context, multi_cache); +- for (auto& chan : channel_context.make_channel(pkg.channel)) ++ if (ctx.validation_params.verify_artifacts) + { +- auto repo_checker = repo_checker_store.find_checker(chan); +- if (repo_checker) +- { +- LOG_INFO << "RepoChecker successfully created."; +- repo_checker->generate_index_checker(); +- repo_checker->verify_package( +- pkg.json_signable(), +- std::string_view(pkg.signatures) +- ); +- } +- else ++ LOG_INFO << "Creating RepoChecker..."; ++ auto repo_checker_store = RepoCheckerStore::make( ++ ctx, ++ channel_context, ++ multi_cache ++ ); ++ for (auto& chan : channel_context.make_channel(pkg.channel)) + { +- LOG_ERROR << "Could not create a valid RepoChecker."; +- throw std::runtime_error(fmt::format( +- R"(Could not verify "{}". Please make sure the package signatures are available and 'trusted-channels' are configured correctly. Alternatively, try downloading without '--verify-artifacts' flag.)", +- pkg.name +- )); ++ auto repo_checker = repo_checker_store.find_checker(chan); ++ if (repo_checker) ++ { ++ LOG_INFO << "RepoChecker successfully created."; ++ repo_checker->generate_index_checker(); ++ repo_checker->verify_package( ++ pkg.json_signable(), ++ std::string_view(pkg.signatures) ++ ); ++ } ++ else ++ { ++ LOG_ERROR << "Could not create a valid RepoChecker."; ++ throw std::runtime_error(fmt::format( ++ R"(Could not verify "{}". Please make sure the package signatures are available and 'trusted-channels' are configured correctly. Alternatively, try downloading without '--verify-artifacts' flag.)", ++ pkg.name ++ )); ++ } + } ++ LOG_INFO << "'" << pkg.name << "' trusted from '" << pkg.channel << "'"; + } +- LOG_INFO << "'" << pkg.name << "' trusted from '" << pkg.channel << "'"; +- } + +- // FIXME: only do this for micromamba for now +- if (ctx.command_params.is_mamba_exe) +- { +- using Credentials = typename specs::CondaURL::Credentials; +- auto l_pkg = pkg; ++ // FIXME: only do this for micromamba for now ++ if (ctx.command_params.is_mamba_exe) + { +- auto channels = channel_context.make_channel(pkg.package_url); +- assert(channels.size() == 1); // A URL can only resolve to one channel +- l_pkg.package_url = channels.front().platform_urls().at(0).str(Credentials::Show +- ); ++ using Credentials = typename specs::CondaURL::Credentials; ++ auto l_pkg = pkg; ++ { ++ auto channels = channel_context.make_channel(pkg.package_url); ++ assert(channels.size() == 1); // A URL can only resolve to one channel ++ l_pkg.package_url = channels.front().platform_urls().at(0).str( ++ Credentials::Show ++ ); ++ } ++ { ++ auto channels = channel_context.make_channel(pkg.channel); ++ assert(channels.size() == 1); // A URL can only resolve to one channel ++ l_pkg.channel = channels.front().id(); ++ } ++ fetchers.emplace_back(l_pkg, multi_cache); + } ++ else + { +- auto channels = channel_context.make_channel(pkg.channel); +- assert(channels.size() == 1); // A URL can only resolve to one channel +- l_pkg.channel = channels.front().id(); ++ fetchers.emplace_back(pkg, multi_cache); + } +- fetchers.emplace_back(l_pkg, multi_cache); +- } +- else +- { +- fetchers.emplace_back(pkg, multi_cache); + } +- } ++ ); + + if (ctx.validation_params.verify_artifacts) + { +diff --git a/libmamba/src/solver/helpers.cpp b/libmamba/src/solver/helpers.cpp +index e1b7457f..9a2d826c 100644 +--- a/libmamba/src/solver/helpers.cpp ++++ b/libmamba/src/solver/helpers.cpp +@@ -4,8 +4,6 @@ + // + // The full license is in the file LICENSE, distributed with this software. + +-#include +- + #include "solver/helpers.hpp" + + namespace mamba::solver +@@ -13,13 +11,20 @@ namespace mamba::solver + auto find_new_python_in_solution(const Solution& solution) + -> std::optional> + { +- auto packages = solution.packages_to_install(); +- auto it = std::ranges::find_if(packages, [](const auto& pkg) { return pkg.name == "python"; }); +- if (it != packages.end()) +- { +- return std::cref(*it); +- } +- return std::nullopt; ++ auto out = std::optional>{}; ++ for_each_to_install( ++ solution.actions, ++ [&](const auto& pkg) ++ { ++ if (pkg.name == "python") ++ { ++ out = std::cref(pkg); ++ return util::LoopControl::Break; ++ } ++ return util::LoopControl::Continue; ++ } ++ ); ++ return out; + } + + auto python_binary_compatible(const specs::Version& older, const specs::Version& newer) -> bool +diff --git a/libmamba/tests/src/solver/test_solution.cpp b/libmamba/tests/src/solver/test_solution.cpp +index 1031295b..1e511709 100644 +--- a/libmamba/tests/src/solver/test_solution.cpp ++++ b/libmamba/tests/src/solver/test_solution.cpp +@@ -29,108 +29,80 @@ namespace + Solution::Install{ PackageInfo("install") }, + } }; + +- constexpr auto as_const = [](const auto& x) -> decltype(auto) { return x; }; +- +- SECTION("Const iterate over packages") ++ SECTION("Iterate over packages") + { +- SECTION("Packages to remove") +- { +- auto remove_count = std::size_t(0); +- for (const PackageInfo& pkg : as_const(solution).packages_to_remove()) ++ auto remove_count = std::size_t(0); ++ for_each_to_remove( ++ solution.actions, ++ [&](const PackageInfo& pkg) + { + remove_count++; + const auto has_remove = util::ends_with(pkg.name, "remove") + || (pkg.name == "reinstall"); + REQUIRE(has_remove); + } +- REQUIRE(remove_count == 5); +- } ++ ); ++ REQUIRE(remove_count == 5); + +- SECTION("Packages to install") +- { +- auto install_count = std::size_t(0); +- for (const PackageInfo& pkg : as_const(solution).packages_to_install()) ++ auto install_count = std::size_t(0); ++ for_each_to_install( ++ solution.actions, ++ [&](const PackageInfo& pkg) + { + install_count++; + const auto has_install = util::ends_with(pkg.name, "install") + || (pkg.name == "reinstall"); + REQUIRE(has_install); + } +- REQUIRE(install_count == 5); +- } ++ ); ++ REQUIRE(install_count == 5); + +- SECTION("Packages to omit") +- { +- auto omit_count = std::size_t(0); +- for (const PackageInfo& pkg : as_const(solution).packages_to_omit()) ++ auto omit_count = std::size_t(0); ++ for_each_to_omit( ++ solution.actions, ++ [&](const PackageInfo& pkg) + { + omit_count++; + REQUIRE(util::ends_with(pkg.name, "omit")); + } +- REQUIRE(omit_count == 1); +- } +- +- SECTION("All packages") +- { +- auto count = std::size_t(0); +- for (const PackageInfo& pkg : as_const(solution).packages()) +- { +- count++; +- REQUIRE(!pkg.name.empty()); +- } +- REQUIRE(count == 10); +- } ++ ); ++ REQUIRE(omit_count == 1); + } + +- SECTION("Ref iterate over packages") ++ SECTION("Iterate over packages and break") + { +- SECTION("Packages to remove") +- { +- for (PackageInfo& pkg : solution.packages_to_remove()) +- { +- pkg.name = ""; +- } +- for (const PackageInfo& pkg : solution.packages_to_remove()) +- { +- CHECK(pkg.name == ""); +- } +- } +- +- SECTION("Packages to install") +- { +- for (PackageInfo& pkg : solution.packages_to_install()) ++ auto remove_count = std::size_t(0); ++ for_each_to_remove( ++ solution.actions, ++ [&](const PackageInfo&) + { +- pkg.name = ""; +- } +- for (const PackageInfo& pkg : solution.packages_to_install()) +- { +- CHECK(pkg.name == ""); ++ remove_count++; ++ return util::LoopControl::Break; + } +- } ++ ); ++ REQUIRE(remove_count == 1); + +- SECTION("Packages to omit") +- { +- for (PackageInfo& pkg : solution.packages_to_omit()) +- { +- pkg.name = ""; +- } +- for (const PackageInfo& pkg : solution.packages_to_omit()) ++ auto install_count = std::size_t(0); ++ for_each_to_install( ++ solution.actions, ++ [&](const PackageInfo&) + { +- CHECK(pkg.name == ""); ++ install_count++; ++ return util::LoopControl::Break; + } +- } ++ ); ++ REQUIRE(install_count == 1); + +- SECTION("All packages") +- { +- for (PackageInfo& pkg : solution.packages()) +- { +- pkg.name = ""; +- } +- for (const PackageInfo& pkg : solution.packages()) ++ auto omit_count = std::size_t(0); ++ for_each_to_omit( ++ solution.actions, ++ [&](const PackageInfo&) + { +- CHECK(pkg.name == ""); ++ omit_count++; ++ return util::LoopControl::Break; + } +- } ++ ); ++ REQUIRE(omit_count == 1); + } + } + } +diff --git a/libmambapy/src/libmambapy/bindings/solver.cpp b/libmambapy/src/libmambapy/bindings/solver.cpp +index 6bc6510c..7e7176dd 100644 +--- a/libmambapy/src/libmambapy/bindings/solver.cpp ++++ b/libmambapy/src/libmambapy/bindings/solver.cpp +@@ -302,44 +302,36 @@ namespace mambapy + )) + .def_readwrite("actions", &Solution::actions) + .def( +- "packages", ++ "to_install", + [](const Solution& solution) -> std::vector + { +- // TODO(C++23): std::ranges::to + auto out = std::vector{}; +- out.reserve(solution.actions.size()); // Lower bound +- for (const auto& pkg : solution.packages()) +- { +- out.push_back(pkg); +- } ++ out.reserve(solution.actions.size()); // Upper bound ++ for_each_to_install( ++ solution.actions, ++ [&](const auto& pkg) { out.push_back(pkg); } ++ ); + return out; + } + ) +- .def( +- "to_install", +- [](const Solution& solution) -> std::vector +- { +- // TODO(C++23): std::ranges::to +- auto range = solution.packages_to_install(); +- return { range.begin(), range.end() }; +- } +- ) + .def( + "to_remove", + [](const Solution& solution) -> std::vector + { +- // TODO(C++23): std::ranges::to +- auto range = solution.packages_to_remove(); +- return { range.begin(), range.end() }; ++ auto out = std::vector{}; ++ out.reserve(solution.actions.size()); // Upper bound ++ for_each_to_remove(solution.actions, [&](const auto& pkg) { out.push_back(pkg); }); ++ return out; + } + ) + .def( + "to_omit", + [](const Solution& solution) -> std::vector + { +- // TODO(C++23): std::ranges::to +- auto range = solution.packages_to_omit(); +- return { range.begin(), range.end() }; ++ auto out = std::vector{}; ++ out.reserve(solution.actions.size()); // Upper bound ++ for_each_to_omit(solution.actions, [&](const auto& pkg) { out.push_back(pkg); }); ++ return out; + } + ) + .def("__copy__", ©) +-- +2.39.5 (Apple Git-154) + diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/test_libmamba_version.py b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/test_libmamba_version.py new file mode 100644 index 0000000000000000000000000000000000000000..57a49782bddf5d882e4ef1826f0643d7df1af1ed --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/recipe/parent/test_libmamba_version.py @@ -0,0 +1,13 @@ +#!/bin/python + +import os +import re +import sys +from pathlib import Path + +v_hpp = Path(os.environ['PREFIX']) / "include" / "mamba" / "version.hpp" +v_re = re.compile(r'^.*#define LIBMAMBA_VERSION_STRING "(\d+.\d+.\d+)".*$', re.MULTILINE) + +with open(v_hpp, "r") as f: + r1 = re.search(v_re, f.read()) + assert r1.groups()[0] == sys.argv[-1] diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/repodata_record.json b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..2f168859ddaea4436dd15a781df5ce25f67584d1 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/repodata_record.json @@ -0,0 +1,31 @@ +{ + "arch": "x86_64", + "build": "py313h3f77f5b_1", + "build_number": 1, + "channel": "https://repo.anaconda.com/pkgs/main/linux-64/", + "constrains": [], + "depends": [ + "__glibc >=2.28,<3.0.a0", + "fmt >=11.2.0,<12.0a0", + "libgcc", + "libgcc-ng >=11.2.0", + "libmamba 2.3.2 h860b5fb_1", + "libstdcxx", + "libstdcxx-ng >=11.2.0", + "pybind11-abi 5", + "python >=3.13,<3.14.0a0", + "python_abi 3.13.* *_cp313" + ], + "fn": "libmambapy-2.3.2-py313h3f77f5b_1.conda", + "license": "BSD-3-Clause", + "license_family": "BSD", + "md5": "a974c724de77f79cd7e926116fd861df", + "name": "libmambapy", + "platform": "linux", + "sha256": "feedf8857d483851cf41a5ff9d625ea9c100194d54a974259072e215a3f86307", + "size": 663170, + "subdir": "linux-64", + "timestamp": 1763111784000, + "url": "https://repo.anaconda.com/pkgs/main/linux-64/libmambapy-2.3.2-py313h3f77f5b_1.conda", + "version": "2.3.2" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/run_exports.json b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..8a92adeb0ca2fa4a925e165d7ea28c1c63d4ee58 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/run_exports.json @@ -0,0 +1 @@ +{"weak": ["libmambapy >=2.3.2,<2.4.0a0"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/test/run_test.py b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/test/run_test.py new file mode 100644 index 0000000000000000000000000000000000000000..312a4415fe3c3a23f4d5c74a0a22b368c68c429b --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/test/run_test.py @@ -0,0 +1,9 @@ +print("import: 'libmambapy'") +import libmambapy + +print("import: 'libmambapy.bindings'") +import libmambapy.bindings + +print("import: 'libmambapy.solver'") +import libmambapy.solver + diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/test/run_test.sh b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..712561073e56f6c07324e14628b52f1368591635 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/info/test/run_test.sh @@ -0,0 +1,8 @@ + + +set -ex + + + +python -c "import libmambapy.version; assert libmambapy.version.__version__ == '2.3.2'" +exit 0 diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/INSTALLER b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..f79e4cb9aaf0b2d9e8ba78861e2071317b2384b3 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/INSTALLER @@ -0,0 +1 @@ +conda \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/LICENSE b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..8ae98f9375a42280a064d98edeb6470073d6ec8a --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/LICENSE @@ -0,0 +1,11 @@ +Copyright 2019 QuantStack and the Mamba contributors. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/METADATA b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..3ef83f3938989a620614d68a3dae0154470f90b8 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/METADATA @@ -0,0 +1,15 @@ +Metadata-Version: 2.1 +Name: libmambapy +Version: 2.3.2 +Summary: A fast library to interact with the Conda package ecosystem +Author: Wolf Vollprecht, Adrien Delsalle, Jonas Haag, Other contributors +Author-email: QuantStack +Maintainer-email: QuantStack +License: BSD-3-Clause +Keywords: mamba,conda,packaging +Platform: Windows +Platform: Linux +Platform: Mac OS X +Requires-Python: >=3.7 +License-File: LICENSE + diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/RECORD b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..4c850f6ff0772ceb173571a0e58494271c4ea66b --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/RECORD @@ -0,0 +1,21 @@ +libmambapy-2.3.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +libmambapy-2.3.2.dist-info/LICENSE,sha256=Qf2YpGjjnTGZEb2U9OZdatan6mZVndWqQRLxOP-bYpo,1483 +libmambapy-2.3.2.dist-info/METADATA,sha256=JQ1xapRFKnxkl_3b9T2m9QF61pAS_Sw2U9r800Cz4Rg,447 +libmambapy-2.3.2.dist-info/RECORD,, +libmambapy-2.3.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +libmambapy-2.3.2.dist-info/WHEEL,sha256=xB0e74mbjyUE5le9ufYk2_HpOTOwl-jhk6NnumbXjUE,99 +libmambapy-2.3.2.dist-info/direct_url.json,sha256=8GleCKyetryBNYi5yYqOSQQU9Qt22P-Tgvxu4oVDXCM,112 +libmambapy-2.3.2.dist-info/top_level.txt,sha256=IC4QZvhfV9tJvQ6dgw8AYbV-Z6pM68JbpVZWEtM5ijU,11 +libmambapy/__init__.py,sha256=ykofEphNmIG6KAfvF2sKFIzloy9c0rxUsOEf2DXM5Hc,356 +libmambapy/__pycache__/__init__.cpython-313.pyc,, +libmambapy/__pycache__/specs.cpython-313.pyc,, +libmambapy/__pycache__/utils.cpython-313.pyc,, +libmambapy/__pycache__/version.cpython-313.pyc,, +libmambapy/bindings.cpython-313-x86_64-linux-gnu.so,sha256=9FT7QLfwpLV_60VNX08YPQAv3GUluFf_S4sW_iEVTpY,2628304 +libmambapy/solver/__init__.py,sha256=gWtOnoCar0T5M0CSmiQ18xj4a_L145l1oJ_8bLbv2WI,102 +libmambapy/solver/__pycache__/__init__.cpython-313.pyc,, +libmambapy/solver/__pycache__/libsolv.cpython-313.pyc,, +libmambapy/solver/libsolv.py,sha256=DNzO_3TLKGdrcIpNhYTKwXDVvhOIz0B7OdiivWp7WXQ,171 +libmambapy/specs.py,sha256=qhSA3oRZLxgBky4CKTDxWpPEl537f_JLsqMrrOosR94,153 +libmambapy/utils.py,sha256=u3ZbhGa0iQUK7gSMfBZnhV70PKJyVMm5K-r78wEi2ro,153 +libmambapy/version.py,sha256=vCA9YIaGtXc4F2WG3tZRglUPTW0DbuHOI8tAMXaMZLs,187 diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/REQUESTED b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/REQUESTED new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/WHEEL b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..dcc5ad0b881cc4c387453a0cfa0d698b9ca10f5e --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: skbuild 0.18.1 +Root-Is-Purelib: false +Tag: cp313-cp313-linux_x86_64 + diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/direct_url.json b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/direct_url.json new file mode 100644 index 0000000000000000000000000000000000000000..002b5843ec881a2723327cac63be8e5b94499c1b --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/direct_url.json @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///home/task_176311149180614/conda-bld/mamba-split_1763111570862/work/libmambapy"} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/top_level.txt b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/top_level.txt new file mode 100644 index 0000000000000000000000000000000000000000..aec741c8d189f5033afe86baa4314b00caace13e --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy-2.3.2.dist-info/top_level.txt @@ -0,0 +1 @@ +libmambapy diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__init__.py b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e780c64b3dddb08c8fa3e1557dcc8d2bafa16d32 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__init__.py @@ -0,0 +1,11 @@ +# Import all submodules so that one can use them directly with `import libmambapy` +import libmambapy.utils +import libmambapy.version +import libmambapy.specs +import libmambapy.solver + +# Legacy which used to combine everything +from libmambapy.bindings.legacy import * # noqa: F403 + +# Define top-level attributes +__version__ = libmambapy.version.__version__ diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/__init__.cpython-313.pyc b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/__init__.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0d17d09c1bb9ed13ce0565998e8e187815b5d636 Binary files /dev/null and b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/__init__.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/specs.cpython-313.pyc b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/specs.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2751f5d6f2a055b6210acd39b75c80a22b49c24d Binary files /dev/null and b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/specs.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/utils.cpython-313.pyc b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/utils.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e7be3bcbc19cbfae3f12081a2c28cdd253c46d55 Binary files /dev/null and b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/utils.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/version.cpython-313.pyc b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/version.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..82523000c6d5806a5fc048a5ca96687af97c4d0c Binary files /dev/null and b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/__pycache__/version.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/__init__.py b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..519c9af385cb7ab29aa8c2a0dcef7d0c6a7c32d3 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/__init__.py @@ -0,0 +1,2 @@ +from libmambapy.bindings.solver import * # noqa: F403 +import libmambapy.solver.libsolv # noqa: F401 diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/__pycache__/__init__.cpython-313.pyc b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/__pycache__/__init__.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ff3b65e223ce56a80b729f5bdf85a9fd5a2703f8 Binary files /dev/null and b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/__pycache__/__init__.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/__pycache__/libsolv.cpython-313.pyc b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/__pycache__/libsolv.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ed0fb75883a260a485d5aaf6e88b1a02d4a3ac42 Binary files /dev/null and b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/__pycache__/libsolv.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/libsolv.py b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/libsolv.py new file mode 100644 index 0000000000000000000000000000000000000000..8dc155f4dd79930010823fb6130c9cc61dfbc324 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/solver/libsolv.py @@ -0,0 +1,2 @@ +# This file exists on its own rather than in `__init__.py` to make `import libmambapy.solver.libsolv` work. +from libmambapy.bindings.solver.libsolv import * # noqa: F403 diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/specs.py b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/specs.py new file mode 100644 index 0000000000000000000000000000000000000000..b7c25d844a3c64f49cc69f846d4b958443c37270 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/specs.py @@ -0,0 +1,2 @@ +# This file exists on its own rather than in `__init__.py` to make `import libmambapy.specs` work. +from libmambapy.bindings.specs import * # noqa: F403 diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/utils.py b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..febe6dfedc755d07f8f9df8b7e35f179f2fcc041 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/utils.py @@ -0,0 +1,2 @@ +# This file exists on its own rather than in `__init__.py` to make `import libmambapy.utils` work. +from libmambapy.bindings.utils import * # noqa: F403 diff --git a/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/version.py b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/version.py new file mode 100644 index 0000000000000000000000000000000000000000..07e8bcd1a955e2b33d0daae79ed59875d799dfb6 --- /dev/null +++ b/data/miniconda3/pkgs/libmambapy-2.3.2-py313h3f77f5b_1/lib/python3.13/site-packages/libmambapy/version.py @@ -0,0 +1,5 @@ +version_info = ("2", "3", "2") +version_prerelease = "" +__version__ = ".".join(map(str, version_info)) +if version_prerelease != "": + __version__ = f"{__version__}.{version_prerelease}" diff --git a/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/about.json b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..828f45b8bccf336b2b3258376252dfc6f0268235 --- /dev/null +++ b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/about.json @@ -0,0 +1,138 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://conda.anaconda.org/nvidia/linux-64" + ], + "conda_build_version": "24.1.2", + "conda_version": "24.1.2", + "description": "nvJPEG native runtime libraries\n", + "doc_url": "https://docs.nvidia.com/cuda/nvjpeg/index.html", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "recipe-maintainers": [ + "conda-forge/cuda" + ] + }, + "home": "https://developer.nvidia.com/nvjpeg", + "identifiers": [], + "keywords": [], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "license_file": "LICENSE", + "license_url": "https://docs.nvidia.com/cuda/eula/index.html", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "_openmp_mutex 5.1 1_gnu", + "archspec 0.2.1 pyhd3eb1b0_0", + "boltons 23.0.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_7", + "bzip2 1.0.8 h7b6447c_0", + "c-ares 1.19.1 h5eee18b_0", + "ca-certificates 2023.12.12 h06a4308_0", + "certifi 2024.2.2 py312h06a4308_0", + "cffi 1.16.0 py312h5eee18b_0", + "charset-normalizer 2.0.4 pyhd3eb1b0_0", + "conda 24.1.2 py312h06a4308_0", + "conda-content-trust 0.2.0 py312h06a4308_0", + "conda-libmamba-solver 23.12.0 pyhd3eb1b0_1", + "conda-package-handling 2.2.0 py312h06a4308_0", + "conda-package-streaming 0.9.0 py312h06a4308_0", + "cryptography 41.0.7 py312hdda0065_0", + "distro 1.8.0 py312h06a4308_0", + "expat 2.5.0 h6a678d5_0", + "fmt 9.1.0 hdb19cb5_0", + "icu 73.1 h6a678d5_0", + "idna 3.4 py312h06a4308_0", + "jsonpatch 1.32 pyhd3eb1b0_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "krb5 1.20.1 h143b758_1", + "ld_impl_linux-64 2.38 h1181459_1", + "libarchive 3.6.2 h6ac8c49_2", + "libcurl 8.5.0 h251f7ec_0", + "libedit 3.1.20230828 h5eee18b_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_0", + "libgcc-ng 11.2.0 h1234567_1", + "libgomp 11.2.0 h1234567_1", + "libmamba 1.5.3 haf1ee3a_0", + "libmambapy 1.5.3 py312h2dafd23_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libsolv 0.7.24 he621ea3_0", + "libssh2 1.10.0 hdbd6064_2", + "libstdcxx-ng 11.2.0 h1234567_1", + "libuuid 1.41.5 h5eee18b_0", + "libxml2 2.10.4 hf1b16e4_1", + "lz4-c 1.9.4 h6a678d5_0", + "menuinst 2.0.2 py312h06a4308_0", + "ncurses 6.4 h6a678d5_0", + "openssl 3.0.13 h7f8727e_0", + "packaging 23.1 py312h06a4308_0", + "pcre2 10.42 hebb0a14_0", + "pip 23.3.1 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.0.0 py312h06a4308_1", + "pybind11-abi 4 hd3eb1b0_1", + "pycosat 0.6.6 py312h5eee18b_0", + "pycparser 2.21 pyhd3eb1b0_0", + "pysocks 1.7.1 py312h06a4308_0", + "python 3.12.1 h996f2a0_0", + "readline 8.2 h5eee18b_0", + "reproc 14.2.4 h295c915_1", + "reproc-cpp 14.2.4 h295c915_1", + "requests 2.31.0 py312h06a4308_1", + "ruamel.yaml 0.17.21 py312h5eee18b_0", + "setuptools 68.2.2 py312h06a4308_0", + "sqlite 3.41.2 h5eee18b_0", + "tk 8.6.12 h1ccaba5_0", + "tqdm 4.65.0 py312he106c6f_0", + "truststore 0.8.0 py312h06a4308_0", + "tzdata 2023d h04d1e81_0", + "urllib3 2.1.0 py312h06a4308_1", + "wheel 0.41.2 py312h06a4308_0", + "xz 5.4.5 h5eee18b_0", + "yaml-cpp 0.8.0 h6a678d5_0", + "zlib 1.2.13 h5eee18b_0", + "zstandard 0.19.0 py312h5eee18b_0", + "zstd 1.5.5 hc292b87_0", + "anaconda-anon-usage 0.4.3 py312hfc0e8ea_100", + "anaconda-client 1.12.3 py312h06a4308_0", + "attrs 23.1.0 py312h06a4308_0", + "beautifulsoup4 4.12.2 py312h06a4308_0", + "chardet 4.0.0 py312h06a4308_1003", + "click 8.1.7 py312h06a4308_0", + "conda-build 24.1.2 py312h06a4308_0", + "conda-index 0.4.0 pyhd3eb1b0_0", + "defusedxml 0.7.1 pyhd3eb1b0_0", + "filelock 3.13.1 py312h06a4308_0", + "jinja2 3.1.3 py312h06a4308_0", + "jsonschema 4.19.2 py312h06a4308_0", + "jsonschema-specifications 2023.7.1 py312h06a4308_0", + "jupyter_core 5.5.0 py312h06a4308_0", + "liblief 0.12.3 h6a678d5_0", + "markupsafe 2.1.3 py312h5eee18b_0", + "more-itertools 10.1.0 py312h06a4308_0", + "nbformat 5.9.2 py312h06a4308_0", + "patch 2.7.6 h7b6447c_1001", + "patchelf 0.17.2 h6a678d5_0", + "pkginfo 1.9.6 py312h06a4308_0", + "psutil 5.9.0 py312h5eee18b_0", + "py-lief 0.12.3 py312h6a678d5_0", + "python-dateutil 2.8.2 pyhd3eb1b0_0", + "python-fastjsonschema 2.16.2 py312h06a4308_0", + "python-libarchive-c 2.9 pyhd3eb1b0_1", + "pytz 2023.3.post1 py312h06a4308_0", + "pyyaml 6.0.1 py312h5eee18b_0", + "referencing 0.30.2 py312h06a4308_0", + "requests-toolbelt 1.0.0 py312h06a4308_0", + "rpds-py 0.10.6 py312hb02cf49_0", + "six 1.16.0 pyhd3eb1b0_1", + "soupsieve 2.5 py312h06a4308_0", + "traitlets 5.7.1 py312h06a4308_0", + "yaml 0.2.5 h7b6447c_0" + ], + "summary": "nvJPEG native runtime libraries", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/files b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..87c4b356e7d65073f098736c11ef5406f21d0cc5 --- /dev/null +++ b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/files @@ -0,0 +1,4 @@ +lib/libnvjpeg.so.12 +lib/libnvjpeg.so.12.3.5.92 +targets/x86_64-linux/lib/libnvjpeg.so.12 +targets/x86_64-linux/lib/libnvjpeg.so.12.3.5.92 diff --git a/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/git b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/index.json b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..d3271f85d8ee9eba559331705582eac0eae7527f --- /dev/null +++ b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/index.json @@ -0,0 +1,17 @@ +{ + "arch": "x86_64", + "build": "0", + "build_number": 0, + "depends": [ + "__glibc >=2.17,<3.0.a0", + "cuda-version >=12.8,<12.9.0a0", + "libgcc-ng >=11.2.0", + "libstdcxx-ng >=11.2.0" + ], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "name": "libnvjpeg", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1739446514024, + "version": "12.3.5.92" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/licenses/LICENSE b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..6622367aff6567f25c18f500137a36caf101ea50 --- /dev/null +++ b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/licenses/LICENSE @@ -0,0 +1,1632 @@ +End User License Agreement +-------------------------- + +NVIDIA Software License Agreement and CUDA Supplement to +Software License Agreement. + +The CUDA Toolkit End User License Agreement applies to the +NVIDIA CUDA Toolkit, the NVIDIA CUDA Samples, the NVIDIA +Display Driver, NVIDIA Nsight tools (Visual Studio Edition), +and the associated documentation on CUDA APIs, programming +model and development tools. If you do not agree with the +terms and conditions of the license agreement, then do not +download or use the software. + +Last updated: January 12, 2024. + + +Preface +------- + +The Software License Agreement in Chapter 1 and the Supplement +in Chapter 2 contain license terms and conditions that govern +the use of NVIDIA toolkit. By accepting this agreement, you +agree to comply with all the terms and conditions applicable +to the product(s) included herein. + + +NVIDIA Driver + + +Description + +This package contains the operating system driver and +fundamental system software components for NVIDIA GPUs. + + +NVIDIA CUDA Toolkit + + +Description + +The NVIDIA CUDA Toolkit provides command-line and graphical +tools for building, debugging and optimizing the performance +of applications accelerated by NVIDIA GPUs, runtime and math +libraries, and documentation including programming guides, +user manuals, and API references. + + +Default Install Location of CUDA Toolkit + +Windows platform: + +%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v#.# + +Linux platform: + +/usr/local/cuda-#.# + +Mac platform: + +/Developer/NVIDIA/CUDA-#.# + + +NVIDIA CUDA Samples + + +Description + +CUDA Samples are now located in +https://github.com/nvidia/cuda-samples, which includes +instructions for obtaining, building, and running the samples. +They are no longer included in the CUDA toolkit. + + +NVIDIA Nsight Visual Studio Edition (Windows only) + + +Description + +NVIDIA Nsight Development Platform, Visual Studio Edition is a +development environment integrated into Microsoft Visual +Studio that provides tools for debugging, profiling, analyzing +and optimizing your GPU computing and graphics applications. + + +Default Install Location of Nsight Visual Studio Edition + +Windows platform: + +%ProgramFiles(x86)%\NVIDIA Corporation\Nsight Visual Studio Edition #.# + + +1. License Agreement for NVIDIA Software Development Kits +--------------------------------------------------------- + + +Important Notice—Read before downloading, installing, +copying or using the licensed software: +------------------------------------------------------- + +This license agreement, including exhibits attached +("Agreement”) is a legal agreement between you and NVIDIA +Corporation ("NVIDIA") and governs your use of a NVIDIA +software development kit (“SDK”). + +Each SDK has its own set of software and materials, but here +is a description of the types of items that may be included in +a SDK: source code, header files, APIs, data sets and assets +(examples include images, textures, models, scenes, videos, +native API input/output files), binary software, sample code, +libraries, utility programs, programming code and +documentation. + +This Agreement can be accepted only by an adult of legal age +of majority in the country in which the SDK is used. + +If you are entering into this Agreement on behalf of a company +or other legal entity, you represent that you have the legal +authority to bind the entity to this Agreement, in which case +“you” will mean the entity you represent. + +If you don’t have the required age or authority to accept +this Agreement, or if you don’t accept all the terms and +conditions of this Agreement, do not download, install or use +the SDK. + +You agree to use the SDK only for purposes that are permitted +by (a) this Agreement, and (b) any applicable law, regulation +or generally accepted practices or guidelines in the relevant +jurisdictions. + + +1.1. License + + +1.1.1. License Grant + +Subject to the terms of this Agreement, NVIDIA hereby grants +you a non-exclusive, non-transferable license, without the +right to sublicense (except as expressly provided in this +Agreement) to: + + 1. Install and use the SDK, + + 2. Modify and create derivative works of sample source code + delivered in the SDK, and + + 3. Distribute those portions of the SDK that are identified + in this Agreement as distributable, as incorporated in + object code format into a software application that meets + the distribution requirements indicated in this Agreement. + + +1.1.2. Distribution Requirements + +These are the distribution requirements for you to exercise +the distribution grant: + + 1. Your application must have material additional + functionality, beyond the included portions of the SDK. + + 2. The distributable portions of the SDK shall only be + accessed by your application. + + 3. The following notice shall be included in modifications + and derivative works of sample source code distributed: + “This software contains source code provided by NVIDIA + Corporation.” + + 4. Unless a developer tool is identified in this Agreement + as distributable, it is delivered for your internal use + only. + + 5. The terms under which you distribute your application + must be consistent with the terms of this Agreement, + including (without limitation) terms relating to the + license grant and license restrictions and protection of + NVIDIA’s intellectual property rights. Additionally, you + agree that you will protect the privacy, security and + legal rights of your application users. + + 6. You agree to notify NVIDIA in writing of any known or + suspected distribution or use of the SDK not in compliance + with the requirements of this Agreement, and to enforce + the terms of your agreements with respect to distributed + SDK. + + +1.1.3. Authorized Users + +You may allow employees and contractors of your entity or of +your subsidiary(ies) to access and use the SDK from your +secure network to perform work on your behalf. + +If you are an academic institution you may allow users +enrolled or employed by the academic institution to access and +use the SDK from your secure network. + +You are responsible for the compliance with the terms of this +Agreement by your authorized users. If you become aware that +your authorized users didn’t follow the terms of this +Agreement, you agree to take reasonable steps to resolve the +non-compliance and prevent new occurrences. + + +1.1.4. Pre-Release SDK + +The SDK versions identified as alpha, beta, preview or +otherwise as pre-release, may not be fully functional, may +contain errors or design flaws, and may have reduced or +different security, privacy, accessibility, availability, and +reliability standards relative to commercial versions of +NVIDIA software and materials. Use of a pre-release SDK may +result in unexpected results, loss of data, project delays or +other unpredictable damage or loss. + +You may use a pre-release SDK at your own risk, understanding +that pre-release SDKs are not intended for use in production +or business-critical systems. + +NVIDIA may choose not to make available a commercial version +of any pre-release SDK. NVIDIA may also choose to abandon +development and terminate the availability of a pre-release +SDK at any time without liability. + + +1.1.5. Updates + +NVIDIA may, at its option, make available patches, workarounds +or other updates to this SDK. Unless the updates are provided +with their separate governing terms, they are deemed part of +the SDK licensed to you as provided in this Agreement. You +agree that the form and content of the SDK that NVIDIA +provides may change without prior notice to you. While NVIDIA +generally maintains compatibility between versions, NVIDIA may +in some cases make changes that introduce incompatibilities in +future versions of the SDK. + + +1.1.6. Components Under Other Licenses + +The SDK may come bundled with, or otherwise include or be +distributed with, NVIDIA or third-party components with +separate legal notices or terms as may be described in +proprietary notices accompanying the SDK. If and to the extent +there is a conflict between the terms in this Agreement and +the license terms associated with the component, the license +terms associated with the components control only to the +extent necessary to resolve the conflict. + +Subject to the other terms of this Agreement, you may use the +SDK to develop and test applications released under Open +Source Initiative (OSI) approved open source software +licenses. + + +1.1.7. Reservation of Rights + +NVIDIA reserves all rights, title, and interest in and to the +SDK, not expressly granted to you under this Agreement. + + +1.2. Limitations + +The following license limitations apply to your use of the +SDK: + + 1. You may not reverse engineer, decompile or disassemble, + or remove copyright or other proprietary notices from any + portion of the SDK or copies of the SDK. + + 2. Except as expressly provided in this Agreement, you may + not copy, sell, rent, sublicense, transfer, distribute, + modify, or create derivative works of any portion of the + SDK. For clarity, you may not distribute or sublicense the + SDK as a stand-alone product. + + 3. Unless you have an agreement with NVIDIA for this + purpose, you may not indicate that an application created + with the SDK is sponsored or endorsed by NVIDIA. + + 4. You may not bypass, disable, or circumvent any + encryption, security, digital rights management or + authentication mechanism in the SDK. + + 5. You may not use the SDK in any manner that would cause it + to become subject to an open source software license. As + examples, licenses that require as a condition of use, + modification, and/or distribution that the SDK be: + + a. Disclosed or distributed in source code form; + + b. Licensed for the purpose of making derivative works; + or + + c. Redistributable at no charge. + + 6. You acknowledge that the SDK as delivered is not tested + or certified by NVIDIA for use in connection with the + design, construction, maintenance, and/or operation of any + system where the use or failure of such system could + result in a situation that threatens the safety of human + life or results in catastrophic damages (each, a "Critical + Application"). Examples of Critical Applications include + use in avionics, navigation, autonomous vehicle + applications, ai solutions for automotive products, + military, medical, life support or other life critical + applications. NVIDIA shall not be liable to you or any + third party, in whole or in part, for any claims or + damages arising from such uses. You are solely responsible + for ensuring that any product or service developed with + the SDK as a whole includes sufficient features to comply + with all applicable legal and regulatory standards and + requirements. + + 7. You agree to defend, indemnify and hold harmless NVIDIA + and its affiliates, and their respective employees, + contractors, agents, officers and directors, from and + against any and all claims, damages, obligations, losses, + liabilities, costs or debt, fines, restitutions and + expenses (including but not limited to attorney’s fees + and costs incident to establishing the right of + indemnification) arising out of or related to products or + services that use the SDK in or for Critical Applications, + and for use of the SDK outside of the scope of this + Agreement or not in compliance with its terms. + + 8. You may not reverse engineer, decompile or disassemble + any portion of the output generated using SDK elements for + the purpose of translating such output artifacts to target + a non-NVIDIA platform. + + +1.3. Ownership + + 1. NVIDIA or its licensors hold all rights, title and + interest in and to the SDK and its modifications and + derivative works, including their respective intellectual + property rights, subject to your rights under Section + 1.3.2. This SDK may include software and materials from + NVIDIA’s licensors, and these licensors are intended + third party beneficiaries that may enforce this Agreement + with respect to their intellectual property rights. + + 2. You hold all rights, title and interest in and to your + applications and your derivative works of the sample + source code delivered in the SDK, including their + respective intellectual property rights, subject to + NVIDIA’s rights under Section 1.3.1. + + 3. You may, but don’t have to, provide to NVIDIA + suggestions, feature requests or other feedback regarding + the SDK, including possible enhancements or modifications + to the SDK. For any feedback that you voluntarily provide, + you hereby grant NVIDIA and its affiliates a perpetual, + non-exclusive, worldwide, irrevocable license to use, + reproduce, modify, license, sublicense (through multiple + tiers of sublicensees), and distribute (through multiple + tiers of distributors) it without the payment of any + royalties or fees to you. NVIDIA will use feedback at its + choice. NVIDIA is constantly looking for ways to improve + its products, so you may send feedback to NVIDIA through + the developer portal at https://developer.nvidia.com. + + +1.4. No Warranties + +THE SDK IS PROVIDED BY NVIDIA “AS IS” AND “WITH ALL +FAULTS.” TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND +ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND +OR NATURE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, +BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, OR THE +ABSENCE OF ANY DEFECTS THEREIN, WHETHER LATENT OR PATENT. NO +WARRANTY IS MADE ON THE BASIS OF TRADE USAGE, COURSE OF +DEALING OR COURSE OF TRADE. + + +1.5. Limitation of Liability + +TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS +AFFILIATES SHALL NOT BE LIABLE FOR ANY (I) SPECIAL, INCIDENTAL, +PUNITIVE OR CONSEQUENTIAL DAMAGES, OR (II) DAMAGES FOR (A) ANY +LOST PROFITS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL, +OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF +OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFORMANCE +OF THE SDK, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED +UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING +NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR +THEORY OF LIABILITY. IN NO EVENT WILL NVIDIA’S AND ITS AFFILIATES +TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS +AGREEMENT EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE +NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE OR EXTEND THIS +LIMIT. + +These exclusions and limitations of liability shall apply +regardless if NVIDIA or its affiliates have been advised of +the possibility of such damages, and regardless of whether a +remedy fails its essential purpose. These exclusions and +limitations of liability form an essential basis of the +bargain between the parties, and, absent any of these +exclusions or limitations of liability, the provisions of this +Agreement, including, without limitation, the economic terms, +would be substantially different. + + +1.6. Termination + + 1. This Agreement will continue to apply until terminated by + either you or NVIDIA as described below. + + 2. If you want to terminate this Agreement, you may do so by + stopping to use the SDK. + + 3. NVIDIA may, at any time, terminate this Agreement if: + + a. (i) you fail to comply with any term of this + Agreement and the non-compliance is not fixed within + thirty (30) days following notice from NVIDIA (or + immediately if you violate NVIDIA’s intellectual + property rights); + + b. (ii) you commence or participate in any legal + proceeding against NVIDIA with respect to the SDK; or + + c. (iii) NVIDIA decides to no longer provide the SDK in + a country or, in NVIDIA’s sole discretion, the + continued use of it is no longer commercially viable. + + 4. Upon any termination of this Agreement, you agree to + promptly discontinue use of the SDK and destroy all copies + in your possession or control. Your prior distributions in + accordance with this Agreement are not affected by the + termination of this Agreement. Upon written request, you + will certify in writing that you have complied with your + commitments under this section. Upon any termination of + this Agreement all provisions survive except for the + license grant provisions. + + +1.7. General + +If you wish to assign this Agreement or your rights and +obligations, including by merger, consolidation, dissolution +or operation of law, contact NVIDIA to ask for permission. Any +attempted assignment not approved by NVIDIA in writing shall +be void and of no effect. NVIDIA may assign, delegate or +transfer this Agreement and its rights and obligations, and if +to a non-affiliate you will be notified. + +You agree to cooperate with NVIDIA and provide reasonably +requested information to verify your compliance with this +Agreement. + +This Agreement will be governed in all respects by the laws of +the United States and of the State of Delaware, without regard to the +conflicts of laws principles. The United Nations Convention on +Contracts for the International Sale of Goods is specifically +disclaimed. You agree to all terms of this Agreement in the +English language. + +The state or federal courts residing in Santa Clara County, +California shall have exclusive jurisdiction over any dispute +or claim arising out of this Agreement. Notwithstanding this, +you agree that NVIDIA shall still be allowed to apply for +injunctive remedies or an equivalent type of urgent legal +relief in any jurisdiction. + +If any court of competent jurisdiction determines that any +provision of this Agreement is illegal, invalid or +unenforceable, such provision will be construed as limited to +the extent necessary to be consistent with and fully +enforceable under the law and the remaining provisions will +remain in full force and effect. Unless otherwise specified, +remedies are cumulative. + +Each party acknowledges and agrees that the other is an +independent contractor in the performance of this Agreement. + +The SDK has been developed entirely at private expense and is +“commercial items” consisting of “commercial computer +software” and “commercial computer software +documentation” provided with RESTRICTED RIGHTS. Use, +duplication or disclosure by the U.S. Government or a U.S. +Government subcontractor is subject to the restrictions in +this Agreement pursuant to DFARS 227.7202-3(a) or as set forth +in subparagraphs (c)(1) and (2) of the Commercial Computer +Software - Restricted Rights clause at FAR 52.227-19, as +applicable. Contractor/manufacturer is NVIDIA, 2788 San Tomas +Expressway, Santa Clara, CA 95051. + +The SDK is subject to United States export laws and +regulations. You agree that you will not ship, transfer or +export the SDK into any country, or use the SDK in any manner, +prohibited by the United States Bureau of Industry and +Security or economic sanctions regulations administered by the +U.S. Department of Treasury’s Office of Foreign Assets +Control (OFAC), or any applicable export laws, restrictions or +regulations. These laws include restrictions on destinations, +end users and end use. By accepting this Agreement, you +confirm that you are not located in a country currently +embargoed by the U.S. or otherwise prohibited from receiving +the SDK under U.S. law. + +Any notice delivered by NVIDIA to you under this Agreement +will be delivered via mail, email or fax. You agree that any +notices that NVIDIA sends you electronically will satisfy any +legal communication requirements. Please direct your legal +notices or other correspondence to NVIDIA Corporation, 2788 +San Tomas Expressway, Santa Clara, California 95051, United +States of America, Attention: Legal Department. + +This Agreement and any exhibits incorporated into this +Agreement constitute the entire agreement of the parties with +respect to the subject matter of this Agreement and supersede +all prior negotiations or documentation exchanged between the +parties relating to this SDK license. Any additional and/or +conflicting terms on documents issued by you are null, void, +and invalid. Any amendment or waiver under this Agreement +shall be in writing and signed by representatives of both +parties. + + +2. CUDA Toolkit Supplement to Software License Agreement for +NVIDIA Software Development Kits +------------------------------------------------------------ + +The terms in this supplement govern your use of the NVIDIA +CUDA Toolkit SDK under the terms of your license agreement +(“Agreement”) as modified by this supplement. Capitalized +terms used but not defined below have the meaning assigned to +them in the Agreement. + +This supplement is an exhibit to the Agreement and is +incorporated as an integral part of the Agreement. In the +event of conflict between the terms in this supplement and the +terms in the Agreement, the terms in this supplement govern. + + +2.1. License Scope + +The SDK is licensed for you to develop applications only for +use in systems with NVIDIA GPUs. + + +2.2. Distribution + +The portions of the SDK that are distributable under the +Agreement are listed in Attachment A. + + +2.3. Operating Systems + +Those portions of the SDK designed exclusively for use on the +Linux or FreeBSD operating systems, or other operating systems +derived from the source code to these operating systems, may +be copied and redistributed for use in accordance with this +Agreement, provided that the object code files are not +modified in any way (except for unzipping of compressed +files). + + +2.4. Audio and Video Encoders and Decoders + +You acknowledge and agree that it is your sole responsibility +to obtain any additional third-party licenses required to +make, have made, use, have used, sell, import, and offer for +sale your products or services that include or incorporate any +third-party software and content relating to audio and/or +video encoders and decoders from, including but not limited +to, Microsoft, Thomson, Fraunhofer IIS, Sisvel S.p.A., +MPEG-LA, and Coding Technologies. NVIDIA does not grant to you +under this Agreement any necessary patent or other rights with +respect to any audio and/or video encoders and decoders. + + +2.5. Licensing + +If the distribution terms in this Agreement are not suitable +for your organization, or for any questions regarding this +Agreement, please contact NVIDIA at +nvidia-compute-license-questions@nvidia.com. + + +2.6. Attachment A + +The following CUDA Toolkit files may be distributed with +applications developed by you, including certain +variations of these files that have version number or +architecture specific information embedded in the file name - +as an example only, for release version 9.0 of the 64-bit +Windows software, the file cudart64_90.dll is redistributable. + +Component + +CUDA Runtime + +Windows + +cudart.dll, cudart_static.lib, cudadevrt.lib + +Mac OSX + +libcudart.dylib, libcudart_static.a, libcudadevrt.a + +Linux + +libcudart.so, libcudart_static.a, libcudadevrt.a + +Android + +libcudart.so, libcudart_static.a, libcudadevrt.a + +Component + +CUDA FFT Library + +Windows + +cufft.dll, cufftw.dll, cufft.lib, cufftw.lib + +Mac OSX + +libcufft.dylib, libcufft_static.a, libcufftw.dylib, +libcufftw_static.a + +Linux + +libcufft.so, libcufft_static.a, libcufftw.so, +libcufftw_static.a + +Android + +libcufft.so, libcufft_static.a, libcufftw.so, +libcufftw_static.a + +Component + +CUDA BLAS Library + +Windows + +cublas.dll, cublasLt.dll + +Mac OSX + +libcublas.dylib, libcublasLt.dylib, libcublas_static.a, +libcublasLt_static.a + +Linux + +libcublas.so, libcublasLt.so, libcublas_static.a, +libcublasLt_static.a + +Android + +libcublas.so, libcublasLt.so, libcublas_static.a, +libcublasLt_static.a + +Component + +NVIDIA "Drop-in" BLAS Library + +Windows + +nvblas.dll + +Mac OSX + +libnvblas.dylib + +Linux + +libnvblas.so + +Component + +CUDA Sparse Matrix Library + +Windows + +cusparse.dll, cusparse.lib + +Mac OSX + +libcusparse.dylib, libcusparse_static.a + +Linux + +libcusparse.so, libcusparse_static.a + +Android + +libcusparse.so, libcusparse_static.a + +Component + +CUDA Linear Solver Library + +Windows + +cusolver.dll, cusolver.lib + +Mac OSX + +libcusolver.dylib, libcusolver_static.a + +Linux + +libcusolver.so, libcusolver_static.a + +Android + +libcusolver.so, libcusolver_static.a + +Component + +CUDA Random Number Generation Library + +Windows + +curand.dll, curand.lib + +Mac OSX + +libcurand.dylib, libcurand_static.a + +Linux + +libcurand.so, libcurand_static.a + +Android + +libcurand.so, libcurand_static.a + +Component + +NVIDIA Performance Primitives Library + +Windows + +nppc.dll, nppc.lib, nppial.dll, nppial.lib, nppicc.dll, +nppicc.lib, nppicom.dll, nppicom.lib, nppidei.dll, +nppidei.lib, nppif.dll, nppif.lib, nppig.dll, nppig.lib, +nppim.dll, nppim.lib, nppist.dll, nppist.lib, nppisu.dll, +nppisu.lib, nppitc.dll, nppitc.lib, npps.dll, npps.lib + +Mac OSX + +libnppc.dylib, libnppc_static.a, libnppial.dylib, +libnppial_static.a, libnppicc.dylib, libnppicc_static.a, +libnppicom.dylib, libnppicom_static.a, libnppidei.dylib, +libnppidei_static.a, libnppif.dylib, libnppif_static.a, +libnppig.dylib, libnppig_static.a, libnppim.dylib, +libnppisu_static.a, libnppitc.dylib, libnppitc_static.a, +libnpps.dylib, libnpps_static.a + +Linux + +libnppc.so, libnppc_static.a, libnppial.so, +libnppial_static.a, libnppicc.so, libnppicc_static.a, +libnppicom.so, libnppicom_static.a, libnppidei.so, +libnppidei_static.a, libnppif.so, libnppif_static.a +libnppig.so, libnppig_static.a, libnppim.so, +libnppim_static.a, libnppist.so, libnppist_static.a, +libnppisu.so, libnppisu_static.a, libnppitc.so +libnppitc_static.a, libnpps.so, libnpps_static.a + +Android + +libnppc.so, libnppc_static.a, libnppial.so, +libnppial_static.a, libnppicc.so, libnppicc_static.a, +libnppicom.so, libnppicom_static.a, libnppidei.so, +libnppidei_static.a, libnppif.so, libnppif_static.a +libnppig.so, libnppig_static.a, libnppim.so, +libnppim_static.a, libnppist.so, libnppist_static.a, +libnppisu.so, libnppisu_static.a, libnppitc.so +libnppitc_static.a, libnpps.so, libnpps_static.a + +Component + +NVIDIA JPEG Library + +Windows + +nvjpeg.lib, nvjpeg.dll + +Linux + +libnvjpeg.so, libnvjpeg_static.a + +Component + +Internal common library required for statically linking to +cuBLAS, cuSPARSE, cuFFT, cuRAND, nvJPEG and NPP + +Mac OSX + +libculibos.a + +Linux + +libculibos.a + +Component + +NVIDIA Runtime Compilation Library and Header + +All + +nvrtc.h + +Windows + +nvrtc.dll, nvrtc-builtins.dll + +Mac OSX + +libnvrtc.dylib, libnvrtc-builtins.dylib + +Linux + +libnvrtc.so, libnvrtc-builtins.so, libnvrtc_static.a, libnvrtx-builtins_static.a + +Component + +NVIDIA Optimizing Compiler Library + +Windows + +nvvm.dll + +Mac OSX + +libnvvm.dylib + +Linux + +libnvvm.so + +Component + +NVIDIA JIT Linking Library + +Windows + +libnvJitLink.dll, libnvJitLink.lib + +Linux + +libnvJitLink.so, libnvJitLink_static.a + +Component + +NVIDIA Common Device Math Functions Library + +Windows + +libdevice.10.bc + +Mac OSX + +libdevice.10.bc + +Linux + +libdevice.10.bc + +Component + +CUDA Occupancy Calculation Header Library + +All + +cuda_occupancy.h + +Component + +CUDA Half Precision Headers + +All + +cuda_fp16.h, cuda_fp16.hpp + +Component + +CUDA Profiling Tools Interface (CUPTI) Library + +Windows + +cupti.dll + +Mac OSX + +libcupti.dylib + +Linux + +libcupti.so + +Component + +NVIDIA Tools Extension Library + +Windows + +nvToolsExt.dll, nvToolsExt.lib + +Mac OSX + +libnvToolsExt.dylib + +Linux + +libnvToolsExt.so + +Component + +NVIDIA CUDA Driver Libraries + +Linux + +libcuda.so, libnvidia-ptxjitcompiler.so, libnvptxcompiler_static.a + +Component + +NVIDIA CUDA File IO Libraries and Header + +All + +cufile.h + +Linux + +libcufile.so, libcufile_rdma.so, libcufile_static.a, +libcufile_rdma_static.a + +In addition to the rights above, for parties that are +developing software intended solely for use on Jetson +development kits or Jetson modules, and running Linux for +Tegra software, the following shall apply: + + * The SDK may be distributed in its entirety, as provided by + NVIDIA, and without separation of its components, for you + and/or your licensees to create software development kits + for use only on the Jetson platform and running Linux for + Tegra software. + + +2.7. Attachment B + + +Additional Licensing Obligations + +The following third party components included in the SOFTWARE +are licensed to Licensee pursuant to the following terms and +conditions: + + 1. Licensee's use of the GDB third party component is + subject to the terms and conditions of GNU GPL v3: + + This product includes copyrighted third-party software licensed + under the terms of the GNU General Public License v3 ("GPL v3"). + All third-party software packages are copyright by their respective + authors. GPL v3 terms and conditions are hereby incorporated into + the Agreement by this reference: http://www.gnu.org/licenses/gpl.txt + + Consistent with these licensing requirements, the software + listed below is provided under the terms of the specified + open source software licenses. To obtain source code for + software provided under licenses that require + redistribution of source code, including the GNU General + Public License (GPL) and GNU Lesser General Public License + (LGPL), contact oss-requests@nvidia.com. This offer is + valid for a period of three (3) years from the date of the + distribution of this product by NVIDIA CORPORATION. + + Component License + CUDA-GDB GPL v3 + + 2. Licensee represents and warrants that any and all third + party licensing and/or royalty payment obligations in + connection with Licensee's use of the H.264 video codecs + are solely the responsibility of Licensee. + + 3. Licensee's use of the Thrust library is subject to the + terms and conditions of the Apache License Version 2.0. + All third-party software packages are copyright by their + respective authors. Apache License Version 2.0 terms and + conditions are hereby incorporated into the Agreement by + this reference. + http://www.apache.org/licenses/LICENSE-2.0.html + + In addition, Licensee acknowledges the following notice: + Thrust includes source code from the Boost Iterator, + Tuple, System, and Random Number libraries. + + Boost Software License - Version 1.0 - August 17th, 2003 + . . . . + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all + subject to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR + OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + 4. Licensee's use of the LLVM third party component is + subject to the following terms and conditions: + + ====================================================== + LLVM Release License + ====================================================== + University of Illinois/NCSA + Open Source License + + Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. + All rights reserved. + + Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal with the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at Urbana- + Champaign, nor the names of its contributors may be used to endorse or + promote products derived from this Software without specific prior + written permission. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS WITH THE SOFTWARE. + + 5. Licensee's use of the PCRE third party component is + subject to the following terms and conditions: + + ------------ + PCRE LICENCE + ------------ + PCRE is a library of functions to support regular expressions whose syntax + and semantics are as close as possible to those of the Perl 5 language. + Release 8 of PCRE is distributed under the terms of the "BSD" licence, as + specified below. The documentation for PCRE, supplied in the "doc" + directory, is distributed under the same terms as the software itself. The + basic library functions are written in C and are freestanding. Also + included in the distribution is a set of C++ wrapper functions, and a just- + in-time compiler that can be used to optimize pattern matching. These are + both optional features that can be omitted when the library is built. + + THE BASIC LIBRARY FUNCTIONS + --------------------------- + Written by: Philip Hazel + Email local part: ph10 + Email domain: cam.ac.uk + University of Cambridge Computing Service, + Cambridge, England. + Copyright (c) 1997-2012 University of Cambridge + All rights reserved. + + PCRE JUST-IN-TIME COMPILATION SUPPORT + ------------------------------------- + Written by: Zoltan Herczeg + Email local part: hzmester + Emain domain: freemail.hu + Copyright(c) 2010-2012 Zoltan Herczeg + All rights reserved. + + STACK-LESS JUST-IN-TIME COMPILER + -------------------------------- + Written by: Zoltan Herczeg + Email local part: hzmester + Emain domain: freemail.hu + Copyright(c) 2009-2012 Zoltan Herczeg + All rights reserved. + + THE C++ WRAPPER FUNCTIONS + ------------------------- + Contributed by: Google Inc. + Copyright (c) 2007-2012, Google Inc. + All rights reserved. + + THE "BSD" LICENCE + ----------------- + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the University of Cambridge nor the name of Google + Inc. nor the names of their contributors may be used to endorse or + promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 6. Some of the cuBLAS library routines were written by or + derived from code written by Vasily Volkov and are subject + to the Modified Berkeley Software Distribution License as + follows: + + Copyright (c) 2007-2009, Regents of the University of California + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the University of California, Berkeley nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 7. Some of the cuBLAS library routines were written by or + derived from code written by Davide Barbieri and are + subject to the Modified Berkeley Software Distribution + License as follows: + + Copyright (c) 2008-2009 Davide Barbieri @ University of Rome Tor Vergata. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * The name of the author may not be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 8. Some of the cuBLAS library routines were derived from + code developed by the University of Tennessee and are + subject to the Modified Berkeley Software Distribution + License as follows: + + Copyright (c) 2010 The University of Tennessee. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer listed in this license in the documentation and/or + other materials provided with the distribution. + * Neither the name of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 9. Some of the cuBLAS library routines were written by or + derived from code written by Jonathan Hogg and are subject + to the Modified Berkeley Software Distribution License as + follows: + + Copyright (c) 2012, The Science and Technology Facilities Council (STFC). + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the STFC nor the names of its contributors + may be used to endorse or promote products derived from this + software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE STFC BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 10. Some of the cuBLAS library routines were written by or + derived from code written by Ahmad M. Abdelfattah, David + Keyes, and Hatem Ltaief, and are subject to the Apache + License, Version 2.0, as follows: + + -- (C) Copyright 2013 King Abdullah University of Science and Technology + Authors: + Ahmad Abdelfattah (ahmad.ahmad@kaust.edu.sa) + David Keyes (david.keyes@kaust.edu.sa) + Hatem Ltaief (hatem.ltaief@kaust.edu.sa) + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the King Abdullah University of Science and + Technology nor the names of its contributors may be used to endorse + or promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE + + 11. Some of the cuSPARSE library routines were written by or + derived from code written by Li-Wen Chang and are subject + to the NCSA Open Source License as follows: + + Copyright (c) 2012, University of Illinois. + + All rights reserved. + + Developed by: IMPACT Group, University of Illinois, http://impact.crhc.illinois.edu + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal with the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimers in the documentation and/or other materials provided + with the distribution. + * Neither the names of IMPACT Group, University of Illinois, nor + the names of its contributors may be used to endorse or promote + products derived from this Software without specific prior + written permission. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR + IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE + SOFTWARE. + + 12. Some of the cuRAND library routines were written by or + derived from code written by Mutsuo Saito and Makoto + Matsumoto and are subject to the following license: + + Copyright (c) 2009, 2010 Mutsuo Saito, Makoto Matsumoto and Hiroshima + University. All rights reserved. + + Copyright (c) 2011 Mutsuo Saito, Makoto Matsumoto, Hiroshima + University and University of Tokyo. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the Hiroshima University nor the names of + its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 13. Some of the cuRAND library routines were derived from + code developed by D. E. Shaw Research and are subject to + the following license: + + Copyright 2010-2011, D. E. Shaw Research. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions, and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of D. E. Shaw Research nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 14. Some of the Math library routines were written by or + derived from code developed by Norbert Juffa and are + subject to the following license: + + Copyright (c) 2015-2017, Norbert Juffa + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 15. Licensee's use of the lz4 third party component is + subject to the following terms and conditions: + + Copyright (C) 2011-2013, Yann Collet. + BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 16. The NPP library uses code from the Boost Math Toolkit, + and is subject to the following license: + + Boost Software License - Version 1.0 - August 17th, 2003 + . . . . + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all + subject to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR + OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + 17. Portions of the Nsight Eclipse Edition is subject to the + following license: + + The Eclipse Foundation makes available all content in this plug-in + ("Content"). Unless otherwise indicated below, the Content is provided + to you under the terms and conditions of the Eclipse Public License + Version 1.0 ("EPL"). A copy of the EPL is available at http:// + www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, "Program" + will mean the Content. + + If you did not receive this Content directly from the Eclipse + Foundation, the Content is being redistributed by another party + ("Redistributor") and different terms and conditions may apply to your + use of any object code in the Content. Check the Redistributor's + license that was provided with the Content. If no such license exists, + contact the Redistributor. Unless otherwise indicated below, the terms + and conditions of the EPL still apply to any source code in the + Content and such source code may be obtained at http://www.eclipse.org. + + 18. Some of the cuBLAS library routines uses code from + OpenAI, which is subject to the following license: + + License URL + https://github.com/openai/openai-gemm/blob/master/LICENSE + + License Text + The MIT License + + Copyright (c) 2016 OpenAI (http://openai.com), 2016 Google Inc. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + + 19. Licensee's use of the Visual Studio Setup Configuration + Samples is subject to the following license: + + The MIT License (MIT) + Copyright (C) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + 20. Licensee's use of linmath.h header for CPU functions for + GL vector/matrix operations from lunarG is subject to the + Apache License Version 2.0. + + 21. The DX12-CUDA sample uses the d3dx12.h header, which is + subject to the MIT license. + + 22. Components of the driver and compiler used for binary management, including + nvFatBin, nvcc, and cuobjdump, use the Zstandard library which is subject to + the following license: + + BSD License + + For Zstandard software + + Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name Facebook, nor Meta, nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + +----------------- diff --git a/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/paths.json b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..0d8cf0b14cd74f7b84e3cf7ec8af1dc6d908e5be --- /dev/null +++ b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/paths.json @@ -0,0 +1,29 @@ +{ + "paths": [ + { + "_path": "lib/libnvjpeg.so.12", + "path_type": "softlink", + "sha256": "4f4631f0ef0a491eef27411539ecd62b405e94be943fdf2b81698199ddf43654", + "size_in_bytes": 7837264 + }, + { + "_path": "lib/libnvjpeg.so.12.3.5.92", + "path_type": "softlink", + "sha256": "4f4631f0ef0a491eef27411539ecd62b405e94be943fdf2b81698199ddf43654", + "size_in_bytes": 7837264 + }, + { + "_path": "targets/x86_64-linux/lib/libnvjpeg.so.12", + "path_type": "softlink", + "sha256": "4f4631f0ef0a491eef27411539ecd62b405e94be943fdf2b81698199ddf43654", + "size_in_bytes": 7837264 + }, + { + "_path": "targets/x86_64-linux/lib/libnvjpeg.so.12.3.5.92", + "path_type": "hardlink", + "sha256": "4f4631f0ef0a491eef27411539ecd62b405e94be943fdf2b81698199ddf43654", + "size_in_bytes": 7837264 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/repodata_record.json b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..6f5bd304104314f50244753738d093aa258e343b --- /dev/null +++ b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/repodata_record.json @@ -0,0 +1,24 @@ +{ + "name": "libnvjpeg", + "version": "12.3.5.92", + "build": "0", + "build_number": 0, + "channel": "https://conda.anaconda.org/nvidia/linux-64", + "subdir": "linux-64", + "fn": "libnvjpeg-12.3.5.92-0.conda", + "md5": "94ceb85d33d5b9c1fd3f98ea38017749", + "url": "https://conda.anaconda.org/nvidia/linux-64/libnvjpeg-12.3.5.92-0.conda", + "sha256": "5b6d5bb81d66b48a49165d630e1fdff0bad40166c274b858fcb659d1a60fee1b", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "__glibc >=2.17,<3.0.a0", + "cuda-version >=12.8,<12.9.0a0", + "libgcc-ng >=11.2.0", + "libstdcxx-ng >=11.2.0" + ], + "constrains": [], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "timestamp": 1739446514000, + "size": 3110473 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/test/run_test.sh b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d0747ae846de288c413b27d2ca67758d9d3ac42 --- /dev/null +++ b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/test/run_test.sh @@ -0,0 +1,11 @@ + + +set -ex + + + +test -L $PREFIX/lib/libnvjpeg.so.12 +test -L $PREFIX/lib/libnvjpeg.so.12.3.5.92 +test -L $PREFIX/targets/x86_64-linux/lib/libnvjpeg.so.12 +test -f $PREFIX/targets/x86_64-linux/lib/libnvjpeg.so.12.3.5.92 +exit 0 diff --git a/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/test/test-rpath.sh b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/test/test-rpath.sh new file mode 100644 index 0000000000000000000000000000000000000000..16ad3a71a373bef7d2f5b75a3ef1329975e6f517 --- /dev/null +++ b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/test/test-rpath.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +[[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux" +[[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux" +[[ ${target_platform} == "linux-aarch64" ]] && targetsDir="targets/sbsa-linux" + +errors="" + +for lib in `find ${PREFIX}/${targetsDir}/lib -type f`; do + [[ $lib =~ \.so ]] || continue + + rpath=$(patchelf --print-rpath $lib) + echo "$lib rpath: $rpath" + if [[ $rpath != "\$ORIGIN" ]]; then + errors+="$lib\n" + elif [[ $(objdump -x ${lib} | grep "PATH") == *"RUNPATH"* ]]; then + errors+="$lib\n" + fi +done + +if [[ $errors ]]; then + echo "The following libraries were found with an unexpected RPATH:" + echo -e "$errors" + + exit 1 +else + exit 0 +fi diff --git a/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/test/test_time_dependencies.json b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/test/test_time_dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..2348db2f9ba7ce6dfba09665b32c65111d5b4afd --- /dev/null +++ b/data/miniconda3/pkgs/libnvjpeg-12.3.5.92-0/info/test/test_time_dependencies.json @@ -0,0 +1 @@ +["patchelf"] \ No newline at end of file diff --git a/data/miniconda3/pkgs/libtool-2.5.4-h5888daf_0/bin/libtool b/data/miniconda3/pkgs/libtool-2.5.4-h5888daf_0/bin/libtool new file mode 100644 index 0000000000000000000000000000000000000000..db3f4274b9af2f9fef3458660bd436268d486da4 --- /dev/null +++ b/data/miniconda3/pkgs/libtool-2.5.4-h5888daf_0/bin/libtool @@ -0,0 +1,12961 @@ +#! /bin/sh +# Generated automatically by config.status (libtool) 2.5.4 +# NOTE: Changes made to this file will be lost: look at ltmain.sh. + +# Provide generalized library-building support services. +# Written by Gordon Matzigkeit, 1996 + +# Copyright (C) 2024 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program or library that is built +# using GNU Libtool, you may include this file under the same +# distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +# The names of the tagged configurations supported by this script. +available_tags='CXX F77 FC GO GCJ RC ' + +# Configured defaults for sys_lib_dlsearch_path munging. +: ${LT_SYS_LIBRARY_PATH=""} + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=2.5.4 +macro_revision=2.5.4 + +# Assembler program. +AS="x86_64-conda-linux-gnu-as" + +# DLL creation program. +DLLTOOL="false" + +# Object dumper program. +OBJDUMP="x86_64-conda-linux-gnu-objdump" + +# Whether or not to build shared libraries. +build_libtool_libs=yes + +# Whether or not to build static libraries. +build_old_libs=yes + +# What type of objects to build. +pic_mode=default + +# Whether or not to optimize for fast installation. +fast_install=yes + +# Shared archive member basename,for filename based shared library versioning on AIX. +shared_archive_member_spec= + +# Shell to use when invoking shell scripts. +SHELL="/bin/sh" + +# An echo program that protects backslashes. +ECHO="printf %s\\n" + +# The PATH separator for the build system. +PATH_SEPARATOR=":" + +# The host system. +host_alias=x86_64-conda-linux-gnu +host=x86_64-conda-linux-gnu +host_os=linux-gnu + +# The build system. +build_alias=x86_64-conda-linux-gnu +build=x86_64-conda-linux-gnu +build_os=linux-gnu + +# A sed program that does not truncate output. +SED="/usr/bin/sed" + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP="/usr/bin/grep" + +# An ERE matcher. +EGREP="/usr/bin/grep -E" + +# A literal string matcher. +FGREP="/usr/bin/grep -F" + +# A BSD- or MS-compatible name lister. +NM="x86_64-conda-linux-gnu-nm" + +# Whether we need soft or hard links. +LN_S="ln -s" + +# What is the maximum length of a command? +max_cmd_len=3145728 + +# Object file suffix (normally "o"). +objext=o + +# Executable file suffix (normally ""). +exeext= + +# whether the shell understands "unset". +lt_unset=unset + +# turn spaces into newlines. +SP2NL="tr \\040 \\012" + +# turn newlines into spaces. +NL2SP="tr \\015\\012 \\040\\040" + +# convert $build file names to $host format. +to_host_file_cmd=func_convert_file_noop + +# convert $build files to toolchain format. +to_tool_file_cmd=func_convert_file_noop + +# A file(cmd) program that detects file types. +FILECMD=":" + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method="pass_all" + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd="\$MAGIC_CMD" + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob="" + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob="no" + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd="printf %s\\n" + +# The archiver. +AR="x86_64-conda-linux-gnu-ar" + +# Flags to create an archive (by configure). +lt_ar_flags=cr + +# Flags to create an archive. +AR_FLAGS=${ARFLAGS-"$lt_ar_flags"} + +# How to feed a file listing to the archiver. +archiver_list_spec="@" + +# A symbol stripping program. +STRIP="x86_64-conda-linux-gnu-strip" + +# Commands used to install an old-style archive. +RANLIB="x86_64-conda-linux-gnu-ranlib" +old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$tool_oldlib" +old_postuninstall_cmds="" + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=no + +# A C compiler. +LTCC="x86_64-conda-linux-gnu-cc" + +# LTCC compiler flags. +LTCFLAGS="-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/conda/feedstock_root/build_artifacts/libtool-split_1740593682419/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/libtool-split_1740593682419/work=/usr/local/src/conda/libtool-2.5.4 -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/libtool-split_1740593682419/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho=/usr/local/src/conda-prefix" + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe="/usr/bin/sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p' | /usr/bin/sed '/ __gnu_lto/d'" + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl="/usr/bin/sed -n -e 's/^T .* \\(.*\\)\$/extern int \\1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \\(.*\\)\$/extern char \\1;/p'" + +# Transform the output of nm into a list of symbols to manually relocate. +global_symbol_to_import="" + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address="/usr/bin/sed -n -e 's/^: \\(.*\\) .*\$/ {\"\\1\", (void *) 0},/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \\(.*\\)\$/ {\"\\1\", (void *) \\&\\1},/p'" + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix="/usr/bin/sed -n -e 's/^: \\(.*\\) .*\$/ {\"\\1\", (void *) 0},/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \\(lib.*\\)\$/ {\"\\1\", (void *) \\&\\1},/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \\(.*\\)\$/ {\"lib\\1\", (void *) \\&\\1},/p'" + +# The name lister interface. +nm_interface="BSD nm" + +# Specify filename containing input files for $NM. +nm_file_list_spec="@" + +# The root where to search for dependent libraries,and where our libraries should be installed. +lt_sysroot= + +# Command to truncate a binary pipe. +lt_truncate_bin="/usr/bin/dd bs=4096 count=1" + +# The name of the directory that contains temporary libtool files. +objdir=.libs + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=file + +# Must we lock files when doing compilation? +need_locks="no" + +# Manifest tool. +MANIFEST_TOOL=":" + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL="" + +# Tool to change global to local symbols on Mac OS X. +NMEDIT="" + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO="" + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL="" + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64="" + +# Old archive suffix (normally "a"). +libext=a + +# Shared library suffix (normally ".so"). +shrext_cmds=".so" + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds="" + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" + +# Do we need the "lib" prefix for modules? +need_lib_prefix=no + +# Do we need a version for libraries? +need_version=no + +# Library versioning type. +version_type=linux + +# Shared library runtime path variable. +runpath_var=LD_RUN_PATH + +# Shared library path variable. +shlibpath_var=LD_LIBRARY_PATH + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=no + +# Format of library name prefix. +libname_spec="lib\$name" + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec="\$libname\$release\$shared_ext\$versuffix \$libname\$release\$shared_ext\$major \$libname\$shared_ext" + +# The coded name of the library, if different from the real name. +soname_spec="\$libname\$release\$shared_ext\$major" + +# Permission mode override for installation of shared libraries. +install_override_mode="" + +# Command to use after installation of a shared archive. +postinstall_cmds="" + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds="" + +# Commands used to finish a libtool library installation in a directory. +finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir" + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval="" + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=yes + +# Compile-time system search path for libraries. +sys_lib_search_path_spec="/home/conda/feedstock_root/build_artifacts/libtool-split_1740593682419/_build_env/lib/gcc/x86_64-conda-linux-gnu/13.3.0 /home/conda/feedstock_root/build_artifacts/libtool-split_1740593682419/_build_env/lib/gcc /home/conda/feedstock_root/build_artifacts/libtool-split_1740593682419/_build_env/x86_64-conda-linux-gnu/lib /home/conda/feedstock_root/build_artifacts/libtool-split_1740593682419/_build_env/lib /home/conda/feedstock_root/build_artifacts/libtool-split_1740593682419/_build_env/x86_64-conda-linux-gnu/sysroot/lib /home/conda/feedstock_root/build_artifacts/libtool-split_1740593682419/_build_env/x86_64-conda-linux-gnu/sysroot/usr/lib " + +# Detected run-time system search path for libraries. +sys_lib_dlsearch_path_spec="/lib /usr/lib " + +# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. +configure_time_lt_sys_library_path="" + +# Whether dlopen is supported. +dlopen_support=yes + +# Whether dlopen of programs is supported. +dlopen_self=yes + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=no + +# Commands to strip libraries. +old_striplib="x86_64-conda-linux-gnu-strip --strip-debug" +striplib="x86_64-conda-linux-gnu-strip --strip-unneeded" + + +# The linker used to build libraries. +LD="x86_64-conda-linux-gnu-ld" + +# How to create reloadable object files. +reload_flag=" -r" +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" + +# Commands used to build an old-style archive. +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$tool_oldlib" + +# A language specific compiler. +CC="x86_64-conda-linux-gnu-cc" + +# Is the compiler the GNU compiler? +with_gcc=yes + +# Compiler flag to turn off builtin functions. +no_builtin_flag=" -fno-builtin" + +# Additional compiler flags for building library objects. +pic_flag=" -fPIC -DPIC" + +# How to pass a linker flag through the compiler. +wl="-Wl," + +# Compiler flag to prevent dynamic linking. +link_static_flag="-static" + +# Does compiler simultaneously support -c and -o options? +compiler_c_o="yes" + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=no + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=no + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="\$wl--export-dynamic" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="\$wl--whole-archive\$convenience \$wl--no-whole-archive" + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object="no" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds="" + +# Commands used to build a shared archive. +archive_cmds="\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \$wl-soname \$wl\$soname -o \$lib" +archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~ + cat \$export_symbols | \$SED -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~ + echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~ + \$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \$wl-soname \$wl\$soname \$wl-version-script \$wl\$output_objdir/\$libname.ver -o \$lib" + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds="" +module_expsym_cmds="" + +# Whether we are building with GNU ld or not. +with_gnu_ld="yes" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that enforces no undefined symbols. +no_undefined_flag="" + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist +hardcode_libdir_flag_spec="\$wl-rpath \$wl\$libdir" + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator="" + +# Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=no + +# Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e. impossible to change by setting $shlibpath_var if the +# library is relocated. +hardcode_direct_absolute=no + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=no + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=unsupported + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=no + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=no + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=unknown + +# Set to "yes" if exported symbols are required. +always_export_symbols=no + +# The commands to list exported symbols. +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*" + +# Symbols that must always be exported. +include_expsyms="" + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds="" + +# Commands necessary for finishing linking programs. +postlink_cmds="" + +# Specify filename containing input files. +file_list_spec="" + +# How to hardcode a shared library path into an executable. +hardcode_action=immediate + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs="" + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects="" +postdep_objects="" +predeps="" +postdeps="" + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path="" + +# ### END LIBTOOL CONFIG + + +# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE + +# func_munge_path_list VARIABLE PATH +# ----------------------------------- +# VARIABLE is name of variable containing _space_ separated list of +# directories to be munged by the contents of PATH, which is string +# having a format: +# "DIR[:DIR]:" +# string "DIR[ DIR]" will be prepended to VARIABLE +# ":DIR[:DIR]" +# string "DIR[ DIR]" will be appended to VARIABLE +# "DIRP[:DIRP]::[DIRA:]DIRA" +# string "DIRP[ DIRP]" will be prepended to VARIABLE and string +# "DIRA[ DIRA]" will be appended to VARIABLE +# "DIR[:DIR]" +# VARIABLE will be replaced by "DIR[ DIR]" +func_munge_path_list () +{ + case x$2 in + x) + ;; + *:) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" + ;; + x:*) + eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" + ;; + *::*) + eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" + eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" + ;; + *) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" + ;; + esac +} + + +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +func_cc_basename () +{ + for cc_temp in $*""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac + done + func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +} + + +# ### END FUNCTIONS SHARED WITH CONFIGURE + +#! /usr/bin/env sh +## DO NOT EDIT - This file generated from ./build-aux/ltmain.in +## by inline-source v2019-02-19.15 + +# libtool (GNU libtool) 2.5.4 +# Provide generalized library-building support services. +# Written by Gordon Matzigkeit , 1996 + +# Copyright (C) 1996-2019, 2021-2024 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +PROGRAM=libtool +PACKAGE=libtool +VERSION=2.5.4 +package_revision=2.5.4 + + +## ------ ## +## Usage. ## +## ------ ## + +# Run './libtool --help' for help with using this script from the +# command line. + + +## ------------------------------- ## +## User overridable command paths. ## +## ------------------------------- ## + +# After configure completes, it has a better idea of some of the +# shell tools we need than the defaults used by the functions shared +# with bootstrap, so set those here where they can still be over- +# ridden by the user, but otherwise take precedence. + +: ${AUTOCONF="autoconf"} +: ${AUTOMAKE="automake"} + + +## -------------------------- ## +## Source external libraries. ## +## -------------------------- ## + +# Much of our low-level functionality needs to be sourced from external +# libraries, which are installed to $pkgauxdir. + +# Set a version string for this script. +scriptversion=2019-02-19.15; # UTC + +# General shell script boiler plate, and helper functions. +# Written by Gary V. Vaughan, 2004 + +# This is free software. There is NO warranty; not even for +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# Copyright (C) 2004-2019, 2021, 2023-2024 Bootstrap Authors +# +# This file is dual licensed under the terms of the MIT license +# , and GPL version 2 or later +# . You must apply one of +# these licenses when using or redistributing this software or any of +# the files within it. See the URLs above, or the file `LICENSE` +# included in the Bootstrap distribution for the full license texts. + +# Please report bugs or propose patches to: +# + + +## ------ ## +## Usage. ## +## ------ ## + +# Evaluate this file near the top of your script to gain access to +# the functions and variables defined here: +# +# . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh +# +# If you need to override any of the default environment variable +# settings, do that before evaluating this file. + + +## -------------------- ## +## Shell normalisation. ## +## -------------------- ## + +# Some shells need a little help to be as Bourne compatible as possible. +# Before doing anything else, make sure all that help has been provided! + +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac +fi + +# NLS nuisances: We save the old values in case they are required later. +_G_user_locale= +_G_safe_locale= +for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test set = \"\${$_G_var+set}\"; then + save_$_G_var=\$$_G_var + $_G_var=C + export $_G_var + _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" + _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" + fi" +done +# These NLS vars are set unconditionally (bootstrap issue #24). Unset those +# in case the environment reset is needed later and the $save_* variant is not +# defined (see the code above). +LC_ALL=C +LANGUAGE=C +export LANGUAGE LC_ALL + +# Make sure IFS has a sensible default +sp=' ' +nl=' +' +IFS="$sp $nl" + +# There are apparently some systems that use ';' as a PATH separator! +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# func_unset VAR +# -------------- +# Portably unset VAR. +# In some shells, an 'unset VAR' statement leaves a non-zero return +# status if VAR is already unset, which might be problematic if the +# statement is used at the end of a function (thus poisoning its return +# value) or when 'set -e' is active (causing even a spurious abort of +# the script in this case). +func_unset () +{ + { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; } +} + + +# Make sure CDPATH doesn't cause `cd` commands to output the target dir. +func_unset CDPATH + +# Make sure ${,E,F}GREP behave sanely. +func_unset GREP_OPTIONS + + +## ------------------------- ## +## Locate command utilities. ## +## ------------------------- ## + + +# func_executable_p FILE +# ---------------------- +# Check that FILE is an executable regular file. +func_executable_p () +{ + test -f "$1" && test -x "$1" +} + + +# func_path_progs PROGS_LIST CHECK_FUNC [PATH] +# -------------------------------------------- +# Search for either a program that responds to --version with output +# containing "GNU", or else returned by CHECK_FUNC otherwise, by +# trying all the directories in PATH with each of the elements of +# PROGS_LIST. +# +# CHECK_FUNC should accept the path to a candidate program, and +# set $func_check_prog_result if it truncates its output less than +# $_G_path_prog_max characters. +func_path_progs () +{ + _G_progs_list=$1 + _G_check_func=$2 + _G_PATH=${3-"$PATH"} + + _G_path_prog_max=0 + _G_path_prog_found=false + _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} + for _G_dir in $_G_PATH; do + IFS=$_G_save_IFS + test -z "$_G_dir" && _G_dir=. + for _G_prog_name in $_G_progs_list; do + for _exeext in '' .EXE; do + _G_path_prog=$_G_dir/$_G_prog_name$_exeext + func_executable_p "$_G_path_prog" || continue + case `"$_G_path_prog" --version 2>&1` in + *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; + *) $_G_check_func $_G_path_prog + func_path_progs_result=$func_check_prog_result + ;; + esac + $_G_path_prog_found && break 3 + done + done + done + IFS=$_G_save_IFS + test -z "$func_path_progs_result" && { + echo "no acceptable sed could be found in \$PATH" >&2 + exit 1 + } +} + + +# We want to be able to use the functions in this file before configure +# has figured out where the best binaries are kept, which means we have +# to search for them ourselves - except when the results are already set +# where we skip the searches. + +# Unless the user overrides by setting SED, search the path for either GNU +# sed, or the sed that truncates its output the least. +test -z "$SED" && { + _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for _G_i in 1 2 3 4 5 6 7; do + _G_sed_script=$_G_sed_script$nl$_G_sed_script + done + echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed + _G_sed_script= + + func_check_prog_sed () + { + _G_path_prog=$1 + + _G_count=0 + printf 0123456789 >conftest.in + while : + do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo '' >> conftest.nl + "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break + diff conftest.out conftest.nl >/dev/null 2>&1 || break + _G_count=`expr $_G_count + 1` + if test "$_G_count" -gt "$_G_path_prog_max"; then + # Best one so far, save it but keep looking for a better one + func_check_prog_result=$_G_path_prog + _G_path_prog_max=$_G_count + fi + # 10*(2^10) chars as input seems more than enough + test 10 -lt "$_G_count" && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out + } + + func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin" + rm -f conftest.sed + SED=$func_path_progs_result +} + + +# Unless the user overrides by setting GREP, search the path for either GNU +# grep, or the grep that truncates its output the least. +test -z "$GREP" && { + func_check_prog_grep () + { + _G_path_prog=$1 + + _G_count=0 + _G_path_prog_max=0 + printf 0123456789 >conftest.in + while : + do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo 'GREP' >> conftest.nl + "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break + diff conftest.out conftest.nl >/dev/null 2>&1 || break + _G_count=`expr $_G_count + 1` + if test "$_G_count" -gt "$_G_path_prog_max"; then + # Best one so far, save it but keep looking for a better one + func_check_prog_result=$_G_path_prog + _G_path_prog_max=$_G_count + fi + # 10*(2^10) chars as input seems more than enough + test 10 -lt "$_G_count" && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out + } + + func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin" + GREP=$func_path_progs_result +} + + +## ------------------------------- ## +## User overridable command paths. ## +## ------------------------------- ## + +# All uppercase variable names are used for environment variables. These +# variables can be overridden by the user before calling a script that +# uses them if a suitable command of that name is not already available +# in the command search PATH. + +: ${CP="cp -f"} +: ${ECHO="printf %s\n"} +: ${EGREP="$GREP -E"} +: ${FGREP="$GREP -F"} +: ${LN_S="ln -s"} +: ${MAKE="make"} +: ${MKDIR="mkdir"} +: ${MV="mv -f"} +: ${RM="rm -f"} +: ${SHELL="${CONFIG_SHELL-/bin/sh}"} + + +## -------------------- ## +## Useful sed snippets. ## +## -------------------- ## + +sed_dirname='s|/[^/]*$||' +sed_basename='s|^.*/||' + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='s|\([`"$\\]\)|\\\1|g' + +# Same as above, but do not quote variable references. +sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution that turns a string into a regex matching for the +# string literally. +sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' + +# Sed substitution that converts a w32 file name or path +# that contains forward slashes, into one that contains +# (escaped) backslashes. A very naive implementation. +sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + +# Re-'\' parameter expansions in output of sed_double_quote_subst that +# were '\'-ed in input to the same. If an odd number of '\' preceded a +# '$' in input to sed_double_quote_subst, that '$' was protected from +# expansion. Since each input '\' is now two '\'s, look for any number +# of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. +_G_bs='\\' +_G_bs2='\\\\' +_G_bs4='\\\\\\\\' +_G_dollar='\$' +sed_double_backslash="\ + s/$_G_bs4/&\\ +/g + s/^$_G_bs2$_G_dollar/$_G_bs&/ + s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g + s/\n//g" + +# require_check_ifs_backslash +# --------------------------- +# Check if we can use backslash as IFS='\' separator, and set +# $check_ifs_backshlash_broken to ':' or 'false'. +require_check_ifs_backslash=func_require_check_ifs_backslash +func_require_check_ifs_backslash () +{ + _G_save_IFS=$IFS + IFS='\' + _G_check_ifs_backshlash='a\\b' + for _G_i in $_G_check_ifs_backshlash + do + case $_G_i in + a) + check_ifs_backshlash_broken=false + ;; + '') + break + ;; + *) + check_ifs_backshlash_broken=: + break + ;; + esac + done + IFS=$_G_save_IFS + require_check_ifs_backslash=: +} + + +## ----------------- ## +## Global variables. ## +## ----------------- ## + +# Except for the global variables explicitly listed below, the following +# functions in the '^func_' namespace, and the '^require_' namespace +# variables initialised in the 'Resource management' section, sourcing +# this file will not pollute your global namespace with anything +# else. There's no portable way to scope variables in Bourne shell +# though, so actually running these functions will sometimes place +# results into a variable named after the function, and often use +# temporary variables in the '^_G_' namespace. If you are careful to +# avoid using those namespaces casually in your sourcing script, things +# should continue to work as you expect. And, of course, you can freely +# overwrite any of the functions or variables defined here before +# calling anything to customize them. + +EXIT_SUCCESS=0 +EXIT_FAILURE=1 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. + +# Allow overriding, eg assuming that you follow the convention of +# putting '$debug_cmd' at the start of all your functions, you can get +# bash to show function call trace with: +# +# debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name +debug_cmd=${debug_cmd-":"} +exit_cmd=: + +# By convention, finish your script with: +# +# exit $exit_status +# +# so that you can set exit_status to non-zero if you want to indicate +# something went wrong during execution without actually bailing out at +# the point of failure. +exit_status=$EXIT_SUCCESS + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath=$0 + +# The name of this program. +progname=`$ECHO "$progpath" |$SED "$sed_basename"` + +# Make sure we have an absolute progpath for reexecution: +case $progpath in + [\\/]*|[A-Za-z]:\\*) ;; + *[\\/]*) + progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` + progdir=`cd "$progdir" && pwd` + progpath=$progdir/$progname + ;; + *) + _G_IFS=$IFS + IFS=${PATH_SEPARATOR-:} + for progdir in $PATH; do + IFS=$_G_IFS + test -x "$progdir/$progname" && break + done + IFS=$_G_IFS + test -n "$progdir" || progdir=`pwd` + progpath=$progdir/$progname + ;; +esac + + +## ----------------- ## +## Standard options. ## +## ----------------- ## + +# The following options affect the operation of the functions defined +# below, and should be set appropriately depending on run-time para- +# meters passed on the command line. + +opt_dry_run=false +opt_quiet=false +opt_verbose=false + +# Categories 'all' and 'none' are always available. Append any others +# you will pass as the first argument to func_warning from your own +# code. +warning_categories= + +# By default, display warnings according to 'opt_warning_types'. Set +# 'warning_func' to ':' to elide all warnings, or func_fatal_error to +# treat the next displayed warning as a fatal error. +warning_func=func_warn_and_continue + +# Set to 'all' to display all warnings, 'none' to suppress all +# warnings, or a space delimited list of some subset of +# 'warning_categories' to display only the listed warnings. +opt_warning_types=all + + +## -------------------- ## +## Resource management. ## +## -------------------- ## + +# This section contains definitions for functions that each ensure a +# particular resource (a file, or a non-empty configuration variable for +# example) is available, and if appropriate to extract default values +# from pertinent package files. Call them using their associated +# 'require_*' variable to ensure that they are executed, at most, once. +# +# It's entirely deliberate that calling these functions can set +# variables that don't obey the namespace limitations obeyed by the rest +# of this file, in order that that they be as useful as possible to +# callers. + + +# require_term_colors +# ------------------- +# Allow display of bold text on terminals that support it. +require_term_colors=func_require_term_colors +func_require_term_colors () +{ + $debug_cmd + + test -t 1 && { + # COLORTERM and USE_ANSI_COLORS environment variables take + # precedence, because most terminfo databases neglect to describe + # whether color sequences are supported. + test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} + + if test 1 = "$USE_ANSI_COLORS"; then + # Standard ANSI escape sequences + tc_reset='' + tc_bold=''; tc_standout='' + tc_red=''; tc_green='' + tc_blue=''; tc_cyan='' + else + # Otherwise trust the terminfo database after all. + test -n "`tput sgr0 2>/dev/null`" && { + tc_reset=`tput sgr0` + test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` + tc_standout=$tc_bold + test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` + test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` + test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` + test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` + test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` + } + fi + } + + require_term_colors=: +} + + +## ----------------- ## +## Function library. ## +## ----------------- ## + +# This section contains a variety of useful functions to call in your +# scripts. Take note of the portable wrappers for features provided by +# some modern shells, which will fall back to slower equivalents on +# less featureful shells. + + +# func_append VAR VALUE +# --------------------- +# Append VALUE onto the existing contents of VAR. + + # We should try to minimise forks, especially on Windows where they are + # unreasonably slow, so skip the feature probes when bash or zsh are + # being used: + if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then + : ${_G_HAVE_ARITH_OP="yes"} + : ${_G_HAVE_XSI_OPS="yes"} + # The += operator was introduced in bash 3.1 + case $BASH_VERSION in + [12].* | 3.0 | 3.0*) ;; + *) + : ${_G_HAVE_PLUSEQ_OP="yes"} + ;; + esac + fi + + # _G_HAVE_PLUSEQ_OP + # Can be empty, in which case the shell is probed, "yes" if += is + # usable or anything else if it does not work. + test -z "$_G_HAVE_PLUSEQ_OP" \ + && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ + && _G_HAVE_PLUSEQ_OP=yes + +if test yes = "$_G_HAVE_PLUSEQ_OP" +then + # This is an XSI compatible shell, allowing a faster implementation... + eval 'func_append () + { + $debug_cmd + + eval "$1+=\$2" + }' +else + # ...otherwise fall back to using expr, which is often a shell builtin. + func_append () + { + $debug_cmd + + eval "$1=\$$1\$2" + } +fi + + +# func_append_quoted VAR VALUE +# ---------------------------- +# Quote VALUE and append to the end of shell variable VAR, separated +# by a space. +if test yes = "$_G_HAVE_PLUSEQ_OP"; then + eval 'func_append_quoted () + { + $debug_cmd + + func_quote_arg pretty "$2" + eval "$1+=\\ \$func_quote_arg_result" + }' +else + func_append_quoted () + { + $debug_cmd + + func_quote_arg pretty "$2" + eval "$1=\$$1\\ \$func_quote_arg_result" + } +fi + + +# func_append_uniq VAR VALUE +# -------------------------- +# Append unique VALUE onto the existing contents of VAR, assuming +# entries are delimited by the first character of VALUE. For example: +# +# func_append_uniq options " --another-option option-argument" +# +# will only append to $options if " --another-option option-argument " +# is not already present somewhere in $options already (note spaces at +# each end implied by leading space in second argument). +func_append_uniq () +{ + $debug_cmd + + eval _G_current_value='`$ECHO $'$1'`' + _G_delim=`expr "$2" : '\(.\)'` + + case $_G_delim$_G_current_value$_G_delim in + *"$2$_G_delim"*) ;; + *) func_append "$@" ;; + esac +} + + +# func_arith TERM... +# ------------------ +# Set func_arith_result to the result of evaluating TERMs. + test -z "$_G_HAVE_ARITH_OP" \ + && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ + && _G_HAVE_ARITH_OP=yes + +if test yes = "$_G_HAVE_ARITH_OP"; then + eval 'func_arith () + { + $debug_cmd + + func_arith_result=$(( $* )) + }' +else + func_arith () + { + $debug_cmd + + func_arith_result=`expr "$@"` + } +fi + + +# func_basename FILE +# ------------------ +# Set func_basename_result to FILE with everything up to and including +# the last / stripped. +if test yes = "$_G_HAVE_XSI_OPS"; then + # If this shell supports suffix pattern removal, then use it to avoid + # forking. Hide the definitions single quotes in case the shell chokes + # on unsupported syntax... + _b='func_basename_result=${1##*/}' + _d='case $1 in + */*) func_dirname_result=${1%/*}$2 ;; + * ) func_dirname_result=$3 ;; + esac' + +else + # ...otherwise fall back to using sed. + _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' + _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` + if test "X$func_dirname_result" = "X$1"; then + func_dirname_result=$3 + else + func_append func_dirname_result "$2" + fi' +fi + +eval 'func_basename () +{ + $debug_cmd + + '"$_b"' +}' + + +# func_dirname FILE APPEND NONDIR_REPLACEMENT +# ------------------------------------------- +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +eval 'func_dirname () +{ + $debug_cmd + + '"$_d"' +}' + + +# func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT +# -------------------------------------------------------- +# Perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value returned in "$func_basename_result" +# For efficiency, we do not delegate to the functions above but instead +# duplicate the functionality here. +eval 'func_dirname_and_basename () +{ + $debug_cmd + + '"$_b"' + '"$_d"' +}' + + +# func_echo ARG... +# ---------------- +# Echo program name prefixed message. +func_echo () +{ + $debug_cmd + + _G_message=$* + + func_echo_IFS=$IFS + IFS=$nl + for _G_line in $_G_message; do + IFS=$func_echo_IFS + $ECHO "$progname: $_G_line" + done + IFS=$func_echo_IFS +} + + +# func_echo_all ARG... +# -------------------- +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + + +# func_echo_infix_1 INFIX ARG... +# ------------------------------ +# Echo program name, followed by INFIX on the first line, with any +# additional lines not showing INFIX. +func_echo_infix_1 () +{ + $debug_cmd + + $require_term_colors + + _G_infix=$1; shift + _G_indent=$_G_infix + _G_prefix="$progname: $_G_infix: " + _G_message=$* + + # Strip color escape sequences before counting printable length + for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" + do + test -n "$_G_tc" && { + _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` + _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` + } + done + _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes + + func_echo_infix_1_IFS=$IFS + IFS=$nl + for _G_line in $_G_message; do + IFS=$func_echo_infix_1_IFS + $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 + _G_prefix=$_G_indent + done + IFS=$func_echo_infix_1_IFS +} + + +# func_error ARG... +# ----------------- +# Echo program name prefixed message to standard error. +func_error () +{ + $debug_cmd + + $require_term_colors + + func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 +} + + +# func_fatal_error ARG... +# ----------------------- +# Echo program name prefixed message to standard error, and exit. +func_fatal_error () +{ + $debug_cmd + + func_error "$*" + exit $EXIT_FAILURE +} + + +# func_grep EXPRESSION FILENAME +# ----------------------------- +# Check whether EXPRESSION matches any line of FILENAME, without output. +func_grep () +{ + $debug_cmd + + $GREP "$1" "$2" >/dev/null 2>&1 +} + + +# func_len STRING +# --------------- +# Set func_len_result to the length of STRING. STRING may not +# start with a hyphen. + test -z "$_G_HAVE_XSI_OPS" \ + && (eval 'x=a/b/c; + test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ + && _G_HAVE_XSI_OPS=yes + +if test yes = "$_G_HAVE_XSI_OPS"; then + eval 'func_len () + { + $debug_cmd + + func_len_result=${#1} + }' +else + func_len () + { + $debug_cmd + + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` + } +fi + + +# func_mkdir_p DIRECTORY-PATH +# --------------------------- +# Make sure the entire path to DIRECTORY-PATH is available. +func_mkdir_p () +{ + $debug_cmd + + _G_directory_path=$1 + _G_dir_list= + + if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then + + # Protect directory names starting with '-' + case $_G_directory_path in + -*) _G_directory_path=./$_G_directory_path ;; + esac + + # While some portion of DIR does not yet exist... + while test ! -d "$_G_directory_path"; do + # ...make a list in topmost first order. Use a colon delimited + # list in case some portion of path contains whitespace. + _G_dir_list=$_G_directory_path:$_G_dir_list + + # If the last portion added has no slash in it, the list is done + case $_G_directory_path in */*) ;; *) break ;; esac + + # ...otherwise throw away the child directory and loop + _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` + done + _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` + + func_mkdir_p_IFS=$IFS; IFS=: + for _G_dir in $_G_dir_list; do + IFS=$func_mkdir_p_IFS + # mkdir can fail with a 'File exist' error if two processes + # try to create one of the directories concurrently. Don't + # stop in that case! + $MKDIR "$_G_dir" 2>/dev/null || : + done + IFS=$func_mkdir_p_IFS + + # Bail out if we (or some other process) failed to create a directory. + test -d "$_G_directory_path" || \ + func_fatal_error "Failed to create '$1'" + fi +} + + +# func_mktempdir [BASENAME] +# ------------------------- +# Make a temporary directory that won't clash with other running +# libtool processes, and avoids race conditions if possible. If +# given, BASENAME is the basename for that directory. +func_mktempdir () +{ + $debug_cmd + + _G_template=${TMPDIR-/tmp}/${1-$progname} + + if test : = "$opt_dry_run"; then + # Return a directory name, but don't create it in dry-run mode + _G_tmpdir=$_G_template-$$ + else + + # If mktemp works, use that first and foremost + _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` + + if test ! -d "$_G_tmpdir"; then + # Failing that, at least try and use $RANDOM to avoid a race + _G_tmpdir=$_G_template-${RANDOM-0}$$ + + func_mktempdir_umask=`umask` + umask 0077 + $MKDIR "$_G_tmpdir" + umask $func_mktempdir_umask + fi + + # If we're not in dry-run mode, bomb out on failure + test -d "$_G_tmpdir" || \ + func_fatal_error "cannot create temporary directory '$_G_tmpdir'" + fi + + $ECHO "$_G_tmpdir" +} + + +# func_normal_abspath PATH +# ------------------------ +# Remove doubled-up and trailing slashes, "." path components, +# and cancel out any ".." path components in PATH after making +# it an absolute path. +func_normal_abspath () +{ + $debug_cmd + + # These SED scripts presuppose an absolute path with a trailing slash. + _G_pathcar='s|^/\([^/]*\).*$|\1|' + _G_pathcdr='s|^/[^/]*||' + _G_removedotparts=':dotsl + s|/\./|/|g + t dotsl + s|/\.$|/|' + _G_collapseslashes='s|/\{1,\}|/|g' + _G_finalslash='s|/*$|/|' + + # Start from root dir and reassemble the path. + func_normal_abspath_result= + func_normal_abspath_tpath=$1 + func_normal_abspath_altnamespace= + case $func_normal_abspath_tpath in + "") + # Empty path, that just means $cwd. + func_stripname '' '/' "`pwd`" + func_normal_abspath_result=$func_stripname_result + return + ;; + # The next three entries are used to spot a run of precisely + # two leading slashes without using negated character classes; + # we take advantage of case's first-match behaviour. + ///*) + # Unusual form of absolute path, do nothing. + ;; + //*) + # Not necessarily an ordinary path; POSIX reserves leading '//' + # and for example Cygwin uses it to access remote file shares + # over CIFS/SMB, so we conserve a leading double slash if found. + func_normal_abspath_altnamespace=/ + ;; + /*) + # Absolute path, do nothing. + ;; + *) + # Relative path, prepend $cwd. + func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath + ;; + esac + + # Cancel out all the simple stuff to save iterations. We also want + # the path to end with a slash for ease of parsing, so make sure + # there is one (and only one) here. + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` + while :; do + # Processed it all yet? + if test / = "$func_normal_abspath_tpath"; then + # If we ascended to the root using ".." the result may be empty now. + if test -z "$func_normal_abspath_result"; then + func_normal_abspath_result=/ + fi + break + fi + func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$_G_pathcar"` + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$_G_pathcdr"` + # Figure out what to do with it + case $func_normal_abspath_tcomponent in + "") + # Trailing empty path component, ignore it. + ;; + ..) + # Parent dir; strip last assembled component from result. + func_dirname "$func_normal_abspath_result" + func_normal_abspath_result=$func_dirname_result + ;; + *) + # Actual path component, append it. + func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" + ;; + esac + done + # Restore leading double-slash if one was found on entry. + func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result +} + + +# func_notquiet ARG... +# -------------------- +# Echo program name prefixed message only when not in quiet mode. +func_notquiet () +{ + $debug_cmd + + $opt_quiet || func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : +} + + +# func_relative_path SRCDIR DSTDIR +# -------------------------------- +# Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. +func_relative_path () +{ + $debug_cmd + + func_relative_path_result= + func_normal_abspath "$1" + func_relative_path_tlibdir=$func_normal_abspath_result + func_normal_abspath "$2" + func_relative_path_tbindir=$func_normal_abspath_result + + # Ascend the tree starting from libdir + while :; do + # check if we have found a prefix of bindir + case $func_relative_path_tbindir in + $func_relative_path_tlibdir) + # found an exact match + func_relative_path_tcancelled= + break + ;; + $func_relative_path_tlibdir*) + # found a matching prefix + func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" + func_relative_path_tcancelled=$func_stripname_result + if test -z "$func_relative_path_result"; then + func_relative_path_result=. + fi + break + ;; + *) + func_dirname $func_relative_path_tlibdir + func_relative_path_tlibdir=$func_dirname_result + if test -z "$func_relative_path_tlibdir"; then + # Have to descend all the way to the root! + func_relative_path_result=../$func_relative_path_result + func_relative_path_tcancelled=$func_relative_path_tbindir + break + fi + func_relative_path_result=../$func_relative_path_result + ;; + esac + done + + # Now calculate path; take care to avoid doubling-up slashes. + func_stripname '' '/' "$func_relative_path_result" + func_relative_path_result=$func_stripname_result + func_stripname '/' '/' "$func_relative_path_tcancelled" + if test -n "$func_stripname_result"; then + func_append func_relative_path_result "/$func_stripname_result" + fi + + # Normalisation. If bindir is libdir, return '.' else relative path. + if test -n "$func_relative_path_result"; then + func_stripname './' '' "$func_relative_path_result" + func_relative_path_result=$func_stripname_result + fi + + test -n "$func_relative_path_result" || func_relative_path_result=. + + : +} + + +# func_quote_portable EVAL ARG +# ---------------------------- +# Internal function to portably implement func_quote_arg. Note that we still +# keep attention to performance here so we as much as possible try to avoid +# calling sed binary (so far O(N) complexity as long as func_append is O(1)). +func_quote_portable () +{ + $debug_cmd + + $require_check_ifs_backslash + + func_quote_portable_result=$2 + + # one-time-loop (easy break) + while true + do + if $1; then + func_quote_portable_result=`$ECHO "$2" | $SED \ + -e "$sed_double_quote_subst" -e "$sed_double_backslash"` + break + fi + + # Quote for eval. + case $func_quote_portable_result in + *[\\\`\"\$]*) + # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string + # contains the shell wildcard characters. + case $check_ifs_backshlash_broken$func_quote_portable_result in + :*|*[\[\*\?]*) + func_quote_portable_result=`$ECHO "$func_quote_portable_result" \ + | $SED "$sed_quote_subst"` + break + ;; + esac + + func_quote_portable_old_IFS=$IFS + for _G_char in '\' '`' '"' '$' + do + # STATE($1) PREV($2) SEPARATOR($3) + set start "" "" + func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy + IFS=$_G_char + for _G_part in $func_quote_portable_result + do + case $1 in + quote) + func_append func_quote_portable_result "$3$2" + set quote "$_G_part" "\\$_G_char" + ;; + start) + set first "" "" + func_quote_portable_result= + ;; + first) + set quote "$_G_part" "" + ;; + esac + done + done + IFS=$func_quote_portable_old_IFS + ;; + *) ;; + esac + break + done + + func_quote_portable_unquoted_result=$func_quote_portable_result + case $func_quote_portable_result in + # double-quote args containing shell metacharacters to delay + # word splitting, command substitution and variable expansion + # for a subsequent eval. + # many bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + func_quote_portable_result=\"$func_quote_portable_result\" + ;; + esac +} + + +# func_quotefast_eval ARG +# ----------------------- +# Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG', +# but optimized for speed. Result is stored in $func_quotefast_eval. +if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then + printf -v _GL_test_printf_tilde %q '~' + if test '\~' = "$_GL_test_printf_tilde"; then + func_quotefast_eval () + { + printf -v func_quotefast_eval_result %q "$1" + } + else + # Broken older Bash implementations. Make those faster too if possible. + func_quotefast_eval () + { + case $1 in + '~'*) + func_quote_portable false "$1" + func_quotefast_eval_result=$func_quote_portable_result + ;; + *) + printf -v func_quotefast_eval_result %q "$1" + ;; + esac + } + fi +else + func_quotefast_eval () + { + func_quote_portable false "$1" + func_quotefast_eval_result=$func_quote_portable_result + } +fi + + +# func_quote_arg MODEs ARG +# ------------------------ +# Quote one ARG to be evaled later. MODEs argument may contain zero or more +# specifiers listed below separated by ',' character. This function returns two +# values: +# i) func_quote_arg_result +# double-quoted (when needed), suitable for a subsequent eval +# ii) func_quote_arg_unquoted_result +# has all characters that are still active within double +# quotes backslashified. Available only if 'unquoted' is specified. +# +# Available modes: +# ---------------- +# 'eval' (default) +# - escape shell special characters +# 'expand' +# - the same as 'eval'; but do not quote variable references +# 'pretty' +# - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might +# be used later in func_quote to get output like: 'echo "a b"' instead +# of 'echo a\ b'. This is slower than default on some shells. +# 'unquoted' +# - produce also $func_quote_arg_unquoted_result which does not contain +# wrapping double-quotes. +# +# Examples for 'func_quote_arg pretty,unquoted string': +# +# string | *_result | *_unquoted_result +# ------------+-----------------------+------------------- +# " | \" | \" +# a b | "a b" | a b +# "a b" | "\"a b\"" | \"a b\" +# * | "*" | * +# z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\" +# +# Examples for 'func_quote_arg pretty,unquoted,expand string': +# +# string | *_result | *_unquoted_result +# --------------+---------------------+-------------------- +# z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\" +func_quote_arg () +{ + _G_quote_expand=false + case ,$1, in + *,expand,*) + _G_quote_expand=: + ;; + esac + + case ,$1, in + *,pretty,*|*,expand,*|*,unquoted,*) + func_quote_portable $_G_quote_expand "$2" + func_quote_arg_result=$func_quote_portable_result + func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result + ;; + *) + # Faster quote-for-eval for some shells. + func_quotefast_eval "$2" + func_quote_arg_result=$func_quotefast_eval_result + ;; + esac +} + + +# func_quote MODEs ARGs... +# ------------------------ +# Quote all ARGs to be evaled later and join them into single command. See +# func_quote_arg's description for more info. +func_quote () +{ + $debug_cmd + _G_func_quote_mode=$1 ; shift + func_quote_result= + while test 0 -lt $#; do + func_quote_arg "$_G_func_quote_mode" "$1" + if test -n "$func_quote_result"; then + func_append func_quote_result " $func_quote_arg_result" + else + func_append func_quote_result "$func_quote_arg_result" + fi + shift + done +} + + +# func_stripname PREFIX SUFFIX NAME +# --------------------------------- +# strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +if test yes = "$_G_HAVE_XSI_OPS"; then + eval 'func_stripname () + { + $debug_cmd + + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary variable first. + func_stripname_result=$3 + func_stripname_result=${func_stripname_result#"$1"} + func_stripname_result=${func_stripname_result%"$2"} + }' +else + func_stripname () + { + $debug_cmd + + case $2 in + .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; + *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; + esac + } +fi + + +# func_show_eval CMD [FAIL_EXP] +# ----------------------------- +# Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. +func_show_eval () +{ + $debug_cmd + + _G_cmd=$1 + _G_fail_exp=${2-':'} + + func_quote_arg pretty,expand "$_G_cmd" + eval "func_notquiet $func_quote_arg_result" + + $opt_dry_run || { + eval "$_G_cmd" + _G_status=$? + if test 0 -ne "$_G_status"; then + eval "(exit $_G_status); $_G_fail_exp" + fi + } +} + + +# func_show_eval_locale CMD [FAIL_EXP] +# ------------------------------------ +# Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. Use the saved locale for evaluation. +func_show_eval_locale () +{ + $debug_cmd + + _G_cmd=$1 + _G_fail_exp=${2-':'} + + $opt_quiet || { + func_quote_arg expand,pretty "$_G_cmd" + eval "func_echo $func_quote_arg_result" + } + + $opt_dry_run || { + eval "$_G_user_locale + $_G_cmd" + _G_status=$? + eval "$_G_safe_locale" + if test 0 -ne "$_G_status"; then + eval "(exit $_G_status); $_G_fail_exp" + fi + } +} + + +# func_tr_sh +# ---------- +# Turn $1 into a string suitable for a shell variable name. +# Result is stored in $func_tr_sh_result. All characters +# not in the set a-zA-Z0-9_ are replaced with '_'. Further, +# if $1 begins with a digit, a '_' is prepended as well. +func_tr_sh () +{ + $debug_cmd + + case $1 in + [0-9]* | *[!a-zA-Z0-9_]*) + func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` + ;; + * ) + func_tr_sh_result=$1 + ;; + esac +} + + +# func_verbose ARG... +# ------------------- +# Echo program name prefixed message in verbose mode only. +func_verbose () +{ + $debug_cmd + + $opt_verbose && func_echo "$*" + + : +} + + +# func_warn_and_continue ARG... +# ----------------------------- +# Echo program name prefixed warning message to standard error. +func_warn_and_continue () +{ + $debug_cmd + + $require_term_colors + + func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 +} + + +# func_warning CATEGORY ARG... +# ---------------------------- +# Echo program name prefixed warning message to standard error. Warning +# messages can be filtered according to CATEGORY, where this function +# elides messages where CATEGORY is not listed in the global variable +# 'opt_warning_types'. +func_warning () +{ + $debug_cmd + + # CATEGORY must be in the warning_categories list! + case " $warning_categories " in + *" $1 "*) ;; + *) func_internal_error "invalid warning category '$1'" ;; + esac + + _G_category=$1 + shift + + case " $opt_warning_types " in + *" $_G_category "*) $warning_func ${1+"$@"} ;; + esac +} + + +# func_sort_ver VER1 VER2 +# ----------------------- +# 'sort -V' is not generally available. +# Note this deviates from the version comparison in automake +# in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a +# but this should suffice as we won't be specifying old +# version formats or redundant trailing .0 in bootstrap.conf. +# If we did want full compatibility then we should probably +# use m4_version_compare from autoconf. +func_sort_ver () +{ + $debug_cmd + + printf '%s\n%s\n' "$1" "$2" \ + | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n +} + +# func_lt_ver PREV CURR +# --------------------- +# Return true if PREV and CURR are in the correct order according to +# func_sort_ver, otherwise false. Use it like this: +# +# func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." +func_lt_ver () +{ + $debug_cmd + + test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` +} + + +# Local variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" +# time-stamp-time-zone: "UTC" +# End: +#! /bin/sh + +# A portable, pluggable option parser for Bourne shell. +# Written by Gary V. Vaughan, 2010 + +# This is free software. There is NO warranty; not even for +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# Copyright (C) 2010-2019, 2021, 2023-2024 Bootstrap Authors +# +# This file is dual licensed under the terms of the MIT license +# , and GPL version 2 or later +# . You must apply one of +# these licenses when using or redistributing this software or any of +# the files within it. See the URLs above, or the file `LICENSE` +# included in the Bootstrap distribution for the full license texts. + +# Please report bugs or propose patches to: +# + +# Set a version string for this script. +scriptversion=2019-02-19.15; # UTC + + +## ------ ## +## Usage. ## +## ------ ## + +# This file is a library for parsing options in your shell scripts along +# with assorted other useful supporting features that you can make use +# of too. +# +# For the simplest scripts you might need only: +# +# #!/bin/sh +# . relative/path/to/funclib.sh +# . relative/path/to/options-parser +# scriptversion=1.0 +# func_options ${1+"$@"} +# eval set dummy "$func_options_result"; shift +# ...rest of your script... +# +# In order for the '--version' option to work, you will need to have a +# suitably formatted comment like the one at the top of this file +# starting with '# Written by ' and ending with '# Copyright'. +# +# For '-h' and '--help' to work, you will also need a one line +# description of your script's purpose in a comment directly above the +# '# Written by ' line, like the one at the top of this file. +# +# The default options also support '--debug', which will turn on shell +# execution tracing (see the comment above debug_cmd below for another +# use), and '--verbose' and the func_verbose function to allow your script +# to display verbose messages only when your user has specified +# '--verbose'. +# +# After sourcing this file, you can plug in processing for additional +# options by amending the variables from the 'Configuration' section +# below, and following the instructions in the 'Option parsing' +# section further down. + +## -------------- ## +## Configuration. ## +## -------------- ## + +# You should override these variables in your script after sourcing this +# file so that they reflect the customisations you have added to the +# option parser. + +# The usage line for option parsing errors and the start of '-h' and +# '--help' output messages. You can embed shell variables for delayed +# expansion at the time the message is displayed, but you will need to +# quote other shell meta-characters carefully to prevent them being +# expanded when the contents are evaled. +usage='$progpath [OPTION]...' + +# Short help message in response to '-h' and '--help'. Add to this or +# override it after sourcing this library to reflect the full set of +# options your script accepts. +usage_message="\ + --debug enable verbose shell tracing + -W, --warnings=CATEGORY + report the warnings falling in CATEGORY [all] + -v, --verbose verbosely report processing + --version print version information and exit + -h, --help print short or long help message and exit +" + +# Additional text appended to 'usage_message' in response to '--help'. +long_help_message=" +Warning categories include: + 'all' show all warnings + 'none' turn off all the warnings + 'error' warnings are treated as fatal errors" + +# Help message printed before fatal option parsing errors. +fatal_help="Try '\$progname --help' for more information." + + + +## ------------------------- ## +## Hook function management. ## +## ------------------------- ## + +# This section contains functions for adding, removing, and running hooks +# in the main code. A hook is just a list of function names that can be +# run in order later on. + +# func_hookable FUNC_NAME +# ----------------------- +# Declare that FUNC_NAME will run hooks added with +# 'func_add_hook FUNC_NAME ...'. +func_hookable () +{ + $debug_cmd + + func_append hookable_fns " $1" +} + + +# func_add_hook FUNC_NAME HOOK_FUNC +# --------------------------------- +# Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must +# first have been declared "hookable" by a call to 'func_hookable'. +func_add_hook () +{ + $debug_cmd + + case " $hookable_fns " in + *" $1 "*) ;; + *) func_fatal_error "'$1' does not accept hook functions." ;; + esac + + eval func_append ${1}_hooks '" $2"' +} + + +# func_remove_hook FUNC_NAME HOOK_FUNC +# ------------------------------------ +# Remove HOOK_FUNC from the list of hook functions to be called by +# FUNC_NAME. +func_remove_hook () +{ + $debug_cmd + + eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' +} + + +# func_propagate_result FUNC_NAME_A FUNC_NAME_B +# --------------------------------------------- +# If the *_result variable of FUNC_NAME_A _is set_, assign its value to +# *_result variable of FUNC_NAME_B. +func_propagate_result () +{ + $debug_cmd + + func_propagate_result_result=: + if eval "test \"\${${1}_result+set}\" = set" + then + eval "${2}_result=\$${1}_result" + else + func_propagate_result_result=false + fi +} + + +# func_run_hooks FUNC_NAME [ARG]... +# --------------------------------- +# Run all hook functions registered to FUNC_NAME. +# It's assumed that the list of hook functions contains nothing more +# than a whitespace-delimited list of legal shell function names, and +# no effort is wasted trying to catch shell meta-characters or preserve +# whitespace. +func_run_hooks () +{ + $debug_cmd + + case " $hookable_fns " in + *" $1 "*) ;; + *) func_fatal_error "'$1' does not support hook functions." ;; + esac + + eval _G_hook_fns=\$$1_hooks; shift + + for _G_hook in $_G_hook_fns; do + func_unset "${_G_hook}_result" + eval $_G_hook '${1+"$@"}' + func_propagate_result $_G_hook func_run_hooks + if $func_propagate_result_result; then + eval set dummy "$func_run_hooks_result"; shift + fi + done +} + + + +## --------------- ## +## Option parsing. ## +## --------------- ## + +# In order to add your own option parsing hooks, you must accept the +# full positional parameter list from your hook function. You may remove +# or edit any options that you action, and then pass back the remaining +# unprocessed options in '_result', escaped +# suitably for 'eval'. +# +# The '_result' variable is automatically unset +# before your hook gets called; for best performance, only set the +# *_result variable when necessary (i.e. don't call the 'func_quote' +# function unnecessarily because it can be an expensive operation on some +# machines). +# +# Like this: +# +# my_options_prep () +# { +# $debug_cmd +# +# # Extend the existing usage message. +# usage_message=$usage_message' +# -s, --silent don'\''t print informational messages +# ' +# # No change in '$@' (ignored completely by this hook). Leave +# # my_options_prep_result variable intact. +# } +# func_add_hook func_options_prep my_options_prep +# +# +# my_silent_option () +# { +# $debug_cmd +# +# args_changed=false +# +# # Note that, for efficiency, we parse as many options as we can +# # recognise in a loop before passing the remainder back to the +# # caller on the first unrecognised argument we encounter. +# while test $# -gt 0; do +# opt=$1; shift +# case $opt in +# --silent|-s) opt_silent=: +# args_changed=: +# ;; +# # Separate non-argument short options: +# -s*) func_split_short_opt "$_G_opt" +# set dummy "$func_split_short_opt_name" \ +# "-$func_split_short_opt_arg" ${1+"$@"} +# shift +# args_changed=: +# ;; +# *) # Make sure the first unrecognised option "$_G_opt" +# # is added back to "$@" in case we need it later, +# # if $args_changed was set to 'true'. +# set dummy "$_G_opt" ${1+"$@"}; shift; break ;; +# esac +# done +# +# # Only call 'func_quote' here if we processed at least one argument. +# if $args_changed; then +# func_quote eval ${1+"$@"} +# my_silent_option_result=$func_quote_result +# fi +# } +# func_add_hook func_parse_options my_silent_option +# +# +# my_option_validation () +# { +# $debug_cmd +# +# $opt_silent && $opt_verbose && func_fatal_help "\ +# '--silent' and '--verbose' options are mutually exclusive." +# } +# func_add_hook func_validate_options my_option_validation +# +# You'll also need to manually amend $usage_message to reflect the extra +# options you parse. It's preferable to append if you can, so that +# multiple option parsing hooks can be added safely. + + +# func_options_finish [ARG]... +# ---------------------------- +# Finishing the option parse loop (call 'func_options' hooks ATM). +func_options_finish () +{ + $debug_cmd + + func_run_hooks func_options ${1+"$@"} + func_propagate_result func_run_hooks func_options_finish +} + + +# func_options [ARG]... +# --------------------- +# All the functions called inside func_options are hookable. See the +# individual implementations for details. +func_hookable func_options +func_options () +{ + $debug_cmd + + _G_options_quoted=false + + for my_func in options_prep parse_options validate_options options_finish + do + func_unset func_${my_func}_result + func_unset func_run_hooks_result + eval func_$my_func '${1+"$@"}' + func_propagate_result func_$my_func func_options + if $func_propagate_result_result; then + eval set dummy "$func_options_result"; shift + _G_options_quoted=: + fi + done + + $_G_options_quoted || { + # As we (func_options) are top-level options-parser function and + # nobody quoted "$@" for us yet, we need to do it explicitly for + # caller. + func_quote eval ${1+"$@"} + func_options_result=$func_quote_result + } +} + + +# func_options_prep [ARG]... +# -------------------------- +# All initialisations required before starting the option parse loop. +# Note that when calling hook functions, we pass through the list of +# positional parameters. If a hook function modifies that list, and +# needs to propagate that back to rest of this script, then the complete +# modified list must be put in 'func_run_hooks_result' before returning. +func_hookable func_options_prep +func_options_prep () +{ + $debug_cmd + + # Option defaults: + opt_verbose=false + opt_warning_types= + + func_run_hooks func_options_prep ${1+"$@"} + func_propagate_result func_run_hooks func_options_prep +} + + +# func_parse_options [ARG]... +# --------------------------- +# The main option parsing loop. +func_hookable func_parse_options +func_parse_options () +{ + $debug_cmd + + _G_parse_options_requote=false + # this just eases exit handling + while test $# -gt 0; do + # Defer to hook functions for initial option parsing, so they + # get priority in the event of reusing an option name. + func_run_hooks func_parse_options ${1+"$@"} + func_propagate_result func_run_hooks func_parse_options + if $func_propagate_result_result; then + eval set dummy "$func_parse_options_result"; shift + # Even though we may have changed "$@", we passed the "$@" array + # down into the hook and it quoted it for us (because we are in + # this if-branch). No need to quote it again. + _G_parse_options_requote=false + fi + + # Break out of the loop if we already parsed every option. + test $# -gt 0 || break + + # We expect that one of the options parsed in this function matches + # and thus we remove _G_opt from "$@" and need to re-quote. + _G_match_parse_options=: + _G_opt=$1 + shift + case $_G_opt in + --debug|-x) debug_cmd='set -x' + func_echo "enabling shell trace mode" >&2 + $debug_cmd + ;; + + --no-warnings|--no-warning|--no-warn) + set dummy --warnings none ${1+"$@"} + shift + ;; + + --warnings|--warning|-W) + if test $# = 0 && func_missing_arg $_G_opt; then + _G_parse_options_requote=: + break + fi + case " $warning_categories $1" in + *" $1 "*) + # trailing space prevents matching last $1 above + func_append_uniq opt_warning_types " $1" + ;; + *all) + opt_warning_types=$warning_categories + ;; + *none) + opt_warning_types=none + warning_func=: + ;; + *error) + opt_warning_types=$warning_categories + warning_func=func_fatal_error + ;; + *) + func_fatal_error \ + "unsupported warning category: '$1'" + ;; + esac + shift + ;; + + --verbose|-v) opt_verbose=: ;; + --version) func_version ;; + -\?|-h) func_usage ;; + --help) func_help ;; + + # Separate optargs to long options (plugins may need this): + --*=*) func_split_equals "$_G_opt" + set dummy "$func_split_equals_lhs" \ + "$func_split_equals_rhs" ${1+"$@"} + shift + ;; + + # Separate optargs to short options: + -W*) + func_split_short_opt "$_G_opt" + set dummy "$func_split_short_opt_name" \ + "$func_split_short_opt_arg" ${1+"$@"} + shift + ;; + + # Separate non-argument short options: + -\?*|-h*|-v*|-x*) + func_split_short_opt "$_G_opt" + set dummy "$func_split_short_opt_name" \ + "-$func_split_short_opt_arg" ${1+"$@"} + shift + ;; + + --) _G_parse_options_requote=: ; break ;; + -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; + *) set dummy "$_G_opt" ${1+"$@"}; shift + _G_match_parse_options=false + break + ;; + esac + + if $_G_match_parse_options; then + _G_parse_options_requote=: + fi + done + + if $_G_parse_options_requote; then + # save modified positional parameters for caller + func_quote eval ${1+"$@"} + func_parse_options_result=$func_quote_result + fi +} + + +# func_validate_options [ARG]... +# ------------------------------ +# Perform any sanity checks on option settings and/or unconsumed +# arguments. +func_hookable func_validate_options +func_validate_options () +{ + $debug_cmd + + # Display all warnings if -W was not given. + test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" + + func_run_hooks func_validate_options ${1+"$@"} + func_propagate_result func_run_hooks func_validate_options + + # Bail if the options were screwed! + $exit_cmd $EXIT_FAILURE +} + + + +## ----------------- ## +## Helper functions. ## +## ----------------- ## + +# This section contains the helper functions used by the rest of the +# hookable option parser framework in ascii-betical order. + + +# func_fatal_help ARG... +# ---------------------- +# Echo program name prefixed message to standard error, followed by +# a help hint, and exit. +func_fatal_help () +{ + $debug_cmd + + eval \$ECHO \""Usage: $usage"\" + eval \$ECHO \""$fatal_help"\" + func_error ${1+"$@"} + exit $EXIT_FAILURE +} + + +# func_help +# --------- +# Echo long help message to standard output and exit. +func_help () +{ + $debug_cmd + + func_usage_message + $ECHO "$long_help_message" + exit 0 +} + + +# func_missing_arg ARGNAME +# ------------------------ +# Echo program name prefixed message to standard error and set global +# exit_cmd. +func_missing_arg () +{ + $debug_cmd + + func_error "Missing argument for '$1'." + exit_cmd=exit +} + + +# func_split_equals STRING +# ------------------------ +# Set func_split_equals_lhs and func_split_equals_rhs shell variables +# after splitting STRING at the '=' sign. +test -z "$_G_HAVE_XSI_OPS" \ + && (eval 'x=a/b/c; + test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ + && _G_HAVE_XSI_OPS=yes + +if test yes = "$_G_HAVE_XSI_OPS" +then + # This is an XSI compatible shell, allowing a faster implementation... + eval 'func_split_equals () + { + $debug_cmd + + func_split_equals_lhs=${1%%=*} + func_split_equals_rhs=${1#*=} + if test "x$func_split_equals_lhs" = "x$1"; then + func_split_equals_rhs= + fi + }' +else + # ...otherwise fall back to using expr, which is often a shell builtin. + func_split_equals () + { + $debug_cmd + + func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` + func_split_equals_rhs= + test "x$func_split_equals_lhs=" = "x$1" \ + || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` + } +fi #func_split_equals + + +# func_split_short_opt SHORTOPT +# ----------------------------- +# Set func_split_short_opt_name and func_split_short_opt_arg shell +# variables after splitting SHORTOPT after the 2nd character. +if test yes = "$_G_HAVE_XSI_OPS" +then + # This is an XSI compatible shell, allowing a faster implementation... + eval 'func_split_short_opt () + { + $debug_cmd + + func_split_short_opt_arg=${1#??} + func_split_short_opt_name=${1%"$func_split_short_opt_arg"} + }' +else + # ...otherwise fall back to using expr, which is often a shell builtin. + func_split_short_opt () + { + $debug_cmd + + func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'` + func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` + } +fi #func_split_short_opt + + +# func_usage +# ---------- +# Echo short help message to standard output and exit. +func_usage () +{ + $debug_cmd + + func_usage_message + $ECHO "Run '$progname --help |${PAGER-more}' for full usage" + exit 0 +} + + +# func_usage_message +# ------------------ +# Echo short help message to standard output. +func_usage_message () +{ + $debug_cmd + + eval \$ECHO \""Usage: $usage"\" + echo + $SED -n 's|^# || + /^Written by/{ + x;p;x + } + h + /^Written by/q' < "$progpath" + echo + eval \$ECHO \""$usage_message"\" +} + + +# func_version +# ------------ +# Echo version message to standard output and exit. +# The version message is extracted from the calling file's header +# comments, with leading '# ' stripped: +# 1. First display the progname and version +# 2. Followed by the header comment line matching /^# Written by / +# 3. Then a blank line followed by the first following line matching +# /^# Copyright / +# 4. Immediately followed by any lines between the previous matches, +# except lines preceding the intervening completely blank line. +# For example, see the header comments of this file. +func_version () +{ + $debug_cmd + + printf '%s\n' "$progname $scriptversion" + $SED -n ' + /^# Written by /!b + s|^# ||; p; n + + :fwd2blnk + /./ { + n + b fwd2blnk + } + p; n + + :holdwrnt + s|^# || + s|^# *$|| + /^Copyright /!{ + /./H + n + b holdwrnt + } + + s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| + G + s|\(\n\)\n*|\1|g + p; q' < "$progpath" + + exit $? +} + + +# Local variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC" +# time-stamp-time-zone: "UTC" +# End: + +# Set a version string. +scriptversion='(GNU libtool) 2.5.4' + +# func_version +# ------------ +# Echo version message to standard output and exit. +func_version () +{ + $debug_cmd + + year=`date +%Y` + + cat < +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +Originally written by Gordon Matzigkeit, 1996 +(See AUTHORS for complete contributor listing) +EOF + + exit $? +} + + +# func_echo ARG... +# ---------------- +# Libtool also displays the current mode in messages, so override +# funclib.sh func_echo with this custom definition. +func_echo () +{ + $debug_cmd + + _G_message=$* + + func_echo_IFS=$IFS + IFS=$nl + for _G_line in $_G_message; do + IFS=$func_echo_IFS + $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" + done + IFS=$func_echo_IFS +} + + +## ---------------- ## +## Options parsing. ## +## ---------------- ## + +# Hook in the functions to make sure our own options are parsed during +# the option parsing loop. + +usage='$progpath [OPTION]... [MODE-ARG]...' + +# Short help message in response to '-h'. +usage_message="Options: + --config show all configuration variables + --debug enable verbose shell tracing + -n, --dry-run display commands without modifying any files + --features display basic configuration information + --finish use operation '--mode=finish' + --mode=MODE use operation mode MODE + --no-finish don't update shared library cache + --no-quiet, --no-silent print default informational messages + --no-warnings equivalent to '-Wnone' + --preserve-dup-deps don't remove duplicate dependency libraries + --quiet, --silent don't print informational messages + --reorder-cache=DIRS reorder shared library cache for preferred DIRS + --tag=TAG use configuration variables from tag TAG + -v, --verbose print more informational messages than default + --version print version information + -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] + -h, --help, --help-all print short, long, or detailed help message +" + +# Additional text appended to 'usage_message' in response to '--help'. +func_help () +{ + $debug_cmd + + func_usage_message + $ECHO "$long_help_message + +MODE must be one of the following: + + clean remove files from the build directory + compile compile a source file into a libtool object + execute automatically set library path, then run a program + finish complete the installation of libtool libraries + install install libraries or executables + link create a library or an executable + uninstall remove libraries from an installed directory + +MODE-ARGS vary depending on the MODE. When passed as first option, +'--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. +Try '$progname --help --mode=MODE' for a more detailed description of MODE. + +When reporting a bug, please describe a test case to reproduce it and +include the following information: + + host-triplet: $host + shell: $SHELL + compiler: $LTCC + compiler flags: $LTCFLAGS + linker: $LD (gnu? $with_gnu_ld) + version: $progname $scriptversion + automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` + autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` + +Report bugs to . +GNU libtool home page: . +General help using GNU software: ." + exit 0 +} + + +# func_lo2o OBJECT-NAME +# --------------------- +# Transform OBJECT-NAME from a '.lo' suffix to the platform specific +# object suffix. + +lo2o=s/\\.lo\$/.$objext/ +o2lo=s/\\.$objext\$/.lo/ + +if test yes = "$_G_HAVE_XSI_OPS"; then + eval 'func_lo2o () + { + case $1 in + *.lo) func_lo2o_result=${1%.lo}.$objext ;; + * ) func_lo2o_result=$1 ;; + esac + }' + + # func_xform LIBOBJ-OR-SOURCE + # --------------------------- + # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) + # suffix to a '.lo' libtool-object suffix. + eval 'func_xform () + { + func_xform_result=${1%.*}.lo + }' +else + # ...otherwise fall back to using sed. + func_lo2o () + { + func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` + } + + func_xform () + { + func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` + } +fi + + +# func_fatal_configuration ARG... +# ------------------------------- +# Echo program name prefixed message to standard error, followed by +# a configuration failure hint, and exit. +func_fatal_configuration () +{ + func_fatal_error ${1+"$@"} \ + "See the $PACKAGE documentation for more information." \ + "Fatal configuration error." +} + + +# func_config +# ----------- +# Display the configuration for all the tags in this script. +func_config () +{ + re_begincf='^# ### BEGIN LIBTOOL' + re_endcf='^# ### END LIBTOOL' + + # Default configuration. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" + + # Now print the configurations for the tags. + for tagname in $taglist; do + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" + done + + exit $? +} + + +# func_features +# ------------- +# Display the features supported by this script. +func_features () +{ + echo "host: $host" + if test yes = "$build_libtool_libs"; then + echo "enable shared libraries" + else + echo "disable shared libraries" + fi + if test yes = "$build_old_libs"; then + echo "enable static libraries" + else + echo "disable static libraries" + fi + + exit $? +} + + +# func_enable_tag TAGNAME +# ----------------------- +# Verify that TAGNAME is valid, and either flag an error and exit, or +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist +# variable here. +func_enable_tag () +{ + # Global variable: + tagname=$1 + + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" + sed_extractcf=/$re_begincf/,/$re_endcf/p + + # Validate tagname. + case $tagname in + *[!-_A-Za-z0-9,/]*) + func_fatal_error "invalid tag name: $tagname" + ;; + esac + + # Don't test for the "default" C tag, as we know it's + # there but not specially marked. + case $tagname in + CC) ;; + *) + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then + taglist="$taglist $tagname" + + # Evaluate the configuration. Be careful to quote the path + # and the sed script, to avoid splitting on whitespace, but + # also don't use non-portable quotes within backquotes within + # quotes we have to do it in 2 steps: + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` + eval "$extractedcf" + else + func_error "ignoring unknown tag $tagname" + fi + ;; + esac +} + + +# func_check_version_match +# ------------------------ +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () +{ + if test "$package_revision" != "$macro_revision"; then + if test "$VERSION" != "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + fi + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro_revision. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi + + exit $EXIT_MISMATCH + fi +} + + +# libtool_options_prep [ARG]... +# ----------------------------- +# Preparation for options parsed by libtool. +libtool_options_prep () +{ + $debug_mode + + # Option defaults: + opt_config=false + opt_dlopen= + opt_dry_run=false + opt_help=false + opt_mode= + opt_reorder_cache=false + opt_preserve_dup_deps=false + opt_quiet=false + opt_finishing=true + opt_warning= + + nonopt= + preserve_args= + + _G_rc_lt_options_prep=: + + # Shorthand for --mode=foo, only valid as the first argument + case $1 in + clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; + compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; + execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; + finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; + install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; + link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; + *) + _G_rc_lt_options_prep=false + ;; + esac + + if $_G_rc_lt_options_prep; then + # Pass back the list of options. + func_quote eval ${1+"$@"} + libtool_options_prep_result=$func_quote_result + fi +} +func_add_hook func_options_prep libtool_options_prep + + +# libtool_parse_options [ARG]... +# --------------------------------- +# Provide handling for libtool specific options. +libtool_parse_options () +{ + $debug_cmd + + _G_rc_lt_parse_options=false + + # Perform our own loop to consume as many options as possible in + # each iteration. + while test $# -gt 0; do + _G_match_lt_parse_options=: + _G_opt=$1 + shift + case $_G_opt in + --dry-run|--dryrun|-n) + opt_dry_run=: + ;; + + --config) func_config ;; + + --dlopen|-dlopen) + opt_dlopen="${opt_dlopen+$opt_dlopen +}$1" + shift + ;; + + --preserve-dup-deps) + opt_preserve_dup_deps=: ;; + + --features) func_features ;; + + --finish) set dummy --mode finish ${1+"$@"}; shift ;; + + --help) opt_help=: ;; + + --help-all) opt_help=': help-all' ;; + + --mode) test $# = 0 && func_missing_arg $_G_opt && break + opt_mode=$1 + case $1 in + # Valid mode arguments: + clean|compile|execute|finish|install|link|relink|uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument '$1' for $_G_opt" + exit_cmd=exit + ;; + esac + shift + ;; + + --no-finish) + opt_finishing=false + func_append preserve_args " $_G_opt" + ;; + + --no-silent|--no-quiet) + opt_quiet=false + func_append preserve_args " $_G_opt" + ;; + + --no-warnings|--no-warning|--no-warn) + opt_warning=false + func_append preserve_args " $_G_opt" + ;; + + --no-verbose) + opt_verbose=false + func_append preserve_args " $_G_opt" + ;; + + --reorder-cache) + opt_reorder_cache=true + shared_lib_dirs=$1 + if test -n "$shared_lib_dirs"; then + case $1 in + # Must begin with /: + /*) ;; + + # Catch anything else as an error (relative paths) + *) func_error "invalid argument '$1' for $_G_opt" + func_error "absolute paths are required for $_G_opt" + exit_cmd=exit + ;; + esac + fi + shift + ;; + + --silent|--quiet) + opt_quiet=: + opt_verbose=false + func_append preserve_args " $_G_opt" + ;; + + --tag) test $# = 0 && func_missing_arg $_G_opt && break + opt_tag=$1 + func_append preserve_args " $_G_opt $1" + func_enable_tag "$1" + shift + ;; + + --verbose|-v) opt_quiet=false + opt_verbose=: + func_append preserve_args " $_G_opt" + ;; + + # An option not handled by this hook function: + *) set dummy "$_G_opt" ${1+"$@"} ; shift + _G_match_lt_parse_options=false + break + ;; + esac + $_G_match_lt_parse_options && _G_rc_lt_parse_options=: + done + + if $_G_rc_lt_parse_options; then + # save modified positional parameters for caller + func_quote eval ${1+"$@"} + libtool_parse_options_result=$func_quote_result + fi +} +func_add_hook func_parse_options libtool_parse_options + + +# func_warning ARG... +# ------------------- +# Libtool warnings are not categorized, so override funclib.sh +# func_warning with this simpler definition. +func_warning () +{ + if $opt_warning; then + $debug_cmd + $warning_func ${1+"$@"} + fi +} + + +# libtool_validate_options [ARG]... +# --------------------------------- +# Perform any sanity checks on option settings and/or unconsumed +# arguments. +libtool_validate_options () +{ + # save first non-option argument + if test 0 -lt $#; then + nonopt=$1 + shift + fi + + # preserve --debug + test : = "$debug_cmd" || func_append preserve_args " --debug" + + case $host_os in + # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 + # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 + cygwin* | mingw* | windows* | pw32* | cegcc* | solaris2* | os2*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; + *) + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps + ;; + esac + + $opt_help || { + # Sanity checks first: + func_check_version_match + + test yes != "$build_libtool_libs" \ + && test yes != "$build_old_libs" \ + && func_fatal_configuration "not configured to build any kind of library" + + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$opt_dlopen" && test execute != "$opt_mode"; then + func_error "unrecognized option '-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help=$help + help="Try '$progname --help --mode=$opt_mode' for more information." + } + + # Pass back the unparsed argument list + func_quote eval ${1+"$@"} + libtool_validate_options_result=$func_quote_result +} +func_add_hook func_validate_options libtool_validate_options + + +# Process options as early as possible so that --help and --version +# can return quickly. +func_options ${1+"$@"} +eval set dummy "$func_options_result"; shift + + + +## ----------- ## +## Main. ## +## ----------- ## + +magic='%%%MAGIC variable%%%' +magic_exe='%%%MAGIC EXE variable%%%' + +# Global variables. +extracted_archives= +extracted_serial=0 + +# If this variable is set in any of the actions, the command in it +# will be execed at the end. This prevents here-documents from being +# left over by shells. +exec_cmd= + + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' +} + +# func_generated_by_libtool +# True iff stdin has been generated by Libtool. This function is only +# a basic sanity check; it will hardly flush out determined imposters. +func_generated_by_libtool_p () +{ + $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 +} + +# func_lalib_p file +# True iff FILE is a libtool '.la' library or '.lo' object file. +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_lalib_p () +{ + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p +} + +# func_lalib_unsafe_p file +# True iff FILE is a libtool '.la' library or '.lo' object file. +# This function implements the same check as func_lalib_p without +# resorting to external programs. To this end, it redirects stdin and +# closes it afterwards, without saving the original file descriptor. +# As a safety measure, use it only where a negative result would be +# fatal anyway. Works if 'file' does not exist. +func_lalib_unsafe_p () +{ + lalib_p=no + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then + for lalib_p_l in 1 2 3 4 + do + read lalib_p_line + case $lalib_p_line in + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; + esac + done + exec 0<&5 5<&- + fi + test yes = "$lalib_p" +} + +# func_ltwrapper_script_p file +# True iff FILE is a libtool wrapper script +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_script_p () +{ + test -f "$1" && + $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p +} + +# func_ltwrapper_executable_p file +# True iff FILE is a libtool wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_executable_p () +{ + func_ltwrapper_exec_suffix= + case $1 in + *.exe) ;; + *) func_ltwrapper_exec_suffix=.exe ;; + esac + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 +} + +# func_ltwrapper_scriptname file +# Assumes file is an ltwrapper_executable +# uses $file to determine the appropriate filename for a +# temporary ltwrapper_script. +func_ltwrapper_scriptname () +{ + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper +} + +# func_ltwrapper_p file +# True iff FILE is a libtool wrapper script or wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_p () +{ + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" +} + + +# func_execute_cmds commands fail_cmd +# Execute tilde-delimited COMMANDS. +# If FAIL_CMD is given, eval that upon failure. +# FAIL_CMD may read-access the current command in variable CMD! +func_execute_cmds () +{ + $debug_cmd + + save_ifs=$IFS; IFS='~' + for cmd in $1; do + IFS=$sp$nl + eval cmd=\"$cmd\" + IFS=$save_ifs + func_show_eval "$cmd" "${2-:}" + done + IFS=$save_ifs +} + + +# func_source file +# Source FILE, adding directory component if necessary. +# Note that it is not necessary on cygwin/mingw to append a dot to +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe +# behavior happens only for exec(3), not for open(2)! Also, sourcing +# 'FILE.' does not work on cygwin managed mounts. +func_source () +{ + $debug_cmd + + case $1 in + */* | *\\*) . "$1" ;; + *) . "./$1" ;; + esac +} + + +# func_resolve_sysroot PATH +# Replace a leading = in PATH with a sysroot. Store the result into +# func_resolve_sysroot_result +func_resolve_sysroot () +{ + func_resolve_sysroot_result=$1 + case $func_resolve_sysroot_result in + =*) + func_stripname '=' '' "$func_resolve_sysroot_result" + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result + ;; + esac +} + +# func_replace_sysroot PATH +# If PATH begins with the sysroot, replace it with = and +# store the result into func_replace_sysroot_result. +func_replace_sysroot () +{ + case $lt_sysroot:$1 in + ?*:"$lt_sysroot"*) + func_stripname "$lt_sysroot" '' "$1" + func_replace_sysroot_result='='$func_stripname_result + ;; + *) + # Including no sysroot. + func_replace_sysroot_result=$1 + ;; + esac +} + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + $debug_cmd + + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + func_append_quoted CC_quoted "$arg" + done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + func_append_quoted CC_quoted "$arg" + done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` + case "$@ " in + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + func_echo "unable to infer tagged configuration" + func_fatal_error "specify a tag with '--tag'" +# else +# func_verbose "using $tagname tagged configuration" + fi + ;; + esac + fi +} + + + +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=$1 + if test yes = "$build_libtool_libs"; then + write_lobj=\'$2\' + else + write_lobj=none + fi + + if test yes = "$build_old_libs"; then + write_oldobj=\'$3\' + else + write_oldobj=none + fi + + $opt_dry_run || { + cat >${write_libobj}T </dev/null` + if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | + $SED -e "$sed_naive_backslashify"` + else + func_convert_core_file_wine_to_w32_result= + fi + fi +} +# end: func_convert_core_file_wine_to_w32 + + +# func_convert_core_path_wine_to_w32 ARG +# Helper function used by path conversion functions when $build is *nix, and +# $host is mingw, windows, cygwin, or some other w32 environment. Relies on a +# correctly configured wine environment available, with the winepath program +# in $build's $PATH. Assumes ARG has no leading or trailing path separator +# characters. +# +# ARG is path to be converted from $build format to win32. +# Result is available in $func_convert_core_path_wine_to_w32_result. +# Unconvertible file (directory) names in ARG are skipped; if no directory names +# are convertible, then the result may be empty. +func_convert_core_path_wine_to_w32 () +{ + $debug_cmd + + # unfortunately, winepath doesn't convert paths, only file names + func_convert_core_path_wine_to_w32_result= + if test -n "$1"; then + oldIFS=$IFS + IFS=: + for func_convert_core_path_wine_to_w32_f in $1; do + IFS=$oldIFS + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" + if test -n "$func_convert_core_file_wine_to_w32_result"; then + if test -z "$func_convert_core_path_wine_to_w32_result"; then + func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result + else + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" + fi + fi + done + IFS=$oldIFS + fi +} +# end: func_convert_core_path_wine_to_w32 + + +# func_cygpath ARGS... +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or +# (2), returns the Cygwin file name or path in func_cygpath_result (input +# file name or path is assumed to be in w32 format, as previously converted +# from $build's *nix or MSYS format). In case (3), returns the w32 file name +# or path in func_cygpath_result (input file name or path is assumed to be in +# Cygwin format). Returns an empty string on error. +# +# ARGS are passed to cygpath, with the last one being the file name or path to +# be converted. +# +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH +# environment variable; do not put it in $PATH. +func_cygpath () +{ + $debug_cmd + + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` + if test "$?" -ne 0; then + # on failure, ensure result is empty + func_cygpath_result= + fi + else + func_cygpath_result= + func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" + fi +} +#end: func_cygpath + + +# func_convert_core_msys_to_w32 ARG +# Convert file name or path ARG from MSYS format to w32 format. Return +# result in func_convert_core_msys_to_w32_result. +func_convert_core_msys_to_w32 () +{ + $debug_cmd + + # awkward: cmd appends spaces to result + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` +} +#end: func_convert_core_msys_to_w32 + + +# func_convert_file_check ARG1 ARG2 +# Verify that ARG1 (a file name in $build format) was converted to $host +# format in ARG2. Otherwise, emit an error message, but continue (resetting +# func_to_host_file_result to ARG1). +func_convert_file_check () +{ + $debug_cmd + + if test -z "$2" && test -n "$1"; then + func_error "Could not determine host file name corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_file_result=$1 + fi +} +# end func_convert_file_check + + +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH +# Verify that FROM_PATH (a path in $build format) was converted to $host +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting +# func_to_host_file_result to a simplistic fallback value (see below). +func_convert_path_check () +{ + $debug_cmd + + if test -z "$4" && test -n "$3"; then + func_error "Could not determine the host path corresponding to" + func_error " '$3'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This is a deliberately simplistic "conversion" and + # should not be "improved". See libtool.info. + if test "x$1" != "x$2"; then + lt_replace_pathsep_chars="s|$1|$2|g" + func_to_host_path_result=`echo "$3" | + $SED -e "$lt_replace_pathsep_chars"` + else + func_to_host_path_result=$3 + fi + fi +} +# end func_convert_path_check + + +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT +# and appending REPL if ORIG matches BACKPAT. +func_convert_path_front_back_pathsep () +{ + $debug_cmd + + case $4 in + $1 ) func_to_host_path_result=$3$func_to_host_path_result + ;; + esac + case $4 in + $2 ) func_append func_to_host_path_result "$3" + ;; + esac +} +# end func_convert_path_front_back_pathsep + + +# func_convert_delimited_path PATH ORIG_DELIMITER NEW_DELIMITER +# Replaces a delimiter for a given path. +func_convert_delimited_path () +{ + converted_path=`$ECHO "$1" | $SED "s#$2#$3#g"` +} +# end func_convert_delimited_path + + +################################################## +# $build to $host FILE NAME CONVERSION FUNCTIONS # +################################################## +# invoked via '$to_host_file_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# Result will be available in $func_to_host_file_result. + + +# func_to_host_file ARG +# Converts the file name ARG from $build format to $host format. Return result +# in func_to_host_file_result. +func_to_host_file () +{ + $debug_cmd + + $to_host_file_cmd "$1" +} +# end func_to_host_file + + +# func_to_tool_file ARG LAZY +# converts the file name ARG from $build format to toolchain format. Return +# result in func_to_tool_file_result. If the conversion in use is listed +# in (the comma separated) LAZY, no conversion takes place. +func_to_tool_file () +{ + $debug_cmd + + case ,$2, in + *,"$to_tool_file_cmd",*) + func_to_tool_file_result=$1 + ;; + *) + $to_tool_file_cmd "$1" + func_to_tool_file_result=$func_to_host_file_result + ;; + esac +} +# end func_to_tool_file + + +# func_convert_file_noop ARG +# Copy ARG to func_to_host_file_result. +func_convert_file_noop () +{ + func_to_host_file_result=$1 +} +# end func_convert_file_noop + + +# func_convert_file_msys_to_w32 ARG +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_file_result. +func_convert_file_msys_to_w32 () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_to_host_file_result=$func_convert_core_msys_to_w32_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_w32 + + +# func_convert_file_cygwin_to_w32 ARG +# Convert file name ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_file_cygwin_to_w32 () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use + # LT_CYGPATH in this case. + func_to_host_file_result=`cygpath -m "$1"` + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_cygwin_to_w32 + + +# func_convert_file_nix_to_w32 ARG +# Convert file name ARG from *nix to w32 format. Requires a wine environment +# and a working winepath. Returns result in func_to_host_file_result. +func_convert_file_nix_to_w32 () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + func_convert_core_file_wine_to_w32 "$1" + func_to_host_file_result=$func_convert_core_file_wine_to_w32_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_w32 + + +# func_convert_file_msys_to_cygwin ARG +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_file_msys_to_cygwin () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_cygpath -u "$func_convert_core_msys_to_w32_result" + func_to_host_file_result=$func_cygpath_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_cygwin + + +# func_convert_file_nix_to_cygwin ARG +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result +# in func_to_host_file_result. +func_convert_file_nix_to_cygwin () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. + func_convert_core_file_wine_to_w32 "$1" + func_cygpath -u "$func_convert_core_file_wine_to_w32_result" + func_to_host_file_result=$func_cygpath_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_cygwin + + +############################################# +# $build to $host PATH CONVERSION FUNCTIONS # +############################################# +# invoked via '$to_host_path_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# The result will be available in $func_to_host_path_result. +# +# Path separators are also converted from $build format to $host format. If +# ARG begins or ends with a path separator character, it is preserved (but +# converted to $host format) on output. +# +# All path conversion functions are named using the following convention: +# file name conversion function : func_convert_file_X_to_Y () +# path conversion function : func_convert_path_X_to_Y () +# where, for any given $build/$host combination the 'X_to_Y' value is the +# same. If conversion functions are added for new $build/$host combinations, +# the two new functions must follow this pattern, or func_init_to_host_path_cmd +# will break. + + +# func_init_to_host_path_cmd +# Ensures that function "pointer" variable $to_host_path_cmd is set to the +# appropriate value, based on the value of $to_host_file_cmd. +to_host_path_cmd= +func_init_to_host_path_cmd () +{ + $debug_cmd + + if test -z "$to_host_path_cmd"; then + func_stripname 'func_convert_file_' '' "$to_host_file_cmd" + to_host_path_cmd=func_convert_path_$func_stripname_result + fi +} + + +# func_to_host_path ARG +# Converts the path ARG from $build format to $host format. Return result +# in func_to_host_path_result. +func_to_host_path () +{ + $debug_cmd + + func_init_to_host_path_cmd + $to_host_path_cmd "$1" +} +# end func_to_host_path + + +# func_convert_path_noop ARG +# Copy ARG to func_to_host_path_result. +func_convert_path_noop () +{ + func_to_host_path_result=$1 +} +# end func_convert_path_noop + + +# func_convert_path_msys_to_w32 ARG +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_path_result. +func_convert_path_msys_to_w32 () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # Remove leading and trailing path separator characters from ARG. MSYS + # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; + # and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result=$func_convert_core_msys_to_w32_result + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_msys_to_w32 + + +# func_convert_path_cygwin_to_w32 ARG +# Convert path ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_path_cygwin_to_w32 () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_cygwin_to_w32 + + +# func_convert_path_nix_to_w32 ARG +# Convert path ARG from *nix to w32 format. Requires a wine environment and +# a working winepath. Returns result in func_to_host_file_result. +func_convert_path_nix_to_w32 () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result=$func_convert_core_path_wine_to_w32_result + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_nix_to_w32 + + +# func_convert_path_msys_to_cygwin ARG +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_path_msys_to_cygwin () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_msys_to_w32_result" + func_to_host_path_result=$func_cygpath_result + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_msys_to_cygwin + + +# func_convert_path_nix_to_cygwin ARG +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in +# func_to_host_file_result. +func_convert_path_nix_to_cygwin () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" + func_to_host_path_result=$func_cygpath_result + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_nix_to_cygwin + + +# func_dll_def_p FILE +# True iff FILE is a Windows DLL '.def' file. +# Keep in sync with _LT_DLL_DEF_P in libtool.m4 +func_dll_def_p () +{ + $debug_cmd + + func_dll_def_p_tmp=`$SED -n \ + -e 's/^[ ]*//' \ + -e '/^\(;.*\)*$/d' \ + -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ + -e q \ + "$1"` + test DEF = "$func_dll_def_p_tmp" +} + + +# func_reorder_shared_lib_cache DIRS +# Reorder the shared library cache by unconfiguring previous shared library cache +# and configuring preferred search directories before previous search directories. +# Previous shared library cache: /usr/lib /usr/local/lib +# Preferred search directories: /tmp/testing +# Reordered shared library cache: /tmp/testing /usr/lib /usr/local/lib +func_reorder_shared_lib_cache () +{ + $debug_cmd + + case $host_os in + openbsd*) + get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*search directories:\ ##g"` + func_convert_delimited_path "$get_search_directories" ':' '\ ' + save_search_directories=$converted_path + func_convert_delimited_path "$1" ':' '\ ' + + # Ensure directories exist + for dir in $converted_path; do + # Ensure each directory is an absolute path + case $dir in + /*) ;; + *) func_error "Directory '$dir' is not an absolute path" + exit $EXIT_FAILURE ;; + esac + # Ensure no trailing slashes + func_stripname '' '/' "$dir" + dir=$func_stripname_result + if test -d "$dir"; then + if test -n "$preferred_search_directories"; then + preferred_search_directories="$preferred_search_directories $dir" + else + preferred_search_directories=$dir + fi + else + func_error "Directory '$dir' does not exist" + exit $EXIT_FAILURE + fi + done + + PATH="$PATH:/sbin" ldconfig -U $save_search_directories + PATH="$PATH:/sbin" ldconfig -m $preferred_search_directories $save_search_directories + get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*search directories:\ ##g"` + func_convert_delimited_path "$get_search_directories" ':' '\ ' + reordered_search_directories=$converted_path + + $ECHO "Original: $save_search_directories" + $ECHO "Reordered: $reordered_search_directories" + exit $EXIT_SUCCESS + ;; + *) + func_error "--reorder-cache is not supported for host_os=$host_os." + exit $EXIT_FAILURE + ;; + esac +} +# end func_reorder_shared_lib_cache + + +# func_mode_compile arg... +func_mode_compile () +{ + $debug_cmd + + # Get the compilation command and the source file. + base_compile= + srcfile=$nonopt # always keep a non-empty value in "srcfile" + suppress_opt=yes + suppress_output= + arg_mode=normal + libobj= + later= + pie_flag= + + for arg + do + case $arg_mode in + arg ) + # do not "continue". Instead, add this to base_compile + lastarg=$arg + arg_mode=normal + ;; + + target ) + libobj=$arg + arg_mode=normal + continue + ;; + + normal ) + # Accept any command-line options. + case $arg in + -o) + test -n "$libobj" && \ + func_fatal_error "you cannot specify '-o' more than once" + arg_mode=target + continue + ;; + + -pie | -fpie | -fPIE) + func_append pie_flag " $arg" + continue + ;; + + -shared | -static | -prefer-pic | -prefer-non-pic) + func_append later " $arg" + continue + ;; + + -no-suppress) + suppress_opt=no + continue + ;; + + -Xcompiler) + arg_mode=arg # the next one goes into the "base_compile" arg list + continue # The current "srcfile" will either be retained or + ;; # replaced later. I would guess that would be a bug. + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + lastarg= + save_ifs=$IFS; IFS=, + for arg in $args; do + IFS=$save_ifs + func_append_quoted lastarg "$arg" + done + IFS=$save_ifs + func_stripname ' ' '' "$lastarg" + lastarg=$func_stripname_result + + # Add the arguments to base_compile. + func_append base_compile " $lastarg" + continue + ;; + + *) + # Accept the current argument as the source file. + # The previous "srcfile" becomes the current argument. + # + lastarg=$srcfile + srcfile=$arg + ;; + esac # case $arg + ;; + esac # case $arg_mode + + # Aesthetically quote the previous argument. + func_append_quoted base_compile "$lastarg" + done # for arg + + case $arg_mode in + arg) + func_fatal_error "you must specify an argument for -Xcompile" + ;; + target) + func_fatal_error "you must specify a target with '-o'" + ;; + *) + # Get the name of the library object. + test -z "$libobj" && { + func_basename "$srcfile" + libobj=$func_basename_result + } + ;; + esac + + # Recognize several different file suffixes. + # If the user specifies -o file.o, it is replaced with file.lo + case $libobj in + *.[cCFSifmso] | \ + *.ada | *.adb | *.ads | *.asm | \ + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ + *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) + func_xform "$libobj" + libobj=$func_xform_result + ;; + esac + + case $libobj in + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; + *) + func_fatal_error "cannot determine name of library object from '$libobj'" + ;; + esac + + func_infer_tag $base_compile + + for arg in $later; do + case $arg in + -shared) + test yes = "$build_libtool_libs" \ + || func_fatal_configuration "cannot build a shared library" + build_old_libs=no + continue + ;; + + -static) + build_libtool_libs=no + build_old_libs=yes + continue + ;; + + -prefer-pic) + pic_mode=yes + continue + ;; + + -prefer-non-pic) + pic_mode=no + continue + ;; + esac + done + + func_quote_arg pretty "$libobj" + test "X$libobj" != "X$func_quote_arg_result" \ + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ + && func_warning "libobj name '$libobj' may not contain shell special characters." + func_dirname_and_basename "$obj" "/" "" + objname=$func_basename_result + xdir=$func_dirname_result + lobj=$xdir$objdir/$objname + + test -z "$base_compile" && \ + func_fatal_help "you must specify a compilation command" + + # Delete any leftover library objects. + if test yes = "$build_old_libs"; then + removelist="$obj $lobj $libobj ${libobj}T" + else + removelist="$lobj $libobj ${libobj}T" + fi + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | windows* | pw32* | os2* | cegcc*) + pic_mode=default + ;; + esac + if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test no = "$compiler_c_o"; then + output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext + lockfile=$output_obj.lock + else + output_obj= + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test yes = "$need_locks"; then + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + elif test warn = "$need_locks"; then + if test -f "$lockfile"; then + $ECHO "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support '-c' and '-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + func_append removelist " $output_obj" + $ECHO "$srcfile" > "$lockfile" + fi + + $opt_dry_run || $RM $removelist + func_append removelist " $lockfile" + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 + srcfile=$func_to_tool_file_result + func_quote_arg pretty "$srcfile" + qsrcfile=$func_quote_arg_result + + # Only build a PIC object if we are building libtool libraries. + if test yes = "$build_libtool_libs"; then + # Without this assignment, base_compile gets emptied. + fbsd_hideous_sh_bug=$base_compile + + if test no != "$pic_mode"; then + command="$base_compile $qsrcfile $pic_flag" + else + # Don't build PIC code + command="$base_compile $qsrcfile" + fi + + func_mkdir_p "$xdir$objdir" + + if test -z "$output_obj"; then + # Place PIC objects in $objdir + func_append command " -o $lobj" + fi + + func_show_eval_locale "$command" \ + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + + if test warn = "$need_locks" && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support '-c' and '-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next one + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + func_show_eval '$MV "$output_obj" "$lobj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + + # Allow error messages only from the first compilation. + if test yes = "$suppress_opt"; then + suppress_output=' >/dev/null 2>&1' + fi + fi + + # Only build a position-dependent object if we build old libraries. + if test yes = "$build_old_libs"; then + if test yes != "$pic_mode"; then + # Don't build PIC code + command="$base_compile $qsrcfile$pie_flag" + else + command="$base_compile $qsrcfile $pic_flag" + fi + if test yes = "$compiler_c_o"; then + func_append command " -o $obj" + fi + + # Suppress compiler output if we already did a PIC compilation. + func_append command "$suppress_output" + func_show_eval_locale "$command" \ + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + + if test warn = "$need_locks" && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support '-c' and '-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then + func_show_eval '$MV "$output_obj" "$obj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + fi + + $opt_dry_run || { + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" + + # Unlock the critical section if it was locked + if test no != "$need_locks"; then + removelist=$lockfile + $RM "$lockfile" + fi + } + + exit $EXIT_SUCCESS +} + +$opt_help || { + test compile = "$opt_mode" && func_mode_compile ${1+"$@"} +} + +func_mode_help () +{ + # We need to display help for each of the modes. + case $opt_mode in + "") + # Generic help is extracted from the usage comments + # at the start of this file. + func_help + ;; + + clean) + $ECHO \ +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + + compile) + $ECHO \ +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -no-suppress do not suppress compiler output for multiple passes + -prefer-pic try to build PIC objects only + -prefer-non-pic try to build non-PIC objects only + -shared do not build a '.o' file suitable for static linking + -static only build a '.o' file suitable for static linking + -Wc,FLAG + -Xcompiler FLAG pass FLAG directly to the compiler + +COMPILE-COMMAND is a command to be used in creating a 'standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix '.c' with the +library object suffix, '.lo'." + ;; + + execute) + $ECHO \ +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to '-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + + finish) + $ECHO \ +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the '--dry-run' option if you just want to see what would be executed." + ;; + + install) + $ECHO \ +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the 'install' or 'cp' program. + +The following components of INSTALL-COMMAND are treated specially: + + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + + link) + $ECHO \ +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -bindir BINDIR specify path to binaries directory (for systems where + libraries must be found in the PATH setting at runtime) + -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE use a list of object files found in FILE to specify objects + -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -shared only do dynamic linking of libtool libraries + -shrext SUFFIX override the standard shared library file extension + -static do not do any dynamic linking of uninstalled libtool libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + -weak LIBNAME declare that the target provides the LIBNAME interface + -Wc,FLAG + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler + -Wa,FLAG + -Xassembler FLAG pass linker-specific FLAG directly to the assembler + -Wl,FLAG + -Xlinker FLAG pass linker-specific FLAG directly to the linker + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) + +All other options (arguments beginning with '-') are ignored. + +Every other argument is treated as a filename. Files ending in '.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in '.la', then a libtool library is created, +only library objects ('.lo' files) may be specified, and '-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created +using 'ar' and 'ranlib', or on Windows using 'lib'. + +If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file +is created, otherwise an executable program is created." + ;; + + uninstall) + $ECHO \ +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + + *) + func_fatal_help "invalid operation mode '$opt_mode'" + ;; + esac + + echo + $ECHO "Try '$progname --help' for more information about other modes." +} + +# Now that we've collected a possible --mode arg, show help if necessary +if $opt_help; then + if test : = "$opt_help"; then + func_mode_help + else + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + func_mode_help + done + } | $SED -n '1p; 2,$s/^Usage:/ or: /p' + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + echo + func_mode_help + done + } | + $SED '1d + /^When reporting/,/^Report/{ + H + d + } + $x + /information about other modes/d + /more detailed .*MODE/d + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' + fi + exit $? +fi + + +# If option '--reorder-cache', reorder the shared library cache and exit. +if $opt_reorder_cache; then + func_reorder_shared_lib_cache $shared_lib_dirs +fi + + +# func_mode_execute arg... +func_mode_execute () +{ + $debug_cmd + + # The first argument is the command name. + cmd=$nonopt + test -z "$cmd" && \ + func_fatal_help "you must specify a COMMAND" + + # Handle -dlopen flags immediately. + for file in $opt_dlopen; do + test -f "$file" \ + || func_fatal_help "'$file' is not a file" + + dir= + case $file in + *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "'$lib' is not a valid libtool archive" + + # Read the libtool library. + dlname= + library_names= + func_source "$file" + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && \ + func_warning "'$file' was not linked with '-export-dynamic'" + continue + fi + + func_dirname "$file" "" "." + dir=$func_dirname_result + + if test -f "$dir/$objdir/$dlname"; then + func_append dir "/$objdir" + else + if test ! -f "$dir/$dlname"; then + func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" + fi + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + func_dirname "$file" "" "." + dir=$func_dirname_result + ;; + + *) + func_warning "'-dlopen' is ignored for non-libtool libraries and objects" + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir=$absdir + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic=$magic + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -* | *.la | *.lo ) ;; + *) + # Do a test to see if this is really a libtool program. + if func_ltwrapper_script_p "$file"; then + func_source "$file" + # Transform arg to wrapped name. + file=$progdir/$program + elif func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + func_source "$func_ltwrapper_scriptname_result" + # Transform arg to wrapped name. + file=$progdir/$program + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + func_append_quoted args "$file" + done + + if $opt_dry_run; then + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" + echo "export $shlibpath_var" + fi + $ECHO "$cmd$args" + exit $EXIT_SUCCESS + else + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" = set; then + $lt_var=\$save_$lt_var; export $lt_var + else + $lt_unset $lt_var + fi" + done + + # Now prepare to actually exec the command. + exec_cmd=\$cmd$args + fi +} + +test execute = "$opt_mode" && func_mode_execute ${1+"$@"} + + +# func_mode_finish arg... +func_mode_finish () +{ + $debug_cmd + + libs= + libdirs= + admincmds= + + for opt in "$nonopt" ${1+"$@"} + do + if test -d "$opt"; then + func_append libdirs " $opt" + + elif test -f "$opt"; then + if func_lalib_unsafe_p "$opt"; then + func_append libs " $opt" + else + func_warning "'$opt' is not a valid libtool archive" + fi + + else + func_fatal_error "invalid argument '$opt'" + fi + done + + if test -n "$libs"; then + if test -n "$lt_sysroot"; then + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" + else + sysroot_cmd= + fi + + # Remove sysroot references + if $opt_dry_run; then + for lib in $libs; do + echo "removing references to $lt_sysroot and '=' prefixes from $lib" + done + else + tmpdir=`func_mktempdir` + for lib in $libs; do + $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ + > $tmpdir/tmp-la + mv -f $tmpdir/tmp-la $lib + done + ${RM}r "$tmpdir" + fi + fi + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs" && $opt_finishing; then + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds +'"$cmd"'"' + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $opt_dry_run || eval "$cmds" || func_append admincmds " + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + $opt_quiet && exit $EXIT_SUCCESS + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + echo "----------------------------------------------------------------------" + echo "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + if test "false" = "$opt_finishing"; then + echo + echo "NOTE: finish_cmds were not executed during testing, so you must" + echo "manually run ldconfig to add a given test directory, LIBDIR, to" + echo "the search path for generated executables." + fi + echo + echo "If you ever happen to want to link against installed libraries" + echo "in a given directory, LIBDIR, you must either use libtool, and" + echo "specify the full pathname of the library, or use the '-LLIBDIR'" + echo "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + echo " - add LIBDIR to the '$shlibpath_var' environment variable" + echo " during execution" + fi + if test -n "$runpath_var"; then + echo " - add LIBDIR to the '$runpath_var' environment variable" + echo " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + $ECHO " - use the '$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" + fi + echo + + echo "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" + echo "pages." + ;; + *) + echo "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + echo "----------------------------------------------------------------------" + fi + exit $EXIT_SUCCESS +} + +test finish = "$opt_mode" && func_mode_finish ${1+"$@"} + + +# func_mode_install arg... +func_mode_install () +{ + $debug_cmd + + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || + # Allow the use of GNU shtool's install command. + case $nonopt in *shtool*) :;; *) false;; esac + then + # Aesthetically quote it. + func_quote_arg pretty "$nonopt" + install_prog="$func_quote_arg_result " + arg=$1 + shift + else + install_prog= + arg=$nonopt + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + func_quote_arg pretty "$arg" + func_append install_prog "$func_quote_arg_result" + install_shared_prog=$install_prog + case " $install_prog " in + *[\\\ /]cp\ *) install_cp=: ;; + *) install_cp=false ;; + esac + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=false + stripme= + no_mode=: + for arg + do + arg2= + if test -n "$dest"; then + func_append files " $dest" + dest=$arg + continue + fi + + case $arg in + -d) isdir=: ;; + -f) + if $install_cp; then :; else + prev=$arg + fi + ;; + -g | -m | -o) + prev=$arg + ;; + -s) + stripme=" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + if test X-m = "X$prev" && test -n "$install_override_mode"; then + arg2=$install_override_mode + no_mode=false + fi + prev= + else + dest=$arg + continue + fi + ;; + esac + + # Aesthetically quote the argument. + func_quote_arg pretty "$arg" + func_append install_prog " $func_quote_arg_result" + if test -n "$arg2"; then + func_quote_arg pretty "$arg2" + fi + func_append install_shared_prog " $func_quote_arg_result" + done + + test -z "$install_prog" && \ + func_fatal_help "you must specify an install program" + + test -n "$prev" && \ + func_fatal_help "the '$prev' option requires an argument" + + if test -n "$install_override_mode" && $no_mode; then + if $install_cp; then :; else + func_quote_arg pretty "$install_override_mode" + func_append install_shared_prog " -m $func_quote_arg_result" + fi + fi + + if test -z "$files"; then + if test -z "$dest"; then + func_fatal_help "no file or destination specified" + else + func_fatal_help "you must specify a destination" + fi + fi + + # Strip any trailing slash from the destination. + func_stripname '' '/' "$dest" + dest=$func_stripname_result + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=: + if $isdir; then + destdir=$dest + destname= + else + func_dirname_and_basename "$dest" "" "." + destdir=$func_dirname_result + destname=$func_basename_result + + # Not a directory, so check to see that there is only one file specified. + set dummy $files; shift + test "$#" -gt 1 && \ + func_fatal_help "'$dest' is not a directory" + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + func_fatal_help "'$destdir' must be an absolute directory name" + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic=$magic + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + func_append staticlibs " $file" + ;; + + *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "'$file' is not a valid libtool archive" + + library_names= + old_library= + relink_command= + func_source "$file" + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) func_append current_libdirs " $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) func_append future_libdirs " $libdir" ;; + esac + fi + + func_dirname "$file" "/" "" + dir=$func_dirname_result + func_append dir "$objdir" + + if test -n "$relink_command"; then + # Strip any trailing slash from the destination. + func_stripname '' '/' "$libdir" + destlibdir=$func_stripname_result + + func_stripname '' '/' "$destdir" + s_destdir=$func_stripname_result + + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + test "$inst_prefix_dir" = "$destdir" && \ + func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` + fi + + func_warning "relinking '$file'" + func_show_eval "$relink_command" \ + 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' + fi + + # See the names of the shared library. + set dummy $library_names; shift + if test -n "$1"; then + realname=$1 + shift + + srcname=$realname + test -n "$relink_command" && srcname=${realname}T + + # Install the shared library and build the symlinks. + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ + 'exit $?' + tstripme=$stripme + case $host_os in + cygwin* | mingw* | windows* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme= + ;; + esac + ;; + os2*) + case $realname in + *_dll.a) + tstripme= + ;; + esac + ;; + esac + if test -n "$tstripme" && test -n "$striplib"; then + func_show_eval "$striplib $destdir/$realname" 'exit $?' + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try 'ln -sf' first, because the 'ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + test "$linkname" != "$realname" \ + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" + done + fi + + # Do each command in the postinstall commands. + lib=$destdir/$realname + func_execute_cmds "$postinstall_cmds" 'exit $?' + fi + + # Install the pseudo-library for information purposes. + func_basename "$file" + name=$func_basename_result + instname=$dir/${name}i + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' + + # Maybe install the static library, too. + test -n "$old_library" && func_append staticlibs " $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile=$destdir/$destname + else + func_basename "$file" + destfile=$func_basename_result + destfile=$destdir/$destfile + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + func_lo2o "$destfile" + staticdest=$func_lo2o_result + ;; + *.$objext) + staticdest=$destfile + destfile= + ;; + *) + func_fatal_help "cannot copy a libtool object to '$destfile'" + ;; + esac + + # Install the libtool object if requested. + test -n "$destfile" && \ + func_show_eval "$install_prog $file $destfile" 'exit $?' + + # Install the old object if enabled. + if test yes = "$build_old_libs"; then + # Deduce the name of the old-style object file. + func_lo2o "$file" + staticobj=$func_lo2o_result + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile=$destdir/$destname + else + func_basename "$file" + destfile=$func_basename_result + destfile=$destdir/$destfile + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext= + case $file in + *.exe) + if test ! -f "$file"; then + func_stripname '' '.exe' "$file" + file=$func_stripname_result + stripped_ext=.exe + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin* | *mingw* | *windows*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result + else + func_stripname '' '.exe' "$file" + wrapper=$func_stripname_result + fi + ;; + *) + wrapper=$file + ;; + esac + if func_ltwrapper_script_p "$wrapper"; then + notinst_deplibs= + relink_command= + + func_source "$wrapper" + + # Check the variables that should have been set. + test -z "$generated_by_libtool_version" && \ + func_fatal_error "invalid libtool wrapper script '$wrapper'" + + finalize=: + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + func_source "$lib" + fi + libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` + if test -n "$libdir" && test ! -f "$libfile"; then + func_warning "'$lib' has not been installed in '$libdir'" + finalize=false + fi + done + + relink_command= + func_source "$wrapper" + + outputname= + if test no = "$fast_install" && test -n "$relink_command"; then + $opt_dry_run || { + if $finalize; then + tmpdir=`func_mktempdir` + func_basename "$file$stripped_ext" + file=$func_basename_result + outputname=$tmpdir/$file + # Replace the output file specification. + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` + + $opt_quiet || { + func_quote_arg expand,pretty "$relink_command" + eval "func_echo $func_quote_arg_result" + } + if eval "$relink_command"; then : + else + func_error "error: relink '$file' with the above command before installing it" + $opt_dry_run || ${RM}r "$tmpdir" + continue + fi + file=$outputname + else + func_warning "cannot relink '$file'" + fi + } + else + # Install the binary that we compiled earlier. + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + func_stripname '' '.exe' "$destfile" + destfile=$func_stripname_result + ;; + esac + ;; + esac + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' + $opt_dry_run || if test -n "$outputname"; then + ${RM}r "$tmpdir" + fi + ;; + esac + done + + for file in $staticlibs; do + func_basename "$file" + name=$func_basename_result + + # Set up the ranlib parameters. + oldlib=$destdir/$name + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 + tool_oldlib=$func_to_tool_file_result + + func_show_eval "$install_prog \$file \$oldlib" 'exit $?' + + if test -n "$stripme" && test -n "$old_striplib"; then + func_show_eval "$old_striplib $tool_oldlib" 'exit $?' + fi + + # Do each command in the postinstall commands. + func_execute_cmds "$old_postinstall_cmds" 'exit $?' + done + + test -n "$future_libdirs" && \ + func_warning "remember to run '$progname --finish$future_libdirs'" + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + $opt_dry_run && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi +} + +test install = "$opt_mode" && func_mode_install ${1+"$@"} + + +# func_generate_dlsyms outputname originator pic_p +# Extract symbols from dlprefiles and create ${outputname}S.o with +# a dlpreopen symbol table. +func_generate_dlsyms () +{ + $debug_cmd + + my_outputname=$1 + my_originator=$2 + my_pic_p=${3-false} + my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` + my_dlsyms= + + if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + my_dlsyms=${my_outputname}S.c + else + func_error "not configured to extract global symbols from dlpreopened files" + fi + fi + + if test -n "$my_dlsyms"; then + case $my_dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist=$output_objdir/$my_outputname.nm + + func_show_eval "$RM $nlist ${nlist}S ${nlist}T" + + # Parse the name list into a source file. + func_verbose "creating $output_objdir/$my_dlsyms" + + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ +/* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ +/* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +#if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" +#endif + +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE +/* DATA imports from DLLs on WIN32 can't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined __osf__ +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) + +/* External symbol declarations for the compiler. */\ +" + + if test yes = "$dlself"; then + func_verbose "generating symbol list for '$output'" + + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` + for progfile in $progfiles; do + func_to_tool_file "$progfile" func_convert_file_msys_to_w32 + func_verbose "extracting global C symbols from '$func_to_tool_file_result'" + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $opt_dry_run || { + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + if test -n "$export_symbols_regex"; then + $opt_dry_run || { + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols=$output_objdir/$outputname.exp + $opt_dry_run || { + $RM $export_symbols + eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* | *windows* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' + ;; + esac + } + else + $opt_dry_run || { + eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + case $host in + *cygwin* | *mingw* | *windows* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + } + fi + fi + + for dlprefile in $dlprefiles; do + func_verbose "extracting global C symbols from '$dlprefile'" + func_basename "$dlprefile" + name=$func_basename_result + case $host in + *cygwin* | *mingw* | *windows* | *cegcc* ) + # if an import library, we need to obtain dlname + if func_win32_import_lib_p "$dlprefile"; then + func_tr_sh "$dlprefile" + eval "curr_lafile=\$libfile_$func_tr_sh_result" + dlprefile_dlbasename= + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then + # Use subshell, to avoid clobbering current variable values + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` + if test -n "$dlprefile_dlname"; then + func_basename "$dlprefile_dlname" + dlprefile_dlbasename=$func_basename_result + else + # no lafile. user explicitly requested -dlpreopen . + $sharedlib_from_linklib_cmd "$dlprefile" + dlprefile_dlbasename=$sharedlib_from_linklib_result + fi + fi + $opt_dry_run || { + if test -n "$dlprefile_dlbasename"; then + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' + else + func_warning "Could not compute DLL name from $name" + eval '$ECHO ": $name " >> "$nlist"' + fi + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + case $host in + i[3456]86-*-mingw32*) + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" + ;; + *) + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/__nm_//' >> '$nlist'" + ;; + esac + } + else # not an import lib + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + fi + ;; + *) + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + ;; + esac + done + + $opt_dry_run || { + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if $GREP -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + $GREP -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' + else + echo '/* NONE */' >> "$output_objdir/$my_dlsyms" + fi + + func_show_eval '$RM "${nlist}I"' + if test -n "$global_symbol_to_import"; then + eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' + fi + + echo >> "$output_objdir/$my_dlsyms" "\ + +/* The mapping between symbol names and symbols. */ +typedef struct { + const char *name; + void *address; +} lt_dlsymlist; +extern LT_DLSYM_CONST lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[];\ +" + + if test -s "$nlist"I; then + echo >> "$output_objdir/$my_dlsyms" "\ +static void lt_syminit(void) +{ + LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; + for (; symbol->name; ++symbol) + {" + $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" + echo >> "$output_objdir/$my_dlsyms" "\ + } +}" + fi + echo >> "$output_objdir/$my_dlsyms" "\ +LT_DLSYM_CONST lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[] = +{ {\"$my_originator\", (void *) 0}," + + if test -s "$nlist"I; then + echo >> "$output_objdir/$my_dlsyms" "\ + {\"@INIT@\", (void *) <_syminit}," + fi + + case $need_lib_prefix in + no) + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + *) + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + esac + echo >> "$output_objdir/$my_dlsyms" "\ + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_${my_prefix}_LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + } # !$opt_dry_run + + pic_flag_for_symtable= + case "$compile_command " in + *" -static "*) ;; + *) + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; + *-*-hpux*) + pic_flag_for_symtable=" $pic_flag" ;; + *) + $my_pic_p && pic_flag_for_symtable=" $pic_flag" + ;; + esac + ;; + esac + symtab_cflags= + for arg in $LTCFLAGS; do + case $arg in + -pie | -fpie | -fPIE) ;; + *) func_append symtab_cflags " $arg" ;; + esac + done + + # Now compile the dynamic symbol file. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' + + # Clean up the generated files. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' + + # Transform the symbol file into the correct name. + symfileobj=$output_objdir/${my_outputname}S.$objext + case $host in + *cygwin* | *mingw* | *windows* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + else + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` + fi + ;; + *) + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` + ;; + esac + ;; + *) + func_fatal_error "unknown suffix for '$my_dlsyms'" + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` + fi +} + +# func_cygming_gnu_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is a GNU/binutils-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_gnu_implib_p () +{ + $debug_cmd + + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` + test -n "$func_cygming_gnu_implib_tmp" +} + +# func_cygming_ms_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is an MS-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_ms_implib_p () +{ + $debug_cmd + + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` + test -n "$func_cygming_ms_implib_tmp" +} + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +# Despite the name, also deal with 64 bit binaries. +func_win32_libid () +{ + $debug_cmd + + win32_libid_type=unknown + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' >/dev/null; then + case $nm_interface in + "MS dumpbin") + if func_cygming_ms_implib_p "$1" || + func_cygming_gnu_implib_p "$1" + then + win32_nmres=import + else + win32_nmres= + fi + ;; + *) + func_to_tool_file "$1" func_convert_file_msys_to_w32 + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | + $SED -n -e ' + 1,100{ + / I /{ + s|.*|import| + p + q + } + }'` + ;; + esac + case $win32_nmres in + import*) win32_libid_type="x86 archive import";; + *) win32_libid_type="x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $ECHO "$win32_libid_type" +} + +# func_cygming_dll_for_implib ARG +# +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib () +{ + $debug_cmd + + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` +} + +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs +# +# The is the core of a fallback implementation of a +# platform-specific function to extract the name of the +# DLL associated with the specified import library LIBNAME. +# +# SECTION_NAME is either .idata$6 or .idata$7, depending +# on the platform and compiler that created the implib. +# +# Echos the name of the DLL associated with the +# specified import library. +func_cygming_dll_for_implib_fallback_core () +{ + $debug_cmd + + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` + $OBJDUMP -s --section "$1" "$2" 2>/dev/null | + $SED '/^Contents of section '"$match_literal"':/{ + # Place marker at beginning of archive member dllname section + s/.*/====MARK====/ + p + d + } + # These lines can sometimes be longer than 43 characters, but + # are always uninteresting + /:[ ]*file format pe[i]\{,1\}-/d + /^In archive [^:]*:/d + # Ensure marker is printed + /^====MARK====/p + # Remove all lines with less than 43 characters + /^.\{43\}/!d + # From remaining lines, remove first 43 characters + s/^.\{43\}//' | + $SED -n ' + # Join marker and all lines until next marker into a single line + /^====MARK====/ b para + H + $ b para + b + :para + x + s/\n//g + # Remove the marker + s/^====MARK====// + # Remove trailing dots and whitespace + s/[\. \t]*$// + # Print + /./p' | + # we now have a list, one entry per line, of the stringified + # contents of the appropriate section of all members of the + # archive that possess that section. Heuristic: eliminate + # all those that have a first or second character that is + # a '.' (that is, objdump's representation of an unprintable + # character.) This should work for all archives with less than + # 0x302f exports -- but will fail for DLLs whose name actually + # begins with a literal '.' or a single character followed by + # a '.'. + # + # Of those that remain, print the first one. + $SED -e '/^\./d;/^.\./d;q' +} + +# func_cygming_dll_for_implib_fallback ARG +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# +# This fallback implementation is for use when $DLLTOOL +# does not support the --identify-strict option. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib_fallback () +{ + $debug_cmd + + if func_cygming_gnu_implib_p "$1"; then + # binutils import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` + elif func_cygming_ms_implib_p "$1"; then + # ms-generated import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` + else + # unknown + sharedlib_from_linklib_result= + fi +} + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + $debug_cmd + + f_ex_an_ar_dir=$1; shift + f_ex_an_ar_oldlib=$1 + if test yes = "$lock_old_archive_extraction"; then + lockfile=$f_ex_an_ar_oldlib.lock + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + fi + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ + 'stat=$?; rm -f "$lockfile"; exit $stat' + if test yes = "$lock_old_archive_extraction"; then + $opt_dry_run || rm -f "$lockfile" + fi + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" + fi +} + + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + $debug_cmd + + my_gentop=$1; shift + my_oldlibs=${1+"$@"} + my_oldobjs= + my_xlib= + my_xabs= + my_xdir= + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + func_basename "$my_xlib" + my_xlib=$func_basename_result + my_xlib_u=$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + func_arith $extracted_serial + 1 + extracted_serial=$func_arith_result + my_xlib_u=lt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives="$extracted_archives $my_xlib_u" + my_xdir=$my_gentop/$my_xlib_u + + func_mkdir_p "$my_xdir" + + case $host in + *-darwin*) + func_verbose "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + $opt_dry_run || { + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + func_basename "$darwin_archive" + darwin_base_archive=$func_basename_result + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` + if test -n "$darwin_arches"; then + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches; do + func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" + $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" + cd "unfat-$$/$darwin_base_archive-$darwin_arch" + func_extract_an_archive "`pwd`" "$darwin_base_archive" + cd "$darwin_curdir" + $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" + done # $darwin_arches + ## Okay now we've a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` + $LIPO -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + $RM -rf unfat-$$ + cd "$darwin_orig_dir" + else + cd $darwin_orig_dir + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + } # !$opt_dry_run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` + done + + func_extract_archives_result=$my_oldobjs +} + + +# func_emit_wrapper [arg=no] +# +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw/windows +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory where it is stored is +# the $objdir directory. This is a cygwin/mingw/windows-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=${1-no} + + $ECHO "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM (GNU $PACKAGE) $VERSION +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='$sed_quote_subst' + +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variables: + generated_by_libtool_version='$macro_version' + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$ECHO are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + file=\"\$0\"" + + func_quote_arg pretty "$ECHO" + qECHO=$func_quote_arg_result + $ECHO "\ + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + ECHO=$qECHO + fi + +# Very basic option parsing. These options are (a) specific to +# the libtool wrapper, (b) are identical between the wrapper +# /script/ and the wrapper /executable/ that is used only on +# windows platforms, and (c) all begin with the string "--lt-" +# (application programs are unlikely to have options that match +# this pattern). +# +# There are only two supported options: --lt-debug and +# --lt-dump-script. There is, deliberately, no --lt-help. +# +# The first argument to this parsing function should be the +# script's $0 value, followed by "$@". +lt_option_debug= +func_parse_lt_options () +{ + lt_script_arg0=\$0 + shift + for lt_opt + do + case \"\$lt_opt\" in + --lt-debug) lt_option_debug=1 ;; + --lt-dump-script) + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` + cat \"\$lt_dump_D/\$lt_dump_F\" + exit 0 + ;; + --lt-*) + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 + exit 1 + ;; + esac + done + + # Print the debug banner immediately: + if test -n \"\$lt_option_debug\"; then + echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 + fi +} + +# Used when --lt-debug. Prints its arguments to stdout +# (redirection is the responsibility of the caller) +func_lt_dump_args () +{ + lt_dump_args_N=1; + for lt_arg + do + \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` + done +} + +# Core function for launching the target application +func_exec_program_core () +{ +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw* | *-*-windows* | *-*-os2* | *-cegcc*) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 +} + +# A function to encapsulate launching the target application +# Strips options in the --lt-* namespace from \$@ and +# launches target application with the remaining arguments. +func_exec_program () +{ + case \" \$* \" in + *\\ --lt-*) + for lt_wr_arg + do + case \$lt_wr_arg in + --lt-*) ;; + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; + esac + shift + done ;; + esac + func_exec_program_core \${1+\"\$@\"} +} + + # Parse options + func_parse_lt_options \"\$0\" \${1+\"\$@\"} + + # Find the directory that this script lives in. + thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` + done + + # Usually 'no', except on cygwin/mingw/windows when embedded into + # the cwrapper. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then + # special case for '.' + if test \"\$thisdir\" = \".\"; then + thisdir=\`pwd\` + fi + # remove .libs from thisdir + case \"\$thisdir\" in + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; + $objdir ) thisdir=. ;; + esac + fi + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test yes = "$fast_install"; then + $ECHO "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $MKDIR \"\$progdir\" + else + $RM \"\$progdir/\$file\" + fi" + + $ECHO "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + \$ECHO \"\$relink_command_output\" >&2 + $RM \"\$progdir/\$file\" + exit 1 + fi + fi + + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $RM \"\$progdir/\$program\"; + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $RM \"\$progdir/\$file\" + fi" + else + $ECHO "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" + fi + + $ECHO "\ + + if test -f \"\$progdir/\$program\"; then" + + # fixup the dll searchpath if we need to. + # + # Fix the DLL searchpath if we need to. Do this before prepending + # to shlibpath, because on Windows, both are PATH and uninstalled + # libraries must come first. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + # Export our shlibpath_var if we have one. + if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $ECHO "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` + + export $shlibpath_var +" + fi + + $ECHO "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. + func_exec_program \${1+\"\$@\"} + fi + else + # The program doesn't exist. + \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" +} + + +# func_emit_cwrapperexe_src +# emit the source code for a wrapper executable on stdout +# Must ONLY be called from within func_mode_link because +# it depends on a number of variable set therein. +func_emit_cwrapperexe_src () +{ + cat < +#include +#if defined _WIN32 && !defined __GNUC__ +# include +# include +# include +#else +# include +# include +# ifdef __CYGWIN__ +# include +# endif +#endif +#include +#include +#include +#include +#include +#include +#include +#include + +#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) + +/* declarations of non-ANSI functions */ +#if defined __MINGW32__ +# ifdef __STRICT_ANSI__ +_CRTIMP int __cdecl _putenv (const char *); +# endif +#elif defined __CYGWIN__ +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +/* #elif defined other_platform || defined ... */ +#endif + +/* portability defines, excluding path handling macros */ +#if defined _MSC_VER +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +# define S_IXUSR _S_IEXEC +#elif defined __MINGW32__ +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +#elif defined __CYGWIN__ +# define HAVE_SETENV +# define FOPEN_WB "wb" +/* #elif defined other platforms ... */ +#endif + +#if defined PATH_MAX +# define LT_PATHMAX PATH_MAX +#elif defined MAXPATHLEN +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef S_IXOTH +# define S_IXOTH 0 +#endif +#ifndef S_IXGRP +# define S_IXGRP 0 +#endif + +/* path handling portability macros */ +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif + +#if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ + defined __OS2__ +# define HAVE_DOS_BASED_FILE_SYSTEM +# define FOPEN_WB "wb" +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ + +#ifndef FOPEN_WB +# define FOPEN_WB "w" +#endif +#ifndef _O_BINARY +# define _O_BINARY 0 +#endif + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free (stale); stale = 0; } \ +} while (0) + +#if defined LT_DEBUGWRAPPER +static int lt_debug = 1; +#else +static int lt_debug = 0; +#endif + +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ + +void *xmalloc (size_t num); +char *xstrdup (const char *string); +const char *base_name (const char *name); +char *find_executable (const char *wrapper); +char *chase_symlinks (const char *pathspec); +int make_executable (const char *path); +int check_executable (const char *path); +char *strendzap (char *str, const char *pat); +void lt_debugprintf (const char *file, int line, const char *fmt, ...); +void lt_fatal (const char *file, int line, const char *message, ...); +static const char *nonnull (const char *s); +static const char *nonempty (const char *s); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); +char **prepare_spawn (char **argv); +void lt_dump_script (FILE *f); +EOF + + cat <= 0) + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) + return 1; + else + return 0; +} + +int +make_executable (const char *path) +{ + int rval = 0; + struct stat st; + + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", + nonempty (path)); + if ((!path) || (!*path)) + return 0; + + if (stat (path, &st) >= 0) + { + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); + } + return rval; +} + +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise + Does not chase symlinks, even on platforms that support them. +*/ +char * +find_executable (const char *wrapper) +{ + int has_slash = 0; + const char *p; + const char *p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + size_t tmp_len; + char *concat_name; + + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", + nonempty (wrapper)); + + if ((wrapper == NULL) || (*wrapper == '\0')) + return NULL; + + /* Absolute path? */ +#if defined HAVE_DOS_BASED_FILE_SYSTEM + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } +#if defined HAVE_DOS_BASED_FILE_SYSTEM + } +#endif + + for (p = wrapper; *p; p++) + if (*p == '/') + { + has_slash = 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char *path = getenv ("PATH"); + if (path != NULL) + { + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + for (q = p; *q; q++) + if (IS_PATH_SEPARATOR (*q)) + break; + p_len = (size_t) (q - p); + p_next = (*q == '\0' ? q : q + 1); + if (p_len == 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); + tmp_len = strlen (tmp); + concat_name = + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name = + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); + tmp_len = strlen (tmp); + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + return NULL; +} + +char * +chase_symlinks (const char *pathspec) +{ +#ifndef S_ISLNK + return xstrdup (pathspec); +#else + char buf[LT_PATHMAX]; + struct stat s; + char *tmp_pathspec = xstrdup (pathspec); + char *p; + int has_symlinks = 0; + while (strlen (tmp_pathspec) && !has_symlinks) + { + lt_debugprintf (__FILE__, __LINE__, + "checking path component for symlinks: %s\n", + tmp_pathspec); + if (lstat (tmp_pathspec, &s) == 0) + { + if (S_ISLNK (s.st_mode) != 0) + { + has_symlinks = 1; + break; + } + + /* search backwards for last DIR_SEPARATOR */ + p = tmp_pathspec + strlen (tmp_pathspec) - 1; + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + p--; + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + { + /* no more DIR_SEPARATORS left */ + break; + } + *p = '\0'; + } + else + { + lt_fatal (__FILE__, __LINE__, + "error accessing file \"%s\": %s", + tmp_pathspec, nonnull (strerror (errno))); + } + } + XFREE (tmp_pathspec); + + if (!has_symlinks) + { + return xstrdup (pathspec); + } + + tmp_pathspec = realpath (pathspec, buf); + if (tmp_pathspec == 0) + { + lt_fatal (__FILE__, __LINE__, + "could not follow symlinks for %s", pathspec); + } + return xstrdup (tmp_pathspec); +#endif +} + +char * +strendzap (char *str, const char *pat) +{ + size_t len, patlen; + + assert (str != NULL); + assert (pat != NULL); + + len = strlen (str); + patlen = strlen (pat); + + if (patlen <= len) + { + str += len - patlen; + if (STREQ (str, pat)) + *str = '\0'; + } + return str; +} + +void +lt_debugprintf (const char *file, int line, const char *fmt, ...) +{ + va_list args; + if (lt_debug) + { + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); + } +} + +static void +lt_error_core (int exit_status, const char *file, + int line, const char *mode, + const char *message, va_list ap) +{ + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *file, int line, const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); + va_end (ap); +} + +static const char * +nonnull (const char *s) +{ + return s ? s : "(null)"; +} + +static const char * +nonempty (const char *s) +{ + return (s && !*s) ? "(empty)" : nonnull (s); +} + +void +lt_setenv (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_setenv) setting '%s' to '%s'\n", + nonnull (name), nonnull (value)); + { +#ifdef HAVE_SETENV + /* always make a copy, for consistency with !HAVE_SETENV */ + char *str = xstrdup (value); + setenv (name, str, 1); +#else + size_t len = strlen (name) + 1 + strlen (value) + 1; + char *str = XMALLOC (char, len); + sprintf (str, "%s=%s", name, value); + if (putenv (str) != EXIT_SUCCESS) + { + XFREE (str); + } +#endif + } +} + +char * +lt_extend_str (const char *orig_value, const char *add, int to_end) +{ + char *new_value; + if (orig_value && *orig_value) + { + size_t orig_value_len = strlen (orig_value); + size_t add_len = strlen (add); + new_value = XMALLOC (char, add_len + orig_value_len + 1); + if (to_end) + { + strcpy (new_value, orig_value); + strcpy (new_value + orig_value_len, add); + } + else + { + strcpy (new_value, add); + strcpy (new_value + add_len, orig_value); + } + } + else + { + new_value = xstrdup (add); + } + return new_value; +} + +void +lt_update_exe_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + /* some systems can't cope with a ':'-terminated path #' */ + size_t len = strlen (new_value); + while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) + { + new_value[--len] = '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +void +lt_update_lib_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +EOF + case $host_os in + mingw* | windows*) + cat <<"EOF" + +/* Prepares an argument vector before calling spawn(). + Note that spawn() does not by itself call the command interpreter + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); + GetVersionEx(&v); + v.dwPlatformId == VER_PLATFORM_WIN32_NT; + }) ? "cmd.exe" : "command.com"). + Instead it simply concatenates the arguments, separated by ' ', and calls + CreateProcess(). We must quote the arguments since Win32 CreateProcess() + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a + special way: + - Space and tab are interpreted as delimiters. They are not treated as + delimiters if they are surrounded by double quotes: "...". + - Unescaped double quotes are removed from the input. Their only effect is + that within double quotes, space and tab are treated like normal + characters. + - Backslashes not followed by double quotes are not special. + - But 2*n+1 backslashes followed by a double quote become + n backslashes followed by a double quote (n >= 0): + \" -> " + \\\" -> \" + \\\\\" -> \\" + */ +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +char ** +prepare_spawn (char **argv) +{ + size_t argc; + char **new_argv; + size_t i; + + /* Count number of arguments. */ + for (argc = 0; argv[argc] != NULL; argc++) + ; + + /* Allocate new argument vector. */ + new_argv = XMALLOC (char *, argc + 1); + + /* Put quoted arguments into the new argument vector. */ + for (i = 0; i < argc; i++) + { + const char *string = argv[i]; + + if (string[0] == '\0') + new_argv[i] = xstrdup ("\"\""); + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) + { + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); + size_t length; + unsigned int backslashes; + const char *s; + char *quoted_string; + char *p; + + length = 0; + backslashes = 0; + if (quote_around) + length++; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + length += backslashes + 1; + length++; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + length += backslashes + 1; + + quoted_string = XMALLOC (char, length + 1); + + p = quoted_string; + backslashes = 0; + if (quote_around) + *p++ = '"'; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + { + unsigned int j; + for (j = backslashes + 1; j > 0; j--) + *p++ = '\\'; + } + *p++ = c; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + { + unsigned int j; + for (j = backslashes; j > 0; j--) + *p++ = '\\'; + *p++ = '"'; + } + *p = '\0'; + + new_argv[i] = quoted_string; + } + else + new_argv[i] = (char *) string; + } + new_argv[argc] = NULL; + + return new_argv; +} +EOF + ;; + esac + + cat <<"EOF" +void lt_dump_script (FILE* f) +{ +EOF + func_emit_wrapper yes | + $SED -n -e ' +s/^\(.\{79\}\)\(..*\)/\1\ +\2/ +h +s/\([\\"]\)/\\\1/g +s/$/\\n/ +s/\([^\n]*\).*/ fputs ("\1", f);/p +g +D' + cat <<"EOF" +} +EOF +} +# end: func_emit_cwrapperexe_src + +# func_win32_import_lib_p ARG +# True if ARG is an import lib, as indicated by $file_magic_cmd +func_win32_import_lib_p () +{ + $debug_cmd + + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in + *import*) : ;; + *) false ;; + esac +} + +# func_suncc_cstd_abi +# !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! +# Several compiler flags select an ABI that is incompatible with the +# Cstd library. Avoid specifying it if any are in CXXFLAGS. +func_suncc_cstd_abi () +{ + $debug_cmd + + case " $compile_command " in + *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) + suncc_use_cstd_abi=no + ;; + *) + suncc_use_cstd_abi=yes + ;; + esac +} + +# func_mode_link arg... +func_mode_link () +{ + $debug_cmd + + case $host in + *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # what system we are compiling for in order to pass an extra + # flag for every libtool invocation. + # allow_undefined=no + + # FIXME: Unfortunately, there are problems with the above when trying + # to make a dll that has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + ;; + *) + allow_undefined=yes + ;; + esac + libtool_args=$nonopt + base_compile="$nonopt $@" + compile_command=$nonopt + finalize_command=$nonopt + + compile_rpath= + compile_rpath_tail= + finalize_rpath= + compile_shlibpath= + finalize_shlibpath= + convenience= + old_convenience= + deplibs= + old_deplibs= + compiler_flags= + linker_flags= + dllsearchpath= + lib_search_path=`pwd` + inst_prefix_dir= + new_inherited_linker_flags= + + avoid_version=no + bindir= + dlfiles= + dlprefiles= + dlself=no + export_dynamic=no + export_symbols= + export_symbols_regex= + generated= + libobjs= + ltlibs= + module=no + no_install=no + objs= + os2dllname= + non_pic_objects= + precious_files_regex= + prefer_static_libs=no + preload=false + prev= + prevarg= + release= + rpath= + xrpath= + perm_rpath= + temp_rpath= + temp_rpath_tail= + thread_safe=no + vinfo= + vinfo_number=no + weak_libs= + rpath_arg= + single_module=$wl-single_module + func_infer_tag $base_compile + + # We need to know -static, to get the right output filenames. + for arg + do + case $arg in + -shared) + test yes != "$build_libtool_libs" \ + && func_fatal_configuration "cannot build a shared library" + build_old_libs=no + break + ;; + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) + if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then + func_warning "complete static linking is impossible in this configuration" + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + -static) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=built + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + esac + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg=$1 + shift + func_quote_arg pretty,unquoted "$arg" + qarg=$func_quote_arg_unquoted_result + func_append libtool_args " $func_quote_arg_result" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + func_append compile_command " @OUTPUT@" + func_append finalize_command " @OUTPUT@" + ;; + esac + + case $prev in + bindir) + bindir=$arg + prev= + continue + ;; + dlfiles|dlprefiles) + $preload || { + # Add the symbol object into the linking commands. + func_append compile_command " @SYMFILE@" + func_append finalize_command " @SYMFILE@" + preload=: + } + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test no = "$dlself"; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test dlprefiles = "$prev"; then + dlself=yes + elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then + dlself=yes + else + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + *) + if test dlfiles = "$prev"; then + func_append dlfiles " $arg" + else + func_append dlprefiles " $arg" + fi + prev= + continue + ;; + esac + ;; + expsyms) + export_symbols=$arg + test -f "$arg" \ + || func_fatal_error "symbol file '$arg' does not exist" + prev= + continue + ;; + expsyms_regex) + export_symbols_regex=$arg + prev= + continue + ;; + framework) + case $host in + *-*-darwin*) + case "$deplibs " in + *" $qarg.ltframework "*) ;; + *) func_append deplibs " $qarg.ltframework" # this is fixed later + ;; + esac + ;; + esac + prev= + continue + ;; + inst_prefix) + inst_prefix_dir=$arg + prev= + continue + ;; + mllvm) + # Clang does not use LLVM to link, so we can simply discard any + # '-mllvm $arg' options when doing the link step. + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat "$save_arg"` + do +# func_append moreargs " $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test none = "$pic_object" && + test none = "$non_pic_object"; then + func_fatal_error "cannot find name of object for '$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=$func_dirname_result + + if test none != "$pic_object"; then + # Prepend the subdirectory the object is found in. + pic_object=$xdir$pic_object + + if test dlfiles = "$prev"; then + if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then + func_append dlfiles " $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test dlprefiles = "$prev"; then + # Preload the old-style object. + func_append dlprefiles " $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg=$pic_object + fi + + # Non-PIC object. + if test none != "$non_pic_object"; then + # Prepend the subdirectory the object is found in. + non_pic_object=$xdir$non_pic_object + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test none = "$pic_object"; then + arg=$non_pic_object + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object=$pic_object + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=$func_dirname_result + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "'$arg' is not a valid libtool object" + fi + fi + done + else + func_fatal_error "link input file '$arg' does not exist" + fi + arg=$save_arg + prev= + continue + ;; + os2dllname) + os2dllname=$arg + prev= + continue + ;; + precious_regex) + precious_files_regex=$arg + prev= + continue + ;; + release) + release=-$arg + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "argument to -rpath is not absolute: $arg" + ;; + esac + if test rpath = "$prev"; then + case "$rpath " in + *" $arg "*) ;; + *) func_append rpath " $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) func_append xrpath " $arg" ;; + esac + fi + prev= + continue + ;; + shrext) + shrext_cmds=$arg + prev= + continue + ;; + weak) + func_append weak_libs " $arg" + prev= + continue + ;; + xassembler) + func_append compiler_flags " -Xassembler $qarg" + prev= + func_append compile_command " -Xassembler $qarg" + func_append finalize_command " -Xassembler $qarg" + continue + ;; + xcclinker) + func_append linker_flags " $qarg" + func_append compiler_flags " $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xcompiler) + func_append compiler_flags " $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xlinker) + func_append linker_flags " $qarg" + func_append compiler_flags " $wl$qarg" + prev= + func_append compile_command " $wl$qarg" + func_append finalize_command " $wl$qarg" + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi # test -n "$prev" + + prevarg=$arg + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + # See comment for -static flag below, for more details. + func_append compile_command " $link_static_flag" + func_append finalize_command " $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + func_fatal_error "'-allow-undefined' must not be used because it is the default" + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -bindir) + prev=bindir + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=yes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + func_fatal_error "more than one -exported-symbols argument is not allowed" + fi + if test X-export-symbols = "X$arg"; then + prev=expsyms + else + prev=expsyms_regex + fi + continue + ;; + + -framework) + prev=framework + continue + ;; + + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + func_append compile_command " $arg" + func_append finalize_command " $arg" + ;; + esac + continue + ;; + + -L*) + func_stripname "-L" '' "$arg" + if test -z "$func_stripname_result"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between '-L' and '$1'" + else + func_fatal_error "need path for '-L' option" + fi + fi + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + test -z "$absdir" && \ + func_fatal_error "cannot determine absolute directory name of '$dir'" + dir=$absdir + ;; + esac + case "$deplibs " in + *" -L$dir "* | *" $arg "*) + # Will only happen for absolute or sysroot arguments + ;; + *) + # Preserve sysroot, but never include relative directories + case $dir in + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; + *) func_append deplibs " -L$dir" ;; + esac + func_append lib_search_path " $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + ::) dllsearchpath=$dir;; + *) func_append dllsearchpath ":$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) func_append dllsearchpath ":$testbindir";; + esac + ;; + esac + continue + ;; + + -l*) + if test X-lc = "X$arg" || test X-lm = "X$arg"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-os2*) + # These systems don't actually have a C library (as such) + test X-lc = "X$arg" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*) + # Do not include libc due to us having libc/libc_r. + test X-lc = "X$arg" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + func_append deplibs " System.ltframework" + continue + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + test X-lc = "X$arg" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + test X-lc = "X$arg" && continue + ;; + esac + elif test X-lc_r = "X$arg"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + func_append deplibs " $arg" + continue + ;; + + -mllvm) + prev=mllvm + continue + ;; + + -module) + module=yes + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + # Darwin uses the -arch flag to determine output architecture. + # -q