diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 061226aa5..c303ec09a 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -119,13 +119,13 @@ jobs: uses: actions/cache@v2 with: path: ${{ matrix.BAZEL_DISK }} - key: ${{ runner.os }}-disk-1-${{ hashFiles('ts/yarn.lock') }}-${{ hashFiles('pip/requirements.txt') }}-${{ hashFiles('cargo/Cargo.lock') }}-${{ hashFiles('**/BUILD.bazel') }}-${{ hashFiles('**/*.bzl') }} + key: ${{ runner.os }}-disk-2-${{ hashFiles('ts/yarn.lock') }}-${{ hashFiles('pip/requirements.txt') }}-${{ hashFiles('cargo/Cargo.lock') }}-${{ hashFiles('**/BUILD.bazel') }}-${{ hashFiles('**/*.bzl') }} - name: Cache repo uses: actions/cache@v2 with: path: ${{ matrix.BAZEL_REPO }} - key: ${{ runner.os }}-repo-1-${{ hashFiles('ts/yarn.lock') }}-${{ hashFiles('pip/requirements.txt') }}-${{ hashFiles('cargo/Cargo.lock') }}-${{ hashFiles('**/BUILD.bazel') }}-${{ hashFiles('**/*.bzl') }} + key: ${{ runner.os }}-repo-2-${{ hashFiles('ts/yarn.lock') }}-${{ hashFiles('pip/requirements.txt') }}-${{ hashFiles('cargo/Cargo.lock') }}-${{ hashFiles('**/BUILD.bazel') }}-${{ hashFiles('**/*.bzl') }} ################################ # Linux @@ -139,7 +139,7 @@ jobs: set -x sudo apt update - sudo apt install portaudio19-dev gettext + sudo apt install portaudio19-dev curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-linux-amd64 -o ./bazel && \ chmod +x ./bazel diff --git a/cargo/BUILD.bazel b/cargo/BUILD.bazel index 1fa5ae8f9..19ca39818 100644 --- a/cargo/BUILD.bazel +++ b/cargo/BUILD.bazel @@ -1,6 +1,6 @@ """ @generated -cargo-raze workspace build file. +cargo-raze generated Bazel file. DO NOT EDIT! Replaced on runs of cargo-raze """ @@ -23,7 +23,7 @@ alias( alias( name = "async_compression", - actual = "@raze__async_compression__0_3_5//:async_compression", + actual = "@raze__async_compression__0_3_6//:async_compression", tags = [ "cargo-raze", "manual", @@ -59,7 +59,7 @@ alias( alias( name = "coarsetime", - actual = "@raze__coarsetime__0_1_14//:coarsetime", + actual = "@raze__coarsetime__0_1_16//:coarsetime", tags = [ "cargo-raze", "manual", @@ -113,7 +113,7 @@ alias( alias( name = "futures", - actual = "@raze__futures__0_3_7//:futures", + actual = "@raze__futures__0_3_8//:futures", tags = [ "cargo-raze", "manual", @@ -203,7 +203,7 @@ alias( alias( name = "once_cell", - actual = "@raze__once_cell__1_4_1//:once_cell", + actual = "@raze__once_cell__1_5_2//:once_cell", tags = [ "cargo-raze", "manual", @@ -401,7 +401,7 @@ alias( alias( name = "tokio", - actual = "@raze__tokio__0_2_22//:tokio", + actual = "@raze__tokio__0_2_23//:tokio", tags = [ "cargo-raze", "manual", @@ -428,7 +428,7 @@ alias( alias( name = "unicode_normalization", - actual = "@raze__unicode_normalization__0_1_13//:unicode_normalization", + actual = "@raze__unicode_normalization__0_1_14//:unicode_normalization", tags = [ "cargo-raze", "manual", @@ -452,3 +452,5 @@ alias( "manual", ], ) + +exports_files(["licenses.json"]) diff --git a/cargo/BUILD.reqwest.bazel b/cargo/BUILD.reqwest.bazel new file mode 100644 index 000000000..e88f6bdf7 --- /dev/null +++ b/cargo/BUILD.reqwest.bazel @@ -0,0 +1,191 @@ +""" +We currently need to manually maintain this file, so we can use +ring on Linux, and native-tls on other platforms. We use ring on +Linux because the wheels need the SSL library statically linked in, +and native-tls-vendored is broken in Bazel due to sandboxing. We +prefer native-tls on other platforms because it reduces the resulting +binary size, and we get free updates from the OS. + +Building openssl statically ourselves and linking it in would be +another valid solution, but we would need to ensure we keep it up +to date. + +update.py takes care of keeping the referenced versions +up to date for us. +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "blocking" with type "example" omitted + +# Unsupported target "form" with type "example" omitted + +# Unsupported target "json_dynamic" with type "example" omitted + +# Unsupported target "json_typed" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "tor_socks" with type "example" omitted + +rust_library( + name = "reqwest", + srcs = glob(["**/*.rs"]), + aliases = selects.with_or({ + # ring on Linux + ( + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): {}, + "//conditions:default": { + # native-tls + "@raze__native_tls__0_2_6//:native_tls": "native_tls_crate", + }, + }), + crate_features = [ + "__tls", + "json", + "serde_json", + "socks", + "stream", + "tokio-socks", + ] + selects.with_or({ + # ring on Linux + ( + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "__rustls", + "hyper-rustls", + "rustls", + "rustls-tls", + "rustls-tls-webpki-roots", + "tokio-rustls", + "webpki-roots", + ], + # native-tls on other platforms + "//conditions:default": [ + "default-tls", + "hyper-tls", + "native-tls", + "native-tls-crate", + "tokio-tls", + ], + }), + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.8", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__http__0_2_1//:http", + "@raze__hyper_timeout__0_3_1//:hyper_timeout", + "@raze__mime_guess__2_0_3//:mime_guess", + "@raze__serde__1_0_117//:serde", + "@raze__serde_json__1_0_59//:serde_json", + "@raze__serde_urlencoded__0_6_1//:serde_urlencoded", + "@raze__url__2_2_0//:url", + ] + selects.with_or({ + # cfg(not(target_arch = "wasm32")) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__base64__0_13_0//:base64", + "@raze__encoding_rs__0_8_26//:encoding_rs", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_util__0_3_8//:futures_util", + "@raze__http_body__0_3_1//:http_body", + "@raze__hyper__0_13_9//:hyper", + "@raze__ipnet__2_3_0//:ipnet", + "@raze__lazy_static__1_4_0//:lazy_static", + "@raze__log__0_4_11//:log", + "@raze__mime__0_3_16//:mime", + "@raze__percent_encoding__2_1_0//:percent_encoding", + "@raze__pin_project_lite__0_1_11//:pin_project_lite", + "@raze__tokio__0_2_23//:tokio", + "@raze__tokio_socks__0_3_0//:tokio_socks", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__winreg__0_7_0//:winreg", + ], + "//conditions:default": [], + }) + selects.with_or({ + # ring on Linux + ( + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__hyper_rustls__0_21_0//:hyper_rustls", + "@raze__rustls__0_18_1//:rustls", + "@raze__tokio_rustls__0_14_1//:tokio_rustls", + "@raze__webpki_roots__0_20_0//:webpki_roots", + ], + # native-tls on other platforms + "//conditions:default": [ + "@raze__hyper_tls__0_4_3//:hyper_tls", + "@raze__native_tls__0_2_6//:native_tls", + "@raze__tokio_tls__0_3_1//:tokio_tls", + ], + }), +) + +# Unsupported target "badssl" with type "test" omitted + +# Unsupported target "blocking" with type "test" omitted + +# Unsupported target "brotli" with type "test" omitted + +# Unsupported target "client" with type "test" omitted + +# Unsupported target "cookie" with type "test" omitted + +# Unsupported target "gzip" with type "test" omitted + +# Unsupported target "multipart" with type "test" omitted + +# Unsupported target "proxy" with type "test" omitted + +# Unsupported target "redirect" with type "test" omitted + +# Unsupported target "timeouts" with type "test" omitted diff --git a/cargo/Cargo.lock b/cargo/Cargo.lock index 0eb4c9af2..c54246541 100644 --- a/cargo/Cargo.lock +++ b/cargo/Cargo.lock @@ -23,9 +23,9 @@ checksum = "f6789e291be47ace86a60303502173d84af8327e3627ecf334356ee0f87a164c" [[package]] name = "aho-corasick" -version = "0.7.14" +version = "0.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b476ce7103678b0c6d3d395dbbae31d48ff910bd28be979ba5d48c6351131d0d" +checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5" dependencies = [ "memchr", ] @@ -112,9 +112,9 @@ dependencies = [ [[package]] name = "async-compression" -version = "0.3.5" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9021768bcce77296b64648cc7a7460e3df99979b97ed5c925c38d1cc83778d98" +checksum = "fb1ff21a63d3262af46b9f33a826a8d134e2d0d9b2179c86034948b732ea8b2a" dependencies = [ "bytes 0.5.6", "flate2", @@ -228,9 +228,9 @@ checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" [[package]] name = "cc" -version = "1.0.61" +version = "1.0.62" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed67cbde08356238e75fc4656be4749481eeffb09e19f320a25237d5221c985d" +checksum = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40" [[package]] name = "cfg-if" @@ -268,8 +268,9 @@ dependencies = [ [[package]] name = "coarsetime" -version = "0.1.14" -source = "git+https://github.com/ankitects/rust-coarsetime.git?tag=anki-2020-11-03#f9e2c86216f0f4803bc75404828318fc206dab29" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cbaaa2e4f75bd7eff165a3d24345a374efddbe0e90be326e62048937e56f65a" dependencies = [ "lazy_static", "libc", @@ -284,9 +285,9 @@ checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" [[package]] name = "core-foundation" -version = "0.7.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171" +checksum = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62" dependencies = [ "core-foundation-sys", "libc", @@ -294,9 +295,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.7.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac" +checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b" [[package]] name = "crc32fast" @@ -542,9 +543,9 @@ dependencies = [ [[package]] name = "fluent-bundle" -version = "0.13.1" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a79916560098f0a57215a489e37b7fc83088949eab7f7977dcc329b254d50c17" +checksum = "092ebd50cd3f8a6d664bf156e3550d2f7232fbe446da6707d727cca53f707ce2" dependencies = [ "fluent-langneg", "fluent-syntax", @@ -576,6 +577,31 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ece68d15c92e84fa4f19d3780f1294e5ca82a78a6d515f1efaabcc144688be00" +dependencies = [ + "matches", + "percent-encoding", +] + [[package]] name = "fuchsia-zircon" version = "0.3.3" @@ -594,9 +620,9 @@ checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" [[package]] name = "futures" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95314d38584ffbfda215621d723e0a3906f032e03ae5551e650058dac83d4797" +checksum = "9b3b0c040a1fe6529d30b3c5944b280c7f0dcb2930d2c3062bca967b602583d0" dependencies = [ "futures-channel", "futures-core", @@ -609,9 +635,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0448174b01148032eed37ac4aed28963aaaa8cfa93569a08e5b479bbc6c2c151" +checksum = "4b7109687aa4e177ef6fe84553af6280ef2778bdb7783ba44c9dc3399110fe64" dependencies = [ "futures-core", "futures-sink", @@ -619,15 +645,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18eaa56102984bed2c88ea39026cff3ce3b4c7f508ca970cedf2450ea10d4e46" +checksum = "847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748" [[package]] name = "futures-executor" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5f8e0c9258abaea85e78ebdda17ef9666d390e987f006be6080dfe354b708cb" +checksum = "4caa2b2b68b880003057c1dd49f1ed937e38f22fcf6c212188a121f08cf40a65" dependencies = [ "futures-core", "futures-task", @@ -636,15 +662,15 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e1798854a4727ff944a7b12aa999f58ce7aa81db80d2dfaaf2ba06f065ddd2b" +checksum = "611834ce18aaa1bd13c4b374f5d653e1027cf99b6b502584ff8c9a64413b30bb" [[package]] name = "futures-macro" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e36fccf3fc58563b4a14d265027c627c3b665d7fed489427e88e7cc929559efe" +checksum = "77408a692f1f97bcc61dc001d752e00643408fbc922e4d634c655df50d595556" dependencies = [ "proc-macro-hack", "proc-macro2", @@ -654,24 +680,24 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e3ca3f17d6e8804ae5d3df7a7d35b2b3a6fe89dac84b31872720fc3060a0b11" +checksum = "f878195a49cee50e006b02b93cf7e0a95a38ac7b776b4c4d9cc1207cd20fcb3d" [[package]] name = "futures-task" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96d502af37186c4fef99453df03e374683f8a1eec9dcc1e66b3b82dc8278ce3c" +checksum = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d" dependencies = [ "once_cell", ] [[package]] name = "futures-util" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abcb44342f62e6f3e8ac427b8aa815f724fd705dfad060b18ac7866c15bb8e34" +checksum = "d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2" dependencies = [ "futures-channel", "futures-core", @@ -898,6 +924,19 @@ dependencies = [ "tokio-io-timeout", ] +[[package]] +name = "hyper-tls" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d979acc56dcb5b8dddba3917601745e877576475aa046df3226eabdecef78eed" +dependencies = [ + "bytes 0.5.6", + "hyper", + "native-tls", + "tokio", + "tokio-tls", +] + [[package]] name = "idna" version = "0.2.0" @@ -1177,6 +1216,24 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1255076139a83bb467426e7f8d0134968a8118844faa755985e077cf31850333" +[[package]] +name = "native-tls" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fcc7939b5edc4e4f86b1b4a04bb1498afaaf871b1a6691838ed06fcb48d3a3f" +dependencies = [ + "lazy_static", + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + [[package]] name = "net2" version = "0.2.35" @@ -1274,9 +1331,23 @@ checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397" [[package]] name = "once_cell" -version = "1.4.1" +version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad" +checksum = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0" + +[[package]] +name = "openssl" +version = "0.10.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d575eff3665419f9b83678ff2815858ad9d11567e082f5ac1814baba4e2bcb4" +dependencies = [ + "bitflags", + "cfg-if 0.1.10", + "foreign-types", + "lazy_static", + "libc", + "openssl-sys", +] [[package]] name = "openssl-probe" @@ -1284,6 +1355,19 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de" +[[package]] +name = "openssl-sys" +version = "0.9.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a842db4709b604f0fe5d1170ae3565899be2ad3d9cbc72dedc789ac0511f78de" +dependencies = [ + "autocfg", + "cc", + "libc", + "pkg-config", + "vcpkg", +] + [[package]] name = "parking_lot" version = "0.11.0" @@ -1657,26 +1741,29 @@ dependencies = [ "hyper", "hyper-rustls", "hyper-timeout", + "hyper-tls", "ipnet", "js-sys", "lazy_static", "log", "mime", "mime_guess", + "native-tls", "percent-encoding", "pin-project-lite", "rustls", - "rustls-native-certs", "serde", "serde_json", "serde_urlencoded", "tokio", "tokio-rustls", "tokio-socks", + "tokio-tls", "url", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", + "webpki-roots", "winreg", ] @@ -1741,18 +1828,6 @@ dependencies = [ "webpki", ] -[[package]] -name = "rustls-native-certs" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "629d439a7672da82dd955498445e496ee2096fe2117b9f796558a43fdb9e59b8" -dependencies = [ - "openssl-probe", - "rustls", - "schannel", - "security-framework", -] - [[package]] name = "ryu" version = "1.0.5" @@ -1787,9 +1862,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "1.0.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad502866817f0575705bd7be36e2b2535cc33262d493aa733a2ec862baa2bc2b" +checksum = "c1759c2e3c8580017a484a7ac56d3abc5a6c1feadf88db2f3633f12ae4268c69" dependencies = [ "bitflags", "core-foundation", @@ -1800,9 +1875,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "1.0.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51ceb04988b17b6d1dcd555390fa822ca5637b4a14e1f5099f13d351bed4d6c7" +checksum = "f99b9d5e26d2a71633cc4f2ebae7cc9f874044e0c351a27e17892d76dce5678b" dependencies = [ "core-foundation-sys", "libc", @@ -1983,9 +2058,9 @@ checksum = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252" [[package]] name = "socket2" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1fa70dc5c8104ec096f4fe7ede7a221d35ae13dcd19ba1ad9a81d2cab9a1c44" +checksum = "7fd8b795c389288baa5f355489c65e71fd48a02104600d15c4cfbc561e9e429d" dependencies = [ "cfg-if 0.1.10", "libc", @@ -2081,18 +2156,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.21" +version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "318234ffa22e0920fe9a40d7b8369b5f649d490980cf7aadcf1eb91594869b42" +checksum = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.21" +version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cae2447b6282786c3493999f40a9be2a6ad20cb8bd268b0a0dbf5a065535c0ab" +checksum = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56" dependencies = [ "proc-macro2", "quote", @@ -2127,15 +2202,24 @@ checksum = "29738eedb4388d9ea620eeab9384884fc3f06f586a2eddb56bedc5885126c7c1" [[package]] name = "tinyvec" -version = "0.3.4" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "238ce071d267c5710f9d31451efec16c5ee22de34df17cc05e56cbc92e967117" +checksum = "b78a366903f506d2ad52ca8dc552102ffdd3e937ba8a227f024dc1d1eae28575" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "0.2.22" +version = "0.2.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d34ca54d84bf2b5b4d7d31e901a8464f7b60ac145a284fba25ceb801f2ddccd" +checksum = "a6d7ad61edd59bfcc7e80dababf0f4aed2e6d5e0ba1659356ae889752dfc12ff" dependencies = [ "bytes 0.5.6", "fnv", @@ -2183,6 +2267,16 @@ dependencies = [ "tokio", ] +[[package]] +name = "tokio-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a70f4fcd7b3b24fb194f837560168208f669ca8cb70d0c4b862944452396343" +dependencies = [ + "native-tls", + "tokio", +] + [[package]] name = "tokio-util" version = "0.3.1" @@ -2327,18 +2421,18 @@ dependencies = [ [[package]] name = "unicode-normalization" -version = "0.1.13" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fb19cf769fa8c6a80a162df694621ebeb4dafb606470b2b2fce0be40a98a977" +checksum = "b7f98e67a4d84f730d343392f9bfff7d21e3fca562b9cb7a43b768350beeddc6" dependencies = [ "tinyvec", ] [[package]] name = "unicode-segmentation" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e83e153d1053cbb5a118eeff7fd5be06ed99153f00dbcd8ae310c5fb2b22edc0" +checksum = "db8716a166f290ff49dabc18b44aa407cb7c6dbe1aa0971b44b8a24b0ca35aae" [[package]] name = "unicode-xid" @@ -2360,10 +2454,11 @@ checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" [[package]] name = "url" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "829d4a8476c35c9bf0bbce5a3b23f4106f79728039b726d292bb93bc106787cb" +checksum = "5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976e" dependencies = [ + "form_urlencoded", "idna", "matches", "percent-encoding", @@ -2501,6 +2596,15 @@ dependencies = [ "untrusted", ] +[[package]] +name = "webpki-roots" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f20dea7535251981a9670857150d571846545088359b28e4951d350bdaf179f" +dependencies = [ + "webpki", +] + [[package]] name = "which" version = "4.0.2" diff --git a/cargo/README.md b/cargo/README.md index 544536b4e..65ced3472 100644 --- a/cargo/README.md +++ b/cargo/README.md @@ -4,7 +4,7 @@ After updating dependencies in ../rslib/Cargo.toml, change to this folder and run python update.py to update the external Bazel repositories to point to the updated deps. -You will need to have cargo-raze 0.6.1 or later installed, which is not +You will need to have cargo-raze 0.7.0 or later installed, which is not currently included in this Bazel project. You can install it by installing rustup, then running "cargo install cargo-raze". @@ -12,14 +12,13 @@ A couple of crates need extra work to build with Bazel, and are listed in raze.toml. For example: ```toml -[raze.crates.ring.'0.16.15'] +[raze.crates.ring.'*'] data_attr = "glob([\"src/**\"])" ``` -After updating dependencies, if one of these crates has changed to a -new version, the version in raze.toml will need to be updated, and -update.py re-run. +With minor version updates, you should not normally need to modify +the entries in that file. The ../pylib/rsbridge folder has a dependency on pyo3, which is -special-cases in update.py. If updating the pyo3 version, raze.toml -and update.py need to be updated as well. +special-cased in update.py. If updating the pyo3 version, update.py +needs to be updated as well. diff --git a/cargo/crates.bzl b/cargo/crates.bzl index 94590cb9b..510141584 100644 --- a/cargo/crates.bzl +++ b/cargo/crates.bzl @@ -1,6 +1,6 @@ """ @generated -cargo-raze crate workspace functions +cargo-raze generated Bazel file. DO NOT EDIT! Replaced on runs of cargo-raze """ @@ -18,7 +18,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423", strip_prefix = "addr2line-0.14.0", - build_file = Label("//cargo/remote:addr2line-0.14.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.addr2line-0.14.0.bazel"), ) maybe( @@ -28,7 +28,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e", strip_prefix = "adler-0.2.3", - build_file = Label("//cargo/remote:adler-0.2.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.adler-0.2.3.bazel"), ) maybe( @@ -38,17 +38,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f6789e291be47ace86a60303502173d84af8327e3627ecf334356ee0f87a164c", strip_prefix = "ahash-0.4.6", - build_file = Label("//cargo/remote:ahash-0.4.6.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.ahash-0.4.6.bazel"), ) maybe( http_archive, - name = "raze__aho_corasick__0_7_14", - url = "https://crates.io/api/v1/crates/aho-corasick/0.7.14/download", + name = "raze__aho_corasick__0_7_15", + url = "https://crates.io/api/v1/crates/aho-corasick/0.7.15/download", type = "tar.gz", - sha256 = "b476ce7103678b0c6d3d395dbbae31d48ff910bd28be979ba5d48c6351131d0d", - strip_prefix = "aho-corasick-0.7.14", - build_file = Label("//cargo/remote:aho-corasick-0.7.14.BUILD.bazel"), + sha256 = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5", + strip_prefix = "aho-corasick-0.7.15", + build_file = Label("//cargo/remote:BUILD.aho-corasick-0.7.15.bazel"), ) maybe( @@ -58,7 +58,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "bf8dcb5b4bbaa28653b647d8c77bd4ed40183b48882e130c1f1ffb73de069fd7", strip_prefix = "anyhow-1.0.34", - build_file = Label("//cargo/remote:anyhow-1.0.34.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.anyhow-1.0.34.bazel"), ) maybe( @@ -68,7 +68,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "4d25d88fd6b8041580a654f9d0c581a047baee2b3efee13275f2fc392fc75034", strip_prefix = "arc-swap-0.4.7", - build_file = Label("//cargo/remote:arc-swap-0.4.7.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.arc-swap-0.4.7.bazel"), ) maybe( @@ -78,7 +78,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544", strip_prefix = "arrayref-0.3.6", - build_file = Label("//cargo/remote:arrayref-0.3.6.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.arrayref-0.3.6.bazel"), ) maybe( @@ -88,7 +88,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "cd9fd44efafa8690358b7408d253adf110036b88f55672a933f01d616ad9b1b9", strip_prefix = "arrayvec-0.4.12", - build_file = Label("//cargo/remote:arrayvec-0.4.12.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.arrayvec-0.4.12.bazel"), ) maybe( @@ -98,7 +98,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b", strip_prefix = "arrayvec-0.5.2", - build_file = Label("//cargo/remote:arrayvec-0.5.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.arrayvec-0.5.2.bazel"), ) maybe( @@ -108,7 +108,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "70a6e7ebd44d0047fd48206c83c5cd3214acc7b9d87f001da170145c47ef7d12", strip_prefix = "askama-0.10.3", - build_file = Label("//cargo/remote:askama-0.10.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.askama-0.10.3.bazel"), ) maybe( @@ -118,7 +118,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "e1d7169690c4f56343dcd821ab834972a22570a2662a19a84fd7775d5e1c3881", strip_prefix = "askama_derive-0.10.3", - build_file = Label("//cargo/remote:askama_derive-0.10.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.askama_derive-0.10.3.bazel"), ) maybe( @@ -128,7 +128,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "90c108c1a94380c89d2215d0ac54ce09796823cca0fd91b299cfff3b33e346fb", strip_prefix = "askama_escape-0.10.1", - build_file = Label("//cargo/remote:askama_escape-0.10.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.askama_escape-0.10.1.bazel"), ) maybe( @@ -138,17 +138,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "62fc272363345c8cdc030e4c259d9d028237f8b057dc9bb327772a257bde6bb5", strip_prefix = "askama_shared-0.10.4", - build_file = Label("//cargo/remote:askama_shared-0.10.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.askama_shared-0.10.4.bazel"), ) maybe( http_archive, - name = "raze__async_compression__0_3_5", - url = "https://crates.io/api/v1/crates/async-compression/0.3.5/download", + name = "raze__async_compression__0_3_6", + url = "https://crates.io/api/v1/crates/async-compression/0.3.6/download", type = "tar.gz", - sha256 = "9021768bcce77296b64648cc7a7460e3df99979b97ed5c925c38d1cc83778d98", - strip_prefix = "async-compression-0.3.5", - build_file = Label("//cargo/remote:async-compression-0.3.5.BUILD.bazel"), + sha256 = "fb1ff21a63d3262af46b9f33a826a8d134e2d0d9b2179c86034948b732ea8b2a", + strip_prefix = "async-compression-0.3.6", + build_file = Label("//cargo/remote:BUILD.async-compression-0.3.6.bazel"), ) maybe( @@ -158,7 +158,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", strip_prefix = "atty-0.2.14", - build_file = Label("//cargo/remote:atty-0.2.14.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.atty-0.2.14.bazel"), ) maybe( @@ -168,7 +168,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a", strip_prefix = "autocfg-1.0.1", - build_file = Label("//cargo/remote:autocfg-1.0.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.autocfg-1.0.1.bazel"), ) maybe( @@ -178,7 +178,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "2baad346b2d4e94a24347adeee9c7a93f412ee94b9cc26e5b59dea23848e9f28", strip_prefix = "backtrace-0.3.54", - build_file = Label("//cargo/remote:backtrace-0.3.54.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.backtrace-0.3.54.bazel"), ) maybe( @@ -188,7 +188,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff", strip_prefix = "base64-0.12.3", - build_file = Label("//cargo/remote:base64-0.12.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.base64-0.12.3.bazel"), ) maybe( @@ -198,7 +198,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd", strip_prefix = "base64-0.13.0", - build_file = Label("//cargo/remote:base64-0.13.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.base64-0.13.0.bazel"), ) maybe( @@ -208,7 +208,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693", strip_prefix = "bitflags-1.2.1", - build_file = Label("//cargo/remote:bitflags-1.2.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.bitflags-1.2.1.bazel"), ) maybe( @@ -218,7 +218,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587", strip_prefix = "blake2b_simd-0.5.11", - build_file = Label("//cargo/remote:blake2b_simd-0.5.11.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.blake2b_simd-0.5.11.bazel"), ) maybe( @@ -228,7 +228,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "e9ff35b701f3914bdb8fad3368d822c766ef2858b2583198e41639b936f09d3f", strip_prefix = "blake3-0.3.7", - build_file = Label("//cargo/remote:blake3-0.3.7.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.blake3-0.3.7.bazel"), ) maybe( @@ -238,7 +238,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "2e8c087f005730276d1096a652e92a8bacee2e2472bcc9715a74d2bec38b5820", strip_prefix = "bumpalo-3.4.0", - build_file = Label("//cargo/remote:bumpalo-3.4.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.bumpalo-3.4.0.bazel"), ) maybe( @@ -248,7 +248,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de", strip_prefix = "byteorder-1.3.4", - build_file = Label("//cargo/remote:byteorder-1.3.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.byteorder-1.3.4.bazel"), ) maybe( @@ -258,7 +258,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c", strip_prefix = "bytes-0.4.12", - build_file = Label("//cargo/remote:bytes-0.4.12.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.bytes-0.4.12.bazel"), ) maybe( @@ -268,17 +268,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38", strip_prefix = "bytes-0.5.6", - build_file = Label("//cargo/remote:bytes-0.5.6.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.bytes-0.5.6.bazel"), ) maybe( http_archive, - name = "raze__cc__1_0_61", - url = "https://crates.io/api/v1/crates/cc/1.0.61/download", + name = "raze__cc__1_0_62", + url = "https://crates.io/api/v1/crates/cc/1.0.62/download", type = "tar.gz", - sha256 = "ed67cbde08356238e75fc4656be4749481eeffb09e19f320a25237d5221c985d", - strip_prefix = "cc-1.0.61", - build_file = Label("//cargo/remote:cc-1.0.61.BUILD.bazel"), + sha256 = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40", + strip_prefix = "cc-1.0.62", + build_file = Label("//cargo/remote:BUILD.cc-1.0.62.bazel"), ) maybe( @@ -288,7 +288,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822", strip_prefix = "cfg-if-0.1.10", - build_file = Label("//cargo/remote:cfg-if-0.1.10.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.cfg-if-0.1.10.bazel"), ) maybe( @@ -298,7 +298,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", strip_prefix = "cfg-if-1.0.0", - build_file = Label("//cargo/remote:cfg-if-1.0.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.cfg-if-1.0.0.bazel"), ) maybe( @@ -308,7 +308,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73", strip_prefix = "chrono-0.4.19", - build_file = Label("//cargo/remote:chrono-0.4.19.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.chrono-0.4.19.bazel"), ) maybe( @@ -318,17 +318,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "4344512281c643ae7638bbabc3af17a11307803ec8f0fcad9fae512a8bf36467", strip_prefix = "cloudabi-0.1.0", - build_file = Label("//cargo/remote:cloudabi-0.1.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.cloudabi-0.1.0.bazel"), ) maybe( - new_git_repository, - name = "raze__coarsetime__0_1_14", - remote = "https://github.com/ankitects/rust-coarsetime.git", - shallow_since = "1594611111 +1000", - commit = "f9e2c86216f0f4803bc75404828318fc206dab29", - build_file = Label("//cargo/remote:coarsetime-0.1.14.BUILD.bazel"), - init_submodules = True, + http_archive, + name = "raze__coarsetime__0_1_16", + url = "https://crates.io/api/v1/crates/coarsetime/0.1.16/download", + type = "tar.gz", + sha256 = "0cbaaa2e4f75bd7eff165a3d24345a374efddbe0e90be326e62048937e56f65a", + strip_prefix = "coarsetime-0.1.16", + build_file = Label("//cargo/remote:BUILD.coarsetime-0.1.16.bazel"), ) maybe( @@ -338,27 +338,27 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc", strip_prefix = "constant_time_eq-0.1.5", - build_file = Label("//cargo/remote:constant_time_eq-0.1.5.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.constant_time_eq-0.1.5.bazel"), ) maybe( http_archive, - name = "raze__core_foundation__0_7_0", - url = "https://crates.io/api/v1/crates/core-foundation/0.7.0/download", + name = "raze__core_foundation__0_9_1", + url = "https://crates.io/api/v1/crates/core-foundation/0.9.1/download", type = "tar.gz", - sha256 = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171", - strip_prefix = "core-foundation-0.7.0", - build_file = Label("//cargo/remote:core-foundation-0.7.0.BUILD.bazel"), + sha256 = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62", + strip_prefix = "core-foundation-0.9.1", + build_file = Label("//cargo/remote:BUILD.core-foundation-0.9.1.bazel"), ) maybe( http_archive, - name = "raze__core_foundation_sys__0_7_0", - url = "https://crates.io/api/v1/crates/core-foundation-sys/0.7.0/download", + name = "raze__core_foundation_sys__0_8_2", + url = "https://crates.io/api/v1/crates/core-foundation-sys/0.8.2/download", type = "tar.gz", - sha256 = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac", - strip_prefix = "core-foundation-sys-0.7.0", - build_file = Label("//cargo/remote:core-foundation-sys-0.7.0.BUILD.bazel"), + sha256 = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b", + strip_prefix = "core-foundation-sys-0.8.2", + build_file = Label("//cargo/remote:BUILD.core-foundation-sys-0.8.2.bazel"), ) maybe( @@ -368,7 +368,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a", strip_prefix = "crc32fast-1.2.1", - build_file = Label("//cargo/remote:crc32fast-1.2.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.crc32fast-1.2.1.bazel"), ) maybe( @@ -378,7 +378,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "b153fe7cbef478c567df0f972e02e6d736db11affe43dfc9c56a9374d1adfb87", strip_prefix = "crossbeam-channel-0.4.4", - build_file = Label("//cargo/remote:crossbeam-channel-0.4.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.crossbeam-channel-0.4.4.bazel"), ) maybe( @@ -388,7 +388,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8", strip_prefix = "crossbeam-utils-0.7.2", - build_file = Label("//cargo/remote:crossbeam-utils-0.7.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.crossbeam-utils-0.7.2.bazel"), ) maybe( @@ -398,7 +398,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab", strip_prefix = "crypto-mac-0.8.0", - build_file = Label("//cargo/remote:crypto-mac-0.8.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.crypto-mac-0.8.0.bazel"), ) maybe( @@ -408,7 +408,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "7fbaabec2c953050352311293be5c6aba8e141ba19d6811862b232d6fd020484", strip_prefix = "ctor-0.1.16", - build_file = Label("//cargo/remote:ctor-0.1.16.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.ctor-0.1.16.bazel"), ) maybe( @@ -418,7 +418,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "cb582b60359da160a9477ee80f15c8d784c477e69c217ef2cdd4169c24ea380f", strip_prefix = "derivative-2.1.1", - build_file = Label("//cargo/remote:derivative-2.1.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.derivative-2.1.1.bazel"), ) maybe( @@ -428,7 +428,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066", strip_prefix = "digest-0.9.0", - build_file = Label("//cargo/remote:digest-0.9.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.digest-0.9.0.bazel"), ) maybe( @@ -438,7 +438,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "13aea89a5c93364a98e9b37b2fa237effbb694d5cfe01c5b70941f7eb087d5e3", strip_prefix = "dirs-2.0.2", - build_file = Label("//cargo/remote:dirs-2.0.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.dirs-2.0.2.bazel"), ) maybe( @@ -448,7 +448,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "8e93d7f5705de3e49895a2b5e0b8855a1c27f080192ae9c32a6432d50741a57a", strip_prefix = "dirs-sys-0.3.5", - build_file = Label("//cargo/remote:dirs-sys-0.3.5.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.dirs-sys-0.3.5.bazel"), ) maybe( @@ -458,7 +458,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "134951f4028bdadb9b84baf4232681efbf277da25144b9b0ad65df75946c422b", strip_prefix = "dtoa-0.4.6", - build_file = Label("//cargo/remote:dtoa-0.4.6.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.dtoa-0.4.6.bazel"), ) maybe( @@ -468,7 +468,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457", strip_prefix = "either-1.6.1", - build_file = Label("//cargo/remote:either-1.6.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.either-1.6.1.bazel"), ) maybe( @@ -478,7 +478,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "801bbab217d7f79c0062f4f7205b5d4427c6d1a7bd7aafdd1475f7c59d62b283", strip_prefix = "encoding_rs-0.8.26", - build_file = Label("//cargo/remote:encoding_rs-0.8.26.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.encoding_rs-0.8.26.bazel"), ) maybe( @@ -488,7 +488,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "54532e3223c5af90a6a757c90b5c5521564b07e5e7a958681bcd2afad421cdcd", strip_prefix = "env_logger-0.8.1", - build_file = Label("//cargo/remote:env_logger-0.8.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.env_logger-0.8.1.bazel"), ) maybe( @@ -498,7 +498,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86", strip_prefix = "failure-0.1.8", - build_file = Label("//cargo/remote:failure-0.1.8.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.failure-0.1.8.bazel"), ) maybe( @@ -508,7 +508,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4", strip_prefix = "failure_derive-0.1.8", - build_file = Label("//cargo/remote:failure_derive-0.1.8.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.failure_derive-0.1.8.bazel"), ) maybe( @@ -518,7 +518,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7", strip_prefix = "fallible-iterator-0.2.0", - build_file = Label("//cargo/remote:fallible-iterator-0.2.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.fallible-iterator-0.2.0.bazel"), ) maybe( @@ -528,7 +528,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a", strip_prefix = "fallible-streaming-iterator-0.1.9", - build_file = Label("//cargo/remote:fallible-streaming-iterator-0.1.9.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.fallible-streaming-iterator-0.1.9.bazel"), ) maybe( @@ -538,7 +538,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d", strip_prefix = "fixedbitset-0.2.0", - build_file = Label("//cargo/remote:fixedbitset-0.2.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.fixedbitset-0.2.0.bazel"), ) maybe( @@ -548,7 +548,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "7411863d55df97a419aa64cb4d2f167103ea9d767e2c54a1868b7ac3f6b47129", strip_prefix = "flate2-1.0.19", - build_file = Label("//cargo/remote:flate2-1.0.19.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.flate2-1.0.19.bazel"), ) maybe( @@ -558,17 +558,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ef9e54ec7b674ae3477d948ae790e90ae24d54fb31c2e7173252978d9b09bdfa", strip_prefix = "fluent-0.13.1", - build_file = Label("//cargo/remote:fluent-0.13.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.fluent-0.13.1.bazel"), ) maybe( http_archive, - name = "raze__fluent_bundle__0_13_1", - url = "https://crates.io/api/v1/crates/fluent-bundle/0.13.1/download", + name = "raze__fluent_bundle__0_13_2", + url = "https://crates.io/api/v1/crates/fluent-bundle/0.13.2/download", type = "tar.gz", - sha256 = "a79916560098f0a57215a489e37b7fc83088949eab7f7977dcc329b254d50c17", - strip_prefix = "fluent-bundle-0.13.1", - build_file = Label("//cargo/remote:fluent-bundle-0.13.1.BUILD.bazel"), + sha256 = "092ebd50cd3f8a6d664bf156e3550d2f7232fbe446da6707d727cca53f707ce2", + strip_prefix = "fluent-bundle-0.13.2", + build_file = Label("//cargo/remote:BUILD.fluent-bundle-0.13.2.bazel"), ) maybe( @@ -578,7 +578,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "2c4ad0989667548f06ccd0e306ed56b61bd4d35458d54df5ec7587c0e8ed5e94", strip_prefix = "fluent-langneg-0.13.0", - build_file = Label("//cargo/remote:fluent-langneg-0.13.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.fluent-langneg-0.13.0.bazel"), ) maybe( @@ -588,7 +588,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "9389354f858e38f37d9a249133611a1fcaec469f44773b04ddbd82f4f08d49eb", strip_prefix = "fluent-syntax-0.10.0", - build_file = Label("//cargo/remote:fluent-syntax-0.10.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.fluent-syntax-0.10.0.bazel"), ) maybe( @@ -598,7 +598,37 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1", strip_prefix = "fnv-1.0.7", - build_file = Label("//cargo/remote:fnv-1.0.7.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.fnv-1.0.7.bazel"), + ) + + maybe( + http_archive, + name = "raze__foreign_types__0_3_2", + url = "https://crates.io/api/v1/crates/foreign-types/0.3.2/download", + type = "tar.gz", + sha256 = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1", + strip_prefix = "foreign-types-0.3.2", + build_file = Label("//cargo/remote:BUILD.foreign-types-0.3.2.bazel"), + ) + + maybe( + http_archive, + name = "raze__foreign_types_shared__0_1_1", + url = "https://crates.io/api/v1/crates/foreign-types-shared/0.1.1/download", + type = "tar.gz", + sha256 = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b", + strip_prefix = "foreign-types-shared-0.1.1", + build_file = Label("//cargo/remote:BUILD.foreign-types-shared-0.1.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__form_urlencoded__1_0_0", + url = "https://crates.io/api/v1/crates/form_urlencoded/1.0.0/download", + type = "tar.gz", + sha256 = "ece68d15c92e84fa4f19d3780f1294e5ca82a78a6d515f1efaabcc144688be00", + strip_prefix = "form_urlencoded-1.0.0", + build_file = Label("//cargo/remote:BUILD.form_urlencoded-1.0.0.bazel"), ) maybe( @@ -608,7 +638,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82", strip_prefix = "fuchsia-zircon-0.3.3", - build_file = Label("//cargo/remote:fuchsia-zircon-0.3.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.fuchsia-zircon-0.3.3.bazel"), ) maybe( @@ -618,97 +648,97 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7", strip_prefix = "fuchsia-zircon-sys-0.3.3", - build_file = Label("//cargo/remote:fuchsia-zircon-sys-0.3.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.fuchsia-zircon-sys-0.3.3.bazel"), ) maybe( http_archive, - name = "raze__futures__0_3_7", - url = "https://crates.io/api/v1/crates/futures/0.3.7/download", + name = "raze__futures__0_3_8", + url = "https://crates.io/api/v1/crates/futures/0.3.8/download", type = "tar.gz", - sha256 = "95314d38584ffbfda215621d723e0a3906f032e03ae5551e650058dac83d4797", - strip_prefix = "futures-0.3.7", - build_file = Label("//cargo/remote:futures-0.3.7.BUILD.bazel"), + sha256 = "9b3b0c040a1fe6529d30b3c5944b280c7f0dcb2930d2c3062bca967b602583d0", + strip_prefix = "futures-0.3.8", + build_file = Label("//cargo/remote:BUILD.futures-0.3.8.bazel"), ) maybe( http_archive, - name = "raze__futures_channel__0_3_7", - url = "https://crates.io/api/v1/crates/futures-channel/0.3.7/download", + name = "raze__futures_channel__0_3_8", + url = "https://crates.io/api/v1/crates/futures-channel/0.3.8/download", type = "tar.gz", - sha256 = "0448174b01148032eed37ac4aed28963aaaa8cfa93569a08e5b479bbc6c2c151", - strip_prefix = "futures-channel-0.3.7", - build_file = Label("//cargo/remote:futures-channel-0.3.7.BUILD.bazel"), + sha256 = "4b7109687aa4e177ef6fe84553af6280ef2778bdb7783ba44c9dc3399110fe64", + strip_prefix = "futures-channel-0.3.8", + build_file = Label("//cargo/remote:BUILD.futures-channel-0.3.8.bazel"), ) maybe( http_archive, - name = "raze__futures_core__0_3_7", - url = "https://crates.io/api/v1/crates/futures-core/0.3.7/download", + name = "raze__futures_core__0_3_8", + url = "https://crates.io/api/v1/crates/futures-core/0.3.8/download", type = "tar.gz", - sha256 = "18eaa56102984bed2c88ea39026cff3ce3b4c7f508ca970cedf2450ea10d4e46", - strip_prefix = "futures-core-0.3.7", - build_file = Label("//cargo/remote:futures-core-0.3.7.BUILD.bazel"), + sha256 = "847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748", + strip_prefix = "futures-core-0.3.8", + build_file = Label("//cargo/remote:BUILD.futures-core-0.3.8.bazel"), ) maybe( http_archive, - name = "raze__futures_executor__0_3_7", - url = "https://crates.io/api/v1/crates/futures-executor/0.3.7/download", + name = "raze__futures_executor__0_3_8", + url = "https://crates.io/api/v1/crates/futures-executor/0.3.8/download", type = "tar.gz", - sha256 = "f5f8e0c9258abaea85e78ebdda17ef9666d390e987f006be6080dfe354b708cb", - strip_prefix = "futures-executor-0.3.7", - build_file = Label("//cargo/remote:futures-executor-0.3.7.BUILD.bazel"), + sha256 = "4caa2b2b68b880003057c1dd49f1ed937e38f22fcf6c212188a121f08cf40a65", + strip_prefix = "futures-executor-0.3.8", + build_file = Label("//cargo/remote:BUILD.futures-executor-0.3.8.bazel"), ) maybe( http_archive, - name = "raze__futures_io__0_3_7", - url = "https://crates.io/api/v1/crates/futures-io/0.3.7/download", + name = "raze__futures_io__0_3_8", + url = "https://crates.io/api/v1/crates/futures-io/0.3.8/download", type = "tar.gz", - sha256 = "6e1798854a4727ff944a7b12aa999f58ce7aa81db80d2dfaaf2ba06f065ddd2b", - strip_prefix = "futures-io-0.3.7", - build_file = Label("//cargo/remote:futures-io-0.3.7.BUILD.bazel"), + sha256 = "611834ce18aaa1bd13c4b374f5d653e1027cf99b6b502584ff8c9a64413b30bb", + strip_prefix = "futures-io-0.3.8", + build_file = Label("//cargo/remote:BUILD.futures-io-0.3.8.bazel"), ) maybe( http_archive, - name = "raze__futures_macro__0_3_7", - url = "https://crates.io/api/v1/crates/futures-macro/0.3.7/download", + name = "raze__futures_macro__0_3_8", + url = "https://crates.io/api/v1/crates/futures-macro/0.3.8/download", type = "tar.gz", - sha256 = "e36fccf3fc58563b4a14d265027c627c3b665d7fed489427e88e7cc929559efe", - strip_prefix = "futures-macro-0.3.7", - build_file = Label("//cargo/remote:futures-macro-0.3.7.BUILD.bazel"), + sha256 = "77408a692f1f97bcc61dc001d752e00643408fbc922e4d634c655df50d595556", + strip_prefix = "futures-macro-0.3.8", + build_file = Label("//cargo/remote:BUILD.futures-macro-0.3.8.bazel"), ) maybe( http_archive, - name = "raze__futures_sink__0_3_7", - url = "https://crates.io/api/v1/crates/futures-sink/0.3.7/download", + name = "raze__futures_sink__0_3_8", + url = "https://crates.io/api/v1/crates/futures-sink/0.3.8/download", type = "tar.gz", - sha256 = "0e3ca3f17d6e8804ae5d3df7a7d35b2b3a6fe89dac84b31872720fc3060a0b11", - strip_prefix = "futures-sink-0.3.7", - build_file = Label("//cargo/remote:futures-sink-0.3.7.BUILD.bazel"), + sha256 = "f878195a49cee50e006b02b93cf7e0a95a38ac7b776b4c4d9cc1207cd20fcb3d", + strip_prefix = "futures-sink-0.3.8", + build_file = Label("//cargo/remote:BUILD.futures-sink-0.3.8.bazel"), ) maybe( http_archive, - name = "raze__futures_task__0_3_7", - url = "https://crates.io/api/v1/crates/futures-task/0.3.7/download", + name = "raze__futures_task__0_3_8", + url = "https://crates.io/api/v1/crates/futures-task/0.3.8/download", type = "tar.gz", - sha256 = "96d502af37186c4fef99453df03e374683f8a1eec9dcc1e66b3b82dc8278ce3c", - strip_prefix = "futures-task-0.3.7", - build_file = Label("//cargo/remote:futures-task-0.3.7.BUILD.bazel"), + sha256 = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d", + strip_prefix = "futures-task-0.3.8", + build_file = Label("//cargo/remote:BUILD.futures-task-0.3.8.bazel"), ) maybe( http_archive, - name = "raze__futures_util__0_3_7", - url = "https://crates.io/api/v1/crates/futures-util/0.3.7/download", + name = "raze__futures_util__0_3_8", + url = "https://crates.io/api/v1/crates/futures-util/0.3.8/download", type = "tar.gz", - sha256 = "abcb44342f62e6f3e8ac427b8aa815f724fd705dfad060b18ac7866c15bb8e34", - strip_prefix = "futures-util-0.3.7", - build_file = Label("//cargo/remote:futures-util-0.3.7.BUILD.bazel"), + sha256 = "d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2", + strip_prefix = "futures-util-0.3.8", + build_file = Label("//cargo/remote:BUILD.futures-util-0.3.8.bazel"), ) maybe( @@ -718,7 +748,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c", strip_prefix = "fxhash-0.2.1", - build_file = Label("//cargo/remote:fxhash-0.2.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.fxhash-0.2.1.bazel"), ) maybe( @@ -728,7 +758,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817", strip_prefix = "generic-array-0.14.4", - build_file = Label("//cargo/remote:generic-array-0.14.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.generic-array-0.14.4.bazel"), ) maybe( @@ -738,7 +768,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "fc587bc0ec293155d5bfa6b9891ec18a1e330c234f896ea47fbada4cadbe47e6", strip_prefix = "getrandom-0.1.15", - build_file = Label("//cargo/remote:getrandom-0.1.15.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.getrandom-0.1.15.bazel"), ) maybe( @@ -748,7 +778,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1a5bcf1bbeab73aa4cf2fde60a846858dc036163c7c33bec309f8d17de785479", strip_prefix = "ghost-0.1.2", - build_file = Label("//cargo/remote:ghost-0.1.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.ghost-0.1.2.bazel"), ) maybe( @@ -758,7 +788,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce", strip_prefix = "gimli-0.23.0", - build_file = Label("//cargo/remote:gimli-0.23.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.gimli-0.23.0.bazel"), ) maybe( @@ -768,7 +798,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "5e4728fd124914ad25e99e3d15a9361a879f6620f63cb56bbb08f95abb97a535", strip_prefix = "h2-0.2.7", - build_file = Label("//cargo/remote:h2-0.2.7.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.h2-0.2.7.bazel"), ) maybe( @@ -778,7 +808,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04", strip_prefix = "hashbrown-0.9.1", - build_file = Label("//cargo/remote:hashbrown-0.9.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.hashbrown-0.9.1.bazel"), ) maybe( @@ -788,7 +818,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d99cf782f0dc4372d26846bec3de7804ceb5df083c2d4462c0b8d2330e894fa8", strip_prefix = "hashlink-0.6.0", - build_file = Label("//cargo/remote:hashlink-0.6.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.hashlink-0.6.0.bazel"), ) maybe( @@ -798,7 +828,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205", strip_prefix = "heck-0.3.1", - build_file = Label("//cargo/remote:heck-0.3.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.heck-0.3.1.bazel"), ) maybe( @@ -808,7 +838,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8", strip_prefix = "hermit-abi-0.1.17", - build_file = Label("//cargo/remote:hermit-abi-0.1.17.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.hermit-abi-0.1.17.bazel"), ) maybe( @@ -818,7 +848,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35", strip_prefix = "hex-0.4.2", - build_file = Label("//cargo/remote:hex-0.4.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.hex-0.4.2.bazel"), ) maybe( @@ -828,7 +858,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "e9025058dae765dee5070ec375f591e2ba14638c63feff74f13805a72e523163", strip_prefix = "htmlescape-0.3.1", - build_file = Label("//cargo/remote:htmlescape-0.3.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.htmlescape-0.3.1.bazel"), ) maybe( @@ -838,7 +868,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "28d569972648b2c512421b5f2a405ad6ac9666547189d0c5477a3f200f3e02f9", strip_prefix = "http-0.2.1", - build_file = Label("//cargo/remote:http-0.2.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.http-0.2.1.bazel"), ) maybe( @@ -848,7 +878,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b", strip_prefix = "http-body-0.3.1", - build_file = Label("//cargo/remote:http-body-0.3.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.http-body-0.3.1.bazel"), ) maybe( @@ -858,7 +888,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9", strip_prefix = "httparse-1.3.4", - build_file = Label("//cargo/remote:httparse-1.3.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.httparse-1.3.4.bazel"), ) maybe( @@ -868,7 +898,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47", strip_prefix = "httpdate-0.3.2", - build_file = Label("//cargo/remote:httpdate-0.3.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.httpdate-0.3.2.bazel"), ) maybe( @@ -878,7 +908,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "b6cab2627acfc432780848602f3f558f7e9dd427352224b0d9324025796d2a5e", strip_prefix = "humansize-1.1.0", - build_file = Label("//cargo/remote:humansize-1.1.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.humansize-1.1.0.bazel"), ) maybe( @@ -888,7 +918,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a", strip_prefix = "humantime-2.0.1", - build_file = Label("//cargo/remote:humantime-2.0.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.humantime-2.0.1.bazel"), ) maybe( @@ -898,7 +928,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f6ad767baac13b44d4529fcf58ba2cd0995e36e7b435bc5b039de6f47e880dbf", strip_prefix = "hyper-0.13.9", - build_file = Label("//cargo/remote:hyper-0.13.9.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.hyper-0.13.9.bazel"), ) maybe( @@ -908,7 +938,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "37743cc83e8ee85eacfce90f2f4102030d9ff0a95244098d781e9bee4a90abb6", strip_prefix = "hyper-rustls-0.21.0", - build_file = Label("//cargo/remote:hyper-rustls-0.21.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.hyper-rustls-0.21.0.bazel"), ) maybe( @@ -917,10 +947,20 @@ def raze_fetch_remote_crates(): remote = "https://github.com/ankitects/hyper-timeout.git", shallow_since = "1604362633 +1000", commit = "f9ef687120d88744c1da50a222e19208b4553503", - build_file = Label("//cargo/remote:hyper-timeout-0.3.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.hyper-timeout-0.3.1.bazel"), init_submodules = True, ) + maybe( + http_archive, + name = "raze__hyper_tls__0_4_3", + url = "https://crates.io/api/v1/crates/hyper-tls/0.4.3/download", + type = "tar.gz", + sha256 = "d979acc56dcb5b8dddba3917601745e877576475aa046df3226eabdecef78eed", + strip_prefix = "hyper-tls-0.4.3", + build_file = Label("//cargo/remote:BUILD.hyper-tls-0.4.3.bazel"), + ) + maybe( http_archive, name = "raze__idna__0_2_0", @@ -928,7 +968,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9", strip_prefix = "idna-0.2.0", - build_file = Label("//cargo/remote:idna-0.2.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.idna-0.2.0.bazel"), ) maybe( @@ -938,7 +978,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "55e2e4c765aa53a0424761bf9f41aa7a6ac1efa87238f59560640e27fca028f2", strip_prefix = "indexmap-1.6.0", - build_file = Label("//cargo/remote:indexmap-1.6.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.indexmap-1.6.0.bazel"), ) maybe( @@ -948,7 +988,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "47741a8bc60fb26eb8d6e0238bbb26d8575ff623fdc97b1a2c00c050b9684ed8", strip_prefix = "indoc-0.3.6", - build_file = Label("//cargo/remote:indoc-0.3.6.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.indoc-0.3.6.bazel"), ) maybe( @@ -958,7 +998,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ce046d161f000fffde5f432a0d034d0341dc152643b2598ed5bfce44c4f3a8f0", strip_prefix = "indoc-impl-0.3.6", - build_file = Label("//cargo/remote:indoc-impl-0.3.6.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.indoc-impl-0.3.6.bazel"), ) maybe( @@ -968,7 +1008,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "cb1fc4429a33e1f80d41dc9fea4d108a88bec1de8053878898ae448a0b52f613", strip_prefix = "instant-0.1.8", - build_file = Label("//cargo/remote:instant-0.1.8.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.instant-0.1.8.bazel"), ) maybe( @@ -978,7 +1018,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "8a0ed58ba6089d49f8a9a7d5e16fc9b9e2019cdf40ef270f3d465fa244d9630b", strip_prefix = "intl-memoizer-0.5.0", - build_file = Label("//cargo/remote:intl-memoizer-0.5.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.intl-memoizer-0.5.0.bazel"), ) maybe( @@ -988,7 +1028,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "6c271cdb1f12a9feb3a017619c3ee681f971f270f6757341d6abe1f9f7a98bc3", strip_prefix = "intl_pluralrules-7.0.0", - build_file = Label("//cargo/remote:intl_pluralrules-7.0.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.intl_pluralrules-7.0.0.bazel"), ) maybe( @@ -998,7 +1038,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "fedd49de24d8c263613701406611410687148ae8c37cd6452650b250f753a0dd", strip_prefix = "inventory-0.1.9", - build_file = Label("//cargo/remote:inventory-0.1.9.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.inventory-0.1.9.bazel"), ) maybe( @@ -1008,7 +1048,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ddead8880bc50f57fcd3b5869a7f6ff92570bb4e8f6870c22e2483272f2256da", strip_prefix = "inventory-impl-0.1.9", - build_file = Label("//cargo/remote:inventory-impl-0.1.9.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.inventory-impl-0.1.9.bazel"), ) maybe( @@ -1018,7 +1058,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e", strip_prefix = "iovec-0.1.4", - build_file = Label("//cargo/remote:iovec-0.1.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.iovec-0.1.4.bazel"), ) maybe( @@ -1028,7 +1068,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135", strip_prefix = "ipnet-2.3.0", - build_file = Label("//cargo/remote:ipnet-2.3.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.ipnet-2.3.0.bazel"), ) maybe( @@ -1038,7 +1078,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b", strip_prefix = "itertools-0.9.0", - build_file = Label("//cargo/remote:itertools-0.9.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.itertools-0.9.0.bazel"), ) maybe( @@ -1048,7 +1088,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6", strip_prefix = "itoa-0.4.6", - build_file = Label("//cargo/remote:itoa-0.4.6.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.itoa-0.4.6.bazel"), ) maybe( @@ -1058,7 +1098,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ca059e81d9486668f12d455a4ea6daa600bd408134cd17e3d3fb5a32d1f016f8", strip_prefix = "js-sys-0.3.45", - build_file = Label("//cargo/remote:js-sys-0.3.45.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.js-sys-0.3.45.bazel"), ) maybe( @@ -1068,7 +1108,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d", strip_prefix = "kernel32-sys-0.2.2", - build_file = Label("//cargo/remote:kernel32-sys-0.2.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.kernel32-sys-0.2.2.bazel"), ) maybe( @@ -1078,7 +1118,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", strip_prefix = "lazy_static-1.4.0", - build_file = Label("//cargo/remote:lazy_static-1.4.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.lazy_static-1.4.0.bazel"), ) maybe( @@ -1088,7 +1128,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "db65c6da02e61f55dae90a0ae427b2a5f6b3e8db09f58d10efab23af92592616", strip_prefix = "lexical-core-0.7.4", - build_file = Label("//cargo/remote:lexical-core-0.7.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.lexical-core-0.7.4.bazel"), ) maybe( @@ -1098,7 +1138,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614", strip_prefix = "libc-0.2.80", - build_file = Label("//cargo/remote:libc-0.2.80.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.libc-0.2.80.bazel"), ) maybe( @@ -1108,7 +1148,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "64d31059f22935e6c31830db5249ba2b7ecd54fd73a9909286f0a67aa55c2fbd", strip_prefix = "libsqlite3-sys-0.20.1", - build_file = Label("//cargo/remote:libsqlite3-sys-0.20.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.libsqlite3-sys-0.20.1.bazel"), ) maybe( @@ -1118,7 +1158,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "28247cc5a5be2f05fbcd76dd0cf2c7d3b5400cb978a28042abcd4fa0b3f8261c", strip_prefix = "lock_api-0.4.1", - build_file = Label("//cargo/remote:lock_api-0.4.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.lock_api-0.4.1.bazel"), ) maybe( @@ -1128,7 +1168,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b", strip_prefix = "log-0.4.11", - build_file = Label("//cargo/remote:log-0.4.11.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.log-0.4.11.bazel"), ) maybe( @@ -1138,7 +1178,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08", strip_prefix = "matches-0.1.8", - build_file = Label("//cargo/remote:matches-0.1.8.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.matches-0.1.8.bazel"), ) maybe( @@ -1148,7 +1188,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00", strip_prefix = "maybe-uninit-2.0.0", - build_file = Label("//cargo/remote:maybe-uninit-2.0.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.maybe-uninit-2.0.0.bazel"), ) maybe( @@ -1158,7 +1198,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525", strip_prefix = "memchr-2.3.4", - build_file = Label("//cargo/remote:memchr-2.3.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.memchr-2.3.4.bazel"), ) maybe( @@ -1168,7 +1208,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d", strip_prefix = "mime-0.3.16", - build_file = Label("//cargo/remote:mime-0.3.16.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.mime-0.3.16.bazel"), ) maybe( @@ -1178,7 +1218,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "2684d4c2e97d99848d30b324b00c8fcc7e5c897b7cbb5819b09e7c90e8baf212", strip_prefix = "mime_guess-2.0.3", - build_file = Label("//cargo/remote:mime_guess-2.0.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.mime_guess-2.0.3.bazel"), ) maybe( @@ -1188,7 +1228,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d", strip_prefix = "miniz_oxide-0.4.3", - build_file = Label("//cargo/remote:miniz_oxide-0.4.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.miniz_oxide-0.4.3.bazel"), ) maybe( @@ -1198,7 +1238,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430", strip_prefix = "mio-0.6.22", - build_file = Label("//cargo/remote:mio-0.6.22.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.mio-0.6.22.bazel"), ) maybe( @@ -1208,7 +1248,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919", strip_prefix = "miow-0.2.1", - build_file = Label("//cargo/remote:miow-0.2.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.miow-0.2.1.bazel"), ) maybe( @@ -1218,7 +1258,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1255076139a83bb467426e7f8d0134968a8118844faa755985e077cf31850333", strip_prefix = "multimap-0.8.2", - build_file = Label("//cargo/remote:multimap-0.8.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.multimap-0.8.2.bazel"), + ) + + maybe( + http_archive, + name = "raze__native_tls__0_2_6", + url = "https://crates.io/api/v1/crates/native-tls/0.2.6/download", + type = "tar.gz", + sha256 = "6fcc7939b5edc4e4f86b1b4a04bb1498afaaf871b1a6691838ed06fcb48d3a3f", + strip_prefix = "native-tls-0.2.6", + build_file = Label("//cargo/remote:BUILD.native-tls-0.2.6.bazel"), ) maybe( @@ -1228,7 +1278,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "3ebc3ec692ed7c9a255596c67808dee269f64655d8baf7b4f0638e51ba1d6853", strip_prefix = "net2-0.2.35", - build_file = Label("//cargo/remote:net2-0.2.35.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.net2-0.2.35.bazel"), ) maybe( @@ -1238,7 +1288,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb", strip_prefix = "nodrop-0.1.14", - build_file = Label("//cargo/remote:nodrop-0.1.14.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.nodrop-0.1.14.bazel"), ) maybe( @@ -1248,7 +1298,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ffb4262d26ed83a1c0a33a38fe2bb15797329c85770da05e6b828ddb782627af", strip_prefix = "nom-5.1.2", - build_file = Label("//cargo/remote:nom-5.1.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.nom-5.1.2.bazel"), ) maybe( @@ -1258,7 +1308,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "bafe4179722c2894288ee77a9f044f02811c86af699344c498b0840c698a2465", strip_prefix = "num-format-0.4.0", - build_file = Label("//cargo/remote:num-format-0.4.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.num-format-0.4.0.bazel"), ) maybe( @@ -1268,7 +1318,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db", strip_prefix = "num-integer-0.1.44", - build_file = Label("//cargo/remote:num-integer-0.1.44.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.num-integer-0.1.44.bazel"), ) maybe( @@ -1278,7 +1328,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290", strip_prefix = "num-traits-0.2.14", - build_file = Label("//cargo/remote:num-traits-0.2.14.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.num-traits-0.2.14.bazel"), ) maybe( @@ -1288,7 +1338,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3", strip_prefix = "num_cpus-1.13.0", - build_file = Label("//cargo/remote:num_cpus-1.13.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.num_cpus-1.13.0.bazel"), ) maybe( @@ -1298,7 +1348,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "226b45a5c2ac4dd696ed30fa6b94b057ad909c7b7fc2e0d0808192bced894066", strip_prefix = "num_enum-0.5.1", - build_file = Label("//cargo/remote:num_enum-0.5.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.num_enum-0.5.1.bazel"), ) maybe( @@ -1308,7 +1358,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1c0fd9eba1d5db0994a239e09c1be402d35622277e35468ba891aa5e3188ce7e", strip_prefix = "num_enum_derive-0.5.1", - build_file = Label("//cargo/remote:num_enum_derive-0.5.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.num_enum_derive-0.5.1.bazel"), ) maybe( @@ -1318,17 +1368,27 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397", strip_prefix = "object-0.22.0", - build_file = Label("//cargo/remote:object-0.22.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.object-0.22.0.bazel"), ) maybe( http_archive, - name = "raze__once_cell__1_4_1", - url = "https://crates.io/api/v1/crates/once_cell/1.4.1/download", + name = "raze__once_cell__1_5_2", + url = "https://crates.io/api/v1/crates/once_cell/1.5.2/download", type = "tar.gz", - sha256 = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad", - strip_prefix = "once_cell-1.4.1", - build_file = Label("//cargo/remote:once_cell-1.4.1.BUILD.bazel"), + sha256 = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0", + strip_prefix = "once_cell-1.5.2", + build_file = Label("//cargo/remote:BUILD.once_cell-1.5.2.bazel"), + ) + + maybe( + http_archive, + name = "raze__openssl__0_10_30", + url = "https://crates.io/api/v1/crates/openssl/0.10.30/download", + type = "tar.gz", + sha256 = "8d575eff3665419f9b83678ff2815858ad9d11567e082f5ac1814baba4e2bcb4", + strip_prefix = "openssl-0.10.30", + build_file = Label("//cargo/remote:BUILD.openssl-0.10.30.bazel"), ) maybe( @@ -1338,7 +1398,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de", strip_prefix = "openssl-probe-0.1.2", - build_file = Label("//cargo/remote:openssl-probe-0.1.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.openssl-probe-0.1.2.bazel"), + ) + + maybe( + http_archive, + name = "raze__openssl_sys__0_9_58", + url = "https://crates.io/api/v1/crates/openssl-sys/0.9.58/download", + type = "tar.gz", + sha256 = "a842db4709b604f0fe5d1170ae3565899be2ad3d9cbc72dedc789ac0511f78de", + strip_prefix = "openssl-sys-0.9.58", + build_file = Label("//cargo/remote:BUILD.openssl-sys-0.9.58.bazel"), ) maybe( @@ -1348,7 +1418,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "a4893845fa2ca272e647da5d0e46660a314ead9c2fdd9a883aabc32e481a8733", strip_prefix = "parking_lot-0.11.0", - build_file = Label("//cargo/remote:parking_lot-0.11.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.parking_lot-0.11.0.bazel"), ) maybe( @@ -1358,7 +1428,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "c361aa727dd08437f2f1447be8b59a33b0edd15e0fcee698f935613d9efbca9b", strip_prefix = "parking_lot_core-0.8.0", - build_file = Label("//cargo/remote:parking_lot_core-0.8.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.parking_lot_core-0.8.0.bazel"), ) maybe( @@ -1368,7 +1438,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "45ca20c77d80be666aef2b45486da86238fabe33e38306bd3118fe4af33fa880", strip_prefix = "paste-0.1.18", - build_file = Label("//cargo/remote:paste-0.1.18.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.paste-0.1.18.bazel"), ) maybe( @@ -1378,7 +1448,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d95a7db200b97ef370c8e6de0088252f7e0dfff7d047a28528e47456c0fc98b6", strip_prefix = "paste-impl-0.1.18", - build_file = Label("//cargo/remote:paste-impl-0.1.18.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.paste-impl-0.1.18.bazel"), ) maybe( @@ -1388,7 +1458,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e", strip_prefix = "percent-encoding-2.1.0", - build_file = Label("//cargo/remote:percent-encoding-2.1.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.percent-encoding-2.1.0.bazel"), ) maybe( @@ -1398,7 +1468,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7", strip_prefix = "petgraph-0.5.1", - build_file = Label("//cargo/remote:petgraph-0.5.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.petgraph-0.5.1.bazel"), ) maybe( @@ -1408,7 +1478,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "2ffbc8e94b38ea3d2d8ba92aea2983b503cd75d0888d75b86bb37970b5698e15", strip_prefix = "pin-project-0.4.27", - build_file = Label("//cargo/remote:pin-project-0.4.27.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.pin-project-0.4.27.bazel"), ) maybe( @@ -1418,7 +1488,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ee41d838744f60d959d7074e3afb6b35c7456d0f61cad38a24e35e6553f73841", strip_prefix = "pin-project-1.0.1", - build_file = Label("//cargo/remote:pin-project-1.0.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.pin-project-1.0.1.bazel"), ) maybe( @@ -1428,7 +1498,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "65ad2ae56b6abe3a1ee25f15ee605bacadb9a764edaba9c2bf4103800d4a1895", strip_prefix = "pin-project-internal-0.4.27", - build_file = Label("//cargo/remote:pin-project-internal-0.4.27.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.pin-project-internal-0.4.27.bazel"), ) maybe( @@ -1438,7 +1508,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "81a4ffa594b66bff340084d4081df649a7dc049ac8d7fc458d8e628bfbbb2f86", strip_prefix = "pin-project-internal-1.0.1", - build_file = Label("//cargo/remote:pin-project-internal-1.0.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.pin-project-internal-1.0.1.bazel"), ) maybe( @@ -1448,7 +1518,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b", strip_prefix = "pin-project-lite-0.1.11", - build_file = Label("//cargo/remote:pin-project-lite-0.1.11.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.pin-project-lite-0.1.11.bazel"), ) maybe( @@ -1458,7 +1528,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184", strip_prefix = "pin-utils-0.1.0", - build_file = Label("//cargo/remote:pin-utils-0.1.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.pin-utils-0.1.0.bazel"), ) maybe( @@ -1468,7 +1538,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c", strip_prefix = "pkg-config-0.3.19", - build_file = Label("//cargo/remote:pkg-config-0.3.19.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.pkg-config-0.3.19.bazel"), ) maybe( @@ -1478,7 +1548,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "b18befed8bc2b61abc79a457295e7e838417326da1586050b919414073977f19", strip_prefix = "podio-0.1.7", - build_file = Label("//cargo/remote:podio-0.1.7.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.podio-0.1.7.bazel"), ) maybe( @@ -1488,7 +1558,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857", strip_prefix = "ppv-lite86-0.2.10", - build_file = Label("//cargo/remote:ppv-lite86-0.2.10.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.ppv-lite86-0.2.10.bazel"), ) maybe( @@ -1498,7 +1568,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785", strip_prefix = "proc-macro-crate-0.1.5", - build_file = Label("//cargo/remote:proc-macro-crate-0.1.5.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.proc-macro-crate-0.1.5.bazel"), ) maybe( @@ -1508,7 +1578,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5", strip_prefix = "proc-macro-hack-0.5.19", - build_file = Label("//cargo/remote:proc-macro-hack-0.5.19.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.proc-macro-hack-0.5.19.bazel"), ) maybe( @@ -1518,7 +1588,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "eba180dafb9038b050a4c280019bbedf9f2467b61e5d892dcad585bb57aadc5a", strip_prefix = "proc-macro-nested-0.1.6", - build_file = Label("//cargo/remote:proc-macro-nested-0.1.6.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.proc-macro-nested-0.1.6.bazel"), ) maybe( @@ -1528,7 +1598,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71", strip_prefix = "proc-macro2-1.0.24", - build_file = Label("//cargo/remote:proc-macro2-1.0.24.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.proc-macro2-1.0.24.bazel"), ) maybe( @@ -1537,7 +1607,7 @@ def raze_fetch_remote_crates(): remote = "https://github.com/danburkert/prost.git", shallow_since = "1598739849 -0700", commit = "4ded4a98ef339da0b7babd4efee3fbe8adaf746b", - build_file = Label("//cargo/remote:prost-0.6.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.prost-0.6.1.bazel"), init_submodules = True, ) @@ -1547,7 +1617,7 @@ def raze_fetch_remote_crates(): remote = "https://github.com/danburkert/prost.git", shallow_since = "1598739849 -0700", commit = "4ded4a98ef339da0b7babd4efee3fbe8adaf746b", - build_file = Label("//cargo/remote:prost-build-0.6.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.prost-build-0.6.1.bazel"), init_submodules = True, ) @@ -1557,7 +1627,7 @@ def raze_fetch_remote_crates(): remote = "https://github.com/danburkert/prost.git", shallow_since = "1598739849 -0700", commit = "4ded4a98ef339da0b7babd4efee3fbe8adaf746b", - build_file = Label("//cargo/remote:prost-derive-0.6.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.prost-derive-0.6.1.bazel"), init_submodules = True, ) @@ -1567,7 +1637,7 @@ def raze_fetch_remote_crates(): remote = "https://github.com/danburkert/prost.git", shallow_since = "1598739849 -0700", commit = "4ded4a98ef339da0b7babd4efee3fbe8adaf746b", - build_file = Label("//cargo/remote:prost-types-0.6.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.prost-types-0.6.1.bazel"), init_submodules = True, ) @@ -1577,7 +1647,7 @@ def raze_fetch_remote_crates(): remote = "https://github.com/PyO3/pyo3.git", shallow_since = "1603809036 +0900", commit = "3b3ba4e3abd57bc3b8f86444b3f61e6e2f4c5fc1", - build_file = Label("//cargo/remote:pyo3-0.12.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.pyo3-0.12.3.bazel"), init_submodules = True, ) @@ -1587,7 +1657,7 @@ def raze_fetch_remote_crates(): remote = "https://github.com/PyO3/pyo3.git", shallow_since = "1603809036 +0900", commit = "3b3ba4e3abd57bc3b8f86444b3f61e6e2f4c5fc1", - build_file = Label("//cargo/remote:pyo3-derive-backend-0.12.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.pyo3-derive-backend-0.12.3.bazel"), init_submodules = True, ) @@ -1597,7 +1667,7 @@ def raze_fetch_remote_crates(): remote = "https://github.com/PyO3/pyo3.git", shallow_since = "1603809036 +0900", commit = "3b3ba4e3abd57bc3b8f86444b3f61e6e2f4c5fc1", - build_file = Label("//cargo/remote:pyo3cls-0.12.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.pyo3cls-0.12.3.bazel"), init_submodules = True, ) @@ -1608,7 +1678,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37", strip_prefix = "quote-1.0.7", - build_file = Label("//cargo/remote:quote-1.0.7.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.quote-1.0.7.bazel"), ) maybe( @@ -1618,7 +1688,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03", strip_prefix = "rand-0.7.3", - build_file = Label("//cargo/remote:rand-0.7.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.rand-0.7.3.bazel"), ) maybe( @@ -1628,7 +1698,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402", strip_prefix = "rand_chacha-0.2.2", - build_file = Label("//cargo/remote:rand_chacha-0.2.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.rand_chacha-0.2.2.bazel"), ) maybe( @@ -1638,7 +1708,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19", strip_prefix = "rand_core-0.5.1", - build_file = Label("//cargo/remote:rand_core-0.5.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.rand_core-0.5.1.bazel"), ) maybe( @@ -1648,7 +1718,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c", strip_prefix = "rand_hc-0.2.0", - build_file = Label("//cargo/remote:rand_hc-0.2.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.rand_hc-0.2.0.bazel"), ) maybe( @@ -1658,7 +1728,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce", strip_prefix = "redox_syscall-0.1.57", - build_file = Label("//cargo/remote:redox_syscall-0.1.57.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.redox_syscall-0.1.57.bazel"), ) maybe( @@ -1668,7 +1738,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d", strip_prefix = "redox_users-0.3.5", - build_file = Label("//cargo/remote:redox_users-0.3.5.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.redox_users-0.3.5.bazel"), ) maybe( @@ -1678,7 +1748,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c", strip_prefix = "regex-1.4.2", - build_file = Label("//cargo/remote:regex-1.4.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.regex-1.4.2.bazel"), ) maybe( @@ -1688,7 +1758,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189", strip_prefix = "regex-syntax-0.6.21", - build_file = Label("//cargo/remote:regex-syntax-0.6.21.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.regex-syntax-0.6.21.bazel"), ) maybe( @@ -1698,7 +1768,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7", strip_prefix = "remove_dir_all-0.5.3", - build_file = Label("//cargo/remote:remove_dir_all-0.5.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.remove_dir_all-0.5.3.bazel"), ) maybe( @@ -1708,7 +1778,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "8545debe98b2b139fb04cad8618b530e9b07c152d99a5de83c860b877d67847f", strip_prefix = "rental-0.5.5", - build_file = Label("//cargo/remote:rental-0.5.5.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.rental-0.5.5.bazel"), ) maybe( @@ -1718,7 +1788,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "475e68978dc5b743f2f40d8e0a8fdc83f1c5e78cbf4b8fa5e74e73beebc340de", strip_prefix = "rental-impl-0.5.5", - build_file = Label("//cargo/remote:rental-impl-0.5.5.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.rental-impl-0.5.5.bazel"), ) maybe( @@ -1727,7 +1797,7 @@ def raze_fetch_remote_crates(): remote = "https://github.com/ankitects/reqwest.git", shallow_since = "1604362745 +1000", commit = "eab12efe22f370f386d99c7d90e7a964e85dd071", - build_file = Label("//cargo/remote:reqwest-0.10.8.BUILD.bazel"), + build_file = Label("//cargo:BUILD.reqwest.bazel"), init_submodules = True, ) @@ -1738,7 +1808,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "952cd6b98c85bbc30efa1ba5783b8abf12fec8b3287ffa52605b9432313e34e4", strip_prefix = "ring-0.16.15", - build_file = Label("//cargo/remote:ring-0.16.15.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.ring-0.16.15.bazel"), ) maybe( @@ -1748,7 +1818,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "7e3d4791ab5517217f51216a84a688b53c1ebf7988736469c538d02f46ddba68", strip_prefix = "rusqlite-0.24.1", - build_file = Label("//cargo/remote:rusqlite-0.24.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.rusqlite-0.24.1.bazel"), ) maybe( @@ -1758,7 +1828,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "9dab61250775933275e84053ac235621dfb739556d5c54a2f2e9313b7cf43a19", strip_prefix = "rust-argon2-0.8.2", - build_file = Label("//cargo/remote:rust-argon2-0.8.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.rust-argon2-0.8.2.bazel"), ) maybe( @@ -1768,7 +1838,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232", strip_prefix = "rustc-demangle-0.1.18", - build_file = Label("//cargo/remote:rustc-demangle-0.1.18.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.rustc-demangle-0.1.18.bazel"), ) maybe( @@ -1778,17 +1848,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "5d1126dcf58e93cee7d098dbda643b5f92ed724f1f6a63007c1116eed6700c81", strip_prefix = "rustls-0.18.1", - build_file = Label("//cargo/remote:rustls-0.18.1.BUILD.bazel"), - ) - - maybe( - http_archive, - name = "raze__rustls_native_certs__0_4_0", - url = "https://crates.io/api/v1/crates/rustls-native-certs/0.4.0/download", - type = "tar.gz", - sha256 = "629d439a7672da82dd955498445e496ee2096fe2117b9f796558a43fdb9e59b8", - strip_prefix = "rustls-native-certs-0.4.0", - build_file = Label("//cargo/remote:rustls-native-certs-0.4.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.rustls-0.18.1.bazel"), ) maybe( @@ -1798,7 +1858,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e", strip_prefix = "ryu-1.0.5", - build_file = Label("//cargo/remote:ryu-1.0.5.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.ryu-1.0.5.bazel"), ) maybe( @@ -1808,7 +1868,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75", strip_prefix = "schannel-0.1.19", - build_file = Label("//cargo/remote:schannel-0.1.19.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.schannel-0.1.19.bazel"), ) maybe( @@ -1818,7 +1878,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd", strip_prefix = "scopeguard-1.1.0", - build_file = Label("//cargo/remote:scopeguard-1.1.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.scopeguard-1.1.0.bazel"), ) maybe( @@ -1828,27 +1888,27 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "e3042af939fca8c3453b7af0f1c66e533a15a86169e39de2657310ade8f98d3c", strip_prefix = "sct-0.6.0", - build_file = Label("//cargo/remote:sct-0.6.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.sct-0.6.0.bazel"), ) maybe( http_archive, - name = "raze__security_framework__1_0_0", - url = "https://crates.io/api/v1/crates/security-framework/1.0.0/download", + name = "raze__security_framework__2_0_0", + url = "https://crates.io/api/v1/crates/security-framework/2.0.0/download", type = "tar.gz", - sha256 = "ad502866817f0575705bd7be36e2b2535cc33262d493aa733a2ec862baa2bc2b", - strip_prefix = "security-framework-1.0.0", - build_file = Label("//cargo/remote:security-framework-1.0.0.BUILD.bazel"), + sha256 = "c1759c2e3c8580017a484a7ac56d3abc5a6c1feadf88db2f3633f12ae4268c69", + strip_prefix = "security-framework-2.0.0", + build_file = Label("//cargo/remote:BUILD.security-framework-2.0.0.bazel"), ) maybe( http_archive, - name = "raze__security_framework_sys__1_0_0", - url = "https://crates.io/api/v1/crates/security-framework-sys/1.0.0/download", + name = "raze__security_framework_sys__2_0_0", + url = "https://crates.io/api/v1/crates/security-framework-sys/2.0.0/download", type = "tar.gz", - sha256 = "51ceb04988b17b6d1dcd555390fa822ca5637b4a14e1f5099f13d351bed4d6c7", - strip_prefix = "security-framework-sys-1.0.0", - build_file = Label("//cargo/remote:security-framework-sys-1.0.0.BUILD.bazel"), + sha256 = "f99b9d5e26d2a71633cc4f2ebae7cc9f874044e0c351a27e17892d76dce5678b", + strip_prefix = "security-framework-sys-2.0.0", + build_file = Label("//cargo/remote:BUILD.security-framework-sys-2.0.0.bazel"), ) maybe( @@ -1858,7 +1918,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a", strip_prefix = "serde-1.0.117", - build_file = Label("//cargo/remote:serde-1.0.117.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.serde-1.0.117.bazel"), ) maybe( @@ -1868,7 +1928,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ae50f53d4b01e854319c1f5b854cd59471f054ea7e554988850d3f36ca1dc852", strip_prefix = "serde-aux-0.6.1", - build_file = Label("//cargo/remote:serde-aux-0.6.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.serde-aux-0.6.1.bazel"), ) maybe( @@ -1878,7 +1938,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e", strip_prefix = "serde_derive-1.0.117", - build_file = Label("//cargo/remote:serde_derive-1.0.117.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.serde_derive-1.0.117.bazel"), ) maybe( @@ -1888,7 +1948,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "dcac07dbffa1c65e7f816ab9eba78eb142c6d44410f4eeba1e26e4f5dfa56b95", strip_prefix = "serde_json-1.0.59", - build_file = Label("//cargo/remote:serde_json-1.0.59.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.serde_json-1.0.59.bazel"), ) maybe( @@ -1898,7 +1958,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "2dc6b7951b17b051f3210b063f12cc17320e2fe30ae05b0fe2a3abb068551c76", strip_prefix = "serde_repr-0.1.6", - build_file = Label("//cargo/remote:serde_repr-0.1.6.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.serde_repr-0.1.6.bazel"), ) maybe( @@ -1908,7 +1968,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f4f025b91216f15a2a32aa39669329a475733590a015835d1783549a56d09427", strip_prefix = "serde_tuple-0.5.0", - build_file = Label("//cargo/remote:serde_tuple-0.5.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.serde_tuple-0.5.0.bazel"), ) maybe( @@ -1918,7 +1978,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "4076151d1a2b688e25aaf236997933c66e18b870d0369f8b248b8ab2be630d7e", strip_prefix = "serde_tuple_macros-0.5.0", - build_file = Label("//cargo/remote:serde_tuple_macros-0.5.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.serde_tuple_macros-0.5.0.bazel"), ) maybe( @@ -1928,7 +1988,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "9ec5d77e2d4c73717816afac02670d5c4f534ea95ed430442cad02e7a6e32c97", strip_prefix = "serde_urlencoded-0.6.1", - build_file = Label("//cargo/remote:serde_urlencoded-0.6.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.serde_urlencoded-0.6.1.bazel"), ) maybe( @@ -1938,7 +1998,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d", strip_prefix = "sha1-0.6.0", - build_file = Label("//cargo/remote:sha1-0.6.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.sha1-0.6.0.bazel"), ) maybe( @@ -1948,7 +2008,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8", strip_prefix = "slab-0.4.2", - build_file = Label("//cargo/remote:slab-0.4.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.slab-0.4.2.bazel"), ) maybe( @@ -1958,7 +2018,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1cc9c640a4adbfbcc11ffb95efe5aa7af7309e002adab54b185507dbf2377b99", strip_prefix = "slog-2.5.2", - build_file = Label("//cargo/remote:slog-2.5.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.slog-2.5.2.bazel"), ) maybe( @@ -1968,7 +2028,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "51b3336ce47ce2f96673499fc07eb85e3472727b9a7a2959964b002c2ce8fbbb", strip_prefix = "slog-async-2.5.0", - build_file = Label("//cargo/remote:slog-async-2.5.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.slog-async-2.5.0.bazel"), ) maybe( @@ -1978,7 +2038,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "906a1a0bc43fed692df4b82a5e2fbfc3733db8dad8bb514ab27a4f23ad04f5c0", strip_prefix = "slog-envlogger-2.2.0", - build_file = Label("//cargo/remote:slog-envlogger-2.2.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.slog-envlogger-2.2.0.bazel"), ) maybe( @@ -1988,7 +2048,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "7c44c89dd8b0ae4537d1ae318353eaf7840b4869c536e31c41e963d1ea523ee6", strip_prefix = "slog-scope-4.3.0", - build_file = Label("//cargo/remote:slog-scope-4.3.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.slog-scope-4.3.0.bazel"), ) maybe( @@ -1998,7 +2058,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "8228ab7302adbf4fcb37e66f3cda78003feb521e7fd9e3847ec117a7784d0f5a", strip_prefix = "slog-stdlog-4.1.0", - build_file = Label("//cargo/remote:slog-stdlog-4.1.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.slog-stdlog-4.1.0.bazel"), ) maybe( @@ -2008,7 +2068,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "bab1d807cf71129b05ce36914e1dbb6fbfbdecaf686301cb457f4fa967f9f5b6", strip_prefix = "slog-term-2.6.0", - build_file = Label("//cargo/remote:slog-term-2.6.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.slog-term-2.6.0.bazel"), ) maybe( @@ -2018,17 +2078,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252", strip_prefix = "smallvec-1.4.2", - build_file = Label("//cargo/remote:smallvec-1.4.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.smallvec-1.4.2.bazel"), ) maybe( http_archive, - name = "raze__socket2__0_3_15", - url = "https://crates.io/api/v1/crates/socket2/0.3.15/download", + name = "raze__socket2__0_3_16", + url = "https://crates.io/api/v1/crates/socket2/0.3.16/download", type = "tar.gz", - sha256 = "b1fa70dc5c8104ec096f4fe7ede7a221d35ae13dcd19ba1ad9a81d2cab9a1c44", - strip_prefix = "socket2-0.3.15", - build_file = Label("//cargo/remote:socket2-0.3.15.BUILD.bazel"), + sha256 = "7fd8b795c389288baa5f355489c65e71fd48a02104600d15c4cfbc561e9e429d", + strip_prefix = "socket2-0.3.16", + build_file = Label("//cargo/remote:BUILD.socket2-0.3.16.bazel"), ) maybe( @@ -2038,7 +2098,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d", strip_prefix = "spin-0.5.2", - build_file = Label("//cargo/remote:spin-0.5.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.spin-0.5.2.bazel"), ) maybe( @@ -2048,7 +2108,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3", strip_prefix = "stable_deref_trait-1.2.0", - build_file = Label("//cargo/remote:stable_deref_trait-1.2.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.stable_deref_trait-1.2.0.bazel"), ) maybe( @@ -2058,7 +2118,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f", strip_prefix = "static_assertions-1.1.0", - build_file = Label("//cargo/remote:static_assertions-1.1.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.static_assertions-1.1.0.bazel"), ) maybe( @@ -2068,7 +2128,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "343f3f510c2915908f155e94f17220b19ccfacf2a64a2a5d8004f2c3e311e7fd", strip_prefix = "subtle-2.3.0", - build_file = Label("//cargo/remote:subtle-2.3.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.subtle-2.3.0.bazel"), ) maybe( @@ -2078,7 +2138,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac", strip_prefix = "syn-1.0.48", - build_file = Label("//cargo/remote:syn-1.0.48.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.syn-1.0.48.bazel"), ) maybe( @@ -2088,7 +2148,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701", strip_prefix = "synstructure-0.12.4", - build_file = Label("//cargo/remote:synstructure-0.12.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.synstructure-0.12.4.bazel"), ) maybe( @@ -2098,7 +2158,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f764005d11ee5f36500a149ace24e00e3da98b0158b3e2d53a7495660d3f4d60", strip_prefix = "take_mut-0.2.2", - build_file = Label("//cargo/remote:take_mut-0.2.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.take_mut-0.2.2.bazel"), ) maybe( @@ -2108,7 +2168,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9", strip_prefix = "tempfile-3.1.0", - build_file = Label("//cargo/remote:tempfile-3.1.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.tempfile-3.1.0.bazel"), ) maybe( @@ -2118,7 +2178,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "c0863a3345e70f61d613eab32ee046ccd1bcc5f9105fe402c61fcd0c13eeb8b5", strip_prefix = "term-0.6.1", - build_file = Label("//cargo/remote:term-0.6.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.term-0.6.1.bazel"), ) maybe( @@ -2128,27 +2188,27 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f", strip_prefix = "termcolor-1.1.0", - build_file = Label("//cargo/remote:termcolor-1.1.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.termcolor-1.1.0.bazel"), ) maybe( http_archive, - name = "raze__thiserror__1_0_21", - url = "https://crates.io/api/v1/crates/thiserror/1.0.21/download", + name = "raze__thiserror__1_0_22", + url = "https://crates.io/api/v1/crates/thiserror/1.0.22/download", type = "tar.gz", - sha256 = "318234ffa22e0920fe9a40d7b8369b5f649d490980cf7aadcf1eb91594869b42", - strip_prefix = "thiserror-1.0.21", - build_file = Label("//cargo/remote:thiserror-1.0.21.BUILD.bazel"), + sha256 = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e", + strip_prefix = "thiserror-1.0.22", + build_file = Label("//cargo/remote:BUILD.thiserror-1.0.22.bazel"), ) maybe( http_archive, - name = "raze__thiserror_impl__1_0_21", - url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.21/download", + name = "raze__thiserror_impl__1_0_22", + url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.22/download", type = "tar.gz", - sha256 = "cae2447b6282786c3493999f40a9be2a6ad20cb8bd268b0a0dbf5a065535c0ab", - strip_prefix = "thiserror-impl-1.0.21", - build_file = Label("//cargo/remote:thiserror-impl-1.0.21.BUILD.bazel"), + sha256 = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56", + strip_prefix = "thiserror-impl-1.0.22", + build_file = Label("//cargo/remote:BUILD.thiserror-impl-1.0.22.bazel"), ) maybe( @@ -2158,7 +2218,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14", strip_prefix = "thread_local-1.0.1", - build_file = Label("//cargo/remote:thread_local-1.0.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.thread_local-1.0.1.bazel"), ) maybe( @@ -2168,7 +2228,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255", strip_prefix = "time-0.1.44", - build_file = Label("//cargo/remote:time-0.1.44.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.time-0.1.44.bazel"), ) maybe( @@ -2178,27 +2238,37 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "29738eedb4388d9ea620eeab9384884fc3f06f586a2eddb56bedc5885126c7c1", strip_prefix = "tinystr-0.3.4", - build_file = Label("//cargo/remote:tinystr-0.3.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.tinystr-0.3.4.bazel"), ) maybe( http_archive, - name = "raze__tinyvec__0_3_4", - url = "https://crates.io/api/v1/crates/tinyvec/0.3.4/download", + name = "raze__tinyvec__1_0_1", + url = "https://crates.io/api/v1/crates/tinyvec/1.0.1/download", type = "tar.gz", - sha256 = "238ce071d267c5710f9d31451efec16c5ee22de34df17cc05e56cbc92e967117", - strip_prefix = "tinyvec-0.3.4", - build_file = Label("//cargo/remote:tinyvec-0.3.4.BUILD.bazel"), + sha256 = "b78a366903f506d2ad52ca8dc552102ffdd3e937ba8a227f024dc1d1eae28575", + strip_prefix = "tinyvec-1.0.1", + build_file = Label("//cargo/remote:BUILD.tinyvec-1.0.1.bazel"), ) maybe( http_archive, - name = "raze__tokio__0_2_22", - url = "https://crates.io/api/v1/crates/tokio/0.2.22/download", + name = "raze__tinyvec_macros__0_1_0", + url = "https://crates.io/api/v1/crates/tinyvec_macros/0.1.0/download", type = "tar.gz", - sha256 = "5d34ca54d84bf2b5b4d7d31e901a8464f7b60ac145a284fba25ceb801f2ddccd", - strip_prefix = "tokio-0.2.22", - build_file = Label("//cargo/remote:tokio-0.2.22.BUILD.bazel"), + sha256 = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c", + strip_prefix = "tinyvec_macros-0.1.0", + build_file = Label("//cargo/remote:BUILD.tinyvec_macros-0.1.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tokio__0_2_23", + url = "https://crates.io/api/v1/crates/tokio/0.2.23/download", + type = "tar.gz", + sha256 = "a6d7ad61edd59bfcc7e80dababf0f4aed2e6d5e0ba1659356ae889752dfc12ff", + strip_prefix = "tokio-0.2.23", + build_file = Label("//cargo/remote:BUILD.tokio-0.2.23.bazel"), ) maybe( @@ -2207,7 +2277,7 @@ def raze_fetch_remote_crates(): remote = "https://github.com/ankitects/tokio-io-timeout.git", shallow_since = "1598411535 +1000", commit = "96e1358555c49905de89170f2b1102a7d8b6c4c2", - build_file = Label("//cargo/remote:tokio-io-timeout-0.4.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.tokio-io-timeout-0.4.0.bazel"), init_submodules = True, ) @@ -2218,7 +2288,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "e12831b255bcfa39dc0436b01e19fea231a37db570686c06ee72c423479f889a", strip_prefix = "tokio-rustls-0.14.1", - build_file = Label("//cargo/remote:tokio-rustls-0.14.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.tokio-rustls-0.14.1.bazel"), ) maybe( @@ -2228,7 +2298,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d611fd5d241872372d52a0a3d309c52d0b95a6a67671a6c8f7ab2c4a37fb2539", strip_prefix = "tokio-socks-0.3.0", - build_file = Label("//cargo/remote:tokio-socks-0.3.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.tokio-socks-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tokio_tls__0_3_1", + url = "https://crates.io/api/v1/crates/tokio-tls/0.3.1/download", + type = "tar.gz", + sha256 = "9a70f4fcd7b3b24fb194f837560168208f669ca8cb70d0c4b862944452396343", + strip_prefix = "tokio-tls-0.3.1", + build_file = Label("//cargo/remote:BUILD.tokio-tls-0.3.1.bazel"), ) maybe( @@ -2238,7 +2318,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "be8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499", strip_prefix = "tokio-util-0.3.1", - build_file = Label("//cargo/remote:tokio-util-0.3.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.tokio-util-0.3.1.bazel"), ) maybe( @@ -2248,7 +2328,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "75cf45bb0bef80604d001caaec0d09da99611b3c0fd39d3080468875cdb65645", strip_prefix = "toml-0.5.7", - build_file = Label("//cargo/remote:toml-0.5.7.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.toml-0.5.7.bazel"), ) maybe( @@ -2258,7 +2338,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860", strip_prefix = "tower-service-0.3.0", - build_file = Label("//cargo/remote:tower-service-0.3.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.tower-service-0.3.0.bazel"), ) maybe( @@ -2268,7 +2348,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "b0987850db3733619253fe60e17cb59b82d37c7e6c0236bb81e4d6b87c879f27", strip_prefix = "tracing-0.1.21", - build_file = Label("//cargo/remote:tracing-0.1.21.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.tracing-0.1.21.bazel"), ) maybe( @@ -2278,7 +2358,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f50de3927f93d202783f4513cda820ab47ef17f624b03c096e86ef00c67e6b5f", strip_prefix = "tracing-core-0.1.17", - build_file = Label("//cargo/remote:tracing-core-0.1.17.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.tracing-core-0.1.17.bazel"), ) maybe( @@ -2288,7 +2368,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ab7bb6f14721aa00656086e9335d363c5c8747bae02ebe32ea2c7dece5689b4c", strip_prefix = "tracing-futures-0.2.4", - build_file = Label("//cargo/remote:tracing-futures-0.2.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.tracing-futures-0.2.4.bazel"), ) maybe( @@ -2298,7 +2378,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642", strip_prefix = "try-lock-0.2.3", - build_file = Label("//cargo/remote:try-lock-0.2.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.try-lock-0.2.3.bazel"), ) maybe( @@ -2308,7 +2388,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "9d2741b1474c327d95c1f1e3b0a2c3977c8e128409c572a33af2914e7d636717", strip_prefix = "type-map-0.3.0", - build_file = Label("//cargo/remote:type-map-0.3.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.type-map-0.3.0.bazel"), ) maybe( @@ -2318,7 +2398,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33", strip_prefix = "typenum-1.12.0", - build_file = Label("//cargo/remote:typenum-1.12.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.typenum-1.12.0.bazel"), ) maybe( @@ -2328,7 +2408,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "73328fcd730a030bdb19ddf23e192187a6b01cd98be6d3140622a89129459ce5", strip_prefix = "unic-langid-0.9.0", - build_file = Label("//cargo/remote:unic-langid-0.9.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.unic-langid-0.9.0.bazel"), ) maybe( @@ -2338,7 +2418,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1a4a8eeaf0494862c1404c95ec2f4c33a2acff5076f64314b465e3ddae1b934d", strip_prefix = "unic-langid-impl-0.9.0", - build_file = Label("//cargo/remote:unic-langid-impl-0.9.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.unic-langid-impl-0.9.0.bazel"), ) maybe( @@ -2348,7 +2428,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "18f980d6d87e8805f2836d64b4138cc95aa7986fa63b1f51f67d5fbff64dd6e5", strip_prefix = "unic-langid-macros-0.9.0", - build_file = Label("//cargo/remote:unic-langid-macros-0.9.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.unic-langid-macros-0.9.0.bazel"), ) maybe( @@ -2358,7 +2438,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "29396ffd97e27574c3e01368b1a64267d3064969e4848e2e130ff668be9daa9f", strip_prefix = "unic-langid-macros-impl-0.9.0", - build_file = Label("//cargo/remote:unic-langid-macros-impl-0.9.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.unic-langid-macros-impl-0.9.0.bazel"), ) maybe( @@ -2368,7 +2448,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6", strip_prefix = "unicase-2.6.0", - build_file = Label("//cargo/remote:unicase-2.6.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.unicase-2.6.0.bazel"), ) maybe( @@ -2378,27 +2458,27 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5", strip_prefix = "unicode-bidi-0.3.4", - build_file = Label("//cargo/remote:unicode-bidi-0.3.4.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.unicode-bidi-0.3.4.bazel"), ) maybe( http_archive, - name = "raze__unicode_normalization__0_1_13", - url = "https://crates.io/api/v1/crates/unicode-normalization/0.1.13/download", + name = "raze__unicode_normalization__0_1_14", + url = "https://crates.io/api/v1/crates/unicode-normalization/0.1.14/download", type = "tar.gz", - sha256 = "6fb19cf769fa8c6a80a162df694621ebeb4dafb606470b2b2fce0be40a98a977", - strip_prefix = "unicode-normalization-0.1.13", - build_file = Label("//cargo/remote:unicode-normalization-0.1.13.BUILD.bazel"), + sha256 = "b7f98e67a4d84f730d343392f9bfff7d21e3fca562b9cb7a43b768350beeddc6", + strip_prefix = "unicode-normalization-0.1.14", + build_file = Label("//cargo/remote:BUILD.unicode-normalization-0.1.14.bazel"), ) maybe( http_archive, - name = "raze__unicode_segmentation__1_6_0", - url = "https://crates.io/api/v1/crates/unicode-segmentation/1.6.0/download", + name = "raze__unicode_segmentation__1_7_0", + url = "https://crates.io/api/v1/crates/unicode-segmentation/1.7.0/download", type = "tar.gz", - sha256 = "e83e153d1053cbb5a118eeff7fd5be06ed99153f00dbcd8ae310c5fb2b22edc0", - strip_prefix = "unicode-segmentation-1.6.0", - build_file = Label("//cargo/remote:unicode-segmentation-1.6.0.BUILD.bazel"), + sha256 = "db8716a166f290ff49dabc18b44aa407cb7c6dbe1aa0971b44b8a24b0ca35aae", + strip_prefix = "unicode-segmentation-1.7.0", + build_file = Label("//cargo/remote:BUILD.unicode-segmentation-1.7.0.bazel"), ) maybe( @@ -2408,7 +2488,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564", strip_prefix = "unicode-xid-0.2.1", - build_file = Label("//cargo/remote:unicode-xid-0.2.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.unicode-xid-0.2.1.bazel"), ) maybe( @@ -2418,7 +2498,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f14ee04d9415b52b3aeab06258a3f07093182b88ba0f9b8d203f211a7a7d41c7", strip_prefix = "unindent-0.1.7", - build_file = Label("//cargo/remote:unindent-0.1.7.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.unindent-0.1.7.bazel"), ) maybe( @@ -2428,17 +2508,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a", strip_prefix = "untrusted-0.7.1", - build_file = Label("//cargo/remote:untrusted-0.7.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.untrusted-0.7.1.bazel"), ) maybe( http_archive, - name = "raze__url__2_1_1", - url = "https://crates.io/api/v1/crates/url/2.1.1/download", + name = "raze__url__2_2_0", + url = "https://crates.io/api/v1/crates/url/2.2.0/download", type = "tar.gz", - sha256 = "829d4a8476c35c9bf0bbce5a3b23f4106f79728039b726d292bb93bc106787cb", - strip_prefix = "url-2.1.1", - build_file = Label("//cargo/remote:url-2.1.1.BUILD.bazel"), + sha256 = "5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976e", + strip_prefix = "url-2.2.0", + build_file = Label("//cargo/remote:BUILD.url-2.2.0.bazel"), ) maybe( @@ -2448,7 +2528,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "91baa0c65eabd12fcbdac8cc35ff16159cab95cae96d0222d6d0271db6193cef", strip_prefix = "utime-0.3.1", - build_file = Label("//cargo/remote:utime-0.3.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.utime-0.3.1.bazel"), ) maybe( @@ -2458,7 +2538,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "6454029bf181f092ad1b853286f23e2c507d8e8194d01d92da4a55c274a5508c", strip_prefix = "vcpkg-0.2.10", - build_file = Label("//cargo/remote:vcpkg-0.2.10.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.vcpkg-0.2.10.bazel"), ) maybe( @@ -2468,7 +2548,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed", strip_prefix = "version_check-0.9.2", - build_file = Label("//cargo/remote:version_check-0.9.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.version_check-0.9.2.bazel"), ) maybe( @@ -2478,7 +2558,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0", strip_prefix = "want-0.3.0", - build_file = Label("//cargo/remote:want-0.3.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.want-0.3.0.bazel"), ) maybe( @@ -2488,7 +2568,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f", strip_prefix = "wasi-0.10.0+wasi-snapshot-preview1", - build_file = Label("//cargo/remote:wasi-0.10.0+wasi-snapshot-preview1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.wasi-0.10.0+wasi-snapshot-preview1.bazel"), ) maybe( @@ -2498,7 +2578,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519", strip_prefix = "wasi-0.9.0+wasi-snapshot-preview1", - build_file = Label("//cargo/remote:wasi-0.9.0+wasi-snapshot-preview1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel"), ) maybe( @@ -2508,7 +2588,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1ac64ead5ea5f05873d7c12b545865ca2b8d28adfc50a49b84770a3a97265d42", strip_prefix = "wasm-bindgen-0.2.68", - build_file = Label("//cargo/remote:wasm-bindgen-0.2.68.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.wasm-bindgen-0.2.68.bazel"), ) maybe( @@ -2518,7 +2598,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f22b422e2a757c35a73774860af8e112bff612ce6cb604224e8e47641a9e4f68", strip_prefix = "wasm-bindgen-backend-0.2.68", - build_file = Label("//cargo/remote:wasm-bindgen-backend-0.2.68.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.wasm-bindgen-backend-0.2.68.bazel"), ) maybe( @@ -2528,7 +2608,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "b7866cab0aa01de1edf8b5d7936938a7e397ee50ce24119aef3e1eaa3b6171da", strip_prefix = "wasm-bindgen-futures-0.4.18", - build_file = Label("//cargo/remote:wasm-bindgen-futures-0.4.18.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.wasm-bindgen-futures-0.4.18.bazel"), ) maybe( @@ -2538,7 +2618,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "6b13312a745c08c469f0b292dd2fcd6411dba5f7160f593da6ef69b64e407038", strip_prefix = "wasm-bindgen-macro-0.2.68", - build_file = Label("//cargo/remote:wasm-bindgen-macro-0.2.68.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.wasm-bindgen-macro-0.2.68.bazel"), ) maybe( @@ -2548,7 +2628,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "f249f06ef7ee334cc3b8ff031bfc11ec99d00f34d86da7498396dc1e3b1498fe", strip_prefix = "wasm-bindgen-macro-support-0.2.68", - build_file = Label("//cargo/remote:wasm-bindgen-macro-support-0.2.68.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.wasm-bindgen-macro-support-0.2.68.bazel"), ) maybe( @@ -2558,7 +2638,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "1d649a3145108d7d3fbcde896a468d1bd636791823c9921135218ad89be08307", strip_prefix = "wasm-bindgen-shared-0.2.68", - build_file = Label("//cargo/remote:wasm-bindgen-shared-0.2.68.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.wasm-bindgen-shared-0.2.68.bazel"), ) maybe( @@ -2568,7 +2648,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "4bf6ef87ad7ae8008e15a355ce696bed26012b7caa21605188cfd8214ab51e2d", strip_prefix = "web-sys-0.3.45", - build_file = Label("//cargo/remote:web-sys-0.3.45.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.web-sys-0.3.45.bazel"), ) maybe( @@ -2578,7 +2658,17 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ab146130f5f790d45f82aeeb09e55a256573373ec64409fc19a6fb82fb1032ae", strip_prefix = "webpki-0.21.3", - build_file = Label("//cargo/remote:webpki-0.21.3.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.webpki-0.21.3.bazel"), + ) + + maybe( + http_archive, + name = "raze__webpki_roots__0_20_0", + url = "https://crates.io/api/v1/crates/webpki-roots/0.20.0/download", + type = "tar.gz", + sha256 = "0f20dea7535251981a9670857150d571846545088359b28e4951d350bdaf179f", + strip_prefix = "webpki-roots-0.20.0", + build_file = Label("//cargo/remote:BUILD.webpki-roots-0.20.0.bazel"), ) maybe( @@ -2588,7 +2678,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "87c14ef7e1b8b8ecfc75d5eca37949410046e66f15d185c01d70824f1f8111ef", strip_prefix = "which-4.0.2", - build_file = Label("//cargo/remote:which-4.0.2.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.which-4.0.2.bazel"), ) maybe( @@ -2598,7 +2688,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a", strip_prefix = "winapi-0.2.8", - build_file = Label("//cargo/remote:winapi-0.2.8.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.winapi-0.2.8.bazel"), ) maybe( @@ -2608,7 +2698,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", strip_prefix = "winapi-0.3.9", - build_file = Label("//cargo/remote:winapi-0.3.9.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.winapi-0.3.9.bazel"), ) maybe( @@ -2618,7 +2708,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc", strip_prefix = "winapi-build-0.1.1", - build_file = Label("//cargo/remote:winapi-build-0.1.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.winapi-build-0.1.1.bazel"), ) maybe( @@ -2628,7 +2718,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("//cargo/remote:winapi-i686-pc-windows-gnu-0.4.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), ) maybe( @@ -2638,7 +2728,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178", strip_prefix = "winapi-util-0.1.5", - build_file = Label("//cargo/remote:winapi-util-0.1.5.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.winapi-util-0.1.5.bazel"), ) maybe( @@ -2648,7 +2738,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("//cargo/remote:winapi-x86_64-pc-windows-gnu-0.4.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) maybe( @@ -2658,7 +2748,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69", strip_prefix = "winreg-0.7.0", - build_file = Label("//cargo/remote:winreg-0.7.0.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.winreg-0.7.0.bazel"), ) maybe( @@ -2668,7 +2758,7 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e", strip_prefix = "ws2_32-sys-0.2.1", - build_file = Label("//cargo/remote:ws2_32-sys-0.2.1.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.ws2_32-sys-0.2.1.bazel"), ) maybe( @@ -2678,5 +2768,5 @@ def raze_fetch_remote_crates(): type = "tar.gz", sha256 = "58287c28d78507f5f91f2a4cf1e8310e2c76fd4c6932f93ac60fd1ceb402db7d", strip_prefix = "zip-0.5.6", - build_file = Label("//cargo/remote:zip-0.5.6.BUILD.bazel"), + build_file = Label("//cargo/remote:BUILD.zip-0.5.6.bazel"), ) diff --git a/cargo/licenses.json b/cargo/licenses.json new file mode 100644 index 000000000..6f18c5f62 --- /dev/null +++ b/cargo/licenses.json @@ -0,0 +1,2495 @@ +[ + { + "name": "addr2line", + "version": "0.14.0", + "authors": "Nick Fitzgerald |Philip Craig |Jon Gjengset |Noah Bergbauer ", + "repository": "https://github.com/gimli-rs/addr2line", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A cross-platform symbolication library written in Rust, using `gimli`" + }, + { + "name": "adler", + "version": "0.2.3", + "authors": "Jonas Schievink ", + "repository": "https://github.com/jonas-schievink/adler.git", + "license": "0BSD OR MIT OR Apache-2.0", + "license_file": null, + "description": "A simple clean-room implementation of the Adler-32 checksum" + }, + { + "name": "ahash", + "version": "0.4.6", + "authors": "Tom Kaitchuck ", + "repository": "https://github.com/tkaitchuck/ahash", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "A non-cryptographic hash function using AES-NI for high performance" + }, + { + "name": "aho-corasick", + "version": "0.7.15", + "authors": "Andrew Gallant ", + "repository": "https://github.com/BurntSushi/aho-corasick", + "license": "MIT/Unlicense", + "license_file": null, + "description": "Fast multiple substring searching." + }, + { + "name": "anyhow", + "version": "1.0.34", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/anyhow", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Flexible concrete Error type built on std::error::Error" + }, + { + "name": "arc-swap", + "version": "0.4.7", + "authors": "Michal 'vorner' Vaner ", + "repository": "https://github.com/vorner/arc-swap", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Atomically swappable Arc" + }, + { + "name": "arrayref", + "version": "0.3.6", + "authors": "David Roundy ", + "repository": "https://github.com/droundy/arrayref", + "license": "BSD-2-Clause", + "license_file": null, + "description": "Macros to take array references of slices" + }, + { + "name": "arrayvec", + "version": "0.4.12", + "authors": "bluss", + "repository": "https://github.com/bluss/arrayvec", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A vector with fixed capacity, backed by an array (it can be stored on the stack too). Implements fixed capacity ArrayVec and ArrayString." + }, + { + "name": "arrayvec", + "version": "0.5.2", + "authors": "bluss", + "repository": "https://github.com/bluss/arrayvec", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A vector with fixed capacity, backed by an array (it can be stored on the stack too). Implements fixed capacity ArrayVec and ArrayString." + }, + { + "name": "askama", + "version": "0.10.3", + "authors": "Dirkjan Ochtman ", + "repository": "https://github.com/djc/askama", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Type-safe, compiled Jinja-like templates for Rust" + }, + { + "name": "askama_derive", + "version": "0.10.3", + "authors": "Dirkjan Ochtman ", + "repository": "https://github.com/djc/askama", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Procedural macro package for Askama" + }, + { + "name": "askama_escape", + "version": "0.10.1", + "authors": "Dirkjan Ochtman ", + "repository": "https://github.com/djc/askama", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Optimized HTML escaping code, extracted from Askama" + }, + { + "name": "askama_shared", + "version": "0.10.4", + "authors": "Dirkjan Ochtman ", + "repository": "https://github.com/djc/askama", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Shared code for Askama" + }, + { + "name": "async-compression", + "version": "0.3.6", + "authors": "Wim Looman |Allen Bui ", + "repository": "https://github.com/Nemo157/async-compression", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Adaptors between compression crates and Rust's modern asynchronous IO types." + }, + { + "name": "atty", + "version": "0.2.14", + "authors": "softprops ", + "repository": "https://github.com/softprops/atty", + "license": "MIT", + "license_file": null, + "description": "A simple interface for querying atty" + }, + { + "name": "autocfg", + "version": "1.0.1", + "authors": "Josh Stone ", + "repository": "https://github.com/cuviper/autocfg", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "Automatic cfg for Rust compiler features" + }, + { + "name": "backtrace", + "version": "0.3.54", + "authors": "The Rust Project Developers", + "repository": "https://github.com/rust-lang/backtrace-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A library to acquire a stack trace (backtrace) at runtime in a Rust program." + }, + { + "name": "base64", + "version": "0.12.3", + "authors": "Alice Maz |Marshall Pierce ", + "repository": "https://github.com/marshallpierce/rust-base64", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "encodes and decodes base64 as bytes or utf8" + }, + { + "name": "base64", + "version": "0.13.0", + "authors": "Alice Maz |Marshall Pierce ", + "repository": "https://github.com/marshallpierce/rust-base64", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "encodes and decodes base64 as bytes or utf8" + }, + { + "name": "bitflags", + "version": "1.2.1", + "authors": "The Rust Project Developers", + "repository": "https://github.com/bitflags/bitflags", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A macro to generate structures which behave like bitflags." + }, + { + "name": "blake2b_simd", + "version": "0.5.11", + "authors": "Jack O'Connor", + "repository": "https://github.com/oconnor663/blake2_simd", + "license": "MIT", + "license_file": null, + "description": "a pure Rust BLAKE2b implementation with dynamic SIMD" + }, + { + "name": "blake3", + "version": "0.3.7", + "authors": "Jack O'Connor ", + "repository": "https://github.com/BLAKE3-team/BLAKE3", + "license": "CC0-1.0 OR Apache-2.0", + "license_file": null, + "description": "the BLAKE3 hash function" + }, + { + "name": "bumpalo", + "version": "3.4.0", + "authors": "Nick Fitzgerald ", + "repository": "https://github.com/fitzgen/bumpalo", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A fast bump allocation arena for Rust." + }, + { + "name": "byteorder", + "version": "1.3.4", + "authors": "Andrew Gallant ", + "repository": "https://github.com/BurntSushi/byteorder", + "license": "Unlicense OR MIT", + "license_file": null, + "description": "Library for reading/writing numbers in big-endian and little-endian." + }, + { + "name": "bytes", + "version": "0.4.12", + "authors": "Carl Lerche ", + "repository": "https://github.com/carllerche/bytes", + "license": "MIT", + "license_file": null, + "description": "Types and traits for working with bytes" + }, + { + "name": "bytes", + "version": "0.5.6", + "authors": "Carl Lerche |Sean McArthur ", + "repository": "https://github.com/tokio-rs/bytes", + "license": "MIT", + "license_file": null, + "description": "Types and traits for working with bytes" + }, + { + "name": "cc", + "version": "1.0.62", + "authors": "Alex Crichton ", + "repository": "https://github.com/alexcrichton/cc-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A build-time dependency for Cargo build scripts to assist in invoking the native C compiler to compile native C code into a static archive to be linked into Rust code." + }, + { + "name": "cfg-if", + "version": "0.1.10", + "authors": "Alex Crichton ", + "repository": "https://github.com/alexcrichton/cfg-if", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A macro to ergonomically define an item depending on a large number of #[cfg] parameters. Structured like an if-else chain, the first matching branch is the item that gets emitted." + }, + { + "name": "cfg-if", + "version": "1.0.0", + "authors": "Alex Crichton ", + "repository": "https://github.com/alexcrichton/cfg-if", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A macro to ergonomically define an item depending on a large number of #[cfg] parameters. Structured like an if-else chain, the first matching branch is the item that gets emitted." + }, + { + "name": "chrono", + "version": "0.4.19", + "authors": "Kang Seonghoon |Brandon W Maister ", + "repository": "https://github.com/chronotope/chrono", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Date and time library for Rust" + }, + { + "name": "cloudabi", + "version": "0.1.0", + "authors": "Nuxi (https://nuxi.nl/) and contributors", + "repository": "https://github.com/nuxinl/cloudabi", + "license": "BSD-2-Clause", + "license_file": null, + "description": "Low level interface to CloudABI. Contains all syscalls and related types." + }, + { + "name": "coarsetime", + "version": "0.1.16", + "authors": "Frank Denis ", + "repository": "https://github.com/jedisct1/rust-coarsetime", + "license": "ISC", + "license_file": null, + "description": "Time and duration crate optimized for speed" + }, + { + "name": "constant_time_eq", + "version": "0.1.5", + "authors": "Cesar Eduardo Barros ", + "repository": "https://github.com/cesarb/constant_time_eq", + "license": "CC0-1.0", + "license_file": null, + "description": "Compares two equal-sized byte strings in constant time." + }, + { + "name": "core-foundation", + "version": "0.9.1", + "authors": "The Servo Project Developers", + "repository": "https://github.com/servo/core-foundation-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Bindings to Core Foundation for macOS" + }, + { + "name": "core-foundation-sys", + "version": "0.8.2", + "authors": "The Servo Project Developers", + "repository": "https://github.com/servo/core-foundation-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Bindings to Core Foundation for macOS" + }, + { + "name": "crc32fast", + "version": "1.2.1", + "authors": "Sam Rijs |Alex Crichton ", + "repository": "https://github.com/srijs/rust-crc32fast", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Fast, SIMD-accelerated CRC32 (IEEE) checksum computation" + }, + { + "name": "crossbeam-channel", + "version": "0.4.4", + "authors": "The Crossbeam Project Developers", + "repository": "https://github.com/crossbeam-rs/crossbeam", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Multi-producer multi-consumer channels for message passing" + }, + { + "name": "crossbeam-utils", + "version": "0.7.2", + "authors": "The Crossbeam Project Developers", + "repository": "https://github.com/crossbeam-rs/crossbeam", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Utilities for concurrent programming" + }, + { + "name": "crypto-mac", + "version": "0.8.0", + "authors": "RustCrypto Developers", + "repository": "https://github.com/RustCrypto/traits", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Trait for Message Authentication Code (MAC) algorithms" + }, + { + "name": "ctor", + "version": "0.1.16", + "authors": "Matt Mastracci ", + "repository": "https://github.com/mmastrac/rust-ctor", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "__attribute__((constructor)) for Rust" + }, + { + "name": "derivative", + "version": "2.1.1", + "authors": "mcarton ", + "repository": "https://github.com/mcarton/rust-derivative", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A set of alternative `derive` attributes for Rust" + }, + { + "name": "digest", + "version": "0.9.0", + "authors": "RustCrypto Developers", + "repository": "https://github.com/RustCrypto/traits", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Traits for cryptographic hash functions" + }, + { + "name": "dirs", + "version": "2.0.2", + "authors": "Simon Ochsenreither ", + "repository": "https://github.com/soc/dirs-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "A tiny low-level library that provides platform-specific standard locations of directories for config, cache and other data on Linux, Windows, macOS and Redox by leveraging the mechanisms defined by the XDG base/user directory specifications on Linux, the Known Folder API on Windows, and the Standard Directory guidelines on macOS." + }, + { + "name": "dirs-sys", + "version": "0.3.5", + "authors": "Simon Ochsenreither ", + "repository": "https://github.com/dirs-dev/dirs-sys-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "System-level helper functions for the dirs and directories crates." + }, + { + "name": "dtoa", + "version": "0.4.6", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/dtoa", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Fast functions for printing floating-point primitives to an io::Write" + }, + { + "name": "dummy", + "version": "0.0.0", + "authors": null, + "repository": null, + "license": null, + "license_file": null, + "description": null + }, + { + "name": "either", + "version": "1.6.1", + "authors": "bluss", + "repository": "https://github.com/bluss/either", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "The enum `Either` with variants `Left` and `Right` is a general purpose sum type with two cases." + }, + { + "name": "encoding_rs", + "version": "0.8.26", + "authors": "Henri Sivonen ", + "repository": "https://github.com/hsivonen/encoding_rs", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "A Gecko-oriented implementation of the Encoding Standard" + }, + { + "name": "env_logger", + "version": "0.8.1", + "authors": "The Rust Project Developers", + "repository": "https://github.com/env-logger-rs/env_logger/", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A logging implementation for `log` which is configured via an environment variable." + }, + { + "name": "failure", + "version": "0.1.8", + "authors": "Without Boats ", + "repository": "https://github.com/rust-lang-nursery/failure", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Experimental error handling abstraction." + }, + { + "name": "failure_derive", + "version": "0.1.8", + "authors": "Without Boats ", + "repository": "https://github.com/rust-lang-nursery/failure", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "derives for the failure crate" + }, + { + "name": "fallible-iterator", + "version": "0.2.0", + "authors": "Steven Fackler ", + "repository": "https://github.com/sfackler/rust-fallible-iterator", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Fallible iterator traits" + }, + { + "name": "fallible-streaming-iterator", + "version": "0.1.9", + "authors": "Steven Fackler ", + "repository": "https://github.com/sfackler/fallible-streaming-iterator", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Fallible streaming iteration" + }, + { + "name": "fixedbitset", + "version": "0.2.0", + "authors": "bluss", + "repository": "https://github.com/bluss/fixedbitset", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "FixedBitSet is a simple bitset collection" + }, + { + "name": "flate2", + "version": "1.0.19", + "authors": "Alex Crichton |Josh Triplett ", + "repository": "https://github.com/rust-lang/flate2-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "DEFLATE compression and decompression exposed as Read/BufRead/Write streams. Supports miniz_oxide, miniz.c, and multiple zlib implementations. Supports zlib, gzip, and raw deflate streams." + }, + { + "name": "fluent", + "version": "0.13.1", + "authors": "Zibi Braniecki |Staś Małolepszy ", + "repository": "https://github.com/projectfluent/fluent-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A localization system designed to unleash the entire expressive power of natural language translations." + }, + { + "name": "fluent-bundle", + "version": "0.13.2", + "authors": "Zibi Braniecki |Staś Małolepszy ", + "repository": "https://github.com/projectfluent/fluent-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A localization system designed to unleash the entire expressive power of natural language translations." + }, + { + "name": "fluent-langneg", + "version": "0.13.0", + "authors": "Zibi Braniecki ", + "repository": "https://github.com/projectfluent/fluent-langneg-rs", + "license": "Apache-2.0", + "license_file": null, + "description": "A library for language and locale negotiation." + }, + { + "name": "fluent-syntax", + "version": "0.10.0", + "authors": "Zibi Braniecki |Staś Małolepszy ", + "repository": "https://github.com/projectfluent/fluent-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Parser/Serializer tools for Fluent Syntax." + }, + { + "name": "fnv", + "version": "1.0.7", + "authors": "Alex Crichton ", + "repository": "https://github.com/servo/rust-fnv", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Fowler–Noll–Vo hash function" + }, + { + "name": "foreign-types", + "version": "0.3.2", + "authors": "Steven Fackler ", + "repository": "https://github.com/sfackler/foreign-types", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A framework for Rust wrappers over C APIs" + }, + { + "name": "foreign-types-shared", + "version": "0.1.1", + "authors": "Steven Fackler ", + "repository": "https://github.com/sfackler/foreign-types", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "An internal crate used by foreign-types" + }, + { + "name": "form_urlencoded", + "version": "1.0.0", + "authors": "The rust-url developers", + "repository": "https://github.com/servo/rust-url", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Parser and serializer for the application/x-www-form-urlencoded syntax, as used by HTML forms." + }, + { + "name": "fuchsia-zircon", + "version": "0.3.3", + "authors": "Raph Levien ", + "repository": "https://fuchsia.googlesource.com/garnet/", + "license": "BSD-3-Clause", + "license_file": null, + "description": "Rust bindings for the Zircon kernel" + }, + { + "name": "fuchsia-zircon-sys", + "version": "0.3.3", + "authors": "Raph Levien ", + "repository": "https://fuchsia.googlesource.com/garnet/", + "license": "BSD-3-Clause", + "license_file": null, + "description": "Low-level Rust bindings for the Zircon kernel" + }, + { + "name": "futures", + "version": "0.3.8", + "authors": "Alex Crichton ", + "repository": "https://github.com/rust-lang/futures-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "An implementation of futures and streams featuring zero allocations, composability, and iterator-like interfaces." + }, + { + "name": "futures-channel", + "version": "0.3.8", + "authors": "Alex Crichton ", + "repository": "https://github.com/rust-lang/futures-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Channels for asynchronous communication using futures-rs." + }, + { + "name": "futures-core", + "version": "0.3.8", + "authors": "Alex Crichton ", + "repository": "https://github.com/rust-lang/futures-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "The core traits and types in for the `futures` library." + }, + { + "name": "futures-executor", + "version": "0.3.8", + "authors": "Alex Crichton ", + "repository": "https://github.com/rust-lang/futures-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Executors for asynchronous tasks based on the futures-rs library." + }, + { + "name": "futures-io", + "version": "0.3.8", + "authors": "Alex Crichton ", + "repository": "https://github.com/rust-lang/futures-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "The `AsyncRead`, `AsyncWrite`, `AsyncSeek`, and `AsyncBufRead` traits for the futures-rs library." + }, + { + "name": "futures-macro", + "version": "0.3.8", + "authors": "Taylor Cramer |Taiki Endo ", + "repository": "https://github.com/rust-lang/futures-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "The futures-rs procedural macro implementations." + }, + { + "name": "futures-sink", + "version": "0.3.8", + "authors": "Alex Crichton ", + "repository": "https://github.com/rust-lang/futures-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "The asynchronous `Sink` trait for the futures-rs library." + }, + { + "name": "futures-task", + "version": "0.3.8", + "authors": "Alex Crichton ", + "repository": "https://github.com/rust-lang/futures-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Tools for working with tasks." + }, + { + "name": "futures-util", + "version": "0.3.8", + "authors": "Alex Crichton ", + "repository": "https://github.com/rust-lang/futures-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Common utilities and extension traits for the futures-rs library." + }, + { + "name": "fxhash", + "version": "0.2.1", + "authors": "cbreeden ", + "repository": "https://github.com/cbreeden/fxhash", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A fast, non-secure, hashing algorithm derived from an internal hasher used in FireFox and Rustc." + }, + { + "name": "generic-array", + "version": "0.14.4", + "authors": "Bartłomiej Kamiński |Aaron Trent ", + "repository": "https://github.com/fizyk20/generic-array.git", + "license": "MIT", + "license_file": null, + "description": "Generic types implementing functionality of arrays" + }, + { + "name": "getrandom", + "version": "0.1.15", + "authors": "The Rand Project Developers", + "repository": "https://github.com/rust-random/getrandom", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "A small cross-platform library for retrieving random data from system source" + }, + { + "name": "ghost", + "version": "0.1.2", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/ghost", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Define your own PhantomData" + }, + { + "name": "gimli", + "version": "0.23.0", + "authors": "Nick Fitzgerald |Philip Craig ", + "repository": "https://github.com/gimli-rs/gimli", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A library for reading and writing the DWARF debugging format." + }, + { + "name": "h2", + "version": "0.2.7", + "authors": "Carl Lerche |Sean McArthur ", + "repository": "https://github.com/hyperium/h2", + "license": "MIT", + "license_file": null, + "description": "An HTTP/2.0 client and server" + }, + { + "name": "hashbrown", + "version": "0.9.1", + "authors": "Amanieu d'Antras ", + "repository": "https://github.com/rust-lang/hashbrown", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A Rust port of Google's SwissTable hash map" + }, + { + "name": "hashlink", + "version": "0.6.0", + "authors": "kyren ", + "repository": "https://github.com/kyren/hashlink", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "HashMap-like containers that hold their key-value pairs in a user controllable order" + }, + { + "name": "heck", + "version": "0.3.1", + "authors": "Without Boats ", + "repository": "https://github.com/withoutboats/heck", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "heck is a case conversion library." + }, + { + "name": "hermit-abi", + "version": "0.1.17", + "authors": "Stefan Lankes", + "repository": "https://github.com/hermitcore/libhermit-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "hermit-abi is small interface to call functions from the unikernel RustyHermit. It is used to build the target `x86_64-unknown-hermit`." + }, + { + "name": "hex", + "version": "0.4.2", + "authors": "KokaKiwi ", + "repository": "https://github.com/KokaKiwi/rust-hex", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Encoding and decoding data into/from hexadecimal representation." + }, + { + "name": "htmlescape", + "version": "0.3.1", + "authors": "Viktor Dahl ", + "repository": "https://github.com/veddan/rust-htmlescape", + "license": "Apache-2.0/MIT/MPL-2.0", + "license_file": null, + "description": "A library for HTML entity encoding and decoding" + }, + { + "name": "http", + "version": "0.2.1", + "authors": "Alex Crichton |Carl Lerche |Sean McArthur ", + "repository": "https://github.com/hyperium/http", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A set of types for representing HTTP requests and responses." + }, + { + "name": "http-body", + "version": "0.3.1", + "authors": "Carl Lerche |Lucio Franco |Sean McArthur ", + "repository": "https://github.com/hyperium/http-body", + "license": "MIT", + "license_file": null, + "description": "Trait representing an asynchronous, streaming, HTTP request or response body." + }, + { + "name": "httparse", + "version": "1.3.4", + "authors": "Sean McArthur ", + "repository": "https://github.com/seanmonstar/httparse", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A tiny, safe, speedy, zero-copy HTTP/1.x parser." + }, + { + "name": "httpdate", + "version": "0.3.2", + "authors": "Pyfisch ", + "repository": "https://github.com/pyfisch/httpdate", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "HTTP date parsing and formatting" + }, + { + "name": "humansize", + "version": "1.1.0", + "authors": "Leopold Arkham ", + "repository": "https://github.com/LeopoldArkham/humansize", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A configurable crate to easily represent file sizes in a human-readable format." + }, + { + "name": "humantime", + "version": "2.0.1", + "authors": "Paul Colomiets ", + "repository": "https://github.com/tailhook/humantime", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A parser and formatter for std::time::{Duration, SystemTime}" + }, + { + "name": "hyper", + "version": "0.13.9", + "authors": "Sean McArthur ", + "repository": "https://github.com/hyperium/hyper", + "license": "MIT", + "license_file": null, + "description": "A fast and correct HTTP library." + }, + { + "name": "hyper-rustls", + "version": "0.21.0", + "authors": "Joseph Birr-Pixton ", + "repository": "https://github.com/ctz/hyper-rustls", + "license": "Apache-2.0/ISC/MIT", + "license_file": null, + "description": "Rustls+hyper integration for pure rust HTTPS" + }, + { + "name": "hyper-timeout", + "version": "0.3.1", + "authors": "Herman J. Radtke III ", + "repository": "https://github.com/hjr3/hyper-timeout", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A connect, read and write timeout aware connector to be used with hyper Client." + }, + { + "name": "hyper-tls", + "version": "0.4.3", + "authors": "Sean McArthur ", + "repository": "https://github.com/hyperium/hyper-tls", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Default TLS implementation for use with hyper" + }, + { + "name": "idna", + "version": "0.2.0", + "authors": "The rust-url developers", + "repository": "https://github.com/servo/rust-url/", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "IDNA (Internationalizing Domain Names in Applications) and Punycode." + }, + { + "name": "indexmap", + "version": "1.6.0", + "authors": "bluss|Josh Stone ", + "repository": "https://github.com/bluss/indexmap", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A hash table with consistent order and fast iteration. The indexmap is a hash table where the iteration order of the key-value pairs is independent of the hash values of the keys. It has the usual hash table functionality, it preserves insertion order except after removals, and it allows lookup of its elements by either hash table key or numerical index. A corresponding hash set type is also provided. This crate was initially published under the name ordermap, but it was renamed to indexmap." + }, + { + "name": "indoc", + "version": "0.3.6", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/indoc", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Indented document literals" + }, + { + "name": "indoc-impl", + "version": "0.3.6", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/indoc", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Indented document literals" + }, + { + "name": "instant", + "version": "0.1.8", + "authors": "sebcrozet ", + "repository": "https://github.com/sebcrozet/instant", + "license": "BSD-3-Clause", + "license_file": null, + "description": "A partial replacement for std::time::Instant that works on WASM too." + }, + { + "name": "intl-memoizer", + "version": "0.5.0", + "authors": "Zibi Braniecki |Manish Goregaokar ", + "repository": "https://github.com/projectfluent/fluent-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A memoizer specifically tailored for storing lazy-initialized intl formatters." + }, + { + "name": "intl_pluralrules", + "version": "7.0.0", + "authors": "Kekoa Riggin |Zibi Braniecki ", + "repository": "https://github.com/zbraniecki/pluralrules", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Unicode Plural Rules categorizer for numeric input." + }, + { + "name": "inventory", + "version": "0.1.9", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/inventory", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Typed distributed plugin registration" + }, + { + "name": "inventory-impl", + "version": "0.1.9", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/inventory", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Implementation of macros for the `inventory` crate" + }, + { + "name": "iovec", + "version": "0.1.4", + "authors": "Carl Lerche ", + "repository": "https://github.com/carllerche/iovec", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Portable buffer type for scatter/gather I/O operations" + }, + { + "name": "ipnet", + "version": "2.3.0", + "authors": "Kris Price ", + "repository": "https://github.com/krisprice/ipnet", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Provides types and useful methods for working with IPv4 and IPv6 network addresses, commonly called IP prefixes. The new `IpNet`, `Ipv4Net`, and `Ipv6Net` types build on the existing `IpAddr`, `Ipv4Addr`, and `Ipv6Addr` types already provided in Rust's standard library and align to their design to stay consistent. The module also provides useful traits that extend `Ipv4Addr` and `Ipv6Addr` with methods for `Add`, `Sub`, `BitAnd`, and `BitOr` operations. The module only uses stable feature so it is guaranteed to compile using the stable toolchain." + }, + { + "name": "itertools", + "version": "0.9.0", + "authors": "bluss", + "repository": "https://github.com/bluss/rust-itertools", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Extra iterator adaptors, iterator methods, free functions, and macros." + }, + { + "name": "itoa", + "version": "0.4.6", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/itoa", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Fast functions for printing integer primitives to an io::Write" + }, + { + "name": "js-sys", + "version": "0.3.45", + "authors": "The wasm-bindgen Developers", + "repository": "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/js-sys", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Bindings for all JS global objects and functions in all JS environments like Node.js and browsers, built on `#[wasm_bindgen]` using the `wasm-bindgen` crate." + }, + { + "name": "kernel32-sys", + "version": "0.2.2", + "authors": "Peter Atashian ", + "repository": "https://github.com/retep998/winapi-rs", + "license": "MIT", + "license_file": null, + "description": "Contains function definitions for the Windows API library kernel32. See winapi for types and constants." + }, + { + "name": "lazy_static", + "version": "1.4.0", + "authors": "Marvin Löbel ", + "repository": "https://github.com/rust-lang-nursery/lazy-static.rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A macro for declaring lazily evaluated statics in Rust." + }, + { + "name": "lexical-core", + "version": "0.7.4", + "authors": "Alex Huszagh ", + "repository": "https://github.com/Alexhuszagh/rust-lexical/tree/master/lexical-core", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Lexical, to- and from-string conversion routines." + }, + { + "name": "libc", + "version": "0.2.80", + "authors": "The Rust Project Developers", + "repository": "https://github.com/rust-lang/libc", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Raw FFI bindings to platform libraries like libc." + }, + { + "name": "libsqlite3-sys", + "version": "0.20.1", + "authors": "The rusqlite developers", + "repository": "https://github.com/rusqlite/rusqlite", + "license": "MIT", + "license_file": null, + "description": "Native bindings to the libsqlite3 library" + }, + { + "name": "lock_api", + "version": "0.4.1", + "authors": "Amanieu d'Antras ", + "repository": "https://github.com/Amanieu/parking_lot", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Wrappers to create fully-featured Mutex and RwLock types. Compatible with no_std." + }, + { + "name": "log", + "version": "0.4.11", + "authors": "The Rust Project Developers", + "repository": "https://github.com/rust-lang/log", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "A lightweight logging facade for Rust" + }, + { + "name": "matches", + "version": "0.1.8", + "authors": "Simon Sapin ", + "repository": "https://github.com/SimonSapin/rust-std-candidates", + "license": "MIT", + "license_file": null, + "description": "A macro to evaluate, as a boolean, whether an expression matches a pattern." + }, + { + "name": "maybe-uninit", + "version": "2.0.0", + "authors": "est31 |The Rust Project Developers", + "repository": "https://github.com/est31/maybe-uninit", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "MaybeUninit for friends of backwards compatibility" + }, + { + "name": "memchr", + "version": "2.3.4", + "authors": "Andrew Gallant |bluss", + "repository": "https://github.com/BurntSushi/rust-memchr", + "license": "MIT/Unlicense", + "license_file": null, + "description": "Safe interface to memchr." + }, + { + "name": "mime", + "version": "0.3.16", + "authors": "Sean McArthur ", + "repository": "https://github.com/hyperium/mime", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Strongly Typed Mimes" + }, + { + "name": "mime_guess", + "version": "2.0.3", + "authors": "Austin Bonander ", + "repository": "https://github.com/abonander/mime_guess", + "license": "MIT", + "license_file": null, + "description": "A simple crate for detection of a file's MIME type by its extension." + }, + { + "name": "miniz_oxide", + "version": "0.4.3", + "authors": "Frommi |oyvindln ", + "repository": "https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide", + "license": "MIT OR Zlib OR Apache-2.0", + "license_file": null, + "description": "DEFLATE compression and decompression library rewritten in Rust based on miniz" + }, + { + "name": "mio", + "version": "0.6.22", + "authors": "Carl Lerche ", + "repository": "https://github.com/tokio-rs/mio", + "license": "MIT", + "license_file": null, + "description": "Lightweight non-blocking IO" + }, + { + "name": "miow", + "version": "0.2.1", + "authors": "Alex Crichton ", + "repository": "https://github.com/alexcrichton/miow", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A zero overhead I/O library for Windows, focusing on IOCP and Async I/O abstractions." + }, + { + "name": "multimap", + "version": "0.8.2", + "authors": "Håvar Nøvik ", + "repository": "https://github.com/havarnov/multimap", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A multimap implementation." + }, + { + "name": "native-tls", + "version": "0.2.6", + "authors": "Steven Fackler ", + "repository": "https://github.com/sfackler/rust-native-tls", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A wrapper over a platform's native TLS implementation" + }, + { + "name": "net2", + "version": "0.2.35", + "authors": "Alex Crichton ", + "repository": "https://github.com/deprecrated/net2-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Extensions to the standard library's networking types as proposed in RFC 1158." + }, + { + "name": "nodrop", + "version": "0.1.14", + "authors": "bluss", + "repository": "https://github.com/bluss/arrayvec", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A wrapper type to inhibit drop (destructor). ***Deprecated: Use ManuallyDrop or MaybeUninit instead!***" + }, + { + "name": "nom", + "version": "5.1.2", + "authors": "contact@geoffroycouprie.com", + "repository": "https://github.com/Geal/nom", + "license": "MIT", + "license_file": null, + "description": "A byte-oriented, zero-copy, parser combinators library" + }, + { + "name": "num-format", + "version": "0.4.0", + "authors": "Brian Myers ", + "repository": "https://github.com/bcmyers/num-format", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A Rust crate for producing string-representations of numbers, formatted according to international standards" + }, + { + "name": "num-integer", + "version": "0.1.44", + "authors": "The Rust Project Developers", + "repository": "https://github.com/rust-num/num-integer", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Integer traits and functions" + }, + { + "name": "num-traits", + "version": "0.2.14", + "authors": "The Rust Project Developers", + "repository": "https://github.com/rust-num/num-traits", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Numeric traits for generic mathematics" + }, + { + "name": "num_cpus", + "version": "1.13.0", + "authors": "Sean McArthur ", + "repository": "https://github.com/seanmonstar/num_cpus", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Get the number of CPUs on a machine." + }, + { + "name": "num_enum", + "version": "0.5.1", + "authors": "Daniel Wagner-Hall |Daniel Henry-Mantilla |Vincent Esche ", + "repository": "https://github.com/illicitonion/num_enum", + "license": "BSD-3-Clause", + "license_file": null, + "description": "Procedural macros to make inter-operation between primitives and enums easier." + }, + { + "name": "num_enum_derive", + "version": "0.5.1", + "authors": "Daniel Wagner-Hall |Daniel Henry-Mantilla |Vincent Esche ", + "repository": "https://github.com/illicitonion/num_enum", + "license": "BSD-3-Clause", + "license_file": null, + "description": "Internal implementation details for ::num_enum (Procedural macros to make inter-operation between primitives and enums easier)" + }, + { + "name": "object", + "version": "0.22.0", + "authors": "Nick Fitzgerald |Philip Craig ", + "repository": "https://github.com/gimli-rs/object", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A unified interface for reading and writing object file formats." + }, + { + "name": "once_cell", + "version": "1.5.2", + "authors": "Aleksey Kladov ", + "repository": "https://github.com/matklad/once_cell", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Single assignment cells and lazy values." + }, + { + "name": "openssl", + "version": "0.10.30", + "authors": "Steven Fackler ", + "repository": "https://github.com/sfackler/rust-openssl", + "license": "Apache-2.0", + "license_file": null, + "description": "OpenSSL bindings" + }, + { + "name": "openssl-probe", + "version": "0.1.2", + "authors": "Alex Crichton ", + "repository": "https://github.com/alexcrichton/openssl-probe", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Tool for helping to find SSL certificate locations on the system for OpenSSL" + }, + { + "name": "openssl-sys", + "version": "0.9.58", + "authors": "Alex Crichton |Steven Fackler ", + "repository": "https://github.com/sfackler/rust-openssl", + "license": "MIT", + "license_file": null, + "description": "FFI bindings to OpenSSL" + }, + { + "name": "parking_lot", + "version": "0.11.0", + "authors": "Amanieu d'Antras ", + "repository": "https://github.com/Amanieu/parking_lot", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "More compact and efficient implementations of the standard synchronization primitives." + }, + { + "name": "parking_lot_core", + "version": "0.8.0", + "authors": "Amanieu d'Antras ", + "repository": "https://github.com/Amanieu/parking_lot", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "An advanced API for creating custom synchronization primitives." + }, + { + "name": "paste", + "version": "0.1.18", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/paste", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Macros for all your token pasting needs" + }, + { + "name": "paste-impl", + "version": "0.1.18", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/paste", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Implementation detail of the `paste` crate" + }, + { + "name": "percent-encoding", + "version": "2.1.0", + "authors": "The rust-url developers", + "repository": "https://github.com/servo/rust-url/", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Percent encoding and decoding" + }, + { + "name": "petgraph", + "version": "0.5.1", + "authors": "bluss|mitchmindtree", + "repository": "https://github.com/petgraph/petgraph", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Graph data structure library. Provides graph types and graph algorithms." + }, + { + "name": "pin-project", + "version": "0.4.27", + "authors": "Taiki Endo ", + "repository": "https://github.com/taiki-e/pin-project", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "A crate for safe and ergonomic pin-projection." + }, + { + "name": "pin-project", + "version": "1.0.1", + "authors": "Taiki Endo ", + "repository": "https://github.com/taiki-e/pin-project", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "A crate for safe and ergonomic pin-projection." + }, + { + "name": "pin-project-internal", + "version": "0.4.27", + "authors": "Taiki Endo ", + "repository": "https://github.com/taiki-e/pin-project", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "An internal crate to support pin_project - do not use directly" + }, + { + "name": "pin-project-internal", + "version": "1.0.1", + "authors": "Taiki Endo ", + "repository": "https://github.com/taiki-e/pin-project", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "Implementation detail of the `pin-project` crate." + }, + { + "name": "pin-project-lite", + "version": "0.1.11", + "authors": "Taiki Endo ", + "repository": "https://github.com/taiki-e/pin-project-lite", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "A lightweight version of pin-project written with declarative macros." + }, + { + "name": "pin-utils", + "version": "0.1.0", + "authors": "Josef Brandl ", + "repository": "https://github.com/rust-lang-nursery/pin-utils", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Utilities for pinning" + }, + { + "name": "pkg-config", + "version": "0.3.19", + "authors": "Alex Crichton ", + "repository": "https://github.com/rust-lang/pkg-config-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A library to run the pkg-config system tool at build time in order to be used in Cargo build scripts." + }, + { + "name": "podio", + "version": "0.1.7", + "authors": "Mathijs van de Nes ", + "repository": "https://github.com/mvdnes/podio.git", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Additional trait for Read and Write to read and write Plain Old Data" + }, + { + "name": "ppv-lite86", + "version": "0.2.10", + "authors": "The CryptoCorrosion Contributors", + "repository": "https://github.com/cryptocorrosion/cryptocorrosion", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Implementation of the crypto-simd API for x86" + }, + { + "name": "proc-macro-crate", + "version": "0.1.5", + "authors": "Bastian Köcher ", + "repository": "https://github.com/bkchr/proc-macro-crate", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Replacement for crate (macro_rules keyword) in proc-macros" + }, + { + "name": "proc-macro-hack", + "version": "0.5.19", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/proc-macro-hack", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Procedural macros in expression position" + }, + { + "name": "proc-macro-nested", + "version": "0.1.6", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/proc-macro-hack", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Support for nested proc-macro-hack invocations" + }, + { + "name": "proc-macro2", + "version": "1.0.24", + "authors": "Alex Crichton |David Tolnay ", + "repository": "https://github.com/alexcrichton/proc-macro2", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case." + }, + { + "name": "prost", + "version": "0.6.1", + "authors": "Dan Burkert ", + "repository": "https://github.com/danburkert/prost", + "license": "Apache-2.0", + "license_file": null, + "description": "A Protocol Buffers implementation for the Rust Language." + }, + { + "name": "prost-build", + "version": "0.6.1", + "authors": "Dan Burkert ", + "repository": "https://github.com/danburkert/prost", + "license": "Apache-2.0", + "license_file": null, + "description": "A Protocol Buffers implementation for the Rust Language." + }, + { + "name": "prost-derive", + "version": "0.6.1", + "authors": "Dan Burkert ", + "repository": "https://github.com/danburkert/prost", + "license": "Apache-2.0", + "license_file": null, + "description": "A Protocol Buffers implementation for the Rust Language." + }, + { + "name": "prost-types", + "version": "0.6.1", + "authors": "Dan Burkert ", + "repository": "https://github.com/danburkert/prost", + "license": "Apache-2.0", + "license_file": null, + "description": "A Protocol Buffers implementation for the Rust Language." + }, + { + "name": "pyo3", + "version": "0.12.3", + "authors": "PyO3 Project and Contributors ", + "repository": "https://github.com/pyo3/pyo3", + "license": "Apache-2.0", + "license_file": null, + "description": "Bindings to Python interpreter" + }, + { + "name": "pyo3-derive-backend", + "version": "0.12.3", + "authors": "PyO3 Project and Contributors ", + "repository": "https://github.com/pyo3/pyo3", + "license": "Apache-2.0", + "license_file": null, + "description": "Code generation for PyO3 package" + }, + { + "name": "pyo3cls", + "version": "0.12.3", + "authors": "PyO3 Project and Contributors ", + "repository": "https://github.com/pyo3/pyo3", + "license": "Apache-2.0", + "license_file": null, + "description": "Proc macros for PyO3 package" + }, + { + "name": "quote", + "version": "1.0.7", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/quote", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Quasi-quoting macro quote!(...)" + }, + { + "name": "rand", + "version": "0.7.3", + "authors": "The Rand Project Developers|The Rust Project Developers", + "repository": "https://github.com/rust-random/rand", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Random number generators and other randomness functionality." + }, + { + "name": "rand_chacha", + "version": "0.2.2", + "authors": "The Rand Project Developers|The Rust Project Developers|The CryptoCorrosion Contributors", + "repository": "https://github.com/rust-random/rand", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "ChaCha random number generator" + }, + { + "name": "rand_core", + "version": "0.5.1", + "authors": "The Rand Project Developers|The Rust Project Developers", + "repository": "https://github.com/rust-random/rand", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Core random number generator traits and tools for implementation." + }, + { + "name": "rand_hc", + "version": "0.2.0", + "authors": "The Rand Project Developers", + "repository": "https://github.com/rust-random/rand", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "HC128 random number generator" + }, + { + "name": "redox_syscall", + "version": "0.1.57", + "authors": "Jeremy Soller ", + "repository": "https://gitlab.redox-os.org/redox-os/syscall", + "license": "MIT", + "license_file": null, + "description": "A Rust library to access raw Redox system calls" + }, + { + "name": "redox_users", + "version": "0.3.5", + "authors": "Jose Narvaez |Wesley Hershberger ", + "repository": "https://gitlab.redox-os.org/redox-os/users", + "license": "MIT", + "license_file": null, + "description": "A Rust library to access Redox users and groups functionality" + }, + { + "name": "regex", + "version": "1.4.2", + "authors": "The Rust Project Developers", + "repository": "https://github.com/rust-lang/regex", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs." + }, + { + "name": "regex-syntax", + "version": "0.6.21", + "authors": "The Rust Project Developers", + "repository": "https://github.com/rust-lang/regex", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A regular expression parser." + }, + { + "name": "remove_dir_all", + "version": "0.5.3", + "authors": "Aaronepower ", + "repository": "https://github.com/XAMPPRocky/remove_dir_all.git", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A safe, reliable implementation of remove_dir_all for Windows" + }, + { + "name": "rental", + "version": "0.5.5", + "authors": "Jameson Ernst ", + "repository": "https://github.com/jpernst/rental", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A macro to generate safe self-referential structs, plus premade types for common use cases." + }, + { + "name": "rental-impl", + "version": "0.5.5", + "authors": "Jameson Ernst ", + "repository": "https://github.com/jpernst/rental", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "An implementation detail of rental. Should not be used directly." + }, + { + "name": "reqwest", + "version": "0.10.8", + "authors": "Sean McArthur ", + "repository": "https://github.com/seanmonstar/reqwest", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "higher level HTTP client library" + }, + { + "name": "ring", + "version": "0.16.15", + "authors": "Brian Smith ", + "repository": "https://github.com/briansmith/ring", + "license": null, + "license_file": "LICENSE", + "description": "Safe, fast, small crypto using Rust." + }, + { + "name": "rusqlite", + "version": "0.24.1", + "authors": "The rusqlite developers", + "repository": "https://github.com/rusqlite/rusqlite", + "license": "MIT", + "license_file": null, + "description": "Ergonomic wrapper for SQLite" + }, + { + "name": "rust-argon2", + "version": "0.8.2", + "authors": "Martijn Rijkeboer ", + "repository": "https://github.com/sru-systems/rust-argon2", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Rust implementation of the Argon2 password hashing function." + }, + { + "name": "rustc-demangle", + "version": "0.1.18", + "authors": "Alex Crichton ", + "repository": "https://github.com/alexcrichton/rustc-demangle", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Rust compiler symbol demangling." + }, + { + "name": "rustls", + "version": "0.18.1", + "authors": "Joseph Birr-Pixton ", + "repository": "https://github.com/ctz/rustls", + "license": "Apache-2.0/ISC/MIT", + "license_file": null, + "description": "Rustls is a modern TLS library written in Rust." + }, + { + "name": "ryu", + "version": "1.0.5", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/ryu", + "license": "Apache-2.0 OR BSL-1.0", + "license_file": null, + "description": "Fast floating point to string conversion" + }, + { + "name": "schannel", + "version": "0.1.19", + "authors": "Steven Fackler |Steffen Butzer ", + "repository": "https://github.com/steffengy/schannel-rs", + "license": "MIT", + "license_file": null, + "description": "Schannel bindings for rust, allowing SSL/TLS (e.g. https) without openssl" + }, + { + "name": "scopeguard", + "version": "1.1.0", + "authors": "bluss", + "repository": "https://github.com/bluss/scopeguard", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A RAII scope guard that will run a given closure when it goes out of scope, even if the code between panics (assuming unwinding panic). Defines the macros `defer!`, `defer_on_unwind!`, `defer_on_success!` as shorthands for guards with one of the implemented strategies." + }, + { + "name": "sct", + "version": "0.6.0", + "authors": "Joseph Birr-Pixton ", + "repository": "https://github.com/ctz/sct.rs", + "license": "Apache-2.0/ISC/MIT", + "license_file": null, + "description": "Certificate transparency SCT verification library" + }, + { + "name": "security-framework", + "version": "2.0.0", + "authors": "Steven Fackler |Kornel ", + "repository": "https://github.com/kornelski/rust-security-framework", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Security.framework bindings for macOS and iOS" + }, + { + "name": "security-framework-sys", + "version": "2.0.0", + "authors": "Steven Fackler |Kornel ", + "repository": "https://github.com/kornelski/rust-security-framework", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Apple `Security.framework` low-level FFI bindings" + }, + { + "name": "serde", + "version": "1.0.117", + "authors": "Erick Tryzelaar |David Tolnay ", + "repository": "https://github.com/serde-rs/serde", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "A generic serialization/deserialization framework" + }, + { + "name": "serde-aux", + "version": "0.6.1", + "authors": "Victor Polevoy ", + "repository": "https://github.com/vityafx/serde-aux", + "license": "MIT", + "license_file": null, + "description": "A serde crate's auxiliary library" + }, + { + "name": "serde_derive", + "version": "1.0.117", + "authors": "Erick Tryzelaar |David Tolnay ", + "repository": "https://github.com/serde-rs/serde", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Macros 1.1 implementation of #[derive(Serialize, Deserialize)]" + }, + { + "name": "serde_json", + "version": "1.0.59", + "authors": "Erick Tryzelaar |David Tolnay ", + "repository": "https://github.com/serde-rs/json", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "A JSON serialization file format" + }, + { + "name": "serde_repr", + "version": "0.1.6", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/serde-repr", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Derive Serialize and Deserialize that delegates to the underlying repr of a C-like enum." + }, + { + "name": "serde_tuple", + "version": "0.5.0", + "authors": "Jacob Brown ", + "repository": "https://github.com/kardeiz/serde_tuple", + "license": "MIT", + "license_file": null, + "description": "De/serialize structs with named fields as array of values" + }, + { + "name": "serde_tuple_macros", + "version": "0.5.0", + "authors": "Jacob Brown ", + "repository": "https://github.com/kardeiz/serde_tuple", + "license": "MIT", + "license_file": null, + "description": "De/serialize structs with named fields as array of values" + }, + { + "name": "serde_urlencoded", + "version": "0.6.1", + "authors": "Anthony Ramine ", + "repository": "https://github.com/nox/serde_urlencoded", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "`x-www-form-urlencoded` meets Serde" + }, + { + "name": "sha1", + "version": "0.6.0", + "authors": "Armin Ronacher ", + "repository": "https://github.com/mitsuhiko/rust-sha1", + "license": "BSD-3-Clause", + "license_file": null, + "description": "Minimal implementation of SHA1 for Rust." + }, + { + "name": "slab", + "version": "0.4.2", + "authors": "Carl Lerche ", + "repository": "https://github.com/carllerche/slab", + "license": "MIT", + "license_file": null, + "description": "Pre-allocated storage for a uniform data type" + }, + { + "name": "slog", + "version": "2.5.2", + "authors": "Dawid Ciężarkiewicz ", + "repository": "https://github.com/slog-rs/slog", + "license": "MPL-2.0 OR MIT OR Apache-2.0", + "license_file": null, + "description": "Structured, extensible, composable logging for Rust" + }, + { + "name": "slog-async", + "version": "2.5.0", + "authors": "Dawid Ciężarkiewicz ", + "repository": "https://github.com/slog-rs/async", + "license": "Apache-2.0/MIT/MPL-2.0", + "license_file": null, + "description": "Asynchronous drain for slog-rs" + }, + { + "name": "slog-envlogger", + "version": "2.2.0", + "authors": "The Rust Project Developers|Dawid Ciężarkiewicz ", + "repository": "https://github.com/slog-rs/envlogger", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Port of de facto standard logger implementation for Rust, to `slog-rs` framework." + }, + { + "name": "slog-scope", + "version": "4.3.0", + "authors": "Dawid Ciężarkiewicz ", + "repository": "https://github.com/slog-rs/scope", + "license": "Apache-2.0/MIT/MPL-2.0", + "license_file": null, + "description": "Logging scopes for slog-rs" + }, + { + "name": "slog-stdlog", + "version": "4.1.0", + "authors": "Dawid Ciężarkiewicz ", + "repository": "https://github.com/slog-rs/stdlog", + "license": "Apache-2.0/MIT/MPL-2.0", + "license_file": null, + "description": "`log` crate adapter for slog-rs" + }, + { + "name": "slog-term", + "version": "2.6.0", + "authors": "Dawid Ciężarkiewicz ", + "repository": "https://github.com/slog-rs/term", + "license": "Apache-2.0/MIT/MPL-2.0", + "license_file": null, + "description": "Unix terminal drain and formatter for slog-rs" + }, + { + "name": "smallvec", + "version": "1.4.2", + "authors": "The Servo Project Developers", + "repository": "https://github.com/servo/rust-smallvec", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "'Small vector' optimization: store up to a small number of items on the stack" + }, + { + "name": "socket2", + "version": "0.3.16", + "authors": "Alex Crichton ", + "repository": "https://github.com/alexcrichton/socket2-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Utilities for handling networking sockets with a maximal amount of configuration possible intended." + }, + { + "name": "spin", + "version": "0.5.2", + "authors": "Mathijs van de Nes |John Ericson ", + "repository": "https://github.com/mvdnes/spin-rs.git", + "license": "MIT", + "license_file": null, + "description": "Synchronization primitives based on spinning. They may contain data, are usable without `std`, and static initializers are available." + }, + { + "name": "stable_deref_trait", + "version": "1.2.0", + "authors": "Robert Grosse ", + "repository": "https://github.com/storyyeller/stable_deref_trait", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "An unsafe marker trait for types like Box and Rc that dereference to a stable address even when moved, and hence can be used with libraries such as owning_ref and rental." + }, + { + "name": "static_assertions", + "version": "1.1.0", + "authors": "Nikolai Vazquez", + "repository": "https://github.com/nvzqz/static-assertions-rs", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Compile-time assertions to ensure that invariants are met." + }, + { + "name": "subtle", + "version": "2.3.0", + "authors": "Isis Lovecruft |Henry de Valence ", + "repository": "https://github.com/dalek-cryptography/subtle", + "license": "BSD-3-Clause", + "license_file": null, + "description": "Pure-Rust traits and utilities for constant-time cryptographic implementations." + }, + { + "name": "syn", + "version": "1.0.48", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/syn", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Parser for Rust source code" + }, + { + "name": "synstructure", + "version": "0.12.4", + "authors": "Nika Layzell ", + "repository": "https://github.com/mystor/synstructure", + "license": "MIT", + "license_file": null, + "description": "Helper methods and macros for custom derives" + }, + { + "name": "take_mut", + "version": "0.2.2", + "authors": "Sgeo ", + "repository": "https://github.com/Sgeo/take_mut", + "license": "MIT", + "license_file": null, + "description": "Take a T from a &mut T temporarily" + }, + { + "name": "tempfile", + "version": "3.1.0", + "authors": "Steven Allen |The Rust Project Developers|Ashley Mannix |Jason White ", + "repository": "https://github.com/Stebalien/tempfile", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "A library for managing temporary files and directories." + }, + { + "name": "term", + "version": "0.6.1", + "authors": "The Rust Project Developers|Steven Allen", + "repository": "https://github.com/Stebalien/term", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A terminal formatting library" + }, + { + "name": "termcolor", + "version": "1.1.0", + "authors": "Andrew Gallant ", + "repository": "https://github.com/BurntSushi/termcolor", + "license": "Unlicense OR MIT", + "license_file": null, + "description": "A simple cross platform library for writing colored text to a terminal." + }, + { + "name": "thiserror", + "version": "1.0.22", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/thiserror", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "derive(Error)" + }, + { + "name": "thiserror-impl", + "version": "1.0.22", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/thiserror", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Implementation detail of the `thiserror` crate" + }, + { + "name": "thread_local", + "version": "1.0.1", + "authors": "Amanieu d'Antras ", + "repository": "https://github.com/Amanieu/thread_local-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Per-object thread-local storage" + }, + { + "name": "time", + "version": "0.1.44", + "authors": "The Rust Project Developers", + "repository": "https://github.com/time-rs/time", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Utilities for working with time-related functions in Rust." + }, + { + "name": "tinystr", + "version": "0.3.4", + "authors": "Raph Levien |Zibi Braniecki ", + "repository": "https://github.com/zbraniecki/tinystr", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A small ASCII-only bounded length string representation." + }, + { + "name": "tinyvec", + "version": "1.0.1", + "authors": "Lokathor ", + "repository": "https://github.com/Lokathor/tinyvec", + "license": "Zlib OR Apache-2.0 OR MIT", + "license_file": null, + "description": "`tinyvec` provides 100% safe vec-like data structures." + }, + { + "name": "tinyvec_macros", + "version": "0.1.0", + "authors": "Soveu ", + "repository": "https://github.com/Soveu/tinyvec_macros", + "license": "MIT OR Apache-2.0 OR Zlib", + "license_file": null, + "description": "Some macros for tiny containers" + }, + { + "name": "tokio", + "version": "0.2.23", + "authors": "Tokio Contributors ", + "repository": "https://github.com/tokio-rs/tokio", + "license": "MIT", + "license_file": null, + "description": "An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications." + }, + { + "name": "tokio-io-timeout", + "version": "0.4.0", + "authors": "Steven Fackler ", + "repository": "https://github.com/sfackler/tokio-io-timeout", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Tokio wrappers which apply timeouts to IO operations" + }, + { + "name": "tokio-rustls", + "version": "0.14.1", + "authors": "quininer kel ", + "repository": "https://github.com/tokio-rs/tls", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Asynchronous TLS/SSL streams for Tokio using Rustls." + }, + { + "name": "tokio-socks", + "version": "0.3.0", + "authors": "Yilin Chen ", + "repository": "https://github.com/sticnarf/tokio-socks", + "license": "MIT", + "license_file": null, + "description": "Asynchronous SOCKS proxy support for Rust." + }, + { + "name": "tokio-tls", + "version": "0.3.1", + "authors": "Tokio Contributors ", + "repository": "https://github.com/tokio-rs/tokio", + "license": "MIT", + "license_file": null, + "description": "Deprecated in favor of `tokio-naitve-tls`. An implementation of TLS/SSL streams for Tokio giving an implementation of TLS for nonblocking I/O streams." + }, + { + "name": "tokio-util", + "version": "0.3.1", + "authors": "Tokio Contributors ", + "repository": "https://github.com/tokio-rs/tokio", + "license": "MIT", + "license_file": null, + "description": "Additional utilities for working with Tokio." + }, + { + "name": "toml", + "version": "0.5.7", + "authors": "Alex Crichton ", + "repository": "https://github.com/alexcrichton/toml-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A native Rust encoder and decoder of TOML-formatted files and streams. Provides implementations of the standard Serialize/Deserialize traits for TOML data to facilitate deserializing and serializing Rust structures." + }, + { + "name": "tower-service", + "version": "0.3.0", + "authors": "Tower Maintainers ", + "repository": "https://github.com/tower-rs/tower", + "license": "MIT", + "license_file": null, + "description": "Trait representing an asynchronous, request / response based, client or server." + }, + { + "name": "tracing", + "version": "0.1.21", + "authors": "Eliza Weisman |Tokio Contributors ", + "repository": "https://github.com/tokio-rs/tracing", + "license": "MIT", + "license_file": null, + "description": "Application-level tracing for Rust." + }, + { + "name": "tracing-core", + "version": "0.1.17", + "authors": "Tokio Contributors ", + "repository": "https://github.com/tokio-rs/tracing", + "license": "MIT", + "license_file": null, + "description": "Core primitives for application-level tracing." + }, + { + "name": "tracing-futures", + "version": "0.2.4", + "authors": "Eliza Weisman |Tokio Contributors ", + "repository": "https://github.com/tokio-rs/tracing", + "license": "MIT", + "license_file": null, + "description": "Utilities for instrumenting `futures` with `tracing`." + }, + { + "name": "try-lock", + "version": "0.2.3", + "authors": "Sean McArthur ", + "repository": "https://github.com/seanmonstar/try-lock", + "license": "MIT", + "license_file": null, + "description": "A lightweight atomic lock." + }, + { + "name": "type-map", + "version": "0.3.0", + "authors": "Jacob Brown ", + "repository": "https://github.com/kardeiz/type-map", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Provides a typemap container with FxHashMap" + }, + { + "name": "typenum", + "version": "1.12.0", + "authors": "Paho Lurie-Gregg |Andre Bogus ", + "repository": "https://github.com/paholg/typenum", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Typenum is a Rust library for type-level numbers evaluated at compile time. It currently supports bits, unsigned integers, and signed integers. It also provides a type-level array of type-level numbers, but its implementation is incomplete." + }, + { + "name": "unic-langid", + "version": "0.9.0", + "authors": "Zibi Braniecki ", + "repository": "https://github.com/zbraniecki/unic-locale", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "API for managing Unicode Language Identifiers" + }, + { + "name": "unic-langid-impl", + "version": "0.9.0", + "authors": "Zibi Braniecki ", + "repository": "https://github.com/zbraniecki/unic-locale", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "API for managing Unicode Language Identifiers" + }, + { + "name": "unic-langid-macros", + "version": "0.9.0", + "authors": "Manish Goregaokar |Zibi Braniecki ", + "repository": "https://github.com/zbraniecki/unic-locale", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "API for managing Unicode Language Identifiers" + }, + { + "name": "unic-langid-macros-impl", + "version": "0.9.0", + "authors": "Manish Goregaokar |Zibi Braniecki ", + "repository": "https://github.com/zbraniecki/unic-locale", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "API for managing Unicode Language Identifiers" + }, + { + "name": "unicase", + "version": "2.6.0", + "authors": "Sean McArthur ", + "repository": "https://github.com/seanmonstar/unicase", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A case-insensitive wrapper around strings." + }, + { + "name": "unicode-bidi", + "version": "0.3.4", + "authors": "The Servo Project Developers", + "repository": "https://github.com/servo/unicode-bidi", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Implementation of the Unicode Bidirectional Algorithm" + }, + { + "name": "unicode-normalization", + "version": "0.1.14", + "authors": "kwantam ", + "repository": "https://github.com/unicode-rs/unicode-normalization", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "This crate provides functions for normalization of Unicode strings, including Canonical and Compatible Decomposition and Recomposition, as described in Unicode Standard Annex #15." + }, + { + "name": "unicode-segmentation", + "version": "1.7.0", + "authors": "kwantam |Manish Goregaokar ", + "repository": "https://github.com/unicode-rs/unicode-segmentation", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "This crate provides Grapheme Cluster, Word and Sentence boundaries according to Unicode Standard Annex #29 rules." + }, + { + "name": "unicode-xid", + "version": "0.2.1", + "authors": "erick.tryzelaar |kwantam ", + "repository": "https://github.com/unicode-rs/unicode-xid", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31." + }, + { + "name": "unindent", + "version": "0.1.7", + "authors": "David Tolnay ", + "repository": "https://github.com/dtolnay/indoc", + "license": "MIT OR Apache-2.0", + "license_file": null, + "description": "Remove a column of leading whitespace from a string" + }, + { + "name": "untrusted", + "version": "0.7.1", + "authors": "Brian Smith ", + "repository": "https://github.com/briansmith/untrusted", + "license": "ISC", + "license_file": null, + "description": "Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of untrusted inputs in Rust." + }, + { + "name": "url", + "version": "2.2.0", + "authors": "The rust-url developers", + "repository": "https://github.com/servo/rust-url", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "URL library for Rust, based on the WHATWG URL Standard" + }, + { + "name": "utime", + "version": "0.3.1", + "authors": "Hyeon Kim ", + "repository": "https://github.com/simnalamburt/utime", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "A missing utime function for Rust." + }, + { + "name": "vcpkg", + "version": "0.2.10", + "authors": "Jim McGrath ", + "repository": "https://github.com/mcgoo/vcpkg-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "A library to find native dependencies in a vcpkg tree at build time in order to be used in Cargo build scripts." + }, + { + "name": "version_check", + "version": "0.9.2", + "authors": "Sergio Benitez ", + "repository": "https://github.com/SergioBenitez/version_check", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Tiny crate to check the version of the installed/running rustc." + }, + { + "name": "want", + "version": "0.3.0", + "authors": "Sean McArthur ", + "repository": "https://github.com/seanmonstar/want", + "license": "MIT", + "license_file": null, + "description": "Detect when another Future wants a result." + }, + { + "name": "wasi", + "version": "0.9.0+wasi-snapshot-preview1", + "authors": "The Cranelift Project Developers", + "repository": "https://github.com/bytecodealliance/wasi", + "license": "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT", + "license_file": null, + "description": "Experimental WASI API bindings for Rust" + }, + { + "name": "wasi", + "version": "0.10.0+wasi-snapshot-preview1", + "authors": "The Cranelift Project Developers", + "repository": "https://github.com/bytecodealliance/wasi", + "license": "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT", + "license_file": null, + "description": "Experimental WASI API bindings for Rust" + }, + { + "name": "wasm-bindgen", + "version": "0.2.68", + "authors": "The wasm-bindgen Developers", + "repository": "https://github.com/rustwasm/wasm-bindgen", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Easy support for interacting between JS and Rust." + }, + { + "name": "wasm-bindgen-backend", + "version": "0.2.68", + "authors": "The wasm-bindgen Developers", + "repository": "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Backend code generation of the wasm-bindgen tool" + }, + { + "name": "wasm-bindgen-futures", + "version": "0.4.18", + "authors": "The wasm-bindgen Developers", + "repository": "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Bridging the gap between Rust Futures and JavaScript Promises" + }, + { + "name": "wasm-bindgen-macro", + "version": "0.2.68", + "authors": "The wasm-bindgen Developers", + "repository": "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Definition of the `#[wasm_bindgen]` attribute, an internal dependency" + }, + { + "name": "wasm-bindgen-macro-support", + "version": "0.2.68", + "authors": "The wasm-bindgen Developers", + "repository": "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro-support", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "The part of the implementation of the `#[wasm_bindgen]` attribute that is not in the shared backend crate" + }, + { + "name": "wasm-bindgen-shared", + "version": "0.2.68", + "authors": "The wasm-bindgen Developers", + "repository": "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Shared support between wasm-bindgen and wasm-bindgen cli, an internal dependency." + }, + { + "name": "web-sys", + "version": "0.3.45", + "authors": "The wasm-bindgen Developers", + "repository": "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/web-sys", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Bindings for all Web APIs, a procedurally generated crate from WebIDL" + }, + { + "name": "webpki", + "version": "0.21.3", + "authors": "Brian Smith ", + "repository": "https://github.com/briansmith/webpki", + "license": null, + "license_file": "LICENSE", + "description": "Web PKI X.509 Certificate Verification." + }, + { + "name": "webpki-roots", + "version": "0.20.0", + "authors": "Joseph Birr-Pixton ", + "repository": "https://github.com/ctz/webpki-roots", + "license": "MPL-2.0", + "license_file": null, + "description": "Mozilla's CA root certificates for use with webpki" + }, + { + "name": "which", + "version": "4.0.2", + "authors": "Harry Fei ", + "repository": "https://github.com/harryfei/which-rs.git", + "license": "MIT", + "license_file": null, + "description": "A Rust equivalent of Unix command \"which\". Locate installed executable in cross platforms." + }, + { + "name": "winapi", + "version": "0.2.8", + "authors": "Peter Atashian ", + "repository": "https://github.com/retep998/winapi-rs", + "license": "MIT", + "license_file": null, + "description": "Types and constants for WinAPI bindings. See README for list of crates providing function bindings." + }, + { + "name": "winapi", + "version": "0.3.9", + "authors": "Peter Atashian ", + "repository": "https://github.com/retep998/winapi-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Raw FFI bindings for all of Windows API." + }, + { + "name": "winapi-build", + "version": "0.1.1", + "authors": "Peter Atashian ", + "repository": "https://github.com/retep998/winapi-rs", + "license": "MIT", + "license_file": null, + "description": "Common code for build.rs in WinAPI -sys crates." + }, + { + "name": "winapi-i686-pc-windows-gnu", + "version": "0.4.0", + "authors": "Peter Atashian ", + "repository": "https://github.com/retep998/winapi-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Import libraries for the i686-pc-windows-gnu target. Please don't use this crate directly, depend on winapi instead." + }, + { + "name": "winapi-util", + "version": "0.1.5", + "authors": "Andrew Gallant ", + "repository": "https://github.com/BurntSushi/winapi-util", + "license": "MIT/Unlicense", + "license_file": null, + "description": "A dumping ground for high level safe wrappers over winapi." + }, + { + "name": "winapi-x86_64-pc-windows-gnu", + "version": "0.4.0", + "authors": "Peter Atashian ", + "repository": "https://github.com/retep998/winapi-rs", + "license": "Apache-2.0/MIT", + "license_file": null, + "description": "Import libraries for the x86_64-pc-windows-gnu target. Please don't use this crate directly, depend on winapi instead." + }, + { + "name": "winreg", + "version": "0.7.0", + "authors": "Igor Shaula ", + "repository": "https://github.com/gentoo90/winreg-rs", + "license": "MIT", + "license_file": null, + "description": "Rust bindings to MS Windows Registry API" + }, + { + "name": "ws2_32-sys", + "version": "0.2.1", + "authors": "Peter Atashian ", + "repository": "https://github.com/retep998/winapi-rs", + "license": "MIT", + "license_file": null, + "description": "Contains function definitions for the Windows API library ws2_32. See winapi for types and constants." + }, + { + "name": "zip", + "version": "0.5.6", + "authors": "Mathijs van de Nes ", + "repository": "https://github.com/mvdnes/zip-rs.git", + "license": "MIT", + "license_file": null, + "description": "Library to support the reading and writing of zip files." + } +] diff --git a/cargo/raze.toml b/cargo/raze.toml index 2d4893059..783f950b9 100644 --- a/cargo/raze.toml +++ b/cargo/raze.toml @@ -7,7 +7,7 @@ edition = "2018" name = "anki" path = "src/lib.rs" -[raze] +[package.metadata.raze] workspace_path = "//cargo" targets = [ "i686-apple-darwin", @@ -22,13 +22,13 @@ targets = [ genmode = "Remote" default_gen_buildrs = true -[raze.crates.pyo3.'0.12.3'] +[package.metadata.raze.crates.pyo3.'*'] data_attr = "glob([\"**\"])" -[raze.crates.ring.'0.16.15'] +[package.metadata.raze.crates.ring.'*'] data_attr = "glob([\"src/**\"])" -[raze.crates.webpki.'0.21.3'] +[package.metadata.raze.crates.webpki.'*'] data_attr = "glob([\"src/**\"])" # WARNING: don't edit the dependencies below, they are generated by update.py diff --git a/cargo/remote/addr2line-0.14.0.BUILD.bazel b/cargo/remote/BUILD.addr2line-0.14.0.bazel similarity index 95% rename from cargo/remote/addr2line-0.14.0.BUILD.bazel rename to cargo/remote/BUILD.addr2line-0.14.0.bazel index b77983eac..a77355b78 100644 --- a/cargo/remote/addr2line-0.14.0.BUILD.bazel +++ b/cargo/remote/BUILD.addr2line-0.14.0.bazel @@ -28,30 +28,34 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "addr2line" with type "example" omitted -# buildifier: leave-alone rust_library( name = "addr2line", - crate_type = "lib", - deps = [ - "@raze__gimli__0_23_0//:gimli", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.14.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.14.0", + # buildifier: leave-alone + deps = [ + "@raze__gimli__0_23_0//:gimli", ], ) + # Unsupported target "correctness" with type "test" omitted + # Unsupported target "output_equivalence" with type "test" omitted + # Unsupported target "parse" with type "test" omitted diff --git a/cargo/remote/adler-0.2.3.BUILD.bazel b/cargo/remote/BUILD.adler-0.2.3.bazel similarity index 95% rename from cargo/remote/adler-0.2.3.BUILD.bazel rename to cargo/remote/BUILD.adler-0.2.3.bazel index 61d42c0b9..f956990cb 100644 --- a/cargo/remote/adler-0.2.3.BUILD.bazel +++ b/cargo/remote/BUILD.adler-0.2.3.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # MIT from expression "0BSD OR (MIT OR Apache-2.0)" ]) -# Generated targets +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "adler", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.3", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.3", + # buildifier: leave-alone + deps = [ ], ) -# Unsupported target "bench" with type "bench" omitted diff --git a/cargo/remote/ahash-0.4.6.BUILD.bazel b/cargo/remote/BUILD.ahash-0.4.6.bazel similarity index 95% rename from cargo/remote/ahash-0.4.6.BUILD.bazel rename to cargo/remote/BUILD.ahash-0.4.6.bazel index 9c7b26962..4a66e7691 100644 --- a/cargo/remote/ahash-0.4.6.BUILD.bazel +++ b/cargo/remote/BUILD.ahash-0.4.6.bazel @@ -28,30 +28,35 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "ahash" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "map" with type "bench" omitted + rust_library( name = "ahash", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.6", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.6", + # buildifier: leave-alone + deps = [ ], ) + # Unsupported target "bench" with type "test" omitted -# Unsupported target "map" with type "bench" omitted + # Unsupported target "map_tests" with type "test" omitted + # Unsupported target "nopanic" with type "test" omitted diff --git a/cargo/remote/aho-corasick-0.7.14.BUILD.bazel b/cargo/remote/BUILD.aho-corasick-0.7.15.bazel similarity index 93% rename from cargo/remote/aho-corasick-0.7.14.BUILD.bazel rename to cargo/remote/BUILD.aho-corasick-0.7.15.bazel index 826cd0917..0c8d76f29 100644 --- a/cargo/remote/aho-corasick-0.7.14.BUILD.bazel +++ b/cargo/remote/BUILD.aho-corasick-0.7.15.bazel @@ -28,28 +28,28 @@ licenses([ "unencumbered", # Unlicense from expression "Unlicense OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "aho_corasick", - crate_type = "lib", - deps = [ - "@raze__memchr__2_3_4//:memchr", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.7.14", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.15", + # buildifier: leave-alone + deps = [ + "@raze__memchr__2_3_4//:memchr", + ], ) diff --git a/cargo/remote/anyhow-1.0.34.BUILD.bazel b/cargo/remote/BUILD.anyhow-1.0.34.bazel similarity index 94% rename from cargo/remote/anyhow-1.0.34.BUILD.bazel rename to cargo/remote/BUILD.anyhow-1.0.34.bazel index cb9148b0e..ca89169ff 100644 --- a/cargo/remote/anyhow-1.0.34.BUILD.bazel +++ b/cargo/remote/BUILD.anyhow-1.0.34.bazel @@ -28,72 +28,81 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "anyhow_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.0.34", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "anyhow", - crate_type = "lib", - deps = [ - ":anyhow_build_script", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.34", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.34", + # buildifier: leave-alone + deps = [ + ":anyhow_build_script", + ], ) + # Unsupported target "compiletest" with type "test" omitted + # Unsupported target "test_autotrait" with type "test" omitted + # Unsupported target "test_backtrace" with type "test" omitted + # Unsupported target "test_boxed" with type "test" omitted + # Unsupported target "test_chain" with type "test" omitted + # Unsupported target "test_context" with type "test" omitted + # Unsupported target "test_convert" with type "test" omitted + # Unsupported target "test_downcast" with type "test" omitted + # Unsupported target "test_fmt" with type "test" omitted + # Unsupported target "test_macros" with type "test" omitted + # Unsupported target "test_repr" with type "test" omitted + # Unsupported target "test_source" with type "test" omitted diff --git a/cargo/remote/arc-swap-0.4.7.BUILD.bazel b/cargo/remote/BUILD.arc-swap-0.4.7.bazel similarity index 95% rename from cargo/remote/arc-swap-0.4.7.BUILD.bazel rename to cargo/remote/BUILD.arc-swap-0.4.7.bazel index e4bd85d7a..5c0ea60a6 100644 --- a/cargo/remote/arc-swap-0.4.7.BUILD.bazel +++ b/cargo/remote/BUILD.arc-swap-0.4.7.bazel @@ -28,28 +28,31 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "arc_swap", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.7", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.7", + # buildifier: leave-alone + deps = [ ], ) + # Unsupported target "random" with type "test" omitted + # Unsupported target "stress" with type "test" omitted + # Unsupported target "version" with type "test" omitted diff --git a/cargo/remote/arrayref-0.3.6.BUILD.bazel b/cargo/remote/BUILD.arrayref-0.3.6.bazel similarity index 95% rename from cargo/remote/arrayref-0.3.6.BUILD.bazel rename to cargo/remote/BUILD.arrayref-0.3.6.bazel index dbb3ddf5c..b0fcfc8ad 100644 --- a/cargo/remote/arrayref-0.3.6.BUILD.bazel +++ b/cargo/remote/BUILD.arrayref-0.3.6.bazel @@ -28,28 +28,31 @@ licenses([ "restricted", # BSD-2-Clause from expression "BSD-2-Clause" ]) -# Generated targets +# Generated Targets + # Unsupported target "array_refs" with type "example" omitted + # Unsupported target "array_refs_with_const" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "simple-case" with type "example" omitted + rust_library( name = "arrayref", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.6", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.6", + # buildifier: leave-alone + deps = [ ], ) -# Unsupported target "simple-case" with type "example" omitted diff --git a/cargo/remote/arrayvec-0.4.12.BUILD.bazel b/cargo/remote/BUILD.arrayvec-0.4.12.bazel similarity index 93% rename from cargo/remote/arrayvec-0.4.12.BUILD.bazel rename to cargo/remote/BUILD.arrayvec-0.4.12.bazel index 8d0674892..8647ea94e 100644 --- a/cargo/remote/arrayvec-0.4.12.BUILD.bazel +++ b/cargo/remote/BUILD.arrayvec-0.4.12.bazel @@ -28,65 +28,66 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "arrayvec_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.4.12", visibility = ["//visibility:private"], + deps = [ + ], ) # Unsupported target "arraystring" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "extend" with type "bench" omitted + rust_library( name = "arrayvec", - crate_type = "lib", - deps = [ - ":arrayvec_build_script", - "@raze__nodrop__0_1_14//:nodrop", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.4.12", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.12", + # buildifier: leave-alone + deps = [ + ":arrayvec_build_script", + "@raze__nodrop__0_1_14//:nodrop", + ], ) -# Unsupported target "extend" with type "bench" omitted + # Unsupported target "serde" with type "test" omitted + # Unsupported target "tests" with type "test" omitted diff --git a/cargo/remote/arrayvec-0.5.2.BUILD.bazel b/cargo/remote/BUILD.arrayvec-0.5.2.bazel similarity index 95% rename from cargo/remote/arrayvec-0.5.2.BUILD.bazel rename to cargo/remote/BUILD.arrayvec-0.5.2.bazel index d5bfc5e34..001842bcb 100644 --- a/cargo/remote/arrayvec-0.5.2.BUILD.bazel +++ b/cargo/remote/BUILD.arrayvec-0.5.2.bazel @@ -28,32 +28,36 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "arraystring" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "extend" with type "bench" omitted + rust_library( name = "arrayvec", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.5.2", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "array-sizes-33-128", "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.2", + # buildifier: leave-alone + deps = [ + ], ) -# Unsupported target "extend" with type "bench" omitted + # Unsupported target "serde" with type "test" omitted + # Unsupported target "tests" with type "test" omitted diff --git a/cargo/remote/askama-0.10.3.BUILD.bazel b/cargo/remote/BUILD.askama-0.10.3.bazel similarity index 96% rename from cargo/remote/askama-0.10.3.BUILD.bazel rename to cargo/remote/BUILD.askama-0.10.3.bazel index b391b46bd..8da39505e 100644 --- a/cargo/remote/askama-0.10.3.BUILD.bazel +++ b/cargo/remote/BUILD.askama-0.10.3.bazel @@ -28,30 +28,11 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "askama", - crate_type = "lib", - deps = [ - "@raze__askama_escape__0_10_1//:askama_escape", - "@raze__askama_shared__0_10_4//:askama_shared", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - proc_macro_deps = [ - "@raze__askama_derive__0_10_3//:askama_derive", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.10.3", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "config", "default", @@ -59,4 +40,23 @@ rust_library( "num-traits", "urlencode", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__askama_derive__0_10_3//:askama_derive", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.3", + # buildifier: leave-alone + deps = [ + "@raze__askama_escape__0_10_1//:askama_escape", + "@raze__askama_shared__0_10_4//:askama_shared", + ], ) diff --git a/cargo/remote/askama_derive-0.10.3.BUILD.bazel b/cargo/remote/BUILD.askama_derive-0.10.3.bazel similarity index 95% rename from cargo/remote/askama_derive-0.10.3.BUILD.bazel rename to cargo/remote/BUILD.askama_derive-0.10.3.bazel index 656859cab..b3ec52f55 100644 --- a/cargo/remote/askama_derive-0.10.3.BUILD.bazel +++ b/cargo/remote/BUILD.askama_derive-0.10.3.bazel @@ -28,29 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "askama_derive", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.3", + # buildifier: leave-alone deps = [ "@raze__askama_shared__0_10_4//:askama_shared", "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.10.3", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/askama_escape-0.10.1.BUILD.bazel b/cargo/remote/BUILD.askama_escape-0.10.1.bazel similarity index 95% rename from cargo/remote/askama_escape-0.10.1.BUILD.bazel rename to cargo/remote/BUILD.askama_escape-0.10.1.bazel index f7e1e5cf1..723dc0a26 100644 --- a/cargo/remote/askama_escape-0.10.1.BUILD.bazel +++ b/cargo/remote/BUILD.askama_escape-0.10.1.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "all" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "askama_escape", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.10.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.10.1", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/askama_shared-0.10.4.BUILD.bazel b/cargo/remote/BUILD.askama_shared-0.10.4.bazel similarity index 96% rename from cargo/remote/askama_shared-0.10.4.BUILD.bazel rename to cargo/remote/BUILD.askama_shared-0.10.4.bazel index e92f17f93..35688655c 100644 --- a/cargo/remote/askama_shared-0.10.4.BUILD.bazel +++ b/cargo/remote/BUILD.askama_shared-0.10.4.bazel @@ -28,12 +28,31 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "askama_shared", + srcs = glob(["**/*.rs"]), + crate_features = [ + "config", + "humansize", + "num-traits", + "percent-encoding", + "serde", + "toml", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.4", + # buildifier: leave-alone deps = [ "@raze__askama_escape__0_10_1//:askama_escape", "@raze__humansize__1_1_0//:humansize", @@ -46,23 +65,4 @@ rust_library( "@raze__syn__1_0_48//:syn", "@raze__toml__0_5_7//:toml", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.10.4", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "config", - "humansize", - "num-traits", - "percent-encoding", - "serde", - "toml", - ], ) diff --git a/cargo/remote/async-compression-0.3.5.BUILD.bazel b/cargo/remote/BUILD.async-compression-0.3.6.bazel similarity index 86% rename from cargo/remote/async-compression-0.3.5.BUILD.bazel rename to cargo/remote/BUILD.async-compression-0.3.6.bazel index 6e1415c73..864500c18 100644 --- a/cargo/remote/async-compression-0.3.5.BUILD.bazel +++ b/cargo/remote/BUILD.async-compression-0.3.6.bazel @@ -28,30 +28,15 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + +# Unsupported target "zlib_tokio_02_write" with type "example" omitted + +# Unsupported target "zstd_gzip" with type "example" omitted -# buildifier: leave-alone rust_library( name = "async_compression", - crate_type = "lib", - deps = [ - "@raze__bytes__0_5_6//:bytes", - "@raze__flate2__1_0_19//:flate2", - "@raze__futures_core__0_3_7//:futures_core", - "@raze__memchr__2_3_4//:memchr", - "@raze__pin_project_lite__0_1_11//:pin_project_lite", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.5", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "bytes", "default", @@ -59,13 +44,41 @@ rust_library( "gzip", "stream", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.6", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__flate2__1_0_19//:flate2", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__memchr__2_3_4//:memchr", + "@raze__pin_project_lite__0_1_11//:pin_project_lite", + ], ) + # Unsupported target "brotli" with type "test" omitted + # Unsupported target "bzip2" with type "test" omitted + # Unsupported target "deflate" with type "test" omitted + # Unsupported target "gzip" with type "test" omitted + # Unsupported target "lzma" with type "test" omitted + # Unsupported target "proptest" with type "test" omitted + # Unsupported target "xz" with type "test" omitted + # Unsupported target "zlib" with type "test" omitted + # Unsupported target "zstd" with type "test" omitted diff --git a/cargo/remote/atty-0.2.14.BUILD.bazel b/cargo/remote/BUILD.atty-0.2.14.bazel similarity index 97% rename from cargo/remote/atty-0.2.14.BUILD.bazel rename to cargo/remote/BUILD.atty-0.2.14.bazel index fe59c1d68..76d346625 100644 --- a/cargo/remote/atty-0.2.14.BUILD.bazel +++ b/cargo/remote/BUILD.atty-0.2.14.bazel @@ -28,13 +28,29 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "atty" with type "example" omitted -# buildifier: leave-alone rust_library( name = "atty", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.14", + # buildifier: leave-alone deps = [ ] + selects.with_or({ # cfg(unix) @@ -59,19 +75,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.14", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) diff --git a/cargo/remote/autocfg-1.0.1.BUILD.bazel b/cargo/remote/BUILD.autocfg-1.0.1.bazel similarity index 95% rename from cargo/remote/autocfg-1.0.1.BUILD.bazel rename to cargo/remote/BUILD.autocfg-1.0.1.bazel index b9d60c695..580d3acd8 100644 --- a/cargo/remote/autocfg-1.0.1.BUILD.bazel +++ b/cargo/remote/BUILD.autocfg-1.0.1.bazel @@ -28,30 +28,35 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + +# Unsupported target "integers" with type "example" omitted + +# Unsupported target "paths" with type "example" omitted + +# Unsupported target "traits" with type "example" omitted + +# Unsupported target "versions" with type "example" omitted -# buildifier: leave-alone rust_library( name = "autocfg", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "1.0.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.0.1", + # buildifier: leave-alone + deps = [ ], ) -# Unsupported target "integers" with type "example" omitted -# Unsupported target "paths" with type "example" omitted + # Unsupported target "rustflags" with type "test" omitted -# Unsupported target "traits" with type "example" omitted -# Unsupported target "versions" with type "example" omitted diff --git a/cargo/remote/backtrace-0.3.54.BUILD.bazel b/cargo/remote/BUILD.backtrace-0.3.54.bazel similarity index 97% rename from cargo/remote/backtrace-0.3.54.BUILD.bazel rename to cargo/remote/BUILD.backtrace-0.3.54.bazel index d418e07f3..fa8be5d0b 100644 --- a/cargo/remote/backtrace-0.3.54.BUILD.bazel +++ b/cargo/remote/BUILD.backtrace-0.3.54.bazel @@ -28,14 +28,39 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "accuracy" with type "test" omitted +# Generated Targets + +# Unsupported target "benchmarks" with type "bench" omitted + # Unsupported target "backtrace" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "raw" with type "example" omitted + rust_library( name = "backtrace", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "addr2line", + "default", + "gimli-symbolize", + "miniz_oxide", + "object", + "std", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.54", + # buildifier: leave-alone deps = [ "@raze__addr2line__0_14_0//:addr2line", "@raze__cfg_if__1_0_0//:cfg_if", @@ -52,31 +77,14 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.54", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "addr2line", - "default", - "gimli-symbolize", - "miniz_oxide", - "object", - "std", - ], - aliases = { - }, ) -# Unsupported target "benchmarks" with type "bench" omitted + +# Unsupported target "accuracy" with type "test" omitted + # Unsupported target "concurrent-panics" with type "test" omitted + # Unsupported target "long_fn_name" with type "test" omitted -# Unsupported target "raw" with type "example" omitted + # Unsupported target "skip_inner_frames" with type "test" omitted + # Unsupported target "smoke" with type "test" omitted diff --git a/cargo/remote/base64-0.12.3.BUILD.bazel b/cargo/remote/BUILD.base64-0.12.3.bazel similarity index 95% rename from cargo/remote/base64-0.12.3.BUILD.bazel rename to cargo/remote/BUILD.base64-0.12.3.bazel index d3ff8a43c..0a2312eca 100644 --- a/cargo/remote/base64-0.12.3.BUILD.bazel +++ b/cargo/remote/BUILD.base64-0.12.3.bazel @@ -28,33 +28,39 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + +# Unsupported target "benchmarks" with type "bench" omitted + +# Unsupported target "make_tables" with type "example" omitted -# buildifier: leave-alone rust_library( name = "base64", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.12.3", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.12.3", + # buildifier: leave-alone + deps = [ + ], ) -# Unsupported target "benchmarks" with type "bench" omitted + # Unsupported target "decode" with type "test" omitted + # Unsupported target "encode" with type "test" omitted + # Unsupported target "helpers" with type "test" omitted -# Unsupported target "make_tables" with type "example" omitted + # Unsupported target "tests" with type "test" omitted diff --git a/cargo/remote/base64-0.13.0.BUILD.bazel b/cargo/remote/BUILD.base64-0.13.0.bazel similarity index 96% rename from cargo/remote/base64-0.13.0.BUILD.bazel rename to cargo/remote/BUILD.base64-0.13.0.bazel index a2978e26e..77057688a 100644 --- a/cargo/remote/base64-0.13.0.BUILD.bazel +++ b/cargo/remote/BUILD.base64-0.13.0.bazel @@ -28,34 +28,41 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + +# Unsupported target "benchmarks" with type "bench" omitted + # Unsupported target "base64" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "make_tables" with type "example" omitted + rust_library( name = "base64", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.13.0", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.13.0", + # buildifier: leave-alone + deps = [ + ], ) -# Unsupported target "benchmarks" with type "bench" omitted + # Unsupported target "decode" with type "test" omitted + # Unsupported target "encode" with type "test" omitted + # Unsupported target "helpers" with type "test" omitted -# Unsupported target "make_tables" with type "example" omitted + # Unsupported target "tests" with type "test" omitted diff --git a/cargo/remote/bitflags-1.2.1.BUILD.bazel b/cargo/remote/BUILD.bitflags-1.2.1.bazel similarity index 92% rename from cargo/remote/bitflags-1.2.1.BUILD.bazel rename to cargo/remote/BUILD.bitflags-1.2.1.bazel index 89c4d9072..8beb37d87 100644 --- a/cargo/remote/bitflags-1.2.1.BUILD.bazel +++ b/cargo/remote/BUILD.bitflags-1.2.1.bazel @@ -28,58 +28,55 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "bitflags_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.2.1", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "bitflags", - crate_type = "lib", - deps = [ - ":bitflags_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "1.2.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", + version = "1.2.1", + # buildifier: leave-alone + deps = [ + ":bitflags_build_script", ], ) diff --git a/cargo/remote/blake2b_simd-0.5.11.BUILD.bazel b/cargo/remote/BUILD.blake2b_simd-0.5.11.bazel similarity index 95% rename from cargo/remote/blake2b_simd-0.5.11.BUILD.bazel rename to cargo/remote/BUILD.blake2b_simd-0.5.11.bazel index 390ea5d9f..b47529cac 100644 --- a/cargo/remote/blake2b_simd-0.5.11.BUILD.bazel +++ b/cargo/remote/BUILD.blake2b_simd-0.5.11.bazel @@ -28,30 +28,30 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "blake2b_simd", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.11", + # buildifier: leave-alone deps = [ "@raze__arrayref__0_3_6//:arrayref", "@raze__arrayvec__0_5_2//:arrayvec", "@raze__constant_time_eq__0_1_5//:constant_time_eq", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.5.11", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - "std", - ], ) diff --git a/cargo/remote/blake3-0.3.7.BUILD.bazel b/cargo/remote/BUILD.blake3-0.3.7.bazel similarity index 91% rename from cargo/remote/blake3-0.3.7.BUILD.bazel rename to cargo/remote/BUILD.blake3-0.3.7.bazel index a3944992a..cfce76752 100644 --- a/cargo/remote/blake3-0.3.7.BUILD.bazel +++ b/cargo/remote/BUILD.blake3-0.3.7.bazel @@ -28,46 +28,59 @@ licenses([ "unencumbered", # CC0-1.0 from expression "CC0-1.0 OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "blake3_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ - "@raze__cc__1_0_61//:cc", + build_script_env = { + }, + crate_features = [ + "default", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.3.7", visibility = ["//visibility:private"], + deps = [ + "@raze__cc__1_0_62//:cc", + ], ) # Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "blake3", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.7", + # buildifier: leave-alone deps = [ ":blake3_build_script", "@raze__arrayref__0_3_6//:arrayref", @@ -77,19 +90,4 @@ rust_library( "@raze__crypto_mac__0_8_0//:crypto_mac", "@raze__digest__0_9_0//:digest", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.7", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - "std", - ], ) diff --git a/cargo/remote/bumpalo-3.4.0.BUILD.bazel b/cargo/remote/BUILD.bumpalo-3.4.0.bazel similarity index 96% rename from cargo/remote/bumpalo-3.4.0.BUILD.bazel rename to cargo/remote/BUILD.bumpalo-3.4.0.bazel index cc4837a3d..cd24af996 100644 --- a/cargo/remote/bumpalo-3.4.0.BUILD.bazel +++ b/cargo/remote/BUILD.bumpalo-3.4.0.bazel @@ -28,35 +28,44 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "alloc_fill" with type "test" omitted -# Unsupported target "alloc_with" with type "test" omitted +# Generated Targets + # Unsupported target "benches" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "bumpalo", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "3.4.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", + version = "3.4.0", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "alloc_fill" with type "test" omitted + +# Unsupported target "alloc_with" with type "test" omitted + # Unsupported target "quickchecks" with type "test" omitted + # Unsupported target "readme_up_to_date" with type "test" omitted + # Unsupported target "string" with type "test" omitted + # Unsupported target "tests" with type "test" omitted + # Unsupported target "try_alloc" with type "test" omitted + # Unsupported target "vec" with type "test" omitted diff --git a/cargo/remote/byteorder-1.3.4.BUILD.bazel b/cargo/remote/BUILD.byteorder-1.3.4.bazel similarity index 92% rename from cargo/remote/byteorder-1.3.4.BUILD.bazel rename to cargo/remote/BUILD.byteorder-1.3.4.bazel index 37fc73698..234aff448 100644 --- a/cargo/remote/byteorder-1.3.4.BUILD.bazel +++ b/cargo/remote/BUILD.byteorder-1.3.4.bazel @@ -28,61 +28,59 @@ licenses([ "unencumbered", # Unlicense from expression "Unlicense OR MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "byteorder_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.3.4", visibility = ["//visibility:private"], + deps = [ + ], ) # Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "byteorder", - crate_type = "lib", - deps = [ - ":byteorder_build_script", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.3.4", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.4", + # buildifier: leave-alone + deps = [ + ":byteorder_build_script", + ], ) diff --git a/cargo/remote/bytes-0.4.12.BUILD.bazel b/cargo/remote/BUILD.bytes-0.4.12.bazel similarity index 96% rename from cargo/remote/bytes-0.4.12.BUILD.bazel rename to cargo/remote/BUILD.bytes-0.4.12.bazel index 98b1053ca..fa8e97864 100644 --- a/cargo/remote/bytes-0.4.12.BUILD.bazel +++ b/cargo/remote/BUILD.bytes-0.4.12.bazel @@ -28,38 +28,49 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "bytes" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "bytes", - crate_type = "lib", - deps = [ - "@raze__byteorder__1_3_4//:byteorder", - "@raze__iovec__0_1_4//:iovec", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.12", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.12", + # buildifier: leave-alone + deps = [ + "@raze__byteorder__1_3_4//:byteorder", + "@raze__iovec__0_1_4//:iovec", ], ) + # Unsupported target "test_buf" with type "test" omitted + # Unsupported target "test_buf_mut" with type "test" omitted + # Unsupported target "test_bytes" with type "test" omitted + # Unsupported target "test_chain" with type "test" omitted + # Unsupported target "test_debug" with type "test" omitted + # Unsupported target "test_from_buf" with type "test" omitted + # Unsupported target "test_iter" with type "test" omitted + # Unsupported target "test_reader" with type "test" omitted + # Unsupported target "test_serde" with type "test" omitted + # Unsupported target "test_take" with type "test" omitted diff --git a/cargo/remote/bytes-0.5.6.BUILD.bazel b/cargo/remote/BUILD.bytes-0.5.6.bazel similarity index 96% rename from cargo/remote/bytes-0.5.6.BUILD.bazel rename to cargo/remote/BUILD.bytes-0.5.6.bazel index 7ceeb84f1..604a1eeaa 100644 --- a/cargo/remote/bytes-0.5.6.BUILD.bazel +++ b/cargo/remote/BUILD.bytes-0.5.6.bazel @@ -28,41 +28,55 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "buf" with type "bench" omitted + # Unsupported target "bytes" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "bytes_mut" with type "bench" omitted + rust_library( name = "bytes", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.5.6", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.6", + # buildifier: leave-alone + deps = [ + ], ) -# Unsupported target "bytes_mut" with type "bench" omitted + # Unsupported target "test_buf" with type "test" omitted + # Unsupported target "test_buf_mut" with type "test" omitted + # Unsupported target "test_bytes" with type "test" omitted + # Unsupported target "test_bytes_odd_alloc" with type "test" omitted + # Unsupported target "test_bytes_vec_alloc" with type "test" omitted + # Unsupported target "test_chain" with type "test" omitted + # Unsupported target "test_debug" with type "test" omitted + # Unsupported target "test_iter" with type "test" omitted + # Unsupported target "test_reader" with type "test" omitted + # Unsupported target "test_serde" with type "test" omitted + # Unsupported target "test_take" with type "test" omitted diff --git a/cargo/remote/cc-1.0.61.BUILD.bazel b/cargo/remote/BUILD.cc-1.0.62.bazel similarity index 92% rename from cargo/remote/cc-1.0.61.BUILD.bazel rename to cargo/remote/BUILD.cc-1.0.62.bazel index 37401f502..a110ba198 100644 --- a/cargo/remote/cc-1.0.61.BUILD.bazel +++ b/cargo/remote/BUILD.cc-1.0.62.bazel @@ -28,53 +28,57 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone -rust_library( - name = "cc", - crate_type = "lib", - deps = [ - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.61", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], -) -# Unsupported target "cc_env" with type "test" omitted -# Unsupported target "cflags" with type "test" omitted -# Unsupported target "cxxflags" with type "test" omitted - -# buildifier: leave-alone rust_binary( # Prefix bin name to disambiguate from (probable) collision with lib name # N.B.: The exact form of this is subject to change. name = "cargo_bin_gcc_shim", - deps = [ - # Binaries get an implicit dependency on their crate's lib - ":cc", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/bin/gcc-shim.rs", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "1.0.61", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.0.62", + # buildifier: leave-alone + deps = [ + # Binaries get an implicit dependency on their crate's lib + ":cc", ], ) + +rust_library( + name = "cc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.62", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "cc_env" with type "test" omitted + +# Unsupported target "cflags" with type "test" omitted + +# Unsupported target "cxxflags" with type "test" omitted + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/cfg-if-0.1.10.BUILD.bazel b/cargo/remote/BUILD.cfg-if-0.1.10.bazel similarity index 95% rename from cargo/remote/cfg-if-0.1.10.BUILD.bazel rename to cargo/remote/BUILD.cfg-if-0.1.10.bazel index 747af181a..f43387d0c 100644 --- a/cargo/remote/cfg-if-0.1.10.BUILD.bazel +++ b/cargo/remote/BUILD.cfg-if-0.1.10.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "cfg_if", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.10", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.10", + # buildifier: leave-alone + deps = [ ], ) + # Unsupported target "xcrate" with type "test" omitted diff --git a/cargo/remote/cfg-if-1.0.0.BUILD.bazel b/cargo/remote/BUILD.cfg-if-1.0.0.bazel similarity index 95% rename from cargo/remote/cfg-if-1.0.0.BUILD.bazel rename to cargo/remote/BUILD.cfg-if-1.0.0.bazel index bda140871..62e4572b3 100644 --- a/cargo/remote/cfg-if-1.0.0.BUILD.bazel +++ b/cargo/remote/BUILD.cfg-if-1.0.0.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "cfg_if", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "1.0.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.0.0", + # buildifier: leave-alone + deps = [ ], ) + # Unsupported target "xcrate" with type "test" omitted diff --git a/cargo/remote/chrono-0.4.19.BUILD.bazel b/cargo/remote/BUILD.chrono-0.4.19.bazel similarity index 97% rename from cargo/remote/chrono-0.4.19.BUILD.bazel rename to cargo/remote/BUILD.chrono-0.4.19.bazel index 6e24ee047..993c470f4 100644 --- a/cargo/remote/chrono-0.4.19.BUILD.bazel +++ b/cargo/remote/BUILD.chrono-0.4.19.bazel @@ -28,13 +28,38 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "chrono" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "serde" with type "bench" omitted + rust_library( name = "chrono", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "clock", + "default", + "libc", + "oldtime", + "std", + "time", + "winapi", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.19", + # buildifier: leave-alone deps = [ "@raze__libc__0_2_80//:libc", "@raze__num_integer__0_1_44//:num_integer", @@ -50,28 +75,6 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.4.19", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "clock", - "default", - "libc", - "oldtime", - "std", - "time", - "winapi", - ], - aliases = { - }, ) -# Unsupported target "serde" with type "bench" omitted + # Unsupported target "wasm" with type "test" omitted diff --git a/cargo/remote/cloudabi-0.1.0.BUILD.bazel b/cargo/remote/BUILD.cloudabi-0.1.0.bazel similarity index 95% rename from cargo/remote/cloudabi-0.1.0.BUILD.bazel rename to cargo/remote/BUILD.cloudabi-0.1.0.bazel index 1441d5553..a99bf11f0 100644 --- a/cargo/remote/cloudabi-0.1.0.BUILD.bazel +++ b/cargo/remote/BUILD.cloudabi-0.1.0.bazel @@ -28,28 +28,28 @@ licenses([ "restricted", # BSD-2-Clause from expression "BSD-2-Clause" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "cloudabi", - crate_type = "lib", - deps = [ - "@raze__bitflags__1_2_1//:bitflags", - ], srcs = glob(["**/*.rs"]), - crate_root = "cloudabi.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.0", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "bitflags", "default", ], + crate_root = "cloudabi.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.0", + # buildifier: leave-alone + deps = [ + "@raze__bitflags__1_2_1//:bitflags", + ], ) diff --git a/cargo/remote/BUILD.coarsetime-0.1.16.bazel b/cargo/remote/BUILD.coarsetime-0.1.16.bazel new file mode 100644 index 000000000..ecc6b3617 --- /dev/null +++ b/cargo/remote/BUILD.coarsetime-0.1.16.bazel @@ -0,0 +1,70 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # ISC from expression "ISC" +]) + +# Generated Targets + +rust_library( + name = "coarsetime", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.16", + # buildifier: leave-alone + deps = [ + "@raze__lazy_static__1_4_0//:lazy_static", + ] + selects.with_or({ + # cfg(not(target_os = "wasi")) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__libc__0_2_80//:libc", + ], + "//conditions:default": [], + }), +) diff --git a/cargo/remote/constant_time_eq-0.1.5.BUILD.bazel b/cargo/remote/BUILD.constant_time_eq-0.1.5.bazel similarity index 95% rename from cargo/remote/constant_time_eq-0.1.5.BUILD.bazel rename to cargo/remote/BUILD.constant_time_eq-0.1.5.bazel index f779ebdf0..1210d64a3 100644 --- a/cargo/remote/constant_time_eq-0.1.5.BUILD.bazel +++ b/cargo/remote/BUILD.constant_time_eq-0.1.5.bazel @@ -28,26 +28,27 @@ licenses([ "unencumbered", # CC0-1.0 from expression "CC0-1.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "constant_time_eq", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.5", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.5", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/core-foundation-0.7.0.BUILD.bazel b/cargo/remote/BUILD.core-foundation-0.9.1.bazel similarity index 88% rename from cargo/remote/core-foundation-0.7.0.BUILD.bazel rename to cargo/remote/BUILD.core-foundation-0.9.1.bazel index 38abcea78..943ce6b57 100644 --- a/cargo/remote/core-foundation-0.7.0.BUILD.bazel +++ b/cargo/remote/BUILD.core-foundation-0.9.1.bazel @@ -28,28 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "core_foundation", - crate_type = "lib", - deps = [ - "@raze__core_foundation_sys__0_7_0//:core_foundation_sys", - "@raze__libc__0_2_80//:libc", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.7.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.9.1", + # buildifier: leave-alone + deps = [ + "@raze__core_foundation_sys__0_8_2//:core_foundation_sys", + "@raze__libc__0_2_80//:libc", ], ) + # Unsupported target "use_macro_outside_crate" with type "test" omitted diff --git a/cargo/remote/core-foundation-sys-0.7.0.BUILD.bazel b/cargo/remote/BUILD.core-foundation-sys-0.8.2.bazel similarity index 90% rename from cargo/remote/core-foundation-sys-0.7.0.BUILD.bazel rename to cargo/remote/BUILD.core-foundation-sys-0.8.2.bazel index d8f3297e6..2f5fd0070 100644 --- a/cargo/remote/core-foundation-sys-0.7.0.BUILD.bazel +++ b/cargo/remote/BUILD.core-foundation-sys-0.8.2.bazel @@ -28,56 +28,53 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "core_foundation_sys_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], - version = "0.7.0", + version = "0.8.2", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "core_foundation_sys", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.2", + # buildifier: leave-alone deps = [ ":core_foundation_sys_build_script", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.7.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/crc32fast-1.2.1.BUILD.bazel b/cargo/remote/BUILD.crc32fast-1.2.1.bazel similarity index 92% rename from cargo/remote/crc32fast-1.2.1.BUILD.bazel rename to cargo/remote/BUILD.crc32fast-1.2.1.bazel index 8a2063774..18435e851 100644 --- a/cargo/remote/crc32fast-1.2.1.BUILD.bazel +++ b/cargo/remote/BUILD.crc32fast-1.2.1.bazel @@ -28,62 +28,60 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "crc32fast_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.2.1", visibility = ["//visibility:private"], + deps = [ + ], ) # Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "crc32fast", - crate_type = "lib", - deps = [ - ":crc32fast_build_script", - "@raze__cfg_if__1_0_0//:cfg_if", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.2.1", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.1", + # buildifier: leave-alone + deps = [ + ":crc32fast_build_script", + "@raze__cfg_if__1_0_0//:cfg_if", + ], ) diff --git a/cargo/remote/crossbeam-channel-0.4.4.BUILD.bazel b/cargo/remote/BUILD.crossbeam-channel-0.4.4.bazel similarity index 96% rename from cargo/remote/crossbeam-channel-0.4.4.BUILD.bazel rename to cargo/remote/BUILD.crossbeam-channel-0.4.4.bazel index 074af545d..cc561b29e 100644 --- a/cargo/remote/crossbeam-channel-0.4.4.BUILD.bazel +++ b/cargo/remote/BUILD.crossbeam-channel-0.4.4.bazel @@ -28,45 +28,63 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "after" with type "test" omitted -# Unsupported target "array" with type "test" omitted +# Generated Targets + # Unsupported target "crossbeam" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "fibonacci" with type "example" omitted + +# Unsupported target "matching" with type "example" omitted + +# Unsupported target "stopwatch" with type "example" omitted + rust_library( name = "crossbeam_channel", - crate_type = "lib", - deps = [ - "@raze__crossbeam_utils__0_7_2//:crossbeam_utils", - "@raze__maybe_uninit__2_0_0//:maybe_uninit", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.4", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.4", + # buildifier: leave-alone + deps = [ + "@raze__crossbeam_utils__0_7_2//:crossbeam_utils", + "@raze__maybe_uninit__2_0_0//:maybe_uninit", ], ) -# Unsupported target "fibonacci" with type "example" omitted + +# Unsupported target "after" with type "test" omitted + +# Unsupported target "array" with type "test" omitted + # Unsupported target "golang" with type "test" omitted + # Unsupported target "iter" with type "test" omitted + # Unsupported target "list" with type "test" omitted -# Unsupported target "matching" with type "example" omitted + # Unsupported target "mpsc" with type "test" omitted + # Unsupported target "never" with type "test" omitted + # Unsupported target "ready" with type "test" omitted + # Unsupported target "same_channel" with type "test" omitted + # Unsupported target "select" with type "test" omitted + # Unsupported target "select_macro" with type "test" omitted -# Unsupported target "stopwatch" with type "example" omitted + # Unsupported target "thread_locals" with type "test" omitted + # Unsupported target "tick" with type "test" omitted + # Unsupported target "zero" with type "test" omitted diff --git a/cargo/remote/crossbeam-utils-0.7.2.BUILD.bazel b/cargo/remote/BUILD.crossbeam-utils-0.7.2.bazel similarity index 93% rename from cargo/remote/crossbeam-utils-0.7.2.BUILD.bazel rename to cargo/remote/BUILD.crossbeam-utils-0.7.2.bazel index 24f8f5990..72476dd43 100644 --- a/cargo/remote/crossbeam-utils-0.7.2.BUILD.bazel +++ b/cargo/remote/BUILD.crossbeam-utils-0.7.2.bazel @@ -28,72 +28,76 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "crossbeam_utils_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ - "@raze__autocfg__1_0_1//:autocfg", + build_script_env = { + }, + crate_features = [ + "default", + "lazy_static", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "lazy_static", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.7.2", visibility = ["//visibility:private"], + deps = [ + "@raze__autocfg__1_0_1//:autocfg", + ], ) # Unsupported target "atomic_cell" with type "bench" omitted -# Unsupported target "atomic_cell" with type "test" omitted -# Unsupported target "cache_padded" with type "test" omitted -# buildifier: leave-alone rust_library( name = "crossbeam_utils", - crate_type = "lib", - deps = [ - ":crossbeam_utils_build_script", - "@raze__cfg_if__0_1_10//:cfg_if", - "@raze__lazy_static__1_4_0//:lazy_static", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.7.2", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "lazy_static", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.2", + # buildifier: leave-alone + deps = [ + ":crossbeam_utils_build_script", + "@raze__cfg_if__0_1_10//:cfg_if", + "@raze__lazy_static__1_4_0//:lazy_static", + ], ) + +# Unsupported target "atomic_cell" with type "test" omitted + +# Unsupported target "cache_padded" with type "test" omitted + # Unsupported target "parker" with type "test" omitted + # Unsupported target "sharded_lock" with type "test" omitted + # Unsupported target "thread" with type "test" omitted + # Unsupported target "wait_group" with type "test" omitted diff --git a/cargo/remote/crypto-mac-0.8.0.BUILD.bazel b/cargo/remote/BUILD.crypto-mac-0.8.0.bazel similarity index 95% rename from cargo/remote/crypto-mac-0.8.0.BUILD.bazel rename to cargo/remote/BUILD.crypto-mac-0.8.0.bazel index 93334616e..ff20f1c8d 100644 --- a/cargo/remote/crypto-mac-0.8.0.BUILD.bazel +++ b/cargo/remote/BUILD.crypto-mac-0.8.0.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "crypto_mac", - crate_type = "lib", - deps = [ - "@raze__generic_array__0_14_4//:generic_array", - "@raze__subtle__2_3_0//:subtle", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.8.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.8.0", + # buildifier: leave-alone + deps = [ + "@raze__generic_array__0_14_4//:generic_array", + "@raze__subtle__2_3_0//:subtle", ], ) diff --git a/cargo/remote/ctor-0.1.16.BUILD.bazel b/cargo/remote/BUILD.ctor-0.1.16.bazel similarity index 95% rename from cargo/remote/ctor-0.1.16.BUILD.bazel rename to cargo/remote/BUILD.ctor-0.1.16.bazel index 296af1150..cfcb49eb0 100644 --- a/cargo/remote/ctor-0.1.16.BUILD.bazel +++ b/cargo/remote/BUILD.ctor-0.1.16.bazel @@ -28,28 +28,29 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + +# Unsupported target "example" with type "example" omitted -# buildifier: leave-alone rust_library( name = "ctor", - crate_type = "proc-macro", - deps = [ - "@raze__quote__1_0_7//:quote", - "@raze__syn__1_0_48//:syn", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "proc-macro", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.16", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.16", + # buildifier: leave-alone + deps = [ + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", ], ) -# Unsupported target "example" with type "example" omitted diff --git a/cargo/remote/derivative-2.1.1.BUILD.bazel b/cargo/remote/BUILD.derivative-2.1.1.bazel similarity index 98% rename from cargo/remote/derivative-2.1.1.BUILD.bazel rename to cargo/remote/BUILD.derivative-2.1.1.bazel index 7a8a79fcc..1d8c8586b 100644 --- a/cargo/remote/derivative-2.1.1.BUILD.bazel +++ b/cargo/remote/BUILD.derivative-2.1.1.bazel @@ -28,95 +28,161 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "compile-test" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "derivative", + srcs = glob(["**/*.rs"]), + crate_features = [ + "use_core", + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.1.1", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "2.1.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "use_core", - ], ) + +# Unsupported target "compile-test" with type "test" omitted + # Unsupported target "derive-clone" with type "test" omitted + # Unsupported target "derive-clone-generics" with type "test" omitted + # Unsupported target "derive-debug" with type "test" omitted + # Unsupported target "derive-debug-bounds" with type "test" omitted + # Unsupported target "derive-debug-generics" with type "test" omitted + # Unsupported target "derive-debug-transparent" with type "test" omitted + # Unsupported target "derive-default" with type "test" omitted + # Unsupported target "derive-default-bounds" with type "test" omitted + # Unsupported target "derive-eq" with type "test" omitted + # Unsupported target "derive-hash" with type "test" omitted + # Unsupported target "derive-ord" with type "test" omitted + # Unsupported target "derive-partial-eq" with type "test" omitted + # Unsupported target "issue-37-turbofish" with type "test" omitted + # Unsupported target "issue-55" with type "test" omitted + # Unsupported target "issue-57" with type "test" omitted + # Unsupported target "issue-58" with type "test" omitted + # Unsupported target "issue-67" with type "test" omitted + # Unsupported target "rustc-class-implement-traits" with type "test" omitted + # Unsupported target "rustc-deriving-bounds" with type "test" omitted + # Unsupported target "rustc-deriving-clone-array" with type "test" omitted + # Unsupported target "rustc-deriving-clone-enum" with type "test" omitted + # Unsupported target "rustc-deriving-clone-generic-enum" with type "test" omitted + # Unsupported target "rustc-deriving-clone-generic-tuple-struct" with type "test" omitted + # Unsupported target "rustc-deriving-clone-struct" with type "test" omitted + # Unsupported target "rustc-deriving-clone-tuple-struct" with type "test" omitted + # Unsupported target "rustc-deriving-cmp-generic-enum" with type "test" omitted + # Unsupported target "rustc-deriving-cmp-generic-struct" with type "test" omitted + # Unsupported target "rustc-deriving-cmp-generic-struct-enum" with type "test" omitted + # Unsupported target "rustc-deriving-cmp-generic-tuple-struct" with type "test" omitted + # Unsupported target "rustc-deriving-copyclone" with type "test" omitted + # Unsupported target "rustc-deriving-default-box" with type "test" omitted + # Unsupported target "rustc-deriving-enum-single-variant" with type "test" omitted + # Unsupported target "rustc-deriving-hash" with type "test" omitted + # Unsupported target "rustc-deriving-in-fn" with type "test" omitted + # Unsupported target "rustc-deriving-meta" with type "test" omitted + # Unsupported target "rustc-deriving-meta-multiple" with type "test" omitted + # Unsupported target "rustc-deriving-show" with type "test" omitted + # Unsupported target "rustc-deriving-show-2" with type "test" omitted + # Unsupported target "rustc-deriving-via-extension-hash-enum" with type "test" omitted + # Unsupported target "rustc-deriving-via-extension-hash-struct" with type "test" omitted + # Unsupported target "rustc-deriving-via-extension-type-params" with type "test" omitted + # Unsupported target "rustc-expr-copy" with type "test" omitted + # Unsupported target "rustc-exterior" with type "test" omitted + # Unsupported target "rustc-issue-12860" with type "test" omitted + # Unsupported target "rustc-issue-13434" with type "test" omitted + # Unsupported target "rustc-issue-16530" with type "test" omitted + # Unsupported target "rustc-issue-19037" with type "test" omitted + # Unsupported target "rustc-issue-19102" with type "test" omitted + # Unsupported target "rustc-issue-19135" with type "test" omitted + # Unsupported target "rustc-issue-19358" with type "test" omitted + # Unsupported target "rustc-issue-21402" with type "test" omitted + # Unsupported target "rustc-issue-23649-3" with type "test" omitted + # Unsupported target "rustc-issue-24085" with type "test" omitted + # Unsupported target "rustc-issue-25394" with type "test" omitted + # Unsupported target "rustc-issue-28561" with type "test" omitted + # Unsupported target "rustc-issue-29030" with type "test" omitted + # Unsupported target "rustc-issue-29540" with type "test" omitted + # Unsupported target "rustc-issue-29710" with type "test" omitted + # Unsupported target "rustc-issue-32292" with type "test" omitted + # Unsupported target "rustc-issue-3935" with type "test" omitted + # Unsupported target "rustc-issue-42453" with type "test" omitted + # Unsupported target "rustc-issue-58319" with type "test" omitted + # Unsupported target "rustc-issue-6341" with type "test" omitted + # Unsupported target "rustc-typeclasses-eq-example" with type "test" omitted + # Unsupported target "rustc-zero-sized-btreemap-insert" with type "test" omitted diff --git a/cargo/remote/digest-0.9.0.BUILD.bazel b/cargo/remote/BUILD.digest-0.9.0.bazel similarity index 95% rename from cargo/remote/digest-0.9.0.BUILD.bazel rename to cargo/remote/BUILD.digest-0.9.0.bazel index 341c7d4dc..b733989b4 100644 --- a/cargo/remote/digest-0.9.0.BUILD.bazel +++ b/cargo/remote/BUILD.digest-0.9.0.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "digest", - crate_type = "lib", - deps = [ - "@raze__generic_array__0_14_4//:generic_array", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.9.0", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "alloc", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@raze__generic_array__0_14_4//:generic_array", + ], ) diff --git a/cargo/remote/dirs-2.0.2.BUILD.bazel b/cargo/remote/BUILD.dirs-2.0.2.bazel similarity index 95% rename from cargo/remote/dirs-2.0.2.BUILD.bazel rename to cargo/remote/BUILD.dirs-2.0.2.bazel index 2ed03a920..29b696a90 100644 --- a/cargo/remote/dirs-2.0.2.BUILD.bazel +++ b/cargo/remote/BUILD.dirs-2.0.2.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "dirs", - crate_type = "lib", - deps = [ - "@raze__cfg_if__0_1_10//:cfg_if", - "@raze__dirs_sys__0_3_5//:dirs_sys", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "2.0.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "2.0.2", + # buildifier: leave-alone + deps = [ + "@raze__cfg_if__0_1_10//:cfg_if", + "@raze__dirs_sys__0_3_5//:dirs_sys", ], ) diff --git a/cargo/remote/dirs-sys-0.3.5.BUILD.bazel b/cargo/remote/BUILD.dirs-sys-0.3.5.bazel similarity index 97% rename from cargo/remote/dirs-sys-0.3.5.BUILD.bazel rename to cargo/remote/BUILD.dirs-sys-0.3.5.bazel index b1e621cd3..ff03f0eab 100644 --- a/cargo/remote/dirs-sys-0.3.5.BUILD.bazel +++ b/cargo/remote/BUILD.dirs-sys-0.3.5.bazel @@ -28,12 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "dirs_sys", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.5", + # buildifier: leave-alone deps = [ ] + selects.with_or({ # cfg(unix) @@ -58,19 +73,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.5", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) diff --git a/cargo/remote/dtoa-0.4.6.BUILD.bazel b/cargo/remote/BUILD.dtoa-0.4.6.bazel similarity index 95% rename from cargo/remote/dtoa-0.4.6.BUILD.bazel rename to cargo/remote/BUILD.dtoa-0.4.6.bazel index 823226075..10f0c5e06 100644 --- a/cargo/remote/dtoa-0.4.6.BUILD.bazel +++ b/cargo/remote/BUILD.dtoa-0.4.6.bazel @@ -28,27 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "dtoa", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.6", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.6", + # buildifier: leave-alone + deps = [ ], ) + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/either-1.6.1.BUILD.bazel b/cargo/remote/BUILD.either-1.6.1.bazel similarity index 95% rename from cargo/remote/either-1.6.1.BUILD.bazel rename to cargo/remote/BUILD.either-1.6.1.bazel index 6b216ff52..05f1403fc 100644 --- a/cargo/remote/either-1.6.1.BUILD.bazel +++ b/cargo/remote/BUILD.either-1.6.1.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "either", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.6.1", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "use_std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.6.1", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/encoding_rs-0.8.26.BUILD.bazel b/cargo/remote/BUILD.encoding_rs-0.8.26.bazel similarity index 93% rename from cargo/remote/encoding_rs-0.8.26.BUILD.bazel rename to cargo/remote/BUILD.encoding_rs-0.8.26.bazel index 105fdc917..941bba7bf 100644 --- a/cargo/remote/encoding_rs-0.8.26.BUILD.bazel +++ b/cargo/remote/BUILD.encoding_rs-0.8.26.bazel @@ -28,57 +28,54 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "encoding_rs_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.8.26", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "encoding_rs", - crate_type = "lib", - deps = [ - ":encoding_rs_build_script", - "@raze__cfg_if__1_0_0//:cfg_if", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.8.26", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.8.26", + # buildifier: leave-alone + deps = [ + ":encoding_rs_build_script", + "@raze__cfg_if__1_0_0//:cfg_if", ], ) diff --git a/cargo/remote/env_logger-0.8.1.BUILD.bazel b/cargo/remote/BUILD.env_logger-0.8.1.bazel similarity index 97% rename from cargo/remote/env_logger-0.8.1.BUILD.bazel rename to cargo/remote/BUILD.env_logger-0.8.1.bazel index 09eb284ba..7f282627d 100644 --- a/cargo/remote/env_logger-0.8.1.BUILD.bazel +++ b/cargo/remote/BUILD.env_logger-0.8.1.bazel @@ -28,35 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "custom_default_format" with type "example" omitted + # Unsupported target "custom_format" with type "example" omitted + # Unsupported target "custom_logger" with type "example" omitted + # Unsupported target "default" with type "example" omitted + # Unsupported target "direct_logger" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "filters_from_code" with type "example" omitted + +# Unsupported target "in_tests" with type "example" omitted + +# Unsupported target "syslog_friendly_format" with type "example" omitted + rust_library( name = "env_logger", - crate_type = "lib", - deps = [ - "@raze__atty__0_2_14//:atty", - "@raze__humantime__2_0_1//:humantime", - "@raze__log__0_4_11//:log", - "@raze__regex__1_4_2//:regex", - "@raze__termcolor__1_1_0//:termcolor", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.8.1", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "atty", "default", @@ -64,11 +56,31 @@ rust_library( "regex", "termcolor", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.1", + # buildifier: leave-alone + deps = [ + "@raze__atty__0_2_14//:atty", + "@raze__humantime__2_0_1//:humantime", + "@raze__log__0_4_11//:log", + "@raze__regex__1_4_2//:regex", + "@raze__termcolor__1_1_0//:termcolor", + ], ) -# Unsupported target "filters_from_code" with type "example" omitted -# Unsupported target "in_tests" with type "example" omitted + # Unsupported target "init-twice-retains-filter" with type "test" omitted + # Unsupported target "log-in-log" with type "test" omitted + # Unsupported target "log_tls_dtors" with type "test" omitted + # Unsupported target "regexp_filter" with type "test" omitted -# Unsupported target "syslog_friendly_format" with type "example" omitted diff --git a/cargo/remote/failure-0.1.8.BUILD.bazel b/cargo/remote/BUILD.failure-0.1.8.bazel similarity index 96% rename from cargo/remote/failure-0.1.8.BUILD.bazel rename to cargo/remote/BUILD.failure-0.1.8.bazel index 1ad75ee5b..2f9fa11a6 100644 --- a/cargo/remote/failure-0.1.8.BUILD.bazel +++ b/cargo/remote/BUILD.failure-0.1.8.bazel @@ -28,33 +28,19 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "bail_ensure" with type "example" omitted -# Unsupported target "basic_fail" with type "test" omitted -# Unsupported target "error_as_cause" with type "example" omitted -# Unsupported target "fail_compat" with type "test" omitted +# Generated Targets + +# Unsupported target "bail_ensure" with type "example" omitted + +# Unsupported target "error_as_cause" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "string_custom_error_pattern" with type "example" omitted -# buildifier: leave-alone rust_library( name = "failure", - crate_type = "lib", - deps = [ - "@raze__backtrace__0_3_54//:backtrace", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - proc_macro_deps = [ - "@raze__failure_derive__0_1_8//:failure_derive", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.8", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "backtrace", "default", @@ -62,7 +48,28 @@ rust_library( "failure_derive", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + proc_macro_deps = [ + "@raze__failure_derive__0_1_8//:failure_derive", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.8", + # buildifier: leave-alone + deps = [ + "@raze__backtrace__0_3_54//:backtrace", + ], ) + +# Unsupported target "basic_fail" with type "test" omitted + +# Unsupported target "fail_compat" with type "test" omitted + # Unsupported target "macro_trailing_comma" with type "test" omitted -# Unsupported target "simple" with type "example" omitted -# Unsupported target "string_custom_error_pattern" with type "example" omitted diff --git a/cargo/remote/failure_derive-0.1.8.BUILD.bazel b/cargo/remote/BUILD.failure_derive-0.1.8.bazel similarity index 95% rename from cargo/remote/failure_derive-0.1.8.BUILD.bazel rename to cargo/remote/BUILD.failure_derive-0.1.8.bazel index 0711d248b..e5e124803 100644 --- a/cargo/remote/failure_derive-0.1.8.BUILD.bazel +++ b/cargo/remote/BUILD.failure_derive-0.1.8.bazel @@ -28,44 +28,52 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "failure_derive_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.1.8", visibility = ["//visibility:private"], + deps = [ + ], ) -# Unsupported target "backtrace" with type "test" omitted -# Unsupported target "custom_type_bounds" with type "test" omitted - -# buildifier: leave-alone rust_library( name = "failure_derive", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.8", + # buildifier: leave-alone deps = [ ":failure_derive_build_script", "@raze__proc_macro2__1_0_24//:proc_macro2", @@ -73,20 +81,14 @@ rust_library( "@raze__syn__1_0_48//:syn", "@raze__synstructure__0_12_4//:synstructure", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.8", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) + +# Unsupported target "backtrace" with type "test" omitted + +# Unsupported target "custom_type_bounds" with type "test" omitted + # Unsupported target "no_derive_display" with type "test" omitted + # Unsupported target "tests" with type "test" omitted + # Unsupported target "wraps" with type "test" omitted diff --git a/cargo/remote/fallible-iterator-0.2.0.BUILD.bazel b/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel similarity index 95% rename from cargo/remote/fallible-iterator-0.2.0.BUILD.bazel rename to cargo/remote/BUILD.fallible-iterator-0.2.0.bazel index 9e2c46be9..489f3ee6b 100644 --- a/cargo/remote/fallible-iterator-0.2.0.BUILD.bazel +++ b/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "fallible_iterator", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.0", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.0", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/fallible-streaming-iterator-0.1.9.BUILD.bazel b/cargo/remote/BUILD.fallible-streaming-iterator-0.1.9.bazel similarity index 95% rename from cargo/remote/fallible-streaming-iterator-0.1.9.BUILD.bazel rename to cargo/remote/BUILD.fallible-streaming-iterator-0.1.9.bazel index 9c2e6f3d6..5ee47375f 100644 --- a/cargo/remote/fallible-streaming-iterator-0.1.9.BUILD.bazel +++ b/cargo/remote/BUILD.fallible-streaming-iterator-0.1.9.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "fallible_streaming_iterator", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.9", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.9", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/fixedbitset-0.2.0.BUILD.bazel b/cargo/remote/BUILD.fixedbitset-0.2.0.bazel similarity index 95% rename from cargo/remote/fixedbitset-0.2.0.BUILD.bazel rename to cargo/remote/BUILD.fixedbitset-0.2.0.bazel index 64c19425f..5a1c1186e 100644 --- a/cargo/remote/fixedbitset-0.2.0.BUILD.bazel +++ b/cargo/remote/BUILD.fixedbitset-0.2.0.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "benches" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "fixedbitset", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.0", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/flate2-1.0.19.BUILD.bazel b/cargo/remote/BUILD.flate2-1.0.19.bazel similarity index 97% rename from cargo/remote/flate2-1.0.19.BUILD.bazel rename to cargo/remote/BUILD.flate2-1.0.19.bazel index 44736e569..e923ce2e1 100644 --- a/cargo/remote/flate2-1.0.19.BUILD.bazel +++ b/cargo/remote/BUILD.flate2-1.0.19.bazel @@ -28,60 +28,88 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "async-reader" with type "test" omitted -# Unsupported target "compress_file" with type "example" omitted -# Unsupported target "deflatedecoder-bufread" with type "example" omitted -# Unsupported target "deflatedecoder-read" with type "example" omitted -# Unsupported target "deflatedecoder-write" with type "example" omitted -# Unsupported target "deflateencoder-bufread" with type "example" omitted -# Unsupported target "deflateencoder-read" with type "example" omitted -# Unsupported target "deflateencoder-write" with type "example" omitted -# Unsupported target "early-flush" with type "test" omitted -# Unsupported target "empty-read" with type "test" omitted +# Generated Targets + +# Unsupported target "compress_file" with type "example" omitted + +# Unsupported target "deflatedecoder-bufread" with type "example" omitted + +# Unsupported target "deflatedecoder-read" with type "example" omitted + +# Unsupported target "deflatedecoder-write" with type "example" omitted + +# Unsupported target "deflateencoder-bufread" with type "example" omitted + +# Unsupported target "deflateencoder-read" with type "example" omitted + +# Unsupported target "deflateencoder-write" with type "example" omitted + +# Unsupported target "gzbuilder" with type "example" omitted + +# Unsupported target "gzdecoder-bufread" with type "example" omitted + +# Unsupported target "gzdecoder-read" with type "example" omitted + +# Unsupported target "gzdecoder-write" with type "example" omitted + +# Unsupported target "gzencoder-bufread" with type "example" omitted + +# Unsupported target "gzencoder-read" with type "example" omitted + +# Unsupported target "gzencoder-write" with type "example" omitted + +# Unsupported target "gzmultidecoder-bufread" with type "example" omitted + +# Unsupported target "gzmultidecoder-read" with type "example" omitted + +# Unsupported target "zlibdecoder-bufread" with type "example" omitted + +# Unsupported target "zlibdecoder-read" with type "example" omitted + +# Unsupported target "zlibdecoder-write" with type "example" omitted + +# Unsupported target "zlibencoder-bufread" with type "example" omitted + +# Unsupported target "zlibencoder-read" with type "example" omitted + +# Unsupported target "zlibencoder-write" with type "example" omitted -# buildifier: leave-alone rust_library( name = "flate2", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "miniz_oxide", + "rust_backend", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.19", + # buildifier: leave-alone deps = [ "@raze__cfg_if__1_0_0//:cfg_if", "@raze__crc32fast__1_2_1//:crc32fast", "@raze__libc__0_2_80//:libc", "@raze__miniz_oxide__0_4_3//:miniz_oxide", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.19", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - "miniz_oxide", - "rust_backend", - ], ) + +# Unsupported target "async-reader" with type "test" omitted + +# Unsupported target "early-flush" with type "test" omitted + +# Unsupported target "empty-read" with type "test" omitted + # Unsupported target "gunzip" with type "test" omitted -# Unsupported target "gzbuilder" with type "example" omitted -# Unsupported target "gzdecoder-bufread" with type "example" omitted -# Unsupported target "gzdecoder-read" with type "example" omitted -# Unsupported target "gzdecoder-write" with type "example" omitted -# Unsupported target "gzencoder-bufread" with type "example" omitted -# Unsupported target "gzencoder-read" with type "example" omitted -# Unsupported target "gzencoder-write" with type "example" omitted -# Unsupported target "gzmultidecoder-bufread" with type "example" omitted -# Unsupported target "gzmultidecoder-read" with type "example" omitted + # Unsupported target "tokio" with type "test" omitted + # Unsupported target "zero-write" with type "test" omitted -# Unsupported target "zlibdecoder-bufread" with type "example" omitted -# Unsupported target "zlibdecoder-read" with type "example" omitted -# Unsupported target "zlibdecoder-write" with type "example" omitted -# Unsupported target "zlibencoder-bufread" with type "example" omitted -# Unsupported target "zlibencoder-read" with type "example" omitted -# Unsupported target "zlibencoder-write" with type "example" omitted diff --git a/cargo/remote/fluent-0.13.1.BUILD.bazel b/cargo/remote/BUILD.fluent-0.13.1.bazel similarity index 90% rename from cargo/remote/fluent-0.13.1.BUILD.bazel rename to cargo/remote/BUILD.fluent-0.13.1.bazel index 181e4d70b..dabec9836 100644 --- a/cargo/remote/fluent-0.13.1.BUILD.bazel +++ b/cargo/remote/BUILD.fluent-0.13.1.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "fluent", - crate_type = "lib", - deps = [ - "@raze__fluent_bundle__0_13_1//:fluent_bundle", - "@raze__unic_langid__0_9_0//:unic_langid", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.13.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.13.1", + # buildifier: leave-alone + deps = [ + "@raze__fluent_bundle__0_13_2//:fluent_bundle", + "@raze__unic_langid__0_9_0//:unic_langid", ], ) diff --git a/cargo/remote/fluent-bundle-0.13.1.BUILD.bazel b/cargo/remote/BUILD.fluent-bundle-0.13.2.bazel similarity index 94% rename from cargo/remote/fluent-bundle-0.13.1.BUILD.bazel rename to cargo/remote/BUILD.fluent-bundle-0.13.2.bazel index 5a18a136a..19fddf575 100644 --- a/cargo/remote/fluent-bundle-0.13.1.BUILD.bazel +++ b/cargo/remote/BUILD.fluent-bundle-0.13.2.bazel @@ -28,12 +28,27 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + +# Unsupported target "resolver" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "fluent_bundle", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.13.2", + # buildifier: leave-alone deps = [ "@raze__fluent_langneg__0_13_0//:fluent_langneg", "@raze__fluent_syntax__0_10_0//:fluent_syntax", @@ -43,18 +58,4 @@ rust_library( "@raze__smallvec__1_4_2//:smallvec", "@raze__unic_langid__0_9_0//:unic_langid", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.13.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) -# Unsupported target "resolver" with type "bench" omitted diff --git a/cargo/remote/fluent-langneg-0.13.0.BUILD.bazel b/cargo/remote/BUILD.fluent-langneg-0.13.0.bazel similarity index 95% rename from cargo/remote/fluent-langneg-0.13.0.BUILD.bazel rename to cargo/remote/BUILD.fluent-langneg-0.13.0.bazel index 8c230e045..7bbc310ad 100644 --- a/cargo/remote/fluent-langneg-0.13.0.BUILD.bazel +++ b/cargo/remote/BUILD.fluent-langneg-0.13.0.bazel @@ -28,28 +28,29 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0" ]) -# Generated targets +# Generated Targets + +# Unsupported target "negotiate" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "fluent_langneg", - crate_type = "lib", - deps = [ - "@raze__unic_langid__0_9_0//:unic_langid", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.13.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", + version = "0.13.0", + # buildifier: leave-alone + deps = [ + "@raze__unic_langid__0_9_0//:unic_langid", ], ) -# Unsupported target "negotiate" with type "bench" omitted diff --git a/cargo/remote/fluent-syntax-0.10.0.BUILD.bazel b/cargo/remote/BUILD.fluent-syntax-0.10.0.bazel similarity index 95% rename from cargo/remote/fluent-syntax-0.10.0.BUILD.bazel rename to cargo/remote/BUILD.fluent-syntax-0.10.0.bazel index 24e374223..6d986a033 100644 --- a/cargo/remote/fluent-syntax-0.10.0.BUILD.bazel +++ b/cargo/remote/BUILD.fluent-syntax-0.10.0.bazel @@ -28,78 +28,80 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone -rust_library( - name = "fluent_syntax", - crate_type = "lib", - deps = [ - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.10.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - ], -) # Unsupported target "parser" with type "bench" omitted -# buildifier: leave-alone rust_binary( # Prefix bin name to disambiguate from (probable) collision with lib name # N.B.: The exact form of this is subject to change. name = "cargo_bin_parser", - deps = [ - # Binaries get an implicit dependency on their crate's lib - ":fluent_syntax", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], crate_root = "src/bin/parser.rs", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.10.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", - ], -) -# Unsupported target "parser_fixtures" with type "test" omitted - -# buildifier: leave-alone -rust_binary( - # Prefix bin name to disambiguate from (probable) collision with lib name - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_update_fixtures", + version = "0.10.0", + # buildifier: leave-alone deps = [ # Binaries get an implicit dependency on their crate's lib ":fluent_syntax", ], +) + +rust_binary( + # Prefix bin name to disambiguate from (probable) collision with lib name + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_update_fixtures", srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], crate_root = "src/bin/update_fixtures.rs", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.10.0", tags = [ "cargo-raze", "manual", ], + version = "0.10.0", + # buildifier: leave-alone + deps = [ + # Binaries get an implicit dependency on their crate's lib + ":fluent_syntax", + ], +) + +rust_library( + name = "fluent_syntax", + srcs = glob(["**/*.rs"]), crate_features = [ "default", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.0", + # buildifier: leave-alone + deps = [ + ], ) + +# Unsupported target "parser_fixtures" with type "test" omitted diff --git a/cargo/remote/fnv-1.0.7.BUILD.bazel b/cargo/remote/BUILD.fnv-1.0.7.bazel similarity index 95% rename from cargo/remote/fnv-1.0.7.BUILD.bazel rename to cargo/remote/BUILD.fnv-1.0.7.bazel index 5ad890bbd..b912f24ba 100644 --- a/cargo/remote/fnv-1.0.7.BUILD.bazel +++ b/cargo/remote/BUILD.fnv-1.0.7.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "fnv", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.7", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.7", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/BUILD.foreign-types-0.3.2.bazel b/cargo/remote/BUILD.foreign-types-0.3.2.bazel new file mode 100644 index 000000000..ec8b86227 --- /dev/null +++ b/cargo/remote/BUILD.foreign-types-0.3.2.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "foreign_types", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.2", + # buildifier: leave-alone + deps = [ + "@raze__foreign_types_shared__0_1_1//:foreign_types_shared", + ], +) diff --git a/cargo/remote/BUILD.foreign-types-shared-0.1.1.bazel b/cargo/remote/BUILD.foreign-types-shared-0.1.1.bazel new file mode 100644 index 000000000..ac981978e --- /dev/null +++ b/cargo/remote/BUILD.foreign-types-shared-0.1.1.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "foreign_types_shared", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/cargo/remote/BUILD.form_urlencoded-1.0.0.bazel b/cargo/remote/BUILD.form_urlencoded-1.0.0.bazel new file mode 100644 index 000000000..b3f76ee66 --- /dev/null +++ b/cargo/remote/BUILD.form_urlencoded-1.0.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "form_urlencoded", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.0", + # buildifier: leave-alone + deps = [ + "@raze__matches__0_1_8//:matches", + "@raze__percent_encoding__2_1_0//:percent_encoding", + ], +) diff --git a/cargo/remote/fuchsia-zircon-0.3.3.BUILD.bazel b/cargo/remote/BUILD.fuchsia-zircon-0.3.3.bazel similarity index 95% rename from cargo/remote/fuchsia-zircon-0.3.3.BUILD.bazel rename to cargo/remote/BUILD.fuchsia-zircon-0.3.3.bazel index 1bef22cd5..9ae2d78a9 100644 --- a/cargo/remote/fuchsia-zircon-0.3.3.BUILD.bazel +++ b/cargo/remote/BUILD.fuchsia-zircon-0.3.3.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # BSD-3-Clause from expression "BSD-3-Clause" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "fuchsia_zircon", - crate_type = "lib", - deps = [ - "@raze__bitflags__1_2_1//:bitflags", - "@raze__fuchsia_zircon_sys__0_3_3//:fuchsia_zircon_sys", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.3", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.3", + # buildifier: leave-alone + deps = [ + "@raze__bitflags__1_2_1//:bitflags", + "@raze__fuchsia_zircon_sys__0_3_3//:fuchsia_zircon_sys", ], ) diff --git a/cargo/remote/fuchsia-zircon-sys-0.3.3.BUILD.bazel b/cargo/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel similarity index 95% rename from cargo/remote/fuchsia-zircon-sys-0.3.3.BUILD.bazel rename to cargo/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel index ae0aaf01c..522be2b18 100644 --- a/cargo/remote/fuchsia-zircon-sys-0.3.3.BUILD.bazel +++ b/cargo/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # BSD-3-Clause from expression "BSD-3-Clause" ]) -# Generated targets +# Generated Targets + +# Unsupported target "hello" with type "example" omitted -# buildifier: leave-alone rust_library( name = "fuchsia_zircon_sys", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.3", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.3", + # buildifier: leave-alone + deps = [ ], ) -# Unsupported target "hello" with type "example" omitted diff --git a/cargo/remote/futures-0.3.7.BUILD.bazel b/cargo/remote/BUILD.futures-0.3.8.bazel similarity index 87% rename from cargo/remote/futures-0.3.7.BUILD.bazel rename to cargo/remote/BUILD.futures-0.3.8.bazel index 7aa4cf619..7eb2d972a 100644 --- a/cargo/remote/futures-0.3.7.BUILD.bazel +++ b/cargo/remote/BUILD.futures-0.3.8.bazel @@ -28,45 +28,11 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "_require_features" with type "test" omitted -# Unsupported target "abortable" with type "test" omitted -# Unsupported target "arc_wake" with type "test" omitted -# Unsupported target "async_await_macros" with type "test" omitted -# Unsupported target "atomic_waker" with type "test" omitted -# Unsupported target "basic_combinators" with type "test" omitted -# Unsupported target "buffer_unordered" with type "test" omitted -# Unsupported target "compat" with type "test" omitted -# Unsupported target "eager_drop" with type "test" omitted -# Unsupported target "eventual" with type "test" omitted -# Unsupported target "fuse" with type "test" omitted -# Unsupported target "future_obj" with type "test" omitted -# Unsupported target "future_try_flatten_stream" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "futures", - crate_type = "lib", - deps = [ - "@raze__futures_channel__0_3_7//:futures_channel", - "@raze__futures_core__0_3_7//:futures_core", - "@raze__futures_executor__0_3_7//:futures_executor", - "@raze__futures_io__0_3_7//:futures_io", - "@raze__futures_sink__0_3_7//:futures_sink", - "@raze__futures_task__0_3_7//:futures_task", - "@raze__futures_util__0_3_7//:futures_util", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.7", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "alloc", "async-await", @@ -75,40 +41,125 @@ rust_library( "futures-executor", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + "@raze__futures_channel__0_3_8//:futures_channel", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_executor__0_3_8//:futures_executor", + "@raze__futures_io__0_3_8//:futures_io", + "@raze__futures_sink__0_3_8//:futures_sink", + "@raze__futures_task__0_3_8//:futures_task", + "@raze__futures_util__0_3_8//:futures_util", + ], ) + +# Unsupported target "_require_features" with type "test" omitted + +# Unsupported target "abortable" with type "test" omitted + +# Unsupported target "arc_wake" with type "test" omitted + +# Unsupported target "async_await_macros" with type "test" omitted + +# Unsupported target "atomic_waker" with type "test" omitted + +# Unsupported target "basic_combinators" with type "test" omitted + +# Unsupported target "buffer_unordered" with type "test" omitted + +# Unsupported target "compat" with type "test" omitted + +# Unsupported target "eager_drop" with type "test" omitted + +# Unsupported target "eventual" with type "test" omitted + +# Unsupported target "fuse" with type "test" omitted + +# Unsupported target "future_obj" with type "test" omitted + +# Unsupported target "future_try_flatten_stream" with type "test" omitted + # Unsupported target "futures_ordered" with type "test" omitted + # Unsupported target "futures_unordered" with type "test" omitted + # Unsupported target "inspect" with type "test" omitted + # Unsupported target "io_buf_reader" with type "test" omitted + # Unsupported target "io_buf_writer" with type "test" omitted + # Unsupported target "io_cursor" with type "test" omitted + # Unsupported target "io_lines" with type "test" omitted + # Unsupported target "io_read" with type "test" omitted + # Unsupported target "io_read_exact" with type "test" omitted + # Unsupported target "io_read_line" with type "test" omitted + # Unsupported target "io_read_to_string" with type "test" omitted + # Unsupported target "io_read_until" with type "test" omitted + # Unsupported target "io_window" with type "test" omitted + # Unsupported target "io_write" with type "test" omitted + # Unsupported target "join_all" with type "test" omitted + # Unsupported target "macro_comma_support" with type "test" omitted + # Unsupported target "mutex" with type "test" omitted + # Unsupported target "object_safety" with type "test" omitted + # Unsupported target "oneshot" with type "test" omitted + # Unsupported target "ready_queue" with type "test" omitted + # Unsupported target "recurse" with type "test" omitted + # Unsupported target "select_all" with type "test" omitted + # Unsupported target "select_ok" with type "test" omitted + # Unsupported target "shared" with type "test" omitted + # Unsupported target "sink" with type "test" omitted + # Unsupported target "sink_fanout" with type "test" omitted + # Unsupported target "split" with type "test" omitted + # Unsupported target "stream" with type "test" omitted + # Unsupported target "stream_catch_unwind" with type "test" omitted + # Unsupported target "stream_into_async_read" with type "test" omitted + # Unsupported target "stream_peekable" with type "test" omitted + # Unsupported target "stream_select_all" with type "test" omitted + # Unsupported target "stream_select_next_some" with type "test" omitted + # Unsupported target "try_join" with type "test" omitted + # Unsupported target "try_join_all" with type "test" omitted + +# Unsupported target "try_stream" with type "test" omitted + # Unsupported target "unfold" with type "test" omitted diff --git a/cargo/remote/futures-channel-0.3.7.BUILD.bazel b/cargo/remote/BUILD.futures-channel-0.3.8.bazel similarity index 87% rename from cargo/remote/futures-channel-0.3.7.BUILD.bazel rename to cargo/remote/BUILD.futures-channel-0.3.8.bazel index 5fd764205..bdcd9775c 100644 --- a/cargo/remote/futures-channel-0.3.7.BUILD.bazel +++ b/cargo/remote/BUILD.futures-channel-0.3.8.bazel @@ -28,28 +28,13 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "channel" with type "test" omitted +# Generated Targets + +# Unsupported target "sync_mpsc" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "futures_channel", - crate_type = "lib", - deps = [ - "@raze__futures_core__0_3_7//:futures_core", - "@raze__futures_sink__0_3_7//:futures_sink", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.7", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "alloc", "default", @@ -57,8 +42,28 @@ rust_library( "sink", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_sink__0_3_8//:futures_sink", + ], ) + +# Unsupported target "channel" with type "test" omitted + # Unsupported target "mpsc" with type "test" omitted + # Unsupported target "mpsc-close" with type "test" omitted + # Unsupported target "oneshot" with type "test" omitted -# Unsupported target "sync_mpsc" with type "bench" omitted diff --git a/cargo/remote/futures-core-0.3.7.BUILD.bazel b/cargo/remote/BUILD.futures-core-0.3.8.bazel similarity index 93% rename from cargo/remote/futures-core-0.3.7.BUILD.bazel rename to cargo/remote/BUILD.futures-core-0.3.8.bazel index 7eb18614a..f9a2c46a3 100644 --- a/cargo/remote/futures-core-0.3.7.BUILD.bazel +++ b/cargo/remote/BUILD.futures-core-0.3.8.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "futures_core", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.7", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "alloc", "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/futures-executor-0.3.7.BUILD.bazel b/cargo/remote/BUILD.futures-executor-0.3.8.bazel similarity index 82% rename from cargo/remote/futures-executor-0.3.7.BUILD.bazel rename to cargo/remote/BUILD.futures-executor-0.3.8.bazel index f92d7d57a..7fcda8f4f 100644 --- a/cargo/remote/futures-executor-0.3.7.BUILD.bazel +++ b/cargo/remote/BUILD.futures-executor-0.3.8.bazel @@ -28,31 +28,33 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + +# Unsupported target "thread_notify" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "futures_executor", - crate_type = "lib", - deps = [ - "@raze__futures_core__0_3_7//:futures_core", - "@raze__futures_task__0_3_7//:futures_task", - "@raze__futures_util__0_3_7//:futures_util", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.7", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "std", + version = "0.3.8", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_task__0_3_8//:futures_task", + "@raze__futures_util__0_3_8//:futures_util", ], ) + # Unsupported target "local_pool" with type "test" omitted -# Unsupported target "thread_notify" with type "bench" omitted diff --git a/cargo/remote/futures-io-0.3.7.BUILD.bazel b/cargo/remote/BUILD.futures-io-0.3.8.bazel similarity index 92% rename from cargo/remote/futures-io-0.3.7.BUILD.bazel rename to cargo/remote/BUILD.futures-io-0.3.8.bazel index 91b639ab6..df71cdfa5 100644 --- a/cargo/remote/futures-io-0.3.7.BUILD.bazel +++ b/cargo/remote/BUILD.futures-io-0.3.8.bazel @@ -28,26 +28,26 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "futures_io", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.7", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "std", + version = "0.3.8", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/futures-macro-0.3.7.BUILD.bazel b/cargo/remote/BUILD.futures-macro-0.3.8.bazel similarity index 94% rename from cargo/remote/futures-macro-0.3.7.BUILD.bazel rename to cargo/remote/BUILD.futures-macro-0.3.8.bazel index abd9ea162..ad8a355cf 100644 --- a/cargo/remote/futures-macro-0.3.7.BUILD.bazel +++ b/cargo/remote/BUILD.futures-macro-0.3.8.bazel @@ -28,19 +28,15 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "futures_macro", - crate_type = "proc-macro", - deps = [ - "@raze__proc_macro2__1_0_24//:proc_macro2", - "@raze__quote__1_0_7//:quote", - "@raze__syn__1_0_48//:syn", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "proc-macro", edition = "2018", proc_macro_deps = [ "@raze__proc_macro_hack__0_5_19//:proc_macro_hack", @@ -48,11 +44,15 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.7", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.8", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", ], ) diff --git a/cargo/remote/futures-sink-0.3.7.BUILD.bazel b/cargo/remote/BUILD.futures-sink-0.3.8.bazel similarity index 93% rename from cargo/remote/futures-sink-0.3.7.BUILD.bazel rename to cargo/remote/BUILD.futures-sink-0.3.8.bazel index 0da3c9a8a..c3cebee2b 100644 --- a/cargo/remote/futures-sink-0.3.7.BUILD.bazel +++ b/cargo/remote/BUILD.futures-sink-0.3.8.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "futures_sink", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.7", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "alloc", "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/futures-task-0.3.7.BUILD.bazel b/cargo/remote/BUILD.futures-task-0.3.8.bazel similarity index 89% rename from cargo/remote/futures-task-0.3.7.BUILD.bazel rename to cargo/remote/BUILD.futures-task-0.3.8.bazel index e06529d60..d05241fea 100644 --- a/cargo/remote/futures-task-0.3.7.BUILD.bazel +++ b/cargo/remote/BUILD.futures-task-0.3.8.bazel @@ -28,29 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "futures_task", - crate_type = "lib", - deps = [ - "@raze__once_cell__1_4_1//:once_cell", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.7", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "alloc", "once_cell", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + "@raze__once_cell__1_5_2//:once_cell", + ], ) diff --git a/cargo/remote/futures-util-0.3.7.BUILD.bazel b/cargo/remote/BUILD.futures-util-0.3.8.bazel similarity index 80% rename from cargo/remote/futures-util-0.3.7.BUILD.bazel rename to cargo/remote/BUILD.futures-util-0.3.8.bazel index ae1270019..662ba18ce 100644 --- a/cargo/remote/futures-util-0.3.7.BUILD.bazel +++ b/cargo/remote/BUILD.futures-util-0.3.8.bazel @@ -28,39 +28,13 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + +# Unsupported target "futures_unordered" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "futures_util", - crate_type = "lib", - deps = [ - "@raze__futures_channel__0_3_7//:futures_channel", - "@raze__futures_core__0_3_7//:futures_core", - "@raze__futures_io__0_3_7//:futures_io", - "@raze__futures_sink__0_3_7//:futures_sink", - "@raze__futures_task__0_3_7//:futures_task", - "@raze__memchr__2_3_4//:memchr", - "@raze__pin_project__1_0_1//:pin_project", - "@raze__pin_utils__0_1_0//:pin_utils", - "@raze__proc_macro_nested__0_1_6//:proc_macro_nested", - "@raze__slab__0_4_2//:slab", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - proc_macro_deps = [ - "@raze__futures_macro__0_3_7//:futures_macro", - "@raze__proc_macro_hack__0_5_19//:proc_macro_hack", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.7", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "alloc", "async-await", @@ -79,5 +53,32 @@ rust_library( "slab", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__futures_macro__0_3_8//:futures_macro", + "@raze__proc_macro_hack__0_5_19//:proc_macro_hack", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + "@raze__futures_channel__0_3_8//:futures_channel", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_io__0_3_8//:futures_io", + "@raze__futures_sink__0_3_8//:futures_sink", + "@raze__futures_task__0_3_8//:futures_task", + "@raze__memchr__2_3_4//:memchr", + "@raze__pin_project__1_0_1//:pin_project", + "@raze__pin_utils__0_1_0//:pin_utils", + "@raze__proc_macro_nested__0_1_6//:proc_macro_nested", + "@raze__slab__0_4_2//:slab", + ], ) -# Unsupported target "futures_unordered" with type "bench" omitted diff --git a/cargo/remote/fxhash-0.2.1.BUILD.bazel b/cargo/remote/BUILD.fxhash-0.2.1.bazel similarity index 95% rename from cargo/remote/fxhash-0.2.1.BUILD.bazel rename to cargo/remote/BUILD.fxhash-0.2.1.bazel index bc2fdb0aa..5cd11d54b 100644 --- a/cargo/remote/fxhash-0.2.1.BUILD.bazel +++ b/cargo/remote/BUILD.fxhash-0.2.1.bazel @@ -28,27 +28,28 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "fxhash" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "fxhash", - crate_type = "lib", - deps = [ - "@raze__byteorder__1_3_4//:byteorder", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.1", + # buildifier: leave-alone + deps = [ + "@raze__byteorder__1_3_4//:byteorder", ], ) diff --git a/cargo/remote/generic-array-0.14.4.BUILD.bazel b/cargo/remote/BUILD.generic-array-0.14.4.bazel similarity index 94% rename from cargo/remote/generic-array-0.14.4.BUILD.bazel rename to cargo/remote/BUILD.generic-array-0.14.4.bazel index 14570240b..444a5509b 100644 --- a/cargo/remote/generic-array-0.14.4.BUILD.bazel +++ b/cargo/remote/BUILD.generic-array-0.14.4.bazel @@ -28,64 +28,67 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "generic_array_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ - "@raze__version_check__0_9_2//:version_check", + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.14.4", visibility = ["//visibility:private"], + deps = [ + "@raze__version_check__0_9_2//:version_check", + ], ) -# Unsupported target "arr" with type "test" omitted - -# buildifier: leave-alone rust_library( name = "generic_array", - crate_type = "lib", - deps = [ - ":generic_array_build_script", - "@raze__typenum__1_12_0//:typenum", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.14.4", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.14.4", + # buildifier: leave-alone + deps = [ + ":generic_array_build_script", + "@raze__typenum__1_12_0//:typenum", ], ) + +# Unsupported target "arr" with type "test" omitted + # Unsupported target "generics" with type "test" omitted + # Unsupported target "hex" with type "test" omitted + # Unsupported target "import_name" with type "test" omitted + # Unsupported target "iter" with type "test" omitted + # Unsupported target "mod" with type "test" omitted diff --git a/cargo/remote/getrandom-0.1.15.BUILD.bazel b/cargo/remote/BUILD.getrandom-0.1.15.bazel similarity index 95% rename from cargo/remote/getrandom-0.1.15.BUILD.bazel rename to cargo/remote/BUILD.getrandom-0.1.15.bazel index 38778228f..eba75dc24 100644 --- a/cargo/remote/getrandom-0.1.15.BUILD.bazel +++ b/cargo/remote/BUILD.getrandom-0.1.15.bazel @@ -28,19 +28,32 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "getrandom_build_script", srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "std", + ], crate_root = "build.rs", + data = glob(["**"]), edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.15", + visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ # cfg(unix) @@ -55,29 +68,30 @@ cargo_build_script( ], "//conditions:default": [], }), +) + +# Unsupported target "mod" with type "bench" omitted + +rust_library( + name = "getrandom", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.1.15", - visibility = ["//visibility:private"], -) - -# Unsupported target "common" with type "test" omitted - -# buildifier: leave-alone -rust_library( - name = "getrandom", - crate_type = "lib", + # buildifier: leave-alone deps = [ ":getrandom_build_script", "@raze__cfg_if__0_1_10//:cfg_if", @@ -95,21 +109,6 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.15", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "std", - ], - aliases = { - }, ) -# Unsupported target "mod" with type "bench" omitted + +# Unsupported target "common" with type "test" omitted diff --git a/cargo/remote/ghost-0.1.2.BUILD.bazel b/cargo/remote/BUILD.ghost-0.1.2.bazel similarity index 95% rename from cargo/remote/ghost-0.1.2.BUILD.bazel rename to cargo/remote/BUILD.ghost-0.1.2.bazel index ab67e6268..4203aab2d 100644 --- a/cargo/remote/ghost-0.1.2.BUILD.bazel +++ b/cargo/remote/BUILD.ghost-0.1.2.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "ghost", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.2", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.2", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/gimli-0.23.0.BUILD.bazel b/cargo/remote/BUILD.gimli-0.23.0.bazel similarity index 96% rename from cargo/remote/gimli-0.23.0.BUILD.bazel rename to cargo/remote/BUILD.gimli-0.23.0.bazel index ec3f86d8d..62ea9fc33 100644 --- a/cargo/remote/gimli-0.23.0.BUILD.bazel +++ b/cargo/remote/BUILD.gimli-0.23.0.bazel @@ -28,33 +28,40 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "bench" with type "bench" omitted -# Unsupported target "convert_self" with type "test" omitted + # Unsupported target "dwarf-validate" with type "example" omitted + # Unsupported target "dwarfdump" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "simple_line" with type "example" omitted + rust_library( name = "gimli", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "read", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.23.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "read", + version = "0.23.0", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "convert_self" with type "test" omitted + # Unsupported target "parse_self" with type "test" omitted -# Unsupported target "simple" with type "example" omitted -# Unsupported target "simple_line" with type "example" omitted diff --git a/cargo/remote/h2-0.2.7.BUILD.bazel b/cargo/remote/BUILD.h2-0.2.7.bazel similarity index 85% rename from cargo/remote/h2-0.2.7.BUILD.bazel rename to cargo/remote/BUILD.h2-0.2.7.bazel index 20e0ee8c3..14bc17a68 100644 --- a/cargo/remote/h2-0.2.7.BUILD.bazel +++ b/cargo/remote/BUILD.h2-0.2.7.bazel @@ -28,40 +28,43 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "akamai" with type "example" omitted + # Unsupported target "client" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "server" with type "example" omitted + rust_library( name = "h2", - crate_type = "lib", - deps = [ - "@raze__bytes__0_5_6//:bytes", - "@raze__fnv__1_0_7//:fnv", - "@raze__futures_core__0_3_7//:futures_core", - "@raze__futures_sink__0_3_7//:futures_sink", - "@raze__futures_util__0_3_7//:futures_util", - "@raze__http__0_2_1//:http", - "@raze__indexmap__1_6_0//:indexmap", - "@raze__slab__0_4_2//:slab", - "@raze__tokio__0_2_22//:tokio", - "@raze__tokio_util__0_3_1//:tokio_util", - "@raze__tracing__0_1_21//:tracing", - "@raze__tracing_futures__0_2_4//:tracing_futures", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.7", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.7", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__fnv__1_0_7//:fnv", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_sink__0_3_8//:futures_sink", + "@raze__futures_util__0_3_8//:futures_util", + "@raze__http__0_2_1//:http", + "@raze__indexmap__1_6_0//:indexmap", + "@raze__slab__0_4_2//:slab", + "@raze__tokio__0_2_23//:tokio", + "@raze__tokio_util__0_3_1//:tokio_util", + "@raze__tracing__0_1_21//:tracing", + "@raze__tracing_futures__0_2_4//:tracing_futures", ], ) -# Unsupported target "server" with type "example" omitted diff --git a/cargo/remote/hashbrown-0.9.1.BUILD.bazel b/cargo/remote/BUILD.hashbrown-0.9.1.bazel similarity index 96% rename from cargo/remote/hashbrown-0.9.1.BUILD.bazel rename to cargo/remote/BUILD.hashbrown-0.9.1.bazel index 0452dfe12..38033a598 100644 --- a/cargo/remote/hashbrown-0.9.1.BUILD.bazel +++ b/cargo/remote/BUILD.hashbrown-0.9.1.bazel @@ -28,35 +28,40 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "hashbrown", - crate_type = "lib", - deps = [ - "@raze__ahash__0_4_6//:ahash", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.9.1", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "ahash", "default", "inline-more", "raw", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.1", + # buildifier: leave-alone + deps = [ + "@raze__ahash__0_4_6//:ahash", + ], ) + # Unsupported target "hasher" with type "test" omitted + # Unsupported target "rayon" with type "test" omitted + # Unsupported target "serde" with type "test" omitted + # Unsupported target "set" with type "test" omitted diff --git a/cargo/remote/hashlink-0.6.0.BUILD.bazel b/cargo/remote/BUILD.hashlink-0.6.0.bazel similarity index 95% rename from cargo/remote/hashlink-0.6.0.BUILD.bazel rename to cargo/remote/BUILD.hashlink-0.6.0.bazel index 55f4fc74d..eabaff529 100644 --- a/cargo/remote/hashlink-0.6.0.BUILD.bazel +++ b/cargo/remote/BUILD.hashlink-0.6.0.bazel @@ -28,30 +28,34 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "hashlink", - crate_type = "lib", - deps = [ - "@raze__hashbrown__0_9_1//:hashbrown", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.6.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.6.0", + # buildifier: leave-alone + deps = [ + "@raze__hashbrown__0_9_1//:hashbrown", ], ) + # Unsupported target "linked_hash_map" with type "test" omitted + # Unsupported target "linked_hash_set" with type "test" omitted + # Unsupported target "lru_cache" with type "test" omitted + # Unsupported target "serde" with type "test" omitted diff --git a/cargo/remote/heck-0.3.1.BUILD.bazel b/cargo/remote/BUILD.heck-0.3.1.bazel similarity index 89% rename from cargo/remote/heck-0.3.1.BUILD.bazel rename to cargo/remote/BUILD.heck-0.3.1.bazel index cd95f5088..4025f692b 100644 --- a/cargo/remote/heck-0.3.1.BUILD.bazel +++ b/cargo/remote/BUILD.heck-0.3.1.bazel @@ -28,26 +28,26 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "heck", - crate_type = "lib", - deps = [ - "@raze__unicode_segmentation__1_6_0//:unicode_segmentation", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__unicode_segmentation__1_7_0//:unicode_segmentation", ], ) diff --git a/cargo/remote/hermit-abi-0.1.17.BUILD.bazel b/cargo/remote/BUILD.hermit-abi-0.1.17.bazel similarity index 95% rename from cargo/remote/hermit-abi-0.1.17.BUILD.bazel rename to cargo/remote/BUILD.hermit-abi-0.1.17.bazel index 699e8e8d6..5b53ab1d3 100644 --- a/cargo/remote/hermit-abi-0.1.17.BUILD.bazel +++ b/cargo/remote/BUILD.hermit-abi-0.1.17.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "hermit_abi", - crate_type = "lib", - deps = [ - "@raze__libc__0_2_80//:libc", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.17", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", + version = "0.1.17", + # buildifier: leave-alone + deps = [ + "@raze__libc__0_2_80//:libc", ], ) diff --git a/cargo/remote/hex-0.4.2.BUILD.bazel b/cargo/remote/BUILD.hex-0.4.2.bazel similarity index 95% rename from cargo/remote/hex-0.4.2.BUILD.bazel rename to cargo/remote/BUILD.hex-0.4.2.bazel index 781b253b9..83f11d30a 100644 --- a/cargo/remote/hex-0.4.2.BUILD.bazel +++ b/cargo/remote/BUILD.hex-0.4.2.bazel @@ -28,30 +28,33 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "hex" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "hex", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.4.2", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.2", + # buildifier: leave-alone + deps = [ + ], ) + # Unsupported target "serde" with type "test" omitted + # Unsupported target "version-number" with type "test" omitted diff --git a/cargo/remote/htmlescape-0.3.1.BUILD.bazel b/cargo/remote/BUILD.htmlescape-0.3.1.bazel similarity index 95% rename from cargo/remote/htmlescape-0.3.1.BUILD.bazel rename to cargo/remote/BUILD.htmlescape-0.3.1.bazel index 0829740dc..bf6ceada5 100644 --- a/cargo/remote/htmlescape-0.3.1.BUILD.bazel +++ b/cargo/remote/BUILD.htmlescape-0.3.1.bazel @@ -28,27 +28,29 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR (MIT OR MPL-2.0)" ]) -# Generated targets +# Generated Targets + # Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "htmlescape", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.1", + # buildifier: leave-alone + deps = [ ], ) + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/http-0.2.1.BUILD.bazel b/cargo/remote/BUILD.http-0.2.1.bazel similarity index 96% rename from cargo/remote/http-0.2.1.BUILD.bazel rename to cargo/remote/BUILD.http-0.2.1.bazel index 270221cc0..19e7cd558 100644 --- a/cargo/remote/http-0.2.1.BUILD.bazel +++ b/cargo/remote/BUILD.http-0.2.1.bazel @@ -28,35 +28,42 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "header_map" with type "bench" omitted -# Unsupported target "header_map" with type "test" omitted -# Unsupported target "header_map_fuzz" with type "test" omitted + # Unsupported target "header_name" with type "bench" omitted + # Unsupported target "header_value" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "uri" with type "bench" omitted + rust_library( name = "http", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone deps = [ "@raze__bytes__0_5_6//:bytes", "@raze__fnv__1_0_7//:fnv", "@raze__itoa__0_4_6//:itoa", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) + +# Unsupported target "header_map" with type "test" omitted + +# Unsupported target "header_map_fuzz" with type "test" omitted + # Unsupported target "status_code" with type "test" omitted -# Unsupported target "uri" with type "bench" omitted diff --git a/cargo/remote/http-body-0.3.1.BUILD.bazel b/cargo/remote/BUILD.http-body-0.3.1.bazel similarity index 95% rename from cargo/remote/http-body-0.3.1.BUILD.bazel rename to cargo/remote/BUILD.http-body-0.3.1.bazel index 400dbfa3e..22e7ea493 100644 --- a/cargo/remote/http-body-0.3.1.BUILD.bazel +++ b/cargo/remote/BUILD.http-body-0.3.1.bazel @@ -28,28 +28,29 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "http_body", - crate_type = "lib", - deps = [ - "@raze__bytes__0_5_6//:bytes", - "@raze__http__0_2_1//:http", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__http__0_2_1//:http", ], ) + # Unsupported target "is_end_stream" with type "test" omitted diff --git a/cargo/remote/httparse-1.3.4.BUILD.bazel b/cargo/remote/BUILD.httparse-1.3.4.bazel similarity index 92% rename from cargo/remote/httparse-1.3.4.BUILD.bazel rename to cargo/remote/BUILD.httparse-1.3.4.bazel index 80321812e..faa732701 100644 --- a/cargo/remote/httparse-1.3.4.BUILD.bazel +++ b/cargo/remote/BUILD.httparse-1.3.4.bazel @@ -28,62 +28,61 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "httparse_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.3.4", visibility = ["//visibility:private"], + deps = [ + ], ) +# Unsupported target "parse" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "httparse", - crate_type = "lib", - deps = [ - ":httparse_build_script", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.3.4", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.4", + # buildifier: leave-alone + deps = [ + ":httparse_build_script", + ], ) -# Unsupported target "parse" with type "bench" omitted + # Unsupported target "uri" with type "test" omitted diff --git a/cargo/remote/httpdate-0.3.2.BUILD.bazel b/cargo/remote/BUILD.httpdate-0.3.2.bazel similarity index 95% rename from cargo/remote/httpdate-0.3.2.BUILD.bazel rename to cargo/remote/BUILD.httpdate-0.3.2.bazel index a4b7dc4b9..03dcee6d7 100644 --- a/cargo/remote/httpdate-0.3.2.BUILD.bazel +++ b/cargo/remote/BUILD.httpdate-0.3.2.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "httpdate", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.2", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/humansize-1.1.0.BUILD.bazel b/cargo/remote/BUILD.humansize-1.1.0.bazel similarity index 95% rename from cargo/remote/humansize-1.1.0.BUILD.bazel rename to cargo/remote/BUILD.humansize-1.1.0.bazel index 21311f43d..f9adc462c 100644 --- a/cargo/remote/humansize-1.1.0.BUILD.bazel +++ b/cargo/remote/BUILD.humansize-1.1.0.bazel @@ -28,27 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "custom_options" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "sizes" with type "example" omitted + rust_library( name = "humansize", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "1.1.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.1.0", + # buildifier: leave-alone + deps = [ ], ) -# Unsupported target "sizes" with type "example" omitted diff --git a/cargo/remote/humantime-2.0.1.BUILD.bazel b/cargo/remote/BUILD.humantime-2.0.1.bazel similarity index 95% rename from cargo/remote/humantime-2.0.1.BUILD.bazel rename to cargo/remote/BUILD.humantime-2.0.1.bazel index 866bab849..f6f47f551 100644 --- a/cargo/remote/humantime-2.0.1.BUILD.bazel +++ b/cargo/remote/BUILD.humantime-2.0.1.bazel @@ -28,27 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "datetime_format" with type "bench" omitted + # Unsupported target "datetime_parse" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "humantime", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "2.0.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "2.0.1", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/hyper-0.13.9.BUILD.bazel b/cargo/remote/BUILD.hyper-0.13.9.bazel similarity index 91% rename from cargo/remote/hyper-0.13.9.BUILD.bazel rename to cargo/remote/BUILD.hyper-0.13.9.bazel index c9ea23a64..add4fc961 100644 --- a/cargo/remote/hyper-0.13.9.BUILD.bazel +++ b/cargo/remote/BUILD.hyper-0.13.9.bazel @@ -28,27 +28,76 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "body" with type "bench" omitted -# Unsupported target "client" with type "example" omitted -# Unsupported target "client" with type "test" omitted -# Unsupported target "client_json" with type "example" omitted + # Unsupported target "connect" with type "bench" omitted -# Unsupported target "echo" with type "example" omitted + # Unsupported target "end_to_end" with type "bench" omitted + +# Unsupported target "pipeline" with type "bench" omitted + +# Unsupported target "server" with type "bench" omitted + +# Unsupported target "client" with type "example" omitted + +# Unsupported target "client_json" with type "example" omitted + +# Unsupported target "echo" with type "example" omitted + # Unsupported target "gateway" with type "example" omitted + # Unsupported target "hello" with type "example" omitted + # Unsupported target "http_proxy" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "multi_server" with type "example" omitted + +# Unsupported target "params" with type "example" omitted + +# Unsupported target "send_file" with type "example" omitted + +# Unsupported target "service_struct_impl" with type "example" omitted + +# Unsupported target "single_threaded" with type "example" omitted + +# Unsupported target "state" with type "example" omitted + +# Unsupported target "tower_client" with type "example" omitted + +# Unsupported target "tower_server" with type "example" omitted + +# Unsupported target "upgrades" with type "example" omitted + +# Unsupported target "web_api" with type "example" omitted + rust_library( name = "hyper", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "socket2", + "tcp", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.13.9", + # buildifier: leave-alone deps = [ "@raze__bytes__0_5_6//:bytes", - "@raze__futures_channel__0_3_7//:futures_channel", - "@raze__futures_core__0_3_7//:futures_core", - "@raze__futures_util__0_3_7//:futures_util", + "@raze__futures_channel__0_3_8//:futures_channel", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_util__0_3_8//:futures_util", "@raze__h2__0_2_7//:h2", "@raze__http__0_2_1//:http", "@raze__http_body__0_3_1//:http_body", @@ -56,8 +105,8 @@ rust_library( "@raze__httpdate__0_3_2//:httpdate", "@raze__itoa__0_4_6//:itoa", "@raze__pin_project__1_0_1//:pin_project", - "@raze__socket2__0_3_15//:socket2", - "@raze__tokio__0_2_22//:tokio", + "@raze__socket2__0_3_16//:socket2", + "@raze__tokio__0_2_23//:tokio", "@raze__tower_service__0_3_0//:tower_service", "@raze__tracing__0_1_21//:tracing", "@raze__want__0_3_0//:want", @@ -72,35 +121,10 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.13.9", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "socket2", - "tcp", - ], - aliases = { - }, ) + +# Unsupported target "client" with type "test" omitted + # Unsupported target "integration" with type "test" omitted -# Unsupported target "multi_server" with type "example" omitted -# Unsupported target "params" with type "example" omitted -# Unsupported target "pipeline" with type "bench" omitted -# Unsupported target "send_file" with type "example" omitted -# Unsupported target "server" with type "bench" omitted + # Unsupported target "server" with type "test" omitted -# Unsupported target "service_struct_impl" with type "example" omitted -# Unsupported target "single_threaded" with type "example" omitted -# Unsupported target "state" with type "example" omitted -# Unsupported target "tower_client" with type "example" omitted -# Unsupported target "tower_server" with type "example" omitted -# Unsupported target "upgrades" with type "example" omitted -# Unsupported target "web_api" with type "example" omitted diff --git a/cargo/remote/hyper-rustls-0.21.0.BUILD.bazel b/cargo/remote/BUILD.hyper-rustls-0.21.0.bazel similarity index 90% rename from cargo/remote/hyper-rustls-0.21.0.BUILD.bazel rename to cargo/remote/BUILD.hyper-rustls-0.21.0.bazel index 1761932df..b6f471797 100644 --- a/cargo/remote/hyper-rustls-0.21.0.BUILD.bazel +++ b/cargo/remote/BUILD.hyper-rustls-0.21.0.bazel @@ -28,36 +28,39 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR (ISC OR MIT)" ]) -# Generated targets +# Generated Targets + # Unsupported target "client" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "server" with type "example" omitted + rust_library( name = "hyper_rustls", - crate_type = "lib", - deps = [ - "@raze__bytes__0_5_6//:bytes", - "@raze__futures_util__0_3_7//:futures_util", - "@raze__hyper__0_13_9//:hyper", - "@raze__log__0_4_11//:log", - "@raze__rustls__0_18_1//:rustls", - "@raze__tokio__0_2_22//:tokio", - "@raze__tokio_rustls__0_14_1//:tokio_rustls", - "@raze__webpki__0_21_3//:webpki", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.21.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__futures_util__0_3_8//:futures_util", + "@raze__hyper__0_13_9//:hyper", + "@raze__log__0_4_11//:log", + "@raze__rustls__0_18_1//:rustls", + "@raze__tokio__0_2_23//:tokio", + "@raze__tokio_rustls__0_14_1//:tokio_rustls", + "@raze__webpki__0_21_3//:webpki", ], ) -# Unsupported target "server" with type "example" omitted + # Unsupported target "tests" with type "test" omitted diff --git a/cargo/remote/hyper-timeout-0.3.1.BUILD.bazel b/cargo/remote/BUILD.hyper-timeout-0.3.1.bazel similarity index 92% rename from cargo/remote/hyper-timeout-0.3.1.BUILD.bazel rename to cargo/remote/BUILD.hyper-timeout-0.3.1.bazel index 0f8e61883..ac061582e 100644 --- a/cargo/remote/hyper-timeout-0.3.1.BUILD.bazel +++ b/cargo/remote/BUILD.hyper-timeout-0.3.1.bazel @@ -28,30 +28,31 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "client" with type "example" omitted -# buildifier: leave-alone rust_library( name = "hyper_timeout", - crate_type = "lib", - deps = [ - "@raze__bytes__0_5_6//:bytes", - "@raze__hyper__0_13_9//:hyper", - "@raze__tokio__0_2_22//:tokio", - "@raze__tokio_io_timeout__0_4_0//:tokio_io_timeout", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__hyper__0_13_9//:hyper", + "@raze__tokio__0_2_23//:tokio", + "@raze__tokio_io_timeout__0_4_0//:tokio_io_timeout", ], ) diff --git a/cargo/remote/BUILD.hyper-tls-0.4.3.bazel b/cargo/remote/BUILD.hyper-tls-0.4.3.bazel new file mode 100644 index 000000000..5e97d29ab --- /dev/null +++ b/cargo/remote/BUILD.hyper-tls-0.4.3.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "client" with type "example" omitted + +rust_library( + name = "hyper_tls", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.3", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__hyper__0_13_9//:hyper", + "@raze__native_tls__0_2_6//:native_tls", + "@raze__tokio__0_2_23//:tokio", + "@raze__tokio_tls__0_3_1//:tokio_tls", + ], +) diff --git a/cargo/remote/idna-0.2.0.BUILD.bazel b/cargo/remote/BUILD.idna-0.2.0.bazel similarity index 90% rename from cargo/remote/idna-0.2.0.BUILD.bazel rename to cargo/remote/BUILD.idna-0.2.0.bazel index 46bc1a3f8..b00b48614 100644 --- a/cargo/remote/idna-0.2.0.BUILD.bazel +++ b/cargo/remote/BUILD.idna-0.2.0.bazel @@ -28,30 +28,32 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "idna", - crate_type = "lib", - deps = [ - "@raze__matches__0_1_8//:matches", - "@raze__unicode_bidi__0_3_4//:unicode_bidi", - "@raze__unicode_normalization__0_1_13//:unicode_normalization", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.0", + # buildifier: leave-alone + deps = [ + "@raze__matches__0_1_8//:matches", + "@raze__unicode_bidi__0_3_4//:unicode_bidi", + "@raze__unicode_normalization__0_1_14//:unicode_normalization", ], ) + # Unsupported target "tests" with type "test" omitted + # Unsupported target "unit" with type "test" omitted diff --git a/cargo/remote/indexmap-1.6.0.BUILD.bazel b/cargo/remote/BUILD.indexmap-1.6.0.bazel similarity index 94% rename from cargo/remote/indexmap-1.6.0.BUILD.bazel rename to cargo/remote/BUILD.indexmap-1.6.0.bazel index cd528d3aa..8f56f7e8d 100644 --- a/cargo/remote/indexmap-1.6.0.BUILD.bazel +++ b/cargo/remote/BUILD.indexmap-1.6.0.bazel @@ -28,64 +28,67 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "indexmap_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ - "@raze__autocfg__1_0_1//:autocfg", + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.6.0", visibility = ["//visibility:private"], + deps = [ + "@raze__autocfg__1_0_1//:autocfg", + ], ) # Unsupported target "bench" with type "bench" omitted -# Unsupported target "equivalent_trait" with type "test" omitted + # Unsupported target "faststring" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "indexmap", - crate_type = "lib", - deps = [ - ":indexmap_build_script", - "@raze__hashbrown__0_9_1//:hashbrown", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "1.6.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.6.0", + # buildifier: leave-alone + deps = [ + ":indexmap_build_script", + "@raze__hashbrown__0_9_1//:hashbrown", ], ) + +# Unsupported target "equivalent_trait" with type "test" omitted + # Unsupported target "macros_full_path" with type "test" omitted + # Unsupported target "quick" with type "test" omitted + # Unsupported target "tests" with type "test" omitted diff --git a/cargo/remote/indoc-0.3.6.BUILD.bazel b/cargo/remote/BUILD.indoc-0.3.6.bazel similarity index 95% rename from cargo/remote/indoc-0.3.6.BUILD.bazel rename to cargo/remote/BUILD.indoc-0.3.6.bazel index 6aca8acea..1068d3dc2 100644 --- a/cargo/remote/indoc-0.3.6.BUILD.bazel +++ b/cargo/remote/BUILD.indoc-0.3.6.bazel @@ -28,17 +28,15 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "compiletest" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "indoc", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", proc_macro_deps = [ "@raze__indoc_impl__0_3_6//:indoc_impl", @@ -47,12 +45,16 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.6", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.6", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "compiletest" with type "test" omitted + # Unsupported target "run-pass" with type "test" omitted diff --git a/cargo/remote/indoc-impl-0.3.6.BUILD.bazel b/cargo/remote/BUILD.indoc-impl-0.3.6.bazel similarity index 96% rename from cargo/remote/indoc-impl-0.3.6.BUILD.bazel rename to cargo/remote/BUILD.indoc-impl-0.3.6.bazel index 0f3b7c14e..657bca5f7 100644 --- a/cargo/remote/indoc-impl-0.3.6.BUILD.bazel +++ b/cargo/remote/BUILD.indoc-impl-0.3.6.bazel @@ -28,20 +28,15 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "indoc_impl", - crate_type = "proc-macro", - deps = [ - "@raze__proc_macro2__1_0_24//:proc_macro2", - "@raze__quote__1_0_7//:quote", - "@raze__syn__1_0_48//:syn", - "@raze__unindent__0_1_7//:unindent", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "proc-macro", edition = "2018", proc_macro_deps = [ "@raze__proc_macro_hack__0_5_19//:proc_macro_hack", @@ -49,11 +44,16 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.6", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.6", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + "@raze__unindent__0_1_7//:unindent", ], ) diff --git a/cargo/remote/instant-0.1.8.BUILD.bazel b/cargo/remote/BUILD.instant-0.1.8.bazel similarity index 95% rename from cargo/remote/instant-0.1.8.BUILD.bazel rename to cargo/remote/BUILD.instant-0.1.8.bazel index 16258129c..0bd2e9cea 100644 --- a/cargo/remote/instant-0.1.8.BUILD.bazel +++ b/cargo/remote/BUILD.instant-0.1.8.bazel @@ -28,27 +28,28 @@ licenses([ "notice", # BSD-3-Clause from expression "BSD-3-Clause" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "instant", - crate_type = "lib", - deps = [ - "@raze__cfg_if__1_0_0//:cfg_if", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.8", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.8", + # buildifier: leave-alone + deps = [ + "@raze__cfg_if__1_0_0//:cfg_if", ], ) + # Unsupported target "wasm" with type "test" omitted diff --git a/cargo/remote/intl-memoizer-0.5.0.BUILD.bazel b/cargo/remote/BUILD.intl-memoizer-0.5.0.bazel similarity index 95% rename from cargo/remote/intl-memoizer-0.5.0.BUILD.bazel rename to cargo/remote/BUILD.intl-memoizer-0.5.0.bazel index f4a915ef8..142edd285 100644 --- a/cargo/remote/intl-memoizer-0.5.0.BUILD.bazel +++ b/cargo/remote/BUILD.intl-memoizer-0.5.0.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "intl_memoizer", - crate_type = "lib", - deps = [ - "@raze__type_map__0_3_0//:type_map", - "@raze__unic_langid__0_9_0//:unic_langid", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.5.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.5.0", + # buildifier: leave-alone + deps = [ + "@raze__type_map__0_3_0//:type_map", + "@raze__unic_langid__0_9_0//:unic_langid", ], ) diff --git a/cargo/remote/intl_pluralrules-7.0.0.BUILD.bazel b/cargo/remote/BUILD.intl_pluralrules-7.0.0.bazel similarity index 95% rename from cargo/remote/intl_pluralrules-7.0.0.BUILD.bazel rename to cargo/remote/BUILD.intl_pluralrules-7.0.0.bazel index 92e52699b..381abc768 100644 --- a/cargo/remote/intl_pluralrules-7.0.0.BUILD.bazel +++ b/cargo/remote/BUILD.intl_pluralrules-7.0.0.bazel @@ -28,28 +28,29 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + +# Unsupported target "pluralrules" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "intl_pluralrules", - crate_type = "lib", - deps = [ - "@raze__tinystr__0_3_4//:tinystr", - "@raze__unic_langid__0_9_0//:unic_langid", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "7.0.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "7.0.0", + # buildifier: leave-alone + deps = [ + "@raze__tinystr__0_3_4//:tinystr", + "@raze__unic_langid__0_9_0//:unic_langid", ], ) -# Unsupported target "pluralrules" with type "bench" omitted diff --git a/cargo/remote/inventory-0.1.9.BUILD.bazel b/cargo/remote/BUILD.inventory-0.1.9.bazel similarity index 94% rename from cargo/remote/inventory-0.1.9.BUILD.bazel rename to cargo/remote/BUILD.inventory-0.1.9.bazel index 373b91caa..5c8bdcb28 100644 --- a/cargo/remote/inventory-0.1.9.BUILD.bazel +++ b/cargo/remote/BUILD.inventory-0.1.9.bazel @@ -28,48 +28,44 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "inventory_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.1.9", visibility = ["//visibility:private"], + deps = [ + ], ) # Unsupported target "flags" with type "example" omitted -# buildifier: leave-alone rust_library( name = "inventory", - crate_type = "lib", - deps = [ - ":inventory_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", proc_macro_deps = [ "@raze__ctor__0_1_16//:ctor", @@ -79,11 +75,13 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.9", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.9", + # buildifier: leave-alone + deps = [ + ":inventory_build_script", ], ) diff --git a/cargo/remote/inventory-impl-0.1.9.BUILD.bazel b/cargo/remote/BUILD.inventory-impl-0.1.9.bazel similarity index 95% rename from cargo/remote/inventory-impl-0.1.9.BUILD.bazel rename to cargo/remote/BUILD.inventory-impl-0.1.9.bazel index bab6bc454..2402c3b9f 100644 --- a/cargo/remote/inventory-impl-0.1.9.BUILD.bazel +++ b/cargo/remote/BUILD.inventory-impl-0.1.9.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "inventory_impl", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.9", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.9", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/iovec-0.1.4.BUILD.bazel b/cargo/remote/BUILD.iovec-0.1.4.bazel similarity index 96% rename from cargo/remote/iovec-0.1.4.BUILD.bazel rename to cargo/remote/BUILD.iovec-0.1.4.bazel index fe3840e5f..8824d5d68 100644 --- a/cargo/remote/iovec-0.1.4.BUILD.bazel +++ b/cargo/remote/BUILD.iovec-0.1.4.bazel @@ -28,12 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "iovec", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.4", + # buildifier: leave-alone deps = [ ] + selects.with_or({ # cfg(unix) @@ -49,19 +64,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.4", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) diff --git a/cargo/remote/ipnet-2.3.0.BUILD.bazel b/cargo/remote/BUILD.ipnet-2.3.0.bazel similarity index 95% rename from cargo/remote/ipnet-2.3.0.BUILD.bazel rename to cargo/remote/BUILD.ipnet-2.3.0.bazel index 0aae854ac..fae9c8e74 100644 --- a/cargo/remote/ipnet-2.3.0.BUILD.bazel +++ b/cargo/remote/BUILD.ipnet-2.3.0.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "ipnet", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "2.3.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "2.3.0", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/itertools-0.9.0.BUILD.bazel b/cargo/remote/BUILD.itertools-0.9.0.bazel similarity index 96% rename from cargo/remote/itertools-0.9.0.BUILD.bazel rename to cargo/remote/BUILD.itertools-0.9.0.bazel index 7936b4003..77f865863 100644 --- a/cargo/remote/itertools-0.9.0.BUILD.bazel +++ b/cargo/remote/BUILD.itertools-0.9.0.bazel @@ -28,45 +28,62 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "adaptors_no_collect" with type "test" omitted +# Generated Targets + # Unsupported target "bench1" with type "bench" omitted + # Unsupported target "combinations_with_replacement" with type "bench" omitted + # Unsupported target "fold_specialization" with type "bench" omitted -# Unsupported target "fold_specialization" with type "test" omitted + +# Unsupported target "tree_fold1" with type "bench" omitted + +# Unsupported target "tuple_combinations" with type "bench" omitted + +# Unsupported target "tuples" with type "bench" omitted + # Unsupported target "iris" with type "example" omitted -# buildifier: leave-alone rust_library( name = "itertools", - crate_type = "lib", - deps = [ - "@raze__either__1_6_1//:either", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.9.0", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "use_std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@raze__either__1_6_1//:either", + ], ) + +# Unsupported target "adaptors_no_collect" with type "test" omitted + +# Unsupported target "fold_specialization" with type "test" omitted + # Unsupported target "merge_join" with type "test" omitted + # Unsupported target "peeking_take_while" with type "test" omitted + # Unsupported target "quick" with type "test" omitted + # Unsupported target "specializations" with type "test" omitted + # Unsupported target "test_core" with type "test" omitted + # Unsupported target "test_std" with type "test" omitted -# Unsupported target "tree_fold1" with type "bench" omitted -# Unsupported target "tuple_combinations" with type "bench" omitted -# Unsupported target "tuples" with type "bench" omitted + # Unsupported target "tuples" with type "test" omitted + # Unsupported target "zip" with type "test" omitted diff --git a/cargo/remote/itoa-0.4.6.BUILD.bazel b/cargo/remote/BUILD.itoa-0.4.6.bazel similarity index 95% rename from cargo/remote/itoa-0.4.6.BUILD.bazel rename to cargo/remote/BUILD.itoa-0.4.6.bazel index 83d87932b..f66a5a46d 100644 --- a/cargo/remote/itoa-0.4.6.BUILD.bazel +++ b/cargo/remote/BUILD.itoa-0.4.6.bazel @@ -28,30 +28,32 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "itoa", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.4.6", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "i128", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.6", + # buildifier: leave-alone + deps = [ + ], ) + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/js-sys-0.3.45.BUILD.bazel b/cargo/remote/BUILD.js-sys-0.3.45.bazel similarity index 95% rename from cargo/remote/js-sys-0.3.45.BUILD.bazel rename to cargo/remote/BUILD.js-sys-0.3.45.bazel index 6aa980368..bf47eedb9 100644 --- a/cargo/remote/js-sys-0.3.45.BUILD.bazel +++ b/cargo/remote/BUILD.js-sys-0.3.45.bazel @@ -28,28 +28,30 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "headless" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "js_sys", - crate_type = "lib", - deps = [ - "@raze__wasm_bindgen__0_2_68//:wasm_bindgen", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.45", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.45", + # buildifier: leave-alone + deps = [ + "@raze__wasm_bindgen__0_2_68//:wasm_bindgen", ], ) + +# Unsupported target "headless" with type "test" omitted + # Unsupported target "wasm" with type "test" omitted diff --git a/cargo/remote/kernel32-sys-0.2.2.BUILD.bazel b/cargo/remote/BUILD.kernel32-sys-0.2.2.bazel similarity index 94% rename from cargo/remote/kernel32-sys-0.2.2.BUILD.bazel rename to cargo/remote/BUILD.kernel32-sys-0.2.2.bazel index 42848892b..05b673b44 100644 --- a/cargo/remote/kernel32-sys-0.2.2.BUILD.bazel +++ b/cargo/remote/BUILD.kernel32-sys-0.2.2.bazel @@ -28,39 +28,36 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "kernel32_sys_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ - "@raze__winapi_build__0_1_1//:winapi_build", + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.2.2", visibility = ["//visibility:private"], + deps = [ + "@raze__winapi_build__0_1_1//:winapi_build", + ], ) - alias( name = "kernel32_sys", actual = ":kernel32", @@ -70,25 +67,25 @@ alias( ], ) -# buildifier: leave-alone rust_library( name = "kernel32", - crate_type = "lib", - deps = [ - ":kernel32_sys_build_script", - "@raze__winapi__0_2_8//:winapi", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.2", + # buildifier: leave-alone + deps = [ + ":kernel32_sys_build_script", + "@raze__winapi__0_2_8//:winapi", ], ) diff --git a/cargo/remote/lazy_static-1.4.0.BUILD.bazel b/cargo/remote/BUILD.lazy_static-1.4.0.bazel similarity index 95% rename from cargo/remote/lazy_static-1.4.0.BUILD.bazel rename to cargo/remote/BUILD.lazy_static-1.4.0.bazel index 9a223beb3..2eeed058e 100644 --- a/cargo/remote/lazy_static-1.4.0.BUILD.bazel +++ b/cargo/remote/BUILD.lazy_static-1.4.0.bazel @@ -28,27 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "lazy_static", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "1.4.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.4.0", + # buildifier: leave-alone + deps = [ ], ) + # Unsupported target "no_std" with type "test" omitted + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/lexical-core-0.7.4.BUILD.bazel b/cargo/remote/BUILD.lexical-core-0.7.4.bazel similarity index 89% rename from cargo/remote/lexical-core-0.7.4.BUILD.bazel rename to cargo/remote/BUILD.lexical-core-0.7.4.bazel index 103498ffd..e9b0e8bae 100644 --- a/cargo/remote/lexical-core-0.7.4.BUILD.bazel +++ b/cargo/remote/BUILD.lexical-core-0.7.4.bazel @@ -28,68 +28,17 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "lexical_core_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ - ], - rustc_flags = [ - "--cap-lints=allow", - ], - crate_features = [ - "arrayvec", - "correct", - "default", - "ryu", - "static_assertions", - "std", - "table", - ], build_script_env = { }, - data = glob(["**"]), - tags = [ - "cargo-raze", - "manual", - ], - version = "0.7.4", - visibility = ["//visibility:private"], -) - - -# buildifier: leave-alone -rust_library( - name = "lexical_core", - crate_type = "lib", - deps = [ - ":lexical_core_build_script", - "@raze__arrayvec__0_5_2//:arrayvec", - "@raze__bitflags__1_2_1//:bitflags", - "@raze__cfg_if__0_1_10//:cfg_if", - "@raze__ryu__1_0_5//:ryu", - "@raze__static_assertions__1_1_0//:static_assertions", - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.7.4", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "arrayvec", "correct", @@ -99,4 +48,52 @@ rust_library( "std", "table", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.4", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "lexical_core", + srcs = glob(["**/*.rs"]), + crate_features = [ + "arrayvec", + "correct", + "default", + "ryu", + "static_assertions", + "std", + "table", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.4", + # buildifier: leave-alone + deps = [ + ":lexical_core_build_script", + "@raze__arrayvec__0_5_2//:arrayvec", + "@raze__bitflags__1_2_1//:bitflags", + "@raze__cfg_if__0_1_10//:cfg_if", + "@raze__ryu__1_0_5//:ryu", + "@raze__static_assertions__1_1_0//:static_assertions", + ], ) diff --git a/cargo/remote/libc-0.2.80.BUILD.bazel b/cargo/remote/BUILD.libc-0.2.80.bazel similarity index 91% rename from cargo/remote/libc-0.2.80.BUILD.bazel rename to cargo/remote/BUILD.libc-0.2.80.bazel index e74461404..8e74e2d50 100644 --- a/cargo/remote/libc-0.2.80.BUILD.bazel +++ b/cargo/remote/BUILD.libc-0.2.80.bazel @@ -28,61 +28,61 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "libc_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ + "align", + "default", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.2.80", visibility = ["//visibility:private"], + deps = [ + ], ) -# Unsupported target "const_fn" with type "test" omitted - -# buildifier: leave-alone rust_library( name = "libc", - crate_type = "lib", - deps = [ - ":libc_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "align", + "default", + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.80", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", - "std", + version = "0.2.80", + # buildifier: leave-alone + deps = [ + ":libc_build_script", ], ) + +# Unsupported target "const_fn" with type "test" omitted diff --git a/cargo/remote/libsqlite3-sys-0.20.1.BUILD.bazel b/cargo/remote/BUILD.libsqlite3-sys-0.20.1.bazel similarity index 87% rename from cargo/remote/libsqlite3-sys-0.20.1.BUILD.bazel rename to cargo/remote/BUILD.libsqlite3-sys-0.20.1.bazel index c92a12867..d450a9f9d 100644 --- a/cargo/remote/libsqlite3-sys-0.20.1.BUILD.bazel +++ b/cargo/remote/BUILD.libsqlite3-sys-0.20.1.bazel @@ -28,84 +28,17 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "libsqlite3_sys_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ - "@raze__cc__1_0_61//:cc", - "@raze__pkg_config__0_3_19//:pkg_config", - ] + selects.with_or({ - # cfg(target_env = "msvc") - ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@raze__vcpkg__0_2_10//:vcpkg", - ], - "//conditions:default": [], - }), - rustc_flags = [ - "--cap-lints=allow", - ], - crate_features = [ - "bundled", - "bundled_bindings", - "cc", - "default", - "min_sqlite_version_3_6_23", - "min_sqlite_version_3_6_8", - "min_sqlite_version_3_7_7", - "pkg-config", - "vcpkg", - ], build_script_env = { }, - data = glob(["**"]), - tags = [ - "cargo-raze", - "manual", - ], - version = "0.20.1", - visibility = ["//visibility:private"], -) - - -# buildifier: leave-alone -rust_library( - name = "libsqlite3_sys", - crate_type = "lib", - deps = [ - ":libsqlite3_sys_build_script", - ] + selects.with_or({ - # cfg(target_env = "msvc") - ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - ], - "//conditions:default": [], - }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.20.1", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "bundled", "bundled_bindings", @@ -117,6 +50,70 @@ rust_library( "pkg-config", "vcpkg", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.20.1", + visibility = ["//visibility:private"], + deps = [ + "@raze__cc__1_0_62//:cc", + "@raze__pkg_config__0_3_19//:pkg_config", + ] + selects.with_or({ + # cfg(target_env = "msvc") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__vcpkg__0_2_10//:vcpkg", + ], + "//conditions:default": [], + }), +) + +rust_library( + name = "libsqlite3_sys", + srcs = glob(["**/*.rs"]), aliases = { }, + crate_features = [ + "bundled", + "bundled_bindings", + "cc", + "default", + "min_sqlite_version_3_6_23", + "min_sqlite_version_3_6_8", + "min_sqlite_version_3_7_7", + "pkg-config", + "vcpkg", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.20.1", + # buildifier: leave-alone + deps = [ + ":libsqlite3_sys_build_script", + ] + selects.with_or({ + # cfg(target_env = "msvc") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), ) diff --git a/cargo/remote/lock_api-0.4.1.BUILD.bazel b/cargo/remote/BUILD.lock_api-0.4.1.bazel similarity index 95% rename from cargo/remote/lock_api-0.4.1.BUILD.bazel rename to cargo/remote/BUILD.lock_api-0.4.1.bazel index 985f188af..1dfda7386 100644 --- a/cargo/remote/lock_api-0.4.1.BUILD.bazel +++ b/cargo/remote/BUILD.lock_api-0.4.1.bazel @@ -28,26 +28,26 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "lock_api", - crate_type = "lib", - deps = [ - "@raze__scopeguard__1_1_0//:scopeguard", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.1", + # buildifier: leave-alone + deps = [ + "@raze__scopeguard__1_1_0//:scopeguard", ], ) diff --git a/cargo/remote/log-0.4.11.BUILD.bazel b/cargo/remote/BUILD.log-0.4.11.bazel similarity index 93% rename from cargo/remote/log-0.4.11.BUILD.bazel rename to cargo/remote/BUILD.log-0.4.11.bazel index 21676e9e6..986593358 100644 --- a/cargo/remote/log-0.4.11.BUILD.bazel +++ b/cargo/remote/BUILD.log-0.4.11.bazel @@ -28,61 +28,60 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "log_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.4.11", visibility = ["//visibility:private"], + deps = [ + ], ) -# Unsupported target "filters" with type "test" omitted - -# buildifier: leave-alone rust_library( name = "log", - crate_type = "lib", - deps = [ - ":log_build_script", - "@raze__cfg_if__0_1_10//:cfg_if", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.11", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "std", + version = "0.4.11", + # buildifier: leave-alone + deps = [ + ":log_build_script", + "@raze__cfg_if__0_1_10//:cfg_if", ], ) + +# Unsupported target "filters" with type "test" omitted + # Unsupported target "macros" with type "test" omitted diff --git a/cargo/remote/matches-0.1.8.BUILD.bazel b/cargo/remote/BUILD.matches-0.1.8.bazel similarity index 95% rename from cargo/remote/matches-0.1.8.BUILD.bazel rename to cargo/remote/BUILD.matches-0.1.8.bazel index 705ed6a03..a8536eb28 100644 --- a/cargo/remote/matches-0.1.8.BUILD.bazel +++ b/cargo/remote/BUILD.matches-0.1.8.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# Unsupported target "macro_use_one" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "matches", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.8", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.8", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "macro_use_one" with type "test" omitted diff --git a/cargo/remote/maybe-uninit-2.0.0.BUILD.bazel b/cargo/remote/BUILD.maybe-uninit-2.0.0.bazel similarity index 93% rename from cargo/remote/maybe-uninit-2.0.0.BUILD.bazel rename to cargo/remote/BUILD.maybe-uninit-2.0.0.bazel index 208b3e7ff..69618acc8 100644 --- a/cargo/remote/maybe-uninit-2.0.0.BUILD.bazel +++ b/cargo/remote/BUILD.maybe-uninit-2.0.0.bazel @@ -28,57 +28,55 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "maybe_uninit_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "2.0.0", visibility = ["//visibility:private"], + deps = [ + ], ) -# Unsupported target "doesnt_drop" with type "test" omitted - -# buildifier: leave-alone rust_library( name = "maybe_uninit", - crate_type = "lib", - deps = [ - ":maybe_uninit_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "2.0.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "2.0.0", + # buildifier: leave-alone + deps = [ + ":maybe_uninit_build_script", ], ) + +# Unsupported target "doesnt_drop" with type "test" omitted diff --git a/cargo/remote/memchr-2.3.4.BUILD.bazel b/cargo/remote/BUILD.memchr-2.3.4.bazel similarity index 91% rename from cargo/remote/memchr-2.3.4.BUILD.bazel rename to cargo/remote/BUILD.memchr-2.3.4.bazel index 5c9171d7d..8c204324a 100644 --- a/cargo/remote/memchr-2.3.4.BUILD.bazel +++ b/cargo/remote/BUILD.memchr-2.3.4.bazel @@ -28,62 +28,59 @@ licenses([ "unencumbered", # Unlicense from expression "Unlicense OR MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "memchr_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", + "std", + "use_std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - "use_std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "2.3.4", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "memchr", - crate_type = "lib", - deps = [ - ":memchr_build_script", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "2.3.4", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", "use_std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.3.4", + # buildifier: leave-alone + deps = [ + ":memchr_build_script", + ], ) diff --git a/cargo/remote/mime-0.3.16.BUILD.bazel b/cargo/remote/BUILD.mime-0.3.16.bazel similarity index 95% rename from cargo/remote/mime-0.3.16.BUILD.bazel rename to cargo/remote/BUILD.mime-0.3.16.bazel index 06f35c424..c0586d67f 100644 --- a/cargo/remote/mime-0.3.16.BUILD.bazel +++ b/cargo/remote/BUILD.mime-0.3.16.bazel @@ -28,28 +28,31 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "cmp" with type "bench" omitted + # Unsupported target "fmt" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "parse" with type "bench" omitted + rust_library( name = "mime", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.16", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.16", + # buildifier: leave-alone + deps = [ ], ) -# Unsupported target "parse" with type "bench" omitted diff --git a/cargo/remote/mime_guess-2.0.3.BUILD.bazel b/cargo/remote/BUILD.mime_guess-2.0.3.bazel similarity index 92% rename from cargo/remote/mime_guess-2.0.3.BUILD.bazel rename to cargo/remote/BUILD.mime_guess-2.0.3.bazel index 0b18c342e..756071202 100644 --- a/cargo/remote/mime_guess-2.0.3.BUILD.bazel +++ b/cargo/remote/BUILD.mime_guess-2.0.3.bazel @@ -28,65 +28,64 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "mime_guess_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ - "@raze__unicase__2_6_0//:unicase", + build_script_env = { + }, + crate_features = [ + "default", + "rev-mappings", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "rev-mappings", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "2.0.3", visibility = ["//visibility:private"], + deps = [ + "@raze__unicase__2_6_0//:unicase", + ], ) # Unsupported target "benchmark" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "rev_map" with type "example" omitted + rust_library( name = "mime_guess", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "rev-mappings", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.0.3", + # buildifier: leave-alone deps = [ ":mime_guess_build_script", "@raze__mime__0_3_16//:mime", "@raze__unicase__2_6_0//:unicase", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "2.0.3", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - "rev-mappings", - ], ) -# Unsupported target "rev_map" with type "example" omitted diff --git a/cargo/remote/miniz_oxide-0.4.3.BUILD.bazel b/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel similarity index 93% rename from cargo/remote/miniz_oxide-0.4.3.BUILD.bazel rename to cargo/remote/BUILD.miniz_oxide-0.4.3.bazel index 1b1d14228..ea5a93526 100644 --- a/cargo/remote/miniz_oxide-0.4.3.BUILD.bazel +++ b/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel @@ -28,58 +28,55 @@ licenses([ "notice", # MIT from expression "MIT OR (Zlib OR Apache-2.0)" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "miniz_oxide_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ - "@raze__autocfg__1_0_1//:autocfg", + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.4.3", visibility = ["//visibility:private"], + deps = [ + "@raze__autocfg__1_0_1//:autocfg", + ], ) - -# buildifier: leave-alone rust_library( name = "miniz_oxide", - crate_type = "lib", - deps = [ - ":miniz_oxide_build_script", - "@raze__adler__0_2_3//:adler", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.3", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.3", + # buildifier: leave-alone + deps = [ + ":miniz_oxide_build_script", + "@raze__adler__0_2_3//:adler", ], ) diff --git a/cargo/remote/mio-0.6.22.BUILD.bazel b/cargo/remote/BUILD.mio-0.6.22.bazel similarity index 97% rename from cargo/remote/mio-0.6.22.BUILD.bazel rename to cargo/remote/BUILD.mio-0.6.22.bazel index 6f689143d..fdb58b77f 100644 --- a/cargo/remote/mio-0.6.22.BUILD.bazel +++ b/cargo/remote/BUILD.mio-0.6.22.bazel @@ -28,12 +28,29 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "mio", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "with-deprecated", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.6.22", + # buildifier: leave-alone deps = [ "@raze__cfg_if__0_1_10//:cfg_if", "@raze__iovec__0_1_4//:iovec", @@ -65,22 +82,6 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.6.22", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - "with-deprecated", - ], - aliases = { - }, ) + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/miow-0.2.1.BUILD.bazel b/cargo/remote/BUILD.miow-0.2.1.bazel similarity index 95% rename from cargo/remote/miow-0.2.1.BUILD.bazel rename to cargo/remote/BUILD.miow-0.2.1.bazel index 4032074b9..15ca26e00 100644 --- a/cargo/remote/miow-0.2.1.BUILD.bazel +++ b/cargo/remote/BUILD.miow-0.2.1.bazel @@ -28,29 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "miow", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone deps = [ "@raze__kernel32_sys__0_2_2//:kernel32_sys", "@raze__net2__0_2_35//:net2", "@raze__winapi__0_2_8//:winapi", "@raze__ws2_32_sys__0_2_1//:ws2_32_sys", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/multimap-0.8.2.BUILD.bazel b/cargo/remote/BUILD.multimap-0.8.2.bazel similarity index 95% rename from cargo/remote/multimap-0.8.2.BUILD.bazel rename to cargo/remote/BUILD.multimap-0.8.2.bazel index 5751fcdb4..120b994bb 100644 --- a/cargo/remote/multimap-0.8.2.BUILD.bazel +++ b/cargo/remote/BUILD.multimap-0.8.2.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "multimap", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.8.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.8.2", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/BUILD.native-tls-0.2.6.bazel b/cargo/remote/BUILD.native-tls-0.2.6.bazel new file mode 100644 index 000000000..f1273e5dd --- /dev/null +++ b/cargo/remote/BUILD.native-tls-0.2.6.bazel @@ -0,0 +1,150 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "native_tls_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.6", + visibility = ["//visibility:private"], + deps = [ + ] + selects.with_or({ + # cfg(any(target_os = "macos", target_os = "ios")) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + ): [ + "@raze__security_framework_sys__2_0_0//:security_framework_sys", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios"))) + ( + "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__openssl_sys__0_9_58//:openssl_sys", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(target_os = "windows") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "google-connect" with type "example" omitted + +# Unsupported target "simple-server" with type "example" omitted + +rust_library( + name = "native_tls", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.6", + # buildifier: leave-alone + deps = [ + ":native_tls_build_script", + ] + selects.with_or({ + # cfg(any(target_os = "macos", target_os = "ios")) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + ): [ + "@raze__lazy_static__1_4_0//:lazy_static", + "@raze__libc__0_2_80//:libc", + "@raze__security_framework__2_0_0//:security_framework", + "@raze__security_framework_sys__2_0_0//:security_framework_sys", + "@raze__tempfile__3_1_0//:tempfile", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios"))) + ( + "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__log__0_4_11//:log", + "@raze__openssl__0_10_30//:openssl", + "@raze__openssl_probe__0_1_2//:openssl_probe", + "@raze__openssl_sys__0_9_58//:openssl_sys", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(target_os = "windows") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__schannel__0_1_19//:schannel", + ], + "//conditions:default": [], + }), +) diff --git a/cargo/remote/net2-0.2.35.BUILD.bazel b/cargo/remote/BUILD.net2-0.2.35.bazel similarity index 97% rename from cargo/remote/net2-0.2.35.BUILD.bazel rename to cargo/remote/BUILD.net2-0.2.35.bazel index 7390be163..1ae03cefc 100644 --- a/cargo/remote/net2-0.2.35.BUILD.bazel +++ b/cargo/remote/BUILD.net2-0.2.35.bazel @@ -28,12 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "net2", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "duration", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.35", + # buildifier: leave-alone deps = [ "@raze__cfg_if__0_1_10//:cfg_if", ] + selects.with_or({ @@ -59,21 +76,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.35", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - "duration", - ], - aliases = { - }, ) diff --git a/cargo/remote/nodrop-0.1.14.BUILD.bazel b/cargo/remote/BUILD.nodrop-0.1.14.bazel similarity index 95% rename from cargo/remote/nodrop-0.1.14.BUILD.bazel rename to cargo/remote/BUILD.nodrop-0.1.14.bazel index 2af4a6ca5..a3509a405 100644 --- a/cargo/remote/nodrop-0.1.14.BUILD.bazel +++ b/cargo/remote/BUILD.nodrop-0.1.14.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "nodrop", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.14", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.14", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/nom-5.1.2.BUILD.bazel b/cargo/remote/BUILD.nom-5.1.2.bazel similarity index 94% rename from cargo/remote/nom-5.1.2.BUILD.bazel rename to cargo/remote/BUILD.nom-5.1.2.bazel index 55bdd3ffb..71f72e0db 100644 --- a/cargo/remote/nom-5.1.2.BUILD.bazel +++ b/cargo/remote/BUILD.nom-5.1.2.bazel @@ -28,86 +28,17 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "nom_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ - "@raze__version_check__0_9_2//:version_check", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - crate_features = [ - "alloc", - "default", - "lexical", - "lexical-core", - "std", - ], build_script_env = { }, - data = glob(["**"]), - tags = [ - "cargo-raze", - "manual", - ], - version = "5.1.2", - visibility = ["//visibility:private"], -) - -# Unsupported target "arithmetic" with type "bench" omitted -# Unsupported target "arithmetic" with type "test" omitted -# Unsupported target "arithmetic_ast" with type "test" omitted -# Unsupported target "blockbuf-arithmetic" with type "test" omitted -# Unsupported target "css" with type "test" omitted -# Unsupported target "custom_errors" with type "test" omitted -# Unsupported target "escaped" with type "test" omitted -# Unsupported target "float" with type "test" omitted -# Unsupported target "http" with type "bench" omitted -# Unsupported target "inference" with type "test" omitted -# Unsupported target "ini" with type "bench" omitted -# Unsupported target "ini" with type "test" omitted -# Unsupported target "ini_complete" with type "bench" omitted -# Unsupported target "ini_str" with type "bench" omitted -# Unsupported target "ini_str" with type "test" omitted -# Unsupported target "issues" with type "test" omitted -# Unsupported target "json" with type "bench" omitted -# Unsupported target "json" with type "example" omitted -# Unsupported target "json" with type "test" omitted -# Unsupported target "mp4" with type "test" omitted -# Unsupported target "multiline" with type "test" omitted -# Unsupported target "named_args" with type "test" omitted - -# buildifier: leave-alone -rust_library( - name = "nom", - crate_type = "lib", - deps = [ - ":nom_build_script", - "@raze__lexical_core__0_7_4//:lexical_core", - "@raze__memchr__2_3_4//:memchr", - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "5.1.2", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "alloc", "default", @@ -115,9 +46,102 @@ rust_library( "lexical-core", "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "5.1.2", + visibility = ["//visibility:private"], + deps = [ + "@raze__version_check__0_9_2//:version_check", + ], ) -# Unsupported target "overflow" with type "test" omitted -# Unsupported target "reborrow_fold" with type "test" omitted + +# Unsupported target "arithmetic" with type "bench" omitted + +# Unsupported target "http" with type "bench" omitted + +# Unsupported target "ini" with type "bench" omitted + +# Unsupported target "ini_complete" with type "bench" omitted + +# Unsupported target "ini_str" with type "bench" omitted + +# Unsupported target "json" with type "bench" omitted + +# Unsupported target "json" with type "example" omitted + # Unsupported target "s_expression" with type "example" omitted + # Unsupported target "string" with type "example" omitted + +rust_library( + name = "nom", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + "lexical", + "lexical-core", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "5.1.2", + # buildifier: leave-alone + deps = [ + ":nom_build_script", + "@raze__lexical_core__0_7_4//:lexical_core", + "@raze__memchr__2_3_4//:memchr", + ], +) + +# Unsupported target "arithmetic" with type "test" omitted + +# Unsupported target "arithmetic_ast" with type "test" omitted + +# Unsupported target "blockbuf-arithmetic" with type "test" omitted + +# Unsupported target "css" with type "test" omitted + +# Unsupported target "custom_errors" with type "test" omitted + +# Unsupported target "escaped" with type "test" omitted + +# Unsupported target "float" with type "test" omitted + +# Unsupported target "inference" with type "test" omitted + +# Unsupported target "ini" with type "test" omitted + +# Unsupported target "ini_str" with type "test" omitted + +# Unsupported target "issues" with type "test" omitted + +# Unsupported target "json" with type "test" omitted + +# Unsupported target "mp4" with type "test" omitted + +# Unsupported target "multiline" with type "test" omitted + +# Unsupported target "named_args" with type "test" omitted + +# Unsupported target "overflow" with type "test" omitted + +# Unsupported target "reborrow_fold" with type "test" omitted + # Unsupported target "test1" with type "test" omitted diff --git a/cargo/remote/num-format-0.4.0.BUILD.bazel b/cargo/remote/BUILD.num-format-0.4.0.bazel similarity index 97% rename from cargo/remote/num-format-0.4.0.BUILD.bazel rename to cargo/remote/BUILD.num-format-0.4.0.bazel index 5d65e4cc4..79b538263 100644 --- a/cargo/remote/num-format-0.4.0.BUILD.bazel +++ b/cargo/remote/BUILD.num-format-0.4.0.bazel @@ -28,12 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "num_format", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone deps = [ "@raze__arrayvec__0_4_12//:arrayvec", "@raze__itoa__0_4_6//:itoa", @@ -58,30 +75,22 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.4.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - "std", - ], - aliases = { - }, ) + # Unsupported target "test_errors" with type "test" omitted + # Unsupported target "test_no_bytes_written" with type "test" omitted + # Unsupported target "test_non_zero" with type "test" omitted + # Unsupported target "test_num_bigint" with type "test" omitted + # Unsupported target "test_serialization" with type "test" omitted + # Unsupported target "test_signed" with type "test" omitted + # Unsupported target "test_system_locale_unix" with type "test" omitted + # Unsupported target "test_system_locale_windows" with type "test" omitted + # Unsupported target "test_unsigned" with type "test" omitted diff --git a/cargo/remote/num-integer-0.1.44.BUILD.bazel b/cargo/remote/BUILD.num-integer-0.1.44.bazel similarity index 93% rename from cargo/remote/num-integer-0.1.44.BUILD.bazel rename to cargo/remote/BUILD.num-integer-0.1.44.bazel index ad6f27fb6..01b9e0704 100644 --- a/cargo/remote/num-integer-0.1.44.BUILD.bazel +++ b/cargo/remote/BUILD.num-integer-0.1.44.bazel @@ -28,67 +28,69 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "num_integer_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ - "@raze__autocfg__1_0_1//:autocfg", + build_script_env = { + }, + crate_features = [ + "default", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.1.44", visibility = ["//visibility:private"], + deps = [ + "@raze__autocfg__1_0_1//:autocfg", + ], ) # Unsupported target "average" with type "bench" omitted -# Unsupported target "average" with type "test" omitted + # Unsupported target "gcd" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "roots" with type "bench" omitted + rust_library( name = "num_integer", - crate_type = "lib", - deps = [ - ":num_integer_build_script", - "@raze__num_traits__0_2_14//:num_traits", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.44", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.44", + # buildifier: leave-alone + deps = [ + ":num_integer_build_script", + "@raze__num_traits__0_2_14//:num_traits", + ], ) -# Unsupported target "roots" with type "bench" omitted + +# Unsupported target "average" with type "test" omitted + # Unsupported target "roots" with type "test" omitted diff --git a/cargo/remote/num-traits-0.2.14.BUILD.bazel b/cargo/remote/BUILD.num-traits-0.2.14.bazel similarity index 92% rename from cargo/remote/num-traits-0.2.14.BUILD.bazel rename to cargo/remote/BUILD.num-traits-0.2.14.bazel index 18f598800..355c46376 100644 --- a/cargo/remote/num-traits-0.2.14.BUILD.bazel +++ b/cargo/remote/BUILD.num-traits-0.2.14.bazel @@ -28,62 +28,60 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "num_traits_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ - "@raze__autocfg__1_0_1//:autocfg", + build_script_env = { + }, + crate_features = [ + "default", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.2.14", visibility = ["//visibility:private"], + deps = [ + "@raze__autocfg__1_0_1//:autocfg", + ], ) -# Unsupported target "cast" with type "test" omitted - -# buildifier: leave-alone rust_library( name = "num_traits", - crate_type = "lib", - deps = [ - ":num_traits_build_script", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.14", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.14", + # buildifier: leave-alone + deps = [ + ":num_traits_build_script", + ], ) + +# Unsupported target "cast" with type "test" omitted diff --git a/cargo/remote/num_cpus-1.13.0.BUILD.bazel b/cargo/remote/BUILD.num_cpus-1.13.0.bazel similarity index 95% rename from cargo/remote/num_cpus-1.13.0.BUILD.bazel rename to cargo/remote/BUILD.num_cpus-1.13.0.bazel index 993f7deb7..eb2ef06e3 100644 --- a/cargo/remote/num_cpus-1.13.0.BUILD.bazel +++ b/cargo/remote/BUILD.num_cpus-1.13.0.bazel @@ -28,27 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + +# Unsupported target "values" with type "example" omitted -# buildifier: leave-alone rust_library( name = "num_cpus", - crate_type = "lib", - deps = [ - "@raze__libc__0_2_80//:libc", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "1.13.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.13.0", + # buildifier: leave-alone + deps = [ + "@raze__libc__0_2_80//:libc", ], ) -# Unsupported target "values" with type "example" omitted diff --git a/cargo/remote/num_enum-0.5.1.BUILD.bazel b/cargo/remote/BUILD.num_enum-0.5.1.bazel similarity index 96% rename from cargo/remote/num_enum-0.5.1.BUILD.bazel rename to cargo/remote/BUILD.num_enum-0.5.1.bazel index 018507808..c17613160 100644 --- a/cargo/remote/num_enum-0.5.1.BUILD.bazel +++ b/cargo/remote/BUILD.num_enum-0.5.1.bazel @@ -28,18 +28,17 @@ licenses([ "notice", # BSD-3-Clause from expression "BSD-3-Clause" ]) -# Generated targets -# Unsupported target "from_primitive" with type "test" omitted -# Unsupported target "into_primitive" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "num_enum", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", proc_macro_deps = [ "@raze__derivative__2_1_1//:derivative", @@ -48,17 +47,24 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.5.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", - "std", + version = "0.5.1", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "from_primitive" with type "test" omitted + +# Unsupported target "into_primitive" with type "test" omitted + # Unsupported target "renamed_num_enum" with type "test" omitted + # Unsupported target "try_build" with type "test" omitted + # Unsupported target "try_from_primitive" with type "test" omitted + # Unsupported target "unsafe_from_primitive" with type "test" omitted diff --git a/cargo/remote/num_enum_derive-0.5.1.BUILD.bazel b/cargo/remote/BUILD.num_enum_derive-0.5.1.bazel similarity index 96% rename from cargo/remote/num_enum_derive-0.5.1.BUILD.bazel rename to cargo/remote/BUILD.num_enum_derive-0.5.1.bazel index 98f4c521a..3a1001316 100644 --- a/cargo/remote/num_enum_derive-0.5.1.BUILD.bazel +++ b/cargo/remote/BUILD.num_enum_derive-0.5.1.bazel @@ -28,31 +28,31 @@ licenses([ "notice", # BSD-3-Clause from expression "BSD-3-Clause" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "num_enum_derive", - crate_type = "proc-macro", - deps = [ - "@raze__proc_macro_crate__0_1_5//:proc_macro_crate", - "@raze__proc_macro2__1_0_24//:proc_macro2", - "@raze__quote__1_0_7//:quote", - "@raze__syn__1_0_48//:syn", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.5.1", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "proc-macro-crate", "std", ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.1", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__proc_macro_crate__0_1_5//:proc_macro_crate", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + ], ) diff --git a/cargo/remote/object-0.22.0.BUILD.bazel b/cargo/remote/BUILD.object-0.22.0.bazel similarity index 96% rename from cargo/remote/object-0.22.0.BUILD.bazel rename to cargo/remote/BUILD.object-0.22.0.bazel index f91822139..5f3605ccc 100644 --- a/cargo/remote/object-0.22.0.BUILD.bazel +++ b/cargo/remote/BUILD.object-0.22.0.bazel @@ -28,30 +28,21 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "ar" with type "example" omitted -# Unsupported target "integration" with type "test" omitted + # Unsupported target "nm" with type "example" omitted + # Unsupported target "objcopy" with type "example" omitted + # Unsupported target "objdump" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "objectmap" with type "example" omitted + rust_library( name = "object", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.22.0", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "archive", "coff", @@ -61,6 +52,22 @@ rust_library( "read_core", "unaligned", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.22.0", + # buildifier: leave-alone + deps = [ + ], ) -# Unsupported target "objectmap" with type "example" omitted + +# Unsupported target "integration" with type "test" omitted + # Unsupported target "parse_self" with type "test" omitted diff --git a/cargo/remote/once_cell-1.4.1.BUILD.bazel b/cargo/remote/BUILD.once_cell-1.5.2.bazel similarity index 90% rename from cargo/remote/once_cell-1.4.1.BUILD.bazel rename to cargo/remote/BUILD.once_cell-1.5.2.bazel index e8df211af..5cb2fdb5e 100644 --- a/cargo/remote/once_cell-1.4.1.BUILD.bazel +++ b/cargo/remote/BUILD.once_cell-1.5.2.bazel @@ -28,35 +28,44 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "bench" with type "example" omitted + # Unsupported target "bench_acquire" with type "example" omitted + # Unsupported target "bench_vs_lazy_static" with type "example" omitted + # Unsupported target "lazy_static" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "reentrant_init_deadlocks" with type "example" omitted + +# Unsupported target "regex" with type "example" omitted + +# Unsupported target "test_synchronization" with type "example" omitted + rust_library( name = "once_cell", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "1.4.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", - "std", + version = "1.5.2", + # buildifier: leave-alone + deps = [ ], ) -# Unsupported target "reentrant_init_deadlocks" with type "example" omitted -# Unsupported target "regex" with type "example" omitted -# Unsupported target "test" with type "test" omitted -# Unsupported target "test_synchronization" with type "example" omitted + +# Unsupported target "it" with type "test" omitted diff --git a/cargo/remote/BUILD.openssl-0.10.30.bazel b/cargo/remote/BUILD.openssl-0.10.30.bazel new file mode 100644 index 000000000..6782a057c --- /dev/null +++ b/cargo/remote/BUILD.openssl-0.10.30.bazel @@ -0,0 +1,89 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "openssl_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.30", + visibility = ["//visibility:private"], + deps = [ + "@raze__openssl_sys__0_9_58//:openssl_sys", + ], +) + +# Unsupported target "mk_certs" with type "example" omitted + +rust_library( + name = "openssl", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.30", + # buildifier: leave-alone + deps = [ + ":openssl_build_script", + "@raze__bitflags__1_2_1//:bitflags", + "@raze__cfg_if__0_1_10//:cfg_if", + "@raze__foreign_types__0_3_2//:foreign_types", + "@raze__lazy_static__1_4_0//:lazy_static", + "@raze__libc__0_2_80//:libc", + "@raze__openssl_sys__0_9_58//:openssl_sys", + ], +) diff --git a/cargo/remote/openssl-probe-0.1.2.BUILD.bazel b/cargo/remote/BUILD.openssl-probe-0.1.2.bazel similarity index 95% rename from cargo/remote/openssl-probe-0.1.2.BUILD.bazel rename to cargo/remote/BUILD.openssl-probe-0.1.2.bazel index 3dc0e8b05..ec72d4836 100644 --- a/cargo/remote/openssl-probe-0.1.2.BUILD.bazel +++ b/cargo/remote/BUILD.openssl-probe-0.1.2.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "openssl_probe", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.2", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/BUILD.openssl-sys-0.9.58.bazel b/cargo/remote/BUILD.openssl-sys-0.9.58.bazel new file mode 100644 index 000000000..b32e690c9 --- /dev/null +++ b/cargo/remote/BUILD.openssl-sys-0.9.58.bazel @@ -0,0 +1,103 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "openssl_sys_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build/main.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.58", + visibility = ["//visibility:private"], + deps = [ + "@raze__autocfg__1_0_1//:autocfg", + "@raze__cc__1_0_62//:cc", + "@raze__pkg_config__0_3_19//:pkg_config", + ] + selects.with_or({ + # cfg(target_env = "msvc") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__vcpkg__0_2_10//:vcpkg", + ], + "//conditions:default": [], + }), +) + +rust_library( + name = "openssl_sys", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.58", + # buildifier: leave-alone + deps = [ + ":openssl_sys_build_script", + "@raze__libc__0_2_80//:libc", + ] + selects.with_or({ + # cfg(target_env = "msvc") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), +) diff --git a/cargo/remote/parking_lot-0.11.0.BUILD.bazel b/cargo/remote/BUILD.parking_lot-0.11.0.bazel similarity index 95% rename from cargo/remote/parking_lot-0.11.0.BUILD.bazel rename to cargo/remote/BUILD.parking_lot-0.11.0.bazel index 0e682dcbb..16a636c07 100644 --- a/cargo/remote/parking_lot-0.11.0.BUILD.bazel +++ b/cargo/remote/BUILD.parking_lot-0.11.0.bazel @@ -28,30 +28,31 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets -# Unsupported target "issue_203" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "parking_lot", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.11.0", + # buildifier: leave-alone deps = [ "@raze__instant__0_1_8//:instant", "@raze__lock_api__0_4_1//:lock_api", "@raze__parking_lot_core__0_8_0//:parking_lot_core", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.11.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - ], ) + +# Unsupported target "issue_203" with type "test" omitted diff --git a/cargo/remote/parking_lot_core-0.8.0.BUILD.bazel b/cargo/remote/BUILD.parking_lot_core-0.8.0.bazel similarity index 97% rename from cargo/remote/parking_lot_core-0.8.0.BUILD.bazel rename to cargo/remote/BUILD.parking_lot_core-0.8.0.bazel index 5456bbfd9..36190936c 100644 --- a/cargo/remote/parking_lot_core-0.8.0.BUILD.bazel +++ b/cargo/remote/BUILD.parking_lot_core-0.8.0.bazel @@ -28,12 +28,27 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "parking_lot_core", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.0", + # buildifier: leave-alone deps = [ "@raze__cfg_if__0_1_10//:cfg_if", "@raze__instant__0_1_8//:instant", @@ -61,19 +76,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.8.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) diff --git a/cargo/remote/paste-0.1.18.BUILD.bazel b/cargo/remote/BUILD.paste-0.1.18.bazel similarity index 95% rename from cargo/remote/paste-0.1.18.BUILD.bazel rename to cargo/remote/BUILD.paste-0.1.18.bazel index f21491a45..0b5ae5afc 100644 --- a/cargo/remote/paste-0.1.18.BUILD.bazel +++ b/cargo/remote/BUILD.paste-0.1.18.bazel @@ -28,17 +28,15 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "compiletest" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "paste", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", proc_macro_deps = [ "@raze__paste_impl__0_1_18//:paste_impl", @@ -47,12 +45,16 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.18", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.18", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "compiletest" with type "test" omitted + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/paste-impl-0.1.18.BUILD.bazel b/cargo/remote/BUILD.paste-impl-0.1.18.bazel similarity index 95% rename from cargo/remote/paste-impl-0.1.18.BUILD.bazel rename to cargo/remote/BUILD.paste-impl-0.1.18.bazel index 68e1e7ee0..2ff671fb5 100644 --- a/cargo/remote/paste-impl-0.1.18.BUILD.bazel +++ b/cargo/remote/BUILD.paste-impl-0.1.18.bazel @@ -28,16 +28,15 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "paste_impl", - crate_type = "proc-macro", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "proc-macro", edition = "2018", proc_macro_deps = [ "@raze__proc_macro_hack__0_5_19//:proc_macro_hack", @@ -45,11 +44,12 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.18", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.18", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/percent-encoding-2.1.0.BUILD.bazel b/cargo/remote/BUILD.percent-encoding-2.1.0.bazel similarity index 95% rename from cargo/remote/percent-encoding-2.1.0.BUILD.bazel rename to cargo/remote/BUILD.percent-encoding-2.1.0.bazel index 74f9a461c..76ec50a91 100644 --- a/cargo/remote/percent-encoding-2.1.0.BUILD.bazel +++ b/cargo/remote/BUILD.percent-encoding-2.1.0.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "percent_encoding", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "2.1.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "2.1.0", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/petgraph-0.5.1.BUILD.bazel b/cargo/remote/BUILD.petgraph-0.5.1.bazel similarity index 96% rename from cargo/remote/petgraph-0.5.1.BUILD.bazel rename to cargo/remote/BUILD.petgraph-0.5.1.bazel index 10e5e2d43..15c52e14d 100644 --- a/cargo/remote/petgraph-0.5.1.BUILD.bazel +++ b/cargo/remote/BUILD.petgraph-0.5.1.bazel @@ -28,39 +28,51 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "dijkstra" with type "bench" omitted -# Unsupported target "graph" with type "test" omitted -# Unsupported target "graphmap" with type "test" omitted + # Unsupported target "iso" with type "bench" omitted -# Unsupported target "iso" with type "test" omitted + # Unsupported target "matrix_graph" with type "bench" omitted + # Unsupported target "ograph" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "stable_graph" with type "bench" omitted + +# Unsupported target "unionfind" with type "bench" omitted + rust_library( name = "petgraph", - crate_type = "lib", - deps = [ - "@raze__fixedbitset__0_2_0//:fixedbitset", - "@raze__indexmap__1_6_0//:indexmap", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.5.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.5.1", + # buildifier: leave-alone + deps = [ + "@raze__fixedbitset__0_2_0//:fixedbitset", + "@raze__indexmap__1_6_0//:indexmap", ], ) + +# Unsupported target "graph" with type "test" omitted + +# Unsupported target "graphmap" with type "test" omitted + +# Unsupported target "iso" with type "test" omitted + # Unsupported target "quickcheck" with type "test" omitted -# Unsupported target "stable_graph" with type "bench" omitted + # Unsupported target "stable_graph" with type "test" omitted -# Unsupported target "unionfind" with type "bench" omitted + # Unsupported target "unionfind" with type "test" omitted diff --git a/cargo/remote/pin-project-0.4.27.BUILD.bazel b/cargo/remote/BUILD.pin-project-0.4.27.bazel similarity index 97% rename from cargo/remote/pin-project-0.4.27.BUILD.bazel rename to cargo/remote/BUILD.pin-project-0.4.27.bazel index 9029a7c32..19e897e2f 100644 --- a/cargo/remote/pin-project-0.4.27.BUILD.bazel +++ b/cargo/remote/BUILD.pin-project-0.4.27.bazel @@ -28,24 +28,39 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets -# Unsupported target "cfg" with type "test" omitted -# Unsupported target "compiletest" with type "test" omitted -# Unsupported target "drop_order" with type "test" omitted +# Generated Targets + # Unsupported target "enum-default" with type "example" omitted + # Unsupported target "enum-default-expanded" with type "example" omitted -# Unsupported target "lint" with type "test" omitted + # Unsupported target "not_unpin" with type "example" omitted + # Unsupported target "not_unpin-expanded" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "pinned_drop" with type "example" omitted + +# Unsupported target "pinned_drop-expanded" with type "example" omitted + +# Unsupported target "project_replace" with type "example" omitted + +# Unsupported target "project_replace-expanded" with type "example" omitted + +# Unsupported target "struct-default" with type "example" omitted + +# Unsupported target "struct-default-expanded" with type "example" omitted + +# Unsupported target "unsafe_unpin" with type "example" omitted + +# Unsupported target "unsafe_unpin-expanded" with type "example" omitted + rust_library( name = "pin_project", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", proc_macro_deps = [ "@raze__pin_project_internal__0_4_27//:pin_project_internal", @@ -53,27 +68,36 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.27", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.27", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "cfg" with type "test" omitted + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "drop_order" with type "test" omitted + +# Unsupported target "lint" with type "test" omitted + # Unsupported target "pin_project" with type "test" omitted -# Unsupported target "pinned_drop" with type "example" omitted + # Unsupported target "pinned_drop" with type "test" omitted -# Unsupported target "pinned_drop-expanded" with type "example" omitted + # Unsupported target "project" with type "test" omitted + # Unsupported target "project_ref" with type "test" omitted -# Unsupported target "project_replace" with type "example" omitted + # Unsupported target "project_replace" with type "test" omitted -# Unsupported target "project_replace-expanded" with type "example" omitted + # Unsupported target "repr_packed" with type "test" omitted + # Unsupported target "sized" with type "test" omitted -# Unsupported target "struct-default" with type "example" omitted -# Unsupported target "struct-default-expanded" with type "example" omitted -# Unsupported target "unsafe_unpin" with type "example" omitted + # Unsupported target "unsafe_unpin" with type "test" omitted -# Unsupported target "unsafe_unpin-expanded" with type "example" omitted diff --git a/cargo/remote/pin-project-1.0.1.BUILD.bazel b/cargo/remote/BUILD.pin-project-1.0.1.bazel similarity index 97% rename from cargo/remote/pin-project-1.0.1.BUILD.bazel rename to cargo/remote/BUILD.pin-project-1.0.1.bazel index efdf596d7..5eff6cb8f 100644 --- a/cargo/remote/pin-project-1.0.1.BUILD.bazel +++ b/cargo/remote/BUILD.pin-project-1.0.1.bazel @@ -28,24 +28,39 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets -# Unsupported target "cfg" with type "test" omitted -# Unsupported target "compiletest" with type "test" omitted -# Unsupported target "drop_order" with type "test" omitted +# Generated Targets + # Unsupported target "enum-default" with type "example" omitted + # Unsupported target "enum-default-expanded" with type "example" omitted -# Unsupported target "lint" with type "test" omitted + # Unsupported target "not_unpin" with type "example" omitted + # Unsupported target "not_unpin-expanded" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "pinned_drop" with type "example" omitted + +# Unsupported target "pinned_drop-expanded" with type "example" omitted + +# Unsupported target "project_replace" with type "example" omitted + +# Unsupported target "project_replace-expanded" with type "example" omitted + +# Unsupported target "struct-default" with type "example" omitted + +# Unsupported target "struct-default-expanded" with type "example" omitted + +# Unsupported target "unsafe_unpin" with type "example" omitted + +# Unsupported target "unsafe_unpin-expanded" with type "example" omitted + rust_library( name = "pin_project", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", proc_macro_deps = [ "@raze__pin_project_internal__1_0_1//:pin_project_internal", @@ -53,24 +68,30 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "1.0.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.0.1", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "cfg" with type "test" omitted + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "drop_order" with type "test" omitted + +# Unsupported target "lint" with type "test" omitted + # Unsupported target "pin_project" with type "test" omitted -# Unsupported target "pinned_drop" with type "example" omitted + # Unsupported target "pinned_drop" with type "test" omitted -# Unsupported target "pinned_drop-expanded" with type "example" omitted -# Unsupported target "project_replace" with type "example" omitted -# Unsupported target "project_replace-expanded" with type "example" omitted + # Unsupported target "proper_unpin" with type "test" omitted + # Unsupported target "repr_packed" with type "test" omitted -# Unsupported target "struct-default" with type "example" omitted -# Unsupported target "struct-default-expanded" with type "example" omitted -# Unsupported target "unsafe_unpin" with type "example" omitted + # Unsupported target "unsafe_unpin" with type "test" omitted -# Unsupported target "unsafe_unpin-expanded" with type "example" omitted diff --git a/cargo/remote/pin-project-internal-0.4.27.BUILD.bazel b/cargo/remote/BUILD.pin-project-internal-0.4.27.bazel similarity index 94% rename from cargo/remote/pin-project-internal-0.4.27.BUILD.bazel rename to cargo/remote/BUILD.pin-project-internal-0.4.27.bazel index 29928ba0a..60046561e 100644 --- a/cargo/remote/pin-project-internal-0.4.27.BUILD.bazel +++ b/cargo/remote/BUILD.pin-project-internal-0.4.27.bazel @@ -28,59 +28,56 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "pin_project_internal_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.4.27", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "pin_project_internal", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.27", + # buildifier: leave-alone deps = [ ":pin_project_internal_build_script", "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.4.27", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/pin-project-internal-1.0.1.BUILD.bazel b/cargo/remote/BUILD.pin-project-internal-1.0.1.bazel similarity index 95% rename from cargo/remote/pin-project-internal-1.0.1.BUILD.bazel rename to cargo/remote/BUILD.pin-project-internal-1.0.1.bazel index 04fee03eb..97c885667 100644 --- a/cargo/remote/pin-project-internal-1.0.1.BUILD.bazel +++ b/cargo/remote/BUILD.pin-project-internal-1.0.1.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "pin_project_internal", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.1", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/pin-project-lite-0.1.11.BUILD.bazel b/cargo/remote/BUILD.pin-project-lite-0.1.11.bazel similarity index 95% rename from cargo/remote/pin-project-lite-0.1.11.BUILD.bazel rename to cargo/remote/BUILD.pin-project-lite-0.1.11.bazel index 5ed17c8ca..cf9bda559 100644 --- a/cargo/remote/pin-project-lite-0.1.11.BUILD.bazel +++ b/cargo/remote/BUILD.pin-project-lite-0.1.11.bazel @@ -28,29 +28,33 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets -# Unsupported target "compiletest" with type "test" omitted -# Unsupported target "lint" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "pin_project_lite", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.11", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.11", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "lint" with type "test" omitted + # Unsupported target "proper_unpin" with type "test" omitted + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/pin-utils-0.1.0.BUILD.bazel b/cargo/remote/BUILD.pin-utils-0.1.0.bazel similarity index 95% rename from cargo/remote/pin-utils-0.1.0.BUILD.bazel rename to cargo/remote/BUILD.pin-utils-0.1.0.bazel index ee3bff5bb..1726b8571 100644 --- a/cargo/remote/pin-utils-0.1.0.BUILD.bazel +++ b/cargo/remote/BUILD.pin-utils-0.1.0.bazel @@ -28,27 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "pin_utils", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.0", + # buildifier: leave-alone + deps = [ ], ) + # Unsupported target "projection" with type "test" omitted + # Unsupported target "stack_pin" with type "test" omitted diff --git a/cargo/remote/pkg-config-0.3.19.BUILD.bazel b/cargo/remote/BUILD.pkg-config-0.3.19.bazel similarity index 95% rename from cargo/remote/pkg-config-0.3.19.BUILD.bazel rename to cargo/remote/BUILD.pkg-config-0.3.19.bazel index fae65f38c..d1999d8c3 100644 --- a/cargo/remote/pkg-config-0.3.19.BUILD.bazel +++ b/cargo/remote/BUILD.pkg-config-0.3.19.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "pkg_config", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.19", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.19", + # buildifier: leave-alone + deps = [ ], ) + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/podio-0.1.7.BUILD.bazel b/cargo/remote/BUILD.podio-0.1.7.bazel similarity index 95% rename from cargo/remote/podio-0.1.7.BUILD.bazel rename to cargo/remote/BUILD.podio-0.1.7.bazel index 41d126b74..6e3e56e52 100644 --- a/cargo/remote/podio-0.1.7.BUILD.bazel +++ b/cargo/remote/BUILD.podio-0.1.7.bazel @@ -28,28 +28,31 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "benchmark" with type "bench" omitted -# Unsupported target "bytes" with type "test" omitted -# Unsupported target "io" with type "test" omitted +# Generated Targets + +# Unsupported target "benchmark" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "podio", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.7", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.7", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "bytes" with type "test" omitted + +# Unsupported target "io" with type "test" omitted diff --git a/cargo/remote/ppv-lite86-0.2.10.BUILD.bazel b/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel similarity index 95% rename from cargo/remote/ppv-lite86-0.2.10.BUILD.bazel rename to cargo/remote/BUILD.ppv-lite86-0.2.10.bazel index c45da017e..cd8292f02 100644 --- a/cargo/remote/ppv-lite86-0.2.10.BUILD.bazel +++ b/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "ppv_lite86", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.10", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "simd", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.10", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/proc-macro-crate-0.1.5.BUILD.bazel b/cargo/remote/BUILD.proc-macro-crate-0.1.5.bazel similarity index 95% rename from cargo/remote/proc-macro-crate-0.1.5.BUILD.bazel rename to cargo/remote/BUILD.proc-macro-crate-0.1.5.bazel index 1c91362b5..6a9dd1ffc 100644 --- a/cargo/remote/proc-macro-crate-0.1.5.BUILD.bazel +++ b/cargo/remote/BUILD.proc-macro-crate-0.1.5.bazel @@ -28,26 +28,26 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "proc_macro_crate", - crate_type = "lib", - deps = [ - "@raze__toml__0_5_7//:toml", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.5", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.5", + # buildifier: leave-alone + deps = [ + "@raze__toml__0_5_7//:toml", ], ) diff --git a/cargo/remote/proc-macro-hack-0.5.19.BUILD.bazel b/cargo/remote/BUILD.proc-macro-hack-0.5.19.bazel similarity index 93% rename from cargo/remote/proc-macro-hack-0.5.19.BUILD.bazel rename to cargo/remote/BUILD.proc-macro-hack-0.5.19.bazel index 573bf645c..de700e4a0 100644 --- a/cargo/remote/proc-macro-hack-0.5.19.BUILD.bazel +++ b/cargo/remote/BUILD.proc-macro-hack-0.5.19.bazel @@ -28,57 +28,55 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "proc_macro_hack_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.5.19", visibility = ["//visibility:private"], + deps = [ + ], ) -# Unsupported target "compiletest" with type "test" omitted - -# buildifier: leave-alone rust_library( name = "proc_macro_hack", - crate_type = "proc-macro", - deps = [ - ":proc_macro_hack_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "proc-macro", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.5.19", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.5.19", + # buildifier: leave-alone + deps = [ + ":proc_macro_hack_build_script", ], ) + +# Unsupported target "compiletest" with type "test" omitted diff --git a/cargo/remote/proc-macro-nested-0.1.6.BUILD.bazel b/cargo/remote/BUILD.proc-macro-nested-0.1.6.bazel similarity index 93% rename from cargo/remote/proc-macro-nested-0.1.6.BUILD.bazel rename to cargo/remote/BUILD.proc-macro-nested-0.1.6.bazel index 8e2780f09..a41efd8f1 100644 --- a/cargo/remote/proc-macro-nested-0.1.6.BUILD.bazel +++ b/cargo/remote/BUILD.proc-macro-nested-0.1.6.bazel @@ -28,56 +28,53 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "proc_macro_nested_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.1.6", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "proc_macro_nested", - crate_type = "lib", - deps = [ - ":proc_macro_nested_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.6", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.6", + # buildifier: leave-alone + deps = [ + ":proc_macro_nested_build_script", ], ) diff --git a/cargo/remote/proc-macro2-1.0.24.BUILD.bazel b/cargo/remote/BUILD.proc-macro2-1.0.24.bazel similarity index 93% rename from cargo/remote/proc-macro2-1.0.24.BUILD.bazel rename to cargo/remote/BUILD.proc-macro2-1.0.24.bazel index ec8330ce3..a47dee6ba 100644 --- a/cargo/remote/proc-macro2-1.0.24.BUILD.bazel +++ b/cargo/remote/BUILD.proc-macro2-1.0.24.bazel @@ -28,66 +28,68 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "proc_macro2_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", + "proc-macro", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "proc-macro", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.0.24", visibility = ["//visibility:private"], + deps = [ + ], ) -# Unsupported target "comments" with type "test" omitted -# Unsupported target "features" with type "test" omitted -# Unsupported target "marker" with type "test" omitted - -# buildifier: leave-alone rust_library( name = "proc_macro2", - crate_type = "lib", - deps = [ - ":proc_macro2_build_script", - "@raze__unicode_xid__0_2_1//:unicode_xid", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.24", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "proc-macro", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.24", + # buildifier: leave-alone + deps = [ + ":proc_macro2_build_script", + "@raze__unicode_xid__0_2_1//:unicode_xid", + ], ) + +# Unsupported target "comments" with type "test" omitted + +# Unsupported target "features" with type "test" omitted + +# Unsupported target "marker" with type "test" omitted + # Unsupported target "test" with type "test" omitted + # Unsupported target "test_fmt" with type "test" omitted diff --git a/cargo/remote/prost-0.6.1.BUILD.bazel b/cargo/remote/BUILD.prost-0.6.1.bazel similarity index 95% rename from cargo/remote/prost-0.6.1.BUILD.bazel rename to cargo/remote/BUILD.prost-0.6.1.bazel index 83c2632d6..daa77d2e1 100644 --- a/cargo/remote/prost-0.6.1.BUILD.bazel +++ b/cargo/remote/BUILD.prost-0.6.1.bazel @@ -28,17 +28,20 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0" ]) -# Generated targets +# Generated Targets + +# Unsupported target "varint" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "prost", - crate_type = "lib", - deps = [ - "@raze__bytes__0_5_6//:bytes", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "prost-derive", + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", proc_macro_deps = [ "@raze__prost_derive__0_6_1//:prost_derive", @@ -46,15 +49,13 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.6.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", - "prost-derive", - "std", + version = "0.6.1", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", ], ) -# Unsupported target "varint" with type "bench" omitted diff --git a/cargo/remote/prost-build-0.6.1.BUILD.bazel b/cargo/remote/BUILD.prost-build-0.6.1.bazel similarity index 94% rename from cargo/remote/prost-build-0.6.1.BUILD.bazel rename to cargo/remote/BUILD.prost-build-0.6.1.bazel index 038469fd5..4ffb88680 100644 --- a/cargo/remote/prost-build-0.6.1.BUILD.bazel +++ b/cargo/remote/BUILD.prost-build-0.6.1.bazel @@ -28,43 +28,53 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "prost_build_build_script", srcs = glob(["**/*.rs"]), - crate_root = "prost-build/build.rs", - edition = "2018", - deps = [ - "@raze__which__4_0_2//:which", + build_script_env = { + }, + crate_features = [ ], + crate_root = "prost-build/build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.6.1", visibility = ["//visibility:private"], + deps = [ + "@raze__which__4_0_2//:which", + ], ) - -# buildifier: leave-alone rust_library( name = "prost_build", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "prost-build/src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.6.1", + # buildifier: leave-alone deps = [ ":prost_build_build_script", "@raze__bytes__0_5_6//:bytes", @@ -77,17 +87,4 @@ rust_library( "@raze__prost_types__0_6_1//:prost_types", "@raze__tempfile__3_1_0//:tempfile", ], - srcs = glob(["**/*.rs"]), - crate_root = "prost-build/src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.6.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/prost-derive-0.6.1.BUILD.bazel b/cargo/remote/BUILD.prost-derive-0.6.1.bazel similarity index 96% rename from cargo/remote/prost-derive-0.6.1.BUILD.bazel rename to cargo/remote/BUILD.prost-derive-0.6.1.bazel index c61ce331e..85e10f3a8 100644 --- a/cargo/remote/prost-derive-0.6.1.BUILD.bazel +++ b/cargo/remote/BUILD.prost-derive-0.6.1.bazel @@ -28,12 +28,25 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "prost_derive", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "prost-derive/src/lib.rs", crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.6.1", + # buildifier: leave-alone deps = [ "@raze__anyhow__1_0_34//:anyhow", "@raze__itertools__0_9_0//:itertools", @@ -41,17 +54,4 @@ rust_library( "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "prost-derive/src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.6.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/prost-types-0.6.1.BUILD.bazel b/cargo/remote/BUILD.prost-types-0.6.1.bazel similarity index 95% rename from cargo/remote/prost-types-0.6.1.BUILD.bazel rename to cargo/remote/BUILD.prost-types-0.6.1.bazel index 149584769..cfa7ef2a1 100644 --- a/cargo/remote/prost-types-0.6.1.BUILD.bazel +++ b/cargo/remote/BUILD.prost-types-0.6.1.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "prost_types", - crate_type = "lib", - deps = [ - "@raze__bytes__0_5_6//:bytes", - "@raze__prost__0_6_1//:prost", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "prost-types/src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.6.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.6.1", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__prost__0_6_1//:prost", ], ) diff --git a/cargo/remote/pyo3-0.12.3.BUILD.bazel b/cargo/remote/BUILD.pyo3-0.12.3.bazel similarity index 93% rename from cargo/remote/pyo3-0.12.3.BUILD.bazel rename to cargo/remote/BUILD.pyo3-0.12.3.bazel index 1535f2eec..347baa43e 100644 --- a/cargo/remote/pyo3-0.12.3.BUILD.bazel +++ b/cargo/remote/BUILD.pyo3-0.12.3.bazel @@ -28,83 +28,17 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "pyo3_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ - ], - rustc_flags = [ - "--cap-lints=allow", - ], - crate_features = [ - "abi3", - "ctor", - "default", - "extension-module", - "indoc", - "inventory", - "macros", - "paste", - "pyo3cls", - "unindent", - ], build_script_env = { }, - data = glob(["**"]), - tags = [ - "cargo-raze", - "manual", - ], - version = "0.12.3", - visibility = ["//visibility:private"], -) - -# Unsupported target "bench_dict" with type "bench" omitted -# Unsupported target "bench_list" with type "bench" omitted -# Unsupported target "bench_pyobject" with type "bench" omitted -# Unsupported target "bench_set" with type "bench" omitted -# Unsupported target "bench_tuple" with type "bench" omitted -# Unsupported target "common" with type "test" omitted - -# buildifier: leave-alone -rust_library( - name = "pyo3", - crate_type = "lib", - deps = [ - ":pyo3_build_script", - "@raze__indoc__0_3_6//:indoc", - "@raze__inventory__0_1_9//:inventory", - "@raze__libc__0_2_80//:libc", - "@raze__parking_lot__0_11_0//:parking_lot", - "@raze__paste__0_1_18//:paste", - "@raze__unindent__0_1_7//:unindent", - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - proc_macro_deps = [ - "@raze__ctor__0_1_16//:ctor", - "@raze__pyo3cls__0_12_3//:pyo3cls", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - data = glob(["**"]), - version = "0.12.3", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "abi3", "ctor", @@ -117,31 +51,127 @@ rust_library( "pyo3cls", "unindent", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.12.3", + visibility = ["//visibility:private"], + deps = [ + ], ) + +# Unsupported target "bench_dict" with type "bench" omitted + +# Unsupported target "bench_list" with type "bench" omitted + +# Unsupported target "bench_pyobject" with type "bench" omitted + +# Unsupported target "bench_set" with type "bench" omitted + +# Unsupported target "bench_tuple" with type "bench" omitted + +rust_library( + name = "pyo3", + srcs = glob(["**/*.rs"]), + crate_features = [ + "abi3", + "ctor", + "default", + "extension-module", + "indoc", + "inventory", + "macros", + "paste", + "pyo3cls", + "unindent", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = glob(["**"]), + edition = "2018", + proc_macro_deps = [ + "@raze__ctor__0_1_16//:ctor", + "@raze__pyo3cls__0_12_3//:pyo3cls", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.12.3", + # buildifier: leave-alone + deps = [ + ":pyo3_build_script", + "@raze__indoc__0_3_6//:indoc", + "@raze__inventory__0_1_9//:inventory", + "@raze__libc__0_2_80//:libc", + "@raze__parking_lot__0_11_0//:parking_lot", + "@raze__paste__0_1_18//:paste", + "@raze__unindent__0_1_7//:unindent", + ], +) + +# Unsupported target "common" with type "test" omitted + # Unsupported target "test_arithmetics" with type "test" omitted + # Unsupported target "test_buffer_protocol" with type "test" omitted + # Unsupported target "test_bytes" with type "test" omitted + # Unsupported target "test_class_attributes" with type "test" omitted + # Unsupported target "test_class_basics" with type "test" omitted + # Unsupported target "test_class_conversion" with type "test" omitted + # Unsupported target "test_class_new" with type "test" omitted + # Unsupported target "test_compile_error" with type "test" omitted + # Unsupported target "test_datetime" with type "test" omitted + # Unsupported target "test_dict_iter" with type "test" omitted + # Unsupported target "test_dunder" with type "test" omitted + # Unsupported target "test_exceptions" with type "test" omitted + # Unsupported target "test_frompyobject" with type "test" omitted + # Unsupported target "test_gc" with type "test" omitted + # Unsupported target "test_getter_setter" with type "test" omitted + # Unsupported target "test_inheritance" with type "test" omitted + # Unsupported target "test_mapping" with type "test" omitted + # Unsupported target "test_methods" with type "test" omitted + # Unsupported target "test_module" with type "test" omitted + # Unsupported target "test_pyfunction" with type "test" omitted + # Unsupported target "test_pyself" with type "test" omitted + # Unsupported target "test_sequence" with type "test" omitted + # Unsupported target "test_string" with type "test" omitted + # Unsupported target "test_text_signature" with type "test" omitted + # Unsupported target "test_unsendable_dict" with type "test" omitted + # Unsupported target "test_variable_arguments" with type "test" omitted + # Unsupported target "test_various" with type "test" omitted diff --git a/cargo/remote/pyo3-derive-backend-0.12.3.BUILD.bazel b/cargo/remote/BUILD.pyo3-derive-backend-0.12.3.bazel similarity index 95% rename from cargo/remote/pyo3-derive-backend-0.12.3.BUILD.bazel rename to cargo/remote/BUILD.pyo3-derive-backend-0.12.3.bazel index d3fd9de26..7707b7b4f 100644 --- a/cargo/remote/pyo3-derive-backend-0.12.3.BUILD.bazel +++ b/cargo/remote/BUILD.pyo3-derive-backend-0.12.3.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "pyo3_derive_backend", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "pyo3-derive-backend/src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.12.3", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "pyo3-derive-backend/src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.12.3", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/pyo3cls-0.12.3.BUILD.bazel b/cargo/remote/BUILD.pyo3cls-0.12.3.bazel similarity index 95% rename from cargo/remote/pyo3cls-0.12.3.BUILD.bazel rename to cargo/remote/BUILD.pyo3cls-0.12.3.bazel index 2bc1c09b1..16945433b 100644 --- a/cargo/remote/pyo3cls-0.12.3.BUILD.bazel +++ b/cargo/remote/BUILD.pyo3cls-0.12.3.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "pyo3cls", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "pyo3cls/src/lib.rs", crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.12.3", + # buildifier: leave-alone deps = [ "@raze__pyo3_derive_backend__0_12_3//:pyo3_derive_backend", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "pyo3cls/src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.12.3", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/quote-1.0.7.BUILD.bazel b/cargo/remote/BUILD.quote-1.0.7.bazel similarity index 95% rename from cargo/remote/quote-1.0.7.BUILD.bazel rename to cargo/remote/BUILD.quote-1.0.7.bazel index 81bdef1c4..bdc69e43c 100644 --- a/cargo/remote/quote-1.0.7.BUILD.bazel +++ b/cargo/remote/BUILD.quote-1.0.7.bazel @@ -28,30 +28,32 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "compiletest" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "quote", - crate_type = "lib", - deps = [ - "@raze__proc_macro2__1_0_24//:proc_macro2", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.7", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "proc-macro", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.7", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + ], ) + +# Unsupported target "compiletest" with type "test" omitted + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/rand-0.7.3.BUILD.bazel b/cargo/remote/BUILD.rand-0.7.3.bazel similarity index 97% rename from cargo/remote/rand-0.7.3.BUILD.bazel rename to cargo/remote/BUILD.rand-0.7.3.bazel index 3b31fcdfc..33dc39dbc 100644 --- a/cargo/remote/rand-0.7.3.BUILD.bazel +++ b/cargo/remote/BUILD.rand-0.7.3.bazel @@ -28,16 +28,46 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "generators" with type "bench" omitted + # Unsupported target "misc" with type "bench" omitted + +# Unsupported target "seq" with type "bench" omitted + +# Unsupported target "weighted" with type "bench" omitted + # Unsupported target "monte-carlo" with type "example" omitted + # Unsupported target "monty-hall" with type "example" omitted -# buildifier: leave-alone rust_library( name = "rand", + srcs = glob(["**/*.rs"]), + aliases = { + "@raze__getrandom__0_1_15//:getrandom": "getrandom_package", + }, + crate_features = [ + "alloc", + "default", + "getrandom", + "getrandom_package", + "libc", + "std", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.3", + # buildifier: leave-alone deps = [ "@raze__getrandom__0_1_15//:getrandom", "@raze__rand_chacha__0_2_2//:rand_chacha", @@ -56,28 +86,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.7.3", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "alloc", - "default", - "getrandom", - "getrandom_package", - "libc", - "std", - ], - aliases = { - "@raze__getrandom__0_1_15//:getrandom": "getrandom_package", - }, ) -# Unsupported target "seq" with type "bench" omitted -# Unsupported target "weighted" with type "bench" omitted diff --git a/cargo/remote/rand_chacha-0.2.2.BUILD.bazel b/cargo/remote/BUILD.rand_chacha-0.2.2.bazel similarity index 95% rename from cargo/remote/rand_chacha-0.2.2.BUILD.bazel rename to cargo/remote/BUILD.rand_chacha-0.2.2.bazel index fe33c79b1..81a13797e 100644 --- a/cargo/remote/rand_chacha-0.2.2.BUILD.bazel +++ b/cargo/remote/BUILD.rand_chacha-0.2.2.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "rand_chacha", - crate_type = "lib", - deps = [ - "@raze__ppv_lite86__0_2_10//:ppv_lite86", - "@raze__rand_core__0_5_1//:rand_core", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "std", + version = "0.2.2", + # buildifier: leave-alone + deps = [ + "@raze__ppv_lite86__0_2_10//:ppv_lite86", + "@raze__rand_core__0_5_1//:rand_core", ], ) diff --git a/cargo/remote/rand_core-0.5.1.BUILD.bazel b/cargo/remote/BUILD.rand_core-0.5.1.bazel similarity index 95% rename from cargo/remote/rand_core-0.5.1.BUILD.bazel rename to cargo/remote/BUILD.rand_core-0.5.1.bazel index c22a46d8d..e7c8c49e2 100644 --- a/cargo/remote/rand_core-0.5.1.BUILD.bazel +++ b/cargo/remote/BUILD.rand_core-0.5.1.bazel @@ -28,29 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "rand_core", - crate_type = "lib", - deps = [ - "@raze__getrandom__0_1_15//:getrandom", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.5.1", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "alloc", "getrandom", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.1", + # buildifier: leave-alone + deps = [ + "@raze__getrandom__0_1_15//:getrandom", + ], ) diff --git a/cargo/remote/rand_hc-0.2.0.BUILD.bazel b/cargo/remote/BUILD.rand_hc-0.2.0.bazel similarity index 95% rename from cargo/remote/rand_hc-0.2.0.BUILD.bazel rename to cargo/remote/BUILD.rand_hc-0.2.0.bazel index d04ddfd9e..794236c62 100644 --- a/cargo/remote/rand_hc-0.2.0.BUILD.bazel +++ b/cargo/remote/BUILD.rand_hc-0.2.0.bazel @@ -28,26 +28,26 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "rand_hc", - crate_type = "lib", - deps = [ - "@raze__rand_core__0_5_1//:rand_core", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.0", + # buildifier: leave-alone + deps = [ + "@raze__rand_core__0_5_1//:rand_core", ], ) diff --git a/cargo/remote/redox_syscall-0.1.57.BUILD.bazel b/cargo/remote/BUILD.redox_syscall-0.1.57.bazel similarity index 95% rename from cargo/remote/redox_syscall-0.1.57.BUILD.bazel rename to cargo/remote/BUILD.redox_syscall-0.1.57.bazel index 81799b8b9..b1622cee7 100644 --- a/cargo/remote/redox_syscall-0.1.57.BUILD.bazel +++ b/cargo/remote/BUILD.redox_syscall-0.1.57.bazel @@ -28,7 +28,7 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets alias( name = "redox_syscall", @@ -39,23 +39,23 @@ alias( ], ) -# buildifier: leave-alone rust_library( name = "syscall", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.57", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.57", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/redox_users-0.3.5.BUILD.bazel b/cargo/remote/BUILD.redox_users-0.3.5.bazel similarity index 95% rename from cargo/remote/redox_users-0.3.5.BUILD.bazel rename to cargo/remote/BUILD.redox_users-0.3.5.bazel index 6505112eb..3f17e5353 100644 --- a/cargo/remote/redox_users-0.3.5.BUILD.bazel +++ b/cargo/remote/BUILD.redox_users-0.3.5.bazel @@ -28,31 +28,31 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "redox_users", - crate_type = "lib", - deps = [ - "@raze__getrandom__0_1_15//:getrandom", - "@raze__redox_syscall__0_1_57//:redox_syscall", - "@raze__rust_argon2__0_8_2//:rust_argon2", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.5", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "auth", "default", "rust-argon2", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.5", + # buildifier: leave-alone + deps = [ + "@raze__getrandom__0_1_15//:getrandom", + "@raze__redox_syscall__0_1_57//:redox_syscall", + "@raze__rust_argon2__0_8_2//:rust_argon2", + ], ) diff --git a/cargo/remote/regex-1.4.2.BUILD.bazel b/cargo/remote/BUILD.regex-1.4.2.bazel similarity index 95% rename from cargo/remote/regex-1.4.2.BUILD.bazel rename to cargo/remote/BUILD.regex-1.4.2.bazel index 9f235be5f..3ca17215d 100644 --- a/cargo/remote/regex-1.4.2.BUILD.bazel +++ b/cargo/remote/BUILD.regex-1.4.2.bazel @@ -28,38 +28,23 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "backtrack" with type "test" omitted -# Unsupported target "backtrack-bytes" with type "test" omitted -# Unsupported target "backtrack-utf8bytes" with type "test" omitted -# Unsupported target "crates-regex" with type "test" omitted -# Unsupported target "default" with type "test" omitted -# Unsupported target "default-bytes" with type "test" omitted -# Unsupported target "nfa" with type "test" omitted -# Unsupported target "nfa-bytes" with type "test" omitted -# Unsupported target "nfa-utf8bytes" with type "test" omitted +# Generated Targets + +# Unsupported target "shootout-regex-dna" with type "example" omitted + +# Unsupported target "shootout-regex-dna-bytes" with type "example" omitted + +# Unsupported target "shootout-regex-dna-cheat" with type "example" omitted + +# Unsupported target "shootout-regex-dna-replace" with type "example" omitted + +# Unsupported target "shootout-regex-dna-single" with type "example" omitted + +# Unsupported target "shootout-regex-dna-single-cheat" with type "example" omitted -# buildifier: leave-alone rust_library( name = "regex", - crate_type = "lib", - deps = [ - "@raze__aho_corasick__0_7_14//:aho_corasick", - "@raze__memchr__2_3_4//:memchr", - "@raze__regex_syntax__0_6_21//:regex_syntax", - "@raze__thread_local__1_0_1//:thread_local", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.4.2", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "aho-corasick", "default", @@ -80,10 +65,40 @@ rust_library( "unicode-script", "unicode-segment", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.2", + # buildifier: leave-alone + deps = [ + "@raze__aho_corasick__0_7_15//:aho_corasick", + "@raze__memchr__2_3_4//:memchr", + "@raze__regex_syntax__0_6_21//:regex_syntax", + "@raze__thread_local__1_0_1//:thread_local", + ], ) -# Unsupported target "shootout-regex-dna" with type "example" omitted -# Unsupported target "shootout-regex-dna-bytes" with type "example" omitted -# Unsupported target "shootout-regex-dna-cheat" with type "example" omitted -# Unsupported target "shootout-regex-dna-replace" with type "example" omitted -# Unsupported target "shootout-regex-dna-single" with type "example" omitted -# Unsupported target "shootout-regex-dna-single-cheat" with type "example" omitted + +# Unsupported target "backtrack" with type "test" omitted + +# Unsupported target "backtrack-bytes" with type "test" omitted + +# Unsupported target "backtrack-utf8bytes" with type "test" omitted + +# Unsupported target "crates-regex" with type "test" omitted + +# Unsupported target "default" with type "test" omitted + +# Unsupported target "default-bytes" with type "test" omitted + +# Unsupported target "nfa" with type "test" omitted + +# Unsupported target "nfa-bytes" with type "test" omitted + +# Unsupported target "nfa-utf8bytes" with type "test" omitted diff --git a/cargo/remote/regex-syntax-0.6.21.BUILD.bazel b/cargo/remote/BUILD.regex-syntax-0.6.21.bazel similarity index 96% rename from cargo/remote/regex-syntax-0.6.21.BUILD.bazel rename to cargo/remote/BUILD.regex-syntax-0.6.21.bazel index af73fd673..583a91f05 100644 --- a/cargo/remote/regex-syntax-0.6.21.BUILD.bazel +++ b/cargo/remote/BUILD.regex-syntax-0.6.21.bazel @@ -28,26 +28,13 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "regex_syntax", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.6.21", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "unicode", @@ -59,4 +46,18 @@ rust_library( "unicode-script", "unicode-segment", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.6.21", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/remove_dir_all-0.5.3.BUILD.bazel b/cargo/remote/BUILD.remove_dir_all-0.5.3.bazel similarity index 96% rename from cargo/remote/remove_dir_all-0.5.3.BUILD.bazel rename to cargo/remote/BUILD.remove_dir_all-0.5.3.bazel index e300d6ddb..fb69dad67 100644 --- a/cargo/remote/remove_dir_all-0.5.3.BUILD.bazel +++ b/cargo/remote/BUILD.remove_dir_all-0.5.3.bazel @@ -28,12 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "remove_dir_all", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.3", + # buildifier: leave-alone deps = [ ] + selects.with_or({ # cfg(windows) @@ -45,19 +60,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.5.3", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) diff --git a/cargo/remote/rental-0.5.5.BUILD.bazel b/cargo/remote/BUILD.rental-0.5.5.bazel similarity index 96% rename from cargo/remote/rental-0.5.5.BUILD.bazel rename to cargo/remote/BUILD.rental-0.5.5.bazel index 4d7f94313..ff8749f66 100644 --- a/cargo/remote/rental-0.5.5.BUILD.bazel +++ b/cargo/remote/BUILD.rental-0.5.5.bazel @@ -28,26 +28,17 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "clone" with type "test" omitted -# Unsupported target "complex" with type "test" omitted -# Unsupported target "complex_mut" with type "test" omitted -# Unsupported target "covariant" with type "test" omitted -# Unsupported target "debug" with type "test" omitted -# Unsupported target "drop_order" with type "test" omitted -# Unsupported target "generic" with type "test" omitted -# Unsupported target "lt_params" with type "test" omitted -# Unsupported target "map" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "rental", - crate_type = "lib", - deps = [ - "@raze__stable_deref_trait__1_2_0//:stable_deref_trait", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", proc_macro_deps = [ "@raze__rental_impl__0_5_5//:rental_impl", @@ -55,21 +46,47 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.5.5", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", - "std", + version = "0.5.5", + # buildifier: leave-alone + deps = [ + "@raze__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) + +# Unsupported target "clone" with type "test" omitted + +# Unsupported target "complex" with type "test" omitted + +# Unsupported target "complex_mut" with type "test" omitted + +# Unsupported target "covariant" with type "test" omitted + +# Unsupported target "debug" with type "test" omitted + +# Unsupported target "drop_order" with type "test" omitted + +# Unsupported target "generic" with type "test" omitted + +# Unsupported target "lt_params" with type "test" omitted + +# Unsupported target "map" with type "test" omitted + # Unsupported target "simple_mut" with type "test" omitted + # Unsupported target "simple_ref" with type "test" omitted + # Unsupported target "string" with type "test" omitted + # Unsupported target "subrental" with type "test" omitted + # Unsupported target "target_ty_hack" with type "test" omitted + # Unsupported target "trait" with type "test" omitted + # Unsupported target "unused" with type "test" omitted + # Unsupported target "vec_slice" with type "test" omitted diff --git a/cargo/remote/rental-impl-0.5.5.BUILD.bazel b/cargo/remote/BUILD.rental-impl-0.5.5.bazel similarity index 95% rename from cargo/remote/rental-impl-0.5.5.BUILD.bazel rename to cargo/remote/BUILD.rental-impl-0.5.5.bazel index 228f2554a..34d0ff75e 100644 --- a/cargo/remote/rental-impl-0.5.5.BUILD.bazel +++ b/cargo/remote/BUILD.rental-impl-0.5.5.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "rental_impl", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.5", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.5.5", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/reqwest-0.10.8.BUILD.bazel b/cargo/remote/BUILD.reqwest-0.10.8.bazel similarity index 85% rename from cargo/remote/reqwest-0.10.8.BUILD.bazel rename to cargo/remote/BUILD.reqwest-0.10.8.bazel index a64c908c7..ca736328f 100644 --- a/cargo/remote/reqwest-0.10.8.BUILD.bazel +++ b/cargo/remote/BUILD.reqwest-0.10.8.bazel @@ -28,25 +28,58 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "badssl" with type "test" omitted -# Unsupported target "blocking" with type "example" omitted -# Unsupported target "blocking" with type "test" omitted -# Unsupported target "brotli" with type "test" omitted -# Unsupported target "client" with type "test" omitted -# Unsupported target "cookie" with type "test" omitted -# Unsupported target "form" with type "example" omitted -# Unsupported target "gzip" with type "test" omitted -# Unsupported target "json_dynamic" with type "example" omitted -# Unsupported target "json_typed" with type "example" omitted -# Unsupported target "multipart" with type "test" omitted -# Unsupported target "proxy" with type "test" omitted -# Unsupported target "redirect" with type "test" omitted +# Generated Targets + +# Unsupported target "blocking" with type "example" omitted + +# Unsupported target "form" with type "example" omitted + +# Unsupported target "json_dynamic" with type "example" omitted + +# Unsupported target "json_typed" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "tor_socks" with type "example" omitted -# buildifier: leave-alone rust_library( name = "reqwest", + srcs = glob(["**/*.rs"]), + aliases = { + "@raze__native_tls__0_2_6//:native_tls": "native_tls_crate", + }, + crate_features = [ + "__rustls", + "__tls", + "default-tls", + "hyper-rustls", + "hyper-tls", + "json", + "native-tls", + "native-tls-crate", + "rustls", + "rustls-tls", + "rustls-tls-webpki-roots", + "serde_json", + "socks", + "stream", + "tokio-rustls", + "tokio-socks", + "tokio-tls", + "webpki-roots", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.8", + # buildifier: leave-alone deps = [ "@raze__bytes__0_5_6//:bytes", "@raze__http__0_2_1//:http", @@ -55,7 +88,7 @@ rust_library( "@raze__serde__1_0_117//:serde", "@raze__serde_json__1_0_59//:serde_json", "@raze__serde_urlencoded__0_6_1//:serde_urlencoded", - "@raze__url__2_1_1//:url", + "@raze__url__2_2_0//:url", ] + selects.with_or({ # cfg(not(target_arch = "wasm32")) ( @@ -70,22 +103,25 @@ rust_library( ): [ "@raze__base64__0_13_0//:base64", "@raze__encoding_rs__0_8_26//:encoding_rs", - "@raze__futures_core__0_3_7//:futures_core", - "@raze__futures_util__0_3_7//:futures_util", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_util__0_3_8//:futures_util", "@raze__http_body__0_3_1//:http_body", "@raze__hyper__0_13_9//:hyper", "@raze__hyper_rustls__0_21_0//:hyper_rustls", + "@raze__hyper_tls__0_4_3//:hyper_tls", "@raze__ipnet__2_3_0//:ipnet", "@raze__lazy_static__1_4_0//:lazy_static", "@raze__log__0_4_11//:log", "@raze__mime__0_3_16//:mime", + "@raze__native_tls__0_2_6//:native_tls", "@raze__percent_encoding__2_1_0//:percent_encoding", "@raze__pin_project_lite__0_1_11//:pin_project_lite", "@raze__rustls__0_18_1//:rustls", - "@raze__rustls_native_certs__0_4_0//:rustls_native_certs", - "@raze__tokio__0_2_22//:tokio", + "@raze__tokio__0_2_23//:tokio", "@raze__tokio_rustls__0_14_1//:tokio_rustls", "@raze__tokio_socks__0_3_0//:tokio_socks", + "@raze__tokio_tls__0_3_1//:tokio_tls", + "@raze__webpki_roots__0_20_0//:webpki_roots", ], "//conditions:default": [], }) + selects.with_or({ @@ -98,34 +134,24 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.10.8", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "__rustls", - "__tls", - "hyper-rustls", - "json", - "rustls", - "rustls-native-certs", - "rustls-tls-native-roots", - "serde_json", - "socks", - "stream", - "tokio-rustls", - "tokio-socks", - ], - aliases = { - }, ) -# Unsupported target "simple" with type "example" omitted + +# Unsupported target "badssl" with type "test" omitted + +# Unsupported target "blocking" with type "test" omitted + +# Unsupported target "brotli" with type "test" omitted + +# Unsupported target "client" with type "test" omitted + +# Unsupported target "cookie" with type "test" omitted + +# Unsupported target "gzip" with type "test" omitted + +# Unsupported target "multipart" with type "test" omitted + +# Unsupported target "proxy" with type "test" omitted + +# Unsupported target "redirect" with type "test" omitted + # Unsupported target "timeouts" with type "test" omitted -# Unsupported target "tor_socks" with type "example" omitted diff --git a/cargo/remote/ring-0.16.15.BUILD.bazel b/cargo/remote/BUILD.ring-0.16.15.bazel similarity index 96% rename from cargo/remote/ring-0.16.15.BUILD.bazel rename to cargo/remote/BUILD.ring-0.16.15.bazel index 98beb9f0d..4f3318bea 100644 --- a/cargo/remote/ring-0.16.15.BUILD.bazel +++ b/cargo/remote/BUILD.ring-0.16.15.bazel @@ -28,21 +28,37 @@ licenses([ "restricted", # no license ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "ring_build_script", srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "alloc", + "default", + "dev_urandom_fallback", + "once_cell", + ], crate_root = "build.rs", + data = glob(["**"]), edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.16.15", + visibility = ["//visibility:private"], deps = [ - "@raze__cc__1_0_61//:cc", + "@raze__cc__1_0_62//:cc", ] + selects.with_or({ # cfg(all(any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86", target_arch = "x86_64"), not(target_os = "ios"))) ( @@ -94,42 +110,32 @@ cargo_build_script( ], "//conditions:default": [], }), +) + +rust_library( + name = "ring", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "alloc", + "default", + "dev_urandom_fallback", + "once_cell", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = glob(["src/**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "alloc", - "default", - "dev_urandom_fallback", - "once_cell", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.16.15", - visibility = ["//visibility:private"], -) - -# Unsupported target "aead_tests" with type "test" omitted -# Unsupported target "agreement_tests" with type "test" omitted -# Unsupported target "constant_time_tests" with type "test" omitted -# Unsupported target "digest_tests" with type "test" omitted -# Unsupported target "ecdsa_tests" with type "test" omitted -# Unsupported target "ed25519_tests" with type "test" omitted -# Unsupported target "hkdf_tests" with type "test" omitted -# Unsupported target "hmac_tests" with type "test" omitted -# Unsupported target "pbkdf2_tests" with type "test" omitted -# Unsupported target "quic_tests" with type "test" omitted -# Unsupported target "rand_tests" with type "test" omitted - -# buildifier: leave-alone -rust_library( - name = "ring", - crate_type = "lib", + # buildifier: leave-alone deps = [ ":ring_build_script", "@raze__untrusted__0_7_1//:untrusted", @@ -152,7 +158,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@raze__once_cell__1_4_1//:once_cell", + "@raze__once_cell__1_5_2//:once_cell", ], "//conditions:default": [], }) + selects.with_or({ @@ -188,26 +194,30 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - data = glob(["src/**"]), - version = "0.16.15", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "alloc", - "default", - "dev_urandom_fallback", - "once_cell", - ], - aliases = { - }, ) + +# Unsupported target "aead_tests" with type "test" omitted + +# Unsupported target "agreement_tests" with type "test" omitted + +# Unsupported target "constant_time_tests" with type "test" omitted + +# Unsupported target "digest_tests" with type "test" omitted + +# Unsupported target "ecdsa_tests" with type "test" omitted + +# Unsupported target "ed25519_tests" with type "test" omitted + +# Unsupported target "hkdf_tests" with type "test" omitted + +# Unsupported target "hmac_tests" with type "test" omitted + +# Unsupported target "pbkdf2_tests" with type "test" omitted + +# Unsupported target "quic_tests" with type "test" omitted + +# Unsupported target "rand_tests" with type "test" omitted + # Unsupported target "rsa_tests" with type "test" omitted + # Unsupported target "signature_tests" with type "test" omitted diff --git a/cargo/remote/rusqlite-0.24.1.BUILD.bazel b/cargo/remote/BUILD.rusqlite-0.24.1.bazel similarity index 96% rename from cargo/remote/rusqlite-0.24.1.BUILD.bazel rename to cargo/remote/BUILD.rusqlite-0.24.1.bazel index c6c1dffdb..b2bf86793 100644 --- a/cargo/remote/rusqlite-0.24.1.BUILD.bazel +++ b/cargo/remote/BUILD.rusqlite-0.24.1.bazel @@ -28,16 +28,34 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "cache" with type "bench" omitted -# Unsupported target "config_log" with type "test" omitted -# Unsupported target "deny_single_threaded_sqlite_config" with type "test" omitted + # Unsupported target "exec" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "rusqlite", + srcs = glob(["**/*.rs"]), + crate_features = [ + "bundled", + "collation", + "functions", + "modern_sqlite", + "trace", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.24.1", + # buildifier: leave-alone deps = [ "@raze__bitflags__1_2_1//:bitflags", "@raze__fallible_iterator__0_2_0//:fallible_iterator", @@ -47,23 +65,10 @@ rust_library( "@raze__memchr__2_3_4//:memchr", "@raze__smallvec__1_4_2//:smallvec", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.24.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "bundled", - "collation", - "functions", - "modern_sqlite", - "trace", - ], ) + +# Unsupported target "config_log" with type "test" omitted + +# Unsupported target "deny_single_threaded_sqlite_config" with type "test" omitted + # Unsupported target "vtab" with type "test" omitted diff --git a/cargo/remote/rust-argon2-0.8.2.BUILD.bazel b/cargo/remote/BUILD.rust-argon2-0.8.2.bazel similarity index 96% rename from cargo/remote/rust-argon2-0.8.2.BUILD.bazel rename to cargo/remote/BUILD.rust-argon2-0.8.2.bazel index 3f17afdf0..9789f9058 100644 --- a/cargo/remote/rust-argon2-0.8.2.BUILD.bazel +++ b/cargo/remote/BUILD.rust-argon2-0.8.2.bazel @@ -28,7 +28,7 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets alias( name = "rust_argon2", @@ -39,30 +39,31 @@ alias( ], ) -# buildifier: leave-alone rust_library( name = "argon2", + srcs = glob(["**/*.rs"]), + crate_features = [ + "crossbeam-utils", + "default", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.2", + # buildifier: leave-alone deps = [ "@raze__base64__0_12_3//:base64", "@raze__blake2b_simd__0_5_11//:blake2b_simd", "@raze__constant_time_eq__0_1_5//:constant_time_eq", "@raze__crossbeam_utils__0_7_2//:crossbeam_utils", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.8.2", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "crossbeam-utils", - "default", - ], ) + # Unsupported target "integration_test" with type "test" omitted diff --git a/cargo/remote/rustc-demangle-0.1.18.BUILD.bazel b/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel similarity index 95% rename from cargo/remote/rustc-demangle-0.1.18.BUILD.bazel rename to cargo/remote/BUILD.rustc-demangle-0.1.18.bazel index 4b471d666..144c9a6df 100644 --- a/cargo/remote/rustc-demangle-0.1.18.BUILD.bazel +++ b/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "rustc_demangle", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.18", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.18", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/rustls-0.18.1.BUILD.bazel b/cargo/remote/BUILD.rustls-0.18.1.bazel similarity index 96% rename from cargo/remote/rustls-0.18.1.BUILD.bazel rename to cargo/remote/BUILD.rustls-0.18.1.bazel index 25c4a5a0b..d7ec115d1 100644 --- a/cargo/remote/rustls-0.18.1.BUILD.bazel +++ b/cargo/remote/BUILD.rustls-0.18.1.bazel @@ -28,18 +28,43 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR (ISC OR MIT)" ]) -# Generated targets -# Unsupported target "api" with type "test" omitted -# Unsupported target "bench" with type "example" omitted +# Generated Targets + # Unsupported target "benchmarks" with type "bench" omitted -# Unsupported target "benchmarks" with type "test" omitted + +# Unsupported target "bench" with type "example" omitted + # Unsupported target "bogo_shim" with type "example" omitted + # Unsupported target "limitedclient" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "simple_0rtt_client" with type "example" omitted + +# Unsupported target "simpleclient" with type "example" omitted + +# Unsupported target "trytls_shim" with type "example" omitted + rust_library( name = "rustls", + srcs = glob(["**/*.rs"]), + crate_features = [ + "dangerous_configuration", + "default", + "log", + "logging", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.18.1", + # buildifier: leave-alone deps = [ "@raze__base64__0_12_3//:base64", "@raze__log__0_4_11//:log", @@ -47,24 +72,8 @@ rust_library( "@raze__sct__0_6_0//:sct", "@raze__webpki__0_21_3//:webpki", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.18.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "dangerous_configuration", - "default", - "log", - "logging", - ], ) -# Unsupported target "simple_0rtt_client" with type "example" omitted -# Unsupported target "simpleclient" with type "example" omitted -# Unsupported target "trytls_shim" with type "example" omitted + +# Unsupported target "api" with type "test" omitted + +# Unsupported target "benchmarks" with type "test" omitted diff --git a/cargo/remote/ryu-1.0.5.BUILD.bazel b/cargo/remote/BUILD.ryu-1.0.5.bazel similarity index 95% rename from cargo/remote/ryu-1.0.5.BUILD.bazel rename to cargo/remote/BUILD.ryu-1.0.5.bazel index 02b5cae0e..bac074e8d 100644 --- a/cargo/remote/ryu-1.0.5.BUILD.bazel +++ b/cargo/remote/BUILD.ryu-1.0.5.bazel @@ -28,65 +28,71 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR BSL-1.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "ryu_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.0.5", visibility = ["//visibility:private"], + deps = [ + ], ) # Unsupported target "bench" with type "bench" omitted -# Unsupported target "common_test" with type "test" omitted -# Unsupported target "d2s_table_test" with type "test" omitted -# Unsupported target "d2s_test" with type "test" omitted -# Unsupported target "exhaustive" with type "test" omitted -# Unsupported target "f2s_test" with type "test" omitted -# buildifier: leave-alone +# Unsupported target "upstream_benchmark" with type "example" omitted + rust_library( name = "ryu", - crate_type = "lib", - deps = [ - ":ryu_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "1.0.5", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.0.5", + # buildifier: leave-alone + deps = [ + ":ryu_build_script", ], ) + +# Unsupported target "common_test" with type "test" omitted + +# Unsupported target "d2s_table_test" with type "test" omitted + +# Unsupported target "d2s_test" with type "test" omitted + +# Unsupported target "exhaustive" with type "test" omitted + +# Unsupported target "f2s_test" with type "test" omitted + # Unsupported target "s2d_test" with type "test" omitted + # Unsupported target "s2f_test" with type "test" omitted -# Unsupported target "upstream_benchmark" with type "example" omitted diff --git a/cargo/remote/schannel-0.1.19.BUILD.bazel b/cargo/remote/BUILD.schannel-0.1.19.bazel similarity index 95% rename from cargo/remote/schannel-0.1.19.BUILD.bazel rename to cargo/remote/BUILD.schannel-0.1.19.bazel index ceb0314ad..d2bde1715 100644 --- a/cargo/remote/schannel-0.1.19.BUILD.bazel +++ b/cargo/remote/BUILD.schannel-0.1.19.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "schannel", - crate_type = "lib", - deps = [ - "@raze__lazy_static__1_4_0//:lazy_static", - "@raze__winapi__0_3_9//:winapi", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.19", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.19", + # buildifier: leave-alone + deps = [ + "@raze__lazy_static__1_4_0//:lazy_static", + "@raze__winapi__0_3_9//:winapi", ], ) diff --git a/cargo/remote/scopeguard-1.1.0.BUILD.bazel b/cargo/remote/BUILD.scopeguard-1.1.0.bazel similarity index 95% rename from cargo/remote/scopeguard-1.1.0.BUILD.bazel rename to cargo/remote/BUILD.scopeguard-1.1.0.bazel index a2d8755c8..51671ca3f 100644 --- a/cargo/remote/scopeguard-1.1.0.BUILD.bazel +++ b/cargo/remote/BUILD.scopeguard-1.1.0.bazel @@ -28,28 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "readme" with type "example" omitted -# buildifier: leave-alone rust_library( name = "scopeguard", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.1.0", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "use_std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/sct-0.6.0.BUILD.bazel b/cargo/remote/BUILD.sct-0.6.0.bazel similarity index 95% rename from cargo/remote/sct-0.6.0.BUILD.bazel rename to cargo/remote/BUILD.sct-0.6.0.bazel index 5a83f3146..733d57334 100644 --- a/cargo/remote/sct-0.6.0.BUILD.bazel +++ b/cargo/remote/BUILD.sct-0.6.0.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR (ISC OR MIT)" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "sct", - crate_type = "lib", - deps = [ - "@raze__ring__0_16_15//:ring", - "@raze__untrusted__0_7_1//:untrusted", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.6.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.6.0", + # buildifier: leave-alone + deps = [ + "@raze__ring__0_16_15//:ring", + "@raze__untrusted__0_7_1//:untrusted", ], ) diff --git a/cargo/remote/security-framework-1.0.0.BUILD.bazel b/cargo/remote/BUILD.security-framework-2.0.0.bazel similarity index 83% rename from cargo/remote/security-framework-1.0.0.BUILD.bazel rename to cargo/remote/BUILD.security-framework-2.0.0.bazel index cc8a0dfd3..8207b0d7e 100644 --- a/cargo/remote/security-framework-1.0.0.BUILD.bazel +++ b/cargo/remote/BUILD.security-framework-2.0.0.bazel @@ -28,35 +28,38 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "client" with type "example" omitted + # Unsupported target "find_internet_password" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "set_internet_password" with type "example" omitted + rust_library( name = "security_framework", - crate_type = "lib", - deps = [ - "@raze__bitflags__1_2_1//:bitflags", - "@raze__core_foundation__0_7_0//:core_foundation", - "@raze__core_foundation_sys__0_7_0//:core_foundation_sys", - "@raze__libc__0_2_80//:libc", - "@raze__security_framework_sys__1_0_0//:security_framework_sys", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.0", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "OSX_10_9", "default", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.0.0", + # buildifier: leave-alone + deps = [ + "@raze__bitflags__1_2_1//:bitflags", + "@raze__core_foundation__0_9_1//:core_foundation", + "@raze__core_foundation_sys__0_8_2//:core_foundation_sys", + "@raze__libc__0_2_80//:libc", + "@raze__security_framework_sys__2_0_0//:security_framework_sys", + ], ) -# Unsupported target "set_internet_password" with type "example" omitted diff --git a/cargo/remote/security-framework-sys-1.0.0.BUILD.bazel b/cargo/remote/BUILD.security-framework-sys-2.0.0.bazel similarity index 86% rename from cargo/remote/security-framework-sys-1.0.0.BUILD.bazel rename to cargo/remote/BUILD.security-framework-sys-2.0.0.bazel index 619d066b0..dc90a3b6c 100644 --- a/cargo/remote/security-framework-sys-1.0.0.BUILD.bazel +++ b/cargo/remote/BUILD.security-framework-sys-2.0.0.bazel @@ -28,28 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "security_framework_sys", - crate_type = "lib", - deps = [ - "@raze__core_foundation_sys__0_7_0//:core_foundation_sys", - "@raze__libc__0_2_80//:libc", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "OSX_10_9", + "default", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "1.0.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "OSX_10_9", + version = "2.0.0", + # buildifier: leave-alone + deps = [ + "@raze__core_foundation_sys__0_8_2//:core_foundation_sys", + "@raze__libc__0_2_80//:libc", ], ) diff --git a/cargo/remote/serde-1.0.117.BUILD.bazel b/cargo/remote/BUILD.serde-1.0.117.bazel similarity index 90% rename from cargo/remote/serde-1.0.117.BUILD.bazel rename to cargo/remote/BUILD.serde-1.0.117.bazel index 40077c4c8..c65a285f3 100644 --- a/cargo/remote/serde-1.0.117.BUILD.bazel +++ b/cargo/remote/BUILD.serde-1.0.117.bazel @@ -28,51 +28,50 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "serde_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", + "derive", + "serde_derive", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "derive", - "serde_derive", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.0.117", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "serde", - crate_type = "lib", - deps = [ - ":serde_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "derive", + "serde_derive", + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", proc_macro_deps = [ "@raze__serde_derive__1_0_117//:serde_derive", @@ -80,15 +79,13 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "1.0.117", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", - "derive", - "serde_derive", - "std", + version = "1.0.117", + # buildifier: leave-alone + deps = [ + ":serde_build_script", ], ) diff --git a/cargo/remote/serde-aux-0.6.1.BUILD.bazel b/cargo/remote/BUILD.serde-aux-0.6.1.bazel similarity index 96% rename from cargo/remote/serde-aux-0.6.1.BUILD.bazel rename to cargo/remote/BUILD.serde-aux-0.6.1.bazel index 76a8deceb..f9c6ef353 100644 --- a/cargo/remote/serde-aux-0.6.1.BUILD.bazel +++ b/cargo/remote/BUILD.serde-aux-0.6.1.bazel @@ -28,19 +28,17 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "serde_aux", - crate_type = "lib", - deps = [ - "@raze__chrono__0_4_19//:chrono", - "@raze__serde__1_0_117//:serde", - "@raze__serde_json__1_0_59//:serde_json", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "chrono", + "default", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", proc_macro_deps = [ "@raze__serde_derive__1_0_117//:serde_derive", @@ -48,13 +46,15 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.6.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "chrono", - "default", + version = "0.6.1", + # buildifier: leave-alone + deps = [ + "@raze__chrono__0_4_19//:chrono", + "@raze__serde__1_0_117//:serde", + "@raze__serde_json__1_0_59//:serde_json", ], ) diff --git a/cargo/remote/serde_derive-1.0.117.BUILD.bazel b/cargo/remote/BUILD.serde_derive-1.0.117.bazel similarity index 93% rename from cargo/remote/serde_derive-1.0.117.BUILD.bazel rename to cargo/remote/BUILD.serde_derive-1.0.117.bazel index b9e9c2317..dad3b9387 100644 --- a/cargo/remote/serde_derive-1.0.117.BUILD.bazel +++ b/cargo/remote/BUILD.serde_derive-1.0.117.bazel @@ -28,61 +28,58 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "serde_derive_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.0.117", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "serde_derive", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.117", + # buildifier: leave-alone deps = [ ":serde_derive_build_script", "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.117", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - ], ) diff --git a/cargo/remote/serde_json-1.0.59.BUILD.bazel b/cargo/remote/BUILD.serde_json-1.0.59.bazel similarity index 92% rename from cargo/remote/serde_json-1.0.59.BUILD.bazel rename to cargo/remote/BUILD.serde_json-1.0.59.bazel index 5f656d48e..7f2cc8375 100644 --- a/cargo/remote/serde_json-1.0.59.BUILD.bazel +++ b/cargo/remote/BUILD.serde_json-1.0.59.bazel @@ -28,63 +28,60 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "serde_json_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ + build_script_env = { + }, + crate_features = [ + "default", + "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - "default", - "std", - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.0.59", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "serde_json", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.59", + # buildifier: leave-alone deps = [ ":serde_json_build_script", "@raze__itoa__0_4_6//:itoa", "@raze__ryu__1_0_5//:ryu", "@raze__serde__1_0_117//:serde", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.59", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - "std", - ], ) diff --git a/cargo/remote/serde_repr-0.1.6.BUILD.bazel b/cargo/remote/BUILD.serde_repr-0.1.6.bazel similarity index 95% rename from cargo/remote/serde_repr-0.1.6.BUILD.bazel rename to cargo/remote/BUILD.serde_repr-0.1.6.bazel index 55d2c6a9f..d2d2c73cf 100644 --- a/cargo/remote/serde_repr-0.1.6.BUILD.bazel +++ b/cargo/remote/BUILD.serde_repr-0.1.6.bazel @@ -28,30 +28,32 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "compiletest" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "serde_repr", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.6", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.6", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) + +# Unsupported target "compiletest" with type "test" omitted + # Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/serde_tuple-0.5.0.BUILD.bazel b/cargo/remote/BUILD.serde_tuple-0.5.0.bazel similarity index 95% rename from cargo/remote/serde_tuple-0.5.0.BUILD.bazel rename to cargo/remote/BUILD.serde_tuple-0.5.0.bazel index da10b5e77..4bb006e37 100644 --- a/cargo/remote/serde_tuple-0.5.0.BUILD.bazel +++ b/cargo/remote/BUILD.serde_tuple-0.5.0.bazel @@ -28,17 +28,17 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets + +# Unsupported target "simple" with type "example" omitted -# buildifier: leave-alone rust_library( name = "serde_tuple", - crate_type = "lib", - deps = [ - "@raze__serde__1_0_117//:serde", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", proc_macro_deps = [ "@raze__serde_tuple_macros__0_5_0//:serde_tuple_macros", @@ -46,12 +46,13 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.5.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.5.0", + # buildifier: leave-alone + deps = [ + "@raze__serde__1_0_117//:serde", ], ) -# Unsupported target "simple" with type "example" omitted diff --git a/cargo/remote/serde_tuple_macros-0.5.0.BUILD.bazel b/cargo/remote/BUILD.serde_tuple_macros-0.5.0.bazel similarity index 95% rename from cargo/remote/serde_tuple_macros-0.5.0.BUILD.bazel rename to cargo/remote/BUILD.serde_tuple_macros-0.5.0.bazel index 01b6ea9f3..fe22115d9 100644 --- a/cargo/remote/serde_tuple_macros-0.5.0.BUILD.bazel +++ b/cargo/remote/BUILD.serde_tuple_macros-0.5.0.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "serde_tuple_macros", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.0", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.5.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/serde_urlencoded-0.6.1.BUILD.bazel b/cargo/remote/BUILD.serde_urlencoded-0.6.1.bazel similarity index 93% rename from cargo/remote/serde_urlencoded-0.6.1.BUILD.bazel rename to cargo/remote/BUILD.serde_urlencoded-0.6.1.bazel index bd6993be6..fcfab6397 100644 --- a/cargo/remote/serde_urlencoded-0.6.1.BUILD.bazel +++ b/cargo/remote/BUILD.serde_urlencoded-0.6.1.bazel @@ -28,31 +28,33 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "serde_urlencoded", - crate_type = "lib", - deps = [ - "@raze__dtoa__0_4_6//:dtoa", - "@raze__itoa__0_4_6//:itoa", - "@raze__serde__1_0_117//:serde", - "@raze__url__2_1_1//:url", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.6.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.6.1", + # buildifier: leave-alone + deps = [ + "@raze__dtoa__0_4_6//:dtoa", + "@raze__itoa__0_4_6//:itoa", + "@raze__serde__1_0_117//:serde", + "@raze__url__2_2_0//:url", ], ) + # Unsupported target "test_deserialize" with type "test" omitted + # Unsupported target "test_serialize" with type "test" omitted diff --git a/cargo/remote/sha1-0.6.0.BUILD.bazel b/cargo/remote/BUILD.sha1-0.6.0.bazel similarity index 95% rename from cargo/remote/sha1-0.6.0.BUILD.bazel rename to cargo/remote/BUILD.sha1-0.6.0.bazel index 5f514461b..7371b17e5 100644 --- a/cargo/remote/sha1-0.6.0.BUILD.bazel +++ b/cargo/remote/BUILD.sha1-0.6.0.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # BSD-3-Clause from expression "BSD-3-Clause" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "sha1", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.6.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.6.0", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/slab-0.4.2.BUILD.bazel b/cargo/remote/BUILD.slab-0.4.2.bazel similarity index 95% rename from cargo/remote/slab-0.4.2.BUILD.bazel rename to cargo/remote/BUILD.slab-0.4.2.bazel index 949a6d6bc..58bf7f91c 100644 --- a/cargo/remote/slab-0.4.2.BUILD.bazel +++ b/cargo/remote/BUILD.slab-0.4.2.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "slab", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.2", + # buildifier: leave-alone + deps = [ ], ) + # Unsupported target "slab" with type "test" omitted diff --git a/cargo/remote/slog-2.5.2.BUILD.bazel b/cargo/remote/BUILD.slog-2.5.2.bazel similarity index 90% rename from cargo/remote/slog-2.5.2.BUILD.bazel rename to cargo/remote/BUILD.slog-2.5.2.bazel index 7c6486009..90ef31b2b 100644 --- a/cargo/remote/slog-2.5.2.BUILD.bazel +++ b/cargo/remote/BUILD.slog-2.5.2.bazel @@ -28,67 +28,67 @@ licenses([ "notice", # MIT from expression "MPL-2.0 OR (MIT OR Apache-2.0)" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "slog_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ - ], - rustc_flags = [ - "--cap-lints=allow", - ], - crate_features = [ - "default", - "max_level_trace", - "release_max_level_debug", - "std", - ], build_script_env = { }, - data = glob(["**"]), - tags = [ - "cargo-raze", - "manual", - ], - version = "2.5.2", - visibility = ["//visibility:private"], -) - -# Unsupported target "named" with type "example" omitted -# Unsupported target "singlethread" with type "example" omitted - -# buildifier: leave-alone -rust_library( - name = "slog", - crate_type = "lib", - deps = [ - ":slog_build_script", - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "2.5.2", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "max_level_trace", "release_max_level_debug", "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.5.2", + visibility = ["//visibility:private"], + deps = [ + ], ) + +# Unsupported target "named" with type "example" omitted + +# Unsupported target "singlethread" with type "example" omitted + # Unsupported target "struct-log-self" with type "example" omitted + +rust_library( + name = "slog", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "max_level_trace", + "release_max_level_debug", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.5.2", + # buildifier: leave-alone + deps = [ + ":slog_build_script", + ], +) diff --git a/cargo/remote/slog-async-2.5.0.BUILD.bazel b/cargo/remote/BUILD.slog-async-2.5.0.bazel similarity index 95% rename from cargo/remote/slog-async-2.5.0.BUILD.bazel rename to cargo/remote/BUILD.slog-async-2.5.0.bazel index c5ed09405..1f86a7340 100644 --- a/cargo/remote/slog-async-2.5.0.BUILD.bazel +++ b/cargo/remote/BUILD.slog-async-2.5.0.bazel @@ -28,30 +28,30 @@ licenses([ "notice", # MIT from expression "MPL-2.0 OR (MIT OR Apache-2.0)" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "slog_async", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.5.0", + # buildifier: leave-alone deps = [ "@raze__crossbeam_channel__0_4_4//:crossbeam_channel", "@raze__slog__2_5_2//:slog", "@raze__take_mut__0_2_2//:take_mut", "@raze__thread_local__1_0_1//:thread_local", ], - srcs = glob(["**/*.rs"]), - crate_root = "lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "2.5.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - ], ) diff --git a/cargo/remote/slog-envlogger-2.2.0.BUILD.bazel b/cargo/remote/BUILD.slog-envlogger-2.2.0.bazel similarity index 96% rename from cargo/remote/slog-envlogger-2.2.0.BUILD.bazel rename to cargo/remote/BUILD.slog-envlogger-2.2.0.bazel index 276f969b9..94edc044b 100644 --- a/cargo/remote/slog-envlogger-2.2.0.BUILD.bazel +++ b/cargo/remote/BUILD.slog-envlogger-2.2.0.bazel @@ -28,16 +28,33 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "proper" with type "example" omitted -# Unsupported target "regexp_filter" with type "test" omitted + # Unsupported target "scopes" with type "example" omitted + # Unsupported target "simple" with type "example" omitted -# buildifier: leave-alone rust_library( name = "slog_envlogger", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "regex", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.2.0", + # buildifier: leave-alone deps = [ "@raze__log__0_4_11//:log", "@raze__regex__1_4_2//:regex", @@ -47,19 +64,6 @@ rust_library( "@raze__slog_stdlog__4_1_0//:slog_stdlog", "@raze__slog_term__2_6_0//:slog_term", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "2.2.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - "regex", - ], ) + +# Unsupported target "regexp_filter" with type "test" omitted diff --git a/cargo/remote/slog-scope-4.3.0.BUILD.bazel b/cargo/remote/BUILD.slog-scope-4.3.0.bazel similarity index 95% rename from cargo/remote/slog-scope-4.3.0.BUILD.bazel rename to cargo/remote/BUILD.slog-scope-4.3.0.bazel index f489a53b4..8dd07a14f 100644 --- a/cargo/remote/slog-scope-4.3.0.BUILD.bazel +++ b/cargo/remote/BUILD.slog-scope-4.3.0.bazel @@ -28,29 +28,30 @@ licenses([ "notice", # MIT from expression "MPL-2.0 OR (MIT OR Apache-2.0)" ]) -# Generated targets +# Generated Targets + # Unsupported target "compact-color" with type "example" omitted -# buildifier: leave-alone rust_library( name = "slog_scope", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "4.3.0", + # buildifier: leave-alone deps = [ "@raze__arc_swap__0_4_7//:arc_swap", "@raze__lazy_static__1_4_0//:lazy_static", "@raze__slog__2_5_2//:slog", ], - srcs = glob(["**/*.rs"]), - crate_root = "lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "4.3.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/slog-stdlog-4.1.0.BUILD.bazel b/cargo/remote/BUILD.slog-stdlog-4.1.0.bazel similarity index 95% rename from cargo/remote/slog-stdlog-4.1.0.BUILD.bazel rename to cargo/remote/BUILD.slog-stdlog-4.1.0.bazel index 9da6a53ef..4f7806b25 100644 --- a/cargo/remote/slog-stdlog-4.1.0.BUILD.bazel +++ b/cargo/remote/BUILD.slog-stdlog-4.1.0.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # MIT from expression "MPL-2.0 OR (MIT OR Apache-2.0)" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "slog_stdlog", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "4.1.0", + # buildifier: leave-alone deps = [ "@raze__log__0_4_11//:log", "@raze__slog__2_5_2//:slog", "@raze__slog_scope__4_3_0//:slog_scope", ], - srcs = glob(["**/*.rs"]), - crate_root = "lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "4.1.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/slog-term-2.6.0.BUILD.bazel b/cargo/remote/BUILD.slog-term-2.6.0.bazel similarity index 96% rename from cargo/remote/slog-term-2.6.0.BUILD.bazel rename to cargo/remote/BUILD.slog-term-2.6.0.bazel index de6cc14cd..d0cf55e1a 100644 --- a/cargo/remote/slog-term-2.6.0.BUILD.bazel +++ b/cargo/remote/BUILD.slog-term-2.6.0.bazel @@ -28,17 +28,37 @@ licenses([ "notice", # MIT from expression "MPL-2.0 OR (MIT OR Apache-2.0)" ]) -# Generated targets +# Generated Targets + # Unsupported target "compact" with type "example" omitted + # Unsupported target "compact-color" with type "example" omitted + # Unsupported target "full" with type "example" omitted + # Unsupported target "full-color" with type "example" omitted + # Unsupported target "full-color-oorder" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "to-file" with type "example" omitted + rust_library( name = "slog_term", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.6.0", + # buildifier: leave-alone deps = [ "@raze__atty__0_2_14//:atty", "@raze__chrono__0_4_19//:chrono", @@ -46,19 +66,6 @@ rust_library( "@raze__term__0_6_1//:term", "@raze__thread_local__1_0_1//:thread_local", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "2.6.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) + # Unsupported target "term" with type "test" omitted -# Unsupported target "to-file" with type "example" omitted diff --git a/cargo/remote/smallvec-1.4.2.BUILD.bazel b/cargo/remote/BUILD.smallvec-1.4.2.bazel similarity index 95% rename from cargo/remote/smallvec-1.4.2.BUILD.bazel rename to cargo/remote/BUILD.smallvec-1.4.2.bazel index 68f89abe0..2f2a558de 100644 --- a/cargo/remote/smallvec-1.4.2.BUILD.bazel +++ b/cargo/remote/BUILD.smallvec-1.4.2.bazel @@ -28,27 +28,29 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "bench" with type "bench" omitted -# Unsupported target "macro" with type "test" omitted +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "smallvec", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "1.4.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.4.2", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "macro" with type "test" omitted diff --git a/cargo/remote/socket2-0.3.15.BUILD.bazel b/cargo/remote/BUILD.socket2-0.3.16.bazel similarity index 96% rename from cargo/remote/socket2-0.3.15.BUILD.bazel rename to cargo/remote/BUILD.socket2-0.3.16.bazel index 357460bc9..0b568104a 100644 --- a/cargo/remote/socket2-0.3.15.BUILD.bazel +++ b/cargo/remote/BUILD.socket2-0.3.16.bazel @@ -28,12 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "socket2", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.16", + # buildifier: leave-alone deps = [ ] + selects.with_or({ # cfg(any(unix, target_os = "redox")) @@ -59,19 +74,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.15", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) diff --git a/cargo/remote/spin-0.5.2.BUILD.bazel b/cargo/remote/BUILD.spin-0.5.2.bazel similarity index 95% rename from cargo/remote/spin-0.5.2.BUILD.bazel rename to cargo/remote/BUILD.spin-0.5.2.bazel index 0423e4523..36344bbb4 100644 --- a/cargo/remote/spin-0.5.2.BUILD.bazel +++ b/cargo/remote/BUILD.spin-0.5.2.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "debug" with type "example" omitted -# buildifier: leave-alone rust_library( name = "spin", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.5.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.5.2", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/stable_deref_trait-1.2.0.BUILD.bazel b/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel similarity index 95% rename from cargo/remote/stable_deref_trait-1.2.0.BUILD.bazel rename to cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel index 09a9a662e..61e163a5b 100644 --- a/cargo/remote/stable_deref_trait-1.2.0.BUILD.bazel +++ b/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "stable_deref_trait", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.2.0", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "alloc", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.0", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/static_assertions-1.1.0.BUILD.bazel b/cargo/remote/BUILD.static_assertions-1.1.0.bazel similarity index 95% rename from cargo/remote/static_assertions-1.1.0.BUILD.bazel rename to cargo/remote/BUILD.static_assertions-1.1.0.bazel index 8ab446e3b..b323053b6 100644 --- a/cargo/remote/static_assertions-1.1.0.BUILD.bazel +++ b/cargo/remote/BUILD.static_assertions-1.1.0.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "static_assertions", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "1.1.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.1.0", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/subtle-2.3.0.BUILD.bazel b/cargo/remote/BUILD.subtle-2.3.0.bazel similarity index 95% rename from cargo/remote/subtle-2.3.0.BUILD.bazel rename to cargo/remote/BUILD.subtle-2.3.0.bazel index 934ef22f0..88bf35cb7 100644 --- a/cargo/remote/subtle-2.3.0.BUILD.bazel +++ b/cargo/remote/BUILD.subtle-2.3.0.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # BSD-3-Clause from expression "BSD-3-Clause" ]) -# Generated targets -# Unsupported target "mod" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "subtle", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "2.3.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "2.3.0", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "mod" with type "test" omitted diff --git a/cargo/remote/syn-1.0.48.BUILD.bazel b/cargo/remote/BUILD.syn-1.0.48.bazel similarity index 91% rename from cargo/remote/syn-1.0.48.BUILD.bazel rename to cargo/remote/BUILD.syn-1.0.48.bazel index 3b8c3c125..2a42232ac 100644 --- a/cargo/remote/syn-1.0.48.BUILD.bazel +++ b/cargo/remote/BUILD.syn-1.0.48.bazel @@ -28,73 +28,17 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "syn_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ - ], - rustc_flags = [ - "--cap-lints=allow", - ], - crate_features = [ - "clone-impls", - "default", - "derive", - "extra-traits", - "fold", - "full", - "parsing", - "printing", - "proc-macro", - "quote", - "visit", - "visit-mut", - ], build_script_env = { }, - data = glob(["**"]), - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.48", - visibility = ["//visibility:private"], -) - -# Unsupported target "file" with type "bench" omitted -# Unsupported target "rust" with type "bench" omitted - -# buildifier: leave-alone -rust_library( - name = "syn", - crate_type = "lib", - deps = [ - ":syn_build_script", - "@raze__proc_macro2__1_0_24//:proc_macro2", - "@raze__quote__1_0_7//:quote", - "@raze__unicode_xid__0_2_1//:unicode_xid", - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.48", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "clone-impls", "default", @@ -109,30 +53,111 @@ rust_library( "visit", "visit-mut", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.48", + visibility = ["//visibility:private"], + deps = [ + ], ) + +# Unsupported target "file" with type "bench" omitted + +# Unsupported target "rust" with type "bench" omitted + +rust_library( + name = "syn", + srcs = glob(["**/*.rs"]), + crate_features = [ + "clone-impls", + "default", + "derive", + "extra-traits", + "fold", + "full", + "parsing", + "printing", + "proc-macro", + "quote", + "visit", + "visit-mut", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.48", + # buildifier: leave-alone + deps = [ + ":syn_build_script", + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__unicode_xid__0_2_1//:unicode_xid", + ], +) + # Unsupported target "test_asyncness" with type "test" omitted + # Unsupported target "test_attribute" with type "test" omitted + # Unsupported target "test_derive_input" with type "test" omitted + # Unsupported target "test_expr" with type "test" omitted + # Unsupported target "test_generics" with type "test" omitted + # Unsupported target "test_grouping" with type "test" omitted + # Unsupported target "test_ident" with type "test" omitted + # Unsupported target "test_item" with type "test" omitted + # Unsupported target "test_iterators" with type "test" omitted + # Unsupported target "test_lit" with type "test" omitted + # Unsupported target "test_meta" with type "test" omitted + # Unsupported target "test_parse_buffer" with type "test" omitted + # Unsupported target "test_parse_stream" with type "test" omitted + # Unsupported target "test_pat" with type "test" omitted + # Unsupported target "test_path" with type "test" omitted + # Unsupported target "test_precedence" with type "test" omitted + # Unsupported target "test_receiver" with type "test" omitted + # Unsupported target "test_round_trip" with type "test" omitted + # Unsupported target "test_shebang" with type "test" omitted + # Unsupported target "test_should_parse" with type "test" omitted + # Unsupported target "test_size" with type "test" omitted + # Unsupported target "test_stmt" with type "test" omitted + # Unsupported target "test_token_trees" with type "test" omitted + # Unsupported target "test_ty" with type "test" omitted + # Unsupported target "test_visibility" with type "test" omitted + # Unsupported target "zzz_stable" with type "test" omitted diff --git a/cargo/remote/synstructure-0.12.4.BUILD.bazel b/cargo/remote/BUILD.synstructure-0.12.4.bazel similarity index 95% rename from cargo/remote/synstructure-0.12.4.BUILD.bazel rename to cargo/remote/BUILD.synstructure-0.12.4.bazel index 80d7031e9..50a496a73 100644 --- a/cargo/remote/synstructure-0.12.4.BUILD.bazel +++ b/cargo/remote/BUILD.synstructure-0.12.4.bazel @@ -28,31 +28,31 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "synstructure", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.12.4", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", "@raze__unicode_xid__0_2_1//:unicode_xid", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.12.4", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - "proc-macro", - ], ) diff --git a/cargo/remote/take_mut-0.2.2.BUILD.bazel b/cargo/remote/BUILD.take_mut-0.2.2.bazel similarity index 95% rename from cargo/remote/take_mut-0.2.2.BUILD.bazel rename to cargo/remote/BUILD.take_mut-0.2.2.bazel index 3338dcad7..6640008e4 100644 --- a/cargo/remote/take_mut-0.2.2.BUILD.bazel +++ b/cargo/remote/BUILD.take_mut-0.2.2.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "take_mut", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.2", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/tempfile-3.1.0.BUILD.bazel b/cargo/remote/BUILD.tempfile-3.1.0.bazel similarity index 97% rename from cargo/remote/tempfile-3.1.0.BUILD.bazel rename to cargo/remote/BUILD.tempfile-3.1.0.bazel index 5e4b75b0d..b76bf7ace 100644 --- a/cargo/remote/tempfile-3.1.0.BUILD.bazel +++ b/cargo/remote/BUILD.tempfile-3.1.0.bazel @@ -28,15 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "namedtempfile" with type "test" omitted -# Unsupported target "spooled" with type "test" omitted -# Unsupported target "tempdir" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "tempfile", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "3.1.0", + # buildifier: leave-alone deps = [ "@raze__cfg_if__0_1_10//:cfg_if", "@raze__rand__0_7_3//:rand", @@ -64,20 +76,12 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "3.1.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) + +# Unsupported target "namedtempfile" with type "test" omitted + +# Unsupported target "spooled" with type "test" omitted + +# Unsupported target "tempdir" with type "test" omitted + # Unsupported target "tempfile" with type "test" omitted diff --git a/cargo/remote/term-0.6.1.BUILD.bazel b/cargo/remote/BUILD.term-0.6.1.bazel similarity index 96% rename from cargo/remote/term-0.6.1.BUILD.bazel rename to cargo/remote/BUILD.term-0.6.1.bazel index b58c11059..23bc71803 100644 --- a/cargo/remote/term-0.6.1.BUILD.bazel +++ b/cargo/remote/BUILD.term-0.6.1.bazel @@ -28,12 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "term", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.6.1", + # buildifier: leave-alone deps = [ "@raze__dirs__2_0_2//:dirs", ] + selects.with_or({ @@ -46,21 +62,6 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.6.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "default", - ], - aliases = { - }, ) + # Unsupported target "terminfo" with type "test" omitted diff --git a/cargo/remote/termcolor-1.1.0.BUILD.bazel b/cargo/remote/BUILD.termcolor-1.1.0.bazel similarity index 96% rename from cargo/remote/termcolor-1.1.0.BUILD.bazel rename to cargo/remote/BUILD.termcolor-1.1.0.bazel index 996a1f43f..7d58109c6 100644 --- a/cargo/remote/termcolor-1.1.0.BUILD.bazel +++ b/cargo/remote/BUILD.termcolor-1.1.0.bazel @@ -28,12 +28,27 @@ licenses([ "unencumbered", # Unlicense from expression "Unlicense OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "termcolor", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone deps = [ ] + selects.with_or({ # cfg(windows) @@ -45,19 +60,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.1.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) diff --git a/cargo/remote/thiserror-1.0.21.BUILD.bazel b/cargo/remote/BUILD.thiserror-1.0.22.bazel similarity index 92% rename from cargo/remote/thiserror-1.0.21.BUILD.bazel rename to cargo/remote/BUILD.thiserror-1.0.22.bazel index 8d5d2750b..e1a0fa092 100644 --- a/cargo/remote/thiserror-1.0.21.BUILD.bazel +++ b/cargo/remote/BUILD.thiserror-1.0.22.bazel @@ -28,40 +28,52 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "compiletest" with type "test" omitted -# Unsupported target "test_backtrace" with type "test" omitted -# Unsupported target "test_deprecated" with type "test" omitted -# Unsupported target "test_display" with type "test" omitted -# Unsupported target "test_error" with type "test" omitted -# Unsupported target "test_expr" with type "test" omitted -# Unsupported target "test_from" with type "test" omitted -# Unsupported target "test_lints" with type "test" omitted -# Unsupported target "test_option" with type "test" omitted -# Unsupported target "test_path" with type "test" omitted -# Unsupported target "test_source" with type "test" omitted -# Unsupported target "test_transparent" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "thiserror", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", proc_macro_deps = [ - "@raze__thiserror_impl__1_0_21//:thiserror_impl", + "@raze__thiserror_impl__1_0_22//:thiserror_impl", ], rustc_flags = [ "--cap-lints=allow", ], - version = "1.0.21", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.0.22", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test_backtrace" with type "test" omitted + +# Unsupported target "test_deprecated" with type "test" omitted + +# Unsupported target "test_display" with type "test" omitted + +# Unsupported target "test_error" with type "test" omitted + +# Unsupported target "test_expr" with type "test" omitted + +# Unsupported target "test_from" with type "test" omitted + +# Unsupported target "test_lints" with type "test" omitted + +# Unsupported target "test_option" with type "test" omitted + +# Unsupported target "test_path" with type "test" omitted + +# Unsupported target "test_source" with type "test" omitted + +# Unsupported target "test_transparent" with type "test" omitted diff --git a/cargo/remote/thiserror-impl-1.0.21.BUILD.bazel b/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel similarity index 93% rename from cargo/remote/thiserror-impl-1.0.21.BUILD.bazel rename to cargo/remote/BUILD.thiserror-impl-1.0.22.bazel index 000597023..938a5f38c 100644 --- a/cargo/remote/thiserror-impl-1.0.21.BUILD.bazel +++ b/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel @@ -28,28 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "thiserror_impl", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.22", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", "@raze__syn__1_0_48//:syn", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "1.0.21", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) diff --git a/cargo/remote/thread_local-1.0.1.BUILD.bazel b/cargo/remote/BUILD.thread_local-1.0.1.bazel similarity index 95% rename from cargo/remote/thread_local-1.0.1.BUILD.bazel rename to cargo/remote/BUILD.thread_local-1.0.1.bazel index 98c6a06f5..3ee73f01e 100644 --- a/cargo/remote/thread_local-1.0.1.BUILD.bazel +++ b/cargo/remote/BUILD.thread_local-1.0.1.bazel @@ -28,27 +28,28 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "thread_local" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "thread_local", - crate_type = "lib", - deps = [ - "@raze__lazy_static__1_4_0//:lazy_static", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "1.0.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.0.1", + # buildifier: leave-alone + deps = [ + "@raze__lazy_static__1_4_0//:lazy_static", ], ) diff --git a/cargo/remote/time-0.1.44.BUILD.bazel b/cargo/remote/BUILD.time-0.1.44.bazel similarity index 96% rename from cargo/remote/time-0.1.44.BUILD.bazel rename to cargo/remote/BUILD.time-0.1.44.bazel index dcfc80c24..01b3319d4 100644 --- a/cargo/remote/time-0.1.44.BUILD.bazel +++ b/cargo/remote/BUILD.time-0.1.44.bazel @@ -28,12 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "time", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.44", + # buildifier: leave-alone deps = [ "@raze__libc__0_2_80//:libc", ] + selects.with_or({ @@ -46,19 +61,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.44", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) diff --git a/cargo/remote/tinystr-0.3.4.BUILD.bazel b/cargo/remote/BUILD.tinystr-0.3.4.bazel similarity index 95% rename from cargo/remote/tinystr-0.3.4.BUILD.bazel rename to cargo/remote/BUILD.tinystr-0.3.4.bazel index 52aa522e2..50d495aaf 100644 --- a/cargo/remote/tinystr-0.3.4.BUILD.bazel +++ b/cargo/remote/BUILD.tinystr-0.3.4.bazel @@ -28,31 +28,35 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "construct" with type "bench" omitted -# Unsupported target "main" with type "example" omitted -# Unsupported target "main" with type "test" omitted + # Unsupported target "tinystr" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "main" with type "example" omitted + rust_library( name = "tinystr", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.4", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.4", + # buildifier: leave-alone + deps = [ + ], ) + +# Unsupported target "main" with type "test" omitted diff --git a/cargo/remote/tinyvec-0.3.4.BUILD.bazel b/cargo/remote/BUILD.tinyvec-1.0.1.bazel similarity index 87% rename from cargo/remote/tinyvec-0.3.4.BUILD.bazel rename to cargo/remote/BUILD.tinyvec-1.0.1.bazel index 4b746cc55..62bba115f 100644 --- a/cargo/remote/tinyvec-0.3.4.BUILD.bazel +++ b/cargo/remote/BUILD.tinyvec-1.0.1.bazel @@ -28,30 +28,35 @@ licenses([ "notice", # Zlib from expression "Zlib OR (Apache-2.0 OR MIT)" ]) -# Generated targets -# Unsupported target "arrayvec" with type "test" omitted +# Generated Targets + # Unsupported target "macros" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "tinyvec", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + "tinyvec_macros", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.4", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "alloc", - "default", + version = "1.0.1", + # buildifier: leave-alone + deps = [ + "@raze__tinyvec_macros__0_1_0//:tinyvec_macros", ], ) + +# Unsupported target "arrayvec" with type "test" omitted + # Unsupported target "tinyvec" with type "test" omitted diff --git a/cargo/remote/BUILD.tinyvec_macros-0.1.0.bazel b/cargo/remote/BUILD.tinyvec_macros-0.1.0.bazel new file mode 100644 index 000000000..ce7bc3c65 --- /dev/null +++ b/cargo/remote/BUILD.tinyvec_macros-0.1.0.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR (Apache-2.0 OR Zlib)" +]) + +# Generated Targets + +rust_library( + name = "tinyvec_macros", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/cargo/remote/tokio-0.2.22.BUILD.bazel b/cargo/remote/BUILD.tokio-0.2.23.bazel similarity index 95% rename from cargo/remote/tokio-0.2.22.BUILD.bazel rename to cargo/remote/BUILD.tokio-0.2.23.bazel index 6368f63a7..16ba072cf 100644 --- a/cargo/remote/tokio-0.2.22.BUILD.bazel +++ b/cargo/remote/BUILD.tokio-0.2.23.bazel @@ -28,108 +28,50 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# Unsupported target "_require_full" with type "test" omitted -# Unsupported target "async_send_sync" with type "test" omitted -# Unsupported target "buffered" with type "test" omitted -# Unsupported target "fs" with type "test" omitted -# Unsupported target "fs_copy" with type "test" omitted -# Unsupported target "fs_dir" with type "test" omitted -# Unsupported target "fs_file" with type "test" omitted -# Unsupported target "fs_file_mocked" with type "test" omitted -# Unsupported target "fs_link" with type "test" omitted -# Unsupported target "io_async_read" with type "test" omitted -# Unsupported target "io_chain" with type "test" omitted -# Unsupported target "io_copy" with type "test" omitted -# Unsupported target "io_driver" with type "test" omitted -# Unsupported target "io_driver_drop" with type "test" omitted -# Unsupported target "io_lines" with type "test" omitted -# Unsupported target "io_read" with type "test" omitted -# Unsupported target "io_read_exact" with type "test" omitted -# Unsupported target "io_read_line" with type "test" omitted -# Unsupported target "io_read_to_end" with type "test" omitted -# Unsupported target "io_read_to_string" with type "test" omitted -# Unsupported target "io_read_until" with type "test" omitted -# Unsupported target "io_split" with type "test" omitted -# Unsupported target "io_take" with type "test" omitted -# Unsupported target "io_write" with type "test" omitted -# Unsupported target "io_write_all" with type "test" omitted -# Unsupported target "io_write_int" with type "test" omitted -# Unsupported target "macros_join" with type "test" omitted -# Unsupported target "macros_pin" with type "test" omitted -# Unsupported target "macros_select" with type "test" omitted -# Unsupported target "macros_test" with type "test" omitted -# Unsupported target "macros_try_join" with type "test" omitted -# Unsupported target "net_bind_resource" with type "test" omitted -# Unsupported target "net_lookup_host" with type "test" omitted -# Unsupported target "no_rt" with type "test" omitted -# Unsupported target "process_issue_2174" with type "test" omitted -# Unsupported target "process_issue_42" with type "test" omitted -# Unsupported target "process_kill_on_drop" with type "test" omitted -# Unsupported target "process_smoke" with type "test" omitted -# Unsupported target "read_to_string" with type "test" omitted -# Unsupported target "rt_basic" with type "test" omitted -# Unsupported target "rt_common" with type "test" omitted -# Unsupported target "rt_threaded" with type "test" omitted -# Unsupported target "signal_ctrl_c" with type "test" omitted -# Unsupported target "signal_drop_recv" with type "test" omitted -# Unsupported target "signal_drop_rt" with type "test" omitted -# Unsupported target "signal_drop_signal" with type "test" omitted -# Unsupported target "signal_multi_rt" with type "test" omitted -# Unsupported target "signal_no_rt" with type "test" omitted -# Unsupported target "signal_notify_both" with type "test" omitted -# Unsupported target "signal_twice" with type "test" omitted -# Unsupported target "signal_usr1" with type "test" omitted -# Unsupported target "stream_chain" with type "test" omitted -# Unsupported target "stream_collect" with type "test" omitted -# Unsupported target "stream_empty" with type "test" omitted -# Unsupported target "stream_fuse" with type "test" omitted -# Unsupported target "stream_iter" with type "test" omitted -# Unsupported target "stream_merge" with type "test" omitted -# Unsupported target "stream_once" with type "test" omitted -# Unsupported target "stream_pending" with type "test" omitted -# Unsupported target "stream_reader" with type "test" omitted -# Unsupported target "stream_stream_map" with type "test" omitted -# Unsupported target "stream_timeout" with type "test" omitted -# Unsupported target "sync_barrier" with type "test" omitted -# Unsupported target "sync_broadcast" with type "test" omitted -# Unsupported target "sync_cancellation_token" with type "test" omitted -# Unsupported target "sync_errors" with type "test" omitted -# Unsupported target "sync_mpsc" with type "test" omitted -# Unsupported target "sync_mutex" with type "test" omitted -# Unsupported target "sync_mutex_owned" with type "test" omitted -# Unsupported target "sync_notify" with type "test" omitted -# Unsupported target "sync_oneshot" with type "test" omitted -# Unsupported target "sync_rwlock" with type "test" omitted -# Unsupported target "sync_semaphore" with type "test" omitted -# Unsupported target "sync_semaphore_owned" with type "test" omitted -# Unsupported target "sync_watch" with type "test" omitted -# Unsupported target "task_blocking" with type "test" omitted -# Unsupported target "task_local" with type "test" omitted -# Unsupported target "task_local_set" with type "test" omitted -# Unsupported target "tcp_accept" with type "test" omitted -# Unsupported target "tcp_connect" with type "test" omitted -# Unsupported target "tcp_echo" with type "test" omitted -# Unsupported target "tcp_into_split" with type "test" omitted -# Unsupported target "tcp_peek" with type "test" omitted -# Unsupported target "tcp_shutdown" with type "test" omitted -# Unsupported target "tcp_split" with type "test" omitted -# Unsupported target "test_clock" with type "test" omitted -# Unsupported target "time_delay" with type "test" omitted -# Unsupported target "time_delay_queue" with type "test" omitted -# Unsupported target "time_interval" with type "test" omitted -# Unsupported target "time_rt" with type "test" omitted -# Unsupported target "time_throttle" with type "test" omitted -# Unsupported target "time_timeout" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "tokio", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "blocking", + "default", + "fnv", + "fs", + "futures-core", + "io-driver", + "io-util", + "iovec", + "lazy_static", + "memchr", + "mio", + "num_cpus", + "rt-core", + "rt-threaded", + "slab", + "stream", + "sync", + "tcp", + "time", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.23", + # buildifier: leave-alone deps = [ "@raze__bytes__0_5_6//:bytes", "@raze__fnv__1_0_7//:fnv", - "@raze__futures_core__0_3_7//:futures_core", + "@raze__futures_core__0_3_8//:futures_core", "@raze__iovec__0_1_4//:iovec", "@raze__lazy_static__1_4_0//:lazy_static", "@raze__memchr__2_3_4//:memchr", @@ -158,43 +100,200 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.22", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "blocking", - "default", - "fnv", - "fs", - "futures-core", - "io-driver", - "io-util", - "iovec", - "lazy_static", - "memchr", - "mio", - "num_cpus", - "rt-core", - "rt-threaded", - "slab", - "stream", - "sync", - "tcp", - "time", - ], - aliases = { - }, ) + +# Unsupported target "_require_full" with type "test" omitted + +# Unsupported target "async_send_sync" with type "test" omitted + +# Unsupported target "buffered" with type "test" omitted + +# Unsupported target "fs" with type "test" omitted + +# Unsupported target "fs_copy" with type "test" omitted + +# Unsupported target "fs_dir" with type "test" omitted + +# Unsupported target "fs_file" with type "test" omitted + +# Unsupported target "fs_file_mocked" with type "test" omitted + +# Unsupported target "fs_link" with type "test" omitted + +# Unsupported target "io_async_read" with type "test" omitted + +# Unsupported target "io_chain" with type "test" omitted + +# Unsupported target "io_copy" with type "test" omitted + +# Unsupported target "io_driver" with type "test" omitted + +# Unsupported target "io_driver_drop" with type "test" omitted + +# Unsupported target "io_lines" with type "test" omitted + +# Unsupported target "io_mem_stream" with type "test" omitted + +# Unsupported target "io_read" with type "test" omitted + +# Unsupported target "io_read_exact" with type "test" omitted + +# Unsupported target "io_read_line" with type "test" omitted + +# Unsupported target "io_read_to_end" with type "test" omitted + +# Unsupported target "io_read_to_string" with type "test" omitted + +# Unsupported target "io_read_until" with type "test" omitted + +# Unsupported target "io_reader_stream" with type "test" omitted + +# Unsupported target "io_split" with type "test" omitted + +# Unsupported target "io_take" with type "test" omitted + +# Unsupported target "io_write" with type "test" omitted + +# Unsupported target "io_write_all" with type "test" omitted + +# Unsupported target "io_write_int" with type "test" omitted + +# Unsupported target "macros_join" with type "test" omitted + +# Unsupported target "macros_pin" with type "test" omitted + +# Unsupported target "macros_select" with type "test" omitted + +# Unsupported target "macros_test" with type "test" omitted + +# Unsupported target "macros_try_join" with type "test" omitted + +# Unsupported target "net_bind_resource" with type "test" omitted + +# Unsupported target "net_lookup_host" with type "test" omitted + +# Unsupported target "no_rt" with type "test" omitted + +# Unsupported target "process_issue_2174" with type "test" omitted + +# Unsupported target "process_issue_42" with type "test" omitted + +# Unsupported target "process_kill_on_drop" with type "test" omitted + +# Unsupported target "process_smoke" with type "test" omitted + +# Unsupported target "rt_basic" with type "test" omitted + +# Unsupported target "rt_common" with type "test" omitted + +# Unsupported target "rt_threaded" with type "test" omitted + +# Unsupported target "signal_ctrl_c" with type "test" omitted + +# Unsupported target "signal_drop_recv" with type "test" omitted + +# Unsupported target "signal_drop_rt" with type "test" omitted + +# Unsupported target "signal_drop_signal" with type "test" omitted + +# Unsupported target "signal_multi_rt" with type "test" omitted + +# Unsupported target "signal_no_rt" with type "test" omitted + +# Unsupported target "signal_notify_both" with type "test" omitted + +# Unsupported target "signal_twice" with type "test" omitted + +# Unsupported target "signal_usr1" with type "test" omitted + +# Unsupported target "stream_chain" with type "test" omitted + +# Unsupported target "stream_collect" with type "test" omitted + +# Unsupported target "stream_empty" with type "test" omitted + +# Unsupported target "stream_fuse" with type "test" omitted + +# Unsupported target "stream_iter" with type "test" omitted + +# Unsupported target "stream_merge" with type "test" omitted + +# Unsupported target "stream_once" with type "test" omitted + +# Unsupported target "stream_pending" with type "test" omitted + +# Unsupported target "stream_reader" with type "test" omitted + +# Unsupported target "stream_stream_map" with type "test" omitted + +# Unsupported target "stream_timeout" with type "test" omitted + +# Unsupported target "sync_barrier" with type "test" omitted + +# Unsupported target "sync_broadcast" with type "test" omitted + +# Unsupported target "sync_cancellation_token" with type "test" omitted + +# Unsupported target "sync_errors" with type "test" omitted + +# Unsupported target "sync_mpsc" with type "test" omitted + +# Unsupported target "sync_mutex" with type "test" omitted + +# Unsupported target "sync_mutex_owned" with type "test" omitted + +# Unsupported target "sync_notify" with type "test" omitted + +# Unsupported target "sync_oneshot" with type "test" omitted + +# Unsupported target "sync_rwlock" with type "test" omitted + +# Unsupported target "sync_semaphore" with type "test" omitted + +# Unsupported target "sync_semaphore_owned" with type "test" omitted + +# Unsupported target "sync_watch" with type "test" omitted + +# Unsupported target "task_blocking" with type "test" omitted + +# Unsupported target "task_local" with type "test" omitted + +# Unsupported target "task_local_set" with type "test" omitted + +# Unsupported target "tcp_accept" with type "test" omitted + +# Unsupported target "tcp_connect" with type "test" omitted + +# Unsupported target "tcp_echo" with type "test" omitted + +# Unsupported target "tcp_into_split" with type "test" omitted + +# Unsupported target "tcp_peek" with type "test" omitted + +# Unsupported target "tcp_shutdown" with type "test" omitted + +# Unsupported target "tcp_split" with type "test" omitted + +# Unsupported target "test_clock" with type "test" omitted + +# Unsupported target "time_delay" with type "test" omitted + +# Unsupported target "time_delay_queue" with type "test" omitted + +# Unsupported target "time_interval" with type "test" omitted + +# Unsupported target "time_rt" with type "test" omitted + +# Unsupported target "time_throttle" with type "test" omitted + +# Unsupported target "time_timeout" with type "test" omitted + # Unsupported target "udp" with type "test" omitted + # Unsupported target "uds_cred" with type "test" omitted + # Unsupported target "uds_datagram" with type "test" omitted + # Unsupported target "uds_split" with type "test" omitted + # Unsupported target "uds_stream" with type "test" omitted diff --git a/cargo/remote/tokio-io-timeout-0.4.0.BUILD.bazel b/cargo/remote/BUILD.tokio-io-timeout-0.4.0.bazel similarity index 91% rename from cargo/remote/tokio-io-timeout-0.4.0.BUILD.bazel rename to cargo/remote/BUILD.tokio-io-timeout-0.4.0.bazel index ba895a9a4..e8902b620 100644 --- a/cargo/remote/tokio-io-timeout-0.4.0.BUILD.bazel +++ b/cargo/remote/BUILD.tokio-io-timeout-0.4.0.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "tokio_io_timeout", - crate_type = "lib", - deps = [ - "@raze__bytes__0_5_6//:bytes", - "@raze__tokio__0_2_22//:tokio", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.0", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__tokio__0_2_23//:tokio", ], ) diff --git a/cargo/remote/tokio-rustls-0.14.1.BUILD.bazel b/cargo/remote/BUILD.tokio-rustls-0.14.1.bazel similarity index 89% rename from cargo/remote/tokio-rustls-0.14.1.BUILD.bazel rename to cargo/remote/BUILD.tokio-rustls-0.14.1.bazel index ddad9cc3c..774ea5456 100644 --- a/cargo/remote/tokio-rustls-0.14.1.BUILD.bazel +++ b/cargo/remote/BUILD.tokio-rustls-0.14.1.bazel @@ -28,32 +28,35 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "badssl" with type "test" omitted -# Unsupported target "early-data" with type "test" omitted -# Unsupported target "test" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "tokio_rustls", - crate_type = "lib", - deps = [ - "@raze__futures_core__0_3_7//:futures_core", - "@raze__rustls__0_18_1//:rustls", - "@raze__tokio__0_2_22//:tokio", - "@raze__webpki__0_21_3//:webpki", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.14.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.14.1", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__rustls__0_18_1//:rustls", + "@raze__tokio__0_2_23//:tokio", + "@raze__webpki__0_21_3//:webpki", ], ) + +# Unsupported target "badssl" with type "test" omitted + +# Unsupported target "early-data" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/tokio-socks-0.3.0.BUILD.bazel b/cargo/remote/BUILD.tokio-socks-0.3.0.bazel similarity index 88% rename from cargo/remote/tokio-socks-0.3.0.BUILD.bazel rename to cargo/remote/BUILD.tokio-socks-0.3.0.bazel index 0342f918f..ea0b78e13 100644 --- a/cargo/remote/tokio-socks-0.3.0.BUILD.bazel +++ b/cargo/remote/BUILD.tokio-socks-0.3.0.bazel @@ -28,36 +28,42 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# Unsupported target "common" with type "test" omitted -# Unsupported target "long_username_password_auth" with type "test" omitted -# Unsupported target "no_auth" with type "test" omitted +# Generated Targets + # Unsupported target "socket" with type "example" omitted -# buildifier: leave-alone +# Unsupported target "tor" with type "example" omitted + rust_library( name = "tokio_socks", - crate_type = "lib", - deps = [ - "@raze__bytes__0_4_12//:bytes", - "@raze__either__1_6_1//:either", - "@raze__futures__0_3_7//:futures", - "@raze__thiserror__1_0_21//:thiserror", - "@raze__tokio__0_2_22//:tokio", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_4_12//:bytes", + "@raze__either__1_6_1//:either", + "@raze__futures__0_3_8//:futures", + "@raze__thiserror__1_0_22//:thiserror", + "@raze__tokio__0_2_23//:tokio", ], ) -# Unsupported target "tor" with type "example" omitted + +# Unsupported target "common" with type "test" omitted + +# Unsupported target "long_username_password_auth" with type "test" omitted + +# Unsupported target "no_auth" with type "test" omitted + # Unsupported target "username_auth" with type "test" omitted diff --git a/cargo/remote/rustls-native-certs-0.4.0.BUILD.bazel b/cargo/remote/BUILD.tokio-tls-0.3.1.bazel similarity index 72% rename from cargo/remote/rustls-native-certs-0.4.0.BUILD.bazel rename to cargo/remote/BUILD.tokio-tls-0.3.1.bazel index d235504e0..cce2cc283 100644 --- a/cargo/remote/rustls-native-certs-0.4.0.BUILD.bazel +++ b/cargo/remote/BUILD.tokio-tls-0.3.1.bazel @@ -25,37 +25,53 @@ package(default_visibility = [ ]) licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR (ISC OR MIT)" + "notice", # MIT from expression "MIT" ]) -# Generated targets -# Unsupported target "compare_mozilla" with type "test" omitted -# Unsupported target "google" with type "example" omitted +# Generated Targets + +# Unsupported target "download-rust-lang" with type "example" omitted + +# Unsupported target "tls-echo" with type "example" omitted -# buildifier: leave-alone rust_library( - name = "rustls_native_certs", + name = "tokio_tls", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone deps = [ - "@raze__rustls__0_18_1//:rustls", + "@raze__native_tls__0_2_6//:native_tls", + "@raze__tokio__0_2_23//:tokio", ] + selects.with_or({ - # cfg(all(unix, not(target_os = "macos"))) + # cfg(all(not(target_os = "macos"), not(windows), not(target_os = "ios"))) ( - "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@raze__openssl_probe__0_1_2//:openssl_probe", ], "//conditions:default": [], }) + selects.with_or({ - # cfg(target_os = "macos") + # cfg(any(target_os = "macos", target_os = "ios")) ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@raze__security_framework__1_0_0//:security_framework", ], "//conditions:default": [], }) + selects.with_or({ @@ -64,24 +80,13 @@ rust_library( "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@raze__schannel__0_1_19//:schannel", ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.4.0", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) -# Unsupported target "smoketests" with type "test" omitted + +# Unsupported target "bad" with type "test" omitted + +# Unsupported target "google" with type "test" omitted + +# Unsupported target "smoke" with type "test" omitted diff --git a/cargo/remote/tokio-util-0.3.1.BUILD.bazel b/cargo/remote/BUILD.tokio-util-0.3.1.bazel similarity index 87% rename from cargo/remote/tokio-util-0.3.1.BUILD.bazel rename to cargo/remote/BUILD.tokio-util-0.3.1.bazel index e66ff679d..2cb4898c6 100644 --- a/cargo/remote/tokio-util-0.3.1.BUILD.bazel +++ b/cargo/remote/BUILD.tokio-util-0.3.1.bazel @@ -28,39 +28,45 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# Unsupported target "codecs" with type "test" omitted -# Unsupported target "framed" with type "test" omitted -# Unsupported target "framed_read" with type "test" omitted -# Unsupported target "framed_write" with type "test" omitted -# Unsupported target "length_delimited" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "tokio_util", - crate_type = "lib", - deps = [ - "@raze__bytes__0_5_6//:bytes", - "@raze__futures_core__0_3_7//:futures_core", - "@raze__futures_sink__0_3_7//:futures_sink", - "@raze__log__0_4_11//:log", - "@raze__pin_project_lite__0_1_11//:pin_project_lite", - "@raze__tokio__0_2_22//:tokio", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.1", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "codec", "default", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_sink__0_3_8//:futures_sink", + "@raze__log__0_4_11//:log", + "@raze__pin_project_lite__0_1_11//:pin_project_lite", + "@raze__tokio__0_2_23//:tokio", + ], ) + +# Unsupported target "codecs" with type "test" omitted + +# Unsupported target "framed" with type "test" omitted + +# Unsupported target "framed_read" with type "test" omitted + +# Unsupported target "framed_write" with type "test" omitted + +# Unsupported target "length_delimited" with type "test" omitted + # Unsupported target "udp" with type "test" omitted diff --git a/cargo/remote/toml-0.5.7.BUILD.bazel b/cargo/remote/BUILD.toml-0.5.7.bazel similarity index 95% rename from cargo/remote/toml-0.5.7.BUILD.bazel rename to cargo/remote/BUILD.toml-0.5.7.bazel index 537278c2e..fb4a1d8c5 100644 --- a/cargo/remote/toml-0.5.7.BUILD.bazel +++ b/cargo/remote/BUILD.toml-0.5.7.bazel @@ -28,31 +28,35 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "decode" with type "example" omitted -# Unsupported target "enum_external" with type "example" omitted -# Unsupported target "enum_external_deserialize" with type "test" omitted +# Generated Targets + +# Unsupported target "decode" with type "example" omitted + +# Unsupported target "enum_external" with type "example" omitted + +# Unsupported target "toml2json" with type "example" omitted -# buildifier: leave-alone rust_library( name = "toml", - crate_type = "lib", - deps = [ - "@raze__serde__1_0_117//:serde", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.5.7", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", + version = "0.5.7", + # buildifier: leave-alone + deps = [ + "@raze__serde__1_0_117//:serde", ], ) -# Unsupported target "toml2json" with type "example" omitted + +# Unsupported target "enum_external_deserialize" with type "test" omitted diff --git a/cargo/remote/tower-service-0.3.0.BUILD.bazel b/cargo/remote/BUILD.tower-service-0.3.0.bazel similarity index 95% rename from cargo/remote/tower-service-0.3.0.BUILD.bazel rename to cargo/remote/BUILD.tower-service-0.3.0.bazel index a4bc6115d..916595885 100644 --- a/cargo/remote/tower-service-0.3.0.BUILD.bazel +++ b/cargo/remote/BUILD.tower-service-0.3.0.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "tower_service", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.0", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/tracing-0.1.21.BUILD.bazel b/cargo/remote/BUILD.tracing-0.1.21.bazel similarity index 97% rename from cargo/remote/tracing-0.1.21.BUILD.bazel rename to cargo/remote/BUILD.tracing-0.1.21.bazel index c00334431..bee1c8986 100644 --- a/cargo/remote/tracing-0.1.21.BUILD.bazel +++ b/cargo/remote/BUILD.tracing-0.1.21.bazel @@ -28,44 +28,57 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# Unsupported target "event" with type "test" omitted -# Unsupported target "filter_caching_is_lexically_scoped" with type "test" omitted -# Unsupported target "filters_are_not_reevaluated_for_the_same_span" with type "test" omitted -# Unsupported target "filters_are_reevaluated_for_different_call_sites" with type "test" omitted -# Unsupported target "filters_dont_leak" with type "test" omitted -# Unsupported target "macro_imports" with type "test" omitted -# Unsupported target "macros" with type "test" omitted -# Unsupported target "max_level_hint" with type "test" omitted -# Unsupported target "multiple_max_level_hints" with type "test" omitted -# Unsupported target "no_subscriber" with type "bench" omitted -# Unsupported target "span" with type "test" omitted -# Unsupported target "subscriber" with type "bench" omitted -# Unsupported target "subscriber" with type "test" omitted +# Generated Targets + +# Unsupported target "no_subscriber" with type "bench" omitted + +# Unsupported target "subscriber" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "tracing", + srcs = glob(["**/*.rs"]), + crate_features = [ + "log", + "std", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.21", + # buildifier: leave-alone deps = [ "@raze__cfg_if__0_1_10//:cfg_if", "@raze__log__0_4_11//:log", "@raze__pin_project_lite__0_1_11//:pin_project_lite", "@raze__tracing_core__0_1_17//:tracing_core", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.21", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "log", - "std", - ], ) + +# Unsupported target "event" with type "test" omitted + +# Unsupported target "filter_caching_is_lexically_scoped" with type "test" omitted + +# Unsupported target "filters_are_not_reevaluated_for_the_same_span" with type "test" omitted + +# Unsupported target "filters_are_reevaluated_for_different_call_sites" with type "test" omitted + +# Unsupported target "filters_dont_leak" with type "test" omitted + +# Unsupported target "macro_imports" with type "test" omitted + +# Unsupported target "macros" with type "test" omitted + +# Unsupported target "max_level_hint" with type "test" omitted + +# Unsupported target "multiple_max_level_hints" with type "test" omitted + +# Unsupported target "span" with type "test" omitted + +# Unsupported target "subscriber" with type "test" omitted diff --git a/cargo/remote/tracing-core-0.1.17.BUILD.bazel b/cargo/remote/BUILD.tracing-core-0.1.17.bazel similarity index 95% rename from cargo/remote/tracing-core-0.1.17.BUILD.bazel rename to cargo/remote/BUILD.tracing-core-0.1.17.bazel index 025408510..6651da1cc 100644 --- a/cargo/remote/tracing-core-0.1.17.BUILD.bazel +++ b/cargo/remote/BUILD.tracing-core-0.1.17.bazel @@ -28,31 +28,34 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# Unsupported target "dispatch" with type "test" omitted -# Unsupported target "global_dispatch" with type "test" omitted -# Unsupported target "macros" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "tracing_core", - crate_type = "lib", - deps = [ - "@raze__lazy_static__1_4_0//:lazy_static", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.17", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "lazy_static", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.17", + # buildifier: leave-alone + deps = [ + "@raze__lazy_static__1_4_0//:lazy_static", + ], ) + +# Unsupported target "dispatch" with type "test" omitted + +# Unsupported target "global_dispatch" with type "test" omitted + +# Unsupported target "macros" with type "test" omitted diff --git a/cargo/remote/tracing-futures-0.2.4.BUILD.bazel b/cargo/remote/BUILD.tracing-futures-0.2.4.bazel similarity index 95% rename from cargo/remote/tracing-futures-0.2.4.BUILD.bazel rename to cargo/remote/BUILD.tracing-futures-0.2.4.bazel index b20641974..37cfc68d0 100644 --- a/cargo/remote/tracing-futures-0.2.4.BUILD.bazel +++ b/cargo/remote/BUILD.tracing-futures-0.2.4.bazel @@ -28,31 +28,33 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# Unsupported target "std_future" with type "test" omitted -# Unsupported target "support" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "tracing_futures", - crate_type = "lib", - deps = [ - "@raze__pin_project__0_4_27//:pin_project", - "@raze__tracing__0_1_21//:tracing", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.4", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "pin-project", "std-future", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.4", + # buildifier: leave-alone + deps = [ + "@raze__pin_project__0_4_27//:pin_project", + "@raze__tracing__0_1_21//:tracing", + ], ) + +# Unsupported target "std_future" with type "test" omitted + +# Unsupported target "support" with type "test" omitted diff --git a/cargo/remote/try-lock-0.2.3.BUILD.bazel b/cargo/remote/BUILD.try-lock-0.2.3.bazel similarity index 95% rename from cargo/remote/try-lock-0.2.3.BUILD.bazel rename to cargo/remote/BUILD.try-lock-0.2.3.bazel index 694a76017..b24774179 100644 --- a/cargo/remote/try-lock-0.2.3.BUILD.bazel +++ b/cargo/remote/BUILD.try-lock-0.2.3.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "try_lock", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.3", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.3", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/type-map-0.3.0.BUILD.bazel b/cargo/remote/BUILD.type-map-0.3.0.bazel similarity index 95% rename from cargo/remote/type-map-0.3.0.BUILD.bazel rename to cargo/remote/BUILD.type-map-0.3.0.bazel index 3be61cb00..c64d35a1f 100644 --- a/cargo/remote/type-map-0.3.0.BUILD.bazel +++ b/cargo/remote/BUILD.type-map-0.3.0.bazel @@ -28,26 +28,26 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "type_map", - crate_type = "lib", - deps = [ - "@raze__fxhash__0_2_1//:fxhash", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__fxhash__0_2_1//:fxhash", ], ) diff --git a/cargo/remote/typenum-1.12.0.BUILD.bazel b/cargo/remote/BUILD.typenum-1.12.0.bazel similarity index 93% rename from cargo/remote/typenum-1.12.0.BUILD.bazel rename to cargo/remote/BUILD.typenum-1.12.0.bazel index aaf658a79..acbe7a703 100644 --- a/cargo/remote/typenum-1.12.0.BUILD.bazel +++ b/cargo/remote/BUILD.typenum-1.12.0.bazel @@ -28,57 +28,55 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "typenum_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build/main.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build/main.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "1.12.0", visibility = ["//visibility:private"], + deps = [ + ], ) -# Unsupported target "test" with type "test" omitted - -# buildifier: leave-alone rust_library( name = "typenum", - crate_type = "lib", - deps = [ - ":typenum_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "1.12.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.12.0", + # buildifier: leave-alone + deps = [ + ":typenum_build_script", ], ) + +# Unsupported target "test" with type "test" omitted diff --git a/cargo/remote/unic-langid-0.9.0.BUILD.bazel b/cargo/remote/BUILD.unic-langid-0.9.0.bazel similarity index 95% rename from cargo/remote/unic-langid-0.9.0.BUILD.bazel rename to cargo/remote/BUILD.unic-langid-0.9.0.bazel index 5b3b2de83..31eec22b1 100644 --- a/cargo/remote/unic-langid-0.9.0.BUILD.bazel +++ b/cargo/remote/BUILD.unic-langid-0.9.0.bazel @@ -28,30 +28,30 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "unic_langid", - crate_type = "lib", - deps = [ - "@raze__unic_langid_impl__0_9_0//:unic_langid_impl", - "@raze__unic_langid_macros__0_9_0//:unic_langid_macros", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.9.0", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "macros", "unic-langid-macros", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@raze__unic_langid_impl__0_9_0//:unic_langid_impl", + "@raze__unic_langid_macros__0_9_0//:unic_langid_macros", + ], ) diff --git a/cargo/remote/unic-langid-impl-0.9.0.BUILD.bazel b/cargo/remote/BUILD.unic-langid-impl-0.9.0.bazel similarity index 95% rename from cargo/remote/unic-langid-impl-0.9.0.BUILD.bazel rename to cargo/remote/BUILD.unic-langid-impl-0.9.0.bazel index 1466bbe69..c1b01fd6a 100644 --- a/cargo/remote/unic-langid-impl-0.9.0.BUILD.bazel +++ b/cargo/remote/BUILD.unic-langid-impl-0.9.0.bazel @@ -28,81 +28,86 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "canonicalize" with type "bench" omitted -# buildifier: leave-alone +# Unsupported target "langid" with type "bench" omitted + +# Unsupported target "likely_subtags" with type "bench" omitted + +# Unsupported target "parser" with type "bench" omitted + rust_binary( # Prefix bin name to disambiguate from (probable) collision with lib name # N.B.: The exact form of this is subject to change. name = "cargo_bin_generate_layout", - deps = [ - # Binaries get an implicit dependency on their crate's lib - ":unic_langid_impl", - "@raze__tinystr__0_3_4//:tinystr", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/bin/generate_layout.rs", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.9.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ - ], -) - -# buildifier: leave-alone -rust_binary( - # Prefix bin name to disambiguate from (probable) collision with lib name - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_generate_likelysubtags", + version = "0.9.0", + # buildifier: leave-alone deps = [ # Binaries get an implicit dependency on their crate's lib ":unic_langid_impl", "@raze__tinystr__0_3_4//:tinystr", ], +) + +rust_binary( + # Prefix bin name to disambiguate from (probable) collision with lib name + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_generate_likelysubtags", srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/bin/generate_likelysubtags.rs", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.9.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ - ], -) -# Unsupported target "langid" with type "bench" omitted -# Unsupported target "likely_subtags" with type "bench" omitted -# Unsupported target "likelysubtags" with type "test" omitted -# Unsupported target "parser" with type "bench" omitted - -# buildifier: leave-alone -rust_library( - name = "unic_langid_impl", - crate_type = "lib", + version = "0.9.0", + # buildifier: leave-alone deps = [ + # Binaries get an implicit dependency on their crate's lib + ":unic_langid_impl", "@raze__tinystr__0_3_4//:tinystr", ], +) + +rust_library( + name = "unic_langid_impl", srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.9.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@raze__tinystr__0_3_4//:tinystr", ], ) + +# Unsupported target "likelysubtags" with type "test" omitted diff --git a/cargo/remote/unic-langid-macros-0.9.0.BUILD.bazel b/cargo/remote/BUILD.unic-langid-macros-0.9.0.bazel similarity index 96% rename from cargo/remote/unic-langid-macros-0.9.0.BUILD.bazel rename to cargo/remote/BUILD.unic-langid-macros-0.9.0.bazel index d1c3e9aa8..e38a1f61e 100644 --- a/cargo/remote/unic-langid-macros-0.9.0.BUILD.bazel +++ b/cargo/remote/BUILD.unic-langid-macros-0.9.0.bazel @@ -28,18 +28,15 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "unic_langid_macros", - crate_type = "lib", - deps = [ - "@raze__tinystr__0_3_4//:tinystr", - "@raze__unic_langid_impl__0_9_0//:unic_langid_impl", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", proc_macro_deps = [ "@raze__proc_macro_hack__0_5_19//:proc_macro_hack", @@ -48,11 +45,14 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.9.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@raze__tinystr__0_3_4//:tinystr", + "@raze__unic_langid_impl__0_9_0//:unic_langid_impl", ], ) diff --git a/cargo/remote/unic-langid-macros-impl-0.9.0.BUILD.bazel b/cargo/remote/BUILD.unic-langid-macros-impl-0.9.0.bazel similarity index 96% rename from cargo/remote/unic-langid-macros-impl-0.9.0.BUILD.bazel rename to cargo/remote/BUILD.unic-langid-macros-impl-0.9.0.bazel index 6755d6cb1..ddd20f70d 100644 --- a/cargo/remote/unic-langid-macros-impl-0.9.0.BUILD.bazel +++ b/cargo/remote/BUILD.unic-langid-macros-impl-0.9.0.bazel @@ -28,19 +28,15 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "unic_langid_macros_impl", - crate_type = "proc-macro", - deps = [ - "@raze__quote__1_0_7//:quote", - "@raze__syn__1_0_48//:syn", - "@raze__unic_langid_impl__0_9_0//:unic_langid_impl", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "proc-macro", edition = "2018", proc_macro_deps = [ "@raze__proc_macro_hack__0_5_19//:proc_macro_hack", @@ -48,11 +44,15 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.9.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + "@raze__unic_langid_impl__0_9_0//:unic_langid_impl", ], ) diff --git a/cargo/remote/unicase-2.6.0.BUILD.bazel b/cargo/remote/BUILD.unicase-2.6.0.bazel similarity index 93% rename from cargo/remote/unicase-2.6.0.BUILD.bazel rename to cargo/remote/BUILD.unicase-2.6.0.bazel index 8a2f38ce9..41f6fd2f2 100644 --- a/cargo/remote/unicase-2.6.0.BUILD.bazel +++ b/cargo/remote/BUILD.unicase-2.6.0.bazel @@ -28,57 +28,54 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "unicase_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ - "@raze__version_check__0_9_2//:version_check", + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "2.6.0", visibility = ["//visibility:private"], + deps = [ + "@raze__version_check__0_9_2//:version_check", + ], ) - -# buildifier: leave-alone rust_library( name = "unicase", - crate_type = "lib", - deps = [ - ":unicase_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "2.6.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "2.6.0", + # buildifier: leave-alone + deps = [ + ":unicase_build_script", ], ) diff --git a/cargo/remote/unicode-bidi-0.3.4.BUILD.bazel b/cargo/remote/BUILD.unicode-bidi-0.3.4.bazel similarity index 95% rename from cargo/remote/unicode-bidi-0.3.4.BUILD.bazel rename to cargo/remote/BUILD.unicode-bidi-0.3.4.bazel index 79c26cd90..6db4024a9 100644 --- a/cargo/remote/unicode-bidi-0.3.4.BUILD.bazel +++ b/cargo/remote/BUILD.unicode-bidi-0.3.4.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "unicode_bidi", - crate_type = "lib", - deps = [ - "@raze__matches__0_1_8//:matches", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.4", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", + version = "0.3.4", + # buildifier: leave-alone + deps = [ + "@raze__matches__0_1_8//:matches", ], ) diff --git a/cargo/remote/unicode-normalization-0.1.13.BUILD.bazel b/cargo/remote/BUILD.unicode-normalization-0.1.14.bazel similarity index 89% rename from cargo/remote/unicode-normalization-0.1.13.BUILD.bazel rename to cargo/remote/BUILD.unicode-normalization-0.1.14.bazel index 642bbf9c8..45eae7f3d 100644 --- a/cargo/remote/unicode-normalization-0.1.13.BUILD.bazel +++ b/cargo/remote/BUILD.unicode-normalization-0.1.14.bazel @@ -28,29 +28,30 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + # Unsupported target "bench" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "unicode_normalization", - crate_type = "lib", - deps = [ - "@raze__tinyvec__0_3_4//:tinyvec", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.13", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.14", + # buildifier: leave-alone + deps = [ + "@raze__tinyvec__1_0_1//:tinyvec", + ], ) diff --git a/cargo/remote/unicode-segmentation-1.6.0.BUILD.bazel b/cargo/remote/BUILD.unicode-segmentation-1.7.0.bazel similarity index 87% rename from cargo/remote/unicode-segmentation-1.6.0.BUILD.bazel rename to cargo/remote/BUILD.unicode-segmentation-1.7.0.bazel index 4d17619fd..04d8b6eff 100644 --- a/cargo/remote/unicode-segmentation-1.6.0.BUILD.bazel +++ b/cargo/remote/BUILD.unicode-segmentation-1.7.0.bazel @@ -28,25 +28,27 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets + +# Unsupported target "graphemes" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "unicode_segmentation", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "1.6.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "1.7.0", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/unicode-xid-0.2.1.BUILD.bazel b/cargo/remote/BUILD.unicode-xid-0.2.1.bazel similarity index 95% rename from cargo/remote/unicode-xid-0.2.1.BUILD.bazel rename to cargo/remote/BUILD.unicode-xid-0.2.1.bazel index 8bea35669..8933e691b 100644 --- a/cargo/remote/unicode-xid-0.2.1.BUILD.bazel +++ b/cargo/remote/BUILD.unicode-xid-0.2.1.bazel @@ -28,27 +28,28 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "exhaustive_tests" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "unicode_xid", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "default", + version = "0.2.1", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "exhaustive_tests" with type "test" omitted diff --git a/cargo/remote/unindent-0.1.7.BUILD.bazel b/cargo/remote/BUILD.unindent-0.1.7.bazel similarity index 95% rename from cargo/remote/unindent-0.1.7.BUILD.bazel rename to cargo/remote/BUILD.unindent-0.1.7.bazel index cce89968c..5f141768e 100644 --- a/cargo/remote/unindent-0.1.7.BUILD.bazel +++ b/cargo/remote/BUILD.unindent-0.1.7.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "unindent", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.7", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.7", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/untrusted-0.7.1.BUILD.bazel b/cargo/remote/BUILD.untrusted-0.7.1.bazel similarity index 95% rename from cargo/remote/untrusted-0.7.1.BUILD.bazel rename to cargo/remote/BUILD.untrusted-0.7.1.bazel index 7701ab910..bb369b4fa 100644 --- a/cargo/remote/untrusted-0.7.1.BUILD.bazel +++ b/cargo/remote/BUILD.untrusted-0.7.1.bazel @@ -28,26 +28,27 @@ licenses([ "notice", # ISC from expression "ISC" ]) -# Generated targets -# Unsupported target "tests" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "untrusted", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/untrusted.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.7.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.7.1", + # buildifier: leave-alone + deps = [ ], ) + +# Unsupported target "tests" with type "test" omitted diff --git a/cargo/remote/url-2.1.1.BUILD.bazel b/cargo/remote/BUILD.url-2.2.0.bazel similarity index 84% rename from cargo/remote/url-2.1.1.BUILD.bazel rename to cargo/remote/BUILD.url-2.2.0.bazel index bad16daa4..77a906889 100644 --- a/cargo/remote/url-2.1.1.BUILD.bazel +++ b/cargo/remote/BUILD.url-2.2.0.bazel @@ -28,31 +28,31 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "data" with type "test" omitted -# Unsupported target "parse_url" with type "bench" omitted -# Unsupported target "unit" with type "test" omitted +# Generated Targets + +# Unsupported target "parse_url" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "url", - crate_type = "lib", - deps = [ - "@raze__idna__0_2_0//:idna", - "@raze__matches__0_1_8//:matches", - "@raze__percent_encoding__2_1_0//:percent_encoding", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", - edition = "2015", + crate_type = "lib", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "2.1.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "2.2.0", + # buildifier: leave-alone + deps = [ + "@raze__form_urlencoded__1_0_0//:form_urlencoded", + "@raze__idna__0_2_0//:idna", + "@raze__matches__0_1_8//:matches", + "@raze__percent_encoding__2_1_0//:percent_encoding", ], ) diff --git a/cargo/remote/utime-0.3.1.BUILD.bazel b/cargo/remote/BUILD.utime-0.3.1.bazel similarity index 97% rename from cargo/remote/utime-0.3.1.BUILD.bazel rename to cargo/remote/BUILD.utime-0.3.1.bazel index a5f28a329..47e3740b5 100644 --- a/cargo/remote/utime-0.3.1.BUILD.bazel +++ b/cargo/remote/BUILD.utime-0.3.1.bazel @@ -28,12 +28,27 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "utime", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone deps = [ ] + selects.with_or({ # cfg(unix) @@ -58,20 +73,6 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.1", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) + # Unsupported target "utime" with type "test" omitted diff --git a/cargo/remote/vcpkg-0.2.10.BUILD.bazel b/cargo/remote/BUILD.vcpkg-0.2.10.bazel similarity index 95% rename from cargo/remote/vcpkg-0.2.10.BUILD.bazel rename to cargo/remote/BUILD.vcpkg-0.2.10.bazel index d7d62d035..82be97634 100644 --- a/cargo/remote/vcpkg-0.2.10.BUILD.bazel +++ b/cargo/remote/BUILD.vcpkg-0.2.10.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "vcpkg", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.10", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.10", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/version_check-0.9.2.BUILD.bazel b/cargo/remote/BUILD.version_check-0.9.2.bazel similarity index 95% rename from cargo/remote/version_check-0.9.2.BUILD.bazel rename to cargo/remote/BUILD.version_check-0.9.2.bazel index fef24a659..469edc03b 100644 --- a/cargo/remote/version_check-0.9.2.BUILD.bazel +++ b/cargo/remote/BUILD.version_check-0.9.2.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "version_check", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.9.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.9.2", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/want-0.3.0.BUILD.bazel b/cargo/remote/BUILD.want-0.3.0.bazel similarity index 95% rename from cargo/remote/want-0.3.0.BUILD.bazel rename to cargo/remote/BUILD.want-0.3.0.bazel index 9214b5ea2..abba65751 100644 --- a/cargo/remote/want-0.3.0.BUILD.bazel +++ b/cargo/remote/BUILD.want-0.3.0.bazel @@ -28,28 +28,29 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "throughput" with type "bench" omitted -# buildifier: leave-alone rust_library( name = "want", - crate_type = "lib", - deps = [ - "@raze__log__0_4_11//:log", - "@raze__try_lock__0_2_3//:try_lock", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__log__0_4_11//:log", + "@raze__try_lock__0_2_3//:try_lock", ], ) diff --git a/cargo/remote/wasi-0.10.0+wasi-snapshot-preview1.BUILD.bazel b/cargo/remote/BUILD.wasi-0.10.0+wasi-snapshot-preview1.bazel similarity index 95% rename from cargo/remote/wasi-0.10.0+wasi-snapshot-preview1.BUILD.bazel rename to cargo/remote/BUILD.wasi-0.10.0+wasi-snapshot-preview1.bazel index 384524e2f..a4034f361 100644 --- a/cargo/remote/wasi-0.10.0+wasi-snapshot-preview1.BUILD.bazel +++ b/cargo/remote/BUILD.wasi-0.10.0+wasi-snapshot-preview1.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "wasi", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.10.0+wasi-snapshot-preview1", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.0+wasi-snapshot-preview1", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/wasi-0.9.0+wasi-snapshot-preview1.BUILD.bazel b/cargo/remote/BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel similarity index 95% rename from cargo/remote/wasi-0.9.0+wasi-snapshot-preview1.BUILD.bazel rename to cargo/remote/BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel index baa3e62c1..4e3a84caa 100644 --- a/cargo/remote/wasi-0.9.0+wasi-snapshot-preview1.BUILD.bazel +++ b/cargo/remote/BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel @@ -28,27 +28,27 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "wasi", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.9.0+wasi-snapshot-preview1", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.0+wasi-snapshot-preview1", + # buildifier: leave-alone + deps = [ + ], ) diff --git a/cargo/remote/wasm-bindgen-0.2.68.BUILD.bazel b/cargo/remote/BUILD.wasm-bindgen-0.2.68.bazel similarity index 91% rename from cargo/remote/wasm-bindgen-0.2.68.BUILD.bazel rename to cargo/remote/BUILD.wasm-bindgen-0.2.68.bazel index bb839e5f7..c8e4200ae 100644 --- a/cargo/remote/wasm-bindgen-0.2.68.BUILD.bazel +++ b/cargo/remote/BUILD.wasm-bindgen-0.2.68.bazel @@ -28,74 +28,17 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "wasm_bindgen_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ - ], - rustc_flags = [ - "--cap-lints=allow", - ], - crate_features = [ - "default", - "serde", - "serde-serialize", - "serde_json", - "spans", - "std", - ], build_script_env = { }, - data = glob(["**"]), - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.68", - visibility = ["//visibility:private"], -) - -# Unsupported target "headless" with type "test" omitted -# Unsupported target "must_use" with type "test" omitted -# Unsupported target "non_wasm" with type "test" omitted -# Unsupported target "std-crate-no-std-dep" with type "test" omitted -# Unsupported target "unwrap_throw" with type "test" omitted -# Unsupported target "wasm" with type "test" omitted - -# buildifier: leave-alone -rust_library( - name = "wasm_bindgen", - crate_type = "lib", - deps = [ - ":wasm_bindgen_build_script", - "@raze__cfg_if__0_1_10//:cfg_if", - "@raze__serde__1_0_117//:serde", - "@raze__serde_json__1_0_59//:serde_json", - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - proc_macro_deps = [ - "@raze__wasm_bindgen_macro__0_2_68//:wasm_bindgen_macro", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.68", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "serde", @@ -104,4 +47,64 @@ rust_library( "spans", "std", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.68", + visibility = ["//visibility:private"], + deps = [ + ], ) + +rust_library( + name = "wasm_bindgen", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "serde", + "serde-serialize", + "serde_json", + "spans", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__wasm_bindgen_macro__0_2_68//:wasm_bindgen_macro", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.68", + # buildifier: leave-alone + deps = [ + ":wasm_bindgen_build_script", + "@raze__cfg_if__0_1_10//:cfg_if", + "@raze__serde__1_0_117//:serde", + "@raze__serde_json__1_0_59//:serde_json", + ], +) + +# Unsupported target "headless" with type "test" omitted + +# Unsupported target "must_use" with type "test" omitted + +# Unsupported target "non_wasm" with type "test" omitted + +# Unsupported target "std-crate-no-std-dep" with type "test" omitted + +# Unsupported target "unwrap_throw" with type "test" omitted + +# Unsupported target "wasm" with type "test" omitted diff --git a/cargo/remote/wasm-bindgen-backend-0.2.68.BUILD.bazel b/cargo/remote/BUILD.wasm-bindgen-backend-0.2.68.bazel similarity index 96% rename from cargo/remote/wasm-bindgen-backend-0.2.68.BUILD.bazel rename to cargo/remote/BUILD.wasm-bindgen-backend-0.2.68.bazel index 27fee3b9f..519ff7687 100644 --- a/cargo/remote/wasm-bindgen-backend-0.2.68.BUILD.bazel +++ b/cargo/remote/BUILD.wasm-bindgen-backend-0.2.68.bazel @@ -28,12 +28,26 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "wasm_bindgen_backend", + srcs = glob(["**/*.rs"]), + crate_features = [ + "spans", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.68", + # buildifier: leave-alone deps = [ "@raze__bumpalo__3_4_0//:bumpalo", "@raze__lazy_static__1_4_0//:lazy_static", @@ -43,18 +57,4 @@ rust_library( "@raze__syn__1_0_48//:syn", "@raze__wasm_bindgen_shared__0_2_68//:wasm_bindgen_shared", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.68", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "spans", - ], ) diff --git a/cargo/remote/wasm-bindgen-futures-0.4.18.BUILD.bazel b/cargo/remote/BUILD.wasm-bindgen-futures-0.4.18.bazel similarity index 95% rename from cargo/remote/wasm-bindgen-futures-0.4.18.BUILD.bazel rename to cargo/remote/BUILD.wasm-bindgen-futures-0.4.18.bazel index 78a140824..98a757ab9 100644 --- a/cargo/remote/wasm-bindgen-futures-0.4.18.BUILD.bazel +++ b/cargo/remote/BUILD.wasm-bindgen-futures-0.4.18.bazel @@ -28,29 +28,30 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "tests" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "wasm_bindgen_futures", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.18", + # buildifier: leave-alone deps = [ "@raze__cfg_if__0_1_10//:cfg_if", "@raze__js_sys__0_3_45//:js_sys", "@raze__wasm_bindgen__0_2_68//:wasm_bindgen", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.4.18", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], ) + +# Unsupported target "tests" with type "test" omitted diff --git a/cargo/remote/wasm-bindgen-macro-0.2.68.BUILD.bazel b/cargo/remote/BUILD.wasm-bindgen-macro-0.2.68.bazel similarity index 95% rename from cargo/remote/wasm-bindgen-macro-0.2.68.BUILD.bazel rename to cargo/remote/BUILD.wasm-bindgen-macro-0.2.68.bazel index 5aa0ae9aa..b801a81c9 100644 --- a/cargo/remote/wasm-bindgen-macro-0.2.68.BUILD.bazel +++ b/cargo/remote/BUILD.wasm-bindgen-macro-0.2.68.bazel @@ -28,29 +28,30 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "ui" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "wasm_bindgen_macro", - crate_type = "proc-macro", - deps = [ - "@raze__quote__1_0_7//:quote", - "@raze__wasm_bindgen_macro_support__0_2_68//:wasm_bindgen_macro_support", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "spans", + ], crate_root = "src/lib.rs", + crate_type = "proc-macro", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.68", tags = [ "cargo-raze", "manual", ], - crate_features = [ - "spans", + version = "0.2.68", + # buildifier: leave-alone + deps = [ + "@raze__quote__1_0_7//:quote", + "@raze__wasm_bindgen_macro_support__0_2_68//:wasm_bindgen_macro_support", ], ) + +# Unsupported target "ui" with type "test" omitted diff --git a/cargo/remote/wasm-bindgen-macro-support-0.2.68.BUILD.bazel b/cargo/remote/BUILD.wasm-bindgen-macro-support-0.2.68.bazel similarity index 96% rename from cargo/remote/wasm-bindgen-macro-support-0.2.68.BUILD.bazel rename to cargo/remote/BUILD.wasm-bindgen-macro-support-0.2.68.bazel index ff761a0ba..d06d78100 100644 --- a/cargo/remote/wasm-bindgen-macro-support-0.2.68.BUILD.bazel +++ b/cargo/remote/BUILD.wasm-bindgen-macro-support-0.2.68.bazel @@ -28,12 +28,26 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "wasm_bindgen_macro_support", + srcs = glob(["**/*.rs"]), + crate_features = [ + "spans", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.68", + # buildifier: leave-alone deps = [ "@raze__proc_macro2__1_0_24//:proc_macro2", "@raze__quote__1_0_7//:quote", @@ -41,18 +55,4 @@ rust_library( "@raze__wasm_bindgen_backend__0_2_68//:wasm_bindgen_backend", "@raze__wasm_bindgen_shared__0_2_68//:wasm_bindgen_shared", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.2.68", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "spans", - ], ) diff --git a/cargo/remote/wasm-bindgen-shared-0.2.68.BUILD.bazel b/cargo/remote/BUILD.wasm-bindgen-shared-0.2.68.bazel similarity index 93% rename from cargo/remote/wasm-bindgen-shared-0.2.68.BUILD.bazel rename to cargo/remote/BUILD.wasm-bindgen-shared-0.2.68.bazel index 91e39f8ca..e694ea5d9 100644 --- a/cargo/remote/wasm-bindgen-shared-0.2.68.BUILD.bazel +++ b/cargo/remote/BUILD.wasm-bindgen-shared-0.2.68.bazel @@ -28,56 +28,53 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "wasm_bindgen_shared_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2018", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.2.68", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "wasm_bindgen_shared", - crate_type = "lib", - deps = [ - ":wasm_bindgen_shared_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.68", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.68", + # buildifier: leave-alone + deps = [ + ":wasm_bindgen_shared_build_script", ], ) diff --git a/cargo/remote/web-sys-0.3.45.BUILD.bazel b/cargo/remote/BUILD.web-sys-0.3.45.bazel similarity index 96% rename from cargo/remote/web-sys-0.3.45.BUILD.bazel rename to cargo/remote/BUILD.web-sys-0.3.45.bazel index 4ea2f9743..332e877fb 100644 --- a/cargo/remote/web-sys-0.3.45.BUILD.bazel +++ b/cargo/remote/BUILD.web-sys-0.3.45.bazel @@ -28,28 +28,11 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# Unsupported target "wasm" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "web_sys", - crate_type = "lib", - deps = [ - "@raze__js_sys__0_3_45//:js_sys", - "@raze__wasm_bindgen__0_2_68//:wasm_bindgen", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.45", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "Blob", "BlobPropertyBag", @@ -66,4 +49,22 @@ rust_library( "Window", "Worker", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.45", + # buildifier: leave-alone + deps = [ + "@raze__js_sys__0_3_45//:js_sys", + "@raze__wasm_bindgen__0_2_68//:wasm_bindgen", + ], ) + +# Unsupported target "wasm" with type "test" omitted diff --git a/cargo/remote/webpki-0.21.3.BUILD.bazel b/cargo/remote/BUILD.webpki-0.21.3.bazel similarity index 95% rename from cargo/remote/webpki-0.21.3.BUILD.bazel rename to cargo/remote/BUILD.webpki-0.21.3.bazel index 61bc0d2b6..15fabf09e 100644 --- a/cargo/remote/webpki-0.21.3.BUILD.bazel +++ b/cargo/remote/BUILD.webpki-0.21.3.bazel @@ -28,33 +28,35 @@ licenses([ "restricted", # no license ]) -# Generated targets -# Unsupported target "dns_name_tests" with type "test" omitted -# Unsupported target "integration" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "webpki", - crate_type = "lib", - deps = [ - "@raze__ring__0_16_15//:ring", - "@raze__untrusted__0_7_1//:untrusted", - ], srcs = glob(["**/*.rs"]), - crate_root = "src/webpki.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - data = glob(["src/**"]), - version = "0.21.3", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "default", "std", "trust_anchor_util", ], + crate_root = "src/webpki.rs", + crate_type = "lib", + data = glob(["src/**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.3", + # buildifier: leave-alone + deps = [ + "@raze__ring__0_16_15//:ring", + "@raze__untrusted__0_7_1//:untrusted", + ], ) + +# Unsupported target "dns_name_tests" with type "test" omitted + +# Unsupported target "integration" with type "test" omitted diff --git a/cargo/remote/BUILD.webpki-roots-0.20.0.bazel b/cargo/remote/BUILD.webpki-roots-0.20.0.bazel new file mode 100644 index 000000000..32a0cf125 --- /dev/null +++ b/cargo/remote/BUILD.webpki-roots-0.20.0.bazel @@ -0,0 +1,78 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "reciprocal", # MPL-2.0 from expression "MPL-2.0" +]) + +# Generated Targets + +rust_binary( + # Prefix bin name to disambiguate from (probable) collision with lib name + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_process_cert", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/bin/process_cert.rs", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.20.0", + # buildifier: leave-alone + deps = [ + # Binaries get an implicit dependency on their crate's lib + ":webpki_roots", + "@raze__webpki__0_21_3//:webpki", + ], +) + +rust_library( + name = "webpki_roots", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.20.0", + # buildifier: leave-alone + deps = [ + "@raze__webpki__0_21_3//:webpki", + ], +) diff --git a/cargo/remote/which-4.0.2.BUILD.bazel b/cargo/remote/BUILD.which-4.0.2.bazel similarity index 91% rename from cargo/remote/which-4.0.2.BUILD.bazel rename to cargo/remote/BUILD.which-4.0.2.bazel index 9d52c5d5d..2c2fc69ed 100644 --- a/cargo/remote/which-4.0.2.BUILD.bazel +++ b/cargo/remote/BUILD.which-4.0.2.bazel @@ -28,28 +28,29 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# Unsupported target "basic" with type "test" omitted +# Generated Targets -# buildifier: leave-alone rust_library( name = "which", - crate_type = "lib", - deps = [ - "@raze__libc__0_2_80//:libc", - "@raze__thiserror__1_0_21//:thiserror", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "4.0.2", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "4.0.2", + # buildifier: leave-alone + deps = [ + "@raze__libc__0_2_80//:libc", + "@raze__thiserror__1_0_22//:thiserror", ], ) + +# Unsupported target "basic" with type "test" omitted diff --git a/cargo/remote/winapi-0.2.8.BUILD.bazel b/cargo/remote/BUILD.winapi-0.2.8.bazel similarity index 94% rename from cargo/remote/winapi-0.2.8.BUILD.bazel rename to cargo/remote/BUILD.winapi-0.2.8.bazel index 6566787be..40eae9480 100644 --- a/cargo/remote/winapi-0.2.8.BUILD.bazel +++ b/cargo/remote/BUILD.winapi-0.2.8.bazel @@ -28,25 +28,25 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "winapi", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.8", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.8", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/winapi-0.3.9.BUILD.bazel b/cargo/remote/BUILD.winapi-0.3.9.bazel similarity index 73% rename from cargo/remote/winapi-0.3.9.BUILD.bazel rename to cargo/remote/BUILD.winapi-0.3.9.bazel index 27a5827a9..675f5f6f8 100644 --- a/cargo/remote/winapi-0.3.9.BUILD.bazel +++ b/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -28,91 +28,17 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "winapi_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ - ], - rustc_flags = [ - "--cap-lints=allow", - ], - crate_features = [ - "consoleapi", - "errhandlingapi", - "fileapi", - "handleapi", - "impl-debug", - "impl-default", - "knownfolders", - "lmcons", - "minschannel", - "minwinbase", - "minwindef", - "ntdef", - "ntsecapi", - "ntstatus", - "objbase", - "processenv", - "profileapi", - "schannel", - "securitybaseapi", - "shlobj", - "sspi", - "std", - "sysinfoapi", - "timezoneapi", - "winbase", - "wincon", - "wincrypt", - "winerror", - "winnt", - "winreg", - "winsock2", - "ws2def", - "ws2ipdef", - "ws2tcpip", - "wtypesbase", - ], build_script_env = { }, - data = glob(["**"]), - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.9", - visibility = ["//visibility:private"], -) - - -# buildifier: leave-alone -rust_library( - name = "winapi", - crate_type = "lib", - deps = [ - ":winapi_build_script", - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.9", - tags = [ - "cargo-raze", - "manual", - ], crate_features = [ "consoleapi", "errhandlingapi", @@ -150,4 +76,75 @@ rust_library( "ws2tcpip", "wtypesbase", ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.9", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "winapi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "consoleapi", + "errhandlingapi", + "fileapi", + "handleapi", + "impl-debug", + "impl-default", + "knownfolders", + "lmcons", + "minschannel", + "minwinbase", + "minwindef", + "ntdef", + "ntsecapi", + "ntstatus", + "objbase", + "processenv", + "profileapi", + "schannel", + "securitybaseapi", + "shlobj", + "sspi", + "std", + "sysinfoapi", + "timezoneapi", + "winbase", + "wincon", + "wincrypt", + "winerror", + "winnt", + "winreg", + "winsock2", + "ws2def", + "ws2ipdef", + "ws2tcpip", + "wtypesbase", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.9", + # buildifier: leave-alone + deps = [ + ":winapi_build_script", + ], ) diff --git a/cargo/remote/winapi-build-0.1.1.BUILD.bazel b/cargo/remote/BUILD.winapi-build-0.1.1.bazel similarity index 95% rename from cargo/remote/winapi-build-0.1.1.BUILD.bazel rename to cargo/remote/BUILD.winapi-build-0.1.1.bazel index 175749ad6..44814dffe 100644 --- a/cargo/remote/winapi-build-0.1.1.BUILD.bazel +++ b/cargo/remote/BUILD.winapi-build-0.1.1.bazel @@ -28,7 +28,7 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets alias( name = "winapi_build", @@ -39,23 +39,23 @@ alias( ], ) -# buildifier: leave-alone rust_library( name = "build", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.1.1", + # buildifier: leave-alone + deps = [ ], ) diff --git a/cargo/remote/winapi-i686-pc-windows-gnu-0.4.0.BUILD.bazel b/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel similarity index 93% rename from cargo/remote/winapi-i686-pc-windows-gnu-0.4.0.BUILD.bazel rename to cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index 9741d4f2e..d3e4c0270 100644 --- a/cargo/remote/winapi-i686-pc-windows-gnu-0.4.0.BUILD.bazel +++ b/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -28,56 +28,53 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "winapi_i686_pc_windows_gnu_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.4.0", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "winapi_i686_pc_windows_gnu", - crate_type = "lib", - deps = [ - ":winapi_i686_pc_windows_gnu_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.0", + # buildifier: leave-alone + deps = [ + ":winapi_i686_pc_windows_gnu_build_script", ], ) diff --git a/cargo/remote/winapi-util-0.1.5.BUILD.bazel b/cargo/remote/BUILD.winapi-util-0.1.5.bazel similarity index 96% rename from cargo/remote/winapi-util-0.1.5.BUILD.bazel rename to cargo/remote/BUILD.winapi-util-0.1.5.bazel index fe7177042..4db57b524 100644 --- a/cargo/remote/winapi-util-0.1.5.BUILD.bazel +++ b/cargo/remote/BUILD.winapi-util-0.1.5.bazel @@ -28,12 +28,27 @@ licenses([ "unencumbered", # Unlicense from expression "Unlicense OR MIT" ]) -# Generated targets +# Generated Targets -# buildifier: leave-alone rust_library( name = "winapi_util", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.5", + # buildifier: leave-alone deps = [ ] + selects.with_or({ # cfg(windows) @@ -45,19 +60,4 @@ rust_library( ], "//conditions:default": [], }), - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.5", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], - aliases = { - }, ) diff --git a/cargo/remote/winapi-x86_64-pc-windows-gnu-0.4.0.BUILD.bazel b/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel similarity index 93% rename from cargo/remote/winapi-x86_64-pc-windows-gnu-0.4.0.BUILD.bazel rename to cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index 1aad8a701..8e89aa9c1 100644 --- a/cargo/remote/winapi-x86_64-pc-windows-gnu-0.4.0.BUILD.bazel +++ b/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -28,56 +28,53 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "winapi_x86_64_pc_windows_gnu_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.4.0", visibility = ["//visibility:private"], + deps = [ + ], ) - -# buildifier: leave-alone rust_library( name = "winapi_x86_64_pc_windows_gnu", - crate_type = "lib", - deps = [ - ":winapi_x86_64_pc_windows_gnu_build_script", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.4.0", + # buildifier: leave-alone + deps = [ + ":winapi_x86_64_pc_windows_gnu_build_script", ], ) diff --git a/cargo/remote/winreg-0.7.0.BUILD.bazel b/cargo/remote/BUILD.winreg-0.7.0.bazel similarity index 95% rename from cargo/remote/winreg-0.7.0.BUILD.bazel rename to cargo/remote/BUILD.winreg-0.7.0.bazel index dff30da00..c49a13428 100644 --- a/cargo/remote/winreg-0.7.0.BUILD.bazel +++ b/cargo/remote/BUILD.winreg-0.7.0.bazel @@ -28,31 +28,36 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets +# Generated Targets + # Unsupported target "basic_usage" with type "example" omitted + # Unsupported target "enum" with type "example" omitted + # Unsupported target "installed_apps" with type "example" omitted + # Unsupported target "serialization" with type "example" omitted + # Unsupported target "transactions" with type "example" omitted -# buildifier: leave-alone rust_library( name = "winreg", - crate_type = "lib", - deps = [ - "@raze__winapi__0_3_9//:winapi", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.7.0", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.7.0", + # buildifier: leave-alone + deps = [ + "@raze__winapi__0_3_9//:winapi", ], ) diff --git a/cargo/remote/ws2_32-sys-0.2.1.BUILD.bazel b/cargo/remote/BUILD.ws2_32-sys-0.2.1.bazel similarity index 94% rename from cargo/remote/ws2_32-sys-0.2.1.BUILD.bazel rename to cargo/remote/BUILD.ws2_32-sys-0.2.1.bazel index e023eab9a..89521f708 100644 --- a/cargo/remote/ws2_32-sys-0.2.1.BUILD.bazel +++ b/cargo/remote/BUILD.ws2_32-sys-0.2.1.bazel @@ -28,39 +28,36 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# buildifier: disable=load-on-top +# Generated Targets# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) -# buildifier: leave-alone cargo_build_script( name = "ws2_32_sys_build_script", srcs = glob(["**/*.rs"]), - crate_root = "build.rs", - edition = "2015", - deps = [ - "@raze__winapi_build__0_1_1//:winapi_build", + build_script_env = { + }, + crate_features = [ ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - crate_features = [ - ], - build_script_env = { - }, - data = glob(["**"]), tags = [ "cargo-raze", "manual", ], version = "0.2.1", visibility = ["//visibility:private"], + deps = [ + "@raze__winapi_build__0_1_1//:winapi_build", + ], ) - alias( name = "ws2_32_sys", actual = ":ws2_32", @@ -70,25 +67,25 @@ alias( ], ) -# buildifier: leave-alone rust_library( name = "ws2_32", - crate_type = "lib", - deps = [ - ":ws2_32_sys_build_script", - "@raze__winapi__0_2_8//:winapi", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.1", tags = [ "cargo-raze", "manual", ], - crate_features = [ + version = "0.2.1", + # buildifier: leave-alone + deps = [ + ":ws2_32_sys_build_script", + "@raze__winapi__0_2_8//:winapi", ], ) diff --git a/cargo/remote/zip-0.5.6.BUILD.bazel b/cargo/remote/BUILD.zip-0.5.6.bazel similarity index 96% rename from cargo/remote/zip-0.5.6.BUILD.bazel rename to cargo/remote/BUILD.zip-0.5.6.bazel index 8bb497863..028394a88 100644 --- a/cargo/remote/zip-0.5.6.BUILD.bazel +++ b/cargo/remote/BUILD.zip-0.5.6.bazel @@ -28,42 +28,52 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated targets -# Unsupported target "end_to_end" with type "test" omitted -# Unsupported target "extract" with type "example" omitted -# Unsupported target "extract_lorem" with type "example" omitted -# Unsupported target "file_info" with type "example" omitted -# Unsupported target "invalid_date" with type "test" omitted +# Generated Targets + # Unsupported target "read_entry" with type "bench" omitted + +# Unsupported target "extract" with type "example" omitted + +# Unsupported target "extract_lorem" with type "example" omitted + +# Unsupported target "file_info" with type "example" omitted + # Unsupported target "stdin_info" with type "example" omitted + # Unsupported target "write_dir" with type "example" omitted + # Unsupported target "write_sample" with type "example" omitted -# buildifier: leave-alone rust_library( name = "zip", + srcs = glob(["**/*.rs"]), + crate_features = [ + "deflate", + "flate2", + "time", + ], + crate_root = "src/lib.rs", crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.6", + # buildifier: leave-alone deps = [ "@raze__crc32fast__1_2_1//:crc32fast", "@raze__flate2__1_0_19//:flate2", "@raze__podio__0_1_7//:podio", "@raze__time__0_1_44//:time", ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.5.6", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - "deflate", - "flate2", - "time", - ], ) + +# Unsupported target "end_to_end" with type "test" omitted + +# Unsupported target "invalid_date" with type "test" omitted + # Unsupported target "zip64_large" with type "test" omitted diff --git a/cargo/remote/coarsetime-0.1.14.BUILD.bazel b/cargo/remote/coarsetime-0.1.14.BUILD.bazel deleted file mode 100644 index a07644d2a..000000000 --- a/cargo/remote/coarsetime-0.1.14.BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load( - "@io_bazel_rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # ISC from expression "ISC" -]) - -# Generated targets - -# buildifier: leave-alone -rust_library( - name = "coarsetime", - crate_type = "lib", - deps = [ - "@raze__lazy_static__1_4_0//:lazy_static", - "@raze__libc__0_2_80//:libc", - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.14", - tags = [ - "cargo-raze", - "manual", - ], - crate_features = [ - ], -) diff --git a/cargo/update.py b/cargo/update.py index 074ecba9f..faa96424f 100644 --- a/cargo/update.py +++ b/cargo/update.py @@ -23,8 +23,6 @@ COMMITS_SHALLOW_SINCE = { "96e1358555c49905de89170f2b1102a7d8b6c4c2": "1598411535 +1000", # prost "4ded4a98ef339da0b7babd4efee3fbe8adaf746b": "1598739849 -0700", - # coarsetime - "f9e2c86216f0f4803bc75404828318fc206dab29": "1594611111 +1000", # pyo3 "3b3ba4e3abd57bc3b8f86444b3f61e6e2f4c5fc1": "1603809036 +0900", } @@ -34,55 +32,125 @@ import sys import subprocess import shutil import re +import glob if os.getcwd() != os.path.abspath(os.path.dirname(__file__)): print("Run this from the cargo/ folder") sys.exit(1) -with open("raze.toml") as file: - header = file.read() -deps = [] -with open("../rslib/Cargo.toml") as file: - started = False - for line in file.readlines(): - if line.startswith("# BEGIN DEPENDENCIES"): - started = True - continue - if not started: - continue - deps.append(line.strip()) +def write_cargo_toml(): + with open("raze.toml") as file: + header = file.read() -deps.extend(EXTRA_DEPS) + deps = [] + with open("../rslib/Cargo.toml") as file: + started = False + for line in file.readlines(): + if line.startswith("# BEGIN DEPENDENCIES"): + started = True + continue + if not started: + continue + deps.append(line.strip()) -# write out Cargo.toml -with open("Cargo.toml", "w") as file: - file.write(header) - file.write("\n".join(deps)) + deps.extend(EXTRA_DEPS) -# update Cargo.lock -subprocess.run(["cargo", "update"], check=True) -input("hit enter to proceed") + # write out Cargo.toml + with open("Cargo.toml", "w") as file: + file.write(header) + file.write("\n".join(deps)) -# generate cargo-raze files -if os.path.exists("remote"): - shutil.rmtree("remote") -subprocess.run(["cargo-raze"], check=True) -os.remove("Cargo.toml") -output_lines = [] -commit_re = re.compile('\s+commit = "([0-9a-f]+)",') -with open("crates.bzl") as file: - for line in file.readlines(): - if match := commit_re.match(line): - commit = match.group(1) - if commit in line: - if since := COMMITS_SHALLOW_SINCE.get(commit): - output_lines.append(f' shallow_since = "{since}",\n') - else: - print(f"{commit} not in COMMITS_SHALLOW_SINCE") - output_lines.append(line) +def remove_cargo_toml(): + os.remove("Cargo.toml") -with open("crates.bzl", "w") as file: - for line in output_lines: - file.write(line) + +def update_cargo_lock(): + # update Cargo.lock + subprocess.run(["cargo", "update"], check=True) + + +def run_cargo_raze(): + # generate cargo-raze files + if os.path.exists("remote"): + shutil.rmtree("remote") + subprocess.run(["cargo-raze"], check=True) + + +def write_licenses(): + # dump licenses + result = subprocess.check_output(["cargo", "license", "-j"]) + with open("licenses.json", "wb") as file: + file.write(result) + + # export license file + with open("BUILD.bazel", "a", encoding="utf8") as file: + file.write( + """ +exports_files(["licenses.json"]) +""" + ) + + +def update_crates_bzl(): + output_lines = [] + commit_re = re.compile('\s+commit = "([0-9a-f]+)",') + reqwest_build_prefix = re.compile(r"/remote:BUILD.reqwest-\d+\.\d+\.\d+") + + with open("crates.bzl") as file: + for line in file.readlines(): + # update shallow-since references for git crates + if match := commit_re.match(line): + commit = match.group(1) + if commit in line: + if since := COMMITS_SHALLOW_SINCE.get(commit): + output_lines.append(f' shallow_since = "{since}",\n') + else: + print(f"{commit} not in COMMITS_SHALLOW_SINCE") + + # use our custom reqwest build file + if match := reqwest_build_prefix.search(line): + line = line.replace(match.group(0), ":BUILD.reqwest") + + output_lines.append(line) + + with open("crates.bzl", "w") as file: + for line in output_lines: + file.write(line) + + +def generated_reqwest_build_file(): + return glob.glob("remote/*reqwest-*")[0] + + +def update_reqwest_deps(): + "Update version numbers in our custom build file." + dep_with_version = re.compile(r"@raze__(.+?)__([\d_]+)//") + + version_map = {} + with open(generated_reqwest_build_file(), encoding="utf8") as file: + for line in file.readlines(): + if match := dep_with_version.search(line): + version_map[match.group(1)] = match.group(2) + + with open("BUILD.reqwest.bazel", "r+", encoding="utf8") as file: + + def repl(m): + name = m.group(1) + current_version = m.group(2) + new_version = version_map.get(name) + return m.group(0).replace(current_version, new_version) + + data = dep_with_version.sub(repl, file.read()) + file.seek(0) + file.write(data) + + +write_cargo_toml() +update_cargo_lock() +run_cargo_raze() +write_licenses() +update_crates_bzl() +update_reqwest_deps() +remove_cargo_toml() diff --git a/defs.bzl b/defs.bzl index d8e53854a..6d288e282 100644 --- a/defs.bzl +++ b/defs.bzl @@ -1,4 +1,5 @@ load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") +load("@bazel_skylib//lib:versions.bzl", "versions") load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") load("@io_bazel_rules_rust//:workspace.bzl", "bazel_version") load("@net_ankiweb_anki//cargo:crates.bzl", "raze_fetch_remote_crates") @@ -15,6 +16,8 @@ anki_version = "2.1.36" def setup_deps(): bazel_skylib_workspace() + versions.check(minimum_bazel_version = "3.7.0") + rust_repositories( edition = "2018", # use_worker = True, diff --git a/docs/development.md b/docs/development.md index 0c8e29233..19c7a100b 100644 --- a/docs/development.md +++ b/docs/development.md @@ -31,7 +31,7 @@ From Anki 2.1.36 onwards: ``` $ python -m venv pyenv -$ pyenv/bin/pip install aqt anki pyqtwebengine +$ pyenv/bin/pip install aqt $ pyenv/bin/python -c 'import aqt; aqt.run()' ``` @@ -60,21 +60,21 @@ bazel test //... ## Fixing formatting -If the format tests fail, most can be fixed by running format_fix -in the relevant folder: +If the format tests fail, most can be fixed by running `format` +in the relevant package: ``` -bazel run //rslib:format_fix -bazel run //pylib:format_fix -bazel run //pylib/rsbridge:format_fix -bazel run //qt:format_fix +bazel run //rslib:format +bazel run //pylib:format +bazel run //qt:format +bazel run //ts:format +bazel run //pylib/rsbridge:format ``` -Currently the typescript code needs to be formatted differently: +If you're in one of those folders, you can use the short form: ``` -cd ts -./node_modules/.bin/prettier --write . +bazel run format ``` ## Building redistributable wheels @@ -87,6 +87,21 @@ bazel build -c opt //qt/aqt:wheel The generated wheel paths will be printed as the build completes. To install them, see earlier in this document. +## Audio + +Audio playing requires `mpv` or `mplayer` to be in your system path. + +Currently pyaudio is not included as part of the build or the generated wheel +requirements, so audio recording will not work when running in place. When installing +the wheels, you can optionally install pyaudio as well. + +On Linux/Mac, install the portaudio libs: (`apt install portaudio19-dev` / `brew install portaudio`), then `pip install pyaudio`. + +On Windows, install the Python 3.8 wheel from +https://github.com/ankitects/windows-ci-tools. + +Recording also requires `lame` to be in your system path. + ## Tracing build problems You can run bazel with '-s' to print the commands that are being executed. @@ -107,6 +122,14 @@ and automatic backups will be disabled - so please don't use this except on a te If LOGTERM is set before starting Anki, warnings and error messages that are normally placed in the collection2.log file will also be printed on stdout. +## Cleaning + +Unlike the old Make system, a "clean build" should almost never be required +unless you are debugging issues with the build system. But if you need to get +things to a fresh state, you can run `bazel clean --expunge`. Afte doing so, +make sure you remove the ts/node_modules folder, or subsequent build commands +will fail with a "no such file or directory node_modules/anki" message. + ## Mixing development and study You may wish to create a separate profile with File>Switch Profile for use @@ -119,14 +142,3 @@ If you're using PyCharm: - click "Edit 'run'..." - in Script options and enter: "-p [dev profile name]" without the quotes - click "Ok" - -# Instructions need updating: - -optional deps: -pyaudio -dpkg: portaudio19-dev - -mpv -lame - -1. Download and install the pyaudio wheel from: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio diff --git a/docs/linux.md b/docs/linux.md index 3e7c4ba11..794b2790b 100644 --- a/docs/linux.md +++ b/docs/linux.md @@ -7,7 +7,7 @@ These instructions are written for Debian/Ubuntu; adjust for your distribution. **Ensure some basic tools are installed**: ``` -$ sudo apt install bash grep findutils curl gcc g++ git gettext +$ sudo apt install bash grep findutils curl gcc g++ git ``` The 'find' utility is 'findutils' on Debian. diff --git a/docs/mac.md b/docs/mac.md index ddb2bb249..2a6aa9d43 100644 --- a/docs/mac.md +++ b/docs/mac.md @@ -14,7 +14,7 @@ Install Homebrew from Then install deps: ``` -$ brew install rsync gettext bazelisk +$ brew install rsync bazelisk ``` **Install Python 3.8**: diff --git a/docs/windows.md b/docs/windows.md index 2fa20135e..aeebb229e 100644 --- a/docs/windows.md +++ b/docs/windows.md @@ -10,7 +10,7 @@ The build system requires [Developer Mode](https://docs.microsoft.com/en-us/wind **Visual Studio**: -Isntall the [Visual Studio build tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019). +Install the [Visual Studio build tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019). Make sure the "C++ build tools" box is selected, and leave the default optional components enabled on the right. @@ -31,13 +31,13 @@ Install [msys2](https://www.msys2.org/) into the default folder location. After installation completes, run msys2, and run the following command: ``` -$ pacman -S git gettext +$ pacman -S git ``` **Bazelisk**: Use Start>Run to open PowerShell. Create a folder to store Bazelisk -and its working data. Anki's build scripts expect to find it in c:\bazel +and its working data. Anki's build scripts expect to find it in \bazel on the same drive as the source folder. ``` PS> mkdir \bazel @@ -50,11 +50,14 @@ Then grab Bazelisk: PS> \msys64\usr\bin\curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-windows-amd64.exe -o bazel.exe ``` +NOTE: At the time of writing, Windows Defender is claiming this file has a virus. If it disappears +the first time you run Bazel, restoring it from the Defender settings should allow you to proceed. + **Source folder**: -Anki's source files should not need to be in a specific location, but -the path should be kept as short as possible, and we test with the source -stored in c:\anki. +Anki's source files do not need to be in a specific location other than on the +same drive as `\bazel`, but it's best to avoid long paths, as they can cause +problems. ## Build failures @@ -89,11 +92,3 @@ Note that where the instructions on that page say "bazel", please use ".\bazel" instead. This runs bazel.bat inside the Anki source folder, instead of calling Bazel directly. This takes care of setting up the path and output folder correctly, which avoids issues with long path names. - -## Cleaning notes - -Unlike the old Make system, a "clean build" should almost never be required -unless you are debugging issues with the build system. But if you need to run -"bazel clean --expunge", make sure you remove the ts/node_modules folder -afterwards, or it will cause a "no such file or directory node_modules/anki" -error on the subsequent build on Windows. diff --git a/ftl/BUILD.bazel b/ftl/BUILD.bazel new file mode 100644 index 000000000..5356aa65d --- /dev/null +++ b/ftl/BUILD.bazel @@ -0,0 +1,14 @@ +filegroup( + name = "ftl", + srcs = [ + "@rslib_ftl//:files", + "@extra_ftl//:files", + ] + glob(["**/*.ftl"]), + visibility = ["//rslib:__subpackages__"], +) + +# export this file as a way of locating the top level folder in $(location ...) +exports_files( + ["BUILD.bazel"], + visibility = ["//rslib:__subpackages__"], +) diff --git a/ftl/core/actions.ftl b/ftl/core/actions.ftl new file mode 100644 index 000000000..5822bb7ab --- /dev/null +++ b/ftl/core/actions.ftl @@ -0,0 +1,32 @@ +actions-add = Add +actions-blue-flag = Blue Flag +actions-cancel = Cancel +actions-choose = Choose +actions-close = Close +actions-copy = Copy +actions-custom-study = Custom Study +actions-decks = Decks +actions-delete = Delete +actions-export = Export +actions-filter = Filter +actions-green-flag = Green Flag +actions-help = Help +actions-import = Import +actions-manage = Manage... +actions-name = Name: +actions-new = New +actions-new-name = New name: +actions-options = Options +actions-options-for = Options for { $val } +actions-orange-flag = Orange Flag +actions-preview = Preview +actions-rebuild = Rebuild +actions-red-flag = Red Flag +actions-rename = Rename +actions-rename-deck = Rename Deck +actions-replay-audio = Replay Audio +actions-reposition = Reposition +actions-save = Save +actions-search = Search +actions-shortcut-key = Shortcut key: { $val } +actions-suspend-card = Suspend Card diff --git a/ftl/core/adding.ftl b/ftl/core/adding.ftl new file mode 100644 index 000000000..03ea6b865 --- /dev/null +++ b/ftl/core/adding.ftl @@ -0,0 +1,9 @@ +adding-add-shortcut-ctrlandenter = Add (shortcut: ctrl+enter) +adding-added = Added +adding-close-and-lose-current-input = Close and lose current input? +adding-edit = Edit "{ $val }" +adding-history = History +adding-note-deleted = (Note deleted) +adding-shortcut = Shortcut: { $val } +adding-the-first-field-is-empty = The first field is empty. +adding-you-have-a-cloze-deletion-note = You have a cloze deletion note type but have not made any cloze deletions. Proceed? diff --git a/ftl/core/browsing.ftl b/ftl/core/browsing.ftl new file mode 100644 index 000000000..82a089255 --- /dev/null +++ b/ftl/core/browsing.ftl @@ -0,0 +1,118 @@ +browsing-add-notes = Add Notes... +browsing-add-tags = Add Tags +browsing-add-tags2 = Add Tags... +browsing-added-today = Added Today +browsing-addon = Add-on +browsing-again-today = Again Today +browsing-all-card-types = All Card Types +browsing-all-fields = All Fields +browsing-answer = Answer +browsing-any-cards-mapped-to-nothing-will = Any cards mapped to nothing will be deleted. If a note has no remaining cards, it will be lost. Are you sure you want to continue? +browsing-any-flag = Any Flag +browsing-browser-appearance = Browser Appearance +browsing-browser-options = Browser Options +browsing-buried = Buried +browsing-card = Card +browsing-card-list = Card List +browsing-card-state = Card State +browsing-cards-cant-be-manually-moved-into = Cards can't be manually moved into a filtered deck. +browsing-change-deck = Change Deck +browsing-change-deck2 = Change Deck... +browsing-change-note-type = Change Note Type +browsing-change-note-type2 = Change Note Type... +browsing-change-to = Change { $val } to: +browsing-clear-unused = Clear Unused +browsing-clear-unused-tags = Clear Unused Tags +browsing-created = Created +browsing-ctrlandshiftande = Ctrl+Shift+E +browsing-current-deck = Current Deck +browsing-current-note-type = Current note type: +browsing-delete-notes = Delete Notes +browsing-delete-tags = Delete Tags +browsing-duplicate = duplicate +browsing-ease = Ease +browsing-end = End +browsing-enter-tags-to-add = Enter tags to add: +browsing-enter-tags-to-delete = Enter tags to delete: +browsing-filter = Filter... +browsing-filtered = (filtered) +browsing-find = Find: +browsing-find-and-replace = Find and Replace +browsing-find-duplicates = Find Duplicates +browsing-first-card = First Card +browsing-flag = Flag +browsing-font = Font: +browsing-font-size = Font Size: +browsing-found-as-across-bs = Found %(a)s across %(b)s. +browsing-home = Home +browsing-ignore-case = Ignore case +browsing-in = In: +browsing-interval = Interval +browsing-last-card = Last Card +browsing-learning = (learning) +browsing-line-size = Line Size: +browsing-manage-note-types = Manage Note Types... +browsing-move-cards = Move Cards +browsing-move-cards-to-deck = Move cards to deck: +browsing-nd-names = %(n)d: %(name)s +browsing-new = (new) +browsing-new-note-type = New note type: +browsing-no-flag = No Flag +browsing-note = Note +browsing-notes-tagged = Notes tagged. +browsing-nothing = Nothing +browsing-only-new-cards-can-be-repositioned = Only new cards can be repositioned. +browsing-optional-filter = Optional filter: +browsing-override-back-template = Override back template: +browsing-override-font = Override font: +browsing-override-front-template = Override front template: +browsing-place-at-end-of-new-card = Place at end of new card queue +browsing-place-in-review-queue-with-interval = Place in review queue with interval between: +browsing-please-give-your-filter-a-name = Please give your filter a name: +browsing-please-select-cards-from-only-one = Please select cards from only one note type. +browsing-preview-selected-card = Preview Selected Card ({ $val }) +browsing-question = Question +browsing-queue-bottom = Queue bottom: { $val } +browsing-queue-top = Queue top: { $val } +browsing-randomize-order = Randomize order +browsing-remove-current-filter = Remove Current Filter... +browsing-remove-from-your-saved-searches = Remove { $val } from your saved searches? +browsing-remove-tags = Remove Tags... +browsing-replace-with = Replace With: +browsing-reposition = Reposition... +browsing-reposition-new-cards = Reposition New Cards +browsing-reschedule = Reschedule +browsing-save-current-filter = Save Current Filter... +browsing-search-in = Search in: +browsing-search-within-formatting-slow = Search within formatting (slow) +browsing-shift-position-of-existing-cards = Shift position of existing cards +browsing-sidebar = Sidebar +browsing-sort-field = Sort Field +browsing-sorting-on-this-column-is-not = Sorting on this column is not supported. Please choose another. +browsing-start-position = Start position: +browsing-step = Step: +browsing-studied-today = Studied Today +browsing-suspended = Suspended +browsing-tag-duplicates = Tag Duplicates +browsing-target-field = Target field: +browsing-today = Today +browsing-toggle-mark = Toggle Mark +browsing-toggle-suspend = Toggle Suspend +browsing-treat-input-as-regular-expression = Treat input as regular expression +browsing-type-here-to-search = +browsing-whole-collection = Whole Collection +browsing-you-must-have-at-least-one = You must have at least one column. +browsing-group = { $count -> + [one] { $count } group + *[other] { $count } groups + } +browsing-note-count = { $count -> + [one] { $count } note + *[other] { $count } notes + } +browsing-note-deleted = { $count -> + [one] { $count } note deleted. + *[other] { $count } notes deleted. + } +browsing-window-title = Browse ({ $selected } of { $total } cards selected) + diff --git a/rslib/ftl/card-stats.ftl b/ftl/core/card-stats.ftl similarity index 100% rename from rslib/ftl/card-stats.ftl rename to ftl/core/card-stats.ftl diff --git a/rslib/ftl/card-template-rendering.ftl b/ftl/core/card-template-rendering.ftl similarity index 100% rename from rslib/ftl/card-template-rendering.ftl rename to ftl/core/card-template-rendering.ftl diff --git a/ftl/core/card-templates.ftl b/ftl/core/card-templates.ftl new file mode 100644 index 000000000..8b66fc00e --- /dev/null +++ b/ftl/core/card-templates.ftl @@ -0,0 +1,50 @@ +card-templates-changes-will-affect-notes = + { $count -> + [one] Changes below will affect the { $count } note that uses this card type. + *[other] Changes below will affect the { $count } notes that use this card type. + } +card-templates-card-type = Card Type: +card-templates-front-template = Front Template +card-templates-back-template = Back Template +card-templates-template-styling = Styling +card-templates-front-preview = Front Preview +card-templates-back-preview = Back Preview +card-templates-preview-box = Preview +card-templates-template-box = Template +card-templates-sample-cloze = This is a {"{{c1::"}sample{"}}"} cloze deletion. +card-templates-fill-empty = Fill Empty Fields +card-templates-night-mode = Night Mode +# Add "mobile" class to card preview, so the card appears like it would +# on a mobile device. +card-templates-add-mobile-class = Add Mobile Class +card-templates-preview-settings = Options +card-templates-invalid-template-number = Card template { $number } has a problem. +card-templates-changes-saved = Changes saved. +card-templates-discard-changes = Discard changes? +card-templates-add-card-type = Add Card Type... +card-templates-anki-couldnt-find-the-line-between = Anki couldn't find the line between the question and answer. Please adjust the template manually to switch the question and answer. +card-templates-at-least-one-card-type-is = At least one card type is required. +card-templates-browser-appearance = Browser Appearance... +card-templates-card = Card { $val } +card-templates-card-types = Card Types +card-templates-card-types-for = Card Types for { $val } +card-templates-cloze = Cloze { $val } +card-templates-deck-override = Deck Override... +card-templates-delete-the-as-card-type-and = Delete the '%(a)s' card type, and its %(b)s? +card-templates-enter-deck-to-place-new = Enter deck to place new { $val } cards in, or leave blank: +card-templates-enter-new-card-position-1 = Enter new card position (1...{ $val }): +card-templates-flip = Flip +card-templates-form = Form +card-templates-off = (off) +card-templates-on = (on) +card-templates-remove-card-type = Remove Card Type... +card-templates-rename-card-type = Rename Card Type... +card-templates-reposition-card-type = Reposition Card Type... +card-templates-card-count = { $count -> + [one] { $count } card + *[other] { $count } cards + } +card-templates-this-will-create-card-proceed = { $count -> + [one] This will create { $count } card. Proceed? + *[other] This will create { $count } cards. Proceed? + } diff --git a/ftl/core/custom-study.ftl b/ftl/core/custom-study.ftl new file mode 100644 index 000000000..7355ae166 --- /dev/null +++ b/ftl/core/custom-study.ftl @@ -0,0 +1,28 @@ +custom-study-must-rename-deck = Please rename the existing Custom Study deck first. +custom-study-all-cards-in-random-order-dont = All cards in random order (don't reschedule) +custom-study-all-review-cards-in-random-order = All review cards in random order +custom-study-cards = cards +custom-study-cards-from-the-deck = cards from the deck +custom-study-choose-tags = Choose Tags +custom-study-custom-study-session = Custom Study Session +custom-study-due-cards-only = Due cards only +custom-study-increase-todays-new-card-limit = Increase today's new card limit +custom-study-increase-todays-new-card-limit-by = Increase today's new card limit by +custom-study-increase-todays-review-card-limit = Increase today's review card limit +custom-study-increase-todays-review-limit-by = Increase today's review limit by +custom-study-new-cards-in-deck-over-today = New cards in deck over today limit: { $val } +custom-study-new-cards-only = New cards only +custom-study-no-cards-matched-the-criteria-you = No cards matched the criteria you provided. +custom-study-ok = OK +custom-study-preview-new-cards = Preview new cards +custom-study-preview-new-cards-added-in-the = Preview new cards added in the last +custom-study-require-one-or-more-of-these = Require one or more of these tags: +custom-study-review-ahead = Review ahead +custom-study-review-ahead-by = Review ahead by +custom-study-review-cards-forgotten-in-last = Review cards forgotten in last +custom-study-review-forgotten-cards = Review forgotten cards +custom-study-reviews-due-in-deck-over-today = Reviews due in deck over today limit: { $val } +custom-study-select = Select +custom-study-select-tags-to-exclude = Select tags to exclude: +custom-study-selective-study = Selective Study +custom-study-study-by-card-state-or-tag = Study by card state or tag diff --git a/rslib/ftl/database-check.ftl b/ftl/core/database-check.ftl similarity index 100% rename from rslib/ftl/database-check.ftl rename to ftl/core/database-check.ftl diff --git a/rslib/ftl/deck-config.ftl b/ftl/core/deck-config.ftl similarity index 100% rename from rslib/ftl/deck-config.ftl rename to ftl/core/deck-config.ftl diff --git a/ftl/core/decks.ftl b/ftl/core/decks.ftl new file mode 100644 index 000000000..4eecee62a --- /dev/null +++ b/ftl/core/decks.ftl @@ -0,0 +1,37 @@ +decks-add-new-deck-ctrlandn = Add New Deck (Ctrl+N) +decks-are-you-sure-you-wish-to = Are you sure you wish to delete { $val }? +decks-build = Build +decks-cards-selected-by = cards selected by +decks-create-deck = Create Deck +decks-custom-steps-in-minutes = Custom steps (in minutes) +decks-deck = Deck +decks-decreasing-intervals = Decreasing intervals +decks-delete-deck = Delete Deck +decks-enable-second-filter = Enable second filter +decks-filter = Filter: +decks-filter-2 = Filter 2 +decks-get-shared = Get Shared +decks-import-file = Import File +decks-increasing-intervals = Increasing intervals +decks-latest-added-first = Latest added first +decks-limit-to = Limit to +decks-minutes = minutes +decks-most-lapses = Most lapses +decks-name-for-deck = Name for deck: +decks-new-deck-name = New deck name: +decks-no-deck = [no deck] +decks-oldest-seen-first = Oldest seen first +decks-order-added = Order added +decks-order-due = Order due +decks-please-select-something = Please select something. +decks-random = Random +decks-relative-overdueness = Relative overdueness +decks-repeat-failed-cards-after = Repeat failed cards after +decks-reschedule-cards-based-on-my-answers = Reschedule cards based on my answers in this deck +decks-study = Study +decks-study-deck = Study Deck +decks-the-provided-search-did-not-match = The provided search did not match any cards. Would you like to revise it? +decks-it-has-card = { $count -> + [one] It has { $count } card. + *[other] It has { $count } cards. + } diff --git a/ftl/core/editing.ftl b/ftl/core/editing.ftl new file mode 100644 index 000000000..b968bc8f0 --- /dev/null +++ b/ftl/core/editing.ftl @@ -0,0 +1,35 @@ +editing-add-media = Add Media +editing-an-error-occurred-while-opening = An error occurred while opening { $val } +editing-attach-picturesaudiovideo-f3 = Attach pictures/audio/video (F3) +editing-bold-text-ctrlandb = Bold text (Ctrl+B) +editing-cards = Cards +editing-change-colour-f8 = Change colour (F8) +editing-cloze-deletion-ctrlandshiftandc = Cloze deletion (Ctrl+Shift+C) +editing-couldnt-record-audio-have-you-installed = Couldn't record audio. Have you installed 'lame'? +editing-customize-card-templates-ctrlandl = Customize Card Templates (Ctrl+L) +editing-customize-fields = Customize Fields +editing-cut = Cut +editing-edit-current = Edit Current +editing-edit-html = Edit HTML +editing-fields = Fields +editing-html-editor = HTML Editor +editing-italic-text-ctrlandi = Italic text (Ctrl+I) +editing-jump-to-tags-with-ctrlandshiftandt = Jump to tags with Ctrl+Shift+T +editing-latex = LaTeX +editing-latex-equation = LaTeX equation +editing-latex-math-env = LaTeX math env. +editing-mathjax-block = MathJax block +editing-mathjax-chemistry = MathJax chemistry +editing-mathjax-inline = MathJax inline +editing-media = Media +editing-paste = Paste +editing-record-audio-f5 = Record audio (F5) +editing-remove-formatting-ctrlandr = Remove formatting (Ctrl+R) +editing-set-foreground-colour-f7 = Set foreground colour (F7) +editing-show-duplicates = Show Duplicates +editing-subscript-ctrland = Subscript (Ctrl+=) +editing-superscript-ctrlandand = Superscript (Ctrl++) +editing-tags = Tags +editing-to-make-a-cloze-deletion-on = To make a cloze deletion on an existing note, you need to change it to a cloze type first, via 'Notes>Change Note Type' +editing-underline-text-ctrlandu = Underline text (Ctrl+U) +editing-warning-cloze-deletions-will-not-work = Warning, cloze deletions will not work until you switch the type at the top to Cloze. diff --git a/rslib/ftl/empty-cards.ftl b/ftl/core/empty-cards.ftl similarity index 100% rename from rslib/ftl/empty-cards.ftl rename to ftl/core/empty-cards.ftl diff --git a/ftl/core/exporting.ftl b/ftl/core/exporting.ftl new file mode 100644 index 000000000..7d66820c5 --- /dev/null +++ b/ftl/core/exporting.ftl @@ -0,0 +1,29 @@ +exporting-all-decks = All Decks +exporting-anki-20-deck = Anki 2.0 Deck +exporting-anki-collection-package = Anki Collection Package +exporting-anki-deck-package = Anki Deck Package +exporting-cards-in-plain-text = Cards in Plain Text +exporting-collection = collection +exporting-collection-exported = Collection exported. +exporting-couldnt-save-file = Couldn't save file: { $val } +exporting-export = Export... +exporting-export-format = Export format: +exporting-include = Include: +exporting-include-html-and-media-references = Include HTML and media references +exporting-include-media = Include media +exporting-include-scheduling-information = Include scheduling information +exporting-include-tags = Include tags +exporting-notes-in-plain-text = Notes in Plain Text +exporting-selected-notes = Selected Notes +exporting-card-exported = { $count -> + [one] { $count } card exported. + *[other] { $count } cards exported. + } +exporting-exported-media-file = { $count -> + [one] Exported { $count } media file + *[other] Exported { $count } media files + } +exporting-note-exported = { $count -> + [one] { $count } note exported. + *[other] { $count } notes exported. + } diff --git a/ftl/core/fields.ftl b/ftl/core/fields.ftl new file mode 100644 index 000000000..ddeb41e33 --- /dev/null +++ b/ftl/core/fields.ftl @@ -0,0 +1,14 @@ +fields-add-field = Add Field +fields-delete-field-from = Delete field from { $val }? +fields-editing-font = Editing Font +fields-field = Field: +fields-field-name = Field name: +fields-fields-for = Fields for { $val } +fields-font = Font: +fields-new-position-1 = New position (1...{ $val }): +fields-notes-require-at-least-one-field = Notes require at least one field. +fields-remember-last-input-when-adding = Remember last input when adding +fields-reverse-text-direction-rtl = Reverse text direction (RTL) +fields-size = Size: +fields-sort-by-this-field-in-the = Sort by this field in the browser +fields-that-field-name-is-already-used = That field name is already used. diff --git a/rslib/ftl/filtering.ftl b/ftl/core/filtering.ftl similarity index 100% rename from rslib/ftl/filtering.ftl rename to ftl/core/filtering.ftl diff --git a/rslib/ftl/findreplace.ftl b/ftl/core/findreplace.ftl similarity index 100% rename from rslib/ftl/findreplace.ftl rename to ftl/core/findreplace.ftl diff --git a/ftl/core/importing.ftl b/ftl/core/importing.ftl new file mode 100644 index 000000000..08c7413da --- /dev/null +++ b/ftl/core/importing.ftl @@ -0,0 +1,74 @@ +importing-failed-debug-info = Import failed. Debugging info: +importing-aborted = Aborted: { $val } +importing-added-duplicate-with-first-field = Added duplicate with first field: { $val } +importing-allow-html-in-fields = Allow HTML in fields +importing-anki-files-are-from-a-very = .anki files are from a very old version of Anki. You can import them with Anki 2.0, available on the Anki website. +importing-anki2-files-are-not-directly-importable = .anki2 files are not directly importable - please import the .apkg or .zip file you have received instead. +importing-appeared-twice-in-file = Appeared twice in file: { $val } +importing-by-default-anki-will-detect-the = By default, Anki will detect the character between fields, such as a tab, comma, and so on. If Anki is detecting the character incorrectly, you can enter it here. Use \t to represent tab. +importing-change = Change +importing-colon = Colon +importing-comma = Comma +importing-empty-first-field = Empty first field: { $val } +importing-field-mapping = Field mapping +importing-field-of-file-is = Field { $val } of file is: +importing-fields-separated-by = Fields separated by: { $val } +importing-file-version-unknown-trying-import-anyway = File version unknown, trying import anyway. +importing-first-field-matched = First field matched: { $val } +importing-identical = Identical +importing-ignore-field = Ignore field +importing-ignore-lines-where-first-field-matches = Ignore lines where first field matches existing note +importing-ignored = +importing-import-even-if-existing-note-has = Import even if existing note has same first field +importing-import-options = Import options +importing-importing-complete = Importing complete. +importing-invalid-file-please-restore-from-backup = Invalid file. Please restore from backup. +importing-map-to = Map to { $val } +importing-map-to-tags = Map to Tags +importing-mapped-to = mapped to { $val } +importing-mapped-to-tags = mapped to Tags +importing-mnemosyne-20-deck-db = Mnemosyne 2.0 Deck (*.db) +importing-multicharacter-separators-are-not-supported-please = Multi-character separators are not supported. Please enter one character only. +importing-notes-added-from-file = Notes added from file: { $val } +importing-notes-found-in-file = Notes found in file: { $val } +importing-notes-skipped-as-theyre-already-in = Notes skipped, as they're already in your collection: { $val } +importing-notes-that-could-not-be-imported = Notes that could not be imported as note type has changed: { $val } +importing-notes-updated-as-file-had-newer = Notes updated, as file had newer version: { $val } +importing-packaged-anki-deckcollection-apkg-colpkg-zip = Packaged Anki Deck/Collection (*.apkg *.colpkg *.zip) +importing-pauker-18-lesson-paugz = Pauker 1.8 Lesson (*.pau.gz) +importing-rows-had-num1d-fields-expected-num2d = '%(row)s' had %(num1)d fields, expected %(num2)d +importing-selected-file-was-not-in-utf8 = Selected file was not in UTF-8 format. Please see the importing section of the manual. +importing-semicolon = Semicolon +importing-skipped = Skipped +importing-supermemo-xml-export-xml = Supermemo XML export (*.xml) +importing-tab = Tab +importing-tag-modified-notes = Tag modified notes: +importing-text-separated-by-tabs-or-semicolons = Text separated by tabs or semicolons (*) +importing-the-first-field-of-the-note = The first field of the note type must be mapped. +importing-the-provided-file-is-not-a = The provided file is not a valid .apkg file. +importing-this-file-does-not-appear-to = This file does not appear to be a valid .apkg file. If you're getting this error from a file downloaded from AnkiWeb, chances are that your download failed. Please try again, and if the problem persists, please try again with a different browser. +importing-this-will-delete-your-existing-collection = This will delete your existing collection and replace it with the data in the file you're importing. Are you sure? +importing-unable-to-import-from-a-readonly = Unable to import from a read-only file. +importing-unknown-file-format = Unknown file format. +importing-update-existing-notes-when-first-field = Update existing notes when first field matches +importing-updated = Updated +importing-note-added = { $count -> + [one] { $count } note added + *[other] { $count } notes added + } +importing-note-imported = { $count -> + [one] { $count } note imported. + *[other] { $count } notes imported. + } +importing-note-unchanged = { $count -> + [one] { $count } note unchanged + *[other] { $count } notes unchanged + } +importing-note-updated = { $count -> + [one] { $count } note updated + *[other] { $count } notes updated + } +importing-processed-media-file = { $count -> + [one] Processed { $count } media file + *[other] Processed { $count } media files + } diff --git a/rslib/ftl/media-check.ftl b/ftl/core/media-check.ftl similarity index 100% rename from rslib/ftl/media-check.ftl rename to ftl/core/media-check.ftl diff --git a/ftl/core/media.ftl b/ftl/core/media.ftl new file mode 100644 index 000000000..7abb5756a --- /dev/null +++ b/ftl/core/media.ftl @@ -0,0 +1,7 @@ +media-error-executing = Error executing { $val }. +media-error-running = Error running { $val } +media-for-security-reasons-is-not = For security reasons, '{ $val }' is not allowed on cards. You can still use it by placing the command in a different package, and importing that package in the LaTeX header instead. +media-generated-file = Generated file: { $val } +media-have-you-installed-latex-and-dvipngdvisvgm = Have you installed latex and dvipng/dvisvgm? +media-recordingtime = Recording...
Time: %0.1f +media-sound-and-video-on-cards-will = Sound and video on cards will not function until mpv or mplayer is installed. diff --git a/rslib/ftl/network.ftl b/ftl/core/network.ftl similarity index 100% rename from rslib/ftl/network.ftl rename to ftl/core/network.ftl diff --git a/ftl/core/notetypes.ftl b/ftl/core/notetypes.ftl new file mode 100644 index 000000000..d20d7fff9 --- /dev/null +++ b/ftl/core/notetypes.ftl @@ -0,0 +1,36 @@ +## Default field names in newly created note types + +notetypes-front-field = Front +notetypes-back-field = Back +notetypes-add-reverse-field = Add Reverse +notetypes-text-field = Text +notetypes-back-extra-field = Back Extra + +## Default note type names + +notetypes-basic-name = Basic +notetypes-basic-reversed-name = Basic (and reversed card) +notetypes-basic-optional-reversed-name = Basic (optional reversed card) +notetypes-basic-type-answer-name = Basic (type in the answer) +notetypes-cloze-name = Cloze + +## Default card template names + +notetypes-card-1-name = Card 1 +notetypes-card-2-name = Card 2 + +notetypes-add = Add: { $val } +notetypes-add-note-type = Add Note Type +notetypes-cards = Cards... +notetypes-clone = Clone: { $val } +notetypes-copy = { $val } copy +notetypes-create-scalable-images-with-dvisvgm = Create scalable images with dvisvgm +notetypes-delete-this-note-type-and-all = Delete this note type and all its cards? +notetypes-delete-this-unused-note-type = Delete this unused note type? +notetypes-fields = Fields... +notetypes-footer = Footer +notetypes-header = Header +notetypes-note-types = Note Types +notetypes-options = Options... +notetypes-please-add-another-note-type-first = Please add another note type first. +notetypes-type = Type diff --git a/ftl/core/preferences.ftl b/ftl/core/preferences.ftl new file mode 100644 index 000000000..10ee2b028 --- /dev/null +++ b/ftl/core/preferences.ftl @@ -0,0 +1,39 @@ +preferences-anki-21-scheduler-beta = Anki 2.1 scheduler (beta) +preferences-automatically-sync-on-profile-openclose = Automatically sync on profile open/close +preferences-backups = Backups +preferences-backups2 = backups +preferences-backupsanki-will-create-a-backup-of =

Backups
Anki will create a backup of your collection each time it is closed.

+preferences-basic = Basic +preferences-change-deck-depending-on-note-type = Change deck depending on note type +preferences-changes-will-take-effect-when-you = Changes will take effect when you restart Anki. +preferences-hardware-acceleration-faster-may-cause-display = Hardware acceleration (faster, may cause display issues) +preferences-hours-past-midnight = hours past midnight +preferences-interface-language = Interface language: +preferences-interrupt-current-audio-when-answering = Interrupt current audio when answering +preferences-keep = Keep +preferences-learn-ahead-limit = Learn ahead limit +preferences-mins = mins +preferences-network = Network +preferences-next-day-starts-at = Next day starts at +preferences-night-mode = Night mode +preferences-note-media-is-not-backed-up = Note: Media is not backed up. Please create a periodic backup of your Anki folder to be safe. +preferences-on-next-sync-force-changes-in = On next sync, force changes in one direction +preferences-paste-clipboard-images-as-png = Paste clipboard images as PNG +preferences-paste-without-shift-key-strips-formatting = Paste without shift key strips formatting +preferences-periodically-sync-media = Periodically sync media +preferences-please-restart-anki-to-complete-language = Please restart Anki to complete language change. +preferences-preferences = Preferences +preferences-scheduling = Scheduling +preferences-show-learning-cards-with-larger-steps = Show learning cards with larger steps before reviews +preferences-show-next-review-time-above-answer = Show next review time above answer buttons +preferences-show-play-buttons-on-cards-with = Show play buttons on cards with audio +preferences-show-remaining-card-count-during-review = Show remaining card count during review +preferences-some-settings-will-take-effect-after = Some settings will take effect after you restart Anki. +preferences-synchronisation = Synchronisation +preferences-synchronizationnot-currently-enabled-click-the-sync = Synchronization
Not currently enabled; click the sync button in the main window to enable. +preferences-synchronize-audio-and-images-too = Synchronize audio and images too +preferences-this-will-reset-any-cards-in = This will reset any cards in learning, clear filtered decks, and change the scheduler version. Proceed? +preferences-timebox-time-limit = Timebox time limit +preferences-user-interface-size = User interface size +preferences-when-adding-default-to-current-deck = When adding, default to current deck +preferences-you-can-restore-backups-via-fileswitch = You can restore backups via File>Switch Profile. diff --git a/ftl/core/profiles.ftl b/ftl/core/profiles.ftl new file mode 100644 index 000000000..46b17545b --- /dev/null +++ b/ftl/core/profiles.ftl @@ -0,0 +1,10 @@ +profiles-anki-could-not-read-your-profile = Anki could not read your profile data. Window sizes and your sync login details have been forgotten. +profiles-anki-could-not-rename-your-profile = Anki could not rename your profile because it could not rename the profile folder on disk. Please ensure you have permission to write to Documents/Anki and no other programs are accessing your profile folders, then try again. +profiles-folder-already-exists = Folder already exists. +profiles-open = Open +profiles-open-backup = Open Backup... +profiles-please-remove-the-folder-and = Please remove the folder { $val } and try again. +profiles-profile-corrupt = Profile Corrupt +profiles-profiles = Profiles +profiles-quit = Quit +profiles-user-1 = User 1 diff --git a/rslib/ftl/scheduling.ftl b/ftl/core/scheduling.ftl similarity index 55% rename from rslib/ftl/scheduling.ftl rename to ftl/core/scheduling.ftl index e639dfa9a..be774a8d0 100644 --- a/rslib/ftl/scheduling.ftl +++ b/ftl/core/scheduling.ftl @@ -90,3 +90,55 @@ scheduling-how-to-custom-study = If you wish to study outside of the regular sch # used in scheduling-how-to-custom-study # "... you can use the custom study feature." scheduling-custom-study = custom study +scheduling-always-include-question-side-when-replaying = Always include question side when replaying audio +scheduling-at-least-one-step-is-required = At least one step is required. +scheduling-automatically-play-audio = Automatically play audio +scheduling-bury-related-new-cards-until-the = Bury related new cards until the next day +scheduling-bury-related-reviews-until-the-next = Bury related reviews until the next day +scheduling-days = days +scheduling-description = Description +scheduling-description-to-show-on-overview-screen = Description to show on overview screen, for current deck: +scheduling-easy-bonus = Easy bonus +scheduling-easy-interval = Easy interval +scheduling-end = (end) +scheduling-general = General +scheduling-graduating-interval = Graduating interval +scheduling-hard-interval = Hard interval +scheduling-ignore-answer-times-longer-than = Ignore answer times longer than +scheduling-interval-modifier = Interval modifier +scheduling-lapses = Lapses +scheduling-lapses2 = lapses +scheduling-learning = Learning +scheduling-leech-action = Leech action +scheduling-leech-threshold = Leech threshold +scheduling-maximum-interval = Maximum interval +scheduling-maximum-reviewsday = Maximum reviews/day +scheduling-minimum-interval = Minimum interval +scheduling-mix-new-cards-and-reviews = Mix new cards and reviews +scheduling-new-cards = New Cards +scheduling-new-cardsday = New cards/day +scheduling-new-interval = New interval +scheduling-new-options-group-name = New options group name: +scheduling-options-group = Options group: +scheduling-order = Order +scheduling-parent-limit = (parent limit: { $val }) +scheduling-review = Review +scheduling-reviews = Reviews +scheduling-seconds = seconds +scheduling-set-all-decks-below-to = Set all decks below { $val } to this option group? +scheduling-set-for-all-subdecks = Set for all subdecks +scheduling-show-answer-timer = Show answer timer +scheduling-show-new-cards-after-reviews = Show new cards after reviews +scheduling-show-new-cards-before-reviews = Show new cards before reviews +scheduling-show-new-cards-in-order-added = Show new cards in order added +scheduling-show-new-cards-in-random-order = Show new cards in random order +scheduling-starting-ease = Starting ease +scheduling-steps-in-minutes = Steps (in minutes) +scheduling-steps-must-be-numbers = Steps must be numbers. +scheduling-tag-only = Tag Only +scheduling-the-default-configuration-cant-be-removed = The default configuration can't be removed. +scheduling-your-changes-will-affect-multiple-decks = Your changes will affect multiple decks. If you wish to change only the current deck, please add a new options group first. +scheduling-deck-updated = { $count -> + [one] { $count } deck updated. + *[other] { $count } decks updated. + } diff --git a/rslib/ftl/search.ftl b/ftl/core/search.ftl similarity index 100% rename from rslib/ftl/search.ftl rename to ftl/core/search.ftl diff --git a/rslib/ftl/statistics.ftl b/ftl/core/statistics.ftl similarity index 98% rename from rslib/ftl/statistics.ftl rename to ftl/core/statistics.ftl index ba50942c5..449f50b74 100644 --- a/rslib/ftl/statistics.ftl +++ b/ftl/core/statistics.ftl @@ -199,3 +199,6 @@ statistics-cards-per-day = *[other] { $count } cards/day } statistics-average-ease = Average ease +statistics-save-pdf = Save PDF +statistics-saved = Saved. +statistics-stats = stats diff --git a/ftl/core/studying.ftl b/ftl/core/studying.ftl new file mode 100644 index 000000000..8f8b6180e --- /dev/null +++ b/ftl/core/studying.ftl @@ -0,0 +1,56 @@ +studying-again = Again +studying-all-buried-cards = All Buried Cards +studying-audio-5s = Audio -5s +studying-audio-and5s = Audio +5s +studying-buried-siblings = Buried Siblings +studying-bury = Bury +studying-bury-card = Bury Card +studying-bury-note = Bury Note +studying-card-buried = Card buried. +studying-card-suspended = Card suspended. +studying-card-was-a-leech = Card was a leech. +studying-cards-will-be-automatically-returned-to = Cards will be automatically returned to their original decks after you review them. +studying-continue = Continue +studying-delete-note = Delete Note +studying-deleting-this-deck-from-the-deck = Deleting this deck from the deck list will return all remaining cards to their original deck. +studying-easy = Easy +studying-edit = Edit +studying-empty = Empty +studying-finish = Finish +studying-flag-card = Flag Card +studying-good = Good +studying-hard = Hard +studying-it-has-been-suspended = It has been suspended. +studying-manually-buried-cards = Manually Buried Cards +studying-mark-note = Mark Note +studying-more = More +studying-no-cards-are-due-yet = No cards are due yet. +studying-note-buried = Note buried. +studying-note-suspended = Note suspended. +studying-pause-audio = Pause Audio +studying-please-run-toolsempty-cards = Please run Tools>Empty Cards +studying-record-own-voice = Record Own Voice +studying-replay-own-voice = Replay Own Voice +studying-show-answer = Show Answer +studying-space = Space +studying-study-now = Study Now +studying-suspend = Suspend +studying-suspend-note = Suspend Note +studying-this-is-a-special-deck-for = This is a special deck for studying outside of the normal schedule. +studying-to-review = To Review +studying-type-answer-unknown-field = Type answer: unknown field { $val } +studying-unbury = Unbury +studying-what-would-you-like-to-unbury = What would you like to unbury? +studying-you-havent-recorded-your-voice-yet = You haven't recorded your voice yet. +studying-card-studied-in = { $count -> + [one] { $count } card studied in + *[other] { $count } cards studied in + } +studying-minute = { $count -> + [one] { $count } minute. + *[other] { $count } minutes. + } +studying-note-and-its-card-deleted = { $count -> + [one] Note and its { $count } card deleted. + *[other] Note and its { $count } cards deleted. + } diff --git a/rslib/ftl/sync.ftl b/ftl/core/sync.ftl similarity index 100% rename from rslib/ftl/sync.ftl rename to ftl/core/sync.ftl diff --git a/ftl/qt/about.ftl b/ftl/qt/about.ftl new file mode 100644 index 000000000..eb048cb64 --- /dev/null +++ b/ftl/qt/about.ftl @@ -0,0 +1,10 @@ +about-a-big-thanks-to-all-the = A big thanks to all the people who have provided suggestions, bug reports and donations. +about-about-anki = About Anki +about-anki-is-a-friendly-intelligent-spaced = Anki is a friendly, intelligent spaced learning system. It's free and open source. +about-anki-is-licensed-under-the-agpl3 = Anki is licensed under the AGPL3 license. Please see the license file in the source distribution for more information. +about-copied-to-clipboard = Copied to clipboard +about-copy-debug-info = Copy Debug Info +about-if-you-have-contributed-and-are = If you have contributed and are not on this list, please get in touch. +about-version = Version { $val } +about-visit-website = Visit website +about-written-by-damien-elmes-with-patches = Written by Damien Elmes, with patches, translation, testing and design from:

%(cont)s diff --git a/ftl/qt/addons.ftl b/ftl/qt/addons.ftl new file mode 100644 index 000000000..89c8588f6 --- /dev/null +++ b/ftl/qt/addons.ftl @@ -0,0 +1,65 @@ +addons-possibly-involved = Add-ons possibly involved: { $addons } +addons-failed-to-load = + An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on. + + When loading '{ $name }': + { $traceback } +# Shown in the add-on configuration screen (Tools>Add-ons>Config), in the title bar +addons-config-window-title = Configure '{ $name }' +addons-config-validation-error = There was a problem with the provided configuration: { $problem }, at path { $path }, against schema { $schema }. +addons-window-title = Add-ons +addons-addon-has-no-configuration = Add-on has no configuration. +addons-addon-installation-error = Add-on installation error +addons-addon-was-not-downloaded-from-ankiweb = Add-on was not downloaded from AnkiWeb. +addons-browse-addons = Browse Add-ons +addons-changes-will-take-effect-when-anki = Changes will take effect when Anki is restarted. +addons-check-for-updates = Check for Updates +addons-checking = Checking... +addons-code = Code: +addons-config = Config +addons-configuration = Configuration +addons-corrupt-addon-file = Corrupt add-on file. +addons-disabled = (disabled) +addons-disabled2 = (disabled) +addons-download-complete-please-restart-anki-to = Download complete. Please restart Anki to apply changes. +addons-downloaded-fnames = Downloaded %(fname)s +addons-downloading-adbd-kb02fkb = Downloading %(a)d/%(b)d (%(kb)0.2fKB)... +addons-error-downloading-ids-errors = Error downloading %(id)s: %(error)s +addons-error-installing-bases-errors = Error installing %(base)s: %(error)s +addons-get-addons = Get Add-ons... +addons-important-as-addons-are-programs-downloaded = Important: As add-ons are programs downloaded from the internet, they are potentially malicious.You should only install add-ons you trust.

Are you sure you want to proceed with the installation of the following Anki add-on(s)?

%(names)s +addons-install-addon = Install Add-on +addons-install-addons = Install Add-on(s) +addons-install-anki-addon = Install Anki add-on +addons-install-from-file = Install from file... +addons-installation-complete = Installation complete +addons-installed-names = Installed %(name)s +addons-installed-successfully = Installed successfully. +addons-invalid-addon-manifest = Invalid add-on manifest. +addons-invalid-code = Invalid code. +addons-invalid-code-or-addon-not-available = Invalid code, or add-on not available for your version of Anki. +addons-invalid-configuration = Invalid configuration: +addons-invalid-configuration-top-level-object-must = Invalid configuration: top level object must be a map +addons-no-updates-available = No updates available. +addons-one-or-more-errors-occurred = One or more errors occurred: +addons-packaged-anki-addon = Packaged Anki Add-on +addons-please-check-your-internet-connection = Please check your internet connection. +addons-please-report-this-to-the-respective = Please report this to the respective add-on author(s). +addons-please-restart-anki-to-complete-the = Please restart Anki to complete the installation. +addons-please-select-a-single-addon-first = Please select a single add-on first. +addons-requires = (requires { $val }) +addons-restored-defaults = Restored defaults +addons-the-following-addons-are-incompatible-with = The following add-ons are incompatible with %(name)s and have been disabled: %(found)s +addons-the-following-addons-have-updates-available = The following add-ons have updates available. Install them now? +addons-the-following-conflicting-addons-were-disabled = The following conflicting add-ons were disabled: +addons-this-addon-is-not-compatible-with = This add-on is not compatible with your version of Anki. +addons-to-browse-addons-please-click-the = To browse add-ons, please click the browse button below.

When you've found an add-on you like, please paste its code below. You can paste multiple codes, separated by spaces. +addons-toggle-enabled = Toggle Enabled +addons-unable-to-update-or-delete-addon = Unable to update or delete add-on. Please start Anki while holding down the shift key to temporarily disable add-ons, then try again. Debug info: { $val } +addons-unknown-error = Unknown error: { $val } +addons-view-addon-page = View Add-on Page +addons-view-files = View Files +addons-delete-the-numd-selected-addon = { $count -> + [one] Delete the { $count } selected add-on? + *[other] Delete the { $count } selected add-ons? + } diff --git a/qt/ftl/errors.ftl b/ftl/qt/errors.ftl similarity index 100% rename from qt/ftl/errors.ftl rename to ftl/qt/errors.ftl diff --git a/qt/ftl/preferences.ftl b/ftl/qt/preferences.ftl similarity index 100% rename from qt/ftl/preferences.ftl rename to ftl/qt/preferences.ftl diff --git a/qt/ftl/profiles.ftl b/ftl/qt/profiles.ftl similarity index 100% rename from qt/ftl/profiles.ftl rename to ftl/qt/profiles.ftl diff --git a/ftl/qt/qt-accel.ftl b/ftl/qt/qt-accel.ftl new file mode 100644 index 000000000..513aa4b02 --- /dev/null +++ b/ftl/qt/qt-accel.ftl @@ -0,0 +1,33 @@ +qt-accel-about = &About... +qt-accel-browse-and-install = &Browse and Install... +qt-accel-cards = &Cards +qt-accel-check-database = &Check Database +qt-accel-check-media = Check &Media... +qt-accel-edit = &Edit +qt-accel-exit = E&xit +qt-accel-export = &Export... +qt-accel-export-notes = &Export Notes... +qt-accel-file = &File +qt-accel-filter = Fil&ter +qt-accel-find = &Find +qt-accel-find-and-replace = Find and Re&place... +qt-accel-find-duplicates = Find &Duplicates... +qt-accel-go = &Go +qt-accel-guide = &Guide... +qt-accel-help = &Help +qt-accel-import = &Import... +qt-accel-info = &Info... +qt-accel-invert-selection = &Invert Selection +qt-accel-next-card = &Next Card +qt-accel-note = N&ote +qt-accel-notes = &Notes +qt-accel-open-addons-folder = &Open Add-ons Folder... +qt-accel-preferences = &Preferences... +qt-accel-previous-card = &Previous Card +qt-accel-reschedule = &Reschedule... +qt-accel-select-all = Select &All +qt-accel-select-notes = Select &Notes +qt-accel-support-anki = &Support Anki... +qt-accel-switch-profile = &Switch Profile +qt-accel-tools = &Tools +qt-accel-undo = &Undo diff --git a/ftl/qt/qt-misc.ftl b/ftl/qt/qt-misc.ftl new file mode 100644 index 000000000..bac7bc46c --- /dev/null +++ b/ftl/qt/qt-misc.ftl @@ -0,0 +1,67 @@ +qt-misc-addon-will-be-installed-when-a = Add-on will be installed when a profile is opened. +qt-misc-addons = Add-ons +qt-misc-all-cards-notes-and-media-for = All cards, notes, and media for this profile will be deleted. Are you sure? +qt-misc-anki-updatedanki-has-been-released =

Anki Updated

Anki { $val } has been released.

+qt-misc-automatic-syncing-and-backups-have-been = Automatic syncing and backups have been disabled while restoring. To enable them again, close the profile or restart Anki. +qt-misc-back-side-only = Back Side Only +qt-misc-backing-up = Backing Up... +qt-misc-browse = Browse +qt-misc-change-note-type-ctrlandn = Change Note Type (Ctrl+N) +qt-misc-check-the-files-in-the-media = Check the files in the media directory +qt-misc-choose-deck = Choose Deck +qt-misc-choose-note-type = Choose Note Type +qt-misc-closing = Closing... +qt-misc-configure-interface-language-and-options = Configure interface language and options +qt-misc-copy-to-clipboard = Copy to Clipboard +qt-misc-create-filtered-deck = Create Filtered Deck... +qt-misc-debug-console = Debug Console +qt-misc-deck-will-be-imported-when-a = Deck will be imported when a profile is opened. +qt-misc-default = Default +qt-misc-empty-cards = Empty Cards... +qt-misc-error-during-startup = Error during startup: { $val } +qt-misc-filtered-deck = Filtered Deck { $val } +qt-misc-ignore-this-update = Ignore this update +qt-misc-in-order-to-ensure-your-collection = In order to ensure your collection works correctly when moved between devices, Anki requires your computer's internal clock to be set correctly. The internal clock can be wrong even if your system is showing the correct local time.

Please go to the time settings on your computer and check the following:

- AM/PM
- Clock drift
- Day, month and year
- Timezone
- Daylight savings

Difference to correct time: { $val }. +qt-misc-invalid-property-found-on-card-please = Invalid property found on card. Please use Tools>Check Database, and if the problem comes up again, please ask on the support site. +qt-misc-loading = Loading... +qt-misc-manage = Manage +qt-misc-manage-note-types = Manage Note Types +qt-misc-name-exists = Name exists. +qt-misc-non-unicode-text = +qt-misc-optimizing = Optimizing... +qt-misc-please-connect-a-microphone-and-ensure = Please connect a microphone, and ensure other programs are not using the audio device. +qt-misc-please-ensure-a-profile-is-open = Please ensure a profile is open and Anki is not busy, then try again. +qt-misc-please-select-1-card = (please select 1 card) +qt-misc-please-select-a-deck = Please select a deck. +qt-misc-please-use-fileimport-to-import-this = Please use File>Import to import this file. +qt-misc-processing = Processing... +qt-misc-replace-your-collection-with-an-earlier = Replace your collection with an earlier backup? +qt-misc-resume-now = Resume Now +qt-misc-revert-to-backup = Revert to backup +qt-misc-reverted-to-state-prior-to = Reverted to state prior to '{ $val }'. +qt-misc-segoe-ui = "Segoe UI" +qt-misc-shift-key-was-held-down-skipping = Shift key was held down. Skipping automatic syncing and add-on loading. +qt-misc-shortcut-key-left-arrow = Shortcut key: Left arrow +qt-misc-shortcut-key-right-arrow-or-enter = Shortcut key: Right arrow or Enter +qt-misc-stats = Stats +qt-misc-study-deck = Study Deck... +qt-misc-sync = Sync +qt-misc-target-deck-ctrlandd = Target Deck (Ctrl+D) +qt-misc-the-following-character-can-not-be = The following character can not be used: { $val } +qt-misc-the-requested-change-will-require-a = The requested change will require a full upload of the database when you next synchronize your collection. If you have reviews or other changes waiting on another device that haven't been synchronized here yet, they will be lost. Continue? +qt-misc-there-must-be-at-least-one = There must be at least one profile. +qt-misc-this-file-exists-are-you-sure = This file exists. Are you sure you want to overwrite it? +qt-misc-unable-to-access-anki-media-folder = Unable to access Anki media folder. The permissions on your system's temporary folder may be incorrect. +qt-misc-unable-to-move-existing-file-to = Unable to move existing file to trash - please try restarting your computer. +qt-misc-undo = Undo +qt-misc-undo2 = Undo { $val } +qt-misc-unexpected-response-code = Unexpected response code: { $val } +qt-misc-waiting-for-editing-to-finish = Waiting for editing to finish. +qt-misc-would-you-like-to-download-it = Would you like to download it now? +qt-misc-your-collection-file-appears-to-be = Your collection file appears to be corrupt. This can happen when the file is copied or moved while Anki is open, or when the collection is stored on a network or cloud drive. If problems persist after restarting your computer, please open an automatic backup from the profile screen. +qt-misc-your-computers-storage-may-be-full = Your computer's storage may be full. Please delete some unneeded files, then try again. +qt-misc-your-firewall-or-antivirus-program-is = Your firewall or antivirus program is preventing Anki from creating a connection to itself. Please add an exception for Anki. +qt-misc-second = { $count -> + [one] { $count } second + *[other] { $count } seconds + } diff --git a/pip/BUILD.bazel b/pip/BUILD.bazel index 35af50f13..649a992d3 100644 --- a/pip/BUILD.bazel +++ b/pip/BUILD.bazel @@ -14,4 +14,7 @@ py_binary( ], ) -exports_files(["requirements.txt"]) +exports_files([ + "requirements.txt", + "licenses.json", +]) diff --git a/pip/licenses.json b/pip/licenses.json new file mode 100644 index 000000000..67098b005 --- /dev/null +++ b/pip/licenses.json @@ -0,0 +1,152 @@ +[ + { + "License": "BSD License", + "Name": "Flask", + "Version": "1.1.2" + }, + { + "License": "MIT License", + "Name": "Flask-Cors", + "Version": "3.0.9" + }, + { + "License": "BSD License", + "Name": "Jinja2", + "Version": "2.11.2" + }, + { + "License": "BSD License", + "Name": "Markdown", + "Version": "3.3.3" + }, + { + "License": "BSD License", + "Name": "MarkupSafe", + "Version": "1.1.1" + }, + { + "License": "GPL v3", + "Name": "PyQt5", + "Version": "5.15.1" + }, + { + "License": "SIP", + "Name": "PyQt5-sip", + "Version": "12.8.1" + }, + { + "License": "GPL v3", + "Name": "PyQtWebEngine", + "Version": "5.15.1" + }, + { + "License": "BSD", + "Name": "PySocks", + "Version": "1.7.1" + }, + { + "License": "BSD License", + "Name": "Send2Trash", + "Version": "1.5.0" + }, + { + "License": "BSD License", + "Name": "Werkzeug", + "Version": "1.0.1" + }, + { + "License": "MIT License", + "Name": "attrs", + "Version": "20.3.0" + }, + { + "License": "MIT License", + "Name": "beautifulsoup4", + "Version": "4.9.3" + }, + { + "License": "Mozilla Public License 2.0 (MPL 2.0)", + "Name": "certifi", + "Version": "2020.11.8" + }, + { + "License": "GNU Library or Lesser General Public License (LGPL)", + "Name": "chardet", + "Version": "3.0.4" + }, + { + "License": "BSD License", + "Name": "click", + "Version": "7.1.2" + }, + { + "License": "BSD License", + "Name": "decorator", + "Version": "4.4.2" + }, + { + "License": "BSD License", + "Name": "idna", + "Version": "2.10" + }, + { + "License": "BSD License", + "Name": "itsdangerous", + "Version": "1.1.0" + }, + { + "License": "MIT License", + "Name": "jsonschema", + "Version": "3.2.0" + }, + { + "License": "Apache Software License, MIT License", + "Name": "orjson", + "Version": "3.4.3" + }, + { + "License": "3-Clause BSD License", + "Name": "protobuf", + "Version": "3.13.0" + }, + { + "License": "BSD License", + "Name": "psutil", + "Version": "5.7.3" + }, + { + "License": "MIT License", + "Name": "pyrsistent", + "Version": "0.17.3" + }, + { + "License": "Python Software Foundation License", + "Name": "pywin32", + "Version": "228" + }, + { + "License": "Apache Software License", + "Name": "requests", + "Version": "2.25.0" + }, + { + "License": "MIT License", + "Name": "six", + "Version": "1.15.0" + }, + { + "License": "MIT License", + "Name": "soupsieve", + "Version": "2.0.1" + }, + { + "License": "MIT License", + "Name": "urllib3", + "Version": "1.26.1" + }, + { + "License": "Zope Public License", + "Name": "waitress", + "Version": "1.4.4" + } +] diff --git a/pip/licenses.sh b/pip/licenses.sh new file mode 100755 index 000000000..273edf99e --- /dev/null +++ b/pip/licenses.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# +# Install runtime requirements into a venv and extract their licenses. +# As Windows currently uses extra deps, running this on Windows should +# capture all packages. +# Run with 'bash licenses.sh' to update 'license.json' + +set -e + +# setup venv +python -m venv venv + +# build wheels +../bazel.bat --output_base=/c/bazel/anki/base build //pylib/anki:wheel //qt/aqt:wheel + +# install wheels, bound to constrained versions +venv/scripts/pip install -c requirements.txt ../bazel-bin/pylib/anki/*.whl ../bazel-bin/qt/aqt/*.whl pip-licenses + +# dump licenses - ptable is a pip-licenses dep +venv/scripts/pip-licenses --format=json --ignore-packages anki aqt pip-license PTable > licenses.json + +# clean up +rm -rf venv diff --git a/pip/requirements.in b/pip/requirements.in index 7ca9643b9..9a214e66f 100644 --- a/pip/requirements.in +++ b/pip/requirements.in @@ -10,6 +10,7 @@ markdown mock mypy mypy-protobuf +orjson pip-tools protobuf pylint diff --git a/pip/requirements.txt b/pip/requirements.txt index 67576cec0..6e4e379fc 100755 --- a/pip/requirements.txt +++ b/pip/requirements.txt @@ -3,10 +3,10 @@ appdirs==1.4.4 # via black astroid==2.4.2 # via pylint atomicwrites==1.4.0 ; sys_platform == "win32" # via -r requirements.in, pytest -attrs==20.2.0 # via jsonschema, pytest +attrs==20.3.0 # via jsonschema, pytest beautifulsoup4==4.9.3 # via -r requirements.in black==20.8b1 # via -r requirements.in -certifi==2020.6.20 # via requests +certifi==2020.11.8 # via requests chardet==3.0.4 # via requests click==7.1.2 # via black, flask, pip-tools colorama==0.4.4 ; sys_platform == "win32" # via -r requirements.in, pylint, pytest @@ -28,8 +28,9 @@ mock==4.0.2 # via -r requirements.in mypy-extensions==0.4.3 # via black, mypy mypy-protobuf==1.23 # via -r requirements.in mypy==0.790 # via -r requirements.in +orjson==3.4.3 # via -r requirements.in packaging==20.4 # via pytest -pathspec==0.8.0 # via black +pathspec==0.8.1 # via black pip-tools==5.3.1 # via -r requirements.in pluggy==0.13.1 # via pytest protobuf==3.13.0 # via -r requirements.in, mypy-protobuf @@ -41,8 +42,8 @@ pyrsistent==0.17.3 # via jsonschema pysocks==1.7.1 # via requests pytest==6.1.2 # via -r requirements.in pywin32==228 ; sys_platform == "win32" # via -r requirements.in -regex==2020.10.28 # via black -requests[socks]==2.24.0 # via -r requirements.in +regex==2020.11.11 # via black +requests[socks]==2.25.0 # via -r requirements.in send2trash==1.5.0 # via -r requirements.in six==1.15.0 # via astroid, flask-cors, jsonschema, packaging, pip-tools, protobuf soupsieve==2.0.1 # via beautifulsoup4 @@ -50,7 +51,7 @@ stringcase==1.2.0 # via -r requirements.in toml==0.10.2 # via black, pylint, pytest typed-ast==1.4.1 # via black, mypy typing-extensions==3.7.4.3 # via black, mypy -urllib3==1.25.11 # via requests +urllib3==1.26.1 # via requests waitress==1.4.4 # via -r requirements.in werkzeug==1.0.1 # via flask wrapt==1.12.1 # via astroid diff --git a/pylib/.isort.cfg b/pylib/.isort.cfg index a6f9d2938..e3baa20af 100644 --- a/pylib/.isort.cfg +++ b/pylib/.isort.cfg @@ -1,5 +1,5 @@ [settings] -skip=aqt/forms,backend_pb2.py,backend_pb2.pyi,fluent_pb2.py,fluent_pb2.pyi,rsbackend_gen.py,hooks_gen.py +skip=aqt/forms,backend_pb2.py,backend_pb2.pyi,fluent_pb2.py,fluent_pb2.pyi,rsbackend_gen.py,hooks_gen.py,genbackend.py profile=black multi_line_output=3 include_trailing_comma=True diff --git a/pylib/BUILD.bazel b/pylib/BUILD.bazel index fd7039906..f496c69a2 100644 --- a/pylib/BUILD.bazel +++ b/pylib/BUILD.bazel @@ -47,10 +47,10 @@ py_test( ) py_test( - name = "format", + name = "format_check", srcs = [ - "//pylib/tools:py_files", - "//pylib/anki:py_files", + "//pylib/tools:py_source_files", + "//pylib/anki:py_source_files", ] + glob([ "tests/**/*.py", ]), @@ -66,7 +66,7 @@ py_test( ) py_binary( - name = "format_fix", + name = "format", srcs = [ "tests/run_format.py", ], diff --git a/pylib/anki/BUILD.bazel b/pylib/anki/BUILD.bazel index d431b7492..7688b523d 100644 --- a/pylib/anki/BUILD.bazel +++ b/pylib/anki/BUILD.bazel @@ -85,11 +85,12 @@ py_library( ], visibility = ["//visibility:public"], deps = [ - requirement("protobuf"), + requirement("beautifulsoup4"), requirement("decorator"), requirement("distro"), + requirement("orjson"), + requirement("protobuf"), requirement("requests"), - requirement("beautifulsoup4"), ], ) @@ -106,7 +107,6 @@ py_wheel( distribution = "anki", platform = select({ "//platforms:windows_x86_64": "win_amd64", - "//platforms:windows_x86_32": "win32", "//platforms:macos_x86_64": "macosx_10_7_x86_64", "//platforms:linux_x86_64": "manylinux2014_x86_64", "//platforms:linux_x86_32": "manylinux2014_i686", @@ -118,7 +118,7 @@ py_wheel( "requests[socks]", "decorator", "protobuf", - 'orjson; platform_machine == "x86_64"', + "orjson", 'psutil; sys_platform == "win32"', 'distro; sys_platform != "darwin" and sys_platform != "win32"', ], @@ -130,7 +130,10 @@ py_wheel( ) filegroup( - name = "py_files", + name = "py_source_files", srcs = glob(["**/*.py"]), - visibility = ["//pylib:__subpackages__"], + visibility = [ + "//pylib:__subpackages__", + "//qt/po:__pkg__", + ], ) diff --git a/pylib/anki/__init__.py b/pylib/anki/__init__.py index d958c513c..eeb1538dd 100644 --- a/pylib/anki/__init__.py +++ b/pylib/anki/__init__.py @@ -1,3 +1,4 @@ +# -*- coding: UTF-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/pylib/anki/buildinfo.py b/pylib/anki/buildinfo.py index 965b8f183..6d6cd44fd 100644 --- a/pylib/anki/buildinfo.py +++ b/pylib/anki/buildinfo.py @@ -2,13 +2,32 @@ # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import os +import sys +from typing import Dict -_buildinfo = {} -for line in open(os.path.join(os.path.dirname(__file__), "buildinfo.txt")).readlines(): - elems = line.split() - if len(elems) == 2: - k, v = elems - _buildinfo[k] = v +def _build_info_path() -> str: + path = os.path.join(os.path.dirname(__file__), "buildinfo.txt") + # running in place? + if os.path.exists(path): + return path + # packaged build? + path = os.path.join(sys.prefix, "buildinfo.txt") + if os.path.exists(path): + return path + + raise Exception("missing buildinfo.txt") + +def _get_build_info() -> Dict[str, str]: + info = {} + for line in open(_build_info_path()).readlines(): + elems = line.split() + if len(elems) == 2: + k, v = elems + info[k] = v + + return info + +_buildinfo = _get_build_info() buildhash=_buildinfo["STABLE_BUILDHASH"] version=_buildinfo["STABLE_VERSION"] diff --git a/pylib/anki/collection.py b/pylib/anki/collection.py index 8a2400a11..77eab8716 100644 --- a/pylib/anki/collection.py +++ b/pylib/anki/collection.py @@ -22,7 +22,6 @@ from anki.consts import * from anki.dbproxy import DBProxy from anki.decks import DeckManager from anki.errors import AnkiError -from anki.lang import _ from anki.media import MediaManager, media_paths_from_col_path from anki.models import ModelManager from anki.notes import Note @@ -574,7 +573,12 @@ table.review-log {{ {revlog_style} }} old = self._undo[2] self.clearUndo() wasLeech = card.note().hasTag("leech") or False - self._undo = [1, _("Review"), old + [copy.copy(card)], wasLeech] + self._undo = [ + 1, + self.tr(TR.SCHEDULING_REVIEW), + old + [copy.copy(card)], + wasLeech, + ] def _undoReview(self) -> Any: data = self._undo[2] diff --git a/pylib/anki/consts.py b/pylib/anki/consts.py index 2ae53f01f..aaab49073 100644 --- a/pylib/anki/consts.py +++ b/pylib/anki/consts.py @@ -1,9 +1,12 @@ # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -from typing import Any, Dict +from __future__ import annotations -from anki.lang import _ +from typing import Any, Dict, Optional + +import anki +from anki.rsbackend import TR # whether new cards should be mixed with reviews, or shown first or last NEW_CARDS_DISTRIBUTE = 0 @@ -88,38 +91,45 @@ REVLOG_CRAM = 3 ########################################################################## -def newCardOrderLabels() -> Dict[int, Any]: +def _tr(col: Optional[anki.collection.Collection]): + if col: + return col.tr + else: + print("routine in consts.py should be passed col") + from anki.lang import tr_legacyglobal + + return tr_legacyglobal + + +def newCardOrderLabels(col: Optional[anki.collection.Collection]) -> Dict[int, Any]: + tr = _tr(col) return { - 0: _("Show new cards in random order"), - 1: _("Show new cards in order added"), + 0: tr(TR.SCHEDULING_SHOW_NEW_CARDS_IN_RANDOM_ORDER), + 1: tr(TR.SCHEDULING_SHOW_NEW_CARDS_IN_ORDER_ADDED), } -def newCardSchedulingLabels() -> Dict[int, Any]: +def newCardSchedulingLabels( + col: Optional[anki.collection.Collection], +) -> Dict[int, Any]: + tr = _tr(col) return { - 0: _("Mix new cards and reviews"), - 1: _("Show new cards after reviews"), - 2: _("Show new cards before reviews"), + 0: tr(TR.SCHEDULING_MIX_NEW_CARDS_AND_REVIEWS), + 1: tr(TR.SCHEDULING_SHOW_NEW_CARDS_AFTER_REVIEWS), + 2: tr(TR.SCHEDULING_SHOW_NEW_CARDS_BEFORE_REVIEWS), } -def alignmentLabels() -> Dict[int, Any]: +def dynOrderLabels(col: Optional[anki.collection.Collection]) -> Dict[int, Any]: + tr = _tr(col) return { - 0: _("Center"), - 1: _("Left"), - 2: _("Right"), - } - - -def dynOrderLabels() -> Dict[int, Any]: - return { - 0: _("Oldest seen first"), - 1: _("Random"), - 2: _("Increasing intervals"), - 3: _("Decreasing intervals"), - 4: _("Most lapses"), - 5: _("Order added"), - 6: _("Order due"), - 7: _("Latest added first"), - 8: _("Relative overdueness"), + 0: tr(TR.DECKS_OLDEST_SEEN_FIRST), + 1: tr(TR.DECKS_RANDOM), + 2: tr(TR.DECKS_INCREASING_INTERVALS), + 3: tr(TR.DECKS_DECREASING_INTERVALS), + 4: tr(TR.DECKS_MOST_LAPSES), + 5: tr(TR.DECKS_ORDER_ADDED), + 6: tr(TR.DECKS_ORDER_DUE), + 7: tr(TR.DECKS_LATEST_ADDED_FIRST), + 8: tr(TR.DECKS_RELATIVE_OVERDUENESS), } diff --git a/pylib/anki/decks.py b/pylib/anki/decks.py index a6284950e..675da7c21 100644 --- a/pylib/anki/decks.py +++ b/pylib/anki/decks.py @@ -11,8 +11,13 @@ import anki # pylint: disable=unused-import import anki.backend_pb2 as pb from anki.consts import * from anki.errors import DeckRenameError -from anki.lang import _ -from anki.rsbackend import DeckTreeNode, NotFoundError, from_json_bytes, to_json_bytes +from anki.rsbackend import ( + TR, + DeckTreeNode, + NotFoundError, + from_json_bytes, + to_json_bytes, +) from anki.utils import ids2str, intTime # legacy code may pass this in as the type argument to .id() @@ -379,7 +384,7 @@ class DeckManager: deck = self.get(did, default=default) if deck: return deck["name"] - return _("[no deck]") + return self.col.tr(TR.DECKS_NO_DECK) def nameOrNone(self, did: int) -> Optional[str]: deck = self.get(did, default=False) diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index fd0826d3e..5c3e21aea 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -13,7 +13,7 @@ from zipfile import ZipFile from anki import hooks from anki.collection import Collection -from anki.lang import _ +from anki.rsbackend import TR from anki.utils import ids2str, namedtmp, splitFields, stripHTML @@ -92,12 +92,12 @@ class Exporter: class TextCardExporter(Exporter): - key = lambda self: _("Cards in Plain Text") ext = ".txt" includeHTML = True def __init__(self, col) -> None: Exporter.__init__(self, col) + self.key = col.tr(TR.EXPORTING_CARDS_IN_PLAIN_TEXT) def doExport(self, file) -> None: ids = sorted(self.cardIds()) @@ -122,7 +122,6 @@ class TextCardExporter(Exporter): class TextNoteExporter(Exporter): - key = lambda self: _("Notes in Plain Text") ext = ".txt" includeTags = True includeHTML = True @@ -130,6 +129,7 @@ class TextNoteExporter(Exporter): def __init__(self, col: Collection) -> None: Exporter.__init__(self, col) self.includeID = False + self.key = col.tr(TR.EXPORTING_NOTES_IN_PLAIN_TEXT) def doExport(self, file: BufferedWriter) -> None: cardIds = self.cardIds() @@ -164,13 +164,13 @@ where cards.id in %s)""" class AnkiExporter(Exporter): - key = lambda self: _("Anki 2.0 Deck") ext = ".anki2" includeSched: Union[bool, None] = False includeMedia = True def __init__(self, col: Collection) -> None: Exporter.__init__(self, col) + self.key = col.tr(TR.EXPORTING_ANKI_20_DECK) def deckIds(self) -> List[int]: if self.cids: @@ -313,11 +313,11 @@ class AnkiExporter(Exporter): class AnkiPackageExporter(AnkiExporter): - key = lambda self: _("Anki Deck Package") ext = ".apkg" def __init__(self, col: Collection) -> None: AnkiExporter.__init__(self, col) + self.key = col.tr(TR.EXPORTING_ANKI_DECK_PACKAGE) def exportInto(self, path: str) -> None: # open a zip file @@ -380,7 +380,7 @@ class AnkiPackageExporter(AnkiExporter): path = namedtmp("dummy.anki2") c = Collection(path) n = c.newNote() - n[_("Front")] = "This file requires a newer version of Anki." + n.fields[0] = "This file requires a newer version of Anki." c.addNote(n) c.save() c.close(downgrade=True) @@ -395,13 +395,13 @@ class AnkiPackageExporter(AnkiExporter): class AnkiCollectionPackageExporter(AnkiPackageExporter): - key = lambda self: _("Anki Collection Package") ext = ".colpkg" verbatim = True includeSched = None def __init__(self, col): AnkiPackageExporter.__init__(self, col) + self.key = col.tr(TR.EXPORTING_ANKI_COLLECTION_PACKAGE) def doExport(self, z, path): "Export collection. Caller must re-open afterwards." diff --git a/pylib/anki/importing/__init__.py b/pylib/anki/importing/__init__.py index 3bb25c19b..03e645c30 100644 --- a/pylib/anki/importing/__init__.py +++ b/pylib/anki/importing/__init__.py @@ -7,12 +7,16 @@ from anki.importing.csvfile import TextImporter from anki.importing.mnemo import MnemosyneImporter from anki.importing.pauker import PaukerImporter from anki.importing.supermemo_xml import SupermemoXmlImporter # type: ignore -from anki.lang import _ +from anki.lang import tr_legacyglobal +from anki.rsbackend import TR Importers = ( - (_("Text separated by tabs or semicolons (*)"), TextImporter), - (_("Packaged Anki Deck/Collection (*.apkg *.colpkg *.zip)"), AnkiPackageImporter), - (_("Mnemosyne 2.0 Deck (*.db)"), MnemosyneImporter), - (_("Supermemo XML export (*.xml)"), SupermemoXmlImporter), - (_("Pauker 1.8 Lesson (*.pau.gz)"), PaukerImporter), + (tr_legacyglobal(TR.IMPORTING_TEXT_SEPARATED_BY_TABS_OR_SEMICOLONS), TextImporter), + ( + tr_legacyglobal(TR.IMPORTING_PACKAGED_ANKI_DECKCOLLECTION_APKG_COLPKG_ZIP), + AnkiPackageImporter, + ), + (tr_legacyglobal(TR.IMPORTING_MNEMOSYNE_20_DECK_DB), MnemosyneImporter), + (tr_legacyglobal(TR.IMPORTING_SUPERMEMO_XML_EXPORT_XML), SupermemoXmlImporter), + (tr_legacyglobal(TR.IMPORTING_PAUKER_18_LESSON_PAUGZ), PaukerImporter), ) diff --git a/pylib/anki/importing/anki2.py b/pylib/anki/importing/anki2.py index 6e8a72d2e..6eb6a9c59 100644 --- a/pylib/anki/importing/anki2.py +++ b/pylib/anki/importing/anki2.py @@ -9,7 +9,7 @@ from anki.collection import Collection from anki.consts import * from anki.decks import DeckManager from anki.importing.base import Importer -from anki.lang import _ +from anki.rsbackend import TR from anki.utils import intTime, joinFields, splitFields GUID = 1 @@ -131,39 +131,46 @@ class Anki2Importer(Importer): else: dupesIdentical.append(note) - self.log.append(_("Notes found in file: %d") % total) + self.log.append(self.dst.tr(TR.IMPORTING_NOTES_FOUND_IN_FILE, val=total)) if dupesIgnored: self.log.append( - _("Notes that could not be imported as note type has changed: %d") - % len(dupesIgnored) + self.dst.tr( + TR.IMPORTING_NOTES_THAT_COULD_NOT_BE_IMPORTED, val=len(dupesIgnored) + ) ) if update: self.log.append( - _("Notes updated, as file had newer version: %d") % len(update) + self.dst.tr( + TR.IMPORTING_NOTES_UPDATED_AS_FILE_HAD_NEWER, val=len(update) + ) ) if add: - self.log.append(_("Notes added from file: %d") % len(add)) + self.log.append( + self.dst.tr(TR.IMPORTING_NOTES_ADDED_FROM_FILE, val=len(add)) + ) if dupesIdentical: self.log.append( - _("Notes skipped, as they're already in your collection: %d") - % len(dupesIdentical) + self.dst.tr( + TR.IMPORTING_NOTES_SKIPPED_AS_THEYRE_ALREADY_IN, + val=len(dupesIdentical), + ) ) self.log.append("") if dupesIgnored: for row in dupesIgnored: - self._logNoteRow(_("Skipped"), row) + self._logNoteRow(self.dst.tr(TR.IMPORTING_SKIPPED), row) if update: for row in update: - self._logNoteRow(_("Updated"), row) + self._logNoteRow(self.dst.tr(TR.IMPORTING_UPDATED), row) if add: for row in add: - self._logNoteRow(_("Added"), row) + self._logNoteRow(self.dst.tr(TR.ADDING_ADDED), row) if dupesIdentical: for row in dupesIdentical: - self._logNoteRow(_("Identical"), row) + self._logNoteRow(self.dst.tr(TR.IMPORTING_IDENTICAL), row) # export info for calling code self.dupes = len(dupesIdentical) diff --git a/pylib/anki/importing/csvfile.py b/pylib/anki/importing/csvfile.py index e6adefbad..c76a15295 100644 --- a/pylib/anki/importing/csvfile.py +++ b/pylib/anki/importing/csvfile.py @@ -7,7 +7,7 @@ from typing import Any, List, Optional, TextIO, Union from anki.collection import Collection from anki.importing.noteimp import ForeignNote, NoteImporter -from anki.lang import _ +from anki.rsbackend import TR class TextImporter(NoteImporter): @@ -41,7 +41,9 @@ class TextImporter(NoteImporter): if len(row) != self.numFields: if row: log.append( - _("'%(row)s' had %(num1)d fields, " "expected %(num2)d") + self.col.tr( + TR.IMPORTING_ROWS_HAD_NUM1D_FIELDS_EXPECTED_NUM2D + ) % { "row": " ".join(row), "num1": len(row), @@ -53,7 +55,7 @@ class TextImporter(NoteImporter): note = self.noteFromFields(row) notes.append(note) except (csv.Error) as e: - log.append(_("Aborted: %s") % str(e)) + log.append(self.col.tr(TR.IMPORTING_ABORTED, val=str(e))) self.log = log self.ignored = ignored self.close() diff --git a/pylib/anki/importing/mnemo.py b/pylib/anki/importing/mnemo.py index 425813c37..ed798ecab 100644 --- a/pylib/anki/importing/mnemo.py +++ b/pylib/anki/importing/mnemo.py @@ -7,7 +7,7 @@ from typing import cast from anki.db import DB from anki.importing.noteimp import ForeignCard, ForeignNote, NoteImporter -from anki.lang import _, ngettext +from anki.rsbackend import TR from anki.stdmodels import addBasicModel, addClozeModel @@ -21,7 +21,9 @@ class MnemosyneImporter(NoteImporter): db = DB(self.file) ver = db.scalar("select value from global_variables where key='version'") if not ver.startswith("Mnemosyne SQL 1") and ver not in ("2", "3"): - self.log.append(_("File version unknown, trying import anyway.")) + self.log.append( + self.col.tr(TR.IMPORTING_FILE_VERSION_UNKNOWN_TRYING_IMPORT_ANYWAY) + ) # gather facts into temp objects curid = None notes = {} @@ -101,9 +103,7 @@ acq_reps+ret_reps, lapses, card_type_id from cards""" self.total += total self._addCloze(cloze) self.total += total - self.log.append( - ngettext("%d note imported.", "%d notes imported.", self.total) % self.total - ) + self.log.append(self.col.tr(TR.IMPORTING_NOTE_IMPORTED, count=self.total)) def fields(self): return self._fields diff --git a/pylib/anki/importing/noteimp.py b/pylib/anki/importing/noteimp.py index e59670b3d..d90c18dfb 100644 --- a/pylib/anki/importing/noteimp.py +++ b/pylib/anki/importing/noteimp.py @@ -7,7 +7,7 @@ from typing import Dict, List, Optional, Tuple, Union from anki.collection import Collection from anki.consts import NEW_CARDS_RANDOM, STARTING_FACTOR from anki.importing.base import Importer -from anki.lang import _, ngettext +from anki.rsbackend import TR from anki.utils import ( fieldChecksum, guid64, @@ -135,8 +135,6 @@ class NoteImporter(Importer): # loop through the notes updates = [] updateLog = [] - updateLogTxt = _("First field matched: %s") - dupeLogTxt = _("Added duplicate with first field: %s") new = [] self._ids: List[int] = [] self._cards: List[Tuple] = [] @@ -153,12 +151,16 @@ class NoteImporter(Importer): csum = fieldChecksum(fld0) # first field must exist if not fld0: - self.log.append(_("Empty first field: %s") % " ".join(n.fields)) + self.log.append( + self.col.tr(TR.IMPORTING_EMPTY_FIRST_FIELD, val=" ".join(n.fields)) + ) continue # earlier in import? if fld0 in firsts and self.importMode != ADD_MODE: # duplicates in source file; log and ignore - self.log.append(_("Appeared twice in file: %s") % fld0) + self.log.append( + self.col.tr(TR.IMPORTING_APPEARED_TWICE_IN_FILE, val=fld0) + ) continue firsts[fld0] = True # already exists? @@ -175,7 +177,11 @@ class NoteImporter(Importer): data = self.updateData(n, id, sflds) if data: updates.append(data) - updateLog.append(updateLogTxt % fld0) + updateLog.append( + self.col.tr( + TR.IMPORTING_FIRST_FIELD_MATCHED, val=fld0 + ) + ) dupeCount += 1 found = True elif self.importMode == IGNORE_MODE: @@ -185,7 +191,12 @@ class NoteImporter(Importer): if fld0 not in dupes: # only show message once, no matter how many # duplicates are in the collection already - updateLog.append(dupeLogTxt % fld0) + updateLog.append( + self.col.tr( + TR.IMPORTING_ADDED_DUPLICATE_WITH_FIRST_FIELD, + val=fld0, + ) + ) dupes.append(fld0) found = False # newly add @@ -209,20 +220,15 @@ class NoteImporter(Importer): if conf["new"]["order"] == NEW_CARDS_RANDOM: self.col.sched.randomizeCards(did) - part1 = ngettext("%d note added", "%d notes added", len(new)) % len(new) - part2 = ( - ngettext("%d note updated", "%d notes updated", self.updateCount) - % self.updateCount - ) + part1 = self.col.tr(TR.IMPORTING_NOTE_ADDED, count=len(new)) + part2 = self.col.tr(TR.IMPORTING_NOTE_UPDATED, count=self.updateCount) if self.importMode == UPDATE_MODE: unchanged = dupeCount - self.updateCount elif self.importMode == IGNORE_MODE: unchanged = dupeCount else: unchanged = 0 - part3 = ( - ngettext("%d note unchanged", "%d notes unchanged", unchanged) % unchanged - ) + part3 = self.col.tr(TR.IMPORTING_NOTE_UNCHANGED, count=unchanged) self.log.append("%s, %s, %s." % (part1, part2, part3)) self.log.extend(updateLog) self.total = len(self._ids) diff --git a/pylib/anki/importing/supermemo_xml.py b/pylib/anki/importing/supermemo_xml.py index 2b7b9b4af..48fc4021d 100644 --- a/pylib/anki/importing/supermemo_xml.py +++ b/pylib/anki/importing/supermemo_xml.py @@ -14,7 +14,6 @@ from xml.dom.minidom import Element, Text from anki.collection import Collection from anki.importing.noteimp import ForeignCard, ForeignNote, NoteImporter -from anki.lang import _, ngettext from anki.stdmodels import addBasicModel @@ -198,9 +197,7 @@ class SupermemoXmlImporter(NoteImporter): # Return imported cards self.total = len(self.notes) - self.log.append( - ngettext("%d card imported.", "%d cards imported.", self.total) % self.total - ) + self.log.append("%d cards imported." % self.total) return self.notes def fields(self) -> int: @@ -295,7 +292,7 @@ class SupermemoXmlImporter(NoteImporter): + " - " + dLevels[level].ljust(9) + " -\t" - + _(text) + + text ) # OPEN AND LOAD diff --git a/pylib/anki/lang.py b/pylib/anki/lang.py index df3c2514b..74496d1f5 100644 --- a/pylib/anki/lang.py +++ b/pylib/anki/lang.py @@ -1,13 +1,10 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -# Please leave the coding line in this file to prevent xgettext complaining. from __future__ import annotations -import gettext import re -from typing import Optional, Union +from typing import Optional import anki @@ -142,45 +139,35 @@ def lang_to_disk_lang(lang: str) -> str: # the currently set interface language currentLang = "en" -# the current gettext translation catalog -current_catalog: Optional[ - Union[gettext.NullTranslations, gettext.GNUTranslations] -] = None - # the current Fluent translation instance -current_i18n: Optional[anki.rsbackend.RustBackend] +current_i18n: Optional[anki.rsbackend.RustBackend] = None # path to locale folder locale_folder = "" def _(str: str) -> str: - if current_catalog: - return current_catalog.gettext(str) - else: - return str + print(f"gettext _() is deprecated: {str}") + return str def ngettext(single: str, plural: str, n: int) -> str: - if current_catalog: - return current_catalog.ngettext(single, plural, n) - elif n == 1: - return single + print(f"ngettext() is deprecated: {plural}") return plural +def tr_legacyglobal(*args, **kwargs) -> str: + "Should use col.tr() instead." + if current_i18n: + return current_i18n.translate(*args, **kwargs) + else: + return "tr_legacyglobal() called without active backend" + + def set_lang(lang: str, locale_dir: str) -> None: - global currentLang, current_catalog, current_i18n, locale_folder - gettext_dir = locale_dir - ftl_dir = locale_dir - + global currentLang, current_i18n, locale_folder currentLang = lang - current_catalog = gettext.translation( - "anki", gettext_dir, languages=[lang], fallback=True - ) - - current_i18n = anki.rsbackend.RustBackend(ftl_folder=ftl_dir, langs=[lang]) - + current_i18n = anki.rsbackend.RustBackend(ftl_folder=locale_folder, langs=[lang]) locale_folder = locale_dir diff --git a/pylib/anki/latex.py b/pylib/anki/latex.py index 4f8f3d8a2..782502eb9 100644 --- a/pylib/anki/latex.py +++ b/pylib/anki/latex.py @@ -11,9 +11,8 @@ from typing import Any, List, Optional, Tuple import anki from anki import hooks -from anki.lang import _ from anki.models import NoteType -from anki.rsbackend import pb +from anki.rsbackend import TR, pb from anki.template import TemplateRenderContext, TemplateRenderOutput from anki.utils import call, isMac, namedtmp, tmpdir @@ -129,15 +128,7 @@ def _save_latex_image( # don't mind if the sequence is only part of a command bad_re = "\\" + bad + "[^a-zA-Z]" if re.search(bad_re, tmplatex): - return ( - _( - """\ -For security reasons, '%s' is not allowed on cards. You can still use \ -it by placing the command in a different package, and importing that \ -package in the LaTeX header instead.""" - ) - % bad - ) + return col.tr(TR.MEDIA_FOR_SECURITY_REASONS_IS_NOT, val=bad) # commands to use if svg: @@ -160,7 +151,7 @@ package in the LaTeX header instead.""" os.chdir(tmpdir()) for latexCmd in latexCmds: if call(latexCmd, stdout=log, stderr=log): - return _errMsg(latexCmd[0], texpath) + return _errMsg(col, latexCmd[0], texpath) # add to media with open(png_or_svg, "rb") as file: data = file.read() @@ -172,9 +163,9 @@ package in the LaTeX header instead.""" log.close() -def _errMsg(type: str, texpath: str) -> Any: - msg = (_("Error executing %s.") % type) + "
" - msg += (_("Generated file: %s") % texpath) + "
" +def _errMsg(col: anki.collection.Collection, type: str, texpath: str) -> Any: + msg = col.tr(TR.MEDIA_ERROR_EXECUTING, val=type) + "
" + msg += col.tr(TR.MEDIA_GENERATED_FILE, val=texpath) + "
" try: with open(namedtmp("latex_log.txt", rm=False)) as f: log = f.read() @@ -182,7 +173,7 @@ def _errMsg(type: str, texpath: str) -> Any: raise Exception() msg += "
" + html.escape(log) + "
" except: - msg += _("Have you installed latex and dvipng/dvisvgm?") + msg += col.tr(TR.MEDIA_HAVE_YOU_INSTALLED_LATEX_AND_DVIPNGDVISVGM) return msg diff --git a/pylib/anki/media.py b/pylib/anki/media.py index 060dc847d..2d9a2478e 100644 --- a/pylib/anki/media.py +++ b/pylib/anki/media.py @@ -33,14 +33,18 @@ def media_paths_from_col_path(col_path: str) -> Tuple[str, str]: class MediaManager: - soundRegexps = [r"(?i)(\[sound:(?P[^]]+)\])"] - imgRegexps = [ + sound_regexps = [r"(?i)(\[sound:(?P[^]]+)\])"] + html_media_regexps = [ # src element quoted case - r"(?i)(]* src=(?P[\"'])(?P[^>]+?)(?P=str)[^>]*>)", + r"(?i)(<[img|audio][^>]* src=(?P[\"'])(?P[^>]+?)(?P=str)[^>]*>)", # unquoted case - r"(?i)(]* src=(?!['\"])(?P[^ >]+)[^>]*?>)", + r"(?i)(<[img|audio][^>]* src=(?!['\"])(?P[^ >]+)[^>]*?>)", + # src element quoted case + r"(?i)(]* data=(?P[\"'])(?P[^>]+?)(?P=str)[^>]*>)", + # unquoted case + r"(?i)(]* data=(?!['\"])(?P[^ >]+)[^>]*?>)", ] - regexps = soundRegexps + imgRegexps + regexps = sound_regexps + html_media_regexps def __init__(self, col: anki.collection.Collection, server: bool) -> None: self.col = col.weakref() @@ -159,7 +163,11 @@ class MediaManager: return txt def escapeImages(self, string: str, unescape: bool = False) -> str: - "Apply or remove percent encoding to image filenames." + "escape_media_filenames alias for compatibility with add-ons." + return self.escape_media_filenames(string, unescape) + + def escape_media_filenames(self, string: str, unescape: bool = False) -> str: + "Apply or remove percent encoding to filenames in html tags (audio, image, object)." fn: Callable if unescape: fn = urllib.parse.unquote @@ -173,7 +181,7 @@ class MediaManager: return tag return tag.replace(fname, fn(fname)) - for reg in self.imgRegexps: + for reg in self.html_media_regexps: string = re.sub(reg, repl, string) return string diff --git a/pylib/anki/models.py b/pylib/anki/models.py index 746555663..5f8351246 100644 --- a/pylib/anki/models.py +++ b/pylib/anki/models.py @@ -11,8 +11,14 @@ from typing import Any, Dict, List, Optional, Sequence, Tuple, Union import anki # pylint: disable=unused-import import anki.backend_pb2 as pb from anki.consts import * -from anki.lang import _ -from anki.rsbackend import NotFoundError, StockNoteType, from_json_bytes, to_json_bytes +from anki.lang import without_unicode_isolation +from anki.rsbackend import ( + TR, + NotFoundError, + StockNoteType, + from_json_bytes, + to_json_bytes, +) from anki.utils import checksum, ids2str, intTime, joinFields, splitFields # types @@ -260,7 +266,9 @@ class ModelManager: def copy(self, m: NoteType) -> NoteType: "Copy, save and return." m2 = copy.deepcopy(m) - m2["name"] = _("%s copy") % m2["name"] + m2["name"] = without_unicode_isolation( + self.col.tr(TR.NOTETYPES_COPY, val=m2["name"]) + ) m2["id"] = 0 self.add(m2) return m2 diff --git a/pylib/anki/rsbackend.py b/pylib/anki/rsbackend.py index ec78d831e..8e557541c 100644 --- a/pylib/anki/rsbackend.py +++ b/pylib/anki/rsbackend.py @@ -22,6 +22,8 @@ import os from dataclasses import dataclass from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Union +import orjson + import anki._rsbridge import anki.backend_pb2 as pb import anki.buildinfo @@ -59,15 +61,8 @@ SyncOutput = pb.SyncCollectionOut SyncStatus = pb.SyncStatusOut CountsForDeckToday = pb.CountsForDeckTodayOut -try: - import orjson - - to_json_bytes = orjson.dumps - from_json_bytes = orjson.loads -except: - # add compat layer for 32 bit builds that can't use orjson - to_json_bytes = lambda obj: json.dumps(obj).encode("utf8") # type: ignore - from_json_bytes = json.loads +to_json_bytes = orjson.dumps +from_json_bytes = orjson.loads class Interrupted(Exception): diff --git a/pylib/anki/schedv2.py b/pylib/anki/schedv2.py index fd1ea3ead..91491ca4d 100644 --- a/pylib/anki/schedv2.py +++ b/pylib/anki/schedv2.py @@ -25,9 +25,9 @@ from anki import hooks from anki.cards import Card from anki.consts import * from anki.decks import Deck, DeckConfig, DeckManager, QueueConfig -from anki.lang import _ from anki.notes import Note from anki.rsbackend import ( + TR, CountsForDeckToday, DeckTreeNode, FormatTimeSpanContext, @@ -1258,7 +1258,7 @@ due = (case when odue>0 then odue else due end), odue = 0, odid = 0, usn = ? whe "Return the next interval for CARD as a string." ivl_secs = self.nextIvl(card, ease) if not ivl_secs: - return _("(end)") + return self.col.tr(TR.SCHEDULING_END) s = self.col.format_timespan(ivl_secs, FormatTimeSpanContext.ANSWER_BUTTONS) if ivl_secs < self.col.conf["collapseTime"]: s = "<" + s diff --git a/pylib/anki/stats.py b/pylib/anki/stats.py index aedf641ec..164b5516d 100644 --- a/pylib/anki/stats.py +++ b/pylib/anki/stats.py @@ -10,7 +10,6 @@ from typing import Any, Dict, List, Optional, Sequence, Tuple, Union import anki from anki.consts import * -from anki.lang import _, ngettext from anki.rsbackend import TR, FormatTimeSpanContext from anki.utils import ids2str @@ -116,7 +115,7 @@ body { direction: ltr !important; } ###################################################################### def todayStats(self) -> str: - b = self._title(_("Today")) + b = self._title("Today") # studied today lim = self._revlogLimit() if lim: @@ -149,16 +148,16 @@ from revlog where id > ? """ cards=cards, seconds=float(thetime) ) # again/pass count - b += "
" + _("Again count: %s") % bold(failed) + b += "
" + "Again count: %s" % bold(failed) if cards: - b += " " + _("(%s correct)") % bold( + b += " " + "(%s correct)" % bold( "%0.1f%%" % ((1 - failed / float(cards)) * 100) ) # type breakdown b += "
" - b += _( - "Learn: %(a)s, Review: %(b)s, Relearn: %(c)s, Filtered: %(d)s" - ) % dict(a=bold(lrn), b=bold(rev), c=bold(relrn), d=bold(filt)) + b += "Learn: %(a)s, Review: %(b)s, Relearn: %(c)s, Filtered: %(d)s" % dict( + a=bold(lrn), b=bold(rev), c=bold(relrn), d=bold(filt) + ) # mature today mcnt, msum = self.col.db.first( """ @@ -169,13 +168,13 @@ from revlog where id > ? """ ) b += "
" if mcnt: - b += _( - "Correct answers on mature cards: %(a)d/%(b)d (%(c).1f%%)" - ) % dict(a=msum, b=mcnt, c=(msum / float(mcnt) * 100)) + b += "Correct answers on mature cards: %(a)d/%(b)d (%(c).1f%%)" % dict( + a=msum, b=mcnt, c=(msum / float(mcnt) * 100) + ) else: - b += _("No mature cards were studied today.") + b += "No mature cards were studied today." else: - b += _("No cards have been studied today.") + b += "No cards have been studied today." return b # Due and cumulative due @@ -210,22 +209,22 @@ from revlog where id > ? """ tot += day[1] + day[2] totd.append((day[0], tot)) data = [ - dict(data=mtr, color=colMature, label=_("Mature")), - dict(data=yng, color=colYoung, label=_("Young")), + dict(data=mtr, color=colMature, label="Mature"), + dict(data=yng, color=colYoung, label="Young"), ] if len(totd) > 1: data.append( dict( data=totd, color=colCum, - label=_("Cumulative"), + label="Cumulative", yaxis=2, bars={"show": False}, lines=dict(show=True), stack=False, ) ) - txt = self._title(_("Forecast"), _("The number of reviews due in the future.")) + txt = self._title("Forecast", "The number of reviews due in the future.") xaxis = dict(tickDecimals=0, min=-0.5) if end is not None: xaxis["max"] = end - 0.5 @@ -233,7 +232,7 @@ from revlog where id > ? """ id="due", data=data, xunit=chunk, - ylabel2=_("Cumulative Cards"), + ylabel2="Cumulative Cards", conf=dict( xaxis=xaxis, yaxes=[dict(min=0), dict(min=0, tickDecimals=0, position="right")], @@ -246,10 +245,10 @@ from revlog where id > ? """ i: List[str] = [] self._line( i, - _("Total"), + "Total", self.col.tr(TR.STATISTICS_REVIEWS, reviews=tot), ) - self._line(i, _("Average"), self._avgDay(tot, num, _("reviews"))) + self._line(i, "Average", self._avgDay(tot, num, "reviews")) tomorrow = self.col.db.scalar( f""" select count() from cards where did in %s and queue in ({QUEUE_TYPE_REV},{QUEUE_TYPE_DAY_LEARN_RELEARN}) @@ -257,8 +256,8 @@ and due = ?""" % self._limit(), self.col.sched.today + 1, ) - tomorrow = ngettext("%d card", "%d cards", tomorrow) % tomorrow - self._line(i, _("Due tomorrow"), tomorrow) + tomorrow = "%d cards" % tomorrow + self._line(i, "Due tomorrow", tomorrow) return self._lineTbl(i) def _due( @@ -306,8 +305,8 @@ group by day order by day""" # graph repdata, repsum = self._splitRepData(data, ((1, colLearn, ""),)) - txt = self._title(_("Added"), _("The number of new cards you have added.")) - txt += plot("intro", repdata, ylabel=_("Cards"), ylabel2=_("Cumulative Cards")) + txt = self._title("Added", "The number of new cards you have added.") + txt += plot("intro", repdata, ylabel="Cards", ylabel2="Cumulative Cards") # total and per day average tot = sum([i[1] for i in data]) period = self._periodDays() @@ -315,8 +314,8 @@ group by day order by day""" # base off date of earliest added card period = self._deckAge("add") i: List[str] = [] - self._line(i, _("Total"), ngettext("%d card", "%d cards", tot) % tot) - self._line(i, _("Average"), self._avgDay(tot, period, _("cards"))) + self._line(i, "Total", "%d cards" % tot) + self._line(i, "Average", self._avgDay(tot, period, "cards")) txt += self._lineTbl(i) return txt @@ -343,45 +342,39 @@ group by day order by day""" (repdata, repsum) = self._splitRepData( data, ( - (3, colMature, _("Mature")), - (2, colYoung, _("Young")), - (4, colRelearn, _("Relearn")), - (1, colLearn, _("Learn")), - (5, colCram, _("Cram")), + (3, colMature, "Mature"), + (2, colYoung, "Young"), + (4, colRelearn, "Relearn"), + (1, colLearn, "Learn"), + (5, colCram, "Cram"), ), ) - txt1 = self._title( - _("Review Count"), _("The number of questions you have answered.") - ) - txt1 += plot( - "reps", repdata, ylabel=_("Answers"), ylabel2=_("Cumulative Answers") - ) + txt1 = self._title("Review Count", "The number of questions you have answered.") + txt1 += plot("reps", repdata, ylabel="Answers", ylabel2="Cumulative Answers") (daysStud, fstDay) = self._daysStudied() - rep, tot = self._ansInfo(repsum, daysStud, fstDay, _("reviews")) + rep, tot = self._ansInfo(repsum, daysStud, fstDay, "reviews") txt1 += rep # time (timdata, timsum) = self._splitRepData( data, ( - (8, colMature, _("Mature")), - (7, colYoung, _("Young")), - (9, colRelearn, _("Relearn")), - (6, colLearn, _("Learn")), - (10, colCram, _("Cram")), + (8, colMature, "Mature"), + (7, colYoung, "Young"), + (9, colRelearn, "Relearn"), + (6, colLearn, "Learn"), + (10, colCram, "Cram"), ), ) if self.type == PERIOD_MONTH: - t = _("Minutes") + t = "Minutes" convHours = False else: - t = _("Hours") + t = "Hours" convHours = True - txt2 = self._title( - _("Review Time"), _("The time taken to answer the questions.") - ) - txt2 += plot("time", timdata, ylabel=t, ylabel2=_("Cumulative %s") % t) + txt2 = self._title("Review Time", "The time taken to answer the questions.") + txt2 += plot("time", timdata, ylabel=t, ylabel2="Cumulative %s" % t) rep, tot2 = self._ansInfo( - timsum, daysStud, fstDay, _("minutes"), convHours, total=tot + timsum, daysStud, fstDay, "minutes", convHours, total=tot ) txt2 += rep return self._section(txt1) + self._section(txt2) @@ -404,34 +397,30 @@ group by day order by day""" i: List[str] = [] self._line( i, - _("Days studied"), - _("%(pct)d%% (%(x)s of %(y)s)") + "Days studied", + "%(pct)d%% (%(x)s of %(y)s)" % dict(x=studied, y=period, pct=studied / float(period) * 100), bold=False, ) if convHours: - tunit = _("hours") + tunit = "hours" else: tunit = unit # T: unit: can be hours, minutes, reviews... tot: the number of unit. - self._line( - i, _("Total"), _("%(tot)s %(unit)s") % dict(unit=tunit, tot=int(tot)) - ) + self._line(i, "Total", "%(tot)s %(unit)s" % dict(unit=tunit, tot=int(tot))) if convHours: # convert to minutes tot *= 60 - self._line(i, _("Average for days studied"), self._avgDay(tot, studied, unit)) + self._line(i, "Average for days studied", self._avgDay(tot, studied, unit)) if studied != period: # don't display if you did study every day - self._line( - i, _("If you studied every day"), self._avgDay(tot, period, unit) - ) + self._line(i, "If you studied every day", self._avgDay(tot, period, unit)) if total and tot: perMin = total / float(tot) average_secs = (tot * 60) / total self._line( i, - _("Average answer time"), + "Average answer time", self.col.tr( TR.STATISTICS_AVERAGE_ANSWER_TIME, **{"cards-per-minute": perMin, "average-seconds": average_secs}, @@ -593,10 +582,10 @@ group by day order by day)""" ivlmax = 52 else: ivlmax = max(5, ivls[-1][0]) - txt = self._title(_("Intervals"), _("Delays until reviews are shown again.")) + txt = self._title("Intervals", "Delays until reviews are shown again.") txt += self._graph( id="ivl", - ylabel2=_("Percentage"), + ylabel2="Percentage", xunit=chunk, data=[ dict(data=ivls, color=colIvl), @@ -615,8 +604,8 @@ group by day order by day)""" ), ) i: List[str] = [] - self._line(i, _("Average interval"), self.col.format_timespan(avg * 86400)) - self._line(i, _("Longest interval"), self.col.format_timespan(max_ * 86400)) + self._line(i, "Average interval", self.col.format_timespan(avg * 86400)) + self._line(i, "Longest interval", self.col.format_timespan(max_ * 86400)) return txt + self._lineTbl(i) def _ivls(self) -> Tuple[List[Any], int]: @@ -678,18 +667,18 @@ select count(), avg(ivl), max(ivl) from cards where did in %s and queue = {QUEUE if self.col.schedVer() != 1: ticks.insert(3, [4, 4]) txt = self._title( - _("Answer Buttons"), _("The number of times you have pressed each button.") + "Answer Buttons", "The number of times you have pressed each button." ) txt += self._graph( id="ease", data=[ - dict(data=d["lrn"], color=colLearn, label=_("Learning")), - dict(data=d["yng"], color=colYoung, label=_("Young")), - dict(data=d["mtr"], color=colMature, label=_("Mature")), + dict(data=d["lrn"], color=colLearn, label="Learning"), + dict(data=d["yng"], color=colYoung, label="Young"), + dict(data=d["mtr"], color=colMature, label="Mature"), ], type="bars", conf=dict(xaxis=dict(ticks=ticks, min=0, max=15)), - ylabel=_("Answers"), + ylabel="Answers", ) txt += self._easeInfo(eases) return txt @@ -710,7 +699,7 @@ select count(), avg(ivl), max(ivl) from cards where did in %s and queue = {QUEUE except: pct = 0 i.append( - _("Correct: %(pct)0.2f%%
(%(good)d of %(tot)d)") + "Correct: %(pct)0.2f%%
(%(good)d of %(tot)d)" % dict(pct=pct, good=good, tot=tot) ) return ( @@ -788,16 +777,16 @@ order by thetype, ease""" diff = round(diff, 1) trend.append((hour, prev + diff)) txt = self._title( - _("Hourly Breakdown"), _("Review success rate for each hour of the day.") + "Hourly Breakdown", "Review success rate for each hour of the day." ) txt += self._graph( id="hour", data=[ - dict(data=shifted, color=colCum, label=_("% Correct")), + dict(data=shifted, color=colCum, label="% Correct"), dict( data=counts, color=colHour, - label=_("Answers"), + label="Answers", yaxis=2, bars=dict(barWidth=0.2), stack=False, @@ -806,19 +795,19 @@ order by thetype, ease""" conf=dict( xaxis=dict( ticks=[ - [0, _("4AM")], - [6, _("10AM")], - [12, _("4PM")], - [18, _("10PM")], - [23, _("3AM")], + [0, "4AM"], + [6, "10AM"], + [12, "4PM"], + [18, "10PM"], + [23, "3AM"], ] ), yaxes=[dict(max=peak), dict(position="right", max=mcount)], ), - ylabel=_("% Correct"), - ylabel2=_("Reviews"), + ylabel="% Correct", + ylabel2="Reviews", ) - txt += _("Hours with less than 30 reviews are not shown.") + txt += "Hours with less than 30 reviews are not shown." return txt def _hourRet(self) -> Any: @@ -855,10 +844,10 @@ group by hour having count() > 30 order by hour""" d = [] for c, (t, col) in enumerate( ( - (_("Mature"), colMature), - (_("Young+Learn"), colYoung), - (_("Unseen"), colUnseen), - (_("Suspended+Buried"), colSusp), + ("Mature", colMature), + ("Young+Learn", colYoung), + ("Unseen", colUnseen), + ("Suspended+Buried", colSusp), ) ): d.append(dict(data=div[c], label="%s: %s" % (t, div[c]), color=col)) @@ -870,20 +859,18 @@ select count(id), count(distinct nid) from cards where did in %s """ % self._limit() ) - self._line(i, _("Total cards"), c) - self._line(i, _("Total notes"), f) + self._line(i, "Total cards", c) + self._line(i, "Total notes", f) (low, avg, high) = self._factors() if low: - self._line(i, _("Lowest ease"), "%d%%" % low) - self._line(i, _("Average ease"), "%d%%" % avg) - self._line(i, _("Highest ease"), "%d%%" % high) + self._line(i, "Lowest ease", "%d%%" % low) + self._line(i, "Average ease", "%d%%" % avg) + self._line(i, "Highest ease", "%d%%" % high) info = "" + "".join(i) + "

" - info += _( - """\ + info += """\ A card's ease is the size of the next interval \ when you answer "good" on a review.""" - ) - txt = self._title(_("Card Types"), _("The division of cards in your deck(s).")) + txt = self._title("Card Types", "The division of cards in your deck(s).") txt += "
%s%s
" % ( self.width, self._graph(id="cards", data=d, type="pie"), @@ -895,7 +882,7 @@ when you answer "good" on a review.""" self, i: List[str], a: str, b: Union[int, str], bold: bool = True ) -> None: # T: Symbols separating first and second column in a statistics table. Eg in "Total: 3 reviews". - colon = _(":") + colon = ":" if bold: i.append( ("%s%s%s") @@ -938,15 +925,15 @@ from cards where did in %s""" def footer(self) -> str: b = "

" - b += _("Generated on %s") % time.asctime(time.localtime(time.time())) + b += "Generated on %s" % time.asctime(time.localtime(time.time())) b += "
" if self.wholeCollection: - deck = _("whole collection") + deck = "whole collection" else: deck = self.col.decks.current()["name"] - b += _("Scope: %s") % deck + b += "Scope: %s" % deck b += "
" - b += _("Period: %s") % [_("1 month"), _("1 year"), _("deck life")][self.type] + b += "Period: %s" % ["1 month", "1 year", "deck life"][self.type] return b # Tools @@ -959,7 +946,7 @@ from cards where did in %s""" conf: Optional[Any] = None, type: str = "bars", xunit: int = 1, - ylabel: str = _("Cards"), + ylabel: str = "Cards", ylabel2: str = "", ) -> str: if conf is None: @@ -979,11 +966,11 @@ from cards where did in %s""" conf["timeTicks"] = False else: # T: abbreviation of day - d = _("d") + d = "d" # T: abbreviation of week - w = _("w") + w = "w" # T: abbreviation of month - mo = _("mo") + mo = "mo" conf["timeTicks"] = {1: d, 7: w, 31: mo}[xunit] # types width = self.width @@ -1109,7 +1096,7 @@ $(function () { def _avgDay(self, tot: float, num: int, unit: str) -> str: vals = [] try: - vals.append(_("%(a)0.1f %(b)s/day") % dict(a=tot / float(num), b=unit)) + vals.append("%(a)0.1f %(b)s/day" % dict(a=tot / float(num), b=unit)) return ", ".join(vals) except ZeroDivisionError: return "" diff --git a/pylib/anki/template_legacy.py b/pylib/anki/template_legacy.py index 40942be37..b2bbea5c4 100644 --- a/pylib/anki/template_legacy.py +++ b/pylib/anki/template_legacy.py @@ -12,8 +12,7 @@ the legacy addHook() API. # import re # from typing import Any, Callable # -# from anki.lang import _ -# from anki.template import ( +# # from anki.template import ( # CLOZE_REGEX_MATCH_GROUP_CONTENT, # CLOZE_REGEX_MATCH_GROUP_HINT, # CLOZE_REGEX_MATCH_GROUP_TAG, @@ -155,7 +154,7 @@ the legacy addHook() API. # %s

# """ % ( # domid, -# _("Show %s") % tag, +# "Show %s" % tag, # domid, # txt, # ) diff --git a/pylib/mypy.ini b/pylib/mypy.ini index b823d67aa..c1c751df9 100644 --- a/pylib/mypy.ini +++ b/pylib/mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.7 +python_version = 3.8 pretty = false no_strict_optional = true show_error_codes = true diff --git a/pylib/rsbridge/BUILD.bazel b/pylib/rsbridge/BUILD.bazel index 448b3d3e4..6bafa4d8c 100644 --- a/pylib/rsbridge/BUILD.bazel +++ b/pylib/rsbridge/BUILD.bazel @@ -33,14 +33,14 @@ rust_library( ) rustfmt_test( - name = "format", + name = "format_check", srcs = glob([ "*.rs", ]), ) rustfmt_fix( - name = "format_fix", + name = "format", srcs = glob([ "*.rs", ]), diff --git a/pylib/tests/run_format.py b/pylib/tests/run_format.py index 51268b273..9ea686bd9 100644 --- a/pylib/tests/run_format.py +++ b/pylib/tests/run_format.py @@ -22,7 +22,7 @@ if __name__ == "__main__": "-m", "black", "-t", - "py36", + "py38", "anki", "tests", "tools", diff --git a/pylib/tests/test_latex.py b/pylib/tests/test_latex.py index befd063ea..59f8b50ae 100644 --- a/pylib/tests/test_latex.py +++ b/pylib/tests/test_latex.py @@ -3,6 +3,7 @@ import os import shutil +from anki.lang import without_unicode_isolation from tests.shared import getEmptyCol @@ -20,7 +21,7 @@ def test_latex(): assert len(os.listdir(col.media.dir())) == 0 # check the error message msg = note.cards()[0].q() - assert "executing nolatex" in msg + assert "executing nolatex" in without_unicode_isolation(msg) assert "installed" in msg # check if we have latex installed, and abort test if we don't if not shutil.which("latex") or not shutil.which("dvipng"): @@ -91,5 +92,5 @@ def _test_includes_bad_command(bad): note = col.newNote() note["Front"] = "[latex]%s[/latex]" % bad col.addNote(note) - q = note.cards()[0].q() + q = without_unicode_isolation(note.cards()[0].q()) return ("'%s' is not allowed on cards" % bad in q, "Card content: %s" % q) diff --git a/pylib/tests/test_media.py b/pylib/tests/test_media.py index 0f805ca0c..49ac74d24 100644 --- a/pylib/tests/test_media.py +++ b/pylib/tests/test_media.py @@ -46,7 +46,7 @@ def test_strings(): assert sp("aoeu") == "aoeu" assert sp("aoeu[sound:foo.mp3]aoeu") == "aoeuaoeu" assert sp("aoeu") == "aoeu" - es = col.media.escapeImages + es = col.media.escape_media_filenames assert es("aoeu") == "aoeu" assert es("") == "" assert es('') == '' diff --git a/pylib/tools/BUILD.bazel b/pylib/tools/BUILD.bazel index 91d989507..25b2277cb 100644 --- a/pylib/tools/BUILD.bazel +++ b/pylib/tools/BUILD.bazel @@ -28,9 +28,6 @@ py_binary( "genbackend.py", "//pylib/anki:backend_pb2", ], - imports = [ - "../anki", - ], visibility = ["//pylib:__subpackages__"], deps = [ requirement("black"), @@ -64,7 +61,7 @@ py_binary( ) filegroup( - name = "py_files", + name = "py_source_files", srcs = glob(["*.py"]), visibility = ["//pylib:__subpackages__"], ) diff --git a/pylib/tools/genbackend.py b/pylib/tools/genbackend.py index 2c2e1e031..5ed89f86b 100755 --- a/pylib/tools/genbackend.py +++ b/pylib/tools/genbackend.py @@ -5,7 +5,8 @@ import os import re import sys -import backend_pb2 as pb +import pylib.anki.backend_pb2 as pb + import stringcase TYPE_DOUBLE = 1 diff --git a/qt/BUILD.bazel b/qt/BUILD.bazel index c18d2b911..a526dc263 100644 --- a/qt/BUILD.bazel +++ b/qt/BUILD.bazel @@ -82,7 +82,7 @@ py_test( ) py_test( - name = "format", + name = "format_check", srcs = glob([ "**/*.py", ]), @@ -99,7 +99,7 @@ py_test( ) py_binary( - name = "format_fix", + name = "format", srcs = [ "tests/run_format.py", ], diff --git a/qt/aqt/BUILD.bazel b/qt/aqt/BUILD.bazel index 524f41c3a..675a38c54 100644 --- a/qt/aqt/BUILD.bazel +++ b/qt/aqt/BUILD.bazel @@ -4,12 +4,6 @@ load("@py_deps//:requirements.bzl", "requirement") load("@rules_python//experimental/python:wheel.bzl", "py_package", "py_wheel") load("//:defs.bzl", "anki_version") -copy_file( - name = "buildinfo", - src = "//:buildinfo.txt", - out = "buildinfo.txt", -) - genrule( name = "hooks_gen", outs = ["hooks_gen.py"], @@ -37,7 +31,6 @@ aqt_srcs = glob([ ] aqt_core_data = [ - "buildinfo.txt", "colors.py", "py.typed", ":hooks_gen", @@ -100,7 +93,6 @@ py_wheel( python_version = ">=3.8", requires = [ # "pyaudio", # currently off as a pain to install on Windows for code completion - # "pyqtwebengine", # depending on this limits installable qt5 versions "beautifulsoup4", "requests", "send2trash", @@ -109,7 +101,8 @@ py_wheel( "flask", "flask_cors", "waitress", - "pyqt5>=5.9", + "pyqt5>=5.12", + "pyqtwebengine", 'psutil; sys.platform == "win32"', 'pywin32; sys.platform == "win32"', "anki==" + anki_version, @@ -122,3 +115,11 @@ py_wheel( ":aqt_pkg", ], ) + +filegroup( + name = "py_source_files", + srcs = glob(["**/*.py"]), + visibility = [ + "//qt/po:__pkg__", + ], +) diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 665b8bc96..2317b4c67 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -4,7 +4,6 @@ import argparse import builtins import getpass -import gettext import locale import os import sys @@ -12,9 +11,7 @@ import tempfile import traceback from typing import Any, Callable, Dict, Optional, Union -import anki.buildinfo import anki.lang -import aqt.buildinfo from anki import version as _version from anki.consts import HELP_SITE from anki.rsbackend import RustBackend @@ -22,8 +19,6 @@ from anki.utils import checksum, isLin, isMac from aqt.qt import * from aqt.utils import locale_dir -assert anki.buildinfo.buildhash == aqt.buildinfo.buildhash - # we want to be able to print unicode debug info to console without # fear of a traceback on systems with the console set to ASCII try: @@ -171,7 +166,7 @@ dialogs = DialogManager() # Language handling ########################################################################## # Qt requires its translator to be installed before any GUI widgets are -# loaded, and we need the Qt language to match the gettext language or +# loaded, and we need the Qt language to match the i18n language or # translated shortcuts will not work. # A reference to the Qt translator needs to be held to prevent it from @@ -190,20 +185,14 @@ def setupLangAndBackend( # add _ and ngettext globals used by legacy code def fn__(arg): - print("accessing _ without importing from anki.lang will break in the future") print("".join(traceback.format_stack()[-2])) - from anki.lang import _ - - return _(arg) + print("_ global will break in the future; please see anki/lang.py") + return arg def fn_ngettext(a, b, c): - print( - "accessing ngettext without importing from anki.lang will break in the future" - ) print("".join(traceback.format_stack()[-2])) - from anki.lang import ngettext - - return ngettext(a, b, c) + print("ngettext global will break in the future; please see anki/lang.py") + return b builtins.__dict__["_"] = fn__ builtins.__dict__["ngettext"] = fn_ngettext @@ -212,7 +201,7 @@ def setupLangAndBackend( lang = force or pm.meta["defaultLang"] lang = anki.lang.lang_to_disk_lang(lang) - # load gettext catalog + # set active language ldir = locale_dir() anki.lang.set_lang(lang, ldir) diff --git a/qt/aqt/about.py b/qt/aqt/about.py index c73de49b4..73205ad85 100644 --- a/qt/aqt/about.py +++ b/qt/aqt/about.py @@ -5,11 +5,10 @@ import platform import time import aqt.forms -from anki.lang import _ from anki.utils import versionWithBuild from aqt.addons import AddonManager, AddonMeta from aqt.qt import * -from aqt.utils import supportText, tooltip +from aqt.utils import TR, supportText, tooltip, tr class ClosableQDialog(QDialog): @@ -83,9 +82,9 @@ def show(mw): """ info = " " + " ".join(info.splitlines(True)) QApplication.clipboard().setText(info) - tooltip(_("Copied to clipboard"), parent=dialog) + tooltip(tr(TR.ABOUT_COPIED_TO_CLIPBOARD), parent=dialog) - btn = QPushButton(_("Copy Debug Info")) + btn = QPushButton(tr(TR.ABOUT_COPY_DEBUG_INFO)) qconnect(btn.clicked, onCopy) abt.buttonBox.addButton(btn, QDialogButtonBox.ActionRole) abt.buttonBox.button(QDialogButtonBox.Ok).setFocus() @@ -93,21 +92,15 @@ def show(mw): # WebView contents ###################################################################### abouttext = "
" - abouttext += "

" + _( - "Anki is a friendly, intelligent spaced learning \ -system. It's free and open source." - ) - abouttext += "

" + _( - "Anki is licensed under the AGPL3 license. Please see " - "the license file in the source distribution for more information." - ) - abouttext += "

" + _("Version %s") % versionWithBuild() + "
" + abouttext += "

" + tr(TR.ABOUT_ANKI_IS_A_FRIENDLY_INTELLIGENT_SPACED) + abouttext += "

" + tr(TR.ABOUT_ANKI_IS_LICENSED_UNDER_THE_AGPL3) + abouttext += "

" + tr(TR.ABOUT_VERSION, val=versionWithBuild()) + "
" abouttext += ("Python %s Qt %s PyQt %s
") % ( platform.python_version(), QT_VERSION_STR, PYQT_VERSION_STR, ) - abouttext += (_("Visit website") % aqt.appWebsite) + "" + abouttext += tr(TR.ABOUT_VISIT_WEBSITE, val=aqt.appWebsite) + "" # automatically sorted; add new lines at the end allusers = sorted( @@ -209,22 +202,11 @@ system. It's free and open source." ) ) - abouttext += ( - "

" - + _( - "Written by Damien Elmes, with patches, translation,\ - testing and design from:

%(cont)s" - ) - % {"cont": ", ".join(allusers)} - ) - abouttext += "

" + _( - "If you have contributed and are not on this list, \ -please get in touch." - ) - abouttext += "

" + _( - "A big thanks to all the people who have provided \ -suggestions, bug reports and donations." - ) + abouttext += "

" + tr(TR.ABOUT_WRITTEN_BY_DAMIEN_ELMES_WITH_PATCHES) % { + "cont": ", ".join(allusers) + } + abouttext += "

" + tr(TR.ABOUT_IF_YOU_HAVE_CONTRIBUTED_AND_ARE) + abouttext += "

" + tr(TR.ABOUT_A_BIG_THANKS_TO_ALL_THE) abt.label.setMinimumWidth(800) abt.label.setMinimumHeight(600) dialog.show() diff --git a/qt/aqt/addcards.py b/qt/aqt/addcards.py index 127a2898e..d6f093b4f 100644 --- a/qt/aqt/addcards.py +++ b/qt/aqt/addcards.py @@ -8,7 +8,6 @@ import aqt.editor import aqt.forms import aqt.modelchooser from anki.consts import MODEL_CLOZE -from anki.lang import _ from anki.notes import Note from anki.utils import htmlToTextLine, isMac from aqt import AnkiQt, gui_hooks @@ -16,6 +15,7 @@ from aqt.main import ResetReason from aqt.qt import * from aqt.sound import av_player from aqt.utils import ( + TR, addCloseShortcut, askUser, downArrow, @@ -25,6 +25,7 @@ from aqt.utils import ( shortcut, showWarning, tooltip, + tr, ) @@ -35,7 +36,7 @@ class AddCards(QDialog): self.mw = mw self.form = aqt.forms.addcards.Ui_Dialog() self.form.setupUi(self) - self.setWindowTitle(_("Add")) + self.setWindowTitle(tr(TR.ACTIONS_ADD)) self.setMinimumHeight(300) self.setMinimumWidth(400) self.setupChoosers() @@ -67,26 +68,26 @@ class AddCards(QDialog): bb = self.form.buttonBox ar = QDialogButtonBox.ActionRole # add - self.addButton = bb.addButton(_("Add"), ar) + self.addButton = bb.addButton(tr(TR.ACTIONS_ADD), ar) qconnect(self.addButton.clicked, self.addCards) self.addButton.setShortcut(QKeySequence("Ctrl+Return")) - self.addButton.setToolTip(shortcut(_("Add (shortcut: ctrl+enter)"))) + self.addButton.setToolTip(shortcut(tr(TR.ADDING_ADD_SHORTCUT_CTRLANDENTER))) # close - self.closeButton = QPushButton(_("Close")) + self.closeButton = QPushButton(tr(TR.ACTIONS_CLOSE)) self.closeButton.setAutoDefault(False) bb.addButton(self.closeButton, QDialogButtonBox.RejectRole) # help - self.helpButton = QPushButton(_("Help"), clicked=self.helpRequested) # type: ignore + self.helpButton = QPushButton(tr(TR.ACTIONS_HELP), clicked=self.helpRequested) # type: ignore self.helpButton.setAutoDefault(False) bb.addButton(self.helpButton, QDialogButtonBox.HelpRole) # history - b = bb.addButton(_("History") + " " + downArrow(), ar) + b = bb.addButton(tr(TR.ADDING_HISTORY) + " " + downArrow(), ar) if isMac: sc = "Ctrl+Shift+H" else: sc = "Ctrl+H" b.setShortcut(QKeySequence(sc)) - b.setToolTip(_("Shortcut: %s") % shortcut(sc)) + b.setToolTip(tr(TR.ADDING_SHORTCUT, val=shortcut(sc))) qconnect(b.clicked, self.onHistory) b.setEnabled(False) self.historyButton = b @@ -146,12 +147,12 @@ class AddCards(QDialog): txt = htmlToTextLine(", ".join(fields)) if len(txt) > 30: txt = txt[:30] + "..." - line = _('Edit "%s"') % txt + line = tr(TR.ADDING_EDIT, val=txt) line = gui_hooks.addcards_will_add_history_entry(line, note) a = m.addAction(line) qconnect(a.triggered, lambda b, nid=nid: self.editHistory(nid)) else: - a = m.addAction(_("(Note deleted)")) + a = m.addAction(tr(TR.ADDING_NOTE_DELETED)) a.setEnabled(False) gui_hooks.add_cards_will_show_history_menu(self, m) m.exec_(self.historyButton.mapToGlobal(QPoint(0, 0))) @@ -166,19 +167,14 @@ class AddCards(QDialog): ret = note.dupeOrEmpty() problem = None if ret == 1: - problem = _("The first field is empty.") + problem = tr(TR.ADDING_THE_FIRST_FIELD_IS_EMPTY) problem = gui_hooks.add_cards_will_add_note(problem, note) if problem is not None: showWarning(problem, help="AddItems#AddError") return None if note.model()["type"] == MODEL_CLOZE: if not note.cloze_numbers_in_fields(): - if not askUser( - _( - "You have a cloze deletion note type " - "but have not made any cloze deletions. Proceed?" - ) - ): + if not askUser(tr(TR.ADDING_YOU_HAVE_A_CLOZE_DELETION_NOTE)): return None self.mw.col.add_note(note, self.deckChooser.selectedId()) self.mw.col.clearUndo() @@ -199,7 +195,7 @@ class AddCards(QDialog): # workaround for PyQt focus bug self.editor.hideCompleters() - tooltip(_("Added"), period=500) + tooltip(tr(TR.ADDING_ADDED), period=500) av_player.stop_and_clear_queue() self.onReset(keep=True) self.mw.col.autosave() @@ -229,7 +225,7 @@ class AddCards(QDialog): def ifCanClose(self, onOk: Callable) -> None: def afterSave(): ok = self.editor.fieldsAreBlank(self.previousNote) or askUser( - _("Close and lose current input?"), defaultno=True + tr(TR.ADDING_CLOSE_AND_LOSE_CURRENT_INPUT), defaultno=True ) if ok: onOk() diff --git a/qt/aqt/addons.py b/qt/aqt/addons.py index c36b1d8f4..ef8d18912 100644 --- a/qt/aqt/addons.py +++ b/qt/aqt/addons.py @@ -1,7 +1,6 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations import io @@ -25,7 +24,7 @@ import anki import aqt import aqt.forms from anki.httpclient import HttpClient -from anki.lang import _, ngettext, without_unicode_isolation +from anki.lang import without_unicode_isolation from aqt import gui_hooks from aqt.qt import * from aqt.utils import ( @@ -276,10 +275,7 @@ class AddonManager: if conflicting: addons = ", ".join(self.addonName(f) for f in conflicting) showInfo( - _( - "The following add-ons are incompatible with %(name)s \ -and have been disabled: %(found)s" - ) + tr(TR.ADDONS_THE_FOLLOWING_ADDONS_ARE_INCOMPATIBLE_WITH) % dict(name=addon.human_name(), found=addons), textFormat="plain", ) @@ -310,7 +306,7 @@ and have been disabled: %(found)s" meta = self.addon_meta(dir) name = meta.human_name() if not meta.enabled: - name += _(" (disabled)") + name += tr(TR.ADDONS_DISABLED) return name # Conflict resolution @@ -423,10 +419,7 @@ and have been disabled: %(found)s" return True except OSError as e: showWarning( - _( - "Unable to update or delete add-on. Please start Anki while holding down the shift key to temporarily disable add-ons, then try again.\n\nDebug info: %s" - ) - % e, + tr(TR.ADDONS_UNABLE_TO_UPDATE_OR_DELETE_ADDON, val=str(e)), textFormat="plain", ) return False @@ -468,16 +461,18 @@ and have been disabled: %(found)s" ) -> List[str]: messages = { - "zip": _("Corrupt add-on file."), - "manifest": _("Invalid add-on manifest."), + "zip": tr(TR.ADDONS_CORRUPT_ADDON_FILE), + "manifest": tr(TR.ADDONS_INVALID_ADDON_MANIFEST), } - msg = messages.get(result.errmsg, _("Unknown error: {}".format(result.errmsg))) + msg = messages.get( + result.errmsg, tr(TR.ADDONS_UNKNOWN_ERROR, val=result.errmsg) + ) if mode == "download": # preserve old format strings for i18n - template = _("Error downloading %(id)s: %(error)s") + template = tr(TR.ADDONS_ERROR_DOWNLOADING_IDS_ERRORS) else: - template = _("Error installing %(base)s: %(error)s") + template = tr(TR.ADDONS_ERROR_INSTALLING_BASES_ERRORS) name = base @@ -488,24 +483,22 @@ and have been disabled: %(found)s" ) -> List[str]: if mode == "download": # preserve old format strings for i18n - template = _("Downloaded %(fname)s") + template = tr(TR.ADDONS_DOWNLOADED_FNAMES) else: - template = _("Installed %(name)s") + template = tr(TR.ADDONS_INSTALLED_NAMES) name = result.name or base strings = [template % dict(name=name, fname=name)] if result.conflicts: strings.append( - _("The following conflicting add-ons were disabled:") + tr(TR.ADDONS_THE_FOLLOWING_CONFLICTING_ADDONS_WERE_DISABLED) + " " + ", ".join(self.addonName(f) for f in result.conflicts) ) if not result.compatible: - strings.append( - _("This add-on is not compatible with your version of Anki.") - ) + strings.append(tr(TR.ADDONS_THIS_ADDON_IS_NOT_COMPATIBLE_WITH)) return strings @@ -743,9 +736,11 @@ class AddonsDialog(QDialog): name = addon.human_name() if not addon.enabled: - return name + " " + _("(disabled)") + return name + " " + tr(TR.ADDONS_DISABLED2) elif not addon.compatible(): - return name + " " + _("(requires %s)") % self.compatible_string(addon) + return ( + name + " " + tr(TR.ADDONS_REQUIRES, val=self.compatible_string(addon)) + ) return name @@ -804,7 +799,7 @@ class AddonsDialog(QDialog): def onlyOneSelected(self) -> Optional[str]: dirs = self.selectedAddons() if len(dirs) != 1: - showInfo(_("Please select a single add-on first.")) + showInfo(tr(TR.ADDONS_PLEASE_SELECT_A_SINGLE_ADDON_FIRST)) return None return dirs[0] @@ -820,7 +815,7 @@ class AddonsDialog(QDialog): if re.match(r"^\d+$", addon): openLink(aqt.appShared + "info/{}".format(addon)) else: - showWarning(_("Add-on was not downloaded from AnkiWeb.")) + showWarning(tr(TR.ADDONS_ADDON_WAS_NOT_DOWNLOADED_FROM_ANKIWEB)) def onViewFiles(self) -> None: # if nothing selected, open top level folder @@ -841,12 +836,7 @@ class AddonsDialog(QDialog): if not selected: return if not askUser( - ngettext( - "Delete the %(num)d selected add-on?", - "Delete the %(num)d selected add-ons?", - len(selected), - ) - % dict(num=len(selected)) + tr(TR.ADDONS_DELETE_THE_NUMD_SELECTED_ADDON, count=len(selected)) ): return for dir in selected: @@ -865,13 +855,13 @@ class AddonsDialog(QDialog): if log: show_log_to_user(self, log) else: - tooltip(_("No updates available.")) + tooltip(tr(TR.ADDONS_NO_UPDATES_AVAILABLE)) def onInstallFiles(self, paths: Optional[List[str]] = None) -> Optional[bool]: if not paths: - key = _("Packaged Anki Add-on") + " (*{})".format(self.mgr.ext) + key = tr(TR.ADDONS_PACKAGED_ANKI_ADDON) + " (*{})".format(self.mgr.ext) paths = getFile( - self, _("Install Add-on(s)"), None, key, key="addons", multi=True + self, tr(TR.ADDONS_INSTALL_ADDONS), None, key, key="addons", multi=True ) if not paths: return False @@ -882,7 +872,7 @@ class AddonsDialog(QDialog): return None def check_for_updates(self) -> None: - tooltip(_("Checking...")) + tooltip(tr(TR.ADDONS_CHECKING)) check_and_prompt_for_updates(self, self.mgr, self.after_downloading) def onConfig(self) -> None: @@ -899,7 +889,7 @@ class AddonsDialog(QDialog): conf = self.mgr.getConfig(addon) if conf is None: - showInfo(_("Add-on has no configuration.")) + showInfo(tr(TR.ADDONS_ADDON_HAS_NO_CONFIGURATION)) return ConfigEditor(self, addon, conf) @@ -919,7 +909,7 @@ class GetAddons(QDialog): self.form = aqt.forms.getaddons.Ui_Dialog() self.form.setupUi(self) b = self.form.buttonBox.addButton( - _("Browse Add-ons"), QDialogButtonBox.ActionRole + tr(TR.ADDONS_BROWSE_ADDONS), QDialogButtonBox.ActionRole ) qconnect(b.clicked, self.onBrowse) restoreGeom(self, "getaddons", adjustSize=True) @@ -934,7 +924,7 @@ class GetAddons(QDialog): try: ids = [int(n) for n in self.form.code.text().split()] except ValueError: - showWarning(_("Invalid code.")) + showWarning(tr(TR.ADDONS_INVALID_CODE)) return self.ids = ids @@ -1007,21 +997,19 @@ def describe_log_entry(id_and_entry: DownloadLogEntry) -> str: if isinstance(entry, DownloadError): if entry.status_code is not None: if entry.status_code in (403, 404): - buf += _( - "Invalid code, or add-on not available for your version of Anki." - ) + buf += tr(TR.ADDONS_INVALID_CODE_OR_ADDON_NOT_AVAILABLE) else: - buf += _("Unexpected response code: %s") % entry.status_code + buf += tr(TR.QT_MISC_UNEXPECTED_RESPONSE_CODE, val=entry.status_code) else: buf += ( - _("Please check your internet connection.") + tr(TR.ADDONS_PLEASE_CHECK_YOUR_INTERNET_CONNECTION) + "\n\n" + str(entry.exception) ) elif isinstance(entry, InstallError): buf += entry.errmsg else: - buf += _("Installed successfully.") + buf += tr(TR.ADDONS_INSTALLED_SUCCESSFULLY) return buf @@ -1091,7 +1079,7 @@ class DownloaderInstaller(QObject): # and "%(kb)0.2f" is the number of downloaded # kilobytes. This lead for example to "Downloading 3/5 # (27KB)" - label=_("Downloading %(a)d/%(b)d (%(kb)0.2fKB)...") + label=tr(TR.ADDONS_DOWNLOADING_ADBD_KB02FKB) % dict(a=len(self.log) + 1, b=len(self.ids), kb=self.dl_bytes / 1024) ) @@ -1110,9 +1098,9 @@ def show_log_to_user(parent: QWidget, log: List[DownloadLogEntry]) -> None: have_problem = download_encountered_problem(log) if have_problem: - text = _("One or more errors occurred:") + text = tr(TR.ADDONS_ONE_OR_MORE_ERRORS_OCCURRED) else: - text = _("Download complete. Please restart Anki to apply changes.") + text = tr(TR.ADDONS_DOWNLOAD_COMPLETE_PLEASE_RESTART_ANKI_TO) text += "

" + download_log_to_html(log) if have_problem: @@ -1265,7 +1253,7 @@ def prompt_to_update( ) -> None: names = map(lambda x: mgr.addonName(str(x)), ids) if not askUser( - _("The following add-ons have updates available. Install them now?") + tr(TR.ADDONS_THE_FOLLOWING_ADDONS_HAVE_UPDATES_AVAILABLE) + "\n\n" + "\n".join(names) ): @@ -1307,7 +1295,7 @@ class ConfigEditor(QDialog): def onRestoreDefaults(self) -> None: default_conf = self.mgr.addonConfigDefaults(self.addon) self.updateText(default_conf) - tooltip(_("Restored defaults"), parent=self) + tooltip(tr(TR.ADDONS_RESTORED_DEFAULTS), parent=self) def setupFonts(self) -> None: font_mono = QFontDatabase.systemFont(QFontDatabase.FixedFont) @@ -1373,11 +1361,11 @@ class ConfigEditor(QDialog): showInfo(msg) return except Exception as e: - showInfo(_("Invalid configuration: ") + repr(e)) + showInfo(tr(TR.ADDONS_INVALID_CONFIGURATION) + repr(e)) return if not isinstance(new_conf, dict): - showInfo(_("Invalid configuration: top level object must be a map")) + showInfo(tr(TR.ADDONS_INVALID_CONFIGURATION_TOP_LEVEL_OBJECT_MUST)) return if new_conf != self.conf: @@ -1406,18 +1394,14 @@ def installAddonPackages( if warn: names = ",
".join(f"{os.path.basename(p)}" for p in paths) - q = _( - "Important: As add-ons are programs downloaded from the internet, " - "they are potentially malicious." - "You should only install add-ons you trust.

" - "Are you sure you want to proceed with the installation of the " - "following Anki add-on(s)?

%(names)s" - ) % dict(names=names) + q = tr(TR.ADDONS_IMPORTANT_AS_ADDONS_ARE_PROGRAMS_DOWNLOADED) % dict( + names=names + ) if ( not showInfo( q, parent=parent, - title=_("Install Anki add-on"), + title=tr(TR.ADDONS_INSTALL_ANKI_ADDON), type="warning", customBtns=[QMessageBox.No, QMessageBox.Yes], ) @@ -1430,9 +1414,7 @@ def installAddonPackages( if log: log_html = "
".join(log) if advise_restart: - log_html += "

" + _( - "Please restart Anki to complete the installation." - ) + log_html += "

" + tr(TR.ADDONS_PLEASE_RESTART_ANKI_TO_COMPLETE_THE) if len(log) == 1 and not strictly_modal: tooltip(log_html, parent=parent) else: @@ -1440,15 +1422,15 @@ def installAddonPackages( log_html, parent=parent, textFormat="rich", - title=_("Installation complete"), + title=tr(TR.ADDONS_INSTALLATION_COMPLETE), ) if errs: - msg = _("Please report this to the respective add-on author(s).") + msg = tr(TR.ADDONS_PLEASE_REPORT_THIS_TO_THE_RESPECTIVE) showWarning( "

".join(errs + [msg]), parent=parent, textFormat="rich", - title=_("Add-on installation error"), + title=tr(TR.ADDONS_ADDON_INSTALLATION_ERROR), ) return not errs diff --git a/qt/aqt/browser.py b/qt/aqt/browser.py index 150fbb58e..967af003c 100644 --- a/qt/aqt/browser.py +++ b/qt/aqt/browser.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations import html @@ -18,7 +17,7 @@ import aqt.forms from anki.cards import Card from anki.collection import Collection from anki.consts import * -from anki.lang import _, ngettext +from anki.lang import without_unicode_isolation from anki.models import NoteType from anki.notes import Note from anki.rsbackend import TR, DeckTreeNode, InvalidInput @@ -34,6 +33,7 @@ from aqt.qt import * from aqt.sidebar import NewSidebarTreeView, SidebarItemType, SidebarTreeViewBase from aqt.theme import theme_manager from aqt.utils import ( + TR, MenuList, SubMenu, askUser, @@ -169,7 +169,7 @@ class DataModel(QAbstractTableModel): break # give the user a hint an invalid column was added by an add-on if not txt: - txt = _("Add-on") + txt = tr(TR.BROWSING_ADDON) return txt else: return @@ -331,13 +331,13 @@ class DataModel(QAbstractTableModel): return c.model()["name"] elif type == "cardIvl": if c.type == CARD_TYPE_NEW: - return _("(new)") + return tr(TR.BROWSING_NEW) elif c.type == CARD_TYPE_LRN: - return _("(learning)") + return tr(TR.BROWSING_LEARNING) return self.col.format_timespan(c.ivl * 86400) elif type == "cardEase": if c.type == CARD_TYPE_NEW: - return _("(new)") + return tr(TR.BROWSING_NEW) return "%d%%" % (c.factor / 10) elif type == "deck": if c.odid: @@ -366,7 +366,7 @@ class DataModel(QAbstractTableModel): def nextDue(self, c, index): if c.odid: - return _("(filtered)") + return tr(TR.BROWSING_FILTERED) elif c.queue == QUEUE_TYPE_LRN: date = c.due elif c.queue == QUEUE_TYPE_NEW or c.type == CARD_TYPE_NEW: @@ -621,7 +621,7 @@ class Browser(QMainWindow): f = self.form qconnect(f.previewButton.clicked, self.onTogglePreview) f.previewButton.setToolTip( - _("Preview Selected Card (%s)") % shortcut("Ctrl+Shift+P") + tr(TR.BROWSING_PREVIEW_SELECTED_CARD, val=shortcut("Ctrl+Shift+P")) ) f.previewButton.setShortcut("Ctrl+Shift+P") @@ -737,21 +737,21 @@ class Browser(QMainWindow): def setupColumns(self): self.columns = [ - ("question", _("Question")), - ("answer", _("Answer")), - ("template", _("Card")), - ("deck", _("Deck")), - ("noteFld", _("Sort Field")), - ("noteCrt", _("Created")), + ("question", tr(TR.BROWSING_QUESTION)), + ("answer", tr(TR.BROWSING_ANSWER)), + ("template", tr(TR.BROWSING_CARD)), + ("deck", tr(TR.DECKS_DECK)), + ("noteFld", tr(TR.BROWSING_SORT_FIELD)), + ("noteCrt", tr(TR.BROWSING_CREATED)), ("noteMod", tr(TR.SEARCH_NOTE_MODIFIED)), ("cardMod", tr(TR.SEARCH_CARD_MODIFIED)), ("cardDue", tr(TR.STATISTICS_DUE_DATE)), - ("cardIvl", _("Interval")), - ("cardEase", _("Ease")), - ("cardReps", _("Reviews")), - ("cardLapses", _("Lapses")), - ("noteTags", _("Tags")), - ("note", _("Note")), + ("cardIvl", tr(TR.BROWSING_INTERVAL)), + ("cardEase", tr(TR.BROWSING_EASE)), + ("cardReps", tr(TR.SCHEDULING_REVIEWS)), + ("cardLapses", tr(TR.SCHEDULING_LAPSES)), + ("noteTags", tr(TR.EDITING_TAGS)), + ("note", tr(TR.BROWSING_NOTE)), ] self.columns.sort(key=itemgetter(1)) @@ -762,7 +762,7 @@ class Browser(QMainWindow): qconnect(self.form.searchButton.clicked, self.onSearchActivated) qconnect(self.form.searchEdit.lineEdit().returnPressed, self.onSearchActivated) self.form.searchEdit.setCompleter(None) - self._searchPrompt = _("") + self._searchPrompt = tr(TR.BROWSING_TYPE_HERE_TO_SEARCH) self.form.searchEdit.addItems( [self._searchPrompt] + self.mw.pm.profile["searchHistory"] ) @@ -822,15 +822,9 @@ class Browser(QMainWindow): selected = len(self.form.tableView.selectionModel().selectedRows()) cur = len(self.model.cards) self.setWindowTitle( - ngettext( - "Browse (%(cur)d card shown; %(sel)s)", - "Browse (%(cur)d cards shown; %(sel)s)", - cur, + without_unicode_isolation( + tr(TR.BROWSING_WINDOW_TITLE, total=cur, selected=selected) ) - % { - "cur": cur, - "sel": ngettext("%d selected", "%d selected", selected) % selected, - } ) return selected @@ -938,9 +932,7 @@ QTableView {{ gridline-color: {grid} }} type = self.model.activeCols[idx] noSort = ("question", "answer") if type in noSort: - showInfo( - _("Sorting on this column is not supported. Please " "choose another.") - ) + showInfo(tr(TR.BROWSING_SORTING_ON_THIS_COLUMN_IS_NOT)) type = self.col.conf["sortType"] if self.col.conf["sortType"] != type: self.col.conf["sortType"] = type @@ -994,7 +986,7 @@ QTableView {{ gridline-color: {grid} }} if type in self.model.activeCols: if len(self.model.activeCols) < 2: self.model.endReset() - return showInfo(_("You must have at least one column.")) + return showInfo(tr(TR.BROWSING_YOU_MUST_HAVE_AT_LEAST_ONE)) self.model.activeCols.remove(type) adding = False else: @@ -1028,7 +1020,7 @@ QTableView {{ gridline-color: {grid} }} pass def setupSidebar(self) -> None: - dw = self.sidebarDockWidget = QDockWidget(_("Sidebar"), self) + dw = self.sidebarDockWidget = QDockWidget(tr(TR.BROWSING_SIDEBAR), self) dw.setFeatures(QDockWidget.DockWidgetClosable) dw.setObjectName("Sidebar") dw.setAllowedAreas(Qt.LeftDockWidgetArea) @@ -1105,14 +1097,14 @@ QTableView {{ gridline-color: {grid} }} def _stdTree(self, root) -> None: item = SidebarItem( - _("Whole Collection"), + tr(TR.BROWSING_WHOLE_COLLECTION), ":/icons/collection.svg", self._filterFunc(""), item_type=SidebarItemType.COLLECTION, ) root.addChild(item) item = SidebarItem( - _("Current Deck"), + tr(TR.BROWSING_CURRENT_DECK), ":/icons/deck.svg", self._filterFunc("deck:current"), item_type=SidebarItemType.CURRENT_DECK, @@ -1252,41 +1244,44 @@ QTableView {{ gridline-color: {grid} }} def _commonFilters(self): return self._simpleFilters( - ((_("Whole Collection"), ""), (_("Current Deck"), "deck:current")) + ( + (tr(TR.BROWSING_WHOLE_COLLECTION), ""), + (tr(TR.BROWSING_CURRENT_DECK), "deck:current"), + ) ) def _todayFilters(self): - subm = SubMenu(_("Today")) + subm = SubMenu(tr(TR.BROWSING_TODAY)) subm.addChild( self._simpleFilters( ( - (_("Added Today"), "added:1"), - (_("Studied Today"), "rated:1"), - (_("Again Today"), "rated:1:1"), + (tr(TR.BROWSING_ADDED_TODAY), "added:1"), + (tr(TR.BROWSING_STUDIED_TODAY), "rated:1"), + (tr(TR.BROWSING_AGAIN_TODAY), "rated:1:1"), ) ) ) return subm def _cardStateFilters(self): - subm = SubMenu(_("Card State")) + subm = SubMenu(tr(TR.BROWSING_CARD_STATE)) subm.addChild( self._simpleFilters( ( - (_("New"), "is:new"), - (_("Learning"), "is:learn"), - (_("Review"), "is:review"), + (tr(TR.ACTIONS_NEW), "is:new"), + (tr(TR.SCHEDULING_LEARNING), "is:learn"), + (tr(TR.SCHEDULING_REVIEW), "is:review"), (tr(TR.FILTERING_IS_DUE), "is:due"), None, - (_("Suspended"), "is:suspended"), - (_("Buried"), "is:buried"), + (tr(TR.BROWSING_SUSPENDED), "is:suspended"), + (tr(TR.BROWSING_BURIED), "is:buried"), None, - (_("Red Flag"), "flag:1"), - (_("Orange Flag"), "flag:2"), - (_("Green Flag"), "flag:3"), - (_("Blue Flag"), "flag:4"), - (_("No Flag"), "flag:0"), - (_("Any Flag"), "-flag:0"), + (tr(TR.ACTIONS_RED_FLAG), "flag:1"), + (tr(TR.ACTIONS_ORANGE_FLAG), "flag:2"), + (tr(TR.ACTIONS_GREEN_FLAG), "flag:3"), + (tr(TR.ACTIONS_BLUE_FLAG), "flag:4"), + (tr(TR.BROWSING_NO_FLAG), "flag:0"), + (tr(TR.BROWSING_ANY_FLAG), "-flag:0"), ) ) ) @@ -1296,9 +1291,9 @@ QTableView {{ gridline-color: {grid} }} return label.replace("&", "&&") def _tagFilters(self): - m = SubMenu(_("Tags")) + m = SubMenu(tr(TR.EDITING_TAGS)) - m.addItem(_("Clear Unused"), self.clearUnusedTags) + m.addItem(tr(TR.BROWSING_CLEAR_UNUSED), self.clearUnusedTags) m.addSeparator() tagList = MenuList() @@ -1316,7 +1311,9 @@ QTableView {{ gridline-color: {grid} }} fullname = parent_prefix + node.name if node.children: subm = parent.addMenu(escaped_name) - subm.addItem(_("Filter"), self._filterFunc("deck", fullname)) + subm.addItem( + tr(TR.ACTIONS_FILTER), self._filterFunc("deck", fullname) + ) subm.addSeparator() addDecks(subm, node.children, fullname + "::") else: @@ -1326,15 +1323,15 @@ QTableView {{ gridline-color: {grid} }} ml = MenuList() addDecks(ml, alldecks.children, "") - root = SubMenu(_("Decks")) + root = SubMenu(tr(TR.ACTIONS_DECKS)) root.addChild(ml.chunked()) return root def _noteTypeFilters(self): - m = SubMenu(_("Note Types")) + m = SubMenu(tr(TR.NOTETYPES_NOTE_TYPES)) - m.addItem(_("Manage..."), self.mw.onNoteTypes) + m.addItem(tr(TR.ACTIONS_MANAGE), self.mw.onNoteTypes) m.addSeparator() noteTypes = MenuList() @@ -1346,14 +1343,16 @@ QTableView {{ gridline-color: {grid} }} else: subm = noteTypes.addMenu(escaped_nt_name) - subm.addItem(_("All Card Types"), self._filterFunc("note", nt["name"])) + subm.addItem( + tr(TR.BROWSING_ALL_CARD_TYPES), self._filterFunc("note", nt["name"]) + ) subm.addSeparator() # add templates for c, tmpl in enumerate(nt["tmpls"]): # T: name is a card type name. n it's order in the list of card type. # T: this is shown in browser's filter, when seeing the list of card type of a note type. - name = _("%(n)d: %(name)s") % dict( + name = tr(TR.BROWSING_ND_NAMES) % dict( n=c + 1, name=self._escapeMenuItem(tmpl["name"]) ) subm.addItem( @@ -1375,9 +1374,9 @@ QTableView {{ gridline-color: {grid} }} ml.addSeparator() if self._currentFilterIsSaved(): - ml.addItem(_("Remove Current Filter..."), self._onRemoveFilter) + ml.addItem(tr(TR.BROWSING_REMOVE_CURRENT_FILTER), self._onRemoveFilter) else: - ml.addItem(_("Save Current Filter..."), self._onSaveFilter) + ml.addItem(tr(TR.BROWSING_SAVE_CURRENT_FILTER), self._onSaveFilter) saved = self.col.get_config("savedFilters") if not saved: @@ -1390,7 +1389,7 @@ QTableView {{ gridline-color: {grid} }} return ml def _onSaveFilter(self) -> None: - name = getOnlyText(_("Please give your filter a name:")) + name = getOnlyText(tr(TR.BROWSING_PLEASE_GIVE_YOUR_FILTER_A_NAME)) if not name: return filt = self.form.searchEdit.lineEdit().text() @@ -1401,7 +1400,7 @@ QTableView {{ gridline-color: {grid} }} def _onRemoveFilter(self): name = self._currentFilterIsSaved() - if not askUser(_("Remove %s from your saved searches?") % name): + if not askUser(tr(TR.BROWSING_REMOVE_FROM_YOUR_SAVED_SEARCHES, val=name)): return del self.col.conf["savedFilters"][name] self.col.setMod() @@ -1490,7 +1489,7 @@ where id in %s""" % ids2str(sf) ) if mods > 1: - showInfo(_("Please select cards from only one note type.")) + showInfo(tr(TR.BROWSING_PLEASE_SELECT_CARDS_FROM_ONLY_ONE)) return return sf @@ -1544,7 +1543,7 @@ where id in %s""" nids = self.selectedNotes() if not nids: return - self.mw.checkpoint(_("Delete Notes")) + self.mw.checkpoint(tr(TR.BROWSING_DELETE_NOTES)) self.model.beginReset() # figure out where to place the cursor after the deletion curRow = self.form.tableView.selectionModel().currentIndex().row() @@ -1569,9 +1568,7 @@ where id in %s""" self.model.focusedCard = self.model.cards[newRow] self.model.endReset() self.mw.reset() - tooltip( - ngettext("%d note deleted.", "%d notes deleted.", len(nids)) % len(nids) - ) + tooltip(tr(TR.BROWSING_NOTE_DELETED, count=len(nids))) # Deck change ###################################################################### @@ -1590,8 +1587,8 @@ where id in %s""" ret = StudyDeck( self.mw, current=current, - accept=_("Move Cards"), - title=_("Change Deck"), + accept=tr(TR.BROWSING_MOVE_CARDS), + title=tr(TR.BROWSING_CHANGE_DECK), help="browse", parent=self, ) @@ -1600,10 +1597,10 @@ where id in %s""" did = self.col.decks.id(ret.name) deck = self.col.decks.get(did) if deck["dyn"]: - showWarning(_("Cards can't be manually moved into a filtered deck.")) + showWarning(tr(TR.BROWSING_CARDS_CANT_BE_MANUALLY_MOVED_INTO)) return self.model.beginReset() - self.mw.checkpoint(_("Change Deck")) + self.mw.checkpoint(tr(TR.BROWSING_CHANGE_DECK)) self.col.set_deck(cids, did) self.model.endReset() self.mw.requireReset(reason=ResetReason.BrowserSetDeck, context=self) @@ -1616,7 +1613,7 @@ where id in %s""" def _addTags(self, tags, label, prompt, func): if prompt is None: - prompt = _("Enter tags to add:") + prompt = tr(TR.BROWSING_ENTER_TAGS_TO_ADD) if tags is None: (tags, r) = getTag(self, self.col, prompt) else: @@ -1626,7 +1623,7 @@ where id in %s""" if func is None: func = self.col.tags.bulkAdd if label is None: - label = _("Add Tags") + label = tr(TR.BROWSING_ADD_TAGS) if label: self.mw.checkpoint(label) self.model.beginReset() @@ -1636,9 +1633,12 @@ where id in %s""" def deleteTags(self, tags=None, label=None): if label is None: - label = _("Delete Tags") + label = tr(TR.BROWSING_DELETE_TAGS) self.addTags( - tags, label, _("Enter tags to delete:"), func=self.col.tags.bulkRem + tags, + label, + tr(TR.BROWSING_ENTER_TAGS_TO_DELETE), + func=self.col.tags.bulkRem, ) def clearUnusedTags(self): @@ -1731,7 +1731,7 @@ where id in %s""" + ids2str(cids) ) if not cids2: - return showInfo(_("Only new cards can be repositioned.")) + return showInfo(tr(TR.BROWSING_ONLY_NEW_CARDS_CAN_BE_REPOSITIONED)) d = QDialog(self) d.setWindowModality(Qt.WindowModal) frm = aqt.forms.reposition.Ui_Dialog() @@ -1741,14 +1741,14 @@ where id in %s""" ) pmin = pmin or 0 pmax = pmax or 0 - txt = _("Queue top: %d") % pmin - txt += "\n" + _("Queue bottom: %d") % pmax + txt = tr(TR.BROWSING_QUEUE_TOP, val=pmin) + txt += "\n" + tr(TR.BROWSING_QUEUE_BOTTOM, val=pmax) frm.label.setText(txt) frm.start.selectAll() if not d.exec_(): return self.model.beginReset() - self.mw.checkpoint(_("Reposition")) + self.mw.checkpoint(tr(TR.ACTIONS_REPOSITION)) self.col.sched.sortCards( cids, start=frm.start.value(), @@ -1774,7 +1774,7 @@ where id in %s""" if not d.exec_(): return self.model.beginReset() - self.mw.checkpoint(_("Reschedule")) + self.mw.checkpoint(tr(TR.BROWSING_RESCHEDULE)) if frm.asNew.isChecked(): self.col.sched.forgetCards(self.selectedCards()) else: @@ -1881,7 +1881,7 @@ where id in %s""" restore_is_checked(frm.ignoreCase, combo + "ignoreCase") frm.find.setFocus() - allfields = [_("All Fields")] + fields + allfields = [tr(TR.BROWSING_ALL_FIELDS)] + fields frm.field.addItems(allfields) restore_combo_index_for_session(frm.field, allfields, combo + "Field") qconnect(frm.buttonBox.helpRequested, self.onFindReplaceHelp) @@ -1906,7 +1906,7 @@ where id in %s""" save_is_checked(frm.re, combo + "Regex") save_is_checked(frm.ignoreCase, combo + "ignoreCase") - self.mw.checkpoint(_("Find and Replace")) + self.mw.checkpoint(tr(TR.BROWSING_FIND_AND_REPLACE)) # starts progress dialog as well self.model.beginReset() @@ -1976,7 +1976,9 @@ where id in %s""" field = fields[frm.fields.currentIndex()] self.duplicatesReport(frm.webView, field, search_text, frm, web_context) - search = frm.buttonBox.addButton(_("Search"), QDialogButtonBox.ActionRole) + search = frm.buttonBox.addButton( + tr(TR.ACTIONS_SEARCH), QDialogButtonBox.ActionRole + ) qconnect(search.clicked, onClick) d.show() @@ -1985,22 +1987,22 @@ where id in %s""" res = self.mw.col.findDupes(fname, search) if not self._dupesButton: self._dupesButton = b = frm.buttonBox.addButton( - _("Tag Duplicates"), QDialogButtonBox.ActionRole + tr(TR.BROWSING_TAG_DUPLICATES), QDialogButtonBox.ActionRole ) qconnect(b.clicked, lambda: self._onTagDupes(res)) t = "" groups = len(res) notes = sum(len(r[1]) for r in res) - part1 = ngettext("%d group", "%d groups", groups) % groups - part2 = ngettext("%d note", "%d notes", notes) % notes - t += _("Found %(a)s across %(b)s.") % dict(a=part1, b=part2) + part1 = tr(TR.BROWSING_GROUP, count=groups) + part2 = tr(TR.BROWSING_NOTE_COUNT, count=notes) + t += tr(TR.BROWSING_FOUND_AS_ACROSS_BS) % dict(a=part1, b=part2) t += "

    " for val, nids in res: t += ( """
  1. %s: %s""" % ( "nid:" + ",".join(str(id) for id in nids), - ngettext("%d note", "%d notes", len(nids)) % len(nids), + tr(TR.BROWSING_NOTE_COUNT, count=len(nids)), html.escape(val), ) ) @@ -2012,15 +2014,15 @@ where id in %s""" if not res: return self.model.beginReset() - self.mw.checkpoint(_("Tag Duplicates")) + self.mw.checkpoint(tr(TR.BROWSING_TAG_DUPLICATES)) nids = set() for s, nidlist in res: nids.update(nidlist) - self.col.tags.bulkAdd(list(nids), _("duplicate")) + self.col.tags.bulkAdd(list(nids), tr(TR.BROWSING_DUPLICATE)) self.mw.progress.finish() self.model.endReset() self.mw.requireReset(reason=ResetReason.BrowserTagDupes, context=self) - tooltip(_("Notes tagged.")) + tooltip(tr(TR.BROWSING_NOTES_TAGGED)) def dupeLinkClicked(self, link): self.search_for(link) @@ -2177,10 +2179,10 @@ class ChangeModel(QDialog): map = QWidget() l = QGridLayout() combos = [] - targets = [x["name"] for x in dst] + [_("Nothing")] + targets = [x["name"] for x in dst] + [tr(TR.BROWSING_NOTHING)] indices = {} for i, x in enumerate(src): - l.addWidget(QLabel(_("Change %s to:") % x["name"]), i, 0) + l.addWidget(QLabel(tr(TR.BROWSING_CHANGE_TO, val=x["name"])), i, 0) cb = QComboBox() cb.addItems(targets) idx = min(i, len(targets) - 1) @@ -2258,16 +2260,9 @@ class ChangeModel(QDialog): fmap = self.getFieldMap() cmap = self.getTemplateMap() if any(True for c in list(cmap.values()) if c is None): - if not askUser( - _( - """\ -Any cards mapped to nothing will be deleted. \ -If a note has no remaining cards, it will be lost. \ -Are you sure you want to continue?""" - ) - ): + if not askUser(tr(TR.BROWSING_ANY_CARDS_MAPPED_TO_NOTHING_WILL)): return - self.browser.mw.checkpoint(_("Change Note Type")) + self.browser.mw.checkpoint(tr(TR.BROWSING_CHANGE_NOTE_TYPE)) b = self.browser b.mw.col.modSchema(check=True) b.mw.progress.start() diff --git a/qt/aqt/buildinfo.py b/qt/aqt/buildinfo.py deleted file mode 100644 index 965b8f183..000000000 --- a/qt/aqt/buildinfo.py +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright: Ankitects Pty Ltd and contributors -# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - -import os - -_buildinfo = {} -for line in open(os.path.join(os.path.dirname(__file__), "buildinfo.txt")).readlines(): - elems = line.split() - if len(elems) == 2: - k, v = elems - _buildinfo[k] = v - -buildhash=_buildinfo["STABLE_BUILDHASH"] -version=_buildinfo["STABLE_VERSION"] diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index adb597778..9bd1c467c 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -9,7 +9,6 @@ from typing import Any, Dict, List, Optional import aqt from anki.cards import Card from anki.consts import * -from anki.lang import _, ngettext from anki.notes import Note from anki.rsbackend import TemplateError from anki.template import TemplateRenderContext @@ -60,13 +59,15 @@ class CardLayout(QDialog): self.mobile_emulation_enabled = False self.have_autoplayed = False self.mm._remove_from_cache(self.model["id"]) - self.mw.checkpoint(_("Card Types")) + self.mw.checkpoint(tr(TR.CARD_TEMPLATES_CARD_TYPES)) self.change_tracker = ChangeTracker(self.mw) self.setupTopArea() self.setupMainArea() self.setupButtons() self.setupShortcuts() - self.setWindowTitle(_("Card Types for %s") % self.model["name"]) + self.setWindowTitle( + tr(TR.CARD_TEMPLATES_CARD_TYPES_FOR, val=self.model["name"]) + ) v1 = QVBoxLayout() v1.addWidget(self.topArea) v1.addWidget(self.mainArea) @@ -108,7 +109,9 @@ class CardLayout(QDialog): self.topArea.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Minimum) self.topAreaForm = aqt.forms.clayout_top.Ui_Form() self.topAreaForm.setupUi(self.topArea) - self.topAreaForm.templateOptions.setText(_("Options") + " " + downArrow()) + self.topAreaForm.templateOptions.setText( + tr(TR.ACTIONS_OPTIONS) + " " + downArrow() + ) qconnect(self.topAreaForm.templateOptions.clicked, self.onMore) qconnect( self.topAreaForm.templatesBox.currentIndexChanged, @@ -240,7 +243,7 @@ class CardLayout(QDialog): qconnect(widg.returnPressed, self.on_search_next) def setup_cloze_number_box(self): - names = (_("Cloze %d") % n for n in self.cloze_numbers) + names = (tr(TR.CARD_TEMPLATES_CLOZE, val=n) for n in self.cloze_numbers) self.pform.cloze_number_combo.addItems(names) try: idx = self.cloze_numbers.index(self.ord + 1) @@ -304,8 +307,8 @@ class CardLayout(QDialog): jsinc = [ "js/vendor/jquery.js", "js/vendor/browsersel.js", - "js/vendor/mathjax/conf.js", - "js/vendor/mathjax/MathJax.js", + "js/mathjax.js", + "js/vendor/mathjax/tex-chtml.js", "js/reviewer.js", ] self.preview_web.stdHtml( @@ -381,28 +384,28 @@ class CardLayout(QDialog): def setupButtons(self): l = self.buttons = QHBoxLayout() - help = QPushButton(_("Help")) + help = QPushButton(tr(TR.ACTIONS_HELP)) help.setAutoDefault(False) l.addWidget(help) qconnect(help.clicked, self.onHelp) l.addStretch() - self.add_field_button = QPushButton(_("Add Field")) + self.add_field_button = QPushButton(tr(TR.FIELDS_ADD_FIELD)) self.add_field_button.setAutoDefault(False) l.addWidget(self.add_field_button) qconnect(self.add_field_button.clicked, self.onAddField) if not self._isCloze(): - flip = QPushButton(_("Flip")) + flip = QPushButton(tr(TR.CARD_TEMPLATES_FLIP)) flip.setAutoDefault(False) l.addWidget(flip) qconnect(flip.clicked, self.onFlip) l.addStretch() - save = QPushButton(_("Save")) + save = QPushButton(tr(TR.ACTIONS_SAVE)) save.setAutoDefault(False) save.setShortcut(QKeySequence("Ctrl+Return")) l.addWidget(save) qconnect(save.clicked, self.accept) - close = QPushButton(_("Cancel")) + close = QPushButton(tr(TR.ACTIONS_CANCEL)) close.setAutoDefault(False) l.addWidget(close) qconnect(close.clicked, self.reject) @@ -491,12 +494,14 @@ class CardLayout(QDialog): self.have_autoplayed = True if c.autoplay(): + AnkiWebView.setPlaybackRequiresGesture(False) if self.pform.preview_front.isChecked(): audio = c.question_av_tags() else: audio = c.answer_av_tags() av_player.play_tags(audio) else: + AnkiWebView.setPlaybackRequiresGesture(True) av_player.clear_queue_and_maybe_interrupt() self.updateCardNames() @@ -546,7 +551,7 @@ class CardLayout(QDialog): def onRemove(self): if len(self.templates) < 2: - return showInfo(_("At least one card type is required.")) + return showInfo(tr(TR.CARD_TEMPLATES_AT_LEAST_ONE_CARD_TYPE_IS)) def get_count(): return self.mm.template_use_count(self.model["id"], self.ord) @@ -555,8 +560,8 @@ class CardLayout(QDialog): card_cnt = fut.result() template = self.current_template() - cards = ngettext("%d card", "%d cards", card_cnt) % card_cnt - msg = _("Delete the '%(a)s' card type, and its %(b)s?") % dict( + cards = tr(TR.CARD_TEMPLATES_CARD_COUNT, count=card_cnt) + msg = tr(TR.CARD_TEMPLATES_DELETE_THE_AS_CARD_TYPE_AND) % dict( a=template["name"], b=cards ) if not askUser(msg): @@ -581,7 +586,9 @@ class CardLayout(QDialog): def onRename(self): template = self.current_template() - name = getOnlyText(_("New name:"), default=template["name"]).replace('"', "") + name = getOnlyText(tr(TR.ACTIONS_NEW_NAME), default=template["name"]).replace( + '"', "" + ) if not name.strip(): return @@ -595,7 +602,8 @@ class CardLayout(QDialog): template = self.current_template() current_pos = self.templates.index(template) + 1 pos = getOnlyText( - _("Enter new card position (1...%s):") % n, default=str(current_pos) + tr(TR.CARD_TEMPLATES_ENTER_NEW_CARD_POSITION_1, val=n), + default=str(current_pos), ) if not pos: return @@ -617,7 +625,7 @@ class CardLayout(QDialog): def _newCardName(self): n = len(self.templates) + 1 while 1: - name = _("Card %d") % n + name = tr(TR.CARD_TEMPLATES_CARD, val=n) if name not in [t["name"] for t in self.templates]: break n += 1 @@ -625,14 +633,7 @@ class CardLayout(QDialog): def onAddCard(self): cnt = self.mw.col.models.useCount(self.model) - txt = ( - ngettext( - "This will create %d card. Proceed?", - "This will create %d cards. Proceed?", - cnt, - ) - % cnt - ) + txt = tr(TR.CARD_TEMPLATES_THIS_WILL_CREATE_CARD_PROCEED, count=cnt) if not askUser(txt): return if not self.change_tracker.mark_schema(): @@ -654,13 +655,7 @@ class CardLayout(QDialog): def _flipQA(self, src, dst): m = re.match("(?s)(.+)
    (.+)", src["afmt"]) if not m: - showInfo( - _( - """\ -Anki couldn't find the line between the question and answer. Please \ -adjust the template manually to switch the question and answer.""" - ) - ) + showInfo(tr(TR.CARD_TEMPLATES_ANKI_COULDNT_FIND_THE_LINE_BETWEEN)) return self.change_tracker.mark_basic() dst["afmt"] = "{{FrontSide}}\n\n
    \n\n%s" % src["qfmt"] @@ -671,29 +666,29 @@ adjust the template manually to switch the question and answer.""" m = QMenu(self) if not self._isCloze(): - a = m.addAction(_("Add Card Type...")) + a = m.addAction(tr(TR.CARD_TEMPLATES_ADD_CARD_TYPE)) qconnect(a.triggered, self.onAddCard) - a = m.addAction(_("Remove Card Type...")) + a = m.addAction(tr(TR.CARD_TEMPLATES_REMOVE_CARD_TYPE)) qconnect(a.triggered, self.onRemove) - a = m.addAction(_("Rename Card Type...")) + a = m.addAction(tr(TR.CARD_TEMPLATES_RENAME_CARD_TYPE)) qconnect(a.triggered, self.onRename) - a = m.addAction(_("Reposition Card Type...")) + a = m.addAction(tr(TR.CARD_TEMPLATES_REPOSITION_CARD_TYPE)) qconnect(a.triggered, self.onReorder) m.addSeparator() t = self.current_template() if t["did"]: - s = _(" (on)") + s = tr(TR.CARD_TEMPLATES_ON) else: - s = _(" (off)") - a = m.addAction(_("Deck Override...") + s) + s = tr(TR.CARD_TEMPLATES_OFF) + a = m.addAction(tr(TR.CARD_TEMPLATES_DECK_OVERRIDE) + s) qconnect(a.triggered, self.onTargetDeck) - a = m.addAction(_("Browser Appearance...")) + a = m.addAction(tr(TR.CARD_TEMPLATES_BROWSER_APPEARANCE)) qconnect(a.triggered, self.onBrowserDisplay) m.exec_(self.topAreaForm.templateOptions.mapToGlobal(QPoint(0, 0))) @@ -734,10 +729,7 @@ adjust the template manually to switch the question and answer.""" d.setMinimumWidth(400) l = QVBoxLayout() lab = QLabel( - _( - """\ -Enter deck to place new %s cards in, or leave blank:""" - ) + tr(TR.CARD_TEMPLATES_ENTER_DECK_TO_PLACE_NEW, val="%s") % self.current_template()["name"] ) lab.setWordWrap(True) diff --git a/qt/aqt/customstudy.py b/qt/aqt/customstudy.py index bf049575e..7771357f8 100644 --- a/qt/aqt/customstudy.py +++ b/qt/aqt/customstudy.py @@ -1,10 +1,8 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - import aqt from anki.consts import * -from anki.lang import _ from aqt.qt import * from aqt.utils import TR, showInfo, showWarning, tr @@ -50,11 +48,11 @@ class CustomStudy(QDialog): smin = 1 smax = DYN_MAX_SIZE sval = 1 - post = _("cards") + post = tr(TR.CUSTOM_STUDY_CARDS) tit = "" spShow = True typeShow = False - ok = _("OK") + ok = tr(TR.CUSTOM_STUDY_OK) def plus(num): if num == 1000: @@ -68,8 +66,10 @@ class CustomStudy(QDialog): new, self.conf["new"]["perDay"] - self.deck["newToday"][1] ) newExceeding = min(new, new - newUnderLearning) - tit = _("New cards in deck over today limit: %s") % plus(newExceeding) - pre = _("Increase today's new card limit by") + tit = tr( + TR.CUSTOM_STUDY_NEW_CARDS_IN_DECK_OVER_TODAY, val=plus(newExceeding) + ) + pre = tr(TR.CUSTOM_STUDY_INCREASE_TODAYS_NEW_CARD_LIMIT_BY) sval = min(new, self.deck.get("extendNew", 10)) smin = -DYN_MAX_SIZE smax = newExceeding @@ -80,27 +80,29 @@ class CustomStudy(QDialog): rev, self.conf["rev"]["perDay"] - self.deck["revToday"][1] ) revExceeding = min(rev, rev - revUnderLearning) - tit = _("Reviews due in deck over today limit: %s") % plus(revExceeding) - pre = _("Increase today's review limit by") + tit = tr( + TR.CUSTOM_STUDY_REVIEWS_DUE_IN_DECK_OVER_TODAY, val=plus(revExceeding) + ) + pre = tr(TR.CUSTOM_STUDY_INCREASE_TODAYS_REVIEW_LIMIT_BY) sval = min(rev, self.deck.get("extendRev", 10)) smin = -DYN_MAX_SIZE smax = revExceeding elif idx == RADIO_FORGOT: - pre = _("Review cards forgotten in last") - post = _("days") + pre = tr(TR.CUSTOM_STUDY_REVIEW_CARDS_FORGOTTEN_IN_LAST) + post = tr(TR.SCHEDULING_DAYS) smax = 30 elif idx == RADIO_AHEAD: - pre = _("Review ahead by") - post = _("days") + pre = tr(TR.CUSTOM_STUDY_REVIEW_AHEAD_BY) + post = tr(TR.SCHEDULING_DAYS) elif idx == RADIO_PREVIEW: - pre = _("Preview new cards added in the last") - post = _("days") + pre = tr(TR.CUSTOM_STUDY_PREVIEW_NEW_CARDS_ADDED_IN_THE) + post = tr(TR.SCHEDULING_DAYS) sval = 1 elif idx == RADIO_CRAM: - pre = _("Select") - post = _("cards from the deck") + pre = tr(TR.CUSTOM_STUDY_SELECT) + post = tr(TR.CUSTOM_STUDY_CARDS_FROM_THE_DECK) # tit = _("After pressing OK, you can choose which tags to include.") - ok = _("Choose Tags") + ok = tr(TR.CUSTOM_STUDY_CHOOSE_TAGS) sval = 100 typeShow = True sp.setVisible(spShow) @@ -138,7 +140,7 @@ class CustomStudy(QDialog): elif i == RADIO_CRAM: tags = self._getTags() # the rest create a filtered deck - cur = self.mw.col.decks.byName(_("Custom Study Session")) + cur = self.mw.col.decks.byName(tr(TR.CUSTOM_STUDY_CUSTOM_STUDY_SESSION)) if cur: if not cur["dyn"]: showInfo(tr(TR.CUSTOM_STUDY_MUST_RENAME_DECK)) @@ -150,7 +152,9 @@ class CustomStudy(QDialog): dyn = cur self.mw.col.decks.select(cur["id"]) else: - did = self.mw.col.decks.new_filtered(_("Custom Study Session")) + did = self.mw.col.decks.new_filtered( + tr(TR.CUSTOM_STUDY_CUSTOM_STUDY_SESSION) + ) dyn = self.mw.col.decks.get(did) # and then set various options if i == RADIO_FORGOT: @@ -187,7 +191,7 @@ class CustomStudy(QDialog): # generate cards self.created_custom_study = True if not self.mw.col.sched.rebuild_filtered_deck(dyn["id"]): - return showWarning(_("No cards matched the criteria you provided.")) + return showWarning(tr(TR.CUSTOM_STUDY_NO_CARDS_MATCHED_THE_CRITERIA_YOU)) self.mw.moveToState("overview") QDialog.accept(self) diff --git a/qt/aqt/data/BUILD.bazel b/qt/aqt/data/BUILD.bazel index 4512cbe44..98324bb90 100644 --- a/qt/aqt/data/BUILD.bazel +++ b/qt/aqt/data/BUILD.bazel @@ -1,7 +1,6 @@ filegroup( name = "data", srcs = [ - "//qt/aqt/data/locale", "//qt/aqt/data/web", ], visibility = ["//qt:__subpackages__"], diff --git a/qt/aqt/data/locale/BUILD.bazel b/qt/aqt/data/locale/BUILD.bazel deleted file mode 100644 index b02cdd5d6..000000000 --- a/qt/aqt/data/locale/BUILD.bazel +++ /dev/null @@ -1,6 +0,0 @@ -load("compile.bzl", "compile_all") - -compile_all( - name = "locale", - visibility = ["//qt:__subpackages__"], -) diff --git a/qt/aqt/data/locale/compile.bzl b/qt/aqt/data/locale/compile.bzl deleted file mode 100644 index 395989494..000000000 --- a/qt/aqt/data/locale/compile.bzl +++ /dev/null @@ -1,88 +0,0 @@ -def compile(name, po_file, pot_file, mo_file): - native.genrule( - name = name, - srcs = [po_file, pot_file], - outs = [mo_file], - # homebrew gettext is not on path by default - cmd = """\ -export PATH="$$PATH":/usr/local/opt/gettext/bin -msgmerge -q $(location {po_file}) $(location {pot_file}) | msgfmt - --output-file=$(location {mo_file}) -""".format( - po_file = po_file, - pot_file = pot_file, - mo_file = mo_file, - ), - message = "Building translation", - ) - -_langs = [ - "af", - "ar", - "bg", - "ca", - "cs", - "da", - "de", - "el", - "en-GB", - "eo", - "es", - "et", - "eu", - "fa", - "fi", - "fr", - "ga-IE", - "gl", - "he", - "hi-IN", - "hr", - "hu", - "hy-AM", - "it", - "ja", - "jbo", - "kab", - # "km", - "ko", - "la", - "mn", - "mr", - "ms", - "nb-NO", - "nl", - "nn-NO", - "oc", - "or", - "pl", - "pt-BR", - "pt-PT", - "ro", - "ru", - "sk", - "sl", - "sr", - "sv-SE", - "th", - "tr", - "uk", - # "ur", - "vi", - "zh-CN", - "zh-TW", -] - -def compile_all(name, visibility): - pot_file = "@aqt_po//:desktop/anki.pot" - mo_files = [] - for lang in _langs: - po_file = "@aqt_po//:desktop/{}/anki.po".format(lang) - mo_file = "{}/LC_MESSAGES/anki.mo".format(lang) - mo_files.append(mo_file) - compile(lang, po_file, pot_file, mo_file) - - native.filegroup( - name = name, - srcs = mo_files, - visibility = visibility, - ) diff --git a/qt/aqt/data/web/js/BUILD.bazel b/qt/aqt/data/web/js/BUILD.bazel index 43bb9738a..a64fd61a7 100644 --- a/qt/aqt/data/web/js/BUILD.bazel +++ b/qt/aqt/data/web/js/BUILD.bazel @@ -17,7 +17,6 @@ ts_library( "pycmd", "@npm//@types/jquery", "@npm//@types/jqueryui", - "@npm//@types/mathjax", ], ) @@ -27,22 +26,18 @@ filegroup( output_group = "es5_sources", ) -filegroup( - name = "vendor", - srcs = glob(["vendor/**"]), -) - filegroup( name = "js", srcs = [ "aqt_es5", - "vendor", + "mathjax.js", + "//qt/aqt/data/web/js/vendor", ], visibility = ["//qt:__subpackages__"], ) prettier_test( - name = "format", + name = "format_check", srcs = glob(["*.ts"]), ) diff --git a/qt/aqt/data/web/js/mathjax.js b/qt/aqt/data/web/js/mathjax.js new file mode 100644 index 000000000..2074174f3 --- /dev/null +++ b/qt/aqt/data/web/js/mathjax.js @@ -0,0 +1,28 @@ +window.MathJax = { + tex: { + displayMath: [["\\[", "\\]"]], + processRefs: false, + processEnvironments: false, + packages: { + "[+]": ["noerrors", "mhchem"], + }, + }, + startup: { + typeset: false, + pageReady: () => { + console.log("page is ready"); + return MathJax.startup.defaultPageReady(); + }, + }, + options: { + renderActions: { + addMenu: [], + checkLoading: [], + }, + ignoreHtmlClass: "tex2jax_ignore", + processHtmlClass: "tex2jax_process", + }, + loader: { + load: ["[tex]/noerrors", "[tex]/mhchem"], + }, +}; diff --git a/qt/aqt/data/web/js/reviewer.ts b/qt/aqt/data/web/js/reviewer.ts index 59af20643..eb3a27540 100644 --- a/qt/aqt/data/web/js/reviewer.ts +++ b/qt/aqt/data/web/js/reviewer.ts @@ -11,10 +11,14 @@ var aFade = 0; var onUpdateHook; var onShownHook; -function _runHook(arr) { +function _runHook(arr: () => Promise[]): Promise { + var promises = []; + for (var i = 0; i < arr.length; i++) { - arr[i](); + promises.push(arr[i]()); } + + return Promise.all(promises); } function _updateQA(html, fadeTime, onupdate, onshown) { @@ -32,33 +36,38 @@ function _updateQA(html, fadeTime, onupdate, onshown) { onUpdateHook = [onupdate]; onShownHook = [onshown]; - // fade out current text var qa = $("#qa"); - qa.fadeTo(fadeTime, 0, function () { + + // fade out current text + new Promise((resolve) => qa.fadeOut(fadeTime, () => resolve())) // update text - try { - qa.html(html); - } catch (err) { - qa.html( - ( - `Invalid HTML on card: ${String(err).substring(0, 2000)}\n` + - String(err.stack).substring(0, 2000) - ).replace(/\n/g, "
    ") - ); - } - _runHook(onUpdateHook); - - // render mathjax - MathJax.Hub.Queue(["Typeset", MathJax.Hub]); + .then(() => { + try { + qa.html(html); + } catch (err) { + qa.html( + ( + `Invalid HTML on card: ${String(err).substring(0, 2000)}\n` + + String(err.stack).substring(0, 2000) + ).replace(/\n/g, "
    ") + ); + } + }) + .then(() => _runHook(onUpdateHook)) + .then(() => + // @ts-ignore wait for mathjax to ready + MathJax.startup.promise.then(() => { + // @ts-ignore clear MathJax buffer + MathJax.typesetClear(); + // @ts-ignore typeset + return MathJax.typesetPromise(qa.slice(0, 1)); + }) + ) // and reveal when processing is done - MathJax.Hub.Queue(function () { - qa.fadeTo(fadeTime, 1, function () { - _runHook(onShownHook); - _updatingQA = false; - }); - }); - }); + .then(() => new Promise((resolve) => qa.fadeIn(fadeTime, () => resolve()))) + .then(() => _runHook(onShownHook)) + .then(() => (_updatingQA = false)); } function _showQuestion(q, bodyclass) { diff --git a/qt/aqt/data/web/js/vendor/BUILD.bazel b/qt/aqt/data/web/js/vendor/BUILD.bazel new file mode 100644 index 000000000..46dd6ff9b --- /dev/null +++ b/qt/aqt/data/web/js/vendor/BUILD.bazel @@ -0,0 +1,5 @@ +filegroup( + name = "vendor", + srcs = glob(["**"]) + ["//qt/aqt/data/web/js/vendor/mathjax"], + visibility = ["//qt:__subpackages__"], +) diff --git a/qt/aqt/data/web/js/vendor/mathjax/BUILD.bazel b/qt/aqt/data/web/js/vendor/mathjax/BUILD.bazel new file mode 100644 index 000000000..78649d7a8 --- /dev/null +++ b/qt/aqt/data/web/js/vendor/mathjax/BUILD.bazel @@ -0,0 +1,6 @@ +load("//ts:mathjax.bzl", "copy_mathjax") + +copy_mathjax( + name = "mathjax", + visibility = ["//visibility:public"], +) diff --git a/qt/aqt/data/web/js/vendor/mathjax/MathJax.js b/qt/aqt/data/web/js/vendor/mathjax/MathJax.js deleted file mode 100755 index b77df9212..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/MathJax.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -if(document.getElementById&&document.childNodes&&document.createElement){if(!(window.MathJax&&MathJax.Hub)){if(window.MathJax){window.MathJax={AuthorConfig:window.MathJax}}else{window.MathJax={}}MathJax.isPacked=true;MathJax.version="2.7.1";MathJax.fileversion="2.7.1";MathJax.cdnVersion="2.7.1";MathJax.cdnFileVersions={};(function(d){var b=window[d];if(!b){b=window[d]={}}var e=[];var c=function(f){var g=f.constructor;if(!g){g=function(){}}for(var h in f){if(h!=="constructor"&&f.hasOwnProperty(h)){g[h]=f[h]}}return g};var a=function(){return function(){return arguments.callee.Init.call(this,arguments)}};b.Object=c({constructor:a(),Subclass:function(f,h){var g=a();g.SUPER=this;g.Init=this.Init;g.Subclass=this.Subclass;g.Augment=this.Augment;g.protoFunction=this.protoFunction;g.can=this.can;g.has=this.has;g.isa=this.isa;g.prototype=new this(e);g.prototype.constructor=g;g.Augment(f,h);return g},Init:function(f){var g=this;if(f.length===1&&f[0]===e){return g}if(!(g instanceof f.callee)){g=new f.callee(e)}return g.Init.apply(g,f)||g},Augment:function(f,g){var h;if(f!=null){for(h in f){if(f.hasOwnProperty(h)){this.protoFunction(h,f[h])}}if(f.toString!==this.prototype.toString&&f.toString!=={}.toString){this.protoFunction("toString",f.toString)}}if(g!=null){for(h in g){if(g.hasOwnProperty(h)){this[h]=g[h]}}}return this},protoFunction:function(g,f){this.prototype[g]=f;if(typeof f==="function"){f.SUPER=this.SUPER.prototype}},prototype:{Init:function(){},SUPER:function(f){return f.callee.SUPER},can:function(f){return typeof(this[f])==="function"},has:function(f){return typeof(this[f])!=="undefined"},isa:function(f){return(f instanceof Object)&&(this instanceof f)}},can:function(f){return this.prototype.can.call(this,f)},has:function(f){return this.prototype.has.call(this,f)},isa:function(g){var f=this;while(f){if(f===g){return true}else{f=f.SUPER}}return false},SimpleSUPER:c({constructor:function(f){return this.SimpleSUPER.define(f)},define:function(f){var h={};if(f!=null){for(var g in f){if(f.hasOwnProperty(g)){h[g]=this.wrap(g,f[g])}}if(f.toString!==this.prototype.toString&&f.toString!=={}.toString){h.toString=this.wrap("toString",f.toString)}}return h},wrap:function(i,h){if(typeof(h)!=="function"||!h.toString().match(/\.\s*SUPER\s*\(/)){return h}var g=function(){this.SUPER=g.SUPER[i];try{var f=h.apply(this,arguments)}catch(j){delete this.SUPER;throw j}delete this.SUPER;return f};g.toString=function(){return h.toString.apply(h,arguments)};return g}})});b.Object.isArray=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};b.Object.Array=Array})("MathJax");(function(BASENAME){var BASE=window[BASENAME];if(!BASE){BASE=window[BASENAME]={}}var isArray=BASE.Object.isArray;var CALLBACK=function(data){var cb=function(){return arguments.callee.execute.apply(arguments.callee,arguments)};for(var id in CALLBACK.prototype){if(CALLBACK.prototype.hasOwnProperty(id)){if(typeof(data[id])!=="undefined"){cb[id]=data[id]}else{cb[id]=CALLBACK.prototype[id]}}}cb.toString=CALLBACK.prototype.toString;return cb};CALLBACK.prototype={isCallback:true,hook:function(){},data:[],object:window,execute:function(){if(!this.called||this.autoReset){this.called=!this.autoReset;return this.hook.apply(this.object,this.data.concat([].slice.call(arguments,0)))}},reset:function(){delete this.called},toString:function(){return this.hook.toString.apply(this.hook,arguments)}};var ISCALLBACK=function(f){return(typeof(f)==="function"&&f.isCallback)};var EVAL=function(code){return eval.call(window,code)};var TESTEVAL=function(){EVAL("var __TeSt_VaR__ = 1");if(window.__TeSt_VaR__){try{delete window.__TeSt_VaR__}catch(error){window.__TeSt_VaR__=null}}else{if(window.execScript){EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";window.execScript(code);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result}}else{EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";var head=(document.getElementsByTagName("head"))[0];if(!head){head=document.body}var script=document.createElement("script");script.appendChild(document.createTextNode(code));head.appendChild(script);head.removeChild(script);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result}}}TESTEVAL=null};var USING=function(args,i){if(arguments.length>1){if(arguments.length===2&&!(typeof arguments[0]==="function")&&arguments[0] instanceof Object&&typeof arguments[1]==="number"){args=[].slice.call(args,i)}else{args=[].slice.call(arguments,0)}}if(isArray(args)&&args.length===1){args=args[0]}if(typeof args==="function"){if(args.execute===CALLBACK.prototype.execute){return args}return CALLBACK({hook:args})}else{if(isArray(args)){if(typeof(args[0])==="string"&&args[1] instanceof Object&&typeof args[1][args[0]]==="function"){return CALLBACK({hook:args[1][args[0]],object:args[1],data:args.slice(2)})}else{if(typeof args[0]==="function"){return CALLBACK({hook:args[0],data:args.slice(1)})}else{if(typeof args[1]==="function"){return CALLBACK({hook:args[1],object:args[0],data:args.slice(2)})}}}}else{if(typeof(args)==="string"){if(TESTEVAL){TESTEVAL()}return CALLBACK({hook:EVAL,data:[args]})}else{if(args instanceof Object){return CALLBACK(args)}else{if(typeof(args)==="undefined"){return CALLBACK({})}}}}}throw Error("Can't make callback from given data")};var DELAY=function(time,callback){callback=USING(callback);callback.timeout=setTimeout(callback,time);return callback};var WAITFOR=function(callback,signal){callback=USING(callback);if(!callback.called){WAITSIGNAL(callback,signal);signal.pending++}};var WAITEXECUTE=function(){var signals=this.signal;delete this.signal;this.execute=this.oldExecute;delete this.oldExecute;var result=this.execute.apply(this,arguments);if(ISCALLBACK(result)&&!result.called){WAITSIGNAL(result,signals)}else{for(var i=0,m=signals.length;i0&&priority=0;i--){this.hooks.splice(i,1)}this.remove=[]}});var EXECUTEHOOKS=function(hooks,data,reset){if(!hooks){return null}if(!isArray(hooks)){hooks=[hooks]}if(!isArray(data)){data=(data==null?[]:[data])}var handler=HOOKS(reset);for(var i=0,m=hooks.length;ig){g=document.styleSheets.length}if(!i){i=document.head||((document.getElementsByTagName("head"))[0]);if(!i){i=document.body}}return i};var f=[];var c=function(){for(var k=0,j=f.length;k=this.timeout){i(this.STATUS.ERROR);return 1}return 0},file:function(j,i){if(i<0){a.Ajax.loadTimeout(j)}else{a.Ajax.loadComplete(j)}},execute:function(){this.hook.call(this.object,this,this.data[0],this.data[1])},checkSafari2:function(i,j,k){if(i.time(k)){return}if(document.styleSheets.length>j&&document.styleSheets[j].cssRules&&document.styleSheets[j].cssRules.length){k(i.STATUS.OK)}else{setTimeout(i,i.delay)}},checkLength:function(i,l,n){if(i.time(n)){return}var m=0;var j=(l.sheet||l.styleSheet);try{if((j.cssRules||j.rules||[]).length>0){m=1}}catch(k){if(k.message.match(/protected variable|restricted URI/)){m=1}else{if(k.message.match(/Security error/)){m=1}}}if(m){setTimeout(a.Callback([n,i.STATUS.OK]),0)}else{setTimeout(i,i.delay)}}},loadComplete:function(i){i=this.fileURL(i);var j=this.loading[i];if(j&&!j.preloaded){a.Message.Clear(j.message);clearTimeout(j.timeout);if(j.script){if(f.length===0){setTimeout(c,0)}f.push(j.script)}this.loaded[i]=j.status;delete this.loading[i];this.addHook(i,j.callback)}else{if(j){delete this.loading[i]}this.loaded[i]=this.STATUS.OK;j={status:this.STATUS.OK}}if(!this.loadHooks[i]){return null}return this.loadHooks[i].Execute(j.status)},loadTimeout:function(i){if(this.loading[i].timeout){clearTimeout(this.loading[i].timeout)}this.loading[i].status=this.STATUS.ERROR;this.loadError(i);this.loadComplete(i)},loadError:function(i){a.Message.Set(["LoadFailed","File failed to load: %1",i],null,2000);a.Hub.signal.Post(["file load error",i])},Styles:function(k,l){var i=this.StyleString(k);if(i===""){l=a.Callback(l);l()}else{var j=document.createElement("style");j.type="text/css";this.head=h(this.head);this.head.appendChild(j);if(j.styleSheet&&typeof(j.styleSheet.cssText)!=="undefined"){j.styleSheet.cssText=i}else{j.appendChild(document.createTextNode(i))}l=this.timer.create.call(this,l,j)}return l},StyleString:function(n){if(typeof(n)==="string"){return n}var k="",o,m;for(o in n){if(n.hasOwnProperty(o)){if(typeof n[o]==="string"){k+=o+" {"+n[o]+"}\n"}else{if(a.Object.isArray(n[o])){for(var l=0;l="0"&&q<="9"){f[j]=p[f[j]-1];if(typeof f[j]==="number"){f[j]=this.number(f[j])}}else{if(q==="{"){q=f[j].substr(1);if(q>="0"&&q<="9"){f[j]=p[f[j].substr(1,f[j].length-2)-1];if(typeof f[j]==="number"){f[j]=this.number(f[j])}}else{var k=f[j].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);if(k){if(k[1]==="plural"){var d=p[k[2]-1];if(typeof d==="undefined"){f[j]="???"}else{d=this.plural(d)-1;var h=k[3].replace(/(^|[^%])(%%)*%\|/g,"$1$2%\uEFEF").split(/\|/);if(d>=0&&d=3){c.push([f[0],f[1],this.processSnippet(g,f[2])])}else{c.push(e[d])}}}}else{c.push(e[d])}}return c},markdownPattern:/(%.)|(\*{1,3})((?:%.|.)+?)\2|(`+)((?:%.|.)+?)\4|\[((?:%.|.)+?)\]\(([^\s\)]+)\)/,processMarkdown:function(b,h,d){var j=[],e;var c=b.split(this.markdownPattern);var g=c[0];for(var f=1,a=c.length;f1?d[1]:""));f=null}if(e&&(!b.preJax||d)){c.nodeValue=c.nodeValue.replace(b.postJax,(e.length>1?e[1]:""))}if(f&&!f.nodeValue.match(/\S/)){f=f.previousSibling}}if(b.preRemoveClass&&f&&f.className===b.preRemoveClass){a.MathJax.preview=f}a.MathJax.checked=1},processInput:function(a){var b,i=MathJax.ElementJax.STATE;var h,e,d=a.scripts.length;try{while(a.ithis.processUpdateTime&&a.i1){d.jax[a.outputJax].push(b)}b.MathJax.state=c.OUTPUT},prepareOutput:function(c,f){while(c.jthis.processUpdateTime&&h.i=0;q--){if((b[q].src||"").match(f)){s.script=b[q].innerHTML;if(RegExp.$2){var t=RegExp.$2.substr(1).split(/\&/);for(var p=0,l=t.length;p=parseInt(y[z])}}return true},Select:function(j){var i=j[d.Browser];if(i){return i(d.Browser)}return null}};var e=k.replace(/^Mozilla\/(\d+\.)+\d+ /,"").replace(/[a-z][-a-z0-9._: ]+\/\d+[^ ]*-[^ ]*\.([a-z][a-z])?\d+ /i,"").replace(/Gentoo |Ubuntu\/(\d+\.)*\d+ (\([^)]*\) )?/,"");d.Browser=d.Insert(d.Insert(new String("Unknown"),{version:"0.0"}),a);for(var v in a){if(a.hasOwnProperty(v)){if(a[v]&&v.substr(0,2)==="is"){v=v.slice(2);if(v==="Mac"||v==="PC"){continue}d.Browser=d.Insert(new String(v),a);var r=new RegExp(".*(Version/| Trident/.*; rv:)((?:\\d+\\.)+\\d+)|.*("+v+")"+(v=="MSIE"?" ":"/")+"((?:\\d+\\.)*\\d+)|(?:^|\\(| )([a-z][-a-z0-9._: ]+|(?:Apple)?WebKit)/((?:\\d+\\.)+\\d+)");var u=r.exec(e)||["","","","unknown","0.0"];d.Browser.name=(u[1]!=""?v:(u[3]||u[5]));d.Browser.version=u[2]||u[4]||u[6];break}}}try{d.Browser.Select({Safari:function(j){var i=parseInt((String(j.version).split("."))[0]);if(i>85){j.webkit=j.version}if(i>=538){j.version="8.0"}else{if(i>=537){j.version="7.0"}else{if(i>=536){j.version="6.0"}else{if(i>=534){j.version="5.1"}else{if(i>=533){j.version="5.0"}else{if(i>=526){j.version="4.0"}else{if(i>=525){j.version="3.1"}else{if(i>500){j.version="3.0"}else{if(i>400){j.version="2.0"}else{if(i>85){j.version="1.0"}}}}}}}}}}j.webkit=(navigator.appVersion.match(/WebKit\/(\d+)\./))[1];j.isMobile=(navigator.appVersion.match(/Mobile/i)!=null);j.noContextMenu=j.isMobile},Firefox:function(j){if((j.version==="0.0"||k.match(/Firefox/)==null)&&navigator.product==="Gecko"){var m=k.match(/[\/ ]rv:(\d+\.\d.*?)[\) ]/);if(m){j.version=m[1]}else{var i=(navigator.buildID||navigator.productSub||"0").substr(0,8);if(i>="20111220"){j.version="9.0"}else{if(i>="20111120"){j.version="8.0"}else{if(i>="20110927"){j.version="7.0"}else{if(i>="20110816"){j.version="6.0"}else{if(i>="20110621"){j.version="5.0"}else{if(i>="20110320"){j.version="4.0"}else{if(i>="20100121"){j.version="3.6"}else{if(i>="20090630"){j.version="3.5"}else{if(i>="20080617"){j.version="3.0"}else{if(i>="20061024"){j.version="2.0"}}}}}}}}}}}}j.isMobile=(navigator.appVersion.match(/Android/i)!=null||k.match(/ Fennec\//)!=null||k.match(/Mobile/)!=null)},Chrome:function(i){i.noContextMenu=i.isMobile=!!navigator.userAgent.match(/ Mobile[ \/]/)},Opera:function(i){i.version=opera.version()},Edge:function(i){i.isMobile=!!navigator.userAgent.match(/ Phone/)},MSIE:function(j){j.isMobile=!!navigator.userAgent.match(/ Phone/);j.isIE9=!!(document.documentMode&&(window.performance||window.msPerformance));MathJax.HTML.setScriptBug=!j.isIE9||document.documentMode<9;MathJax.Hub.msieHTMLCollectionBug=(document.documentMode<9);if(document.documentMode<10&&!s.params.NoMathPlayer){try{new ActiveXObject("MathPlayer.Factory.1");j.hasMathPlayer=true}catch(m){}try{if(j.hasMathPlayer){var i=document.createElement("object");i.id="mathplayer";i.classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987";g.appendChild(i);document.namespaces.add("m","http://www.w3.org/1998/Math/MathML");j.mpNamespace=true;if(document.readyState&&(document.readyState==="loading"||document.readyState==="interactive")){document.write('');j.mpImported=true}}else{document.namespaces.add("mjx_IE_fix","http://www.w3.org/1999/xlink")}}catch(m){}}}})}catch(c){console.error(c.message)}d.Browser.Select(MathJax.Message.browsers);if(h.AuthorConfig&&typeof h.AuthorConfig.AuthorInit==="function"){h.AuthorConfig.AuthorInit()}d.queue=h.Callback.Queue();d.queue.Push(["Post",s.signal,"Begin"],["Config",s],["Cookie",s],["Styles",s],["Message",s],function(){var i=h.Callback.Queue(s.Jax(),s.Extensions());return i.Push({})},["Menu",s],s.onLoad(),function(){MathJax.isReady=true},["Typeset",s],["Hash",s],["MenuZoom",s],["Post",s.signal,"End"])})("MathJax")}}; diff --git a/qt/aqt/data/web/js/vendor/mathjax/conf.js b/qt/aqt/data/web/js/vendor/mathjax/conf.js deleted file mode 100644 index 7d750d813..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/conf.js +++ /dev/null @@ -1,20 +0,0 @@ -window.MathJax = { - jax: ["input/TeX", "output/CommonHTML"], - extensions: ["tex2jax.js"], - TeX: { - extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js", "mhchem.js"] - }, - tex2jax: { - displayMath: [["\\[", "\\]"]], - processRefs: false, - processEnvironments: false, - }, - messageStyle: "none", - skipStartupTypeset: true, - showMathMenu: false, - AuthorInit: function () { - MathJax.Hub.processSectionDelay = 0; - MathJax.Hub.processUpdateTime = 0; - MathJax.Hub.processUpdateDelay = 0; - } -}; diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/FontWarnings.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/FontWarnings.js deleted file mode 100755 index 891d873b9..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/FontWarnings.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/FontWarnings.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b,d){var i="2.7.1";var a="http://www.stixfonts.org/";var f="https://github.com/mathjax/MathJax/tree/master/fonts/HTML-CSS/TeX/otf";var h=b.CombineConfig("FontWarnings",{messageStyle:{position:"fixed",bottom:"4em",left:"3em",width:"40em",border:"3px solid #880000","background-color":"#E0E0E0",color:"black",padding:"1em","font-size":"small","white-space":"normal","border-radius":".75em","-webkit-border-radius":".75em","-moz-border-radius":".75em","-khtml-border-radius":".75em","box-shadow":"4px 4px 10px #AAAAAA","-webkit-box-shadow":"4px 4px 10px #AAAAAA","-moz-box-shadow":"4px 4px 10px #AAAAAA","-khtml-box-shadow":"4px 4px 10px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=3, OffY=3, Color='gray', Positive='true')"},Message:{webFont:[["closeBox"],["webFont","MathJax is using web-based fonts to display the mathematics on this page. These take time to download, so the page would render faster if you installed math fonts directly in your system's font folder."],["fonts"]],imageFonts:[["closeBox"],["imageFonts","MathJax is using its image fonts rather than local or web-based fonts. This will render slower than usual, and the mathematics may not print at the full resolution of your printer."],["fonts"],["webFonts"]],noFonts:[["closeBox"],["noFonts","MathJax is unable to locate a font to use to display its mathematics, and image fonts are not available, so it is falling back on generic unicode characters in hopes that your browser will be able to display them. Some characters may not show up properly, or possibly not at all."],["fonts"],["webFonts"]]},HTML:{closeBox:[["div",{style:{position:"absolute",overflow:"hidden",top:".1em",right:".1em",border:"1px outset",width:"1em",height:"1em","text-align":"center",cursor:"pointer","background-color":"#EEEEEE",color:"#606060","border-radius":".5em","-webkit-border-radius":".5em","-moz-border-radius":".5em","-khtml-border-radius":".5em"},onclick:function(){if(c.div&&c.fade===0){if(c.timer){clearTimeout(c.timer)}c.div.style.display="none"}}},[["span",{style:{position:"relative",bottom:".2em"}},["x"]]]]],webFonts:[["p"],["webFonts","Most modern browsers allow for fonts to be downloaded over the web. Updating to a more recent version of your browser (or changing browsers) could improve the quality of the mathematics on this page."]],fonts:[["p"],["fonts","MathJax can use either the [STIX fonts](%1) or the [MathJax TeX fonts](%2). Download and install one of those fonts to improve your MathJax experience.",a,f]],STIXfonts:[["p"],["STIXPage","This page is designed to use the [STIX fonts](%1). Download and install those fonts to improve your MathJax experience.",a]],TeXfonts:[["p"],["TeXPage","This page is designed to use the [MathJax TeX fonts](%1). Download and install those fonts to improve your MathJax experience.",f]]},removeAfter:12*1000,fadeoutSteps:10,fadeoutTime:1.5*1000});if(MathJax.Hub.Browser.isIE9&&document.documentMode>=9){delete h.messageStyle.filter}var c={div:null,fade:0};var e=function(m){if(c.div){return}var j=MathJax.OutputJax["HTML-CSS"],n=document.body;if(b.Browser.isMSIE){if(h.messageStyle.position==="fixed"){MathJax.Message.Init();n=document.getElementById("MathJax_MSIE_Frame")||n;if(n!==document.body){h.messageStyle.position="absolute"}}}else{delete h.messageStyle.filter}h.messageStyle.maxWidth=(document.body.clientWidth-75)+"px";var k=0;while(k1?z/h:1);C=Math.floor(Math.max(this.config.minScaleAdjust/100,C)*this.config.scale);if(C/100!==g.scale){o.push([v.style,C])}g.scale=C/100;g.fontScale=C+"%";g.ex=z;g.mex=h}if("scrollWidth" in g&&(r||g.scrollWidth!==k.firstChild.scrollWidth)){g.scrollWidth=k.firstChild.scrollWidth;t.push([k.parentNode.style,g.scrollWidth/g.ex/g.scale])}if(k.MathJaxMtds){for(var u=0,p=k.MathJaxMtds.length;u0){this.HoverFadeTimer(q,q.hover.inc);return}s.parentNode.removeChild(s);if(r){r.parentNode.removeChild(r)}if(q.hover.remove){clearTimeout(q.hover.remove)}delete q.hover},HoverFadeTimer:function(q,s,r){q.hover.inc=s;if(!q.hover.timer){q.hover.timer=setTimeout(g(["HoverFade",this,q]),(r||o.fadeDelay))}},HoverMenu:function(q){if(!q){q=window.event}return b[this.jax].ContextMenu(q,this.math,true)},ClearHover:function(q){if(q.hover.remove){clearTimeout(q.hover.remove)}if(q.hover.timer){clearTimeout(q.hover.timer)}f.ClearHoverTimer();delete q.hover},Px:function(q){if(Math.abs(q)<0.006){return"0px"}return q.toFixed(2).replace(/\.?0+$/,"")+"px"},getImages:function(){if(k.discoverable){var q=new Image();q.src=o.button.src}}};var a=c.Touch={last:0,delay:500,start:function(r){var q=new Date().getTime();var s=(q-a.last8);var j=(a?null:"5px");var s=f.CombineConfig("MathMenu",{delay:150,showRenderer:true,showMathPlayer:true,showFontMenu:false,showContext:false,showDiscoverable:false,showLocale:true,showLocaleURL:false,semanticsAnnotations:{TeX:["TeX","LaTeX","application/x-tex"],StarMath:["StarMath 5.0"],Maple:["Maple"],ContentMathML:["MathML-Content","application/mathml-content+xml"],OpenMath:["OpenMath"]},windowSettings:{status:"no",toolbar:"no",locationbar:"no",menubar:"no",directories:"no",personalbar:"no",resizable:"yes",scrollbars:"yes",width:400,height:300,left:Math.round((screen.width-400)/2),top:Math.round((screen.height-300)/3)},styles:{"#MathJax_About":{position:"fixed",left:"50%",width:"auto","text-align":"center",border:"3px outset",padding:"1em 2em","background-color":"#DDDDDD",color:"black",cursor:"default","font-family":"message-box","font-size":"120%","font-style":"normal","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":"15px","-webkit-border-radius":"15px","-moz-border-radius":"15px","-khtml-border-radius":"15px","box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')"},"#MathJax_About.MathJax_MousePost":{outline:"none"},".MathJax_Menu":{position:"absolute","background-color":"white",color:"black",width:"auto",padding:(a?"2px":"5px 0px"),border:"1px solid #CCCCCC",margin:0,cursor:"default",font:"menu","text-align":"left","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":j,"-webkit-border-radius":j,"-moz-border-radius":j,"-khtml-border-radius":j,"box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')"},".MathJax_MenuItem":{padding:(a?"2px 2em":"1px 2em"),background:"transparent"},".MathJax_MenuArrow":{position:"absolute",right:".5em","padding-top":".25em",color:"#666666","font-family":(l?"'Arial unicode MS'":null),"font-size":".75em"},".MathJax_MenuActive .MathJax_MenuArrow":{color:"white"},".MathJax_MenuArrow.RTL":{left:".5em",right:"auto"},".MathJax_MenuCheck":{position:"absolute",left:".7em","font-family":(l?"'Arial unicode MS'":null)},".MathJax_MenuCheck.RTL":{right:".7em",left:"auto"},".MathJax_MenuRadioCheck":{position:"absolute",left:(a?"1em":".7em")},".MathJax_MenuRadioCheck.RTL":{right:(a?"1em":".7em"),left:"auto"},".MathJax_MenuLabel":{padding:(a?"2px 2em 4px 1.33em":"1px 2em 3px 1.33em"),"font-style":"italic"},".MathJax_MenuRule":{"border-top":(a?"1px solid #CCCCCC":"1px solid #DDDDDD"),margin:(a?"4px 1px 0px":"4px 3px")},".MathJax_MenuDisabled":{color:"GrayText"},".MathJax_MenuActive":{"background-color":(a?"Highlight":"#606872"),color:(a?"HighlightText":"white")},".MathJax_MenuDisabled:focus, .MathJax_MenuLabel:focus":{"background-color":"#E8E8E8"},".MathJax_ContextMenu:focus":{outline:"none"},".MathJax_ContextMenu .MathJax_MenuItem:focus":{outline:"none"},"#MathJax_AboutClose":{top:".2em",right:".2em"},".MathJax_Menu .MathJax_MenuClose":{top:"-10px",left:"-10px"},".MathJax_MenuClose":{position:"absolute",cursor:"pointer",display:"inline-block",border:"2px solid #AAA","border-radius":"18px","-webkit-border-radius":"18px","-moz-border-radius":"18px","-khtml-border-radius":"18px","font-family":"'Courier New',Courier","font-size":"24px",color:"#F0F0F0"},".MathJax_MenuClose span":{display:"block","background-color":"#AAA",border:"1.5px solid","border-radius":"18px","-webkit-border-radius":"18px","-moz-border-radius":"18px","-khtml-border-radius":"18px","line-height":0,padding:"8px 0 6px"},".MathJax_MenuClose:hover":{color:"white!important",border:"2px solid #CCC!important"},".MathJax_MenuClose:hover span":{"background-color":"#CCC!important"},".MathJax_MenuClose:hover:focus":{outline:"none"}}});var n,k,b;f.Register.StartupHook("MathEvents Ready",function(){n=MathJax.Extension.MathEvents.Event.False;k=MathJax.Extension.MathEvents.Hover;b=MathJax.Extension.MathEvents.Event.KEY});var h=MathJax.Object.Subclass({Keydown:function(u,v){switch(u.keyCode){case b.ESCAPE:this.Remove(u,v);break;case b.RIGHT:this.Right(u,v);break;case b.LEFT:this.Left(u,v);break;case b.UP:this.Up(u,v);break;case b.DOWN:this.Down(u,v);break;case b.RETURN:case b.SPACE:this.Space(u,v);break;default:return;break}return n(u)},Escape:function(u,v){},Right:function(u,v){},Left:function(u,v){},Up:function(u,v){},Down:function(u,v){},Space:function(u,v){}},{});var g=MathJax.Menu=h.Subclass({version:p,items:[],posted:false,title:null,margin:5,Init:function(u){this.items=[].slice.call(arguments,0)},With:function(u){if(u){f.Insert(this,u)}return this},Post:function(M,E,B){if(!M){M=window.event||{}}var I=document.getElementById("MathJax_MenuFrame");if(!I){I=g.Background(this);delete c.lastItem;delete c.lastMenu;delete g.skipUp;d.Post(["post",g.jax]);g.isRTL=(MathJax.Localization.fontDirection()==="rtl")}var v=o.Element("div",{onmouseup:g.Mouseup,ondblclick:n,ondragstart:n,onselectstart:n,oncontextmenu:n,menuItem:this,className:"MathJax_Menu",onkeydown:g.Keydown,role:"menu"});if(M.type==="contextmenu"||M.type==="mouseover"){v.className+=" MathJax_ContextMenu"}if(!B){MathJax.Localization.setCSS(v)}for(var N=0,K=this.items.length;NA-this.margin){H=A-v.offsetWidth-this.margin}if(g.isMobile){H=Math.max(5,H-Math.floor(v.offsetWidth/2));F-=20}g.skipUp=M.isContextMenu}else{var z="left",J=E.offsetWidth;H=(g.isMobile?30:J-2);F=0;while(E&&E!==I){H+=E.offsetLeft;F+=E.offsetTop;E=E.parentNode}if(!g.isMobile){if((g.isRTL&&H-J-v.offsetWidth>this.margin)||(!g.isRTL&&H+v.offsetWidth>A-this.margin)){z="right";H=Math.max(this.margin,H-J-v.offsetWidth+6)}}if(!a){v.style["borderRadiusTop"+z]=0;v.style["WebkitBorderRadiusTop"+z]=0;v.style["MozBorderRadiusTop"+z]=0;v.style["KhtmlBorderRadiusTop"+z]=0}}v.style.left=H+"px";v.style.top=F+"px";if(document.selection&&document.selection.empty){document.selection.empty()}var G=window.pageXOffset||document.documentElement.scrollLeft;var D=window.pageYOffset||document.documentElement.scrollTop;g.Focus(v);if(M.type==="keydown"){g.skipMouseoverFromKey=true;setTimeout(function(){delete g.skipMouseoverFromKey},s.delay)}window.scrollTo(G,D);return n(M)},Remove:function(u,v){d.Post(["unpost",g.jax]);var w=document.getElementById("MathJax_MenuFrame");if(w){w.parentNode.removeChild(w);if(this.msieFixedPositionBug){detachEvent("onresize",g.Resize)}}if(g.jax.hover){delete g.jax.hover.nofade;k.UnHover(g.jax)}g.Unfocus(v);if(u.type==="mousedown"){g.CurrentNode().blur()}return n(u)},Find:function(u){return this.FindN(1,u,[].slice.call(arguments,1))},FindId:function(u){return this.FindN(0,u,[].slice.call(arguments,1))},FindN:function(y,v,x){for(var w=0,u=this.items.length;w0){u.oldTabIndex=u.tabIndex}u.tabIndex=-1}},SetTabIndex:function(){var v=g.AllNodes();for(var w=0,u;u=v[w];w++){if(u.oldTabIndex!==undefined){u.tabIndex=u.oldTabIndex;delete u.oldTabIndex}else{u.tabIndex=f.getTabOrder(u)}}},Mod:function(u,v){return((u%v)+v)%v},IndexOf:(Array.prototype.indexOf?function(u,v,w){return u.indexOf(v,w)}:function(u,x,y){for(var w=(y||0),v=u.length;w=0&&c.GetMenuNode(w).menuItem!==v[u].menuItem){v[u].menuItem.posted=false;v[u].parentNode.removeChild(v[u]);u--}},Touchstart:function(u,v){return this.TouchEvent(u,v,"Mousedown")},Touchend:function(u,v){return this.TouchEvent(u,v,"Mouseup")},TouchEvent:function(v,w,u){if(this!==c.lastItem){if(c.lastMenu){g.Event(v,c.lastMenu,"Mouseout")}g.Event(v,w,"Mouseover",true);c.lastItem=this;c.lastMenu=w}if(this.nativeTouch){return null}g.Event(v,w,u);return false},Remove:function(u,v){v=v.parentNode.menuItem;return v.Remove(u,v)},With:function(u){if(u){f.Insert(this,u)}return this},isRTL:function(){return g.isRTL},rtlClass:function(){return(this.isRTL()?" RTL":"")}},{GetMenuNode:function(u){return u.parentNode}});g.ENTRY=g.ITEM.Subclass({role:"menuitem",Attributes:function(u){u=f.Insert({onmouseover:g.Mouseover,onmouseout:g.Mouseout,onmousedown:g.Mousedown,onkeydown:g.Keydown,"aria-disabled":!!this.disabled},u);u=this.SUPER(arguments).Attributes.call(this,u);if(this.disabled){u.className+=" MathJax_MenuDisabled"}return u},MoveVertical:function(u,E,w){var x=c.GetMenuNode(E);var D=[];for(var z=0,C=x.menuItem.items,y;y=C[z];z++){if(!y.hidden){D.push(y)}}var B=g.IndexOf(D,this);if(B===-1){return}var A=D.length;var v=x.childNodes;do{B=g.Mod(w(B),A)}while(D[B].hidden||!v[B].role||v[B].role==="separator");this.Deactivate(E);D[B].Activate(u,v[B])},Up:function(v,u){this.MoveVertical(v,u,function(w){return w-1})},Down:function(v,u){this.MoveVertical(v,u,function(w){return w+1})},Right:function(v,u){this.MoveHorizontal(v,u,g.Right,!this.isRTL())},Left:function(v,u){this.MoveHorizontal(v,u,g.Left,this.isRTL())},MoveHorizontal:function(A,z,u,B){var x=c.GetMenuNode(z);if(x.menuItem===g.menu&&A.shiftKey){u(A,z)}if(B){return}if(x.menuItem!==g.menu){this.Deactivate(z)}var v=x.previousSibling.childNodes;var y=v.length;while(y--){var w=v[y];if(w.menuItem.submenu&&w.menuItem.submenu===x.menuItem){g.Focus(w);break}}this.RemoveSubmenus(z)},Space:function(u,v){this.Mouseup(u,v)},Activate:function(u,v){this.Deactivate(v);if(!this.disabled){v.className+=" MathJax_MenuActive"}this.DeactivateSubmenus(v);g.Focus(v)},Deactivate:function(u){u.className=u.className.replace(/ MathJax_MenuActive/,"")}});g.ITEM.COMMAND=g.ENTRY.Subclass({action:function(){},Init:function(u,w,v){if(!i(u)){u=[u,u]}this.name=u;this.action=w;this.With(v)},Label:function(u,v){return[this.Name()]},Mouseup:function(u,v){if(!this.disabled){this.Remove(u,v);d.Post(["command",this]);this.action.call(this,u)}return n(u)}});g.ITEM.SUBMENU=g.ENTRY.Subclass({submenu:null,marker:"\u25BA",markerRTL:"\u25C4",Attributes:function(u){u=f.Insert({"aria-haspopup":"true"},u);u=this.SUPER(arguments).Attributes.call(this,u);return u},Init:function(u,w){if(!i(u)){u=[u,u]}this.name=u;var v=1;if(!(w instanceof g.ITEM)){this.With(w),v++}this.submenu=g.apply(g,[].slice.call(arguments,v))},Label:function(u,v){this.submenu.posted=false;return[this.Name()+" ",["span",{className:"MathJax_MenuArrow"+this.rtlClass()},[this.isRTL()?this.markerRTL:this.marker]]]},Timer:function(u,v){this.ClearTimer();u={type:u.type,clientX:u.clientX,clientY:u.clientY};this.timer=setTimeout(e(["Mouseup",this,u,v]),s.delay)},ClearTimer:function(){if(this.timer){clearTimeout(this.timer)}},Touchend:function(v,x){var w=this.submenu.posted;var u=this.SUPER(arguments).Touchend.apply(this,arguments);if(w){this.Deactivate(x);delete c.lastItem;delete c.lastMenu}return u},Mouseout:function(u,v){if(!this.submenu.posted){this.Deactivate(v)}this.ClearTimer()},Mouseover:function(u,v){this.Activate(u,v)},Mouseup:function(u,v){if(!this.disabled){if(!this.submenu.posted){this.ClearTimer();this.submenu.Post(u,v,this.ltr);g.Focus(v)}else{this.DeactivateSubmenus(v)}}return n(u)},Activate:function(u,v){if(!this.disabled){this.Deactivate(v);v.className+=" MathJax_MenuActive"}if(!this.submenu.posted){this.DeactivateSubmenus(v);if(!g.isMobile){this.Timer(u,v)}}g.Focus(v)},MoveVertical:function(w,v,u){this.ClearTimer();this.SUPER(arguments).MoveVertical.apply(this,arguments)},MoveHorizontal:function(w,y,v,x){if(!x){this.SUPER(arguments).MoveHorizontal.apply(this,arguments);return}if(this.disabled){return}if(!this.submenu.posted){this.Activate(w,y);return}var u=c.GetMenuNode(y).nextSibling.childNodes;if(u.length>0){this.submenu.items[0].Activate(w,u[0])}}});g.ITEM.RADIO=g.ENTRY.Subclass({variable:null,marker:(a?"\u25CF":"\u2713"),role:"menuitemradio",Attributes:function(v){var u=s.settings[this.variable]===this.value?"true":"false";v=f.Insert({"aria-checked":u},v);v=this.SUPER(arguments).Attributes.call(this,v);return v},Init:function(v,u,w){if(!i(v)){v=[v,v]}this.name=v;this.variable=u;this.With(w);if(this.value==null){this.value=this.name[0]}},Label:function(v,w){var u={className:"MathJax_MenuRadioCheck"+this.rtlClass()};if(s.settings[this.variable]!==this.value){u={style:{display:"none"}}}return[["span",u,[this.marker]]," "+this.Name()]},Mouseup:function(x,y){if(!this.disabled){var z=y.parentNode.childNodes;for(var v=0,u=z.length;v/g,">");var y=t("EqSource","MathJax Equation Source");if(g.isMobile){u.document.open();u.document.write(""+y+"");u.document.write("
    "+z+"
    ");u.document.write("
    ");u.document.write("");u.document.close()}else{u.document.open();u.document.write(""+y+"");u.document.write("
    "+z+"
    ");u.document.write("");u.document.close();var v=u.document.body.firstChild;setTimeout(function(){var B=(u.outerHeight-u.innerHeight)||30,A=(u.outerWidth-u.innerWidth)||30,w,E;A=Math.max(140,Math.min(Math.floor(0.5*screen.width),v.offsetWidth+A+25));B=Math.max(40,Math.min(Math.floor(0.5*screen.height),v.offsetHeight+B+25));if(g.prototype.msieHeightBug){B+=35}u.resizeTo(A,B);var D;try{D=x.screenX}catch(C){}if(x&&D!=null){w=Math.max(0,Math.min(x.screenX-Math.floor(A/2),screen.width-A-20));E=Math.max(0,Math.min(x.screenY-Math.floor(B/2),screen.height-B-20));u.moveTo(w,E)}},50)}};g.Scale=function(){var z=["CommonHTML","HTML-CSS","SVG","NativeMML","PreviewHTML"],u=z.length,y=100,w,v;for(w=0;w7;g.Augment({margin:20,msieBackgroundBug:((document.documentMode||0)<9),msieFixedPositionBug:(v||!w),msieAboutBug:v,msieHeightBug:((document.documentMode||0)<9)});if(m){delete s.styles["#MathJax_About"].filter;delete s.styles[".MathJax_Menu"].filter}},Firefox:function(u){g.skipMouseover=u.isMobile&&u.versionAtLeast("6.0");g.skipMousedown=u.isMobile}});g.isMobile=f.Browser.isMobile;g.noContextMenu=f.Browser.noContextMenu;g.CreateLocaleMenu=function(){if(!g.menu){return}var z=g.menu.Find("Language").submenu,w=z.items;var v=[],B=MathJax.Localization.strings;for(var A in B){if(B.hasOwnProperty(A)){v.push(A)}}v=v.sort();z.items=[];for(var x=0,u=v.length;xt){z.style.height=t+"px";z.style.width=(x.zW+this.scrollSize)+"px"}if(z.offsetWidth>l){z.style.width=l+"px";z.style.height=(x.zH+this.scrollSize)+"px"}}if(this.operaPositionBug){z.style.width=Math.min(l,x.zW)+"px"}if(z.offsetWidth>m&&z.offsetWidth-m=9);h.msiePositionBug=!m;h.msieSizeBug=l.versionAtLeast("7.0")&&(!document.documentMode||n===7||n===8);h.msieZIndexBug=(n<=7);h.msieInlineBlockAlignBug=(n<=7);h.msieTrapEventBug=!window.addEventListener;if(document.compatMode==="BackCompat"){h.scrollSize=52}if(m){delete i.styles["#MathJax_Zoom"].filter}},Opera:function(l){h.operaPositionBug=true;h.operaRefreshBug=true}});h.topImg=(h.msieInlineBlockAlignBug?d.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):d.Element("span",{style:{width:0,height:0,display:"inline-block"}}));if(h.operaPositionBug||h.msieTopBug){h.topImg.style.border="1px solid"}MathJax.Callback.Queue(["StartupHook",MathJax.Hub.Register,"Begin Styles",{}],["Styles",f,i.styles],["Post",a.Startup.signal,"MathZoom Ready"],["loadComplete",f,"[MathJax]/extensions/MathZoom.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.OutputJax["HTML-CSS"],MathJax.OutputJax.NativeMML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/Safe.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/Safe.js deleted file mode 100755 index 130da4f9d..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/Safe.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/Safe.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(d,c){var f="2.7.1";var a=MathJax.Hub.CombineConfig("Safe",{allow:{URLs:"safe",classes:"safe",cssIDs:"safe",styles:"safe",fontsize:"all",require:"safe"},sizeMin:0.7,sizeMax:1.44,lengthMax:3,safeProtocols:{http:true,https:true,file:true,javascript:false},safeStyles:{color:true,backgroundColor:true,border:true,cursor:true,margin:true,padding:true,textShadow:true,fontFamily:true,fontSize:true,fontStyle:true,fontWeight:true,opacity:true,outline:true},safeRequire:{action:true,amscd:true,amsmath:true,amssymbols:true,autobold:false,"autoload-all":false,bbox:true,begingroup:true,boldsymbol:true,cancel:true,color:true,enclose:true,extpfeil:true,HTML:true,mathchoice:true,mhchem:true,newcommand:true,noErrors:false,noUndefined:false,unicode:true,verb:true},styleParts:{border:true,padding:true,margin:true,outline:true},styleLengths:{borderTop:"borderTopWidth",borderRight:"borderRightWidth",borderBottom:"borderBottomWidth",borderLeft:"borderLeftWidth",paddingTop:true,paddingRight:true,paddingBottom:true,paddingLeft:true,marginTop:true,marginRight:true,marginBottom:true,marginLeft:true,outlineTop:true,outlineRight:true,outlineBottom:true,outlineLeft:true,fontSize:[0.7,1.44]}});var e=a.allow;if(e.fontsize!=="all"){a.safeStyles.fontSize=false}var b=MathJax.Extension.Safe={version:f,config:a,div1:document.createElement("div"),div2:document.createElement("div"),filter:{href:"filterURL",src:"filterURL",altimg:"filterURL","class":"filterClass",style:"filterStyles",id:"filterID",fontsize:"filterFontSize",mathsize:"filterFontSize",scriptminsize:"filterFontSize",scriptsizemultiplier:"filterSizeMultiplier",scriptlevel:"filterScriptLevel"},filterURL:function(g){var h=(g.match(/^\s*([a-z]+):/i)||[null,""])[1].toLowerCase();if(e.URLs==="none"||(e.URLs!=="all"&&!a.safeProtocols[h])){g=null}return g},filterClass:function(g){if(e.classes==="none"||(e.classes!=="all"&&!g.match(/^MJX-[-a-zA-Z0-9_.]+$/))){g=null}return g},filterID:function(g){if(e.cssIDs==="none"||(e.cssIDs!=="all"&&!g.match(/^MJX-[-a-zA-Z0-9_.]+$/))){g=null}return g},filterStyles:function(l){if(e.styles==="all"){return l}if(e.styles==="none"){return null}try{var k=this.div1.style,j=this.div2.style,m;k.cssText=l;j.cssText="";for(var g in a.safeStyles){if(a.safeStyles.hasOwnProperty(g)){if(a.styleParts[g]){for(var h=0;h<4;h++){var o=g+["Top","Right","Bottom","Left"][h];m=this.filterStyle(o,k);if(m){j[o]=m}}}else{m=this.filterStyle(g,k);if(m){j[g]=m}}}}l=j.cssText}catch(n){l=null}return l},filterStyle:function(g,h){var i=h[g];if(typeof i!=="string"||i===""){return null}if(i.match(/^\s*expression/)){return null}if(i.match(/javascript:/)){return null}var j=g.replace(/Top|Right|Left|Bottom/,"");if(!a.safeStyles[g]&&!a.safeStyles[j]){return null}if(!a.styleLengths[g]){return i}return(this.filterStyleLength(g,i,h)?i:null)},filterStyleLength:function(g,i,h){if(typeof a.styleLengths[g]==="string"){i=h[a.styleLengths[g]]}i=this.length2em(i);if(i==null){return false}var j=[-a.lengthMax,a.lengthMax];if(MathJax.Object.isArray(a.styleLengths[g])){j=a.styleLengths[g]}return(i>=j[0]&&i<=j[1])},unit2em:{em:1,ex:0.5,ch:0.5,rem:1,px:1/16,mm:96/25.4/16,cm:96/2.54/16,"in":96/16,pt:96/72/16,pc:96/6/16},length2em:function(h){var g=h.match(/(.+)(em|ex|ch|rem|px|mm|cm|in|pt|pc)/);if(!g){return null}return parseFloat(g[1])*this.unit2em[g[2]]},filterSize:function(g){if(e.fontsize==="none"){return null}if(e.fontsize!=="all"){g=Math.min(Math.max(g,a.sizeMin),a.sizeMax)}return g},filterFontSize:function(g){return(e.fontsize==="all"?g:null)},filterSizeMultiplier:function(g){if(e.fontsize==="none"){g=null}else{if(e.fontsize!=="all"){g=Math.min(1,Math.max(0.6,g)).toString()}}return g},filterScriptLevel:function(g){if(e.fontsize==="none"){g=null}else{if(e.fontsize!=="all"){g=Math.max(0,g).toString()}}return g},filterRequire:function(g){if(e.require==="none"||(e.require!=="all"&&!a.safeRequire[g.toLowerCase()])){g=null}return g}};d.Register.StartupHook("TeX HTML Ready",function(){var g=MathJax.InputJax.TeX;g.Parse.Augment({HREF_attribute:function(j){var i=b.filterURL(this.GetArgument(j)),h=this.GetArgumentMML(j);if(i){h.With({href:i})}this.Push(h)},CLASS_attribute:function(i){var j=b.filterClass(this.GetArgument(i)),h=this.GetArgumentMML(i);if(j){if(h["class"]!=null){j=h["class"]+" "+j}h.With({"class":j})}this.Push(h)},STYLE_attribute:function(i){var j=b.filterStyles(this.GetArgument(i)),h=this.GetArgumentMML(i);if(j){if(h.style!=null){if(j.charAt(j.length-1)!==";"){j+=";"}j=h.style+" "+j}h.With({style:j})}this.Push(h)},ID_attribute:function(j){var i=b.filterID(this.GetArgument(j)),h=this.GetArgumentMML(j);if(i){h.With({id:i})}this.Push(h)}})});d.Register.StartupHook("TeX Jax Ready",function(){var i=MathJax.InputJax.TeX,h=i.Parse,g=b.filter;h.Augment({Require:function(j){var k=this.GetArgument(j).replace(/.*\//,"").replace(/[^a-z0-9_.-]/ig,"");k=b.filterRequire(k);if(k){this.Extension(null,k)}},MmlFilterAttribute:function(j,k){if(g[j]){k=b[g[j]](k)}return k},SetSize:function(j,k){k=b.filterSize(k);if(k){this.stack.env.size=k;this.Push(i.Stack.Item.style().With({styles:{mathsize:k+"em"}}))}}})});d.Register.StartupHook("TeX bbox Ready",function(){var g=MathJax.InputJax.TeX;g.Parse.Augment({BBoxStyle:function(h){return b.filterStyles(h)},BBoxPadding:function(i){var h=b.filterStyles("padding: "+i);return(h?i:0)}})});d.Register.StartupHook("MathML Jax Ready",function(){var h=MathJax.InputJax.MathML.Parse,g=b.filter;h.Augment({filterAttribute:function(i,j){if(g[i]){j=b[g[i]](j)}return j}})});d.Startup.signal.Post("Safe Extension Ready");c.loadComplete("[MathJax]/extensions/Safe.js")})(MathJax.Hub,MathJax.Ajax); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/AMScd.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/AMScd.js deleted file mode 100755 index 8f231b61a..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/AMScd.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/TeX/AMScd.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Extension["TeX/AMScd"]={version:"2.7.1",config:MathJax.Hub.CombineConfig("TeX.CD",{colspace:"5pt",rowspace:"5pt",harrowsize:"2.75em",varrowsize:"1.75em",hideHorizontalLabels:false})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.ElementJax.mml,e=MathJax.InputJax.TeX,d=e.Stack.Item,c=e.Definitions,a=MathJax.Extension["TeX/AMScd"].config;c.environment.CD="CD_env";c.special["@"]="CD_arrow";c.macros.minCDarrowwidth="CD_minwidth";c.macros.minCDarrowheight="CD_minheight";e.Parse.Augment({CD_env:function(f){this.Push(f);return d.array().With({arraydef:{columnalign:"center",columnspacing:a.colspace,rowspacing:a.rowspace,displaystyle:true},minw:this.stack.env.CD_minw||a.harrowsize,minh:this.stack.env.CD_minh||a.varrowsize})},CD_arrow:function(g){var l=this.string.charAt(this.i);if(!l.match(/[>":"\u2192","<":"\u2190",V:"\u2193",A:"\u2191"}[l];var p=this.GetUpTo(g+l,l),m=this.GetUpTo(g+l,l);if(l===">"||l==="<"){h=b.mo(r).With(f);if(!p){p="\\kern "+o.minw}if(p||m){var j={width:"+11mu",lspace:"6mu"};h=b.munderover(this.mmlToken(h));if(p){p=e.Parse(p,this.stack.env).mml();h.SetData(h.over,b.mpadded(p).With(j).With({voffset:".1em"}))}if(m){m=e.Parse(m,this.stack.env).mml();h.SetData(h.under,b.mpadded(m).With(j))}if(a.hideHorizontalLabels){h=b.mpadded(h).With({depth:0,height:".67em"})}}}else{h=r=this.mmlToken(b.mo(r).With(k));if(p||m){h=b.mrow();if(p){h.Append(e.Parse("\\scriptstyle\\llap{"+p+"}",this.stack.env).mml())}h.Append(r.With({texClass:b.TEXCLASS.ORD}));if(m){h.Append(e.Parse("\\scriptstyle\\rlap{"+m+"}",this.stack.env).mml())}}}}}}if(h){this.Push(h)}this.CD_cell(g)},CD_cell:function(f){var g=this.stack.Top();if((g.table||[]).length%2===0&&(g.row||[]).length===0){this.Push(b.mpadded().With({height:"8.5pt",depth:"2pt"}))}this.Push(d.cell().With({isEntry:true,name:f}))},CD_minwidth:function(f){this.stack.env.CD_minw=this.GetDimen(f)},CD_minheight:function(f){this.stack.env.CD_minh=this.GetDimen(f)}})});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/AMScd.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/AMSmath.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/AMSmath.js deleted file mode 100755 index 8b337887c..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/AMSmath.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/TeX/AMSmath.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Extension["TeX/AMSmath"]={version:"2.7.1",number:0,startNumber:0,IDs:{},eqIDs:{},labels:{},eqlabels:{},refs:[]};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.ElementJax.mml,h=MathJax.InputJax.TeX,g=MathJax.Extension["TeX/AMSmath"];var d=h.Definitions,f=h.Stack.Item,a=h.config.equationNumbers;var c=function(k){var n=[];for(var l=0,j=k.length;l0){p+="rl";o.push("0em 0em");q--}o=o.join(" ");if(i){return this.AMSarray(l,j,i,p,o)}var m=this.AMSarray(l,j,i,p,o);return this.setArrayAlign(m,k)},EquationBegin:function(i,j){this.checkEqnEnv();this.stack.global.forcetag=(j&&a.autoNumber!=="none");return i},EquationStar:function(i,j){this.stack.global.tagged=true;return j},checkEqnEnv:function(){if(this.stack.global.eqnenv){h.Error(["ErroneousNestingEq","Erroneous nesting of equation structures"])}this.stack.global.eqnenv=true},MultiIntegral:function(j,m){var l=this.GetNext();if(l==="\\"){var k=this.i;l=this.GetArgument(j);this.i=k;if(l==="\\limits"){if(j==="\\idotsint"){m="\\!\\!\\mathop{\\,\\,"+m+"}"}else{m="\\!\\!\\!\\mathop{\\,\\,\\,"+m+"}"}}}this.string=m+" "+this.string.slice(this.i);this.i=0},xArrow:function(k,o,n,i){var m={width:"+"+(n+i)+"mu",lspace:n+"mu"};var p=this.GetBrackets(k),q=this.ParseArg(k);var s=b.mo(b.chars(String.fromCharCode(o))).With({stretchy:true,texClass:b.TEXCLASS.REL});var j=b.munderover(s);j.SetData(j.over,b.mpadded(q).With(m).With({voffset:".15em"}));if(p){p=h.Parse(p,this.stack.env).mml();j.SetData(j.under,b.mpadded(p).With(m).With({voffset:"-.24em"}))}this.Push(j.With({subsupOK:true}))},GetDelimiterArg:function(i){var j=this.trimSpaces(this.GetArgument(i));if(j==""){return null}if(j in d.delimiter){return j}h.Error(["MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",i])},GetStar:function(){var i=(this.GetNext()==="*");if(i){this.i++}return i}});f.Augment({autoTag:function(){var j=this.global;if(!j.notag){g.number++;j.tagID=a.formatNumber(g.number.toString());var i=h.Parse("\\text{"+a.formatTag(j.tagID)+"}",{}).mml();j.tag=b.mtd(i).With({id:a.formatID(j.tagID)})}},getTag:function(){var m=this.global,k=m.tag;m.tagged=true;if(m.label){if(a.useLabelIds){k.id=a.formatID(m.label)}g.eqlabels[m.label]={tag:m.tagID,id:k.id}}if(document.getElementById(k.id)||g.IDs[k.id]||g.eqIDs[k.id]){var l=0,j;do{l++;j=k.id+"_"+l}while(document.getElementById(j)||g.IDs[j]||g.eqIDs[j]);k.id=j;if(m.label){g.eqlabels[m.label].id=j}}g.eqIDs[k.id]=1;this.clearTag();return k},clearTag:function(){var i=this.global;delete i.tag;delete i.tagID;delete i.label},fixInitialMO:function(l){for(var k=0,j=l.length;k0){this.stack[i].Undef(e,f);i--}if(!MathJax.Object.isArray(h)){h=[h]}if(this.isEqn){h.global=true}}this.stack[i].Def(e,h,f)},Push:function(e){this.stack.push(e);this.top=this.stack.length},Pop:function(){var e;if(this.top>1){e=this.stack[--this.top];if(this.isEqn){this.stack.pop()}}else{if(this.isEqn){this.Clear()}}return e},Find:function(e,g){for(var f=this.top-1;f>=0;f--){var h=this.stack[f].Find(e,g);if(h){return h}}return null},Merge:function(e){e.stack[0].MergeGlobals(this);this.stack[this.top-1].Merge(e.stack[0]);var f=[this.top,this.stack.length-this.top].concat(e.stack.slice(1));this.stack.splice.apply(this.stack,f);this.top=this.stack.length},Reset:function(){this.top=this.stack.length},Clear:function(e){this.stack=[this.stack[0].Clear()];this.top=this.stack.length}},{nsFrame:a});b.Add({macros:{begingroup:"BeginGroup",endgroup:"EndGroup",global:["Extension","newcommand"],gdef:["Extension","newcommand"]}},null,true);d.Parse.Augment({BeginGroup:function(e){d.eqnStack.Push(a())},EndGroup:function(e){if(d.eqnStack.top>1){d.eqnStack.Pop()}else{if(d.rootStack.top===1){d.Error(["ExtraEndMissingBegin","Extra %1 or missing \\begingroup",e])}else{d.eqnStack.Clear();d.rootStack.Pop()}}},csFindMacro:function(e){return(d.eqnStack.Find(e,"macros")||d.rootStack.Find(e,"macros"))},envFindName:function(e){return(d.eqnStack.Find(e,"environments")||d.rootStack.Find(e,"environments"))}});d.rootStack=c();d.eqnStack=c(true);d.prefilterHooks.Add(function(){d.rootStack.Reset();d.eqnStack.Clear(true)});d.postfilterHooks.Add(function(){d.rootStack.Merge(d.eqnStack)});MathJax.Hub.Register.StartupHook("TeX newcommand Ready",function(){b.Add({macros:{global:"Global",gdef:["Macro","\\global\\def"]}},null,true);d.Parse.Augment({setDef:function(e,f){f.isUser=true;d.eqnStack.Def(e,f,"macros",this.stack.env.isGlobal);delete this.stack.env.isGlobal},setEnv:function(e,f){f.isUser=true;d.eqnStack.Def(e,f,"environments")},Global:function(e){var f=this.i;var g=this.GetCSname(e);this.i=f;if(g!=="let"&&g!=="def"&&g!=="newcommand"){d.Error(["GlobalNotFollowedBy","%1 not followed by \\let, \\def, or \\newcommand",e])}this.stack.env.isGlobal=true}})});MathJax.Hub.Startup.signal.Post("TeX begingroup Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/begingroup.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/boldsymbol.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/boldsymbol.js deleted file mode 100755 index 09465840d..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/boldsymbol.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/TeX/boldsymbol.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Extension["TeX/boldsymbol"]={version:"2.7.1"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var a=MathJax.ElementJax.mml;var d=MathJax.InputJax.TeX;var b=d.Definitions;var c={};c[a.VARIANT.NORMAL]=a.VARIANT.BOLD;c[a.VARIANT.ITALIC]=a.VARIANT.BOLDITALIC;c[a.VARIANT.FRAKTUR]=a.VARIANT.BOLDFRAKTUR;c[a.VARIANT.SCRIPT]=a.VARIANT.BOLDSCRIPT;c[a.VARIANT.SANSSERIF]=a.VARIANT.BOLDSANSSERIF;c["-tex-caligraphic"]="-tex-caligraphic-bold";c["-tex-oldstyle"]="-tex-oldstyle-bold";b.Add({macros:{boldsymbol:"Boldsymbol"}},null,true);d.Parse.Augment({mmlToken:function(f){if(this.stack.env.boldsymbol){var e=f.Get("mathvariant");if(e==null){f.mathvariant=a.VARIANT.BOLD}else{f.mathvariant=(c[e]||e)}}return f},Boldsymbol:function(h){var e=this.stack.env.boldsymbol,f=this.stack.env.font;this.stack.env.boldsymbol=true;this.stack.env.font=null;var g=this.ParseArg(h);this.stack.env.font=f;this.stack.env.boldsymbol=e;this.Push(g)}});MathJax.Hub.Startup.signal.Post("TeX boldsymbol Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/boldsymbol.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/cancel.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/cancel.js deleted file mode 100755 index 5927f7026..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/cancel.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/TeX/cancel.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Extension["TeX/cancel"]={version:"2.7.1",ALLOWED:{color:1,mathcolor:1,background:1,mathbackground:1,padding:1,thickness:1}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml,b=MathJax.Extension["TeX/cancel"];b.setAttributes=function(h,e){if(e!==""){e=e.replace(/ /g,"").split(/,/);for(var g=0,d=e.length;g1){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","rgb",0,1])}d=Math.floor(d*255).toString(16);if(d.length<2){d="0"+d}a+=d}return a},get_RGB:function(b){b=b.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s*,\s*/);var a="#";if(b.length!==3){this.TEX.Error(["ModelArg1","Color values for the %1 model require 3 numbers","RGB"])}for(var c=0;c<3;c++){if(!b[c].match(/^\d+$/)){this.TEX.Error(["InvalidNumber","Invalid number"])}var d=parseInt(b[c]);if(d>255){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","RGB",0,255])}d=d.toString(16);if(d.length<2){d="0"+d}a+=d}return a},get_gray:function(a){if(!a.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/)){this.TEX.Error(["InvalidDecimalNumber","Invalid decimal number"])}var b=parseFloat(a);if(b<0||b>1){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","gray",0,1])}b=Math.floor(b*255).toString(16);if(b.length<2){b="0"+b}return"#"+b+b+b},get_named:function(a){if(this.colors[a]){return this.colors[a]}return a},padding:function(){var c="+"+this.config.padding;var a=this.config.padding.replace(/^.*?([a-z]*)$/,"$1");var b="+"+(2*parseFloat(c))+a;return{width:b,height:c,depth:c,lspace:this.config.padding}}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var d=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml;var c=d.Stack.Item;var b=MathJax.Extension["TeX/color"];b.TEX=d;d.Definitions.Add({macros:{color:"Color",textcolor:"TextColor",definecolor:"DefineColor",colorbox:"ColorBox",fcolorbox:"fColorBox"}},null,true);d.Parse.Augment({Color:function(h){var g=this.GetBrackets(h),e=this.GetArgument(h);e=b.getColor(g,e);var f=c.style().With({styles:{mathcolor:e}});this.stack.env.color=e;this.Push(f)},TextColor:function(h){var g=this.GetBrackets(h),f=this.GetArgument(h);f=b.getColor(g,f);var e=this.stack.env.color;this.stack.env.color=f;var i=this.ParseArg(h);if(e){this.stack.env.color}else{delete this.stack.env.color}this.Push(a.mstyle(i).With({mathcolor:f}))},DefineColor:function(g){var f=this.GetArgument(g),e=this.GetArgument(g),h=this.GetArgument(g);b.colors[f]=b.getColor(e,h)},ColorBox:function(g){var f=this.GetArgument(g),e=this.InternalMath(this.GetArgument(g));this.Push(a.mpadded.apply(a,e).With({mathbackground:b.getColor("named",f)}).With(b.padding()))},fColorBox:function(g){var h=this.GetArgument(g),f=this.GetArgument(g),e=this.InternalMath(this.GetArgument(g));this.Push(a.mpadded.apply(a,e).With({mathbackground:b.getColor("named",f),style:"border: "+b.config.border+" solid "+b.getColor("named",h)}).With(b.padding()))}});MathJax.Hub.Startup.signal.Post("TeX color Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/color.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/enclose.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/enclose.js deleted file mode 100755 index d95d5f768..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/enclose.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/TeX/enclose.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Extension["TeX/enclose"]={version:"2.7.1",ALLOWED:{arrow:1,color:1,mathcolor:1,background:1,mathbackground:1,padding:1,thickness:1}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml,b=MathJax.Extension["TeX/enclose"].ALLOWED;c.Definitions.Add({macros:{enclose:"Enclose"}},null,true);c.Parse.Augment({Enclose:function(g){var k=this.GetArgument(g),e=this.GetBrackets(g),j=this.ParseArg(g);var l={notation:k.replace(/,/g," ")};if(e){e=e.replace(/ /g,"").split(/,/);for(var h=0,d=e.length;h0){f=Math.min(3,e.scriptlevel+1)}else{f=(e.displaystyle?0:1)}var g=this.inherit;while(g&&g.type!=="math"){g=g.inherit}if(g){this.selection=f}this.choosing=false;return f},selected:function(){return this.data[this.choice()]},setTeXclass:function(e){return this.selected().setTeXclass(e)},isSpacelike:function(){return this.selected().isSpacelike()},isEmbellished:function(){return this.selected().isEmbellished()},Core:function(){return this.selected()},CoreMO:function(){return this.selected().CoreMO()},toHTML:function(e){e=this.HTMLcreateSpan(e);e.bbox=this.Core().toHTML(e).bbox;if(e.firstChild&&e.firstChild.style.marginLeft){e.style.marginLeft=e.firstChild.style.marginLeft;e.firstChild.style.marginLeft=""}return e},toSVG:function(){var e=this.Core().toSVG();this.SVGsaveData(e);return e},toCommonHTML:function(e){e=this.CHTMLcreateNode(e);this.CHTMLhandleStyle(e);this.CHTMLhandleColor(e);this.CHTMLaddChild(e,this.choice(),{});return e},toPreviewHTML:function(e){e=this.PHTMLcreateSpan(e);this.PHTMLhandleStyle(e);this.PHTMLhandleColor(e);this.PHTMLaddChild(e,this.choice(),{});return e}});MathJax.Hub.Startup.signal.Post("TeX mathchoice Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/mathchoice.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/mediawiki-texvc.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/mediawiki-texvc.js deleted file mode 100755 index fac8abf9b..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/mediawiki-texvc.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/TeX/mediawiki-texvc.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Extension["TeX/mediawiki-texvc"]={version:"2.7.1"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){MathJax.InputJax.TeX.Definitions.Add({macros:{AA:["Macro","\u00c5"],alef:["Macro","\\aleph"],alefsym:["Macro","\\aleph"],Alpha:["Macro","\\mathrm{A}"],and:["Macro","\\land"],ang:["Macro","\\angle"],Bbb:["Macro","\\mathbb"],Beta:["Macro","\\mathrm{B}"],bold:["Macro","\\mathbf"],bull:["Macro","\\bullet"],C:["Macro","\\mathbb{C}"],Chi:["Macro","\\mathrm{X}"],clubs:["Macro","\\clubsuit"],cnums:["Macro","\\mathbb{C}"],Complex:["Macro","\\mathbb{C}"],coppa:["Macro","\u03D9"],Coppa:["Macro","\u03D8"],Dagger:["Macro","\\ddagger"],Digamma:["Macro","\u03DC"],darr:["Macro","\\downarrow"],dArr:["Macro","\\Downarrow"],Darr:["Macro","\\Downarrow"],diamonds:["Macro","\\diamondsuit"],empty:["Macro","\\emptyset"],Epsilon:["Macro","\\mathrm{E}"],Eta:["Macro","\\mathrm{H}"],euro:["Macro","\u20AC"],exist:["Macro","\\exists"],geneuro:["Macro","\u20AC"],geneuronarrow:["Macro","\u20AC"],geneurowide:["Macro","\u20AC"],H:["Macro","\\mathbb{H}"],hAar:["Macro","\\Leftrightarrow"],harr:["Macro","\\leftrightarrow"],Harr:["Macro","\\Leftrightarrow"],hearts:["Macro","\\heartsuit"],image:["Macro","\\Im"],infin:["Macro","\\infty"],Iota:["Macro","\\mathrm{I}"],isin:["Macro","\\in"],Kappa:["Macro","\\mathrm{K}"],koppa:["Macro","\u03DF"],Koppa:["Macro","\u03DE"],lang:["Macro","\\langle"],larr:["Macro","\\leftarrow"],Larr:["Macro","\\Leftarrow"],lArr:["Macro","\\Leftarrow"],lrarr:["Macro","\\leftrightarrow"],Lrarr:["Macro","\\Leftrightarrow"],lrArr:["Macro","\\Leftrightarrow"],Mu:["Macro","\\mathrm{M}"],N:["Macro","\\mathbb{N}"],natnums:["Macro","\\mathbb{N}"],Nu:["Macro","\\mathrm{N}"],O:["Macro","\\emptyset"],officialeuro:["Macro","\u20AC"],Omicron:["Macro","\\mathrm{O}"],or:["Macro","\\lor"],P:["Macro","\u00B6"],pagecolor:["Macro","",1],part:["Macro","\\partial"],plusmn:["Macro","\\pm"],Q:["Macro","\\mathbb{Q}"],R:["Macro","\\mathbb{R}"],rang:["Macro","\\rangle"],rarr:["Macro","\\rightarrow"],Rarr:["Macro","\\Rightarrow"],rArr:["Macro","\\Rightarrow"],real:["Macro","\\Re"],reals:["Macro","\\mathbb{R}"],Reals:["Macro","\\mathbb{R}"],Rho:["Macro","\\mathrm{P}"],sdot:["Macro","\\cdot"],sampi:["Macro","\u03E1"],Sampi:["Macro","\u03E0"],sect:["Macro","\\S"],spades:["Macro","\\spadesuit"],stigma:["Macro","\u03DB"],Stigma:["Macro","\u03DA"],sub:["Macro","\\subset"],sube:["Macro","\\subseteq"],supe:["Macro","\\supseteq"],Tau:["Macro","\\mathrm{T}"],textvisiblespace:["Macro","\u2423"],thetasym:["Macro","\\vartheta"],uarr:["Macro","\\uparrow"],uArr:["Macro","\\Uparrow"],Uarr:["Macro","\\Uparrow"],varcoppa:["Macro","\u03D9"],varstigma:["Macro","\u03DB"],vline:["Macro","\\smash{\\large\\lvert}",0],weierp:["Macro","\\wp"],Z:["Macro","\\mathbb{Z}"],Zeta:["Macro","\\mathrm{Z}"]}})});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/mediawiki-texvc.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/mhchem.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/mhchem.js deleted file mode 100755 index 271785400..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/mhchem.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/TeX/mhchem.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -if(MathJax.Extension["TeX/mhchem"]){MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/mhchem.js")}else{MathJax.Extension["TeX/mhchem"]={version:"2.7.1",config:MathJax.Hub.CombineConfig("TeX.mhchem",{legacy:true})};if(!MathJax.Extension["TeX/mhchem"].config.legacy){if(!MathJax.Ajax.config.path.mhchem){MathJax.Ajax.config.path.mhchem=MathJax.Hub.config.root+"/extensions/TeX/mhchem3"}MathJax.Callback.Queue(["Require",MathJax.Ajax,"[mhchem]/mhchem.js"],["loadComplete",MathJax.Ajax,"[MathJax]/extensions/TeX/mhchem.js"])}else{MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX;var a=MathJax.Object.Subclass({string:"",i:0,tex:"",TEX:"",atom:false,sup:"",sub:"",presup:"",presub:"",Init:function(c){this.string=c},ParseTable:{"-":"Minus","+":"Plus","(":"Open",")":"Close","[":"Open","]":"Close","<":"Less","^":"Superscript",_:"Subscript","*":"Dot",".":"Dot","=":"Equal","#":"Pound","$":"Math","\\":"Macro"," ":"Space"},Arrows:{"->":"rightarrow","<-":"leftarrow","<->":"leftrightarrow","<=>":"rightleftharpoons","<=>>":"Rightleftharpoons","<<=>":"Leftrightharpoons","^":"uparrow",v:"downarrow"},Bonds:{"-":"-","=":"=","#":"\\equiv","~":"\\tripledash","~-":"\\begin{CEstack}{}\\tripledash\\\\-\\end{CEstack}","~=":"\\raise2mu{\\begin{CEstack}{}\\tripledash\\\\-\\\\-\\end{CEstack}}","~--":"\\raise2mu{\\begin{CEstack}{}\\tripledash\\\\-\\\\-\\end{CEstack}}","-~-":"\\raise2mu{\\begin{CEstack}{}-\\\\\\tripledash\\\\-\\end{CEstack}}","...":"{\\cdot}{\\cdot}{\\cdot}","....":"{\\cdot}{\\cdot}{\\cdot}{\\cdot}","->":"\\rightarrow","<-":"\\leftarrow","??":"\\text{??}"},Parse:function(){this.tex="";this.atom=false;while(this.i"){this.i+=2;this.AddArrow("->");return}else{this.tex+="{-}"}}this.i++},ParsePlus:function(d){if(this.atom){this.sup+=d}else{this.FinishAtom();this.tex+=d}this.i++},ParseDot:function(d){this.FinishAtom();this.tex+="\\cdot ";this.i++},ParseEqual:function(d){this.FinishAtom();this.tex+="{=}";this.i++},ParsePound:function(d){this.FinishAtom();this.tex+="{\\equiv}";this.i++},ParseOpen:function(e){this.FinishAtom();var d=this.Match(/^\([v^]\)/);if(d){this.tex+="{\\"+this.Arrows[d.charAt(1)]+"}"}else{this.tex+="{"+e;this.i++}},ParseClose:function(d){this.FinishAtom();this.atom=true;this.tex+=d+"}";this.i++},ParseLess:function(e){this.FinishAtom();var d=this.Match(/^(<->?|<=>>?|<<=>)/);if(!d){this.tex+=e;this.i++}else{this.AddArrow(d)}},ParseSuperscript:function(f){f=this.string.charAt(++this.i);if(f==="{"){this.i++;var d=this.Find("}");if(d==="-."){this.sup+="{-}{\\cdot}"}else{if(d){this.sup+=a(d).Parse().replace(/^\{-\}/,"-")}}}else{if(f===" "||f===""){this.tex+="{\\"+this.Arrows["^"]+"}";this.i++}else{var e=this.Match(/^(\d+|-\.)/);if(e){this.sup+=e}}}},ParseSubscript:function(e){if(this.string.charAt(++this.i)=="{"){this.i++;this.sub+=a(this.Find("}")).Parse().replace(/^\{-\}/,"-")}else{var d=this.Match(/^\d+/);if(d){this.sub+=d}}},ParseMath:function(d){this.FinishAtom();this.i++;this.tex+=this.Find(d)},ParseMacro:function(f){this.FinishAtom();this.i++;var d=this.Match(/^([a-z]+|.)/i)||" ";if(d==="sbond"){this.tex+="{-}"}else{if(d==="dbond"){this.tex+="{=}"}else{if(d==="tbond"){this.tex+="{\\equiv}"}else{if(d==="bond"){var e=(this.Match(/^\{.*?\}/)||"");e=e.substr(1,e.length-2);this.tex+="{"+(this.Bonds[e]||"\\text{??}")+"}"}else{if(d==="{"){this.tex+="{\\{"}else{if(d==="}"){this.tex+="\\}}";this.atom=true}else{this.tex+=f+d}}}}}}},ParseSpace:function(d){this.FinishAtom();this.i++},ParseOther:function(d){this.FinishAtom();this.tex+=d;this.i++},AddArrow:function(e){var g=this.Match(/^[CT]\[/);if(g){this.i--;g=g.charAt(0)}var d=this.GetBracket(g),f=this.GetBracket(g);e=this.Arrows[e];if(d||f){if(f){e+="["+f+"]"}e+="{"+d+"}";e="\\mathrel{\\x"+e+"}"}else{e="\\long"+e+" "}this.tex+=e},FinishAtom:function(c){if(this.sup||this.sub||this.presup||this.presub){if(!c&&!this.atom){if(this.tex===""&&!this.sup&&!this.sub){return}if(!this.presup&&!this.presub&&(this.tex===""||this.tex==="{"||(this.tex==="}"&&this.TEX.substr(-1)==="{"))){this.presup=this.sup,this.presub=this.sub;this.sub=this.sup="";this.TEX+=this.tex;this.tex="";return}}if(this.sub&&!this.sup){this.sup="\\Space{0pt}{0pt}{.2em}"}if((this.presup||this.presub)&&this.tex!=="{"){if(!this.presup&&!this.sup){this.presup="\\Space{0pt}{0pt}{.2em}"}this.tex="\\CEprescripts{"+(this.presub||"\\CEnone")+"}{"+(this.presup||"\\CEnone")+"}{"+(this.tex!=="}"?this.tex:"")+"}{"+(this.sub||"\\CEnone")+"}{"+(this.sup||"\\CEnone")+"}"+(this.tex==="}"?"}":"");this.presub=this.presup=""}else{if(this.sup){this.tex+="^{"+this.sup+"}"}if(this.sub){this.tex+="_{"+this.sub+"}"}}this.sup=this.sub=""}this.TEX+=this.tex;this.tex="";this.atom=false},GetBracket:function(e){if(this.string.charAt(this.i)!=="["){return""}this.i++;var d=this.Find("]");if(e==="C"){d="\\ce{"+d+"}"}else{if(e==="T"){if(!d.match(/^\{.*\}$/)){d="{"+d+"}"}d="\\text"+d}}return d},Match:function(d){var c=d.exec(this.string.substr(this.i));if(c){c=c[0];this.i+=c.length}return c},Find:function(h){var d=this.string.length,e=this.i,g=0;while(this.i0))return i;if(c.s||(n=f.t),!c.u)break n}}}if(u<=0)throw["MhchemBugU","mhchem bug U. Please report."]}}, -t.j= -function(n,r){return r?n?n.concat(r):[].concat(r):n},t.w={"~C":/^$/,"~A":/^./,"~B":/^./,"%m":/^\s/,"%l":/^\s(?=[A-Z\\$])/,"~@":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,"~M":/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"@z":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"~P":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"@%":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"~O":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,"~u":/^[0-9]+/,"@h":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"@g":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"%T": -function(n){var r=n.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\))?(?:([eE]|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return r&&r[0]?{h:r.splice(1),t:n.substr(r[0].length)}:null},aj: -function(n){var r=n.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return r&&r[0]?{h:r.splice(1),t:n.substr(r[0].length)}:null},"%n": -function(n){var r=this["@W"](n,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(r&&r.t.match(/^($|[\s,;\)\]\}])/))return r;var t=n.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return t?{h:t[0],t:n.substr(t[0].length)}:null},ae:/^_\{(\([a-z]{1,3}\))\}/,"@K":/^(?:\\\{|\[|\()/,"@c":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"@i":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"@P": -function(n){return this["@W"](n,"^{","","","}")},"@L": -function(n){return this["@W"](n,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"@O": -function(n){return this["@W"](n,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"@N": -function(n){return this["@W"](n,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"%U":/^\^(-?\d+)/,"'":/^'/,"@Y": -function(n){return this["@W"](n,"_{","","","}")},"@Q": -function(n){return this["@W"](n,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"@T": -function(n){return this["@W"](n,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"@S": -function(n){return this["@W"](n,"_",/^\\[a-zA-Z]+\{/,"}","")},"@R":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"%B": -function(n){return this["@W"](n,"","{","}","")},"%A": -function(n){return this["@W"](n,"{","","","}")},"@~": -function(n){return this["@W"](n,"","$","$","")},"@a": -function(n){return this["@W"](n,"${","","","}$")},"@@": -function(n){return this["@W"](n,"$","","","$")},"%D":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]\/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"@f":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,ai:/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,"~Q":/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,"~c":/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"@r": -function(n){return this["@W"](n,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,"@m":/^[CMT](?=\[)/,"@o": -function(n){return this["@W"](n,"[","","","]")},al:/^(&|@q|\\hline)\s*/,"@p":/^(?:\\[,\ ;:])/,"@G": -function(n){return this["@W"](n,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"@F": -function(n){return this["@W"](n,"",/^\\[a-zA-Z]+\{/,"}","")},"@t":/^\\ca(?:\s+|(?![a-zA-Z]))/,"@E":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,"~R":/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,"~S":/^[\/~|]/,"@y": -function(n){return this["@W"](n,"\\frac{","","","}","{","","","}")},"@A": -function(n){return this["@W"](n,"\\overset{","","","}","{","","","}")},"@C": -function(n){return this["@W"](n,"\\underset{","","","}","{","","","}")},"@B": -function(n){return this["@W"](n,"\\underbrace{","","","}_","{","","","}")},"@w": -function(n){return this["@W"](n,"\\color{","","","}")},"@x": -function(n){return this["@W"](n,"\\color{","","","}","{","","","}")},"@v": -function(n){return this["@W"](n,"\\color","\\","",/^(?=\{)/,"{","","","}")},"@u": -function(n){return this["@W"](n,"\\ce{","","","}")},"~Z":/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"a~":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"%d":/^[IVX]+/,"@j":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,"~%": -function(n){var r;if(r=n.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{h:r[0],t:n.substr(r[0].length)};var t=this["@W"](n,"","$","$","");return t&&(r=t.h.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{h:r[0],t:n.substr(r[0].length)}:null},"~a": -function(n){return this["~%"](n)},"@b":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,"~E": -function(n){if(n.match(/^\([a-z]+\)$/))return null;var r=n.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return r?{h:r[0],t:n.substr(r[0].length)}:null},"%z":/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*\*\s*/,"@W": -function(n,r,t,o,e,a,u,i,s,l){var h=this["@V"](n,r);if(null===h)return null;if(n=n.substr(h.length),h=this["@V"](n,t),null===h)return null;var p=this["@U"](n,h.length,o||e);if(null===p)return null;var c=n.substring(0,o?p.y:p.z);if(a||u){var f=this["@W"](n.substr(p.y),a,u,i,s);if(null===f)return null;var m=[c,f.h];return l&&(m=m.join("")),{h:m,t:f.t}}return{h:c,t:n.substr(p.y)}}, -"@V": -function(n,r){if("string"==typeof r)return 0!==n.indexOf(r)?null:r;var t=n.match(r);return t?t[0]:null},"@U": -function(n,r,t){for(var o=0;r":{"0|1|2|3":{k:"r=",n:"r"},"a|as":{k:["~T","r="],n:"r"},"*":{k:["~T","r="],n:"r"}}, -"+":{o:{k:"~t",n:"d"},"d|D":{k:"d=",n:"d"},q:{k:"d=",n:"qd"},"qd|qD":{k:"d=",n:"qd"},dq:{k:["~T","d="],n:"d"},3:{k:["%j","~T","~Q"],n:"0"}}, -"~%":{"0|2":{k:"a=",n:"a"}}, -ai:{"0|1|2|a|as":{k:["%j","~T",{l:"~Q",m:"\\pm"}],n:"0"}}, -"~Q":{"0|1|2|a|as":{k:["%j","~T","~Q"],n:"0"}}, -"-$":{"o|q":{k:["~g","~T"],n:"qd"},d:{k:"d=",n:"d"},D:{k:["~T",{l:"~f",m:"-"}],n:"3"},q:{k:"d=",n:"qd"},qd:{k:"d=",n:"qd"},"qD|dq":{k:["~T",{l:"~f",m:"-"}],n:"3"}}, -"-9":{"3|o":{k:["~T",{l:"~J",m:"~I"}],n:"3"}}, -"@f":{o:{k:{l:"@e",m:!0},n:"2"},d:{k:{l:"@d",m:!0},n:"2"}}, -"-":{"0|1|2":{k:[{l:"~T",m:1},"%E",{l:"~f",m:"-"}],n:"3"},3:{k:{l:"~f",m:"-"}}, -a:{k:["~T",{l:"~J",m:"~I"}],n:"2"},as:{k:[{l:"~T",m:2},{l:"~f",m:"-"}],n:"3"},b:{k:"b="},o:{k:"@e",n:"2"},q:{k:"@e",n:"2"},"d|qd|dq":{k:"@d",n:"2"},"D|qD|p":{k:["~T",{l:"~f",m:"-"}],n:"3"}}, -"~a":{"1|3":{k:"a=",n:"a"}}, -"~M":{"0|1|2|3|a|as|b|p|bp|o":{k:"o=",n:"o"},"q|dq":{k:["~T","o="],n:"o"},"d|D|qd|qD":{k:"~N",n:"o"}}, -"~u":{o:{k:"q=",n:"q"},"d|D":{k:"q=",n:"dq"},q:{k:["~T","o="],n:"o"},a:{k:"o=",n:"o"}}, -"%l":{"b|p|bp":{}}, -"%m":{a:{n:"as"},0:{k:"%j"},"1|2":{k:"%k"},"r|rt|rd|%i|%h":{k:"~T",n:"0"},"*":{k:["~T","%k"],n:"1"}}, -al:{"1|2":{k:["~T",{l:"~K",m:"al"}]}, -"*":{k:["~T",{l:"~K",m:"al"}],n:"0"}}, -"@o":{"r|rt":{k:"%a",n:"rd"},"rd|%i":{k:"%f",n:"%h"}}, -"@i":{"o|d|D|dq|qd|qD":{k:["~T",{l:"~f",m:"..."}],n:"3"},"*":{k:[{l:"~T",m:1},{l:"~J",m:"~z"}],n:"1"}}, -". |* ":{"*":{k:["~T",{l:"~J",m:"~~"}],n:"1"}}, -"%n":{"*":{k:["~T","%p"],n:"1"}}, -"@K":{"a|as|o":{k:["o=","~T","%G"],n:"2"},"0|1|2|3":{k:["o=","~T","%G"],n:"2"},"*":{k:["~T","o=","~T","%G"],n:"2"}}, -"@c":{"0|1|2|3|b|p|bp|o":{k:["o=","%H"],n:"o"},"a|as|d|D|q|qd|qD|dq":{k:["~T","o=","%H"],n:"o"}}, -", ":{"*":{k:["~T","~q"],n:"0"}}, -"^_":{"*":{}}, -"@P|@L":{"0|1|2|as":{k:"b=",n:"b"},p:{k:"b=",n:"bp"},"3|o":{k:"~t",n:"D"},q:{k:"d=",n:"qD"},"d|D|qd|qD|dq":{k:["~T","d="],n:"D"}}, -"^a|@O|@N|^\\x|'":{"0|1|2|as":{k:"b=",n:"b"},p:{k:"b=",n:"bp"},"3|o":{k:"~t",n:"d"},q:{k:"d=",n:"qd"},"d|qd|D|qD":{k:"d="},dq:{k:["~T","d="],n:"d"}}, -ae:{"d|D|q|qd|qD|dq":{k:["~T","q="],n:"q"}}, -"@Y|@Q|_9|@T|@S|@R":{"0|1|2|as":{k:"p=",n:"p"},b:{k:"p=",n:"bp"},"3|o":{k:"q=",n:"q"},"d|D":{k:"q=",n:"dq"},"q|qd|qD|dq":{k:["~T","q="],n:"q"}}, -"%D":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{k:[{l:"~T",m:2},"~f"],n:"3"}}, -"#":{"0|1|2|3|a|as|o":{k:[{l:"~T",m:2},{l:"~f",m:"#"}],n:"3"}}, -"{}":{"*":{k:{l:"~T",m:1},n:"1"}}, -"%B":{"0|1|2|3|a|as|b|p|bp":{k:"o=",n:"o"},"o|d|D|q|qd|qD|dq":{k:["~T","o="],n:"o"}}, -"@~":{a:{k:"a="},"0|1|2|3|as|b|p|bp|o":{k:"o=",n:"o"},"as|o":{k:"o="},"q|d|D|qd|qD|dq":{k:["~T","o="],n:"o"}}, -"@r":{"*":{k:[{l:"~T",m:2},"~f"],n:"3"}}, -"@y":{"*":{k:[{l:"~T",m:1},"~H"],n:"3"}}, -"@A":{"*":{k:[{l:"~T",m:2},"~X"],n:"3"}}, -"@C":{"*":{k:[{l:"~T",m:2},"%y"],n:"3"}}, -"@B":{"*":{k:[{l:"~T",m:2},"%w"],n:"3"}}, -"@x|@v":{"*":{k:[{l:"~T",m:2},"~k"],n:"3"}}, -"@w":{"*":{k:[{l:"~T",m:2},"~m"]}}, -"@u":{"*":{k:[{l:"~T",m:2},"ce"],n:"3"}}, -"@p":{"*":{k:[{l:"~T",m:1},"~s"],n:"1"}}, -"@G|@F|@E":{"0|1|2|3|a|as|b|p|bp|o|c0":{k:["o=","~T"],n:"3"},"*":{k:["~T","o=","~T"],n:"3"}}, -"~S":{"*":{k:[{l:"~T",m:1},"~s"],n:"3"}}, -"~B":{a:{k:"@Z",n:"o",s:!0},as:{k:[{l:"~T"},"%k"],n:"1",s:!0},"r|rt|rd|%i|%h":{k:["~T"],n:"0",s:!0},"*":{k:["~T","~s"],n:"3"}}}),g:{"~N": -function(n,r){var o;if(n.d.match(/^[0-9]+$/)){var e=n.d;n.d=void 0,o=this["~T"](n),n.b=e}else o=this["~T"](n);return t.g["o="](n,r),o},"~t": -function(n,r){n.d=r,n["%I"]="kv"},"~g": -function(n,r){if(n.yB){var o=t.j(o,this["~T"](n));return o=t.j(o,t.g["~f"](n,r,"-"))}n.d=r},"@e": -function(n,r,o){var e=o||this["@X"](n,r),a=t.j(null,this["~T"](n,r));return a=e?t.j(a,{l:"~I"}):t.j(a,t.g["~f"](n,r,"-"))},"@d": -function(n,r,o){var e,a=o||this["@X"](n,r);if(a)e=t.j(e,this["~T"](n,r)),e=t.j(e,{l:"~I"});else{var u=t.h("~u",n.d||"");u&&""===u.t?(e=t.j(null,t.g["d="](n,r)),e=t.j(e,this["~T"](n))):(e=t.j(e,this["~T"](n,r)),e=t.j(e,t.g["~f"](n,r,"-")))}return e},"@X": -function(n,r){var o=t.h("~R",n.o||""),e=t.h("~O",n.o||""),a=t.h("~P",n.o||""),u=t.h("@%",n.o||""),i="-"===r&&(o&&""===o.t||e||a||u);return!i||n.a||n.b||n.p||n.d||n.q||o||!a||(n.o="$"+n.o+"$"),i},"@Z": -function(n,r){n.o=n.a,n.a=void 0},"%k": -function(n,r){n.sb=!0},"%j": -function(n,r){n.sb=!1},"%E": -function(n,r){n.yB=!0},"%F": -function(n,r){n.yB=!1},"%G": -function(n,r){n.pL++},"%H": -function(n,r){n.pL--},"%p": -function(n,r){return r=t.go(r,"o"),{l:"%p",p1:r}}, -"~q": -function(n,r){var t=r.replace(/\s*$/,""),o=t!==r;return o&&0===n.pL?{l:"~n",p1:t}:{l:"~o",p1:t}}, -"~T": -function(n,r,o){var e;n.r?("M"===n.rdt?n.rd=t.go(n.rd,"%r"):"T"===n.rdt?n.rd=[{l:"%s",p1:n.rd}]:n.rd=t.go(n.rd),"M"===n.rqt?n.rq=t.go(n.rq,"%r"):"T"===n.rqt?n.rq=[{l:"%s",p1:n.rq}]:n.rq=t.go(n.rq),e={l:"~b",r:n.r,rd:n.rd,rq:n.rq}):(e=[],n.a||n.b||n.p||n.o||n.q||n.d||o?(n.sb&&e.push({l:"~D"}),n.o||n.q||n.d||n.b||n.p||2===o?n.o||n.q||n.d||!n.b&&!n.p?n.o&&"kv"===n["%I"]&&t.h("a~",n.d||"")?n["%I"]="~Y":n.o&&"kv"===n["%I"]&&!n.q&&(n["%I"]=void 0):(n.o=n.a,n.d=n.b,n.q=n.p,n.a=n.b=n.p=void 0):(n.o=n.a,n.a=void 0),n.a=t.go(n.a,"a"),n.b=t.go(n.b,"bd"),n.p=t.go(n.p,"pq"),n.o=t.go(n.o,"o"),"~Y"===n["%I"]?n.d=t.go(n.d,"~Y"):n.d=t.go(n.d,"bd"),n.q=t.go(n.q,"pq"),e.push({l:"~h",a:n.a,b:n.b,p:n.p,o:n.o,q:n.q,d:n.d,"%I":n["%I"]})):e=null);for(var a in n)"pL"!==a&&"yB"!==a&&delete n[a];return e},"a%": -function(n,r){var o=["{"];return o=t.j(o,t.go(r,"~Y")),o=o.concat(["}"])},"~H": -function(n,r){return{l:"~G",p1:t.go(r[0]),p2:t.go(r[1])}}, -"~X": -function(n,r){return{l:"~W",p1:t.go(r[0]),p2:t.go(r[1])}}, -"%y": -function(n,r){return{l:"%x",p1:t.go(r[0]),p2:t.go(r[1])}}, -"%w": -function(n,r){return{l:"%v",p1:t.go(r[0]),p2:t.go(r[1])}}, -"~k": -function(n,r){return{l:"~j",F:r[0],G:t.go(r[1])}}, -"r=": -function(n,r){n.r=(n.r||"")+r},"%b": -function(n,r){n.rdt=(n.rdt||"")+r},"%a": -function(n,r){n.rd=(n.rd||"")+r},"%g": -function(n,r){n.rqt=(n.rqt||"")+r},"%f": -function(n,r){n.rq=(n.rq||"")+r},"~Q": -function(n,r,t){return{l:"~Q",A:t||r}}}}, -t.c.a={e:t.C({"~C":{"*":{}}, -"@j":{0:{k:"@k"}}, -"~A":{0:{n:"1",s:!0}}, -"@@":{"*":{k:"%q",n:"1"}}, -",":{"*":{k:{l:"~J",m:"~r"}}}, -"~B":{"*":{k:"~s"}}}),g:{}}, -t.c.o={e:t.C({"~C":{"*":{}}, -"@j":{0:{k:"@k"}}, -"~A":{0:{n:"1",s:!0}}, -"~M":{"*":{k:"rm"}}, -"@t":{"*":{k:{l:"~J",m:"~i"}}}, -"@G|@F|@E":{"*":{k:"~s"}}, -"@a|@@":{"*":{k:"%r"}}, -"%A":{"*":{k:"%C"}}, -"~B":{"*":{k:"~s"}}}),g:{}}, -t.c["%s"]={e:t.C({"~C":{"*":{k:"~T"}}, -"%B":{"*":{k:"%t"}}, -"@a|@@":{"*":{k:"%r"}}, -"@z":{"*":{k:["~T","rm"]}}, -"@p|@G|@F|@E":{"*":{k:["~T","~s"]}}, -"~A":{"*":{k:"%t"}}}),g:{"~T": -function(n,r){if(n.text){var t={l:"%s",p1:n.text};for(var o in n)delete n[o];return t}return null}}}, -t.c.pq={e:t.C({"~C":{"*":{}}, -"%n":{"*":{k:"%p"}}, -i$:{0:{n:"!f",s:!0}}, -"@b":{0:{k:"rm",n:"0"}}, -"~E":{0:{n:"f",s:!0}}, -"@j":{0:{k:"@k"}}, -"~A":{0:{n:"!f",s:!0}}, -"@a|@@":{"*":{k:"%r"}}, -"%A":{"*":{k:"%s"}}, -"~@":{f:{k:"%r"}}, -"~M":{"*":{k:"rm"}}, -"@h":{"*":{k:"@l"}}, -",":{"*":{k:{l:"~K",m:"~p"}}}, -"@x|@v":{"*":{k:"~k"}}, -"@w":{"*":{k:"~m"}}, -"@u":{"*":{k:"ce"}}, -"@p|@G|@F|@E":{"*":{k:"~s"}}, -"~B":{"*":{k:"~s"}}}),g:{"%p": -function(n,r){return r=t.go(r,"o"),{l:"%K",p1:r}}, -"~k": -function(n,r){return{l:"~j",F:r[0],G:t.go(r[1],"pq")}}}}, -t.c.bd={e:t.C({"~C":{"*":{}}, -x$:{0:{n:"!f",s:!0}}, -"~E":{0:{n:"f",s:!0}}, -"~A":{0:{n:"!f",s:!0}}, -"@g":{"*":{k:"@l"}}, -".":{"*":{k:{l:"~J",m:"~y"}}}, -"~@":{f:{k:"%r"}}, -x:{"*":{k:{l:"~J",m:"@n"}}}, -"~M":{"*":{k:"rm"}}, -"'":{"*":{k:{l:"~J",m:"%%"}}}, -"@a|@@":{"*":{k:"%r"}}, -"%A":{"*":{k:"%s"}}, -"@x|@v":{"*":{k:"~k"}}, -"@w":{"*":{k:"~m"}}, -"@u":{"*":{k:"ce"}}, -"@p|@G|@F|@E":{"*":{k:"~s"}}, -"~B":{"*":{k:"~s"}}}),g:{"~k": -function(n,r){return{l:"~j",F:r[0],G:t.go(r[1],"bd")}}}}, -t.c["~Y"]={e:t.C({"~C":{"*":{}}, -"%d":{"*":{k:"%e"}}, -"@a|@@":{"*":{k:"%r"}}, -"~A":{"*":{k:"~s"}}}),g:{"%e": -function(n,r){return{l:"%d",p1:r}}}}, -t.c["%r"]={e:t.C({"~C":{"*":{k:"~T"}}, -"@u":{"*":{k:["~T","ce"]}}, -"%B|@p|@G|@F|@E":{"*":{k:"o="}}, -"~A":{"*":{k:"o="}}}),g:{"~T": -function(n,r){if(n.o){var t={l:"%r",p1:n.o};for(var o in n)delete n[o];return t}return null}}}, -t.c["%q"]={e:t.C({"~C":{"*":{k:"~T"}}, -"@u":{"*":{k:["~T","ce"]}}, -"%B|@p|@G|@F|@E":{"*":{k:"o="}}, -"-|+":{"*":{k:"%u"}}, -"~A":{"*":{k:"o="}}}),g:{"%u": -function(n,r){n.o=(n.o||"")+"{"+r+"}"},"~T": -function(n,r){if(n.o){var t={l:"%r",p1:n.o};for(var o in n)delete n[o];return t}return null}}}, -t.c["@l"]={e:t.C({"~C":{"*":{}}, -",":{"*":{k:"~q"}}, -"~A":{"*":{k:"~s"}}}),g:{"~q": -function(n,r){return{l:"~r"}}}}, -t.c.pu={e:t.C({"~C":{"*":{k:"~T"}}, -"@K|@c":{"0|a":{k:"~s"}}, -aj:{0:{k:"ak",n:"a"}}, -"%T":{0:{k:"%Z",n:"a"}}, -"%m":{"0|a":{}}, -ai:{"0|a":{k:{l:"~Q",m:"\\pm"},n:"0"}}, -"~Q":{"0|a":{k:"~s",n:"0"}}, -"//":{d:{k:"o=",n:"/"}}, -"/":{d:{k:"o=",n:"/"}}, -"%B|~A":{"0|d":{k:"d=",n:"d"},a:{k:["%m","d="],n:"d"},"/|q":{k:"q=",n:"q"}}}),g:{"%Z": -function(n,r){var o=[];return"+-"===r[0]||"+/-"===r[0]?o.push("\\pm "):r[0]&&o.push(r[0]),r[1]&&(o=t.j(o,t.go(r[1],"%X")),r[2]&&(r[2].match(/[,.]/)?o=t.j(o,t.go(r[2],"%X")):o.push(r[2])),r[3]=r[4]||r[3],r[3]&&(r[3]=r[3].trim(),"e"===r[3]||"*"===r[3].substr(0,1)?o.push({l:"%N"}):o.push({l:"%P"}))),r[3]&&o.push("10^{"+r[5]+"}"),o},ak: -function(n,r){var o=[];return"+-"===r[0]||"+/-"===r[0]?o.push("\\pm "):r[0]&&o.push(r[0]),o=t.j(o,t.go(r[1],"%X")),o.push("^{"+r[2]+"}"),o},"~Q": -function(n,r,t){return{l:"~Q",A:t||r}}, -"%m": -function(n,r){return{l:"%Q"}}, -"~T": -function(n,r){var o,e=t.h("%A",n.d||"");e&&""===e.t&&(n.d=e.h);var a=t.h("%A",n.q||"");a&&""===a.t&&(n.q=a.h),n.d&&(n.d=n.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),n.d=n.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),n.q?(n.d=t.go(n.d,"pu"),n.q=n.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),n.q=n.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F"),n.q=t.go(n.q,"pu"),"//"===n.o?o={l:"%S",p1:n.d,p2:n.q}:(o=n.d,o=n.d.length>1||n.q.length>1?t.j(o,{l:"%V"}):t.j(o,{l:"/"}),o=t.j(o,n.q))):o=t.go(n.d,"%R");for(var u in n)delete n[u];return o}}}, -t.c["%R"]={e:t.C({"~C":{"*":{k:"~T"}}, -"*":{"*":{k:["~T","%N"],n:"0"}}, -"@E":{"*":{k:"%c"},n:"1"},"%m":{"*":{k:["~T","%m"],n:"0"}}, -"@P|%U":{1:{k:"%U"}}, -"@h":{0:{k:"%c",n:"0"},1:{k:"%U",n:"0"}}, -"%B|~A":{"*":{k:"%c",n:"1"}}}),g:{"%N": -function(n,r){return{l:"%O"}}, -"%U": -function(n,r){n.rm+="^{"+r+"}"},"%m": -function(n,r){return{l:"ah"}}, -"~T": -function(n,r){var o;if(n.rm){var e=t.h("%A",n.rm||"");o=e&&""===e.t?t.go(e.h,"pu"):{l:"rm",p1:n.rm}}for(var a in n)delete n[a];return o}}}, -t.c["%X"]={e:t.C({"~C":{0:{k:"~U"},o:{k:"~V"}}, -",":{0:{k:["~U","~q"],n:"o"}}, -".":{0:{k:["~U","~s"],n:"o"}}, -"~A":{"*":{k:"%t"}}}),g:{"~q": -function(n,r){return{l:"~r"}}, -"~U": -function(n,r){var t=[];if(n.text.length>4){var o=n.text.length%3;0===o&&(o=3);for(var e=n.text.length-3;e>0;e-=3)t.push(n.text.substr(e,3)),t.push({l:"%W"});t.push(n.text.substr(0,o)),t.reverse()}else t.push(n.text);for(var a in n)delete n[a];return t},"~V": -function(n,r){var t=[];if(n.text.length>4){for(var o=n.text.length-3,e=0;e"===n.r||"<=>>"===n.r||"<<=>"===n.r||"<-->"===n.r?(r="\\long"+r,n.rd&&(r="\\overset{"+n.rd+"}{"+r+"}"),n.rq&&(r="\\underset{\\lower7mu{"+n.rq+"}}{"+r+"}"),r=" {}\\mathrel{"+r+"}{} "):(n.rq&&(r+="[{"+n.rq+"}]"),r+="{"+n.rd+"}",r=" {}\\mathrel{\\x"+r+"}{} "):r=" {}\\mathrel{\\long"+r+"}{} ",r},"~Q": -function(n){return o.K[n.A]}}, -J:{"->":"rightarrow","\u2192":"rightarrow","\u27f6":"rightarrow","<-":"leftarrow","<->":"leftrightarrow","<-->":"leftrightarrows","<=>":"rightleftharpoons","\u21cc":"rightleftharpoons","<=>>":"Rightleftharpoons","<<=>":"Leftrightharpoons"},I:{"-":"{-}",1:"{-}","=":"{=}",2:"{=}","#":"{\\equiv}",3:"{\\equiv}","~":"{\\tripledash}","~-":"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}","~=":"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}","~--":"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}","-~-":"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}","...":"{{\\cdot}{\\cdot}{\\cdot}}","....":"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}","->":"{\\rightarrow}","<-":"{\\leftarrow}","<":"{<}",">":"{>}"},L:{"%m":" ","~D":"~","%Q":"~",ah:"\\mkern3mu ","%W":"\\mkern2mu ","~r":"{,}","~n":"{{0}}\\mkern6mu ","~o":"{{0}}\\mkern3mu ","~p":"{{0}}\\mkern1mu ","~I":"\\text{-}","~~":"\\,{\\cdot}\\,","~y":"\\mkern1mu \\bullet\\mkern1mu ","@n":"{\\times}","%%":"\\prime ","%N":"\\cdot ","%O":"\\mkern1mu{\\cdot}\\mkern1mu ","%P":"\\times ","~i":"{\\sim}","^":"uparrow",v:"downarrow","~z":"\\ldots ","/":"/","%V":"\\,/\\,",al:"{0} "},K:{"+":" {}+{} ","-":" {}-{} ","=":" {}={} ","<":" {}<{} ",">":" {}>{} ","<<":" {}\\ll{} ",">>":" {}\\gg{} ","\\pm":" {}\\pm{} ","\\approx":" {}\\approx{} ","$\\approx$":" {}\\approx{} ",v:" \\downarrow{} ","(v)":" \\downarrow{} ","^":" \\uparrow{} ","(^)":" \\uparrow{} "},go: -function(n,r){if(!n)return n;for(var t="",o=!1,e=0;e0){return[h,g]}else{return h}}}this.i++}b.Error(["MissingReplacementString","Missing replacement string for definition of %1",f])},MacroWithTemplate:function(d,g,h,f){if(h){var c=[];this.GetNext();if(f[0]&&!this.MatchParam(f[0])){b.Error(["MismatchUseDef","Use of %1 doesn't match its definition",d])}for(var e=0;eb.config.MAXMACROS){b.Error(["MaxMacroSub1","MathJax maximum macro substitution count exceeded; is there a recursive macro call?"])}},BeginEnv:function(g,k,c,j,h){if(j){var e=[];if(h!=null){var d=this.GetBrackets("\\begin{"+name+"}");e.push(d==null?h:d)}for(var f=e.length;f1){var n=(q.h+q.d)/2,j=h.TeX.x_height/2;p.parentNode.style.verticalAlign=h.Em(q.d+(j-n));q.h=j+n;q.d=n-j}p.bbox={h:q.h,d:q.d,w:k,lw:0,rw:k};return p}})});b.Register.StartupHook("SVG Jax Config",function(){b.Config({SVG:{styles:{".MathJax_SVG .noError":b.Insert({"vertical-align":(b.Browser.isMSIE&&a.multiLine?"-2px":"")},a.style)}}})});b.Register.StartupHook("SVG Jax Ready",function(){var g=MathJax.ElementJax.mml;var f=g.math.prototype.toSVG,h=g.merror.prototype.toSVG;g.math.Augment({toSVG:function(i,j){var k=this.data[0];if(k&&k.data[0]&&k.data[0].isError){i=k.data[0].toSVG(i)}else{i=f.apply(this,arguments)}return i}});g.merror.Augment({toSVG:function(n){if(!this.isError||this.Parent().type!=="math"){return h.apply(this,arguments)}n=e.addElement(n,"span",{className:"noError",isMathJax:true});if(this.multiLine){n.style.display="inline-block"}var o=this.data[0].data[0].data.join("").split(/\n/);for(var l=0,j=o.length;l1){var k=n.offsetHeight/2;n.style.verticalAlign=(-k+(k/j))+"px"}return n}})});b.Register.StartupHook("NativeMML Jax Ready",function(){var h=MathJax.ElementJax.mml;var g=MathJax.Extension["TeX/noErrors"].config;var f=h.math.prototype.toNativeMML,i=h.merror.prototype.toNativeMML;h.math.Augment({toNativeMML:function(j){var k=this.data[0];if(k&&k.data[0]&&k.data[0].isError){j=k.data[0].toNativeMML(j)}else{j=f.apply(this,arguments)}return j}});h.merror.Augment({toNativeMML:function(n){if(!this.isError){return i.apply(this,arguments)}n=n.appendChild(document.createElement("span"));var o=this.data[0].data[0].data.join("").split(/\n/);for(var l=0,k=o.length;l1){n.style.verticalAlign="middle"}}for(var p in g.style){if(g.style.hasOwnProperty(p)){var j=p.replace(/-./g,function(m){return m.charAt(1).toUpperCase()});n.style[j]=g.style[p]}}return n}})});b.Register.StartupHook("PreviewHTML Jax Config",function(){b.Config({PreviewHTML:{styles:{".MathJax_PHTML .noError":b.Insert({"vertical-align":(b.Browser.isMSIE&&a.multiLine?"-2px":"")},a.style)}}})});b.Register.StartupHook("PreviewHTML Jax Ready",function(){var f=MathJax.ElementJax.mml;var h=MathJax.HTML;var g=f.merror.prototype.toPreviewHTML;f.merror.Augment({toPreviewHTML:function(l){if(!this.isError){return g.apply(this,arguments)}l=this.PHTMLcreateSpan(l);l.className="noError";if(this.multiLine){l.style.display="inline-block"}var n=this.data[0].data[0].data.join("").split(/\n/);for(var k=0,j=n.length;k1){var l=1.2*j/2;o.h=l+0.25;o.d=l-0.25;n.style.verticalAlign=g.Em(0.45-l)}else{o.h=1;o.d=0.2+2/g.em}return n}})});b.Startup.signal.Post("TeX noErrors Ready")})(MathJax.Hub,MathJax.HTML);MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/noErrors.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/noUndefined.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/noUndefined.js deleted file mode 100755 index 492f71b7d..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/noUndefined.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/TeX/noUndefined.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Extension["TeX/noUndefined"]={version:"2.7.1",config:MathJax.Hub.CombineConfig("TeX.noUndefined",{disabled:false,attributes:{mathcolor:"red"}})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.Extension["TeX/noUndefined"].config;var a=MathJax.ElementJax.mml;var c=MathJax.InputJax.TeX.Parse.prototype.csUndefined;MathJax.InputJax.TeX.Parse.Augment({csUndefined:function(d){if(b.disabled){return c.apply(this,arguments)}MathJax.Hub.signal.Post(["TeX Jax - undefined control sequence",d]);this.Push(a.mtext(d).With(b.attributes))}});MathJax.Hub.Startup.signal.Post("TeX noUndefined Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/noUndefined.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/unicode.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/unicode.js deleted file mode 100755 index 4dbd4f5bb..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/unicode.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/TeX/unicode.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Extension["TeX/unicode"]={version:"2.7.1",unicode:{},config:MathJax.Hub.CombineConfig("TeX.unicode",{fonts:"STIXGeneral,'Arial Unicode MS'"})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX;var a=MathJax.ElementJax.mml;var b=MathJax.Extension["TeX/unicode"].unicode;c.Definitions.Add({macros:{unicode:"Unicode"}},null,true);c.Parse.Augment({Unicode:function(e){var i=this.GetBrackets(e),d;if(i){if(i.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)){i=i.replace(/ /g,"").split(/,/);d=this.GetBrackets(e)}else{d=i;i=null}}var j=this.trimSpaces(this.GetArgument(e)),h=parseInt(j.match(/^x/)?"0"+j:j);if(!b[h]){b[h]=[800,200,d,h]}else{if(!d){d=b[h][2]}}if(i){b[h][0]=Math.floor(i[0]*1000);b[h][1]=Math.floor(i[1]*1000)}var f=this.stack.env.font,g={};if(d){b[h][2]=g.fontfamily=d.replace(/"/g,"'");if(f){if(f.match(/bold/)){g.fontweight="bold"}if(f.match(/italic|-mathit/)){g.fontstyle="italic"}}}else{if(f){g.mathvariant=f}}g.unicode=[].concat(b[h]);this.Push(a.mtext(a.entity("#"+j)).With(g))}});MathJax.Hub.Startup.signal.Post("TeX unicode Ready")});MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var a=MathJax.ElementJax.mml;var c=MathJax.Extension["TeX/unicode"].config.fonts;var b=a.mbase.prototype.HTMLgetVariant;a.mbase.Augment({HTMLgetVariant:function(){var d=b.apply(this,arguments);if(d.unicode){delete d.unicode;delete d.FONTS}if(!this.unicode){return d}d.unicode=true;if(!d.defaultFont){d=MathJax.Hub.Insert({},d);d.defaultFont={family:c}}var e=this.unicode[2];if(e){e+=","+c}else{e=c}d.defaultFont[this.unicode[3]]=[this.unicode[0],this.unicode[1],500,0,500,{isUnknown:true,isUnicode:true,font:e}];return d}})});MathJax.Hub.Register.StartupHook("SVG Jax Ready",function(){var a=MathJax.ElementJax.mml;var c=MathJax.Extension["TeX/unicode"].config.fonts;var b=a.mbase.prototype.SVGgetVariant;a.mbase.Augment({SVGgetVariant:function(){var d=b.call(this);if(d.unicode){delete d.unicode;delete d.FONTS}if(!this.unicode){return d}d.unicode=true;if(!d.forceFamily){d=MathJax.Hub.Insert({},d)}d.defaultFamily=c;d.noRemap=true;d.h=this.unicode[0];d.d=this.unicode[1];return d}})});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/unicode.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/verb.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/verb.js deleted file mode 100755 index 9e4a72470..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/TeX/verb.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/TeX/verb.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Extension["TeX/verb"]={version:"2.7.1"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var a=MathJax.ElementJax.mml;var c=MathJax.InputJax.TeX;var b=c.Definitions;b.Add({macros:{verb:"Verb"}},null,true);c.Parse.Augment({Verb:function(d){var g=this.GetNext();var f=++this.i;if(g==""){c.Error(["MissingArgFor","Missing argument for %1",d])}while(this.i=0;a--){if(String(c[a].className).match(/(^| )math( |$)/)){this.ConvertMath(c[a],"")}}var d=b.getElementsByTagName("div");for(a=d.length-1;a>=0;a--){if(String(d[a].className).match(/(^| )math( |$)/)){this.ConvertMath(d[a],"; mode=display")}}},ConvertMath:function(c,d){if(c.getElementsByTagName("script").length===0){var b=c.parentNode,a=this.createMathTag(d,c.innerHTML);if(c.nextSibling){b.insertBefore(a,c.nextSibling)}else{b.appendChild(a)}if(this.config.preview!=="none"){this.createPreview(c)}b.removeChild(c)}},createPreview:function(b){var a=MathJax.Hub.config.preRemoveClass;var c=this.config.preview;if(c==="none"){return}if((b.previousSibling||{}).className===a){return}if(c==="TeX"){c=[this.filterPreview(b.innerHTML)]}if(c){c=MathJax.HTML.Element("span",{className:a},c);b.parentNode.insertBefore(c,b)}},createMathTag:function(c,b){b=b.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");var a=document.createElement("script");a.type="math/tex"+c;MathJax.HTML.setScript(a,b);return a},filterPreview:function(a){return a}};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.jsMath2jax],8);MathJax.Ajax.loadComplete("[MathJax]/extensions/jsMath2jax.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/mhchem.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/mhchem.js deleted file mode 100644 index 55d1af1f0..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/mhchem.js +++ /dev/null @@ -1,332 +0,0 @@ -/************************************************************* - * - * MathJax/extensions/TeX/mhchem.js - * - * Implements the \ce command for handling chemical formulas - * from the mhchem LaTeX package. - * - * --------------------------------------------------------------------- - * - * Copyright (c) 2011-2015 The MathJax Consortium - * Copyright (c) 2015-2017 Martin Hensel - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ -MathJax.Extension["TeX/mhchem"]={version:"3.2.0"},MathJax.Hub.Register.StartupHook("TeX Jax Ready", -function(){var n=MathJax.InputJax.TeX,r=MathJax.Object.Subclass({string:"",Init: -function(n){this.string=n},Parse: -function(r){try{return o.go(t.go(this.string,r))}catch(r){n.Error(r)}}}),t={};t.go= -function(n,r){if(!n)return n;void 0===r&&(r="ce");var o="0",e={};e.pL=0,n=n.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),n=n.replace(/[\u2026]/g,"...");for(var a,u,i=[];;){a!==n?(u=10,a=n):u--;var s=t.c[r],l=s.e.length;n:for(var h=0;h0))return i;if(c.s||(n=f.t),!c.u)break n}}}if(u<=0)throw["MhchemBugU","mhchem bug U. Please report."]}}, -t.j= -function(n,r){return r?n?n.concat(r):[].concat(r):n},t.w={"~C":/^$/,"~A":/^./,"~B":/^./,"%m":/^\s/,"%l":/^\s(?=[A-Z\\$])/,"~@":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,"~M":/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"@z":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"~P":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"@%":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"~O":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,"~u":/^[0-9]+/,"@h":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"@g":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"%T": -function(n){var r=n.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\))?(?:([eE]|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return r&&r[0]?{h:r.splice(1),t:n.substr(r[0].length)}:null},aj: -function(n){var r=n.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return r&&r[0]?{h:r.splice(1),t:n.substr(r[0].length)}:null},"%n": -function(n){var r=this["@W"](n,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(r&&r.t.match(/^($|[\s,;\)\]\}])/))return r;var t=n.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return t?{h:t[0],t:n.substr(t[0].length)}:null},ae:/^_\{(\([a-z]{1,3}\))\}/,"@K":/^(?:\\\{|\[|\()/,"@c":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"@i":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"@P": -function(n){return this["@W"](n,"^{","","","}")},"@L": -function(n){return this["@W"](n,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"@O": -function(n){return this["@W"](n,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"@N": -function(n){return this["@W"](n,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"%U":/^\^(-?\d+)/,"'":/^'/,"@Y": -function(n){return this["@W"](n,"_{","","","}")},"@Q": -function(n){return this["@W"](n,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"@T": -function(n){return this["@W"](n,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"@S": -function(n){return this["@W"](n,"_",/^\\[a-zA-Z]+\{/,"}","")},"@R":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"%B": -function(n){return this["@W"](n,"","{","}","")},"%A": -function(n){return this["@W"](n,"{","","","}")},"@~": -function(n){return this["@W"](n,"","$","$","")},"@a": -function(n){return this["@W"](n,"${","","","}$")},"@@": -function(n){return this["@W"](n,"$","","","$")},"%D":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]\/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"@f":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,ai:/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,"~Q":/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,"~c":/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"@r": -function(n){return this["@W"](n,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,"@m":/^[CMT](?=\[)/,"@o": -function(n){return this["@W"](n,"[","","","]")},al:/^(&|@q|\\hline)\s*/,"@p":/^(?:\\[,\ ;:])/,"@G": -function(n){return this["@W"](n,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"@F": -function(n){return this["@W"](n,"",/^\\[a-zA-Z]+\{/,"}","")},"@t":/^\\ca(?:\s+|(?![a-zA-Z]))/,"@E":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,"~R":/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,"~S":/^[\/~|]/,"@y": -function(n){return this["@W"](n,"\\frac{","","","}","{","","","}")},"@A": -function(n){return this["@W"](n,"\\overset{","","","}","{","","","}")},"@C": -function(n){return this["@W"](n,"\\underset{","","","}","{","","","}")},"@B": -function(n){return this["@W"](n,"\\underbrace{","","","}_","{","","","}")},"@w": -function(n){return this["@W"](n,"\\color{","","","}")},"@x": -function(n){return this["@W"](n,"\\color{","","","}","{","","","}")},"@v": -function(n){return this["@W"](n,"\\color","\\","",/^(?=\{)/,"{","","","}")},"@u": -function(n){return this["@W"](n,"\\ce{","","","}")},"~Z":/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"a~":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"%d":/^[IVX]+/,"@j":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,"~%": -function(n){var r;if(r=n.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{h:r[0],t:n.substr(r[0].length)};var t=this["@W"](n,"","$","$","");return t&&(r=t.h.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{h:r[0],t:n.substr(r[0].length)}:null},"~a": -function(n){return this["~%"](n)},"@b":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,"~E": -function(n){if(n.match(/^\([a-z]+\)$/))return null;var r=n.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return r?{h:r[0],t:n.substr(r[0].length)}:null},"%z":/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*\*\s*/,"@W": -function(n,r,t,o,e,a,u,i,s,l){var h=this["@V"](n,r);if(null===h)return null;if(n=n.substr(h.length),h=this["@V"](n,t),null===h)return null;var p=this["@U"](n,h.length,o||e);if(null===p)return null;var c=n.substring(0,o?p.y:p.z);if(a||u){var f=this["@W"](n.substr(p.y),a,u,i,s);if(null===f)return null;var m=[c,f.h];return l&&(m=m.join("")),{h:m,t:f.t}}return{h:c,t:n.substr(p.y)}}, -"@V": -function(n,r){if("string"==typeof r)return 0!==n.indexOf(r)?null:r;var t=n.match(r);return t?t[0]:null},"@U": -function(n,r,t){for(var o=0;r":{"0|1|2|3":{k:"r=",n:"r"},"a|as":{k:["~T","r="],n:"r"},"*":{k:["~T","r="],n:"r"}}, -"+":{o:{k:"~t",n:"d"},"d|D":{k:"d=",n:"d"},q:{k:"d=",n:"qd"},"qd|qD":{k:"d=",n:"qd"},dq:{k:["~T","d="],n:"d"},3:{k:["%j","~T","~Q"],n:"0"}}, -"~%":{"0|2":{k:"a=",n:"a"}}, -ai:{"0|1|2|a|as":{k:["%j","~T",{l:"~Q",m:"\\pm"}],n:"0"}}, -"~Q":{"0|1|2|a|as":{k:["%j","~T","~Q"],n:"0"}}, -"-$":{"o|q":{k:["~g","~T"],n:"qd"},d:{k:"d=",n:"d"},D:{k:["~T",{l:"~f",m:"-"}],n:"3"},q:{k:"d=",n:"qd"},qd:{k:"d=",n:"qd"},"qD|dq":{k:["~T",{l:"~f",m:"-"}],n:"3"}}, -"-9":{"3|o":{k:["~T",{l:"~J",m:"~I"}],n:"3"}}, -"@f":{o:{k:{l:"@e",m:!0},n:"2"},d:{k:{l:"@d",m:!0},n:"2"}}, -"-":{"0|1|2":{k:[{l:"~T",m:1},"%E",{l:"~f",m:"-"}],n:"3"},3:{k:{l:"~f",m:"-"}}, -a:{k:["~T",{l:"~J",m:"~I"}],n:"2"},as:{k:[{l:"~T",m:2},{l:"~f",m:"-"}],n:"3"},b:{k:"b="},o:{k:"@e",n:"2"},q:{k:"@e",n:"2"},"d|qd|dq":{k:"@d",n:"2"},"D|qD|p":{k:["~T",{l:"~f",m:"-"}],n:"3"}}, -"~a":{"1|3":{k:"a=",n:"a"}}, -"~M":{"0|1|2|3|a|as|b|p|bp|o":{k:"o=",n:"o"},"q|dq":{k:["~T","o="],n:"o"},"d|D|qd|qD":{k:"~N",n:"o"}}, -"~u":{o:{k:"q=",n:"q"},"d|D":{k:"q=",n:"dq"},q:{k:["~T","o="],n:"o"},a:{k:"o=",n:"o"}}, -"%l":{"b|p|bp":{}}, -"%m":{a:{n:"as"},0:{k:"%j"},"1|2":{k:"%k"},"r|rt|rd|%i|%h":{k:"~T",n:"0"},"*":{k:["~T","%k"],n:"1"}}, -al:{"1|2":{k:["~T",{l:"~K",m:"al"}]}, -"*":{k:["~T",{l:"~K",m:"al"}],n:"0"}}, -"@o":{"r|rt":{k:"%a",n:"rd"},"rd|%i":{k:"%f",n:"%h"}}, -"@i":{"o|d|D|dq|qd|qD":{k:["~T",{l:"~f",m:"..."}],n:"3"},"*":{k:[{l:"~T",m:1},{l:"~J",m:"~z"}],n:"1"}}, -". |* ":{"*":{k:["~T",{l:"~J",m:"~~"}],n:"1"}}, -"%n":{"*":{k:["~T","%p"],n:"1"}}, -"@K":{"a|as|o":{k:["o=","~T","%G"],n:"2"},"0|1|2|3":{k:["o=","~T","%G"],n:"2"},"*":{k:["~T","o=","~T","%G"],n:"2"}}, -"@c":{"0|1|2|3|b|p|bp|o":{k:["o=","%H"],n:"o"},"a|as|d|D|q|qd|qD|dq":{k:["~T","o=","%H"],n:"o"}}, -", ":{"*":{k:["~T","~q"],n:"0"}}, -"^_":{"*":{}}, -"@P|@L":{"0|1|2|as":{k:"b=",n:"b"},p:{k:"b=",n:"bp"},"3|o":{k:"~t",n:"D"},q:{k:"d=",n:"qD"},"d|D|qd|qD|dq":{k:["~T","d="],n:"D"}}, -"^a|@O|@N|^\\x|'":{"0|1|2|as":{k:"b=",n:"b"},p:{k:"b=",n:"bp"},"3|o":{k:"~t",n:"d"},q:{k:"d=",n:"qd"},"d|qd|D|qD":{k:"d="},dq:{k:["~T","d="],n:"d"}}, -ae:{"d|D|q|qd|qD|dq":{k:["~T","q="],n:"q"}}, -"@Y|@Q|_9|@T|@S|@R":{"0|1|2|as":{k:"p=",n:"p"},b:{k:"p=",n:"bp"},"3|o":{k:"q=",n:"q"},"d|D":{k:"q=",n:"dq"},"q|qd|qD|dq":{k:["~T","q="],n:"q"}}, -"%D":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{k:[{l:"~T",m:2},"~f"],n:"3"}}, -"#":{"0|1|2|3|a|as|o":{k:[{l:"~T",m:2},{l:"~f",m:"#"}],n:"3"}}, -"{}":{"*":{k:{l:"~T",m:1},n:"1"}}, -"%B":{"0|1|2|3|a|as|b|p|bp":{k:"o=",n:"o"},"o|d|D|q|qd|qD|dq":{k:["~T","o="],n:"o"}}, -"@~":{a:{k:"a="},"0|1|2|3|as|b|p|bp|o":{k:"o=",n:"o"},"as|o":{k:"o="},"q|d|D|qd|qD|dq":{k:["~T","o="],n:"o"}}, -"@r":{"*":{k:[{l:"~T",m:2},"~f"],n:"3"}}, -"@y":{"*":{k:[{l:"~T",m:1},"~H"],n:"3"}}, -"@A":{"*":{k:[{l:"~T",m:2},"~X"],n:"3"}}, -"@C":{"*":{k:[{l:"~T",m:2},"%y"],n:"3"}}, -"@B":{"*":{k:[{l:"~T",m:2},"%w"],n:"3"}}, -"@x|@v":{"*":{k:[{l:"~T",m:2},"~k"],n:"3"}}, -"@w":{"*":{k:[{l:"~T",m:2},"~m"]}}, -"@u":{"*":{k:[{l:"~T",m:2},"ce"],n:"3"}}, -"@p":{"*":{k:[{l:"~T",m:1},"~s"],n:"1"}}, -"@G|@F|@E":{"0|1|2|3|a|as|b|p|bp|o|c0":{k:["o=","~T"],n:"3"},"*":{k:["~T","o=","~T"],n:"3"}}, -"~S":{"*":{k:[{l:"~T",m:1},"~s"],n:"3"}}, -"~B":{a:{k:"@Z",n:"o",s:!0},as:{k:[{l:"~T"},"%k"],n:"1",s:!0},"r|rt|rd|%i|%h":{k:["~T"],n:"0",s:!0},"*":{k:["~T","~s"],n:"3"}}}),g:{"~N": -function(n,r){var o;if(n.d.match(/^[0-9]+$/)){var e=n.d;n.d=void 0,o=this["~T"](n),n.b=e}else o=this["~T"](n);return t.g["o="](n,r),o},"~t": -function(n,r){n.d=r,n["%I"]="kv"},"~g": -function(n,r){if(n.yB){var o=t.j(o,this["~T"](n));return o=t.j(o,t.g["~f"](n,r,"-"))}n.d=r},"@e": -function(n,r,o){var e=o||this["@X"](n,r),a=t.j(null,this["~T"](n,r));return a=e?t.j(a,{l:"~I"}):t.j(a,t.g["~f"](n,r,"-"))},"@d": -function(n,r,o){var e,a=o||this["@X"](n,r);if(a)e=t.j(e,this["~T"](n,r)),e=t.j(e,{l:"~I"});else{var u=t.h("~u",n.d||"");u&&""===u.t?(e=t.j(null,t.g["d="](n,r)),e=t.j(e,this["~T"](n))):(e=t.j(e,this["~T"](n,r)),e=t.j(e,t.g["~f"](n,r,"-")))}return e},"@X": -function(n,r){var o=t.h("~R",n.o||""),e=t.h("~O",n.o||""),a=t.h("~P",n.o||""),u=t.h("@%",n.o||""),i="-"===r&&(o&&""===o.t||e||a||u);return!i||n.a||n.b||n.p||n.d||n.q||o||!a||(n.o="$"+n.o+"$"),i},"@Z": -function(n,r){n.o=n.a,n.a=void 0},"%k": -function(n,r){n.sb=!0},"%j": -function(n,r){n.sb=!1},"%E": -function(n,r){n.yB=!0},"%F": -function(n,r){n.yB=!1},"%G": -function(n,r){n.pL++},"%H": -function(n,r){n.pL--},"%p": -function(n,r){return r=t.go(r,"o"),{l:"%p",p1:r}}, -"~q": -function(n,r){var t=r.replace(/\s*$/,""),o=t!==r;return o&&0===n.pL?{l:"~n",p1:t}:{l:"~o",p1:t}}, -"~T": -function(n,r,o){var e;n.r?("M"===n.rdt?n.rd=t.go(n.rd,"%r"):"T"===n.rdt?n.rd=[{l:"%s",p1:n.rd}]:n.rd=t.go(n.rd),"M"===n.rqt?n.rq=t.go(n.rq,"%r"):"T"===n.rqt?n.rq=[{l:"%s",p1:n.rq}]:n.rq=t.go(n.rq),e={l:"~b",r:n.r,rd:n.rd,rq:n.rq}):(e=[],n.a||n.b||n.p||n.o||n.q||n.d||o?(n.sb&&e.push({l:"~D"}),n.o||n.q||n.d||n.b||n.p||2===o?n.o||n.q||n.d||!n.b&&!n.p?n.o&&"kv"===n["%I"]&&t.h("a~",n.d||"")?n["%I"]="~Y":n.o&&"kv"===n["%I"]&&!n.q&&(n["%I"]=void 0):(n.o=n.a,n.d=n.b,n.q=n.p,n.a=n.b=n.p=void 0):(n.o=n.a,n.a=void 0),n.a=t.go(n.a,"a"),n.b=t.go(n.b,"bd"),n.p=t.go(n.p,"pq"),n.o=t.go(n.o,"o"),"~Y"===n["%I"]?n.d=t.go(n.d,"~Y"):n.d=t.go(n.d,"bd"),n.q=t.go(n.q,"pq"),e.push({l:"~h",a:n.a,b:n.b,p:n.p,o:n.o,q:n.q,d:n.d,"%I":n["%I"]})):e=null);for(var a in n)"pL"!==a&&"yB"!==a&&delete n[a];return e},"a%": -function(n,r){var o=["{"];return o=t.j(o,t.go(r,"~Y")),o=o.concat(["}"])},"~H": -function(n,r){return{l:"~G",p1:t.go(r[0]),p2:t.go(r[1])}}, -"~X": -function(n,r){return{l:"~W",p1:t.go(r[0]),p2:t.go(r[1])}}, -"%y": -function(n,r){return{l:"%x",p1:t.go(r[0]),p2:t.go(r[1])}}, -"%w": -function(n,r){return{l:"%v",p1:t.go(r[0]),p2:t.go(r[1])}}, -"~k": -function(n,r){return{l:"~j",F:r[0],G:t.go(r[1])}}, -"r=": -function(n,r){n.r=(n.r||"")+r},"%b": -function(n,r){n.rdt=(n.rdt||"")+r},"%a": -function(n,r){n.rd=(n.rd||"")+r},"%g": -function(n,r){n.rqt=(n.rqt||"")+r},"%f": -function(n,r){n.rq=(n.rq||"")+r},"~Q": -function(n,r,t){return{l:"~Q",A:t||r}}}}, -t.c.a={e:t.C({"~C":{"*":{}}, -"@j":{0:{k:"@k"}}, -"~A":{0:{n:"1",s:!0}}, -"@@":{"*":{k:"%q",n:"1"}}, -",":{"*":{k:{l:"~J",m:"~r"}}}, -"~B":{"*":{k:"~s"}}}),g:{}}, -t.c.o={e:t.C({"~C":{"*":{}}, -"@j":{0:{k:"@k"}}, -"~A":{0:{n:"1",s:!0}}, -"~M":{"*":{k:"rm"}}, -"@t":{"*":{k:{l:"~J",m:"~i"}}}, -"@G|@F|@E":{"*":{k:"~s"}}, -"@a|@@":{"*":{k:"%r"}}, -"%A":{"*":{k:"%C"}}, -"~B":{"*":{k:"~s"}}}),g:{}}, -t.c["%s"]={e:t.C({"~C":{"*":{k:"~T"}}, -"%B":{"*":{k:"%t"}}, -"@a|@@":{"*":{k:"%r"}}, -"@z":{"*":{k:["~T","rm"]}}, -"@p|@G|@F|@E":{"*":{k:["~T","~s"]}}, -"~A":{"*":{k:"%t"}}}),g:{"~T": -function(n,r){if(n.text){var t={l:"%s",p1:n.text};for(var o in n)delete n[o];return t}return null}}}, -t.c.pq={e:t.C({"~C":{"*":{}}, -"%n":{"*":{k:"%p"}}, -i$:{0:{n:"!f",s:!0}}, -"@b":{0:{k:"rm",n:"0"}}, -"~E":{0:{n:"f",s:!0}}, -"@j":{0:{k:"@k"}}, -"~A":{0:{n:"!f",s:!0}}, -"@a|@@":{"*":{k:"%r"}}, -"%A":{"*":{k:"%s"}}, -"~@":{f:{k:"%r"}}, -"~M":{"*":{k:"rm"}}, -"@h":{"*":{k:"@l"}}, -",":{"*":{k:{l:"~K",m:"~p"}}}, -"@x|@v":{"*":{k:"~k"}}, -"@w":{"*":{k:"~m"}}, -"@u":{"*":{k:"ce"}}, -"@p|@G|@F|@E":{"*":{k:"~s"}}, -"~B":{"*":{k:"~s"}}}),g:{"%p": -function(n,r){return r=t.go(r,"o"),{l:"%K",p1:r}}, -"~k": -function(n,r){return{l:"~j",F:r[0],G:t.go(r[1],"pq")}}}}, -t.c.bd={e:t.C({"~C":{"*":{}}, -x$:{0:{n:"!f",s:!0}}, -"~E":{0:{n:"f",s:!0}}, -"~A":{0:{n:"!f",s:!0}}, -"@g":{"*":{k:"@l"}}, -".":{"*":{k:{l:"~J",m:"~y"}}}, -"~@":{f:{k:"%r"}}, -x:{"*":{k:{l:"~J",m:"@n"}}}, -"~M":{"*":{k:"rm"}}, -"'":{"*":{k:{l:"~J",m:"%%"}}}, -"@a|@@":{"*":{k:"%r"}}, -"%A":{"*":{k:"%s"}}, -"@x|@v":{"*":{k:"~k"}}, -"@w":{"*":{k:"~m"}}, -"@u":{"*":{k:"ce"}}, -"@p|@G|@F|@E":{"*":{k:"~s"}}, -"~B":{"*":{k:"~s"}}}),g:{"~k": -function(n,r){return{l:"~j",F:r[0],G:t.go(r[1],"bd")}}}}, -t.c["~Y"]={e:t.C({"~C":{"*":{}}, -"%d":{"*":{k:"%e"}}, -"@a|@@":{"*":{k:"%r"}}, -"~A":{"*":{k:"~s"}}}),g:{"%e": -function(n,r){return{l:"%d",p1:r}}}}, -t.c["%r"]={e:t.C({"~C":{"*":{k:"~T"}}, -"@u":{"*":{k:["~T","ce"]}}, -"%B|@p|@G|@F|@E":{"*":{k:"o="}}, -"~A":{"*":{k:"o="}}}),g:{"~T": -function(n,r){if(n.o){var t={l:"%r",p1:n.o};for(var o in n)delete n[o];return t}return null}}}, -t.c["%q"]={e:t.C({"~C":{"*":{k:"~T"}}, -"@u":{"*":{k:["~T","ce"]}}, -"%B|@p|@G|@F|@E":{"*":{k:"o="}}, -"-|+":{"*":{k:"%u"}}, -"~A":{"*":{k:"o="}}}),g:{"%u": -function(n,r){n.o=(n.o||"")+"{"+r+"}"},"~T": -function(n,r){if(n.o){var t={l:"%r",p1:n.o};for(var o in n)delete n[o];return t}return null}}}, -t.c["@l"]={e:t.C({"~C":{"*":{}}, -",":{"*":{k:"~q"}}, -"~A":{"*":{k:"~s"}}}),g:{"~q": -function(n,r){return{l:"~r"}}}}, -t.c.pu={e:t.C({"~C":{"*":{k:"~T"}}, -"@K|@c":{"0|a":{k:"~s"}}, -aj:{0:{k:"ak",n:"a"}}, -"%T":{0:{k:"%Z",n:"a"}}, -"%m":{"0|a":{}}, -ai:{"0|a":{k:{l:"~Q",m:"\\pm"},n:"0"}}, -"~Q":{"0|a":{k:"~s",n:"0"}}, -"//":{d:{k:"o=",n:"/"}}, -"/":{d:{k:"o=",n:"/"}}, -"%B|~A":{"0|d":{k:"d=",n:"d"},a:{k:["%m","d="],n:"d"},"/|q":{k:"q=",n:"q"}}}),g:{"%Z": -function(n,r){var o=[];return"+-"===r[0]||"+/-"===r[0]?o.push("\\pm "):r[0]&&o.push(r[0]),r[1]&&(o=t.j(o,t.go(r[1],"%X")),r[2]&&(r[2].match(/[,.]/)?o=t.j(o,t.go(r[2],"%X")):o.push(r[2])),r[3]=r[4]||r[3],r[3]&&(r[3]=r[3].trim(),"e"===r[3]||"*"===r[3].substr(0,1)?o.push({l:"%N"}):o.push({l:"%P"}))),r[3]&&o.push("10^{"+r[5]+"}"),o},ak: -function(n,r){var o=[];return"+-"===r[0]||"+/-"===r[0]?o.push("\\pm "):r[0]&&o.push(r[0]),o=t.j(o,t.go(r[1],"%X")),o.push("^{"+r[2]+"}"),o},"~Q": -function(n,r,t){return{l:"~Q",A:t||r}}, -"%m": -function(n,r){return{l:"%Q"}}, -"~T": -function(n,r){var o,e=t.h("%A",n.d||"");e&&""===e.t&&(n.d=e.h);var a=t.h("%A",n.q||"");a&&""===a.t&&(n.q=a.h),n.d&&(n.d=n.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),n.d=n.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),n.q?(n.d=t.go(n.d,"pu"),n.q=n.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),n.q=n.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F"),n.q=t.go(n.q,"pu"),"//"===n.o?o={l:"%S",p1:n.d,p2:n.q}:(o=n.d,o=n.d.length>1||n.q.length>1?t.j(o,{l:"%V"}):t.j(o,{l:"/"}),o=t.j(o,n.q))):o=t.go(n.d,"%R");for(var u in n)delete n[u];return o}}}, -t.c["%R"]={e:t.C({"~C":{"*":{k:"~T"}}, -"*":{"*":{k:["~T","%N"],n:"0"}}, -"@E":{"*":{k:"%c"},n:"1"},"%m":{"*":{k:["~T","%m"],n:"0"}}, -"@P|%U":{1:{k:"%U"}}, -"@h":{0:{k:"%c",n:"0"},1:{k:"%U",n:"0"}}, -"%B|~A":{"*":{k:"%c",n:"1"}}}),g:{"%N": -function(n,r){return{l:"%O"}}, -"%U": -function(n,r){n.rm+="^{"+r+"}"},"%m": -function(n,r){return{l:"ah"}}, -"~T": -function(n,r){var o;if(n.rm){var e=t.h("%A",n.rm||"");o=e&&""===e.t?t.go(e.h,"pu"):{l:"rm",p1:n.rm}}for(var a in n)delete n[a];return o}}}, -t.c["%X"]={e:t.C({"~C":{0:{k:"~U"},o:{k:"~V"}}, -",":{0:{k:["~U","~q"],n:"o"}}, -".":{0:{k:["~U","~s"],n:"o"}}, -"~A":{"*":{k:"%t"}}}),g:{"~q": -function(n,r){return{l:"~r"}}, -"~U": -function(n,r){var t=[];if(n.text.length>4){var o=n.text.length%3;0===o&&(o=3);for(var e=n.text.length-3;e>0;e-=3)t.push(n.text.substr(e,3)),t.push({l:"%W"});t.push(n.text.substr(0,o)),t.reverse()}else t.push(n.text);for(var a in n)delete n[a];return t},"~V": -function(n,r){var t=[];if(n.text.length>4){for(var o=n.text.length-3,e=0;e"===n.r||"<=>>"===n.r||"<<=>"===n.r||"<-->"===n.r?(r="\\long"+r,n.rd&&(r="\\overset{"+n.rd+"}{"+r+"}"),n.rq&&(r="\\underset{\\lower7mu{"+n.rq+"}}{"+r+"}"),r=" {}\\mathrel{"+r+"}{} "):(n.rq&&(r+="[{"+n.rq+"}]"),r+="{"+n.rd+"}",r=" {}\\mathrel{\\x"+r+"}{} "):r=" {}\\mathrel{\\long"+r+"}{} ",r},"~Q": -function(n){return o.K[n.A]}}, -J:{"->":"rightarrow","\u2192":"rightarrow","\u27f6":"rightarrow","<-":"leftarrow","<->":"leftrightarrow","<-->":"leftrightarrows","<=>":"rightleftharpoons","\u21cc":"rightleftharpoons","<=>>":"Rightleftharpoons","<<=>":"Leftrightharpoons"},I:{"-":"{-}",1:"{-}","=":"{=}",2:"{=}","#":"{\\equiv}",3:"{\\equiv}","~":"{\\tripledash}","~-":"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}","~=":"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}","~--":"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}","-~-":"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}","...":"{{\\cdot}{\\cdot}{\\cdot}}","....":"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}","->":"{\\rightarrow}","<-":"{\\leftarrow}","<":"{<}",">":"{>}"},L:{"%m":" ","~D":"~","%Q":"~",ah:"\\mkern3mu ","%W":"\\mkern2mu ","~r":"{,}","~n":"{{0}}\\mkern6mu ","~o":"{{0}}\\mkern3mu ","~p":"{{0}}\\mkern1mu ","~I":"\\text{-}","~~":"\\,{\\cdot}\\,","~y":"\\mkern1mu \\bullet\\mkern1mu ","@n":"{\\times}","%%":"\\prime ","%N":"\\cdot ","%O":"\\mkern1mu{\\cdot}\\mkern1mu ","%P":"\\times ","~i":"{\\sim}","^":"uparrow",v:"downarrow","~z":"\\ldots ","/":"/","%V":"\\,/\\,",al:"{0} "},K:{"+":" {}+{} ","-":" {}-{} ","=":" {}={} ","<":" {}<{} ",">":" {}>{} ","<<":" {}\\ll{} ",">>":" {}\\gg{} ","\\pm":" {}\\pm{} ","\\approx":" {}\\approx{} ","$\\approx$":" {}\\approx{} ",v:" \\downarrow{} ","(v)":" \\downarrow{} ","^":" \\uparrow{} ","(^)":" \\uparrow{} "},go: -function(n,r){if(!n)return n;for(var t="",o=!1,e=0;e/i,"").replace(/<\?xml:namespace .*?\/>/i,"");b=b.replace(/ /g," ")}MathJax.HTML.setScript(a,b);d.removeChild(e)}else{var c=MathJax.HTML.Element("span");c.appendChild(e);MathJax.HTML.setScript(a,c.innerHTML)}if(this.config.preview!=="none"){this.createPreview(e,a)}},ProcessMathFlattened:function(f){var d=f.parentNode;if(!d||d.className===MathJax.Hub.config.preRemoveClass){return}var b=document.createElement("script");b.type="math/mml";d.insertBefore(b,f);var c="",e,a=f;while(f&&f.nodeName!=="/MATH"){e=f;f=f.nextSibling;c+=this.NodeHTML(e);e.parentNode.removeChild(e)}if(f&&f.nodeName==="/MATH"){f.parentNode.removeChild(f)}b.text=c+"";if(this.config.preview!=="none"){this.createPreview(a,b)}},NodeHTML:function(e){var c,b,a;if(e.nodeName==="#text"){c=this.quoteHTML(e.nodeValue)}else{if(e.nodeName==="#comment"){c=""}else{c="<"+e.nodeName.toLowerCase();for(b=0,a=e.attributes.length;b";if(e.outerHTML!=null&&e.outerHTML.match(/(.<\/[A-Z]+>|\/>)$/)){for(b=0,a=e.childNodes.length;b"}}}return c},OuterHTML:function(d){if(d.nodeName.charAt(0)==="#"){return this.NodeHTML(d)}if(!this.AttributeBug){return d.outerHTML}var c=this.NodeHTML(d);for(var b=0,a=d.childNodes.length;b";return c},quoteHTML:function(a){if(a==null){a=""}return a.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""")},createPreview:function(g,f){var e=this.config.preview;if(e==="none"){return}var i=false;var c=MathJax.Hub.config.preRemoveClass;if((f.previousSibling||{}).className===c){return}if(e==="mathml"){i=true;if(this.MathTagBug){e="alttext"}else{e=g.cloneNode(true)}}if(e==="alttext"||e==="altimg"){i=true;var d=this.filterPreview(g.getAttribute("alttext"));if(e==="alttext"){if(d!=null){e=MathJax.HTML.TextNode(d)}else{e=null}}else{var a=g.getAttribute("altimg");if(a!=null){var b={width:g.getAttribute("altimg-width"),height:g.getAttribute("altimg-height")};e=MathJax.HTML.Element("img",{src:a,alt:d,style:b})}else{e=null}}}if(e){var h;if(i){h=MathJax.HTML.Element("span",{className:c});h.appendChild(e)}else{h=MathJax.HTML.Element("span",{className:c},e)}f.parentNode.insertBefore(h,f)}},filterPreview:function(a){return a},InitBrowser:function(){var b=MathJax.HTML.Element("span",{id:"<",className:"mathjax",innerHTML:"x"});var a=b.outerHTML||"";this.AttributeBug=a!==""&&!(a.match(/id="<"/)&&a.match(/class="mathjax"/)&&a.match(/<\/math>/));this.MathTagBug=b.childNodes.length>1;this.CleanupHTML=MathJax.Hub.Browser.isMSIE}};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.mml2jax],5);MathJax.Ajax.loadComplete("[MathJax]/extensions/mml2jax.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/extensions/tex2jax.js b/qt/aqt/data/web/js/vendor/mathjax/extensions/tex2jax.js deleted file mode 100755 index 828cc8ebf..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/extensions/tex2jax.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/extensions/tex2jax.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Extension.tex2jax={version:"2.7.1",config:{inlineMath:[["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],balanceBraces:true,skipTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",processEscapes:false,processEnvironments:true,processRefs:true,preview:"TeX"},ignoreTags:{br:(MathJax.Hub.Browser.isMSIE&&document.documentMode<9?"\n":" "),wbr:"","#comment":""},PreProcess:function(a){if(!this.configured){this.config=MathJax.Hub.CombineConfig("tex2jax",this.config);if(this.config.Augment){MathJax.Hub.Insert(this,this.config.Augment)}if(typeof(this.config.previewTeX)!=="undefined"&&!this.config.previewTeX){this.config.preview="none"}this.configured=true}if(typeof(a)==="string"){a=document.getElementById(a)}if(!a){a=document.body}if(this.createPatterns()){this.scanElement(a,a.nextSibling)}},createPatterns:function(){var d=[],e=[],c,a,b=this.config;this.match={};for(c=0,a=b.inlineMath.length;c0)},patternQuote:function(a){return a.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,"\\$1")},endPattern:function(a){return new RegExp(this.patternQuote(a)+"|\\\\.|[{}]","g")},sortLength:function(d,c){if(d.length!==c.length){return c.length-d.length}return(d==c?0:(d"}var k=[],j=(this.isToken?"":l+(h?"":" "));for(var g=0,d=this.data.length;g")}}}if(this.isToken||this.isChars){return l+"<"+f+e+">"+k.join("")+""}if(h){return k.join("\n")}if(k.length===0||(k.length===1&&k[0]==="")){return l+"<"+f+e+" />"}return l+"<"+f+e+">\n"+k.join("\n")+"\n"+l+""},toMathMLattributes:function(){var j=(this.type==="mstyle"?a.math.prototype.defaults:this.defaults);var h=(this.attrNames||a.copyAttributeNames),g=a.skipAttributes,l=a.copyAttributes;var e=[];if(this.type==="math"&&(!this.attr||!this.attr.xmlns)){e.push('xmlns="http://www.w3.org/1998/Math/MathML"')}if(!this.attrNames){for(var k in j){if(!g[k]&&!l[k]&&j.hasOwnProperty(k)){if(this[k]!=null&&this[k]!==j[k]){if(this.Get(k,null,1)!==this[k]){e.push(k+'="'+this.toMathMLattribute(this[k])+'"')}}}}}for(var f=0,d=h.length;f126||(k<32&&k!==10&&k!==13&&k!==9)){f[g]="&#x"+k.toString(16).toUpperCase()+";"}else{var j={"&":"&","<":"<",">":">",'"':"""}[f[g]];if(j){f[g]=j}}}else{if(g+11);var p=this.type,k=this.toMathMLattributes();var j=[],o=d+(g?" "+(n?" ":""):"")+" ";for(var h=0,f=this.data.length;h")}}if(j.length===0||(j.length===1&&j[0]==="")){if(!g){return"<"+p+k+" />"}j.push(o+"")}if(g){if(n){j.unshift(d+" ");j.push(d+" ")}j.unshift(d+" ");var l=e.originalText.replace(/[&<>]/g,function(i){return{">":">","<":"<","&":"&"}[i]});j.push(d+' '+l+"");j.push(d+" ")}return d+"<"+p+k+">\n"+j.join("\n")+"\n"+d+""}});a.msubsup.Augment({toMathML:function(j){var f=this.type;if(this.data[this.sup]==null){f="msub"}if(this.data[this.sub]==null){f="msup"}var e=this.toMathMLattributes();delete this.data[0].inferred;var h=[];for(var g=0,d=this.data.length;g\n"+h.join("\n")+"\n"+j+""}});a.munderover.Augment({toMathML:function(k){var f=this.type;var j=this.data[this.base];if(j&&j.isa(a.TeXAtom)&&j.movablelimits&&!j.Get("displaystyle")){type="msubsup";if(this.data[this.under]==null){f="msup"}if(this.data[this.over]==null){f="msub"}}else{if(this.data[this.under]==null){f="mover"}if(this.data[this.over]==null){f="munder"}}var e=this.toMathMLattributes();delete this.data[0].inferred;var h=[];for(var g=0,d=this.data.length;g\n"+h.join("\n")+"\n"+k+""}});a.TeXAtom.Augment({toMathML:function(e){var d=this.toMathMLattributes();if(!d&&this.data[0].data.length===1){return e.substr(2)+this.data[0].toMathML(e)}return e+"\n"+this.data[0].toMathML(e+" ")+"\n"+e+""}});a.chars.Augment({toMathML:function(d){return(d||"")+this.toMathMLquote(this.toString())}});a.entity.Augment({toMathML:function(d){return(d||"")+"&"+this.data[0]+";"}});a.xml.Augment({toMathML:function(d){return(d||"")+this.toString()}});MathJax.Hub.Register.StartupHook("TeX mathchoice Ready",function(){a.TeXmathchoice.Augment({toMathML:function(d){return this.Core().toMathML(d)}})});MathJax.Hub.Startup.signal.Post("toMathML Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/toMathML.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff deleted file mode 100755 index 11516fbfd..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff deleted file mode 100755 index cf9462dde..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff deleted file mode 100755 index 24610d731..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff deleted file mode 100755 index fa97e3c9f..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff deleted file mode 100755 index 1f23f9b23..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff deleted file mode 100755 index 45ab54c84..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff deleted file mode 100755 index 70b4f3bd8..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff deleted file mode 100755 index 736c1311a..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff deleted file mode 100755 index de090069d..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff deleted file mode 100755 index df9b26d40..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff deleted file mode 100755 index 7e3888587..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff deleted file mode 100755 index 45e322b00..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff deleted file mode 100755 index c023dd1de..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff deleted file mode 100755 index 033e6e441..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff deleted file mode 100755 index 59a22ead1..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff deleted file mode 100755 index 23719065d..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff deleted file mode 100755 index 1e48a2512..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff deleted file mode 100755 index bd564c458..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff deleted file mode 100755 index 46be3ea68..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff b/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff deleted file mode 100755 index 949a41f80..000000000 Binary files a/qt/aqt/data/web/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff and /dev/null differ diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/jax.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/jax.js deleted file mode 100755 index f13e0b266..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/jax.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/jax.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.ElementJax.mml=MathJax.ElementJax({mimeType:"jax/mml"},{id:"mml",version:"2.7.1",directory:MathJax.ElementJax.directory+"/mml",extensionDir:MathJax.ElementJax.extensionDir+"/mml",optableDir:MathJax.ElementJax.directory+"/mml/optable"});MathJax.ElementJax.mml.Augment({Init:function(){if(arguments.length===1&&arguments[0].type==="math"){this.root=arguments[0]}else{this.root=MathJax.ElementJax.mml.math.apply(this,arguments)}if(this.root.attr&&this.root.attr.mode){if(!this.root.display&&this.root.attr.mode==="display"){this.root.display="block";this.root.attrNames.push("display")}delete this.root.attr.mode;for(var b=0,a=this.root.attrNames.length;b0||this.Get("scriptlevel")>0)&&g>=0){return""}return this.TEXSPACELENGTH[Math.abs(g)]},TEXSPACELENGTH:["",a.LENGTH.THINMATHSPACE,a.LENGTH.MEDIUMMATHSPACE,a.LENGTH.THICKMATHSPACE],TEXSPACE:[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]],autoDefault:function(e){return""},isSpacelike:function(){return false},isEmbellished:function(){return false},Core:function(){return this},CoreMO:function(){return this},childIndex:function(g){if(g==null){return}for(var f=0,e=this.data.length;f=55296&&e.charCodeAt(0)<56320)?a.VARIANT.ITALIC:a.VARIANT.NORMAL)}return""},setTeXclass:function(f){this.getPrevClass(f);var e=this.data.join("");if(e.length>1&&e.match(/^[a-z][a-z0-9]*$/i)&&this.texClass===a.TEXCLASS.ORD){this.texClass=a.TEXCLASS.OP;this.autoOP=true}return this}});a.mn=a.mbase.Subclass({type:"mn",isToken:true,texClass:a.TEXCLASS.ORD,defaults:{mathvariant:a.INHERIT,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT,dir:a.INHERIT}});a.mo=a.mbase.Subclass({type:"mo",isToken:true,defaults:{mathvariant:a.INHERIT,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT,dir:a.INHERIT,form:a.AUTO,fence:a.AUTO,separator:a.AUTO,lspace:a.AUTO,rspace:a.AUTO,stretchy:a.AUTO,symmetric:a.AUTO,maxsize:a.AUTO,minsize:a.AUTO,largeop:a.AUTO,movablelimits:a.AUTO,accent:a.AUTO,linebreak:a.LINEBREAK.AUTO,lineleading:a.INHERIT,linebreakstyle:a.AUTO,linebreakmultchar:a.INHERIT,indentalign:a.INHERIT,indentshift:a.INHERIT,indenttarget:a.INHERIT,indentalignfirst:a.INHERIT,indentshiftfirst:a.INHERIT,indentalignlast:a.INHERIT,indentshiftlast:a.INHERIT,texClass:a.AUTO},defaultDef:{form:a.FORM.INFIX,fence:false,separator:false,lspace:a.LENGTH.THICKMATHSPACE,rspace:a.LENGTH.THICKMATHSPACE,stretchy:false,symmetric:false,maxsize:a.SIZE.INFINITY,minsize:"0em",largeop:false,movablelimits:false,accent:false,linebreak:a.LINEBREAK.AUTO,lineleading:"1ex",linebreakstyle:"before",indentalign:a.INDENTALIGN.AUTO,indentshift:"0",indenttarget:"",indentalignfirst:a.INDENTALIGN.INDENTALIGN,indentshiftfirst:a.INDENTSHIFT.INDENTSHIFT,indentalignlast:a.INDENTALIGN.INDENTALIGN,indentshiftlast:a.INDENTSHIFT.INDENTSHIFT,texClass:a.TEXCLASS.REL},SPACE_ATTR:{lspace:1,rspace:2,form:4},useMMLspacing:7,autoDefault:function(g,n){var l=this.def;if(!l){if(g==="form"){this.useMMLspacing&=~this.SPACE_ATTR.form;return this.getForm()}var k=this.data.join("");var f=[this.Get("form"),a.FORM.INFIX,a.FORM.POSTFIX,a.FORM.PREFIX];for(var h=0,e=f.length;h=55296&&k<56320){k=(((k-55296)<<10)+(j.charCodeAt(1)-56320))+65536}for(var g=0,e=this.RANGES.length;g=0;e--){if(this.data[0]&&!this.data[e].isSpacelike()){return this.data[e]}}return null},Core:function(){if(!(this.isEmbellished())||typeof(this.core)==="undefined"){return this}return this.data[this.core]},CoreMO:function(){if(!(this.isEmbellished())||typeof(this.core)==="undefined"){return this}return this.data[this.core].CoreMO()},toString:function(){if(this.inferred){return"["+this.data.join(",")+"]"}return this.SUPER(arguments).toString.call(this)},setTeXclass:function(g){var f,e=this.data.length;if((this.open||this.close)&&(!g||!g.fnOP)){this.getPrevClass(g);g=null;for(f=0;f0){e++}return e},adjustChild_texprimestyle:function(e){if(e==this.den){return true}return this.Get("texprimestyle")},setTeXclass:a.mbase.setSeparateTeXclasses});a.msqrt=a.mbase.Subclass({type:"msqrt",inferRow:true,linebreakContainer:true,texClass:a.TEXCLASS.ORD,setTeXclass:a.mbase.setSeparateTeXclasses,adjustChild_texprimestyle:function(e){return true}});a.mroot=a.mbase.Subclass({type:"mroot",linebreakContainer:true,texClass:a.TEXCLASS.ORD,adjustChild_displaystyle:function(e){if(e===1){return false}return this.Get("displaystyle")},adjustChild_scriptlevel:function(f){var e=this.Get("scriptlevel");if(f===1){e+=2}return e},adjustChild_texprimestyle:function(e){if(e===0){return true}return this.Get("texprimestyle")},setTeXclass:a.mbase.setSeparateTeXclasses});a.mstyle=a.mbase.Subclass({type:"mstyle",isSpacelike:a.mbase.childrenSpacelike,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,inferRow:true,defaults:{scriptlevel:a.INHERIT,displaystyle:a.INHERIT,scriptsizemultiplier:Math.sqrt(1/2),scriptminsize:"8pt",mathbackground:a.INHERIT,mathcolor:a.INHERIT,dir:a.INHERIT,infixlinebreakstyle:a.LINEBREAKSTYLE.BEFORE,decimalseparator:"."},adjustChild_scriptlevel:function(g){var f=this.scriptlevel;if(f==null){f=this.Get("scriptlevel")}else{if(String(f).match(/^ *[-+]/)){var e=this.Get("scriptlevel",null,true);f=e+parseInt(f)}}return f},inheritFromMe:true,noInherit:{mpadded:{width:true,height:true,depth:true,lspace:true,voffset:true},mtable:{width:true,height:true,depth:true,align:true}},getRemoved:{fontfamily:"fontFamily",fontweight:"fontWeight",fontstyle:"fontStyle",fontsize:"fontSize"},setTeXclass:a.mbase.setChildTeXclass});a.merror=a.mbase.Subclass({type:"merror",inferRow:true,linebreakContainer:true,texClass:a.TEXCLASS.ORD});a.mpadded=a.mbase.Subclass({type:"mpadded",inferRow:true,isSpacelike:a.mbase.childrenSpacelike,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,width:"",height:"",depth:"",lspace:0,voffset:0},setTeXclass:a.mbase.setChildTeXclass});a.mphantom=a.mbase.Subclass({type:"mphantom",texClass:a.TEXCLASS.ORD,inferRow:true,isSpacelike:a.mbase.childrenSpacelike,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,setTeXclass:a.mbase.setChildTeXclass});a.mfenced=a.mbase.Subclass({type:"mfenced",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,open:"(",close:")",separators:","},addFakeNodes:function(){var f=this.getValues("open","close","separators");f.open=f.open.replace(/[ \t\n\r]/g,"");f.close=f.close.replace(/[ \t\n\r]/g,"");f.separators=f.separators.replace(/[ \t\n\r]/g,"");if(f.open!==""){this.SetData("open",a.mo(f.open).With({fence:true,form:a.FORM.PREFIX,texClass:a.TEXCLASS.OPEN}));this.data.open.useMMLspacing=0}if(f.separators!==""){while(f.separators.length0){return false}return this.Get("displaystyle")},adjustChild_scriptlevel:function(f){var e=this.Get("scriptlevel");if(f>0){e++}return e},adjustChild_texprimestyle:function(e){if(e===this.sub){return true}return this.Get("texprimestyle")},setTeXclass:a.mbase.setBaseTeXclasses});a.msub=a.msubsup.Subclass({type:"msub"});a.msup=a.msubsup.Subclass({type:"msup",sub:2,sup:1});a.mmultiscripts=a.msubsup.Subclass({type:"mmultiscripts",adjustChild_texprimestyle:function(e){if(e%2===1){return true}return this.Get("texprimestyle")}});a.mprescripts=a.mbase.Subclass({type:"mprescripts"});a.none=a.mbase.Subclass({type:"none"});a.munderover=a.mbase.Subclass({type:"munderover",base:0,under:1,over:2,sub:1,sup:2,ACCENTS:["","accentunder","accent"],linebreakContainer:true,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,accent:a.AUTO,accentunder:a.AUTO,align:a.ALIGN.CENTER,texClass:a.AUTO,subscriptshift:"",superscriptshift:""},autoDefault:function(e){if(e==="texClass"){return(this.isEmbellished()?this.CoreMO().Get(e):a.TEXCLASS.ORD)}if(e==="accent"&&this.data[this.over]){return this.data[this.over].CoreMO().Get("accent")}if(e==="accentunder"&&this.data[this.under]){return this.data[this.under].CoreMO().Get("accent")}return false},adjustChild_displaystyle:function(e){if(e>0){return false}return this.Get("displaystyle")},adjustChild_scriptlevel:function(g){var f=this.Get("scriptlevel");var e=(this.data[this.base]&&!this.Get("displaystyle")&&this.data[this.base].CoreMO().Get("movablelimits"));if(g==this.under&&(e||!this.Get("accentunder"))){f++}if(g==this.over&&(e||!this.Get("accent"))){f++}return f},adjustChild_texprimestyle:function(e){if(e===this.base&&this.data[this.over]){return true}return this.Get("texprimestyle")},setTeXclass:a.mbase.setBaseTeXclasses});a.munder=a.munderover.Subclass({type:"munder"});a.mover=a.munderover.Subclass({type:"mover",over:1,under:2,sup:1,sub:2,ACCENTS:["","accent","accentunder"]});a.mtable=a.mbase.Subclass({type:"mtable",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,align:a.ALIGN.AXIS,rowalign:a.ALIGN.BASELINE,columnalign:a.ALIGN.CENTER,groupalign:"{left}",alignmentscope:true,columnwidth:a.WIDTH.AUTO,width:a.WIDTH.AUTO,rowspacing:"1ex",columnspacing:".8em",rowlines:a.LINES.NONE,columnlines:a.LINES.NONE,frame:a.LINES.NONE,framespacing:"0.4em 0.5ex",equalrows:false,equalcolumns:false,displaystyle:false,side:a.SIDE.RIGHT,minlabelspacing:"0.8em",texClass:a.TEXCLASS.ORD,useHeight:1},adjustChild_displaystyle:function(){return(this.displaystyle!=null?this.displaystyle:this.defaults.displaystyle)},inheritFromMe:true,noInherit:{mover:{align:true},munder:{align:true},munderover:{align:true},mtable:{align:true,rowalign:true,columnalign:true,groupalign:true,alignmentscope:true,columnwidth:true,width:true,rowspacing:true,columnspacing:true,rowlines:true,columnlines:true,frame:true,framespacing:true,equalrows:true,equalcolumns:true,displaystyle:true,side:true,minlabelspacing:true,texClass:true,useHeight:1}},linebreakContainer:true,Append:function(){for(var f=0,e=arguments.length;f>10)+55296)+String.fromCharCode((e&1023)+56320)}});a.xml=a.mbase.Subclass({type:"xml",Init:function(){this.div=document.createElement("div");return this.SUPER(arguments).Init.apply(this,arguments)},Append:function(){for(var f=0,e=arguments.length;f":d.REL,"?":[1,1,b.CLOSE],"\\":d.ORD,"^":d.ORD11,_:d.ORD11,"|":[2,2,b.ORD,{fence:true,stretchy:true,symmetric:true}],"#":d.ORD,"$":d.ORD,"\u002E":[0,3,b.PUNCT,{separator:true}],"\u02B9":d.ORD,"\u0300":d.ACCENT,"\u0301":d.ACCENT,"\u0303":d.WIDEACCENT,"\u0304":d.ACCENT,"\u0306":d.ACCENT,"\u0307":d.ACCENT,"\u0308":d.ACCENT,"\u030C":d.ACCENT,"\u0332":d.WIDEACCENT,"\u0338":d.REL4,"\u2015":[0,0,b.ORD,{stretchy:true}],"\u2017":[0,0,b.ORD,{stretchy:true}],"\u2020":d.BIN3,"\u2021":d.BIN3,"\u20D7":d.ACCENT,"\u2111":d.ORD,"\u2113":d.ORD,"\u2118":d.ORD,"\u211C":d.ORD,"\u2205":d.ORD,"\u221E":d.ORD,"\u2305":d.BIN3,"\u2306":d.BIN3,"\u2322":d.REL4,"\u2323":d.REL4,"\u2329":d.OPEN,"\u232A":d.CLOSE,"\u23AA":d.ORD,"\u23AF":[0,0,b.ORD,{stretchy:true}],"\u23B0":d.OPEN,"\u23B1":d.CLOSE,"\u2500":d.ORD,"\u25EF":d.BIN3,"\u2660":d.ORD,"\u2661":d.ORD,"\u2662":d.ORD,"\u2663":d.ORD,"\u3008":d.OPEN,"\u3009":d.CLOSE,"\uFE37":d.WIDEACCENT,"\uFE38":d.WIDEACCENT}}},{OPTYPES:d});var c=a.mo.prototype.OPTABLE;c.infix["^"]=d.WIDEREL;c.infix._=d.WIDEREL;c.prefix["\u2223"]=d.OPEN;c.prefix["\u2225"]=d.OPEN;c.postfix["\u2223"]=d.CLOSE;c.postfix["\u2225"]=d.CLOSE})(MathJax.ElementJax.mml);MathJax.ElementJax.mml.loadComplete("jax.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/Arrows.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/Arrows.js deleted file mode 100755 index 121960d1e..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/Arrows.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/Arrows.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{infix:{"\u219A":c.RELACCENT,"\u219B":c.RELACCENT,"\u219C":c.WIDEREL,"\u219D":c.WIDEREL,"\u219E":c.WIDEREL,"\u219F":c.WIDEREL,"\u21A0":c.WIDEREL,"\u21A1":c.RELSTRETCH,"\u21A2":c.WIDEREL,"\u21A3":c.WIDEREL,"\u21A4":c.WIDEREL,"\u21A5":c.RELSTRETCH,"\u21A7":c.RELSTRETCH,"\u21A8":c.RELSTRETCH,"\u21AB":c.WIDEREL,"\u21AC":c.WIDEREL,"\u21AD":c.WIDEREL,"\u21AE":c.RELACCENT,"\u21AF":c.RELSTRETCH,"\u21B0":c.RELSTRETCH,"\u21B1":c.RELSTRETCH,"\u21B2":c.RELSTRETCH,"\u21B3":c.RELSTRETCH,"\u21B4":c.RELSTRETCH,"\u21B5":c.RELSTRETCH,"\u21B6":c.RELACCENT,"\u21B7":c.RELACCENT,"\u21B8":c.REL,"\u21B9":c.WIDEREL,"\u21BA":c.REL,"\u21BB":c.REL,"\u21BE":c.RELSTRETCH,"\u21BF":c.RELSTRETCH,"\u21C2":c.RELSTRETCH,"\u21C3":c.RELSTRETCH,"\u21C4":c.WIDEREL,"\u21C5":c.RELSTRETCH,"\u21C6":c.WIDEREL,"\u21C7":c.WIDEREL,"\u21C8":c.RELSTRETCH,"\u21C9":c.WIDEREL,"\u21CA":c.RELSTRETCH,"\u21CB":c.WIDEREL,"\u21CD":c.RELACCENT,"\u21CE":c.RELACCENT,"\u21CF":c.RELACCENT,"\u21D6":c.RELSTRETCH,"\u21D7":c.RELSTRETCH,"\u21D8":c.RELSTRETCH,"\u21D9":c.RELSTRETCH,"\u21DA":c.WIDEREL,"\u21DB":c.WIDEREL,"\u21DC":c.WIDEREL,"\u21DD":c.WIDEREL,"\u21DE":c.REL,"\u21DF":c.REL,"\u21E0":c.WIDEREL,"\u21E1":c.RELSTRETCH,"\u21E2":c.WIDEREL,"\u21E3":c.RELSTRETCH,"\u21E4":c.WIDEREL,"\u21E5":c.WIDEREL,"\u21E6":c.WIDEREL,"\u21E7":c.RELSTRETCH,"\u21E8":c.WIDEREL,"\u21E9":c.RELSTRETCH,"\u21EA":c.RELSTRETCH,"\u21EB":c.RELSTRETCH,"\u21EC":c.RELSTRETCH,"\u21ED":c.RELSTRETCH,"\u21EE":c.RELSTRETCH,"\u21EF":c.RELSTRETCH,"\u21F0":c.WIDEREL,"\u21F1":c.REL,"\u21F2":c.REL,"\u21F3":c.RELSTRETCH,"\u21F4":c.RELACCENT,"\u21F5":c.RELSTRETCH,"\u21F6":c.WIDEREL,"\u21F7":c.RELACCENT,"\u21F8":c.RELACCENT,"\u21F9":c.RELACCENT,"\u21FA":c.RELACCENT,"\u21FB":c.RELACCENT,"\u21FC":c.RELACCENT,"\u21FD":c.WIDEREL,"\u21FE":c.WIDEREL,"\u21FF":c.WIDEREL}}});MathJax.Ajax.loadComplete(a.optableDir+"/Arrows.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/BasicLatin.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/BasicLatin.js deleted file mode 100755 index db6961e00..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/BasicLatin.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/BasicLatin.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{prefix:{"||":[0,0,b.BIN,{fence:true,stretchy:true,symmetric:true}],"|||":[0,0,b.ORD,{fence:true,stretchy:true,symmetric:true}]},postfix:{"!!":[1,0,b.BIN],"'":c.ACCENT,"++":[0,0,b.BIN],"--":[0,0,b.BIN],"..":[0,0,b.BIN],"...":c.ORD,"||":[0,0,b.BIN,{fence:true,stretchy:true,symmetric:true}],"|||":[0,0,b.ORD,{fence:true,stretchy:true,symmetric:true}]},infix:{"!=":c.BIN4,"&&":c.BIN4,"**":[1,1,b.BIN],"*=":c.BIN4,"+=":c.BIN4,"-=":c.BIN4,"->":c.BIN5,"//":[1,1,b.BIN],"/=":c.BIN4,":=":c.BIN4,"<=":c.BIN5,"<>":[1,1,b.BIN],"==":c.BIN4,">=":c.BIN5,"@":c.ORD11,"||":[2,2,b.BIN,{fence:true,stretchy:true,symmetric:true}],"|||":[2,2,b.ORD,{fence:true,stretchy:true,symmetric:true}]}}});MathJax.Ajax.loadComplete(a.optableDir+"/BasicLatin.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/CombDiacritMarks.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/CombDiacritMarks.js deleted file mode 100755 index dd45d36be..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/CombDiacritMarks.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/CombDiacritMarks.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{postfix:{"\u0311":c.ACCENT}}});MathJax.Ajax.loadComplete(a.optableDir+"/CombDiacritMarks.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/CombDiactForSymbols.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/CombDiactForSymbols.js deleted file mode 100755 index 6e44dc35d..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/CombDiactForSymbols.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/CombDiactForSymbols.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{postfix:{"\u20DB":c.ACCENT,"\u20DC":c.ACCENT}}});MathJax.Ajax.loadComplete(a.optableDir+"/CombDiactForSymbols.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/Dingbats.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/Dingbats.js deleted file mode 100755 index bcb1ecb4b..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/Dingbats.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/Dingbats.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{prefix:{"\u2772":c.OPEN},postfix:{"\u2773":c.CLOSE}}});MathJax.Ajax.loadComplete(a.optableDir+"/Dingbats.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/GeneralPunctuation.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/GeneralPunctuation.js deleted file mode 100755 index f25b07fa9..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/GeneralPunctuation.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/GeneralPunctuation.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{prefix:{"\u2016":[0,0,b.ORD,{fence:true,stretchy:true}],"\u2018":[0,0,b.OPEN,{fence:true}],"\u201C":[0,0,b.OPEN,{fence:true}]},postfix:{"\u2016":[0,0,b.ORD,{fence:true,stretchy:true}],"\u2019":[0,0,b.CLOSE,{fence:true}],"\u201D":[0,0,b.CLOSE,{fence:true}]}}});MathJax.Ajax.loadComplete(a.optableDir+"/GeneralPunctuation.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/GeometricShapes.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/GeometricShapes.js deleted file mode 100755 index 298177bdc..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/GeometricShapes.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/GeometricShapes.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{infix:{"\u25A0":c.BIN3,"\u25A1":c.BIN3,"\u25AA":c.BIN3,"\u25AB":c.BIN3,"\u25AD":c.BIN3,"\u25AE":c.BIN3,"\u25AF":c.BIN3,"\u25B0":c.BIN3,"\u25B1":c.BIN3,"\u25B2":c.BIN4,"\u25B4":c.BIN4,"\u25B6":c.BIN4,"\u25B7":c.BIN4,"\u25B8":c.BIN4,"\u25BC":c.BIN4,"\u25BE":c.BIN4,"\u25C0":c.BIN4,"\u25C1":c.BIN4,"\u25C2":c.BIN4,"\u25C4":c.BIN4,"\u25C5":c.BIN4,"\u25C6":c.BIN4,"\u25C7":c.BIN4,"\u25C8":c.BIN4,"\u25C9":c.BIN4,"\u25CC":c.BIN4,"\u25CD":c.BIN4,"\u25CE":c.BIN4,"\u25CF":c.BIN4,"\u25D6":c.BIN4,"\u25D7":c.BIN4,"\u25E6":c.BIN4}}});MathJax.Ajax.loadComplete(a.optableDir+"/GeometricShapes.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/GreekAndCoptic.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/GreekAndCoptic.js deleted file mode 100755 index e1ca505dd..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/GreekAndCoptic.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/GreekAndCoptic.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{infix:{"\u03F6":c.REL}}});MathJax.Ajax.loadComplete(a.optableDir+"/GreekAndCoptic.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/Latin1Supplement.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/Latin1Supplement.js deleted file mode 100755 index 1a4a8a592..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/Latin1Supplement.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/Latin1Supplement.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{postfix:{"\u00B0":c.ORD,"\u00B4":c.ACCENT,"\u00B8":c.ACCENT}}});MathJax.Ajax.loadComplete(a.optableDir+"/Latin1Supplement.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/LetterlikeSymbols.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/LetterlikeSymbols.js deleted file mode 100755 index 30aa21ec9..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/LetterlikeSymbols.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/LetterlikeSymbols.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{prefix:{"\u2145":c.ORD21,"\u2146":[2,0,b.ORD]}}});MathJax.Ajax.loadComplete(a.optableDir+"/LetterlikeSymbols.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MathOperators.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MathOperators.js deleted file mode 100755 index 1007faf90..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MathOperators.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/MathOperators.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{prefix:{"\u2204":c.ORD21,"\u221B":c.ORD11,"\u221C":c.ORD11,"\u2221":c.ORD,"\u2222":c.ORD,"\u222C":c.INTEGRAL,"\u222D":c.INTEGRAL,"\u222F":c.INTEGRAL,"\u2230":c.INTEGRAL,"\u2231":c.INTEGRAL,"\u2232":c.INTEGRAL,"\u2233":c.INTEGRAL},infix:{"\u2201":[1,2,b.ORD],"\u2206":c.BIN3,"\u220A":c.REL,"\u220C":c.REL,"\u220D":c.REL,"\u220E":c.BIN3,"\u2214":c.BIN4,"\u221F":c.REL,"\u2224":c.REL,"\u2226":c.REL,"\u2234":c.REL,"\u2235":c.REL,"\u2236":c.REL,"\u2237":c.REL,"\u2238":c.BIN4,"\u2239":c.REL,"\u223A":c.BIN4,"\u223B":c.REL,"\u223D":c.REL,"\u223D\u0331":c.BIN3,"\u223E":c.REL,"\u223F":c.BIN3,"\u2241":c.REL,"\u2242":c.REL,"\u2242\u0338":c.REL,"\u2244":c.REL,"\u2246":c.REL,"\u2247":c.REL,"\u2249":c.REL,"\u224A":c.REL,"\u224B":c.REL,"\u224C":c.REL,"\u224E":c.REL,"\u224E\u0338":c.REL,"\u224F":c.REL,"\u224F\u0338":c.REL,"\u2251":c.REL,"\u2252":c.REL,"\u2253":c.REL,"\u2254":c.REL,"\u2255":c.REL,"\u2256":c.REL,"\u2257":c.REL,"\u2258":c.REL,"\u2259":c.REL,"\u225A":c.REL,"\u225C":c.REL,"\u225D":c.REL,"\u225E":c.REL,"\u225F":c.REL,"\u2262":c.REL,"\u2263":c.REL,"\u2266":c.REL,"\u2266\u0338":c.REL,"\u2267":c.REL,"\u2268":c.REL,"\u2269":c.REL,"\u226A\u0338":c.REL,"\u226B\u0338":c.REL,"\u226C":c.REL,"\u226D":c.REL,"\u226E":c.REL,"\u226F":c.REL,"\u2270":c.REL,"\u2271":c.REL,"\u2272":c.REL,"\u2273":c.REL,"\u2274":c.REL,"\u2275":c.REL,"\u2276":c.REL,"\u2277":c.REL,"\u2278":c.REL,"\u2279":c.REL,"\u227C":c.REL,"\u227D":c.REL,"\u227E":c.REL,"\u227F":c.REL,"\u227F\u0338":c.REL,"\u2280":c.REL,"\u2281":c.REL,"\u2282\u20D2":c.REL,"\u2283\u20D2":c.REL,"\u2284":c.REL,"\u2285":c.REL,"\u2288":c.REL,"\u2289":c.REL,"\u228A":c.REL,"\u228B":c.REL,"\u228C":c.BIN4,"\u228D":c.BIN4,"\u228F":c.REL,"\u228F\u0338":c.REL,"\u2290":c.REL,"\u2290\u0338":c.REL,"\u229A":c.BIN4,"\u229B":c.BIN4,"\u229C":c.BIN4,"\u229D":c.BIN4,"\u229E":c.BIN4,"\u229F":c.BIN4,"\u22A0":c.BIN4,"\u22A1":c.BIN4,"\u22A6":c.REL,"\u22A7":c.REL,"\u22A9":c.REL,"\u22AA":c.REL,"\u22AB":c.REL,"\u22AC":c.REL,"\u22AD":c.REL,"\u22AE":c.REL,"\u22AF":c.REL,"\u22B0":c.REL,"\u22B1":c.REL,"\u22B2":c.REL,"\u22B3":c.REL,"\u22B4":c.REL,"\u22B5":c.REL,"\u22B6":c.REL,"\u22B7":c.REL,"\u22B8":c.REL,"\u22B9":c.REL,"\u22BA":c.BIN4,"\u22BB":c.BIN4,"\u22BC":c.BIN4,"\u22BD":c.BIN4,"\u22BE":c.BIN3,"\u22BF":c.BIN3,"\u22C7":c.BIN4,"\u22C9":c.BIN4,"\u22CA":c.BIN4,"\u22CB":c.BIN4,"\u22CC":c.BIN4,"\u22CD":c.REL,"\u22CE":c.BIN4,"\u22CF":c.BIN4,"\u22D0":c.REL,"\u22D1":c.REL,"\u22D2":c.BIN4,"\u22D3":c.BIN4,"\u22D4":c.REL,"\u22D5":c.REL,"\u22D6":c.REL,"\u22D7":c.REL,"\u22D8":c.REL,"\u22D9":c.REL,"\u22DA":c.REL,"\u22DB":c.REL,"\u22DC":c.REL,"\u22DD":c.REL,"\u22DE":c.REL,"\u22DF":c.REL,"\u22E0":c.REL,"\u22E1":c.REL,"\u22E2":c.REL,"\u22E3":c.REL,"\u22E4":c.REL,"\u22E5":c.REL,"\u22E6":c.REL,"\u22E7":c.REL,"\u22E8":c.REL,"\u22E9":c.REL,"\u22EA":c.REL,"\u22EB":c.REL,"\u22EC":c.REL,"\u22ED":c.REL,"\u22F0":c.REL,"\u22F2":c.REL,"\u22F3":c.REL,"\u22F4":c.REL,"\u22F5":c.REL,"\u22F6":c.REL,"\u22F7":c.REL,"\u22F8":c.REL,"\u22F9":c.REL,"\u22FA":c.REL,"\u22FB":c.REL,"\u22FC":c.REL,"\u22FD":c.REL,"\u22FE":c.REL,"\u22FF":c.REL}}});MathJax.Ajax.loadComplete(a.optableDir+"/MathOperators.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscMathSymbolsA.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscMathSymbolsA.js deleted file mode 100755 index 49baf4bac..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscMathSymbolsA.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/MiscMathSymbolsA.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{prefix:{"\u27E6":c.OPEN,"\u27EA":c.OPEN,"\u27EC":c.OPEN},postfix:{"\u27E7":c.CLOSE,"\u27EB":c.CLOSE,"\u27ED":c.CLOSE}}});MathJax.Ajax.loadComplete(a.optableDir+"/MiscMathSymbolsA.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscMathSymbolsB.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscMathSymbolsB.js deleted file mode 100755 index e7f778dab..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscMathSymbolsB.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/MiscMathSymbolsB.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{prefix:{"\u2980":[0,0,b.ORD,{fence:true,stretchy:true}],"\u2983":c.OPEN,"\u2985":c.OPEN,"\u2987":c.OPEN,"\u2989":c.OPEN,"\u298B":c.OPEN,"\u298D":c.OPEN,"\u298F":c.OPEN,"\u2991":c.OPEN,"\u2993":c.OPEN,"\u2995":c.OPEN,"\u2997":c.OPEN,"\u29FC":c.OPEN},postfix:{"\u2980":[0,0,b.ORD,{fence:true,stretchy:true}],"\u2984":c.CLOSE,"\u2986":c.CLOSE,"\u2988":c.CLOSE,"\u298A":c.CLOSE,"\u298C":c.CLOSE,"\u298E":c.CLOSE,"\u2990":c.CLOSE,"\u2992":c.CLOSE,"\u2994":c.CLOSE,"\u2996":c.CLOSE,"\u2998":c.CLOSE,"\u29FD":c.CLOSE},infix:{"\u2981":c.BIN3,"\u2982":c.BIN3,"\u2999":c.BIN3,"\u299A":c.BIN3,"\u299B":c.BIN3,"\u299C":c.BIN3,"\u299D":c.BIN3,"\u299E":c.BIN3,"\u299F":c.BIN3,"\u29A0":c.BIN3,"\u29A1":c.BIN3,"\u29A2":c.BIN3,"\u29A3":c.BIN3,"\u29A4":c.BIN3,"\u29A5":c.BIN3,"\u29A6":c.BIN3,"\u29A7":c.BIN3,"\u29A8":c.BIN3,"\u29A9":c.BIN3,"\u29AA":c.BIN3,"\u29AB":c.BIN3,"\u29AC":c.BIN3,"\u29AD":c.BIN3,"\u29AE":c.BIN3,"\u29AF":c.BIN3,"\u29B0":c.BIN3,"\u29B1":c.BIN3,"\u29B2":c.BIN3,"\u29B3":c.BIN3,"\u29B4":c.BIN3,"\u29B5":c.BIN3,"\u29B6":c.BIN4,"\u29B7":c.BIN4,"\u29B8":c.BIN4,"\u29B9":c.BIN4,"\u29BA":c.BIN4,"\u29BB":c.BIN4,"\u29BC":c.BIN4,"\u29BD":c.BIN4,"\u29BE":c.BIN4,"\u29BF":c.BIN4,"\u29C0":c.REL,"\u29C1":c.REL,"\u29C2":c.BIN3,"\u29C3":c.BIN3,"\u29C4":c.BIN4,"\u29C5":c.BIN4,"\u29C6":c.BIN4,"\u29C7":c.BIN4,"\u29C8":c.BIN4,"\u29C9":c.BIN3,"\u29CA":c.BIN3,"\u29CB":c.BIN3,"\u29CC":c.BIN3,"\u29CD":c.BIN3,"\u29CE":c.REL,"\u29CF":c.REL,"\u29CF\u0338":c.REL,"\u29D0":c.REL,"\u29D0\u0338":c.REL,"\u29D1":c.REL,"\u29D2":c.REL,"\u29D3":c.REL,"\u29D4":c.REL,"\u29D5":c.REL,"\u29D6":c.BIN4,"\u29D7":c.BIN4,"\u29D8":c.BIN3,"\u29D9":c.BIN3,"\u29DB":c.BIN3,"\u29DC":c.BIN3,"\u29DD":c.BIN3,"\u29DE":c.REL,"\u29DF":c.BIN3,"\u29E0":c.BIN3,"\u29E1":c.REL,"\u29E2":c.BIN4,"\u29E3":c.REL,"\u29E4":c.REL,"\u29E5":c.REL,"\u29E6":c.REL,"\u29E7":c.BIN3,"\u29E8":c.BIN3,"\u29E9":c.BIN3,"\u29EA":c.BIN3,"\u29EB":c.BIN3,"\u29EC":c.BIN3,"\u29ED":c.BIN3,"\u29EE":c.BIN3,"\u29EF":c.BIN3,"\u29F0":c.BIN3,"\u29F1":c.BIN3,"\u29F2":c.BIN3,"\u29F3":c.BIN3,"\u29F4":c.REL,"\u29F5":c.BIN4,"\u29F6":c.BIN4,"\u29F7":c.BIN4,"\u29F8":c.BIN3,"\u29F9":c.BIN3,"\u29FA":c.BIN3,"\u29FB":c.BIN3,"\u29FE":c.BIN4,"\u29FF":c.BIN4}}});MathJax.Ajax.loadComplete(a.optableDir+"/MiscMathSymbolsB.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscSymbolsAndArrows.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscSymbolsAndArrows.js deleted file mode 100755 index 03f19c91d..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscSymbolsAndArrows.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/MiscSymbolsAndArrows.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{infix:{"\u2B45":c.RELSTRETCH,"\u2B46":c.RELSTRETCH}}});MathJax.Ajax.loadComplete(a.optableDir+"/MiscSymbolsAndArrows.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscTechnical.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscTechnical.js deleted file mode 100755 index 56f6eae20..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/MiscTechnical.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/MiscTechnical.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{postfix:{"\u23B4":c.WIDEACCENT,"\u23B5":c.WIDEACCENT,"\u23DC":c.WIDEACCENT,"\u23DD":c.WIDEACCENT,"\u23E0":c.WIDEACCENT,"\u23E1":c.WIDEACCENT}}});MathJax.Ajax.loadComplete(a.optableDir+"/MiscTechnical.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SpacingModLetters.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SpacingModLetters.js deleted file mode 100755 index 318aa7a5c..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SpacingModLetters.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/SpacingModLetters.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{postfix:{"\u02CD":c.WIDEACCENT,"\u02DA":c.ACCENT,"\u02DD":c.ACCENT,"\u02F7":c.WIDEACCENT}}});MathJax.Ajax.loadComplete(a.optableDir+"/SpacingModLetters.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SuppMathOperators.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SuppMathOperators.js deleted file mode 100755 index e4c4e5eab..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SuppMathOperators.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/SuppMathOperators.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{prefix:{"\u2A03":c.OP,"\u2A05":c.OP,"\u2A07":c.OP,"\u2A08":c.OP,"\u2A09":c.OP,"\u2A0A":c.OP,"\u2A0B":c.INTEGRAL2,"\u2A0C":c.INTEGRAL,"\u2A0D":c.INTEGRAL2,"\u2A0E":c.INTEGRAL2,"\u2A0F":c.INTEGRAL2,"\u2A10":c.OP,"\u2A11":c.OP,"\u2A12":c.OP,"\u2A13":c.OP,"\u2A14":c.OP,"\u2A15":c.INTEGRAL2,"\u2A16":c.INTEGRAL2,"\u2A17":c.INTEGRAL2,"\u2A18":c.INTEGRAL2,"\u2A19":c.INTEGRAL2,"\u2A1A":c.INTEGRAL2,"\u2A1B":c.INTEGRAL2,"\u2A1C":c.INTEGRAL2,"\u2AFC":c.OP,"\u2AFF":c.OP},infix:{"\u2A1D":c.BIN3,"\u2A1E":c.BIN3,"\u2A1F":c.BIN3,"\u2A20":c.BIN3,"\u2A21":c.BIN3,"\u2A22":c.BIN4,"\u2A23":c.BIN4,"\u2A24":c.BIN4,"\u2A25":c.BIN4,"\u2A26":c.BIN4,"\u2A27":c.BIN4,"\u2A28":c.BIN4,"\u2A29":c.BIN4,"\u2A2A":c.BIN4,"\u2A2B":c.BIN4,"\u2A2C":c.BIN4,"\u2A2D":c.BIN4,"\u2A2E":c.BIN4,"\u2A30":c.BIN4,"\u2A31":c.BIN4,"\u2A32":c.BIN4,"\u2A33":c.BIN4,"\u2A34":c.BIN4,"\u2A35":c.BIN4,"\u2A36":c.BIN4,"\u2A37":c.BIN4,"\u2A38":c.BIN4,"\u2A39":c.BIN4,"\u2A3A":c.BIN4,"\u2A3B":c.BIN4,"\u2A3C":c.BIN4,"\u2A3D":c.BIN4,"\u2A3E":c.BIN4,"\u2A40":c.BIN4,"\u2A41":c.BIN4,"\u2A42":c.BIN4,"\u2A43":c.BIN4,"\u2A44":c.BIN4,"\u2A45":c.BIN4,"\u2A46":c.BIN4,"\u2A47":c.BIN4,"\u2A48":c.BIN4,"\u2A49":c.BIN4,"\u2A4A":c.BIN4,"\u2A4B":c.BIN4,"\u2A4C":c.BIN4,"\u2A4D":c.BIN4,"\u2A4E":c.BIN4,"\u2A4F":c.BIN4,"\u2A50":c.BIN4,"\u2A51":c.BIN4,"\u2A52":c.BIN4,"\u2A53":c.BIN4,"\u2A54":c.BIN4,"\u2A55":c.BIN4,"\u2A56":c.BIN4,"\u2A57":c.BIN4,"\u2A58":c.BIN4,"\u2A59":c.REL,"\u2A5A":c.BIN4,"\u2A5B":c.BIN4,"\u2A5C":c.BIN4,"\u2A5D":c.BIN4,"\u2A5E":c.BIN4,"\u2A5F":c.BIN4,"\u2A60":c.BIN4,"\u2A61":c.BIN4,"\u2A62":c.BIN4,"\u2A63":c.BIN4,"\u2A64":c.BIN4,"\u2A65":c.BIN4,"\u2A66":c.REL,"\u2A67":c.REL,"\u2A68":c.REL,"\u2A69":c.REL,"\u2A6A":c.REL,"\u2A6B":c.REL,"\u2A6C":c.REL,"\u2A6D":c.REL,"\u2A6E":c.REL,"\u2A6F":c.REL,"\u2A70":c.REL,"\u2A71":c.BIN4,"\u2A72":c.BIN4,"\u2A73":c.REL,"\u2A74":c.REL,"\u2A75":c.REL,"\u2A76":c.REL,"\u2A77":c.REL,"\u2A78":c.REL,"\u2A79":c.REL,"\u2A7A":c.REL,"\u2A7B":c.REL,"\u2A7C":c.REL,"\u2A7D":c.REL,"\u2A7D\u0338":c.REL,"\u2A7E":c.REL,"\u2A7E\u0338":c.REL,"\u2A7F":c.REL,"\u2A80":c.REL,"\u2A81":c.REL,"\u2A82":c.REL,"\u2A83":c.REL,"\u2A84":c.REL,"\u2A85":c.REL,"\u2A86":c.REL,"\u2A87":c.REL,"\u2A88":c.REL,"\u2A89":c.REL,"\u2A8A":c.REL,"\u2A8B":c.REL,"\u2A8C":c.REL,"\u2A8D":c.REL,"\u2A8E":c.REL,"\u2A8F":c.REL,"\u2A90":c.REL,"\u2A91":c.REL,"\u2A92":c.REL,"\u2A93":c.REL,"\u2A94":c.REL,"\u2A95":c.REL,"\u2A96":c.REL,"\u2A97":c.REL,"\u2A98":c.REL,"\u2A99":c.REL,"\u2A9A":c.REL,"\u2A9B":c.REL,"\u2A9C":c.REL,"\u2A9D":c.REL,"\u2A9E":c.REL,"\u2A9F":c.REL,"\u2AA0":c.REL,"\u2AA1":c.REL,"\u2AA1\u0338":c.REL,"\u2AA2":c.REL,"\u2AA2\u0338":c.REL,"\u2AA3":c.REL,"\u2AA4":c.REL,"\u2AA5":c.REL,"\u2AA6":c.REL,"\u2AA7":c.REL,"\u2AA8":c.REL,"\u2AA9":c.REL,"\u2AAA":c.REL,"\u2AAB":c.REL,"\u2AAC":c.REL,"\u2AAD":c.REL,"\u2AAE":c.REL,"\u2AAF\u0338":c.REL,"\u2AB0\u0338":c.REL,"\u2AB1":c.REL,"\u2AB2":c.REL,"\u2AB3":c.REL,"\u2AB4":c.REL,"\u2AB5":c.REL,"\u2AB6":c.REL,"\u2AB7":c.REL,"\u2AB8":c.REL,"\u2AB9":c.REL,"\u2ABA":c.REL,"\u2ABB":c.REL,"\u2ABC":c.REL,"\u2ABD":c.REL,"\u2ABE":c.REL,"\u2ABF":c.REL,"\u2AC0":c.REL,"\u2AC1":c.REL,"\u2AC2":c.REL,"\u2AC3":c.REL,"\u2AC4":c.REL,"\u2AC5":c.REL,"\u2AC6":c.REL,"\u2AC7":c.REL,"\u2AC8":c.REL,"\u2AC9":c.REL,"\u2ACA":c.REL,"\u2ACB":c.REL,"\u2ACC":c.REL,"\u2ACD":c.REL,"\u2ACE":c.REL,"\u2ACF":c.REL,"\u2AD0":c.REL,"\u2AD1":c.REL,"\u2AD2":c.REL,"\u2AD3":c.REL,"\u2AD4":c.REL,"\u2AD5":c.REL,"\u2AD6":c.REL,"\u2AD7":c.REL,"\u2AD8":c.REL,"\u2AD9":c.REL,"\u2ADA":c.REL,"\u2ADB":c.REL,"\u2ADC":c.REL,"\u2ADD":c.REL,"\u2ADE":c.REL,"\u2ADF":c.REL,"\u2AE0":c.REL,"\u2AE1":c.REL,"\u2AE2":c.REL,"\u2AE3":c.REL,"\u2AE4":c.REL,"\u2AE5":c.REL,"\u2AE6":c.REL,"\u2AE7":c.REL,"\u2AE8":c.REL,"\u2AE9":c.REL,"\u2AEA":c.REL,"\u2AEB":c.REL,"\u2AEC":c.REL,"\u2AED":c.REL,"\u2AEE":c.REL,"\u2AEF":c.REL,"\u2AF0":c.REL,"\u2AF1":c.REL,"\u2AF2":c.REL,"\u2AF3":c.REL,"\u2AF4":c.BIN4,"\u2AF5":c.BIN4,"\u2AF6":c.BIN4,"\u2AF7":c.REL,"\u2AF8":c.REL,"\u2AF9":c.REL,"\u2AFA":c.REL,"\u2AFB":c.BIN4,"\u2AFD":c.BIN4,"\u2AFE":c.BIN3}}});MathJax.Ajax.loadComplete(a.optableDir+"/SuppMathOperators.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SupplementalArrowsA.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SupplementalArrowsA.js deleted file mode 100755 index 1621ee150..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SupplementalArrowsA.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/SupplementalArrowsA.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{infix:{"\u27F0":c.RELSTRETCH,"\u27F1":c.RELSTRETCH,"\u27FB":c.WIDEREL,"\u27FD":c.WIDEREL,"\u27FE":c.WIDEREL,"\u27FF":c.WIDEREL}}});MathJax.Ajax.loadComplete(a.optableDir+"/SupplementalArrowsA.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SupplementalArrowsB.js b/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SupplementalArrowsB.js deleted file mode 100755 index 18b6d1e86..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/element/mml/optable/SupplementalArrowsB.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/element/mml/optable/SupplementalArrowsB.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{infix:{"\u2900":c.RELACCENT,"\u2901":c.RELACCENT,"\u2902":c.RELACCENT,"\u2903":c.RELACCENT,"\u2904":c.RELACCENT,"\u2905":c.RELACCENT,"\u2906":c.RELACCENT,"\u2907":c.RELACCENT,"\u2908":c.REL,"\u2909":c.REL,"\u290A":c.RELSTRETCH,"\u290B":c.RELSTRETCH,"\u290C":c.WIDEREL,"\u290D":c.WIDEREL,"\u290E":c.WIDEREL,"\u290F":c.WIDEREL,"\u2910":c.WIDEREL,"\u2911":c.RELACCENT,"\u2912":c.RELSTRETCH,"\u2913":c.RELSTRETCH,"\u2914":c.RELACCENT,"\u2915":c.RELACCENT,"\u2916":c.RELACCENT,"\u2917":c.RELACCENT,"\u2918":c.RELACCENT,"\u2919":c.RELACCENT,"\u291A":c.RELACCENT,"\u291B":c.RELACCENT,"\u291C":c.RELACCENT,"\u291D":c.RELACCENT,"\u291E":c.RELACCENT,"\u291F":c.RELACCENT,"\u2920":c.RELACCENT,"\u2921":c.RELSTRETCH,"\u2922":c.RELSTRETCH,"\u2923":c.REL,"\u2924":c.REL,"\u2925":c.REL,"\u2926":c.REL,"\u2927":c.REL,"\u2928":c.REL,"\u2929":c.REL,"\u292A":c.REL,"\u292B":c.REL,"\u292C":c.REL,"\u292D":c.REL,"\u292E":c.REL,"\u292F":c.REL,"\u2930":c.REL,"\u2931":c.REL,"\u2932":c.REL,"\u2933":c.RELACCENT,"\u2934":c.REL,"\u2935":c.REL,"\u2936":c.REL,"\u2937":c.REL,"\u2938":c.REL,"\u2939":c.REL,"\u293A":c.RELACCENT,"\u293B":c.RELACCENT,"\u293C":c.RELACCENT,"\u293D":c.RELACCENT,"\u293E":c.REL,"\u293F":c.REL,"\u2940":c.REL,"\u2941":c.REL,"\u2942":c.RELACCENT,"\u2943":c.RELACCENT,"\u2944":c.RELACCENT,"\u2945":c.RELACCENT,"\u2946":c.RELACCENT,"\u2947":c.RELACCENT,"\u2948":c.RELACCENT,"\u2949":c.REL,"\u294A":c.RELACCENT,"\u294B":c.RELACCENT,"\u294C":c.REL,"\u294D":c.REL,"\u294E":c.WIDEREL,"\u294F":c.RELSTRETCH,"\u2950":c.WIDEREL,"\u2951":c.RELSTRETCH,"\u2952":c.WIDEREL,"\u2953":c.WIDEREL,"\u2954":c.RELSTRETCH,"\u2955":c.RELSTRETCH,"\u2956":c.RELSTRETCH,"\u2957":c.RELSTRETCH,"\u2958":c.RELSTRETCH,"\u2959":c.RELSTRETCH,"\u295A":c.WIDEREL,"\u295B":c.WIDEREL,"\u295C":c.RELSTRETCH,"\u295D":c.RELSTRETCH,"\u295E":c.WIDEREL,"\u295F":c.WIDEREL,"\u2960":c.RELSTRETCH,"\u2961":c.RELSTRETCH,"\u2962":c.RELACCENT,"\u2963":c.REL,"\u2964":c.RELACCENT,"\u2965":c.REL,"\u2966":c.RELACCENT,"\u2967":c.RELACCENT,"\u2968":c.RELACCENT,"\u2969":c.RELACCENT,"\u296A":c.RELACCENT,"\u296B":c.RELACCENT,"\u296C":c.RELACCENT,"\u296D":c.RELACCENT,"\u296E":c.RELSTRETCH,"\u296F":c.RELSTRETCH,"\u2970":c.RELACCENT,"\u2971":c.RELACCENT,"\u2972":c.RELACCENT,"\u2973":c.RELACCENT,"\u2974":c.RELACCENT,"\u2975":c.RELACCENT,"\u2976":c.RELACCENT,"\u2977":c.RELACCENT,"\u2978":c.RELACCENT,"\u2979":c.RELACCENT,"\u297A":c.RELACCENT,"\u297B":c.RELACCENT,"\u297C":c.RELACCENT,"\u297D":c.RELACCENT,"\u297E":c.REL,"\u297F":c.REL}}});MathJax.Ajax.loadComplete(a.optableDir+"/SupplementalArrowsB.js")})(MathJax.ElementJax.mml); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/input/AsciiMath/config.js b/qt/aqt/data/web/js/vendor/mathjax/jax/input/AsciiMath/config.js deleted file mode 100755 index e75b389c3..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/input/AsciiMath/config.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/input/AsciiMath/config.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.InputJax.AsciiMath=MathJax.InputJax({id:"AsciiMath",version:"2.7.1",directory:MathJax.InputJax.directory+"/AsciiMath",extensionDir:MathJax.InputJax.extensionDir+"/AsciiMath",config:{fixphi:true,useMathMLspacing:true,displaystyle:true,decimalsign:"."}});MathJax.InputJax.AsciiMath.Register("math/asciimath");MathJax.InputJax.AsciiMath.loadComplete("config.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/input/AsciiMath/jax.js b/qt/aqt/data/web/js/vendor/mathjax/jax/input/AsciiMath/jax.js deleted file mode 100755 index 46c979904..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/input/AsciiMath/jax.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/input/AsciiMath/jax.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(ab){var g;var X=MathJax.Object.Subclass({firstChild:null,lastChild:null,Init:function(){this.childNodes=[]},appendChild:function(ac){if(ac.parent){ac.parent.removeChild(ac)}if(this.lastChild){this.lastChild.nextSibling=ac}if(!this.firstChild){this.firstChild=ac}this.childNodes.push(ac);ac.parent=this;this.lastChild=ac;return ac},removeChild:function(ae){for(var ad=0,ac=this.childNodes.length;ad=ac-1){this.lastChild=af}this.childNodes[ae]=af;af.nextSibling=ad.nextSibling;ad.nextSibling=ad.parent=null;return ad},hasChildNodes:function(ac){return(this.childNodes.length>0)},toString:function(){return"{"+this.childNodes.join("")+"}"}});var x=function(){g=MathJax.ElementJax.mml;var ac=g.mbase.prototype.Init;g.mbase.Augment({firstChild:null,lastChild:null,nodeValue:null,nextSibling:null,Init:function(){var ad=ac.apply(this,arguments)||this;ad.childNodes=ad.data;ad.nodeName=ad.type;return ad},appendChild:function(ag){if(ag.parent){ag.parent.removeChild(ag)}var ae=arguments;if(ag.isa(X)){ae=ag.childNodes;ag.data=ag.childNodes=[];ag.firstChild=ag.lastChild=null}for(var af=0,ad=ae.length;af=ad-1){this.lastChild=ag}this.SetData(af,ag);ag.nextSibling=ae.nextSibling;ae.nextSibling=ae.parent=null;return ae},hasChildNodes:function(ad){return(this.childNodes.length>0)},setAttribute:function(ad,ae){this[ad]=ae}})};var Q={};var e={getElementById:true,createElementNS:function(ad,ac){var ae=g[ac]();if(ac==="mo"&&ab.config.useMathMLspacing){ae.useMMLspacing=128}return ae},createTextNode:function(ac){return g.chars(ac).With({nodeValue:ac})},createDocumentFragment:function(){return X()}};var J={appName:"MathJax"};var C="blue";var Z="serif";var o=true;var v=true;var d=".";var f=true;var l=(J.appName.slice(0,9)=="Microsoft");function E(ac){if(l){return e.createElement(ac)}else{return e.createElementNS("http://www.w3.org/1999/xhtml",ac)}}var W="http://www.w3.org/1998/Math/MathML";function P(ac){if(l){return e.createElement("m:"+ac)}else{return e.createElementNS(W,ac)}}function O(ac,ae){var ad;if(l){ad=e.createElement("m:"+ac)}else{ad=e.createElementNS(W,ac)}if(ae){ad.appendChild(ae)}return ad}function u(ac,ad){z.push({input:ac,tag:"mo",output:ad,tex:null,ttype:V});B()}function r(ac){z.push(ac);B()}var D=["\uD835\uDC9C","\u212C","\uD835\uDC9E","\uD835\uDC9F","\u2130","\u2131","\uD835\uDCA2","\u210B","\u2110","\uD835\uDCA5","\uD835\uDCA6","\u2112","\u2133","\uD835\uDCA9","\uD835\uDCAA","\uD835\uDCAB","\uD835\uDCAC","\u211B","\uD835\uDCAE","\uD835\uDCAF","\uD835\uDCB0","\uD835\uDCB1","\uD835\uDCB2","\uD835\uDCB3","\uD835\uDCB4","\uD835\uDCB5","\uD835\uDCB6","\uD835\uDCB7","\uD835\uDCB8","\uD835\uDCB9","\u212F","\uD835\uDCBB","\u210A","\uD835\uDCBD","\uD835\uDCBE","\uD835\uDCBF","\uD835\uDCC0","\uD835\uDCC1","\uD835\uDCC2","\uD835\uDCC3","\u2134","\uD835\uDCC5","\uD835\uDCC6","\uD835\uDCC7","\uD835\uDCC8","\uD835\uDCC9","\uD835\uDCCA","\uD835\uDCCB","\uD835\uDCCC","\uD835\uDCCD","\uD835\uDCCE","\uD835\uDCCF"];var H=["\uD835\uDD04","\uD835\uDD05","\u212D","\uD835\uDD07","\uD835\uDD08","\uD835\uDD09","\uD835\uDD0A","\u210C","\u2111","\uD835\uDD0D","\uD835\uDD0E","\uD835\uDD0F","\uD835\uDD10","\uD835\uDD11","\uD835\uDD12","\uD835\uDD13","\uD835\uDD14","\u211C","\uD835\uDD16","\uD835\uDD17","\uD835\uDD18","\uD835\uDD19","\uD835\uDD1A","\uD835\uDD1B","\uD835\uDD1C","\u2128","\uD835\uDD1E","\uD835\uDD1F","\uD835\uDD20","\uD835\uDD21","\uD835\uDD22","\uD835\uDD23","\uD835\uDD24","\uD835\uDD25","\uD835\uDD26","\uD835\uDD27","\uD835\uDD28","\uD835\uDD29","\uD835\uDD2A","\uD835\uDD2B","\uD835\uDD2C","\uD835\uDD2D","\uD835\uDD2E","\uD835\uDD2F","\uD835\uDD30","\uD835\uDD31","\uD835\uDD32","\uD835\uDD33","\uD835\uDD34","\uD835\uDD35","\uD835\uDD36","\uD835\uDD37"];var w=["\uD835\uDD38","\uD835\uDD39","\u2102","\uD835\uDD3B","\uD835\uDD3C","\uD835\uDD3D","\uD835\uDD3E","\u210D","\uD835\uDD40","\uD835\uDD41","\uD835\uDD42","\uD835\uDD43","\uD835\uDD44","\u2115","\uD835\uDD46","\u2119","\u211A","\u211D","\uD835\uDD4A","\uD835\uDD4B","\uD835\uDD4C","\uD835\uDD4D","\uD835\uDD4E","\uD835\uDD4F","\uD835\uDD50","\u2124","\uD835\uDD52","\uD835\uDD53","\uD835\uDD54","\uD835\uDD55","\uD835\uDD56","\uD835\uDD57","\uD835\uDD58","\uD835\uDD59","\uD835\uDD5A","\uD835\uDD5B","\uD835\uDD5C","\uD835\uDD5D","\uD835\uDD5E","\uD835\uDD5F","\uD835\uDD60","\uD835\uDD61","\uD835\uDD62","\uD835\uDD63","\uD835\uDD64","\uD835\uDD65","\uD835\uDD66","\uD835\uDD67","\uD835\uDD68","\uD835\uDD69","\uD835\uDD6A","\uD835\uDD6B"];var c=0,A=1,U=2,i=3,b=4,h=5,a=6,L=7,V=8,m=9,Y=10,K=15;var k={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:Y};var z=[{input:"alpha",tag:"mi",output:"\u03B1",tex:null,ttype:c},{input:"beta",tag:"mi",output:"\u03B2",tex:null,ttype:c},{input:"chi",tag:"mi",output:"\u03C7",tex:null,ttype:c},{input:"delta",tag:"mi",output:"\u03B4",tex:null,ttype:c},{input:"Delta",tag:"mo",output:"\u0394",tex:null,ttype:c},{input:"epsi",tag:"mi",output:"\u03B5",tex:"epsilon",ttype:c},{input:"varepsilon",tag:"mi",output:"\u025B",tex:null,ttype:c},{input:"eta",tag:"mi",output:"\u03B7",tex:null,ttype:c},{input:"gamma",tag:"mi",output:"\u03B3",tex:null,ttype:c},{input:"Gamma",tag:"mo",output:"\u0393",tex:null,ttype:c},{input:"iota",tag:"mi",output:"\u03B9",tex:null,ttype:c},{input:"kappa",tag:"mi",output:"\u03BA",tex:null,ttype:c},{input:"lambda",tag:"mi",output:"\u03BB",tex:null,ttype:c},{input:"Lambda",tag:"mo",output:"\u039B",tex:null,ttype:c},{input:"lamda",tag:"mi",output:"\u03BB",tex:null,ttype:c},{input:"Lamda",tag:"mo",output:"\u039B",tex:null,ttype:c},{input:"mu",tag:"mi",output:"\u03BC",tex:null,ttype:c},{input:"nu",tag:"mi",output:"\u03BD",tex:null,ttype:c},{input:"omega",tag:"mi",output:"\u03C9",tex:null,ttype:c},{input:"Omega",tag:"mo",output:"\u03A9",tex:null,ttype:c},{input:"phi",tag:"mi",output:f?"\u03D5":"\u03C6",tex:null,ttype:c},{input:"varphi",tag:"mi",output:f?"\u03C6":"\u03D5",tex:null,ttype:c},{input:"Phi",tag:"mo",output:"\u03A6",tex:null,ttype:c},{input:"pi",tag:"mi",output:"\u03C0",tex:null,ttype:c},{input:"Pi",tag:"mo",output:"\u03A0",tex:null,ttype:c},{input:"psi",tag:"mi",output:"\u03C8",tex:null,ttype:c},{input:"Psi",tag:"mi",output:"\u03A8",tex:null,ttype:c},{input:"rho",tag:"mi",output:"\u03C1",tex:null,ttype:c},{input:"sigma",tag:"mi",output:"\u03C3",tex:null,ttype:c},{input:"Sigma",tag:"mo",output:"\u03A3",tex:null,ttype:c},{input:"tau",tag:"mi",output:"\u03C4",tex:null,ttype:c},{input:"theta",tag:"mi",output:"\u03B8",tex:null,ttype:c},{input:"vartheta",tag:"mi",output:"\u03D1",tex:null,ttype:c},{input:"Theta",tag:"mo",output:"\u0398",tex:null,ttype:c},{input:"upsilon",tag:"mi",output:"\u03C5",tex:null,ttype:c},{input:"xi",tag:"mi",output:"\u03BE",tex:null,ttype:c},{input:"Xi",tag:"mo",output:"\u039E",tex:null,ttype:c},{input:"zeta",tag:"mi",output:"\u03B6",tex:null,ttype:c},{input:"*",tag:"mo",output:"\u22C5",tex:"cdot",ttype:c},{input:"**",tag:"mo",output:"\u2217",tex:"ast",ttype:c},{input:"***",tag:"mo",output:"\u22C6",tex:"star",ttype:c},{input:"//",tag:"mo",output:"/",tex:null,ttype:c},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:c},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:c},{input:"xx",tag:"mo",output:"\u00D7",tex:"times",ttype:c},{input:"|><",tag:"mo",output:"\u22C9",tex:"ltimes",ttype:c},{input:"><|",tag:"mo",output:"\u22CA",tex:"rtimes",ttype:c},{input:"|><|",tag:"mo",output:"\u22C8",tex:"bowtie",ttype:c},{input:"-:",tag:"mo",output:"\u00F7",tex:"div",ttype:c},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:V},{input:"@",tag:"mo",output:"\u2218",tex:"circ",ttype:c},{input:"o+",tag:"mo",output:"\u2295",tex:"oplus",ttype:c},{input:"ox",tag:"mo",output:"\u2297",tex:"otimes",ttype:c},{input:"o.",tag:"mo",output:"\u2299",tex:"odot",ttype:c},{input:"sum",tag:"mo",output:"\u2211",tex:null,ttype:L},{input:"prod",tag:"mo",output:"\u220F",tex:null,ttype:L},{input:"^^",tag:"mo",output:"\u2227",tex:"wedge",ttype:c},{input:"^^^",tag:"mo",output:"\u22C0",tex:"bigwedge",ttype:L},{input:"vv",tag:"mo",output:"\u2228",tex:"vee",ttype:c},{input:"vvv",tag:"mo",output:"\u22C1",tex:"bigvee",ttype:L},{input:"nn",tag:"mo",output:"\u2229",tex:"cap",ttype:c},{input:"nnn",tag:"mo",output:"\u22C2",tex:"bigcap",ttype:L},{input:"uu",tag:"mo",output:"\u222A",tex:"cup",ttype:c},{input:"uuu",tag:"mo",output:"\u22C3",tex:"bigcup",ttype:L},{input:"!=",tag:"mo",output:"\u2260",tex:"ne",ttype:c},{input:":=",tag:"mo",output:":=",tex:null,ttype:c},{input:"lt",tag:"mo",output:"<",tex:null,ttype:c},{input:"<=",tag:"mo",output:"\u2264",tex:"le",ttype:c},{input:"lt=",tag:"mo",output:"\u2264",tex:"leq",ttype:c},{input:"gt",tag:"mo",output:">",tex:null,ttype:c},{input:">=",tag:"mo",output:"\u2265",tex:"ge",ttype:c},{input:"gt=",tag:"mo",output:"\u2265",tex:"geq",ttype:c},{input:"-<",tag:"mo",output:"\u227A",tex:"prec",ttype:c},{input:"-lt",tag:"mo",output:"\u227A",tex:null,ttype:c},{input:">-",tag:"mo",output:"\u227B",tex:"succ",ttype:c},{input:"-<=",tag:"mo",output:"\u2AAF",tex:"preceq",ttype:c},{input:">-=",tag:"mo",output:"\u2AB0",tex:"succeq",ttype:c},{input:"in",tag:"mo",output:"\u2208",tex:null,ttype:c},{input:"!in",tag:"mo",output:"\u2209",tex:"notin",ttype:c},{input:"sub",tag:"mo",output:"\u2282",tex:"subset",ttype:c},{input:"sup",tag:"mo",output:"\u2283",tex:"supset",ttype:c},{input:"sube",tag:"mo",output:"\u2286",tex:"subseteq",ttype:c},{input:"supe",tag:"mo",output:"\u2287",tex:"supseteq",ttype:c},{input:"-=",tag:"mo",output:"\u2261",tex:"equiv",ttype:c},{input:"~=",tag:"mo",output:"\u2245",tex:"cong",ttype:c},{input:"~~",tag:"mo",output:"\u2248",tex:"approx",ttype:c},{input:"prop",tag:"mo",output:"\u221D",tex:"propto",ttype:c},{input:"and",tag:"mtext",output:"and",tex:null,ttype:a},{input:"or",tag:"mtext",output:"or",tex:null,ttype:a},{input:"not",tag:"mo",output:"\u00AC",tex:"neg",ttype:c},{input:"=>",tag:"mo",output:"\u21D2",tex:"implies",ttype:c},{input:"if",tag:"mo",output:"if",tex:null,ttype:a},{input:"<=>",tag:"mo",output:"\u21D4",tex:"iff",ttype:c},{input:"AA",tag:"mo",output:"\u2200",tex:"forall",ttype:c},{input:"EE",tag:"mo",output:"\u2203",tex:"exists",ttype:c},{input:"_|_",tag:"mo",output:"\u22A5",tex:"bot",ttype:c},{input:"TT",tag:"mo",output:"\u22A4",tex:"top",ttype:c},{input:"|--",tag:"mo",output:"\u22A2",tex:"vdash",ttype:c},{input:"|==",tag:"mo",output:"\u22A8",tex:"models",ttype:c},{input:"(",tag:"mo",output:"(",tex:null,ttype:b},{input:")",tag:"mo",output:")",tex:null,ttype:h},{input:"[",tag:"mo",output:"[",tex:null,ttype:b},{input:"]",tag:"mo",output:"]",tex:null,ttype:h},{input:"{",tag:"mo",output:"{",tex:null,ttype:b},{input:"}",tag:"mo",output:"}",tex:null,ttype:h},{input:"|",tag:"mo",output:"|",tex:null,ttype:m},{input:"(:",tag:"mo",output:"\u2329",tex:"langle",ttype:b},{input:":)",tag:"mo",output:"\u232A",tex:"rangle",ttype:h},{input:"<<",tag:"mo",output:"\u2329",tex:null,ttype:b},{input:">>",tag:"mo",output:"\u232A",tex:null,ttype:h},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:b,invisible:true},{input:":}",tag:"mo",output:":}",tex:null,ttype:h,invisible:true},{input:"int",tag:"mo",output:"\u222B",tex:null,ttype:c},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:V},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:V},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:V},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:V},{input:"oint",tag:"mo",output:"\u222E",tex:null,ttype:c},{input:"del",tag:"mo",output:"\u2202",tex:"partial",ttype:c},{input:"grad",tag:"mo",output:"\u2207",tex:"nabla",ttype:c},{input:"+-",tag:"mo",output:"\u00B1",tex:"pm",ttype:c},{input:"O/",tag:"mo",output:"\u2205",tex:"emptyset",ttype:c},{input:"oo",tag:"mo",output:"\u221E",tex:"infty",ttype:c},{input:"aleph",tag:"mo",output:"\u2135",tex:null,ttype:c},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:c},{input:":.",tag:"mo",output:"\u2234",tex:"therefore",ttype:c},{input:":'",tag:"mo",output:"\u2235",tex:"because",ttype:c},{input:"/_",tag:"mo",output:"\u2220",tex:"angle",ttype:c},{input:"/_\\",tag:"mo",output:"\u25B3",tex:"triangle",ttype:c},{input:"'",tag:"mo",output:"\u2032",tex:"prime",ttype:c},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:A,acc:true},{input:"\\ ",tag:"mo",output:"\u00A0",tex:null,ttype:c},{input:"frown",tag:"mo",output:"\u2322",tex:null,ttype:c},{input:"quad",tag:"mo",output:"\u00A0\u00A0",tex:null,ttype:c},{input:"qquad",tag:"mo",output:"\u00A0\u00A0\u00A0\u00A0",tex:null,ttype:c},{input:"cdots",tag:"mo",output:"\u22EF",tex:null,ttype:c},{input:"vdots",tag:"mo",output:"\u22EE",tex:null,ttype:c},{input:"ddots",tag:"mo",output:"\u22F1",tex:null,ttype:c},{input:"diamond",tag:"mo",output:"\u22C4",tex:null,ttype:c},{input:"square",tag:"mo",output:"\u25A1",tex:null,ttype:c},{input:"|__",tag:"mo",output:"\u230A",tex:"lfloor",ttype:c},{input:"__|",tag:"mo",output:"\u230B",tex:"rfloor",ttype:c},{input:"|~",tag:"mo",output:"\u2308",tex:"lceiling",ttype:c},{input:"~|",tag:"mo",output:"\u2309",tex:"rceiling",ttype:c},{input:"CC",tag:"mo",output:"\u2102",tex:null,ttype:c},{input:"NN",tag:"mo",output:"\u2115",tex:null,ttype:c},{input:"QQ",tag:"mo",output:"\u211A",tex:null,ttype:c},{input:"RR",tag:"mo",output:"\u211D",tex:null,ttype:c},{input:"ZZ",tag:"mo",output:"\u2124",tex:null,ttype:c},{input:"f",tag:"mi",output:"f",tex:null,ttype:A,func:true},{input:"g",tag:"mi",output:"g",tex:null,ttype:A,func:true},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:L},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:L},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:A,func:true},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:A,func:true},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:A,func:true},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:A,func:true},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:A,func:true},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:A,func:true},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:A,func:true},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:A,func:true},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:A,func:true},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:A,func:true},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:A,func:true},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:A,func:true},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:A,func:true},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:A,func:true},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:A,func:true},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:A,func:true},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:A,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:A,rewriteleftright:["\u2225","\u2225"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:A,rewriteleftright:["\u230A","\u230B"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:A,rewriteleftright:["\u2308","\u2309"]},{input:"log",tag:"mo",output:"log",tex:null,ttype:A,func:true},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:A,func:true},{input:"det",tag:"mo",output:"det",tex:null,ttype:A,func:true},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:c},{input:"mod",tag:"mo",output:"mod",tex:null,ttype:c},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:A,func:true},{input:"lcm",tag:"mo",output:"lcm",tex:null,ttype:A,func:true},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:c},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:c},{input:"min",tag:"mo",output:"min",tex:null,ttype:L},{input:"max",tag:"mo",output:"max",tex:null,ttype:L},{input:"uarr",tag:"mo",output:"\u2191",tex:"uparrow",ttype:c},{input:"darr",tag:"mo",output:"\u2193",tex:"downarrow",ttype:c},{input:"rarr",tag:"mo",output:"\u2192",tex:"rightarrow",ttype:c},{input:"->",tag:"mo",output:"\u2192",tex:"to",ttype:c},{input:">->",tag:"mo",output:"\u21A3",tex:"rightarrowtail",ttype:c},{input:"->>",tag:"mo",output:"\u21A0",tex:"twoheadrightarrow",ttype:c},{input:">->>",tag:"mo",output:"\u2916",tex:"twoheadrightarrowtail",ttype:c},{input:"|->",tag:"mo",output:"\u21A6",tex:"mapsto",ttype:c},{input:"larr",tag:"mo",output:"\u2190",tex:"leftarrow",ttype:c},{input:"harr",tag:"mo",output:"\u2194",tex:"leftrightarrow",ttype:c},{input:"rArr",tag:"mo",output:"\u21D2",tex:"Rightarrow",ttype:c},{input:"lArr",tag:"mo",output:"\u21D0",tex:"Leftarrow",ttype:c},{input:"hArr",tag:"mo",output:"\u21D4",tex:"Leftrightarrow",ttype:c},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:A},{input:"root",tag:"mroot",output:"root",tex:null,ttype:U},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:U},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:i},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:U},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:U},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:U},{input:"_",tag:"msub",output:"_",tex:null,ttype:i},{input:"^",tag:"msup",output:"^",tex:null,ttype:i},{input:"hat",tag:"mover",output:"\u005E",tex:null,ttype:A,acc:true},{input:"bar",tag:"mover",output:"\u00AF",tex:"overline",ttype:A,acc:true},{input:"vec",tag:"mover",output:"\u2192",tex:null,ttype:A,acc:true},{input:"dot",tag:"mover",output:".",tex:null,ttype:A,acc:true},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:A,acc:true},{input:"ul",tag:"munder",output:"\u0332",tex:"underline",ttype:A,acc:true},{input:"ubrace",tag:"munder",output:"\u23DF",tex:"underbrace",ttype:K,acc:true},{input:"obrace",tag:"mover",output:"\u23DE",tex:"overbrace",ttype:K,acc:true},{input:"text",tag:"mtext",output:"text",tex:null,ttype:Y},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:Y},{input:"color",tag:"mstyle",ttype:U},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:A},k,{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:null,ttype:A},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:A},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:null,ttype:A},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:A},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:null,ttype:A,codes:w},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:A,codes:w},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:null,ttype:A,codes:D},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:A,codes:D},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:null,ttype:A},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:A},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:null,ttype:A,codes:H},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:A,codes:H}];function T(ad,ac){if(ad.input>ac.input){return 1}else{return -1}}var S=[];function n(){var ad;var ac=z.length;for(ad=0;ad>1;if(ad[ac]=S[ac]}s=y;if(ag!=""){y=z[af].ttype;return z[af]}y=c;ac=1;al=ai.slice(0,1);var aj=true;while("0"<=al&&al<="9"&&ac<=ai.length){al=ai.slice(ac,ac+1);ac++}if(al==d){al=ai.slice(ac,ac+1);if("0"<=al&&al<="9"){aj=false;ac++;while("0"<=al&&al<="9"&&ac<=ai.length){al=ai.slice(ac,ac+1);ac++}}}if((aj&&ac>1)||ac>2){al=ai.slice(0,ac-1);ak="mn"}else{ac=2;al=ai.slice(0,1);ak=(("A">al||al>"Z")&&("a">al||al>"z")?"mo":"mi")}if(al=="-"&&s==i){y=i;return{input:al,tag:ak,output:al,ttype:A,func:true}}return{input:al,tag:ak,output:al,ttype:c}}function R(ad){var ac;if(!ad.hasChildNodes()){return}if(ad.firstChild.hasChildNodes()&&(ad.nodeName=="mrow"||ad.nodeName=="M:MROW")){ac=ad.firstChild.firstChild.nodeValue;if(ac=="("||ac=="["||ac=="{"){ad.removeChild(ad.firstChild)}}if(ad.lastChild.hasChildNodes()&&(ad.nodeName=="mrow"||ad.nodeName=="M:MROW")){ac=ad.lastChild.firstChild.nodeValue;if(ac==")"||ac=="]"||ac=="}"){ad.removeChild(ad.lastChild)}}}var F,s,y;function G(ai){var ae,ad,al,ag,ak,ah=e.createDocumentFragment();ai=p(ai,0);ae=j(ai);if(ae==null||ae.ttype==h&&F>0){return[null,ai]}if(ae.ttype==V){ai=ae.output+p(ai,ae.input.length);ae=j(ai)}switch(ae.ttype){case L:case c:ai=p(ai,ae.input.length);return[O(ae.tag,e.createTextNode(ae.output)),ai];case b:F++;ai=p(ai,ae.input.length);al=q(ai,true);F--;if(typeof ae.invisible=="boolean"&&ae.invisible){ad=O("mrow",al[0])}else{ad=O("mo",e.createTextNode(ae.output));ad=O("mrow",ad);ad.appendChild(al[0])}return[ad,al[1]];case Y:if(ae!=k){ai=p(ai,ae.input.length)}if(ai.charAt(0)=="{"){ag=ai.indexOf("}")}else{if(ai.charAt(0)=="("){ag=ai.indexOf(")")}else{if(ai.charAt(0)=="["){ag=ai.indexOf("]")}else{if(ae==k){ag=ai.slice(1).indexOf('"')+1}else{ag=0}}}}if(ag==-1){ag=ai.length}ak=ai.slice(1,ag);if(ak.charAt(0)==" "){ad=O("mspace");ad.setAttribute("width","1ex");ah.appendChild(ad)}ah.appendChild(O(ae.tag,e.createTextNode(ak)));if(ak.charAt(ak.length-1)==" "){ad=O("mspace");ad.setAttribute("width","1ex");ah.appendChild(ad)}ai=p(ai,ag+1);return[O("mrow",ah),ai];case K:case A:ai=p(ai,ae.input.length);al=G(ai);if(al[0]==null){return[O(ae.tag,e.createTextNode(ae.output)),ai]}if(typeof ae.func=="boolean"&&ae.func){ak=ai.charAt(0);if(ak=="^"||ak=="_"||ak=="/"||ak=="|"||ak==","||(ae.input.length==1&&ae.input.match(/\w/)&&ak!="(")){return[O(ae.tag,e.createTextNode(ae.output)),ai]}else{ad=O("mrow",O(ae.tag,e.createTextNode(ae.output)));ad.appendChild(al[0]);return[ad,al[1]]}}R(al[0]);if(ae.input=="sqrt"){return[O(ae.tag,al[0]),al[1]]}else{if(typeof ae.rewriteleftright!="undefined"){ad=O("mrow",O("mo",e.createTextNode(ae.rewriteleftright[0])));ad.appendChild(al[0]);ad.appendChild(O("mo",e.createTextNode(ae.rewriteleftright[1])));return[ad,al[1]]}else{if(ae.input=="cancel"){ad=O(ae.tag,al[0]);ad.setAttribute("notation","updiagonalstrike");return[ad,al[1]]}else{if(typeof ae.acc=="boolean"&&ae.acc){ad=O(ae.tag,al[0]);ad.appendChild(O("mo",e.createTextNode(ae.output)));return[ad,al[1]]}else{if(!l&&typeof ae.codes!="undefined"){for(ag=0;ag64&&ak.charCodeAt(af)<91){aj=aj+ae.codes[ak.charCodeAt(af)-65]}else{if(ak.charCodeAt(af)>96&&ak.charCodeAt(af)<123){aj=aj+ae.codes[ak.charCodeAt(af)-71]}else{aj=aj+ak.charAt(af)}}}if(al[0].nodeName=="mi"){al[0]=O("mo").appendChild(e.createTextNode(aj))}else{al[0].replaceChild(O("mo").appendChild(e.createTextNode(aj)),al[0].childNodes[ag])}}}}ad=O(ae.tag,al[0]);ad.setAttribute(ae.atname,ae.atval);return[ad,al[1]]}}}}case U:ai=p(ai,ae.input.length);al=G(ai);if(al[0]==null){return[O("mo",e.createTextNode(ae.input)),ai]}R(al[0]);var ac=G(al[1]);if(ac[0]==null){return[O("mo",e.createTextNode(ae.input)),ai]}R(ac[0]);if(ae.input=="color"){if(ai.charAt(0)=="{"){ag=ai.indexOf("}")}else{if(ai.charAt(0)=="("){ag=ai.indexOf(")")}else{if(ai.charAt(0)=="["){ag=ai.indexOf("]")}}}ak=ai.slice(1,ag);ad=O(ae.tag,ac[0]);ad.setAttribute("mathcolor",ak);return[ad,ac[1]]}if(ae.input=="root"||ae.output=="stackrel"){ah.appendChild(ac[0])}ah.appendChild(al[0]);if(ae.input=="frac"){ah.appendChild(ac[0])}return[O(ae.tag,ah),ac[1]];case i:ai=p(ai,ae.input.length);return[O("mo",e.createTextNode(ae.output)),ai];case a:ai=p(ai,ae.input.length);ad=O("mspace");ad.setAttribute("width","1ex");ah.appendChild(ad);ah.appendChild(O(ae.tag,e.createTextNode(ae.output)));ad=O("mspace");ad.setAttribute("width","1ex");ah.appendChild(ad);return[O("mrow",ah),ai];case m:F++;ai=p(ai,ae.input.length);al=q(ai,false);F--;ak="";if(al[0].lastChild!=null){ak=al[0].lastChild.firstChild.nodeValue}if(ak=="|"){ad=O("mo",e.createTextNode(ae.output));ad=O("mrow",ad);ad.appendChild(al[0]);return[ad,al[1]]}else{ad=O("mo",e.createTextNode("\u2223"));ad=O("mrow",ad);return[ad,ai]}default:ai=p(ai,ae.input.length);return[O(ae.tag,e.createTextNode(ae.output)),ai]}}function t(ai){var ag,aj,ah,af,ac,ae;ai=p(ai,0);aj=j(ai);ac=G(ai);af=ac[0];ai=ac[1];ag=j(ai);if(ag.ttype==i&&ag.input!="/"){ai=p(ai,ag.input.length);ac=G(ai);if(ac[0]==null){ac[0]=O("mo",e.createTextNode("\u25A1"))}else{R(ac[0])}ai=ac[1];ae=(aj.ttype==L||aj.ttype==K);if(ag.input=="_"){ah=j(ai);if(ah.input=="^"){ai=p(ai,ah.input.length);var ad=G(ai);R(ad[0]);ai=ad[1];af=O((ae?"munderover":"msubsup"),af);af.appendChild(ac[0]);af.appendChild(ad[0]);af=O("mrow",af)}else{af=O((ae?"munder":"msub"),af);af.appendChild(ac[0])}}else{if(ag.input=="^"&&ae){af=O("mover",af);af.appendChild(ac[0])}else{af=O(ag.tag,af);af.appendChild(ac[0])}}if(typeof aj.func!="undefined"&&aj.func){ah=j(ai);if(ah.ttype!=i&&ah.ttype!=h){ac=t(ai);af=O("mrow",af);af.appendChild(ac[0]);ai=ac[1]}}}return[af,ai]}function q(ak,aj){var ao,al,ag,ar,ah=e.createDocumentFragment();do{ak=p(ak,0);ag=t(ak);al=ag[0];ak=ag[1];ao=j(ak);if(ao.ttype==i&&ao.input=="/"){ak=p(ak,ao.input.length);ag=t(ak);if(ag[0]==null){ag[0]=O("mo",e.createTextNode("\u25A1"))}else{R(ag[0])}ak=ag[1];R(al);al=O(ao.tag,al);al.appendChild(ag[0]);ah.appendChild(al);ao=j(ak)}else{if(al!=undefined){ah.appendChild(al)}}}while((ao.ttype!=h&&(ao.ttype!=m||aj)||F==0)&&ao!=null&&ao.output!="");if(ao.ttype==h||ao.ttype==m){var at=ah.childNodes.length;if(at>0&&ah.childNodes[at-1].nodeName=="mrow"&&ah.childNodes[at-1].lastChild&&ah.childNodes[at-1].lastChild.firstChild){var av=ah.childNodes[at-1].lastChild.firstChild.nodeValue;if(av==")"||av=="]"){var ad=ah.childNodes[at-1].firstChild.firstChild.nodeValue;if(ad=="("&&av==")"&&ao.output!="}"||ad=="["&&av=="]"){var ae=[];var ap=true;var am=ah.childNodes.length;for(ar=0;ap&&ar1){ap=ae[ar].length==ae[ar-2].length}}ap=ap&&(ae.length>1||ae[0].length>0);if(ap){var af,ac,ai,an,au=e.createDocumentFragment();for(ar=0;ar2){ah.removeChild(ah.firstChild);ah.removeChild(ah.firstChild)}au.appendChild(O("mtr",af))}al=O("mtable",au);if(typeof ao.invisible=="boolean"&&ao.invisible){al.setAttribute("columnalign","left")}ah.replaceChild(al,ah.firstChild)}}}}ak=p(ak,ao.input.length);if(typeof ao.invisible!="boolean"||!ao.invisible){al=O("mo",e.createTextNode(ao.output));ah.appendChild(al)}}return[ah,ak]}function M(ae,ad){var af,ac;F=0;ae=ae.replace(/ /g,"");ae=ae.replace(/>/g,">");ae=ae.replace(/</g,"<");ae=ae.replace(/(Sin|Cos|Tan|Arcsin|Arccos|Arctan|Sinh|Cosh|Tanh|Cot|Sec|Csc|Log|Ln|Abs)/g,function(ag){return ag.toLowerCase()});af=q(ae.replace(/^\s+/g,""),false)[0];ac=O("mstyle",af);if(C!=""){ac.setAttribute("mathcolor",C)}if(Z!=""){ac.setAttribute("fontfamily",Z)}if(o){ac.setAttribute("displaystyle","true")}ac=O("math",ac);if(v){ac.setAttribute("title",ae.replace(/\s+/g," "))}return ac}v=false;Z="";C="";(function(){for(var ad=0,ac=z.length;ad element, not %1","<"+j.firstChild.nodeName+">"])}var i={math:j.firstChild,script:e};c.DOMfilterHooks.Execute(i);this.mml=this.MakeMML(i.math)},MakeMML:function(h){var i=String(h.getAttribute("class")||"");var f,g=h.nodeName.toLowerCase().replace(/^[a-z]+:/,"");var e=(i.match(/(^| )MJX-TeXAtom-([^ ]*)/));if(e){f=this.TeXAtom(e[2],e[2]==="OP"&&!i.match(/MJX-fixedlimits/))}else{if(!(a[g]&&a[g].isa&&a[g].isa(a.mbase))){MathJax.Hub.signal.Post(["MathML Jax - unknown node type",g]);return a.Error(b("UnknownNodeType","Unknown node type: %1",g))}else{f=a[g]()}}this.AddAttributes(f,h);this.CheckClass(f,f["class"]);this.AddChildren(f,h);if(c.config.useMathMLspacing){f.useMMLspacing=8}return f},TeXAtom:function(g,f){var e=a.TeXAtom().With({texClass:a.TEXCLASS[g]});if(f){e.movesupsub=e.movablelimits=true}return e},CheckClass:function(f,h){h=(h||"").split(/ /);var j=[];for(var g=0,e=h.length;g=2){var l=e.data[0],n=e.data[e.data.length-1];if(l.type==="mo"&&l.Get("fence")&&n.type==="mo"&&n.Get("fence")){if(l.data[0]){e.open=l.data.join("")}if(n.data[0]){e.close=n.data.join("")}}}},preProcessMath:function(f){if(f.match(/^<[a-z]+:/i)&&!f.match(/^<[^<>]* xmlns:/)){f=f.replace(/^<([a-z]+)(:math)/i,'<$1$2 xmlns:$1="http://www.w3.org/1998/Math/MathML"')}var e=f.match(/^(])+)>)/i);if(e&&e[2].match(/ (?!xmlns=)[a-z]+=\"http:/i)){f=e[1].replace(/ (?!xmlns=)([a-z]+=(['"])http:.*?\2)/ig," xmlns:$1 $1")+f.substr(e[0].length)}if(f.match(/^]* xmlns=/)){f=f.replace(/^<(math)/i,'\s*$/,"$2");return f.replace(/&([a-z][a-z0-9]*);/ig,this.replaceEntity)},trimSpace:function(e){return e.replace(/[\t\n\r]/g," ").replace(/^ +/,"").replace(/ +$/,"").replace(/ +/g," ")},replaceEntity:function(g,f){if(f.match(/^(lt|amp|quot)$/)){return g}if(c.Parse.Entity[f]){return c.Parse.Entity[f]}var h=f.charAt(0).toLowerCase();var e=f.match(/^[a-zA-Z](fr|scr|opf)$/);if(e){h=e[1]}if(!c.Parse.loaded[h]){c.Parse.loaded[h]=true;MathJax.Hub.RestartAfter(MathJax.Ajax.Require(c.entityDir+"/"+h+".js"))}return g}},{loaded:[]});c.Augment({sourceMenuTitle:["OriginalMathML","Original MathML"],prefilterHooks:MathJax.Callback.Hooks(true),DOMfilterHooks:MathJax.Callback.Hooks(true),postfilterHooks:MathJax.Callback.Hooks(true),Translate:function(e){if(!this.ParseXML){this.ParseXML=this.createParser()}var f,h,i={script:e};if(e.firstChild&&e.firstChild.nodeName.toLowerCase().replace(/^[a-z]+:/,"")==="math"){i.math=e.firstChild}else{h=MathJax.HTML.getScript(e);if(d.isMSIE){h=h.replace(/( )+$/,"")}i.math=h}var j=this.prefilterHooks.Execute(i);if(j){return j}h=i.math;try{f=c.Parse(h,e).mml}catch(g){if(!g.mathmlError){throw g}f=this.formatError(g,h,e)}i.math=a(f);return this.postfilterHooks.Execute(i)||i.math},prefilterMath:function(f,e){return f},prefilterMathML:function(f,e){return f},formatError:function(h,g,e){var f=h.message.replace(/\n.*/,"");MathJax.Hub.signal.Post(["MathML Jax - parse error",f,g,e]);return a.Error(f)},Error:function(e){if(MathJax.Object.isArray(e)){e=b.apply(b,e)}throw MathJax.Hub.Insert(Error(e),{mathmlError:true})},parseDOM:function(e){return this.parser.parseFromString(e,"text/xml")},parseMS:function(e){return(this.parser.loadXML(e)?this.parser:null)},parseDIV:function(e){this.div.innerHTML="
    "+e.replace(/<([a-z]+)([^>]*)\/>/g,"<$1$2>")+"
    ";var f=this.div.firstChild;this.div.innerHTML="";return f},parseError:function(e){return null},createMSParser:function(){var j=null;var f=["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.5.0","MSXML2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument.2.0","Microsoft.XMLDOM"];for(var g=0,e=f.length;g&]/g,"")},formatURL:function(b,a){return a+"#"+escape(b)},useLabelIds:true}},resetEquationNumbers:function(){}});MathJax.InputJax.TeX.Register("math/tex");MathJax.InputJax.TeX.loadComplete("config.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/input/TeX/jax.js b/qt/aqt/data/web/js/vendor/mathjax/jax/input/TeX/jax.js deleted file mode 100755 index 824a1fbdb..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/input/TeX/jax.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/input/TeX/jax.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(d,c,j){var i,h="\u00A0";var k=function(m){return MathJax.Localization._.apply(MathJax.Localization,[["TeX",m]].concat([].slice.call(arguments,1)))};var f=MathJax.Object.isArray;var e=MathJax.Object.Subclass({Init:function(n,m){this.global={isInner:m};this.data=[b.start(this.global)];if(n){this.data[0].env=n}this.env=this.data[0].env},Push:function(){var o,n,p,q;for(o=0,n=arguments.length;o":"27E9","\\lt":"27E8","\\gt":"27E9","/":"/","|":["|",{texClass:i.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"23B0","\\rmoustache":"23B1","\\lgroup":"27EE","\\rgroup":"27EF","\\arrowvert":"23D0","\\Arrowvert":"2016","\\bracevert":"23AA","\\Vert":["2016",{texClass:i.TEXCLASS.ORD}],"\\|":["2016",{texClass:i.TEXCLASS.ORD}],"\\vert":["|",{texClass:i.TEXCLASS.ORD}],"\\uparrow":"2191","\\downarrow":"2193","\\updownarrow":"2195","\\Uparrow":"21D1","\\Downarrow":"21D3","\\Updownarrow":"21D5","\\backslash":"\\","\\rangle":"27E9","\\langle":"27E8","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"2309","\\lceil":"2308","\\rfloor":"230B","\\lfloor":"230A","\\lbrack":"[","\\rbrack":"]"},macros:{displaystyle:["SetStyle","D",true,0],textstyle:["SetStyle","T",false,0],scriptstyle:["SetStyle","S",false,1],scriptscriptstyle:["SetStyle","SS",false,2],rm:["SetFont",i.VARIANT.NORMAL],mit:["SetFont",i.VARIANT.ITALIC],oldstyle:["SetFont",i.VARIANT.OLDSTYLE],cal:["SetFont",i.VARIANT.CALIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",i.VARIANT.BOLD],bbFont:["SetFont",i.VARIANT.DOUBLESTRUCK],scr:["SetFont",i.VARIANT.SCRIPT],frak:["SetFont",i.VARIANT.FRAKTUR],sf:["SetFont",i.VARIANT.SANSSERIF],tt:["SetFont",i.VARIANT.MONOSPACE],tiny:["SetSize",0.5],Tiny:["SetSize",0.6],scriptsize:["SetSize",0.7],small:["SetSize",0.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],arcsin:["NamedFn"],arccos:["NamedFn"],arctan:["NamedFn"],arg:["NamedFn"],cos:["NamedFn"],cosh:["NamedFn"],cot:["NamedFn"],coth:["NamedFn"],csc:["NamedFn"],deg:["NamedFn"],det:"NamedOp",dim:["NamedFn"],exp:["NamedFn"],gcd:"NamedOp",hom:["NamedFn"],inf:"NamedOp",ker:["NamedFn"],lg:["NamedFn"],lim:"NamedOp",liminf:["NamedOp","lim inf"],limsup:["NamedOp","lim sup"],ln:["NamedFn"],log:["NamedFn"],max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:["NamedFn"],sin:["NamedFn"],sinh:["NamedFn"],sup:"NamedOp",tan:["NamedFn"],tanh:["NamedFn"],limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","00AF",null,1],underline:["UnderOver","005F"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"Middle",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",i.LENGTH.THINMATHSPACE],":":["Spacer",i.LENGTH.MEDIUMMATHSPACE],">":["Spacer",i.LENGTH.MEDIUMMATHSPACE],";":["Spacer",i.LENGTH.THICKMATHSPACE],"!":["Spacer",i.LENGTH.NEGATIVETHINMATHSPACE],enspace:["Spacer",".5em"],quad:["Spacer","1em"],qquad:["Spacer","2em"],thinspace:["Spacer",i.LENGTH.THINMATHSPACE],negthinspace:["Spacer",i.LENGTH.NEGATIVETHINMATHSPACE],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",Rule:["Rule"],Space:["Rule","blank"],big:["MakeBig",i.TEXCLASS.ORD,0.85],Big:["MakeBig",i.TEXCLASS.ORD,1.15],bigg:["MakeBig",i.TEXCLASS.ORD,1.45],Bigg:["MakeBig",i.TEXCLASS.ORD,1.75],bigl:["MakeBig",i.TEXCLASS.OPEN,0.85],Bigl:["MakeBig",i.TEXCLASS.OPEN,1.15],biggl:["MakeBig",i.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",i.TEXCLASS.OPEN,1.75],bigr:["MakeBig",i.TEXCLASS.CLOSE,0.85],Bigr:["MakeBig",i.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",i.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",i.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",i.TEXCLASS.REL,0.85],Bigm:["MakeBig",i.TEXCLASS.REL,1.15],biggm:["MakeBig",i.TEXCLASS.REL,1.45],Biggm:["MakeBig",i.TEXCLASS.REL,1.75],mathord:["TeXAtom",i.TEXCLASS.ORD],mathop:["TeXAtom",i.TEXCLASS.OP],mathopen:["TeXAtom",i.TEXCLASS.OPEN],mathclose:["TeXAtom",i.TEXCLASS.CLOSE],mathbin:["TeXAtom",i.TEXCLASS.BIN],mathrel:["TeXAtom",i.TEXCLASS.REL],mathpunct:["TeXAtom",i.TEXCLASS.PUNCT],mathinner:["TeXAtom",i.TEXCLASS.INNER],vcenter:["TeXAtom",i.TEXCLASS.VCENTER],mathchoice:["Extension","mathchoice"],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em",null,true],eqalign:["Matrix",null,null,"right left",i.LENGTH.THICKMATHSPACE,".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:"Cr",hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",i.LENGTH.THICKMATHSPACE,".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",i.LENGTH.THICKMATHSPACE,".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="thickmathspace" rspace="thickmathspace"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],mathcal:["Macro","{\\cal #1}",1],mathscr:["Macro","{\\scr #1}",1],mathrm:["Macro","{\\rm #1}",1],mathbf:["Macro","{\\bf #1}",1],mathbb:["Macro","{\\bbFont #1}",1],Bbb:["Macro","{\\bbFont #1}",1],mathit:["Macro","{\\it #1}",1],mathfrak:["Macro","{\\frak #1}",1],mathsf:["Macro","{\\sf #1}",1],mathtt:["Macro","{\\tt #1}",1],textrm:["Macro","\\mathord{\\rm\\text{#1}}",1],textit:["Macro","\\mathord{\\it\\text{#1}}",1],textbf:["Macro","\\mathord{\\bf\\text{#1}}",1],textsf:["Macro","\\mathord{\\sf\\text{#1}}",1],texttt:["Macro","\\mathord{\\tt\\text{#1}}",1],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde","\u00A0":"Tilde",begin:"BeginEnd",end:"BeginEnd",newcommand:["Extension","newcommand"],renewcommand:["Extension","newcommand"],newenvironment:["Extension","newcommand"],renewenvironment:["Extension","newcommand"],def:["Extension","newcommand"],let:["Extension","newcommand"],verb:["Extension","verb"],boldsymbol:["Extension","boldsymbol"],tag:["Extension","AMSmath"],notag:["Extension","AMSmath"],label:["Extension","AMSmath"],ref:["Extension","AMSmath"],eqref:["Extension","AMSmath"],nonumber:["Macro","\\notag"],unicode:["Extension","unicode"],color:"Color",href:["Extension","HTML"],"class":["Extension","HTML"],style:["Extension","HTML"],cssId:["Extension","HTML"],bbox:["Extension","bbox"],mmlToken:"MmlToken",require:"Require"},environment:{array:["AlignedArray"],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"],equation:[null,"Equation"],"equation*":[null,"Equation"],eqnarray:["ExtensionEnv",null,"AMSmath"],"eqnarray*":["ExtensionEnv",null,"AMSmath"],align:["ExtensionEnv",null,"AMSmath"],"align*":["ExtensionEnv",null,"AMSmath"],aligned:["ExtensionEnv",null,"AMSmath"],multline:["ExtensionEnv",null,"AMSmath"],"multline*":["ExtensionEnv",null,"AMSmath"],split:["ExtensionEnv",null,"AMSmath"],gather:["ExtensionEnv",null,"AMSmath"],"gather*":["ExtensionEnv",null,"AMSmath"],gathered:["ExtensionEnv",null,"AMSmath"],alignat:["ExtensionEnv",null,"AMSmath"],"alignat*":["ExtensionEnv",null,"AMSmath"],alignedat:["ExtensionEnv",null,"AMSmath"]},p_height:1.2/0.85});if(this.config.Macros){var m=this.config.Macros;for(var n in m){if(m.hasOwnProperty(n)){if(typeof(m[n])==="string"){g.macros[n]=["Macro",m[n]]}else{g.macros[n]=["Macro"].concat(m[n])}g.macros[n].isUser=true}}}};var a=MathJax.Object.Subclass({Init:function(n,o){this.string=n;this.i=0;this.macroCount=0;var m;if(o){m={};for(var p in o){if(o.hasOwnProperty(p)){m[p]=o[p]}}}this.stack=d.Stack(m,!!o);this.Parse();this.Push(b.stop())},Parse:function(){var o,m;while(this.i=55296&&m<56320){o+=this.string.charAt(this.i++)}if(g.special[o]){this[g.special[o]](o)}else{if(g.letter.test(o)){this.Variable(o)}else{if(g.digit.test(o)){this.Number(o)}else{this.Other(o)}}}}},Push:function(){this.stack.Push.apply(this.stack,arguments)},mml:function(){if(this.stack.Top().type!=="mml"){return null}return this.stack.Top().data[0]},mmlToken:function(m){return m},ControlSequence:function(p){var m=this.GetCS(),o=this.csFindMacro(m);if(o){if(!f(o)){o=[o]}var n=o[0];if(!(n instanceof Function)){n=this[n]}n.apply(this,[p+m].concat(o.slice(1)))}else{if(g.mathchar0mi[m]){this.csMathchar0mi(m,g.mathchar0mi[m])}else{if(g.mathchar0mo[m]){this.csMathchar0mo(m,g.mathchar0mo[m])}else{if(g.mathchar7[m]){this.csMathchar7(m,g.mathchar7[m])}else{if(g.delimiter["\\"+m]!=null){this.csDelimiter(m,g.delimiter["\\"+m])}else{this.csUndefined(p+m)}}}}}},csFindMacro:function(m){return g.macros[m]},csMathchar0mi:function(m,o){var n={mathvariant:i.VARIANT.ITALIC};if(f(o)){n=o[1];o=o[0]}this.Push(this.mmlToken(i.mi(i.entity("#x"+o)).With(n)))},csMathchar0mo:function(m,o){var n={stretchy:false};if(f(o)){n=o[1];n.stretchy=false;o=o[0]}this.Push(this.mmlToken(i.mo(i.entity("#x"+o)).With(n)))},csMathchar7:function(m,o){var n={mathvariant:i.VARIANT.NORMAL};if(f(o)){n=o[1];o=o[0]}if(this.stack.env.font){n.mathvariant=this.stack.env.font}this.Push(this.mmlToken(i.mi(i.entity("#x"+o)).With(n)))},csDelimiter:function(m,o){var n={};if(f(o)){n=o[1];o=o[0]}if(o.length===4){o=i.entity("#x"+o)}else{o=i.chars(o)}this.Push(this.mmlToken(i.mo(o).With({fence:false,stretchy:false}).With(n)))},csUndefined:function(m){d.Error(["UndefinedControlSequence","Undefined control sequence %1",m])},Variable:function(n){var m={};if(this.stack.env.font){m.mathvariant=this.stack.env.font}this.Push(this.mmlToken(i.mi(i.chars(n)).With(m)))},Number:function(p){var m,o=this.string.slice(this.i-1).match(g.number);if(o){m=i.mn(o[0].replace(/[{}]/g,""));this.i+=o[0].length-1}else{m=i.mo(i.chars(p))}if(this.stack.env.font){m.mathvariant=this.stack.env.font}this.Push(this.mmlToken(m))},Open:function(m){this.Push(b.open())},Close:function(m){this.Push(b.close())},Tilde:function(m){this.Push(i.mtext(i.chars(h)))},Space:function(m){},Superscript:function(r){if(this.GetNext().match(/\d/)){this.string=this.string.substr(0,this.i+1)+" "+this.string.substr(this.i+1)}var q,o,p=this.stack.Top();if(p.type==="prime"){o=p.data[0];q=p.data[1];this.stack.Pop()}else{o=this.stack.Prev();if(!o){o=i.mi("")}}if(o.isEmbellishedWrapper){o=o.data[0].data[0]}var n=o.movesupsub,m=o.sup;if((o.type==="msubsup"&&o.data[o.sup])||(o.type==="munderover"&&o.data[o.over]&&!o.subsupOK)){d.Error(["DoubleExponent","Double exponent: use braces to clarify"])}if(o.type!=="msubsup"){if(n){if(o.type!=="munderover"||o.data[o.over]){if(o.movablelimits&&o.isa(i.mi)){o=this.mi2mo(o)}o=i.munderover(o,null,null).With({movesupsub:true})}m=o.over}else{o=i.msubsup(o,null,null);m=o.sup}}this.Push(b.subsup(o).With({position:m,primes:q,movesupsub:n}))},Subscript:function(r){if(this.GetNext().match(/\d/)){this.string=this.string.substr(0,this.i+1)+" "+this.string.substr(this.i+1)}var q,o,p=this.stack.Top();if(p.type==="prime"){o=p.data[0];q=p.data[1];this.stack.Pop()}else{o=this.stack.Prev();if(!o){o=i.mi("")}}if(o.isEmbellishedWrapper){o=o.data[0].data[0]}var n=o.movesupsub,m=o.sub;if((o.type==="msubsup"&&o.data[o.sub])||(o.type==="munderover"&&o.data[o.under]&&!o.subsupOK)){d.Error(["DoubleSubscripts","Double subscripts: use braces to clarify"])}if(o.type!=="msubsup"){if(n){if(o.type!=="munderover"||o.data[o.under]){if(o.movablelimits&&o.isa(i.mi)){o=this.mi2mo(o)}o=i.munderover(o,null,null).With({movesupsub:true})}m=o.under}else{o=i.msubsup(o,null,null);m=o.sub}}this.Push(b.subsup(o).With({position:m,primes:q,movesupsub:n}))},PRIME:"\u2032",SMARTQUOTE:"\u2019",Prime:function(o){var n=this.stack.Prev();if(!n){n=i.mi()}if(n.type==="msubsup"&&n.data[n.sup]){d.Error(["DoubleExponentPrime","Prime causes double exponent: use braces to clarify"])}var m="";this.i--;do{m+=this.PRIME;this.i++,o=this.GetNext()}while(o==="'"||o===this.SMARTQUOTE);m=["","\u2032","\u2033","\u2034","\u2057"][m.length]||m;this.Push(b.prime(n,this.mmlToken(i.mo(m))))},mi2mo:function(m){var n=i.mo();n.Append.apply(n,m.data);var o;for(o in n.defaults){if(n.defaults.hasOwnProperty(o)&&m[o]!=null){n[o]=m[o]}}for(o in i.copyAttributes){if(i.copyAttributes.hasOwnProperty(o)&&m[o]!=null){n[o]=m[o]}}n.lspace=n.rspace="0";n.useMMLspacing&=~(n.SPACE_ATTR.lspace|n.SPACE_ATTR.rspace);return n},Comment:function(m){while(this.id.config.MAXMACROS){d.Error(["MaxMacroSub1","MathJax maximum macro substitution count exceeded; is there a recursive macro call?"])}},Matrix:function(n,p,v,r,u,o,m,w,t){var s=this.GetNext();if(s===""){d.Error(["MissingArgFor","Missing argument for %1",n])}if(s==="{"){this.i++}else{this.string=s+"}"+this.string.slice(this.i+1);this.i=0}var q=b.array().With({requireClose:true,arraydef:{rowspacing:(o||"4pt"),columnspacing:(u||"1em")}});if(w){q.isCases=true}if(t){q.isNumbered=true;q.arraydef.side=t}if(p||v){q.open=p;q.close=v}if(m==="D"){q.arraydef.displaystyle=true}if(r!=null){q.arraydef.columnalign=r}this.Push(q)},Entry:function(p){this.Push(b.cell().With({isEntry:true,name:p}));if(this.stack.Top().isCases){var o=this.string;var s=0,q=this.i,n=o.length;while(qd.config.MAXMACROS){d.Error(["MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?"])}if(q[0]&&this[q[0]]){n=this[q[0]].apply(this,[n].concat(q.slice(2)))}}this.Push(n)},envFindName:function(m){return g.environment[m]},Equation:function(m,n){return n},ExtensionEnv:function(n,m){this.Extension(n.name,m,"environment")},Array:function(n,p,u,s,t,o,m,q){if(!s){s=this.GetArgument("\\begin{"+n.name+"}")}var v=("c"+s).replace(/[^clr|:]/g,"").replace(/[^|:]([|:])+/g,"$1");s=s.replace(/[^clr]/g,"").split("").join(" ");s=s.replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var r=b.array().With({arraydef:{columnalign:s,columnspacing:(t||"1em"),rowspacing:(o||"4pt")}});if(v.match(/[|:]/)){if(v.charAt(0).match(/[|:]/)){r.frame.push("left");r.frame.dashed=v.charAt(0)===":"}if(v.charAt(v.length-1).match(/[|:]/)){r.frame.push("right")}v=v.substr(1,v.length-2);r.arraydef.columnlines=v.split("").join(" ").replace(/[^|: ]/g,"none").replace(/\|/g,"solid").replace(/:/g,"dashed")}if(p){r.open=this.convertDelimiter(p)}if(u){r.close=this.convertDelimiter(u)}if(m==="D"){r.arraydef.displaystyle=true}else{if(m){r.arraydef.displaystyle=false}}if(m==="S"){r.arraydef.scriptlevel=1}if(q){r.arraydef.useHeight=false}this.Push(n);return r},AlignedArray:function(m){var n=this.GetBrackets("\\begin{"+m.name+"}");return this.setArrayAlign(this.Array.apply(this,arguments),n)},setArrayAlign:function(n,m){m=this.trimSpaces(m||"");if(m==="t"){n.arraydef.align="baseline 1"}else{if(m==="b"){n.arraydef.align="baseline -1"}else{if(m==="c"){n.arraydef.align="center"}else{if(m){n.arraydef.align=m}}}}return n},convertDelimiter:function(m){if(m){m=g.delimiter[m]}if(m==null){return null}if(f(m)){m=m[0]}if(m.length===4){m=String.fromCharCode(parseInt(m,16))}return m},trimSpaces:function(n){if(typeof(n)!="string"){return n}var m=n.replace(/^\s+|\s+$/g,"");if(m.match(/\\$/)&&n.match(/ $/)){m+=" "}return m},nextIsSpace:function(){return this.string.charAt(this.i).match(/\s/)},GetNext:function(){while(this.nextIsSpace()){this.i++}return this.string.charAt(this.i)},GetCS:function(){var m=this.string.slice(this.i).match(/^([a-z]+|.) ?/i);if(m){this.i+=m[1].length;return m[1]}else{this.i++;return" "}},GetArgument:function(n,o){switch(this.GetNext()){case"":if(!o){d.Error(["MissingArgFor","Missing argument for %1",n])}return null;case"}":if(!o){d.Error(["ExtraCloseMissingOpen","Extra close brace or missing open brace"])}return null;case"\\":this.i++;return"\\"+this.GetCS();case"{":var m=++this.i,p=1;while(this.i1){n=[i.mrow.apply(i,n)]}}return n},InternalText:function(n,m){n=n.replace(/^\s+/,h).replace(/\s+$/,h);return i.mtext(i.chars(n)).With(m)},SubstituteArgs:function(n,m){var q="";var p="";var r;var o=0;while(on.length){d.Error(["IllegalMacroParam","Illegal macro parameter reference"])}p=this.AddArgs(this.AddArgs(p,q),n[r-1]);q=""}}else{q+=r}}}return this.AddArgs(p,q)},AddArgs:function(n,m){if(m.match(/^[a-z]/i)&&n.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)){n+=" "}if(n.length+m.length>d.config.MAXBUFFER){d.Error(["MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?"])}return n+m}});d.Augment({Stack:e,Parse:a,Definitions:g,Startup:l,config:{MAXMACROS:10000,MAXBUFFER:5*1024},sourceMenuTitle:["TeXCommands","TeX Commands"],annotationEncoding:"application/x-tex",prefilterHooks:MathJax.Callback.Hooks(true),postfilterHooks:MathJax.Callback.Hooks(true),Config:function(){this.SUPER(arguments).Config.apply(this,arguments);if(this.config.equationNumbers.autoNumber!=="none"){if(!this.config.extensions){this.config.extensions=[]}this.config.extensions.push("AMSmath.js")}},Translate:function(m){var n,o=false,q=MathJax.HTML.getScript(m);var s=(m.type.replace(/\n/g," ").match(/(;|\s|\n)mode\s*=\s*display(;|\s|\n|$)/)!=null);var r={math:q,display:s,script:m};var t=this.prefilterHooks.Execute(r);if(t){return t}q=r.math;try{n=d.Parse(q).mml()}catch(p){if(!p.texError){throw p}n=this.formatError(p,q,s,m);o=true}if(n.isa(i.mtable)&&n.displaystyle==="inherit"){n.displaystyle=s}if(n.inferred){n=i.apply(MathJax.ElementJax,n.data)}else{n=i(n)}if(s){n.root.display="block"}if(o){n.texError=true}r.math=n;return this.postfilterHooks.Execute(r)||r.math},prefilterMath:function(n,o,m){return n},postfilterMath:function(n,o,m){this.combineRelations(n.root);return n},formatError:function(p,o,q,m){var n=p.message.replace(/\n.*/,"");c.signal.Post(["TeX Jax - parse error",n,o,q,m]);return i.Error(n)},Error:function(m){if(f(m)){m=k.apply(k,m)}throw c.Insert(Error(m),{texError:true})},Macro:function(m,n,o){g.macros[m]=["Macro"].concat([].slice.call(arguments,1));g.macros[m].isUser=true},fenced:function(o,n,p){var m=i.mrow().With({open:o,close:p,texClass:i.TEXCLASS.INNER});m.Append(i.mo(o).With({fence:true,stretchy:true,symmetric:true,texClass:i.TEXCLASS.OPEN}),n,i.mo(p).With({fence:true,stretchy:true,symmetric:true,texClass:i.TEXCLASS.CLOSE}));return m},fixedFence:function(o,n,p){var m=i.mrow().With({open:o,close:p,texClass:i.TEXCLASS.ORD});if(o){m.Append(this.mathPalette(o,"l"))}if(n.type==="mrow"){m.Append.apply(m,n.data)}else{m.Append(n)}if(p){m.Append(this.mathPalette(p,"r"))}return m},mathPalette:function(p,n){if(p==="{"||p==="}"){p="\\"+p}var o="{\\bigg"+n+" "+p+"}",m="{\\big"+n+" "+p+"}";return d.Parse("\\mathchoice"+o+m+m+m,{}).mml()},combineRelations:function(q){var r,n,p,o;for(r=0,n=q.data.length;rthis.data.length){this.selection=1}var j=!!h.hover;h.Update();if(j){var i=document.getElementById(h.inputID+"-Span");MathJax.Extension.MathEvents.Hover.Hover(h,i)}return MathJax.Extension.MathEvents.Event.False(k)},CHTMLsetStatus:function(h){this.messageID=MathJax.Message.Set((this.data[1]&&this.data[1].isToken)?this.data[1].data.join(""):this.data[1].toString())},CHTMLclearStatus:function(h){if(this.messageID){MathJax.Message.Clear(this.messageID,0)}delete this.messageID},CHTMLtooltipOver:function(i,j){if(!j){j=window.event}if(b){clearTimeout(b);b=null}if(f){clearTimeout(f)}var h=j.pageX;var l=j.pageY;if(h==null){h=j.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;l=j.clientY+document.body.scrollTop+document.documentElement.scrollTop}var k=MathJax.Callback(["CHTMLtooltipPost",this,i,h+a.offsetX,l+a.offsetY]);f=setTimeout(k,a.delayPost)},CHTMLtooltipOut:function(h,i){if(f){clearTimeout(f);f=null}if(b){clearTimeout(b)}var j=MathJax.Callback(["CHTMLtooltipClear",this,80]);b=setTimeout(j,a.delayClear)},CHTMLtooltipPost:function(i,h,l){f=null;if(b){clearTimeout(b);b=null}var k=this.CHTMLtooltip;k.style.display="block";k.style.opacity="";if(this===d){return}k.style.left=h+"px";k.style.top=l+"px";k.innerHTML='';e.getMetrics(i);try{this.data[1].toCommonHTML(k.firstChild.firstChild)}catch(j){if(!j.restart){throw j}k.style.display="none";MathJax.Callback.After(["CHTMLtooltipPost",this,i,h,l],j.restart);return}d=this},CHTMLtooltipClear:function(i){var h=this.CHTMLtooltip;if(i<=0){h.style.display="none";h.style.opacity=h.style.filter="";b=null}else{h.style.opacity=i/100;h.style.filter="alpha(opacity="+i+")";b=setTimeout(MathJax.Callback(["CHTMLtooltipClear",this,i-20]),50)}}});MathJax.Hub.Startup.signal.Post("CommonHTML maction Ready");MathJax.Ajax.loadComplete(e.autoloadDir+"/maction.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/menclose.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/menclose.js deleted file mode 100755 index a86e1a69b..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/menclose.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/autoload/menclose.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function(){var g="2.7.1";var a=MathJax.ElementJax.mml,d=MathJax.OutputJax.CommonHTML;var f="http://www.w3.org/2000/svg";var e=4,b=1,c=2;a.menclose.Augment({toCommonHTML:function(o){var y=this.getValues("notation","thickness","padding");if(y.thickness==null){y.thickness=".075em"}if(y.padding==null){y.padding=".2em"}o=this.CHTMLdefaultNode(o,{childNodes:"mjx-box",forceChild:true});var j=o.firstChild,v=this.CHTMLbboxFor(0);var h=this.CHTMLlength2em(y.padding,1/d.em);var z=this.CHTMLlength2em(y.thickness,1/d.em);z=Math.max(1,Math.round(z*d.em))/d.em;var q=d.Px(z)+" solid";var u={L:h,R:h,T:h,B:h,H:v.h+h,D:v.d+h,W:v.w+2*h};j.style.padding=d.Em(h);var s=MathJax.Hub.SplitList(y.notation),w={};for(var r=0,l=s.length;rx.r){x.r=x.w}x.h+=u.T;if(x.h>x.t){x.t=x.h}x.d+=u.B;if(x.d>x.b){x.b=x.d}return o},CHTMLnotation:{box:function(m,j,l,k,i,h){k-=i;m.style.padding=d.Em(k);m.style.border=h},roundedbox:function(n,k,m,l,i,h){var j=Math.min(k.w,k.h+k.d+2*l)/4;d.addElement(n.parentNode,"mjx-box",{style:{padding:d.Em(l-i),border:h,"border-radius":d.Em(j),height:d.Em(k.h+k.d),"vertical-align":d.Em(-m.D),width:d.Em(k.w),"margin-left":d.Em(-m.W)}})},circle:function(j,o,n,i,r,l){var q=n.H,h=n.D,k=n.W;var m=this.CHTMLsvg(j,n,r);this.CHTMLsvgElement(m.firstChild,"ellipse",{rx:d.Px(k/2-r/2),ry:d.Px((q+h)/2-r/2),cx:d.Px(k/2),cy:d.Px((q+h)/2)})},left:function(m,j,l,k,i,h){m.style.borderLeft=h;m.style.paddingLeft=d.Em(k-i)},right:function(m,j,l,k,i,h){m.style.borderRight=h;m.style.paddingRight=d.Em(k-i)},top:function(m,j,l,k,i,h){m.style.borderTop=h;m.style.paddingTop=d.Em(k-i)},bottom:function(m,j,l,k,i,h){m.style.borderBottom=h;m.style.paddingBottom=d.Em(k-i)},actuarial:function(m,j,l,k,i,h){m.style.borderTop=m.style.borderRight=h;m.style.paddingTop=m.style.paddingRight=d.Em(k-i)},madruwb:function(m,j,l,k,i,h){m.style.borderBottom=m.style.borderRight=h;m.style.paddingBottom=m.style.paddingRight=d.Em(k-i)},verticalstrike:function(m,j,l,k,i,h){d.addElement(m.parentNode,"mjx-box",{style:{"border-left":h,height:d.Em(l.H+l.D),"vertical-align":d.Em(-l.D),width:d.Em(j.w/2+k-i/2),"margin-left":d.Em(-j.w/2-k-i/2)}})},horizontalstrike:function(m,j,l,k,i,h){d.addElement(m.parentNode,"mjx-box",{style:{"border-top":h,height:d.Em((l.H+l.D)/2-i/2),"vertical-align":d.Em(-l.D),width:d.Em(l.W),"margin-left":d.Em(-l.W)}})},updiagonalstrike:function(j,o,n,i,r,l){var q=n.H,h=n.D,k=n.W;var m=this.CHTMLsvg(j,n,r);this.CHTMLsvgElement(m.firstChild,"line",{x1:d.Px(r/2),y1:d.Px(q+h-r),x2:d.Px(k-r),y2:d.Px(r/2)})},downdiagonalstrike:function(j,o,n,i,r,l){var q=n.H,h=n.D,k=n.W;var m=this.CHTMLsvg(j,n,r);this.CHTMLsvgElement(m.firstChild,"line",{x1:d.Px(r/2),y1:d.Px(r/2),x2:d.Px(k-r),y2:d.Px(q+h-r)})},updiagonalarrow:function(i,q,o,h,w,k){var v=o.H+o.D-w,j=o.W-w/2;var u=Math.atan2(v,j)*(-180/Math.PI).toFixed(3);var l=Math.sqrt(v*v+j*j);var m=this.CHTMLsvg(i,o,w);var n=this.CHTMLsvgElement(m.firstChild,"g",{fill:"currentColor",transform:"translate("+this.CHTMLpx(w/2)+" "+this.CHTMLpx(v+w/2)+") rotate("+u+")"});var s=w*e,z=w*b,r=w*c;this.CHTMLsvgElement(n,"line",{x1:d.Px(w/2),y1:0,x2:d.Px(l-s),y2:0});this.CHTMLsvgElement(n,"path",{d:"M "+this.CHTMLpx(l-s)+",0 L "+this.CHTMLpx(l-s-z)+","+this.CHTMLpx(r)+"L "+this.CHTMLpx(l)+",0 L "+this.CHTMLpx(l-s-z)+","+this.CHTMLpx(-r),stroke:"none"})},phasorangle:function(j,q,o,i,s,l){var n=i,r=o.H,h=o.D;i=(r+h)/2;var k=o.W+i-n;o.W=k;o.L=i;j.style.margin="0 0 0 "+d.Em(i-n);var m=this.CHTMLsvg(j,o,s);this.CHTMLsvgElement(m.firstChild,"path",{d:"M "+this.CHTMLpx(i)+",1 L 1,"+this.CHTMLpx(r+h-s)+" L "+this.CHTMLpx(k)+","+this.CHTMLpx(r+h-s)})},longdiv:function(j,o,n,i,r,l){n.W+=1.5*i;n.L+=1.5*i;var q=n.H,h=n.D,k=n.W;j.style.margin="0 0 0 "+d.Em(1.5*i);var m=this.CHTMLsvg(j,n,r);this.CHTMLsvgElement(m.firstChild,"path",{d:"M "+this.CHTMLpx(k)+",1 L 1,1 a"+this.CHTMLpx(i)+","+this.CHTMLpx((q+h)/2-r/2)+" 0 0,1 1,"+this.CHTMLpx(q+h-1.5*r)})},radical:function(j,o,n,i,r,l){n.W+=1.5*i;n.L+=1.5*i;var q=n.H,h=n.D,k=n.W;j.style.margin="0 0 0 "+d.Em(1.5*i);var m=this.CHTMLsvg(j,n,r);this.CHTMLsvgElement(m.firstChild,"path",{d:"M 1,"+this.CHTMLpx(0.6*(q+h))+" L "+this.CHTMLpx(i)+","+this.CHTMLpx(q+h)+" L "+this.CHTMLpx(2*i)+",1 L "+this.CHTMLpx(k)+",1"})}},CHTMLpx:function(h){h*=d.em;if(Math.abs(h)<0.1){return"0"}return h.toFixed(1).replace(/\.0$/,"")},CHTMLsvg:function(j,k,i){if(!h){var h=document.createElementNS(f,"svg");if(h.style){h.style.width=d.Em(k.W);h.style.height=d.Em(k.H+k.D);h.style.verticalAlign=d.Em(-k.D);h.style.marginLeft=d.Em(-k.W)}this.CHTMLsvgElement(h,"g",{"stroke-width":d.Px(i)});j.parentNode.appendChild(h)}return h},CHTMLsvgElement:function(h,i,j){var k=document.createElementNS(f,i);k.isMathJax=true;if(j){for(var l in j){if(j.hasOwnProperty(l)){k.setAttributeNS(null,l,j[l].toString())}}}h.appendChild(k);return k}});if(!document.createElementNS){delete a.menclose.prototype.toCommonHTML}MathJax.Hub.Startup.signal.Post("CommonHTML menclose Ready");MathJax.Ajax.loadComplete(d.autoloadDir+"/menclose.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/mglyph.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/mglyph.js deleted file mode 100755 index 4a4640a81..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/mglyph.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/autoload/mglyph.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function(){var c="2.7.1";var a=MathJax.ElementJax.mml,b=MathJax.OutputJax.CommonHTML,d=MathJax.Localization;a.mglyph.Augment({toCommonHTML:function(f,r){var o=this.getValues("src","width","height","valign","alt");f=this.CHTMLcreateNode(f);this.CHTMLhandleStyle(f);this.CHTMLhandleScale(f);if(o.src===""){var k=this.Get("index");this.CHTMLgetVariant();if(k&&this.CHTMLvariant.style){this.CHTMLhandleText(f,String.fromCharCode(k),this.CHTMLvariant)}}else{var p=this.CHTML;if(!p.img){p.img=a.mglyph.GLYPH[o.src]}if(!p.img){p.img=a.mglyph.GLYPH[o.src]={img:new Image(),status:"pending"};p.img.img.onload=MathJax.Callback(["CHTMLimgLoaded",this]);p.img.img.onerror=MathJax.Callback(["CHTMLimgError",this]);p.img.img.src=o.src;MathJax.Hub.RestartAfter(p.img.img.onload)}if(p.img.status!=="OK"){var g=a.Error(d._(["MathML","BadMglyph"],"Bad mglyph: %1",o.src));g.data[0].data[0].mathsize="75%";this.Append(g);g.toCommonHTML(f);this.data.pop();p.combine(g.CHTML,0,0,1)}else{var i=b.addElement(f,"img",{isMathJax:true,src:o.src,alt:o.alt,title:o.alt});var m=o.width,j=o.height;var e=p.img.img.width/b.em,n=p.img.img.height/b.em;var q=e,l=n;if(m!==""){e=this.CHTMLlength2em(m,q);n=(q?e/q*l:0)}if(j!==""){n=this.CHTMLlength2em(j,l);if(m===""){e=(l?n/l*q:0)}}i.style.width=b.Em(e);p.w=p.r=e;i.style.height=b.Em(n);p.h=p.t=n;if(o.valign){p.d=p.b=-this.CHTMLlength2em(o.valign,l);i.style.verticalAlign=b.Em(-p.d);p.h-=p.d;p.t=p.h}}}this.CHTMLhandleSpace(f);this.CHTMLhandleBBox(f);this.CHTMLhandleColor(f);return f},CHTMLimgLoaded:function(f,e){if(typeof(f)==="string"){e=f}this.CHTML.img.status=(e||"OK")},CHTMLimgError:function(){this.CHTML.img.img.onload("error")}},{GLYPH:{}});MathJax.Hub.Startup.signal.Post("CommonHTML mglyph Ready");MathJax.Ajax.loadComplete(b.autoloadDir+"/mglyph.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/mmultiscripts.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/mmultiscripts.js deleted file mode 100755 index 2807606ac..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/mmultiscripts.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/autoload/mmultiscripts.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function(){var c="2.7.1";var a=MathJax.ElementJax.mml,b=MathJax.OutputJax.CommonHTML;a.mmultiscripts.Augment({toCommonHTML:function(K,k){var P=(k||{}).stretch;if(!P){K=this.CHTMLcreateNode(K);this.CHTMLhandleStyle(K);this.CHTMLgetVariant();this.CHTMLhandleScale(K)}b.BBOX.empty(this.CHTML);var m,e;if(P){m=b.getNode(K,"mjx-base")}else{this.CHTMLaddChild(K,0,{type:"mjx-base",noBBox:true,forceChild:true});m=K.firstChild}e=this.CHTMLbboxFor(0);if(e.ic){e.R-=e.ic;if(!P){m.style.marginRight=b.Em(-e.ic)}R=1.3*e.ic+0.05}var E={},n={};this.CHTMLgetScripts(E,n,P,K);var w=E.sub,f=E.sup,B=E.presub,l=E.presup;var H=n.sub,N=n.sup,j=n.presub,o=n.presup;if(!P){this.CHTMLaddBoxes(K,m,E)}var g=this.getValues("scriptlevel","scriptsizemultiplier");var i=(this.Get("scriptlevel")<3?g.scriptsizemultiplier:1);var O=b.TEX.x_height,F=b.TEX.scriptspace;var I=b.TEX.sup_drop*i,G=b.TEX.sub_drop*i;var C=e.h-I,A=e.d+G,R=0,J;var L=this.data[this.base];if(L&&(L.type==="mi"||L.type==="mo")){if(L.data.join("").length===1&&e.rscale===1&&!e.sH&&!L.Get("largeop")){C=A=0}}g=this.getValues("displaystyle","subscriptshift","superscriptshift","texprimestyle");g.subscriptshift=(g.subscriptshift===""?0:this.CHTMLlength2em(g.subscriptshift));g.superscriptshift=(g.superscriptshift===""?0:this.CHTMLlength2em(g.superscriptshift));var z=(B?F+j.w:l?F+o.w-R:0);this.CHTML.combine(e,z,0);var y=this.CHTML.w;if(!f&&!l){A=Math.max(A,b.TEX.sub1,g.subscriptshift);if(w){A=Math.max(A,H.h-(4/5)*O)}if(B){A=Math.max(A,j.h-(4/5)*O)}if(w){this.CHTMLplaceSubOnly(w,H,y,A,F)}if(B){this.CHTMLplacePresubOnly(B,j,A,F)}}else{if(!w&&!B){J=b.TEX[(g.displaystyle?"sup1":(g.texprimestyle?"sup3":"sup2"))];C=Math.max(C,J,g.superscriptshift);if(f){C=Math.max(C,N.d+(1/4)*O)}if(l){C=Math.max(C,o.d+(1/4)*O)}if(f){this.CHTMLplaceSupOnly(f,N,y,R,C,F)}if(l){this.CHTMLplacePresupOnly(l,o,R,C,F)}}else{A=Math.max(A,b.TEX.sub2);var D=b.TEX.rule_thickness;var M=(H||j).h,Q=(N||o).d;if(B){M=Math.max(M,j.h)}if(l){Q=Math.max(Q,o.d)}if((C-Q)-(M-A)<3*D){A=3*D-C+Q+M;I=(4/5)*O-(C-Q);if(I>0){C+=I;A-=I}}C=Math.max(C,g.superscriptshift);A=Math.max(A,g.subscriptshift);if(f){if(w){this.CHTMLplaceSubSup(w,H,f,N,y,R,C,A,F)}else{this.CHTMLplaceSupOnly(f,N,y,R,C,F)}}else{if(w){this.CHTMLplaceSubOnly(w,H,y,A,F)}}if(l){if(B){this.CHTMLplacePresubPresup(B,j,l,o,R,C,A,F)}else{this.CHTMLplacePresupOnly(l,o,R,C,F)}}else{if(B){this.CHTMLplacePresubOnly(B,j,A,F)}}}}this.CHTML.clean();this.CHTMLhandleSpace(K);this.CHTMLhandleBBox(K);this.CHTMLhandleColor(K);return K},CHTMLgetScripts:function(e,o,g,h){if(g){e.sub=b.getNode(h,"mjx-sub");e.sup=b.getNode(h,"mjx-sup");e.presub=b.getNode(h,"mjx-presub");e.presup=b.getNode(h,"mjx-presup");o.sub=this.CHTMLbbox.sub;o.sup=this.CHTMLbbox.sup;o.presub=this.CHTMLbbox.presub;o.presup=this.CHTMLbbox.presup;return}this.CHTMLbbox=o;var f={i:1,w:0,BOX:e,BBOX:o},i=this.data.length;var d="sub",j="sup";while(f.iw){w=p}}var u=B.data[p-A].CHTML;if(u.h>y[q]){y[q]=u.h}if(u.d>h[q]){h[q]=u.d}if(u.w>l[p]){l[p]=u.w}}}if(z.equalrows){k.HD=true;var x=Math.max.apply(Math,y);var o=Math.max.apply(Math,h);for(q=0,n=y.length;qt||m<=0){m=null}}else{w.align=this.defaults.align}var p=0,l=0,u=e.TEX.axis_height;if(w.fspace){p+=k.FSPACE[1]}if(w.frame){p+=2/e.em;l+=1/e.em}for(var q=0;q=m){l+=r+s+x[q]}}}if(!m){l=({top:p,bottom:0,center:p/2,baseline:p/2,axis:p/2-u})[w.align]}if(l){o.style.verticalAlign=e.Em(-l)}k.T=p;k.B=l},CHTMLcolumnWidths:function(l,r,A){var I=r.CWIDTH,K=r.CSPACE,u=r.J,F;var G=0,n=false,y=l.width.match(/%$/);var H,B,v;if(l.width!=="auto"&&!y){G=Math.max(0,this.CHTMLlength2em(l.width,r.R));n=true}if(l.equalcolumns){if(y){var z=e.Percent(1/(u+1));for(F=0;F<=u;F++){I[F]=z}}else{v=Math.max.apply(Math,r.W);if(l.width!=="auto"){var q=(l.fspace?r.FSPACE[0]+(l.frame?2/e.em:0):0);for(F=0;F<=u;F++){q+=K[F]}v=Math.max((G-q)/(u+1),v)}v=e.Em(v);for(F=0;F<=u;F++){I[F]=v}}n=true}var E=0;if(l.fspace){E=r.FSPACE[0]}var s=[],D=[],h=[],o=[];var t=r.rows[0];for(F=0;F<=u;F++){o[F]=r.W[F];if(I[F]==="auto"){s.push(F)}else{if(I[F]==="fit"){D.push(F)}else{if(I[F].match(/%$/)){h.push(F)}else{o[F]=this.CHTMLlength2em(I[F],o[F])}}}E+=o[F]+K[F];if(t[F]){t[F].style.width=e.Em(o[F])}}if(l.frame){E+=2/e.em}var C=(D.length>0);if(n){if(y){for(F=0;F<=u;F++){cell=t[F].style;if(I[F]==="auto"&&!C){cell.width=""}else{if(I[F]==="fit"){cell.width=""}else{if(I[F].match(/%$/)){cell.width=I[F]}else{cell.minWidth=cell.maxWidth=cell.width}}}}}else{if(G>E){var k=0;for(H=0,B=h.length;HE&&D.length){var x=(G-E)/D.length;for(H=0,B=D.length;Ht*z){z=t*p}z+=y;z*=t;D+=z}else{D+=p-t*z+n;z-=t*n;z*=-t}}var o=e.addElement(w,"mjx-box",{style:{width:"100%","text-align":q.indentalign}});o.appendChild(B);var C=e.Element("mjx-itable");B.style.display="inline-table";if(!B.style.width){B.style.width="auto"}C.style.verticalAlign="top";B.style.verticalAlign=e.Em(k.T-k.B-k.H[0]);w.style.verticalAlign="";if(z){if(q.indentalign===b.INDENTALIGN.CENTER){B.style.marginLeft=e.Em(z);B.style.marginRight=e.Em(-z)}else{var u="margin"+(q.indentalign===b.INDENTALIGN.RIGHT?"Right":"Left");B.style[u]=e.Em(z)}}if(k.CALIGN[c]==="left"){w.insertBefore(C,o);C.style.marginRight=e.Em(-k.W[c]-y);if(y){C.style.marginLeft=e.Em(y)}}else{w.appendChild(C);C.style.marginLeft=e.Em(-k.W[c]+y)}var l=k.labels,j=0;if(h.fspace){j=k.FSPACE[0]+(h.frame?1/e.em:0)}for(var x=0,v=l.length;x1){h.h*=k;h.d*=k}}}else{h.w=Math.max(h.w,this.CHTMLlength2em(j,h.w))}}}}return l}});MathJax.Hub.Startup.signal.Post("CommonHTML mtable Ready");MathJax.Ajax.loadComplete(e.autoloadDir+"/mtable.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/multiline.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/multiline.js deleted file mode 100755 index bb277e0df..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/autoload/multiline.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/autoload/multiline.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function(){var e="2.7.1";var b=MathJax.ElementJax.mml,a=MathJax.Hub.config,c=MathJax.OutputJax.CommonHTML;var f={newline:0,nobreak:1000000,goodbreak:[-200],badbreak:[+200],auto:[0],toobig:800,nestfactor:400,spacefactor:-100,spaceoffset:2,spacelimit:1,fence:500,close:500};var d={linebreakstyle:"after"};b.mbase.Augment({CHTMLlinebreakPenalty:f,CHTMLmultiline:function(j){var p=this;while(p.inferred||(p.parent&&p.parent.type==="mrow"&&p.parent.isEmbellished())){p=p.parent}var n=((p.type==="math"&&p.Get("display")==="block")||p.type==="mtd");p.isMultiline=true;var q=this.getValues("linebreak","linebreakstyle","lineleading","linebreakmultchar","indentalign","indentshift","indentalignfirst","indentshiftfirst","indentalignlast","indentshiftlast");if(q.linebreakstyle===b.LINEBREAKSTYLE.INFIXLINEBREAKSTYLE){q.linebreakstyle=this.Get("infixlinebreakstyle")}q.lineleading=this.CHTMLlength2em(q.lineleading,0.5);c.BBOX.empty(this.CHTML);var o=c.addElement(j,"mjx-stack");var g={BBOX:this.CHTML,n:0,Y:0,scale:(this.CHTML.scale||1),isTop:n,values:{},VALUES:q},m=this.CHTMLgetAlign(g,{}),i=this.CHTMLgetShift(g,{},m),h=[],k={index:[],penalty:f.nobreak,w:0,W:i,shift:i,scanW:i,nest:0},l=false;while(this.CHTMLbetterBreak(k,g)&&(k.scanW>=c.linebreakWidth||k.penalty===f.newline)){this.CHTMLaddLine(o,h,k.index,g,k.values,l);h=k.index.slice(0);l=true;m=this.CHTMLgetAlign(g,k.values);i=this.CHTMLgetShift(g,k.values,m);k.W=k.shift=k.scanW=i;k.penalty=f.nobreak}g.isLast=true;this.CHTMLaddLine(o,h,[],g,d,l);j.style.width=o.style.width=this.CHTML.pwidth="100%";this.CHTML.mwidth=c.Em(this.CHTML.w);this.CHTML.isMultiline=p.CHTML.isMultiline=true;o.style.verticalAlign=c.Em(g.d-this.CHTML.d);return j},CHTMLbetterBreak:function(j,g){if(this.isToken){return false}if(this.isEmbellished()){j.embellished=this;return this.CoreMO().CHTMLbetterBreak(j,g)}if(this.linebreakContainer){return false}var q=j.index.slice(0),o=j.index.shift(),n=this.data.length,l,r,k,p=(j.index.length>0),h=false;if(o==null){o=-1}if(!p){o++;j.W+=j.w;j.w=0}k=j.scanW=j.W;j.nest++;while(o0){var o=c.FONTDATA.baselineskip;var k=(g.values.lineleading==null?g.VALUES:g.values).lineleading*g.scale;var h=g.Y;g.Y-=Math.max(o,g.d+t.h+k);l=h-g.Y-g.d-t.h}if(j){u.style.margin="0 "+c.Em(-j)+" 0 "+c.Em(j)}if(q!==b.INDENTALIGN.LEFT){m.style.textAlign=q}if(l){m.style.paddingTop=c.Em(l)}g.BBOX.combine(t,j,g.Y);g.d=g.bbox.d;g.values=s;g.n++},CHTMLgetAlign:function(j,g){var k=g,h=j.values,i=j.VALUES,l;if(j.n===0){l=k.indentalignfirst||h.indentalignfirst||i.indentalignfirst}else{if(j.isLast){l=h.indentalignlast||i.indentalignlast}else{l=h.indentalign||i.indentalign}}if(l===b.INDENTALIGN.INDENTALIGN){l=h.indentalign||i.indentalign}if(l===b.INDENTALIGN.AUTO){l=(j.isTop?a.displayAlign:b.INDENTALIGN.LEFT)}return l},CHTMLgetShift:function(g,o,m,k){var n=o,l=g.values,h=g.VALUES,i;if(g.n===0){i=n.indentshiftfirst||l.indentshiftfirst||h.indentshiftfirst}else{if(g.isLast){i=l.indentshiftlast||h.indentshiftlast}else{i=l.indentshift||h.indentshift}}if(i===b.INDENTSHIFT.INDENTSHIFT){i=l.indentshift||h.indentshift}if(i==="auto"||i===""){i="0"}i=this.CHTMLlength2em(i,c.cwidth);if(g.isTop&&a.displayIndent!=="0"){var j=this.CHTMLlength2em(a.displayIndent,c.cwidth);i+=(m===b.INDENTALIGN.RIGHT?-j:j)}return(m===b.INDENTALIGN.RIGHT&&!k?-i:i)},CHTMLmoveLine:function(p,g,n,o,h){var l=p[0],k=g[0];if(l==null){l=-1}if(k==null){k=this.data.length-1}if(l===k&&p.length>1){this.data[l].CHTMLmoveSlice(p.slice(1),g.slice(1),n,o,h,"marginLeft")}else{var m=o.last;o.last=false;while(l0),h=false;if(s==null){s=-1}if(!t){s++;l.W+=l.w;l.w=0}n=l.scanW=l.W;l.nest++;if(!this.dataI){this.dataI=[];if(this.data.open){this.dataI.push("open")}if(p){this.dataI.push(0)}for(var r=1;r1){this.data[this.dataI[p]].CHTMLmoveSlice(h.slice(1),n.slice(1),l,g,r,"marginLeft")}else{var q=g.last;g.last=false;var m=this.dataI[p];while(p0),h=false;if(!n){j.W+=j.w;j.w=0}k=j.scanW=j.W;if(m==null){this.CHTML.baseW=this.data[this.base].CHTML.w;this.CHTML.dw=this.CHTML.w-this.CHTML.baseW}if(this.data[this.base].CHTMLbetterBreak(j,g)){h=true;o=[this.base].concat(j.index);l=j.W;p=j.w;if(j.penalty===f.newline){h=n=true}}if(!n){this.CHTMLaddWidth(this.base,j,k)}j.scanW+=this.CHTML.dw;j.W=j.scanW;j.index=[];if(h){j.W=l;j.w=p;j.index=o}return h},CHTMLmoveLine:function(i,m,l,h,q){if(this.data[this.base]){var j=c.addElement(l,"mjx-base");if(i.length>1){this.data[this.base].CHTMLmoveSlice(i.slice(1),m.slice(1),j,h,q,"marginLeft")}else{if(m.length<=1){this.data[this.base].CHTMLmoveNode(j,h,q)}else{this.data[this.base].CHTMLmoveSlice([],m.slice(1),j,h,q,"marginRight")}}}if(m.length===0){var k=this.CHTMLnodeElement(),o=c.getNode(k,"mjx-stack"),n=c.getNode(k,"mjx-sup"),g=c.getNode(k,"mjx-sub");if(o){l.appendChild(o)}else{if(n){l.appendChild(n)}else{if(g){l.appendChild(g)}}}var p=h.bbox.w,r;if(n){r=this.data[this.sup].CHTML;h.bbox.combine(r,p,r.Y)}if(g){r=this.data[this.sub].CHTML;h.bbox.combine(r,p,r.Y)}}}});b.mmultiscripts.Augment({CHTMLbetterBreak:function(k,h){if(!this.data[this.base]){return false}var o=k.index.slice(0);k.index.shift();var m,p,l,n=(k.index.length>0),j=false;if(!n){k.W+=k.w;k.w=0}k.scanW=k.W;var q=this.CHTML,i=this.data[this.base].CHTML;var g=q.w-i.w-q.X;k.scanW+=q.X;l=k.scanW;if(this.data[this.base].CHTMLbetterBreak(k,h)){j=true;o=[this.base].concat(k.index);m=k.W;p=k.w;if(k.penalty===f.newline){j=n=true}}if(!n){this.CHTMLaddWidth(this.base,k,l)}k.scanW+=g;k.W=k.scanW;k.index=[];if(j){k.W=m;k.w=p;k.index=o}return j},CHTMLmoveLine:function(l,o,n,i,u){var m,h=this.CHTMLbbox,t;if(l.length<1){m=this.CHTMLnodeElement();var q=c.getNode(m,"mjx-prestack"),r=c.getNode(m,"mjx-presup"),k=c.getNode(m,"mjx-presub");if(q){n.appendChild(q)}else{if(r){n.appendChild(r)}else{if(k){n.appendChild(k)}}}t=i.bbox.w;if(r){i.bbox.combine(h.presup,t+h.presup.X,h.presup.Y)}if(k){i.bbox.combine(h.presub,t+h.presub.X,h.presub.Y)}}if(this.data[this.base]){var j=c.addElement(n,"mjx-base");if(l.length>1){this.data[this.base].CHTMLmoveSlice(l.slice(1),o.slice(1),j,i,u,"marginLeft")}else{if(o.length<=1){this.data[this.base].CHTMLmoveNode(j,i,u)}else{this.data[this.base].CHTMLmoveSlice([],o.slice(1),j,i,u,"marginRight")}}}if(o.length===0){m=this.CHTMLnodeElement();var s=c.getNode(m,"mjx-stack"),p=c.getNode(m,"mjx-sup"),g=c.getNode(m,"mjx-sub");if(s){n.appendChild(s)}else{if(p){n.appendChild(p)}else{if(g){n.appendChild(g)}}}t=i.bbox.w;if(p){i.bbox.combine(h.sup,t,h.sup.Y)}if(g){i.bbox.combine(h.sub,t,h.sub.Y)}}}});b.mo.Augment({CHTMLbetterBreak:function(i,g){if(i.values&&i.values.id===this.CHTMLnodeID){return false}var o=this.getValues("linebreak","linebreakstyle","lineleading","linebreakmultchar","indentalign","indentshift","indentalignfirst","indentshiftfirst","indentalignlast","indentshiftlast","texClass","fence");if(o.linebreakstyle===b.LINEBREAKSTYLE.INFIXLINEBREAKSTYLE){o.linebreakstyle=this.Get("infixlinebreakstyle")}if(o.texClass===b.TEXCLASS.OPEN){i.nest++}if(o.texClass===b.TEXCLASS.CLOSE&&i.nest){i.nest--}var j=i.scanW;delete i.embellished;var n=this.CHTML.w+(this.CHTML.L||0)+(this.CHTML.R||0);if(o.linebreakstyle===b.LINEBREAKSTYLE.AFTER){j+=n;n=0}if(j-i.shift===0&&o.linebreak!==b.LINEBREAK.NEWLINE){return false}var k=c.linebreakWidth-j;if(g.n===0&&(o.indentshiftfirst!==g.VALUES.indentshiftfirst||o.indentalignfirst!==g.VALUES.indentalignfirst)){var l=this.CHTMLgetAlign(g,o),h=this.CHTMLgetShift(g,o,l);k+=(i.shift-h)}var m=Math.floor(k/c.linebreakWidth*1000);if(m<0){m=f.toobig-3*m}if(o.fence){m+=f.fence}if((o.linebreakstyle===b.LINEBREAKSTYLE.AFTER&&o.texClass===b.TEXCLASS.OPEN)||o.texClass===b.TEXCLASS.CLOSE){m+=f.close}m+=i.nest*f.nestfactor;var p=f[o.linebreak||b.LINEBREAK.AUTO];if(!MathJax.Object.isArray(p)){if(k>=0){m=p*i.nest}}else{m=Math.max(1,m+p[0]*i.nest)}if(m>=i.penalty){return false}i.penalty=m;i.values=o;i.W=j;i.w=n;o.lineleading=this.CHTMLlength2em(o.lineleading,g.VALUES.lineleading);o.id=this.CHTMLnodeID;return true}});b.mspace.Augment({CHTMLbetterBreak:function(h,g){if(h.values&&h.values.id===this.CHTMLnodeID){return false}var n=this.getValues("linebreak");var k=n.linebreak;if(!k||this.hasDimAttr()){k=b.LINEBREAK.AUTO}var i=h.scanW,m=this.CHTML.w+(this.CHTML.L||0)+(this.CHTML.R||0);if(i-h.shift===0){return false}var j=c.linebreakWidth-i;var l=Math.floor(j/c.linebreakWidth*1000);if(l<0){l=f.toobig-3*l}l+=h.nest*f.nestfactor;var o=f[k];if(k===b.LINEBREAK.AUTO&&m>=f.spacelimit&&!this.mathbackground&&!this.background){o=[(m+f.spaceoffset)*f.spacefactor]}if(!MathJax.Object.isArray(o)){if(j>=0){l=o*h.nest}}else{l=Math.max(1,l+o[0]*h.nest)}if(l>=h.penalty){return false}h.penalty=l;h.values=n;h.W=i;h.w=m;n.lineleading=g.VALUES.lineleading;n.linebreakstyle="before";n.id=this.CHTMLnodeID;return true}});MathJax.Hub.Register.StartupHook("TeX mathchoice Ready",function(){b.TeXmathchoice.Augment({CHTMLbetterBreak:function(h,g){return this.Core().CHTMLbetterBreak(h,g)},CHTMLmoveLine:function(k,g,i,j,h){return this.Core().CHTMLmoveSlice(k,g,i,j,h)}})});b.maction.Augment({CHTMLbetterBreak:function(h,g){return this.Core().CHTMLbetterBreak(h,g)},CHTMLmoveLine:function(k,g,i,j,h){return this.Core().CHTMLmoveSlice(k,g,i,j,h)}});b.semantics.Augment({CHTMLbetterBreak:function(h,g){return(this.data[0]?this.data[0].CHTMLbetterBreak(h,g):false)},CHTMLmoveLine:function(k,g,i,j,h){return(this.data[0]?this.data[0].CHTMLmoveSlice(k,g,i,j,h):null)}});MathJax.Hub.Startup.signal.Post("CommonHTML multiline Ready");MathJax.Ajax.loadComplete(c.autoloadDir+"/multiline.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/config.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/config.js deleted file mode 100755 index 159defb54..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/config.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/config.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.OutputJax.CommonHTML=MathJax.OutputJax({id:"CommonHTML",version:"2.7.1",directory:MathJax.OutputJax.directory+"/CommonHTML",extensionDir:MathJax.OutputJax.extensionDir+"/CommonHTML",autoloadDir:MathJax.OutputJax.directory+"/CommonHTML/autoload",fontDir:MathJax.OutputJax.directory+"/CommonHTML/fonts",webfontDir:MathJax.OutputJax.fontDir+"/HTML-CSS",config:{matchFontHeight:true,scale:100,minScaleAdjust:50,mtextFontInherit:false,undefinedFamily:"STIXGeneral,'Cambria Math','Arial Unicode MS',serif",EqnChunk:(MathJax.Hub.Browser.isMobile?20:100),EqnChunkFactor:1.5,EqnChunkDelay:100,linebreaks:{automatic:false,width:"container"}}});if(!MathJax.Hub.config.delayJaxRegistration){MathJax.OutputJax.CommonHTML.Register("jax/mml")}MathJax.OutputJax.CommonHTML.loadComplete("config.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js deleted file mode 100755 index ae89c8f10..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_AMS";b.FONTDATA.FONTS[a]={className:b.FONTDATA.familyName(a),centerline:270,ascent:1003,descent:463,32:[0,0,250,0,0],65:[701,1,722,17,703],66:[683,1,667,11,620],67:[702,19,722,39,684],68:[683,1,722,16,688],69:[683,1,667,12,640],70:[683,1,611,12,584],71:[702,19,778,39,749],72:[683,1,778,14,762],73:[683,1,389,20,369],74:[683,77,500,6,478],75:[683,1,778,22,768],76:[683,1,667,12,640],77:[683,1,944,17,926],78:[683,20,722,20,702],79:[701,19,778,34,742],80:[683,1,611,16,597],81:[701,181,778,34,742],82:[683,1,722,16,705],83:[702,12,556,28,528],84:[683,1,667,33,635],85:[683,19,722,16,709],86:[683,20,722,0,719],87:[683,19,1000,5,994],88:[683,1,722,16,705],89:[683,1,722,16,704],90:[683,1,667,29,635],107:[683,1,556,17,534],160:[0,0,250,0,0],165:[683,0,750,11,738],174:[709,175,947,32,915],240:[749,21,556,42,509],295:[695,13,540,42,562],710:[845,-561,2333,-14,2346],732:[899,-628,2333,1,2330],770:[845,-561,0,-2347,13],771:[899,-628,0,-2332,-3],989:[605,85,778,55,719],1008:[434,6,667,37,734],8245:[560,-43,275,12,244],8463:[695,13,540,42,562],8487:[684,22,722,44,675],8498:[695,1,556,55,497],8502:[763,21,667,-22,687],8503:[764,43,444,-22,421],8504:[764,43,667,54,640],8513:[705,23,639,37,577],8592:[437,-64,500,64,422],8594:[437,-64,500,58,417],8602:[437,-60,1000,56,942],8603:[437,-60,1000,54,942],8606:[417,-83,1000,56,944],8608:[417,-83,1000,55,943],8610:[417,-83,1111,56,1031],8611:[417,-83,1111,79,1054],8619:[575,41,1000,56,964],8620:[575,41,1000,35,943],8621:[417,-83,1389,57,1331],8622:[437,-60,1000,56,942],8624:[722,0,500,56,444],8625:[722,0,500,55,443],8630:[461,1,1000,17,950],8631:[460,1,1000,46,982],8634:[650,83,778,56,722],8635:[650,83,778,56,721],8638:[694,194,417,188,375],8639:[694,194,417,41,228],8642:[694,194,417,188,375],8643:[694,194,417,41,228],8644:[667,0,1000,55,944],8646:[667,0,1000,55,944],8647:[583,83,1000,55,944],8648:[694,193,833,83,749],8649:[583,83,1000,55,944],8650:[694,194,833,83,749],8651:[514,14,1000,55,944],8652:[514,14,1000,55,944],8653:[534,35,1000,54,942],8654:[534,37,1000,32,965],8655:[534,35,1000,55,943],8666:[611,111,1000,76,944],8667:[611,111,1000,55,923],8669:[417,-83,1000,56,943],8672:[437,-64,1334,64,1251],8674:[437,-64,1334,84,1251],8705:[846,21,500,56,444],8708:[860,166,556,55,497],8709:[587,3,778,54,720],8717:[440,1,429,102,456],8722:[270,-230,500,84,417],8724:[766,93,778,57,722],8726:[430,23,778,91,685],8733:[472,-28,778,56,722],8736:[694,0,722,55,666],8737:[714,20,722,55,666],8738:[551,51,722,55,666],8739:[430,23,222,91,131],8740:[750,252,278,-21,297],8741:[431,23,389,55,331],8742:[750,250,500,-20,518],8756:[471,82,667,24,643],8757:[471,82,667,23,643],8764:[365,-132,778,55,719],8765:[367,-133,778,56,722],8769:[467,-32,778,55,719],8770:[463,-34,778,55,720],8774:[652,155,778,54,720],8776:[481,-50,778,55,719],8778:[579,39,778,51,725],8782:[492,-8,778,56,722],8783:[492,-133,778,56,722],8785:[609,108,778,56,722],8786:[601,101,778,15,762],8787:[601,102,778,14,762],8790:[367,-133,778,56,722],8791:[721,-133,778,56,722],8796:[859,-133,778,56,723],8806:[753,175,778,83,694],8807:[753,175,778,83,694],8808:[752,286,778,82,693],8809:[752,286,778,82,693],8812:[750,250,500,74,425],8814:[708,209,778,82,693],8815:[708,209,778,82,693],8816:[801,303,778,82,694],8817:[801,303,778,82,694],8818:[732,228,778,56,722],8819:[732,228,778,56,722],8822:[681,253,778,44,734],8823:[681,253,778,83,694],8828:[580,153,778,83,694],8829:[580,154,778,82,694],8830:[732,228,778,56,722],8831:[732,228,778,56,722],8832:[705,208,778,82,693],8833:[705,208,778,82,693],8840:[801,303,778,83,693],8841:[801,303,778,82,691],8842:[635,241,778,84,693],8843:[635,241,778,82,691],8847:[539,41,778,83,694],8848:[539,41,778,64,714],8858:[582,82,778,57,721],8859:[582,82,778,57,721],8861:[582,82,778,57,721],8862:[689,0,778,55,722],8863:[689,0,778,55,722],8864:[689,0,778,55,722],8865:[689,0,778,55,722],8872:[694,0,611,55,555],8873:[694,0,722,55,666],8874:[694,0,889,55,833],8876:[695,1,611,-55,554],8877:[695,1,611,-55,554],8878:[695,1,722,-55,665],8879:[695,1,722,-55,665],8882:[539,41,778,83,694],8883:[539,41,778,83,694],8884:[636,138,778,83,694],8885:[636,138,778,83,694],8888:[408,-92,1111,55,1055],8890:[431,212,556,57,500],8891:[716,0,611,55,555],8892:[716,0,611,55,555],8901:[189,0,278,55,222],8903:[545,44,778,55,720],8905:[492,-8,778,146,628],8906:[492,-8,778,146,628],8907:[694,22,778,55,722],8908:[694,22,778,55,722],8909:[464,-36,778,56,722],8910:[578,21,760,83,676],8911:[578,22,760,83,676],8912:[540,40,778,84,694],8913:[540,40,778,83,693],8914:[598,22,667,55,611],8915:[598,22,667,55,611],8916:[736,22,667,56,611],8918:[541,41,778,82,693],8919:[541,41,778,82,693],8920:[568,67,1333,56,1277],8921:[568,67,1333,55,1277],8922:[886,386,778,83,674],8923:[886,386,778,83,674],8926:[734,0,778,83,694],8927:[734,0,778,82,694],8928:[801,303,778,82,693],8929:[801,303,778,82,694],8934:[730,359,778,55,719],8935:[730,359,778,55,719],8936:[730,359,778,55,719],8937:[730,359,778,55,719],8938:[706,208,778,82,693],8939:[706,208,778,82,693],8940:[802,303,778,82,693],8941:[801,303,778,82,693],8994:[378,-122,778,55,722],8995:[378,-143,778,55,722],9416:[709,175,902,8,894],9484:[694,-306,500,55,444],9488:[694,-306,500,55,444],9492:[366,22,500,55,444],9496:[366,22,500,55,444],9585:[694,195,889,0,860],9586:[694,195,889,0,860],9632:[689,0,778,55,722],9633:[689,0,778,55,722],9650:[575,20,722,84,637],9651:[575,20,722,84,637],9654:[539,41,778,83,694],9660:[576,19,722,84,637],9661:[576,19,722,84,637],9664:[539,41,778,83,694],9674:[716,132,667,56,611],9733:[694,111,944,49,895],10003:[706,34,833,84,749],10016:[716,22,833,48,786],10731:[716,132,667,56,611],10846:[813,97,611,55,555],10877:[636,138,778,83,694],10878:[636,138,778,83,694],10885:[762,290,778,55,722],10886:[762,290,778,55,722],10887:[635,241,778,82,693],10888:[635,241,778,82,693],10889:[761,387,778,57,718],10890:[761,387,778,57,718],10891:[1003,463,778,83,694],10892:[1003,463,778,83,694],10901:[636,138,778,83,694],10902:[636,138,778,83,694],10933:[752,286,778,82,693],10934:[752,286,778,82,693],10935:[761,294,778,57,717],10936:[761,294,778,57,717],10937:[761,337,778,57,718],10938:[761,337,778,57,718],10949:[753,215,778,84,694],10950:[753,215,778,83,694],10955:[783,385,778,82,693],10956:[783,385,778,82,693],57350:[430,23,222,-20,240],57351:[431,24,389,-20,407],57352:[605,85,778,55,719],57353:[434,6,667,37,734],57356:[752,284,778,82,693],57357:[752,284,778,82,693],57358:[919,421,778,82,694],57359:[801,303,778,82,694],57360:[801,303,778,82,694],57361:[919,421,778,82,694],57366:[828,330,778,82,694],57367:[752,332,778,82,694],57368:[828,330,778,82,694],57369:[752,333,778,82,693],57370:[634,255,778,84,693],57371:[634,254,778,82,691]};b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.js deleted file mode 100755 index f226aa654..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_Caligraphic-Bold";b.FONTDATA.FONTS[a]={className:b.FONTDATA.familyName(a),centerline:315,ascent:840,descent:211,weight:"bold",skew:{65:0.224,66:0.16,67:0.16,68:0.0958,69:0.128,70:0.128,71:0.128,72:0.128,73:0.0319,74:0.192,75:0.0639,76:0.16,77:0.16,78:0.0958,79:0.128,80:0.0958,81:0.128,82:0.0958,83:0.16,84:0.0319,85:0.0958,86:0.0319,87:0.0958,88:0.16,89:0.0958,90:0.16},32:[0,0,250,0,0],48:[460,17,575,46,528],49:[461,0,575,80,494],50:[460,0,575,51,517],51:[461,211,575,48,525],52:[469,194,575,32,542],53:[461,211,575,57,517],54:[660,17,575,48,526],55:[476,211,575,64,558],56:[661,17,575,48,526],57:[461,210,575,48,526],65:[751,49,921,39,989],66:[705,17,748,40,740],67:[703,20,613,20,599],68:[686,0,892,20,885],69:[703,16,607,37,627],70:[686,30,814,17,930],71:[703,113,682,50,671],72:[686,48,987,20,946],73:[686,0,642,-27,746],74:[686,114,779,53,937],75:[703,17,871,40,834],76:[703,17,788,41,751],77:[703,49,1378,38,1353],78:[840,49,937,-24,1105],79:[703,17,906,63,882],80:[686,67,810,20,846],81:[703,146,939,120,905],82:[686,17,990,20,981],83:[703,16,696,25,721],84:[720,69,644,38,947],85:[686,24,715,-10,771],86:[686,77,737,25,774],87:[686,77,1169,25,1206],88:[686,-1,817,56,906],89:[686,164,759,36,797],90:[686,0,818,46,853],160:[0,0,250,0,0]};b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Bold.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Bold.js deleted file mode 100755 index d20557d8d..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Bold.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/Fraktur-Bold.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_Fraktur-Bold";b.FONTDATA.FONTS[a]={className:b.FONTDATA.familyName(a),centerline:259,ascent:740,descent:223,weight:"bold",32:[0,0,250,0,0],33:[689,12,349,107,241],34:[695,-432,254,10,231],38:[696,16,871,44,839],39:[695,-436,250,80,158],40:[737,186,459,134,347],41:[735,187,459,105,326],42:[692,-449,328,40,277],43:[598,82,893,56,837],44:[107,191,328,118,253],45:[275,-236,893,54,833],46:[102,15,328,103,237],47:[721,182,593,41,550],48:[501,12,593,42,533],49:[489,0,593,54,548],50:[491,-2,593,44,563],51:[487,193,593,31,523],52:[495,196,593,13,565],53:[481,190,593,19,518],54:[704,12,593,48,547],55:[479,197,593,54,591],56:[714,5,593,45,542],57:[487,195,593,29,549],58:[457,12,255,57,197],59:[458,190,255,56,211],61:[343,-168,582,22,559],63:[697,14,428,40,422],65:[686,31,847,29,827],66:[684,31,1044,57,965],67:[676,32,723,72,726],68:[683,29,982,31,896],69:[686,29,783,74,728],70:[684,146,722,17,727],71:[687,29,927,74,844],72:[683,126,851,6,752],73:[681,25,655,32,623],74:[680,141,652,-8,616],75:[681,26,789,20,806],76:[683,28,786,30,764],77:[683,32,1239,27,1232],78:[679,30,983,26,973],79:[726,30,976,12,881],80:[688,223,977,33,943],81:[726,83,976,12,918],82:[688,28,978,31,978],83:[685,31,978,82,905],84:[686,30,790,31,802],85:[688,39,851,18,871],86:[685,29,982,25,966],87:[683,30,1235,26,1240],88:[681,35,849,32,835],89:[688,214,984,34,878],90:[677,148,711,-4,624],91:[740,130,257,36,226],93:[738,132,257,14,208],94:[734,-452,590,1,584],97:[472,32,603,80,586],98:[690,32,590,86,504],99:[473,26,464,87,424],100:[632,28,589,-1,511],101:[471,27,472,81,428],102:[687,222,388,35,372],103:[472,208,595,17,541],104:[687,207,615,89,507],105:[686,25,331,3,327],106:[682,203,332,-19,238],107:[682,25,464,34,432],108:[681,24,337,100,312],109:[476,31,921,16,900],110:[473,28,654,5,608],111:[482,34,609,107,515],112:[557,207,604,-1,519],113:[485,211,596,87,515],114:[472,26,460,13,453],115:[479,34,523,-23,481],116:[648,27,393,43,407],117:[472,32,589,9,603],118:[546,27,604,56,507],119:[549,32,918,55,815],120:[471,188,459,8,441],121:[557,221,589,60,512],122:[471,214,461,-7,378],160:[0,0,250,0,0],8216:[708,-411,254,53,187],8217:[692,-394,254,58,193],58113:[630,27,587,64,512],58114:[693,212,394,37,408],58115:[681,219,387,36,384],58116:[473,212,593,67,531],58117:[684,27,393,33,387],58120:[679,220,981,32,875],58121:[717,137,727,17,633]};b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js deleted file mode 100755 index 0fdd72ec8..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_Fraktur";b.FONTDATA.FONTS[a]={className:b.FONTDATA.familyName(a),centerline:258,ascent:740,descent:224,32:[0,0,250,0,0],33:[689,12,296,91,204],34:[695,-432,215,8,196],38:[698,11,738,49,733],39:[695,-436,212,69,134],40:[737,186,389,114,293],41:[735,187,389,89,276],42:[692,-449,278,33,234],43:[598,82,756,47,709],44:[107,191,278,99,213],45:[275,-236,756,46,706],46:[102,15,278,87,200],47:[721,182,502,34,466],48:[492,13,502,42,456],49:[468,2,502,47,460],50:[474,-1,502,60,484],51:[473,182,502,39,429],52:[476,191,502,10,481],53:[458,184,502,47,440],54:[700,13,502,45,471],55:[468,181,502,37,498],56:[705,10,502,40,461],57:[469,182,502,28,466],58:[457,12,216,50,168],59:[458,189,216,47,179],61:[368,-132,756,54,725],63:[693,11,362,46,357],65:[696,26,718,22,708],66:[691,27,884,48,820],67:[685,24,613,59,607],68:[685,27,832,27,745],69:[685,24,663,86,634],70:[686,153,611,11,612],71:[690,26,785,66,710],72:[666,133,720,1,644],73:[686,26,554,30,532],74:[686,139,552,-10,522],75:[680,27,668,17,682],76:[686,26,666,33,644],77:[692,27,1050,27,1048],78:[686,25,832,27,825],79:[729,27,827,12,744],80:[692,218,828,28,804],81:[729,69,827,11,782],82:[686,26,828,27,824],83:[692,27,829,66,756],84:[701,27,669,34,676],85:[697,27,646,-25,665],86:[686,26,831,26,825],87:[686,27,1046,32,1054],88:[688,27,719,28,709],89:[686,218,833,27,740],90:[729,139,602,11,532],91:[740,130,278,117,278],93:[738,131,278,-4,160],94:[734,-452,500,0,495],97:[470,35,500,66,497],98:[685,31,513,87,442],99:[466,29,389,72,359],100:[609,33,499,13,428],101:[467,30,401,70,364],102:[681,221,326,30,323],103:[470,209,504,17,455],104:[688,205,521,77,434],105:[673,20,279,14,267],106:[672,208,281,-9,196],107:[689,25,389,24,362],108:[685,20,280,98,276],109:[475,26,767,8,753],110:[475,22,527,20,514],111:[480,28,489,67,412],112:[541,212,500,12,430],113:[479,219,489,60,419],114:[474,21,389,17,387],115:[478,29,443,-18,406],116:[640,20,333,27,348],117:[474,23,517,9,513],118:[530,28,512,55,434],119:[532,28,774,45,688],120:[472,188,389,10,363],121:[528,218,499,45,431],122:[471,214,391,-7,314],160:[0,0,250,0,0],8216:[708,-410,215,45,158],8217:[692,-395,215,49,163],58112:[683,32,497,75,430],58113:[616,30,498,35,432],58114:[680,215,333,29,339],58115:[679,224,329,28,318],58116:[471,214,503,52,449],58117:[686,20,333,26,315],58118:[577,21,334,29,347],58119:[475,22,501,10,514]};b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Main-Bold.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Main-Bold.js deleted file mode 100755 index 12eec4506..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Main-Bold.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/Main-Bold.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_Main-Bold";MathJax.Hub.Insert(b.FONTDATA.FONTS[a],{160:[0,0,250,0,0],168:[695,-535,575,96,478],172:[371,-61,767,64,702],175:[607,-540,575,80,494],176:[702,-536,575,160,414],177:[728,35,894,64,829],180:[706,-503,575,236,460],215:[530,28,894,168,726],247:[597,96,894,64,828],305:[452,8,394,24,367],567:[451,201,439,-12,420],710:[694,-520,575,126,448],711:[660,-515,575,130,444],713:[607,-540,575,80,494],714:[706,-503,575,236,460],715:[706,-503,575,114,338],728:[694,-500,575,102,472],729:[695,-525,575,202,372],730:[702,-536,575,160,414],732:[694,-552,575,96,478],768:[706,-503,0,-461,-237],769:[706,-503,0,-339,-115],770:[694,-520,0,-449,-127],771:[694,-552,0,-479,-97],772:[607,-540,0,-495,-81],774:[694,-500,0,-473,-103],775:[695,-525,0,-373,-203],776:[695,-535,0,-479,-97],778:[702,-536,0,-415,-161],779:[714,-511,0,-442,-82],780:[660,-515,0,-445,-131],824:[711,210,0,-734,-161],8194:[0,0,500,0,0],8195:[0,0,999,0,0],8196:[0,0,333,0,0],8197:[0,0,250,0,0],8198:[0,0,167,0,0],8201:[0,0,167,0,0],8202:[0,0,83,0,0],8211:[300,-249,575,0,574],8212:[300,-249,1150,0,1149],8216:[694,-329,319,58,245],8217:[694,-329,319,74,261],8220:[694,-329,603,110,564],8221:[694,-329,603,38,492],8224:[702,211,511,64,446],8225:[702,202,511,64,446],8230:[171,-1,1295,74,1221],8242:[563,-33,344,35,331],8407:[723,-513,0,-542,-33],8463:[694,8,668,45,642],8465:[702,8,831,64,798],8467:[702,19,474,-1,446],8472:[461,210,740,72,726],8476:[711,16,831,42,824],8501:[694,0,703,64,638],8592:[518,17,1150,64,1084],8593:[694,193,575,14,561],8594:[518,17,1150,65,1085],8595:[694,194,575,14,561],8596:[518,17,1150,64,1085],8597:[767,267,575,14,561],8598:[724,194,1150,64,1084],8599:[724,193,1150,64,1085],8600:[694,224,1150,65,1085],8601:[694,224,1150,64,1085],8614:[518,17,1150,65,1085],8617:[518,17,1282,64,1218],8618:[518,17,1282,65,1217],8636:[518,-220,1150,64,1084],8637:[281,17,1150,64,1084],8640:[518,-220,1150,65,1085],8641:[281,17,1150,64,1085],8652:[718,17,1150,64,1085],8656:[547,46,1150,64,1085],8657:[694,193,703,30,672],8658:[547,46,1150,64,1084],8659:[694,194,703,30,672],8660:[547,46,1150,47,1102],8661:[767,267,703,30,672],8704:[694,16,639,1,640],8706:[710,17,628,60,657],8707:[694,-1,639,64,574],8709:[767,73,575,46,528],8711:[686,24,958,56,901],8712:[587,86,767,97,670],8713:[711,210,767,97,670],8715:[587,86,767,96,670],8722:[281,-221,894,96,797],8723:[537,227,894,64,829],8725:[750,250,575,63,511],8726:[750,250,575,63,511],8727:[472,-28,575,73,501],8728:[474,-28,575,64,510],8729:[474,-28,575,64,510],8730:[820,180,958,78,988],8733:[451,8,894,65,830],8734:[452,8,1150,65,1084],8736:[714,0,722,55,676],8739:[750,249,319,129,190],8741:[750,248,575,145,430],8743:[604,17,767,64,702],8744:[604,16,767,64,702],8745:[603,16,767,64,702],8746:[604,16,767,64,702],8747:[711,211,569,64,632],8764:[391,-109,894,64,828],8768:[583,82,319,64,254],8771:[502,3,894,64,829],8773:[638,27,1000,64,829],8776:[524,-32,894,64,829],8781:[533,32,894,64,829],8784:[721,-109,894,64,829],8800:[711,210,894,64,829],8801:[505,3,894,64,829],8804:[697,199,894,96,797],8805:[697,199,894,96,797],8810:[617,116,1150,64,1085],8811:[618,116,1150,64,1085],8826:[585,86,894,96,797],8827:[586,86,894,96,797],8834:[587,85,894,96,797],8835:[587,86,894,96,796],8838:[697,199,894,96,797],8839:[697,199,894,96,796],8846:[604,16,767,64,702],8849:[697,199,894,96,828],8850:[697,199,894,66,797],8851:[604,-1,767,70,696],8852:[604,-1,767,70,696],8853:[632,132,894,64,828],8854:[632,132,894,64,828],8855:[632,132,894,64,828],8856:[632,132,894,64,828],8857:[632,132,894,64,828],8866:[693,-1,703,65,637],8867:[693,-1,703,64,638],8868:[694,-1,894,64,829],8869:[693,-1,894,65,829],8872:[750,249,974,129,918],8900:[523,21,575,15,560],8901:[336,-166,319,74,245],8902:[502,0,575,24,550],8904:[540,39,1000,33,967],8942:[951,29,319,74,245],8943:[336,-166,1295,74,1221],8945:[871,-101,1323,129,1194],8968:[750,248,511,194,493],8969:[750,248,511,17,317],8970:[749,248,511,194,493],8971:[749,248,511,17,317],8994:[405,-108,1150,65,1084],8995:[392,-126,1150,64,1085],9651:[711,-1,1022,69,953],9657:[540,39,575,33,542],9661:[500,210,1022,68,953],9667:[539,38,575,33,542],9711:[711,211,1150,65,1084],9824:[719,129,894,64,829],9825:[711,24,894,65,828],9826:[719,154,894,64,828],9827:[719,129,894,32,861],9837:[750,17,447,64,381],9838:[741,223,447,57,389],9839:[724,224,447,63,382],10216:[750,249,447,127,382],10217:[750,249,447,64,319],10229:[518,17,1805,64,1741],10230:[518,17,1833,96,1773],10231:[518,17,2126,64,2061],10232:[547,46,1868,64,1804],10233:[547,46,1870,64,1804],10234:[547,46,2126,64,2060],10236:[518,17,1833,65,1773],10815:[686,0,900,39,860],10927:[696,199,894,96,797],10928:[697,199,894,96,797]});b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Math-BoldItalic.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Math-BoldItalic.js deleted file mode 100755 index 60a016bb7..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Math-BoldItalic.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/Math-BoldItalic.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_Math-BoldItalic";b.FONTDATA.FONTS[a]={className:b.FONTDATA.familyName(a),centerline:255,ascent:725,descent:216,weight:"bold",style:"italic",skew:{65:0.16,66:0.0958,67:0.0958,68:0.0639,69:0.0958,70:0.0958,71:0.0958,72:0.0639,73:0.128,74:0.192,75:0.0639,76:0.0319,77:0.0958,78:0.0958,79:0.0958,80:0.0958,81:0.0958,82:0.0958,83:0.0958,84:0.0958,85:0.0319,88:0.0958,90:0.0958,99:0.0639,100:0.192,101:0.0639,102:0.192,103:0.0319,104:-0.0319,108:0.0958,111:0.0639,112:0.0958,113:0.0958,114:0.0639,115:0.0639,116:0.0958,117:0.0319,118:0.0319,119:0.0958,120:0.0319,121:0.0639,122:0.0639,915:0.0958,916:0.192,920:0.0958,923:0.192,926:0.0958,928:0.0639,931:0.0958,933:0.0639,934:0.0958,936:0.0639,937:0.0958,945:0.0319,946:0.0958,948:0.0639,949:0.0958,950:0.0958,951:0.0639,952:0.0958,953:0.0639,956:0.0319,957:0.0319,958:0.128,959:0.0639,961:0.0958,962:0.0958,964:0.0319,965:0.0319,966:0.0958,967:0.0639,968:0.128,977:0.0958,981:0.0958,1009:0.0958,1013:0.0639},32:[0,0,250,0,0],47:[711,210,894,160,733],65:[711,0,869,45,839],66:[686,0,866,43,853],67:[703,17,817,55,855],68:[686,0,938,43,914],69:[680,0,810,43,825],70:[680,0,689,43,809],71:[703,16,887,56,854],72:[686,0,982,43,1027],73:[686,0,511,30,573],74:[686,17,631,42,694],75:[686,0,971,43,1003],76:[686,0,756,43,711],77:[686,0,1142,43,1219],78:[686,0,950,43,1027],79:[703,17,837,53,815],80:[686,0,723,43,847],81:[703,194,869,53,815],82:[686,17,872,43,881],83:[703,17,693,63,714],84:[675,0,637,22,772],85:[686,16,800,63,877],86:[686,16,678,62,886],87:[686,17,1093,61,1207],88:[686,0,947,38,953],89:[686,0,675,40,876],90:[686,0,773,68,805],97:[452,8,633,38,607],98:[694,8,521,45,513],99:[451,8,513,40,509],100:[694,8,610,38,612],101:[452,8,554,42,509],102:[701,201,568,64,624],103:[452,202,545,0,540],104:[694,8,668,45,642],105:[694,8,405,24,367],106:[694,202,471,-12,456],107:[694,8,604,45,578],108:[694,8,348,27,296],109:[452,8,1032,24,1006],110:[452,8,713,24,687],111:[452,8,585,39,576],112:[452,194,601,-23,593],113:[452,194,542,38,550],114:[452,8,529,24,500],115:[451,8,531,57,476],116:[643,7,415,21,387],117:[452,8,681,24,655],118:[453,8,567,24,540],119:[453,8,831,24,796],120:[452,8,659,43,599],121:[452,202,590,24,587],122:[452,8,555,34,539],160:[0,0,250,0,0],915:[680,0,657,43,777],916:[711,0,958,59,904],920:[702,17,867,54,844],923:[711,0,806,44,776],926:[675,0,841,62,867],928:[680,0,982,43,1026],931:[686,0,885,69,902],933:[703,0,671,32,802],934:[686,0,767,29,737],936:[686,0,714,22,790],937:[703,0,879,93,886],945:[452,8,761,39,712],946:[701,194,660,28,637],947:[451,211,590,5,617],948:[725,8,522,39,513],949:[461,17,529,36,481],950:[711,202,508,48,521],951:[452,211,600,24,600],952:[702,8,562,40,554],953:[452,8,412,38,386],954:[452,8,668,45,642],955:[694,13,671,40,652],956:[452,211,708,33,682],957:[452,2,577,38,608],958:[711,201,508,23,490],959:[452,8,585,39,576],960:[444,8,682,23,674],961:[451,211,612,34,603],962:[451,105,424,33,457],963:[444,8,686,35,677],964:[444,13,521,23,610],965:[453,8,631,24,604],966:[452,216,747,53,703],967:[452,201,718,32,685],968:[694,202,758,24,732],969:[453,8,718,24,691],977:[701,8,692,24,656],981:[694,202,712,51,693],982:[444,8,975,23,961],1009:[451,194,612,75,603],1013:[444,7,483,44,450]};b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Bold.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Bold.js deleted file mode 100755 index 3db923c33..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Bold.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/SansSerif-Bold.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_SansSerif-Bold";b.FONTDATA.FONTS[a]={className:b.FONTDATA.familyName(a),centerline:250,ascent:750,descent:250,weight:"bold",32:[0,0,250,0,0],33:[694,0,367,110,256],34:[694,-442,558,37,420],35:[694,193,917,61,855],36:[750,56,550,49,488],37:[750,56,1029,61,966],38:[716,22,831,47,769],39:[694,-442,306,80,226],40:[750,249,428,79,366],41:[750,250,428,61,348],42:[750,-293,550,67,482],43:[617,116,856,61,794],44:[146,106,306,80,226],45:[273,-186,367,12,305],46:[146,0,306,80,226],47:[750,249,550,61,488],48:[715,22,550,43,506],49:[716,-1,550,76,473],50:[716,0,550,46,495],51:[716,22,550,46,503],52:[694,0,550,31,518],53:[694,22,550,37,494],54:[716,22,550,46,503],55:[695,11,550,46,503],56:[715,22,550,46,503],57:[716,22,550,46,503],58:[458,0,306,80,226],59:[458,106,306,80,226],61:[407,-94,856,61,794],63:[705,0,519,61,457],64:[704,11,733,61,671],65:[694,0,733,42,690],66:[694,-1,733,92,671],67:[704,11,703,61,647],68:[694,-1,794,92,732],69:[691,0,642,92,595],70:[691,0,611,92,564],71:[705,11,733,61,659],72:[694,0,794,92,702],73:[694,0,331,85,246],74:[694,22,519,46,427],75:[694,0,764,92,701],76:[694,0,581,92,534],77:[694,0,978,92,886],78:[694,0,794,92,702],79:[716,22,794,62,731],80:[694,0,703,92,641],81:[716,106,794,62,732],82:[694,0,703,92,654],83:[716,22,611,49,549],84:[688,0,733,40,692],85:[694,22,764,92,672],86:[694,-1,733,27,705],87:[694,0,1039,24,1014],88:[694,0,733,37,694],89:[694,0,733,24,708],90:[694,0,672,61,616],91:[750,250,343,79,318],93:[750,250,343,24,263],94:[694,-537,550,108,441],95:[-23,110,550,0,549],97:[475,11,525,31,472],98:[694,10,561,54,523],99:[475,11,489,37,457],100:[694,11,561,37,507],101:[474,10,511,30,480],102:[705,0,336,29,381],103:[469,206,550,17,534],104:[694,0,561,53,508],105:[695,0,256,46,208],106:[695,205,286,-71,232],107:[694,0,531,63,496],108:[694,0,256,54,201],109:[469,0,867,53,815],110:[468,0,561,53,508],111:[474,11,550,32,518],112:[469,194,561,54,523],113:[469,194,561,37,507],114:[469,0,372,54,356],115:[474,10,422,30,396],116:[589,10,404,20,373],117:[458,11,561,52,508],118:[458,0,500,26,473],119:[458,0,744,24,719],120:[458,0,500,24,475],121:[458,205,500,29,473],122:[458,0,476,31,442],126:[344,-198,550,92,457],160:[0,0,250,0,0],305:[458,0,256,54,201],567:[458,205,286,-71,232],768:[694,-537,0,-458,-218],769:[694,-537,0,-334,-93],770:[694,-537,0,-442,-109],771:[694,-548,0,-458,-93],772:[660,-560,0,-474,-77],774:[694,-552,0,-470,-80],775:[695,-596,0,-356,-194],776:[695,-595,0,-459,-91],778:[694,-538,0,-365,-119],779:[694,-537,0,-440,-94],780:[657,-500,0,-442,-109],915:[691,0,581,92,534],916:[694,0,917,60,856],920:[716,22,856,62,793],923:[694,0,672,41,630],926:[688,0,733,46,686],928:[691,0,794,92,702],931:[694,0,794,61,732],933:[715,0,856,62,793],934:[694,0,794,62,732],936:[694,0,856,61,794],937:[716,0,794,49,744],8211:[327,-240,550,0,549],8212:[327,-240,1100,0,1099],8216:[694,-443,306,81,226],8217:[694,-442,306,80,226],8220:[694,-443,558,138,520],8221:[694,-442,558,37,420]};b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Italic.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Italic.js deleted file mode 100755 index 16d0cc6f8..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Italic.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/SansSerif-Italic.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_SansSerif-Italic";b.FONTDATA.FONTS[a]={className:b.FONTDATA.familyName(a),centerline:250,ascent:750,descent:250,style:"italic",32:[0,0,250,0,0],33:[694,0,319,110,355],34:[694,-471,500,133,472],35:[694,194,833,87,851],36:[750,56,500,56,565],37:[750,56,833,165,815],38:[716,22,758,71,747],39:[694,-471,278,190,335],40:[750,250,389,104,491],41:[750,250,389,2,390],42:[750,-306,500,156,568],43:[583,83,778,108,775],44:[98,125,278,63,209],45:[259,-186,333,51,332],46:[98,0,278,90,209],47:[750,250,500,6,600],48:[678,22,500,88,549],49:[678,0,500,88,451],50:[678,0,500,50,551],51:[678,22,500,56,544],52:[656,0,500,62,521],53:[656,22,500,50,555],54:[678,22,500,94,548],55:[656,11,500,143,596],56:[678,22,500,77,554],57:[677,22,500,77,545],58:[444,0,278,90,282],59:[444,125,278,63,282],61:[370,-130,778,88,796],63:[704,0,472,173,536],64:[705,10,667,120,707],65:[694,0,667,28,638],66:[694,0,667,90,696],67:[705,10,639,124,719],68:[694,0,722,88,747],69:[691,0,597,86,688],70:[691,0,569,86,673],71:[705,11,667,125,730],72:[694,0,708,86,768],73:[694,0,278,87,338],74:[694,22,472,46,535],75:[694,0,694,88,785],76:[694,0,542,87,516],77:[694,0,875,92,929],78:[694,0,708,88,766],79:[716,22,736,118,763],80:[694,0,639,88,690],81:[716,125,736,118,763],82:[694,0,646,88,698],83:[716,22,556,54,609],84:[688,0,681,165,790],85:[694,22,688,131,747],86:[694,0,667,161,799],87:[694,0,944,161,1076],88:[694,0,667,14,758],89:[694,0,667,151,810],90:[694,0,611,55,702],91:[750,250,289,41,425],93:[750,250,289,-31,353],94:[694,-527,500,190,533],95:[-38,114,500,50,565],97:[461,10,481,61,473],98:[694,11,517,75,539],99:[460,11,444,75,499],100:[694,10,517,73,588],101:[460,11,444,71,472],102:[705,0,306,94,494],103:[455,206,500,12,568],104:[694,0,517,73,513],105:[680,0,239,74,315],106:[680,204,267,-96,336],107:[694,0,489,76,543],108:[694,0,239,74,311],109:[455,0,794,73,790],110:[454,0,517,73,513],111:[461,11,500,69,523],112:[455,194,517,34,538],113:[455,194,517,72,538],114:[455,0,342,74,424],115:[461,11,383,35,436],116:[571,11,361,97,410],117:[444,10,517,90,537],118:[444,0,461,108,540],119:[444,0,683,108,762],120:[444,0,461,1,537],121:[444,205,461,1,540],122:[444,0,435,28,494],126:[327,-193,500,199,560],160:[0,0,250,0,0],305:[444,0,239,74,258],567:[444,204,267,-96,286],768:[694,-527,0,-270,-87],769:[694,-527,0,-190,63],770:[694,-527,0,-310,33],771:[677,-543,0,-301,60],772:[631,-552,0,-314,64],774:[694,-508,0,-284,73],775:[680,-576,0,-180,-54],776:[680,-582,0,-273,40],778:[693,-527,0,-227,-2],779:[694,-527,0,-287,63],780:[654,-487,0,-283,60],915:[691,0,542,87,646],916:[694,0,833,42,790],920:[715,22,778,119,804],923:[694,0,611,28,582],926:[688,0,667,42,765],928:[691,0,708,86,768],931:[694,0,722,55,813],933:[716,0,778,173,843],934:[694,0,722,124,743],936:[694,0,778,171,854],937:[716,0,722,44,769],8211:[312,-236,500,50,565],8212:[312,-236,1000,50,1065],8216:[694,-471,278,190,336],8217:[694,-471,278,190,335],8220:[694,-471,500,274,614],8221:[694,-471,500,133,472]};b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js deleted file mode 100755 index c3d228723..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_SansSerif";b.FONTDATA.FONTS[a]={className:b.FONTDATA.familyName(a),centerline:250,ascent:750,descent:250,32:[0,0,250,0,0],33:[694,0,319,110,208],34:[694,-471,500,32,325],35:[694,194,833,56,777],36:[750,56,500,44,444],37:[750,56,833,56,776],38:[716,22,758,42,702],39:[694,-471,278,89,188],40:[750,250,389,74,333],41:[750,250,389,55,314],42:[750,-306,500,63,436],43:[583,82,778,56,722],44:[98,125,278,89,188],45:[259,-186,333,11,277],46:[98,0,278,90,188],47:[750,250,500,56,445],48:[678,22,500,39,460],49:[678,0,500,83,430],50:[677,0,500,42,449],51:[678,22,500,42,457],52:[656,0,500,28,471],53:[656,21,500,33,449],54:[677,22,500,42,457],55:[656,11,500,42,457],56:[678,22,500,43,456],57:[677,22,500,42,457],58:[444,0,278,90,188],59:[444,125,278,89,188],61:[370,-130,778,56,722],63:[704,0,472,55,416],64:[704,11,667,56,612],65:[694,0,667,28,638],66:[694,0,667,90,610],67:[705,11,639,59,587],68:[694,0,722,88,666],69:[691,0,597,86,554],70:[691,0,569,86,526],71:[704,11,667,59,599],72:[694,0,708,86,621],73:[694,0,278,87,191],74:[694,22,472,42,388],75:[694,0,694,88,651],76:[694,0,542,87,499],77:[694,0,875,92,782],78:[694,0,708,88,619],79:[715,22,736,55,680],80:[694,0,639,88,583],81:[715,125,736,55,680],82:[694,0,646,88,617],83:[716,22,556,44,500],84:[688,0,681,36,644],85:[694,22,688,87,600],86:[694,0,667,14,652],87:[694,0,944,14,929],88:[694,0,667,14,652],89:[694,0,667,3,663],90:[694,0,611,55,560],91:[750,250,289,94,266],93:[750,250,289,22,194],94:[694,-527,500,78,421],95:[-38,114,500,0,499],97:[460,10,481,38,407],98:[694,11,517,75,482],99:[460,10,444,34,415],100:[694,10,517,33,441],101:[461,10,444,28,415],102:[705,0,306,27,347],103:[455,206,500,28,485],104:[694,0,517,73,443],105:[680,0,239,67,171],106:[680,205,267,-59,192],107:[694,0,489,76,471],108:[694,0,239,74,164],109:[455,0,794,73,720],110:[455,0,517,73,443],111:[460,10,500,28,471],112:[455,194,517,75,483],113:[455,194,517,33,441],114:[455,0,342,74,327],115:[460,10,383,28,360],116:[571,10,361,18,333],117:[444,10,517,73,443],118:[444,0,461,14,446],119:[444,0,683,14,668],120:[444,0,461,0,460],121:[444,204,461,14,446],122:[444,0,435,28,402],126:[327,-193,500,83,416],160:[0,0,250,0,0],305:[444,0,239,74,164],567:[444,205,267,-59,192],768:[694,-527,0,-417,-199],769:[694,-527,0,-302,-84],770:[694,-527,0,-422,-79],771:[677,-543,0,-417,-84],772:[631,-552,0,-431,-70],774:[694,-508,0,-427,-74],775:[680,-576,0,-302,-198],776:[680,-582,0,-397,-104],778:[694,-527,0,-319,-99],779:[694,-527,0,-399,-84],780:[654,-487,0,-422,-79],915:[691,0,542,87,499],916:[694,0,833,42,790],920:[716,21,778,56,722],923:[694,0,611,28,582],926:[688,0,667,42,624],928:[691,0,708,86,621],931:[694,0,722,55,666],933:[716,0,778,55,722],934:[694,0,722,55,666],936:[694,0,778,55,722],937:[716,0,722,44,677],8211:[312,-236,500,0,499],8212:[312,-236,1000,0,999],8216:[694,-471,278,90,189],8217:[694,-471,278,89,188],8220:[694,-471,500,174,467],8221:[694,-471,500,32,325]};b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Script-Regular.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Script-Regular.js deleted file mode 100755 index d00b50bb3..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Script-Regular.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/Script-Regular.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_Script";b.FONTDATA.FONTS[a]={className:b.FONTDATA.familyName(a),centerline:211,ascent:735,descent:314,skew:{65:0.389,66:0.194,67:0.278,68:0.111,69:0.139,70:0.222,71:0.25,72:0.333,73:0.333,74:0.417,75:0.361,76:0.306,77:0.444,78:0.389,79:0.167,80:0.222,81:0.278,82:0.194,83:0.333,84:0.222,85:0.25,86:0.222,87:0.25,88:0.278,89:0.194,90:0.306},32:[0,0,250,0,0],65:[717,8,803,35,1016],66:[708,28,908,31,928],67:[728,26,666,26,819],68:[708,31,774,68,855],69:[707,8,562,46,718],70:[735,36,895,39,990],71:[717,37,610,12,738],72:[717,36,969,29,1241],73:[717,17,809,59,946],74:[717,314,1052,92,1133],75:[717,37,914,29,1204],76:[717,17,874,14,1035],77:[721,50,1080,30,1216],78:[726,36,902,29,1208],79:[707,8,738,96,805],80:[716,37,1013,90,1031],81:[717,17,883,54,885],82:[717,17,850,-2,887],83:[708,36,868,29,1016],84:[735,37,747,92,996],85:[717,17,800,55,960],86:[717,17,622,56,850],87:[717,17,805,46,1026],88:[717,17,944,103,1131],89:[716,17,710,57,959],90:[717,16,821,83,1032],160:[0,0,250,0,0]};b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Typewriter-Regular.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Typewriter-Regular.js deleted file mode 100755 index a5842d032..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Typewriter-Regular.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/Typewriter-Regular.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b){var a="MathJax_Typewriter";b.FONTDATA.FONTS[a]={className:b.FONTDATA.familyName(a),centerline:233,ascent:694,descent:229,32:[0,0,250,0,0],33:[622,0,525,206,320],34:[623,-333,525,122,402],35:[611,0,525,36,489],36:[694,82,525,58,466],37:[694,83,525,35,489],38:[622,11,525,28,490],39:[611,-287,525,175,349],40:[694,82,525,166,437],41:[694,82,525,87,358],42:[520,-90,525,68,456],43:[531,-81,525,38,487],44:[140,139,525,173,353],45:[341,-271,525,57,468],46:[140,-1,525,193,332],47:[694,83,525,58,466],48:[621,10,525,42,482],49:[622,-1,525,99,450],50:[622,-1,525,52,472],51:[622,11,525,44,479],52:[624,-1,525,29,495],53:[611,10,525,52,472],54:[622,11,525,45,479],55:[627,10,525,44,480],56:[621,10,525,45,479],57:[622,11,525,46,479],58:[431,-1,525,193,332],59:[431,139,525,175,337],60:[557,-55,525,57,468],61:[417,-195,525,38,487],62:[557,-55,525,57,468],63:[617,0,525,62,462],64:[617,6,525,44,481],65:[623,-1,525,28,496],66:[611,-1,525,17,482],67:[622,11,525,40,484],68:[611,-1,525,16,485],69:[611,-1,525,19,502],70:[611,-1,525,22,490],71:[622,11,525,38,496],72:[611,-1,525,16,508],73:[611,-1,525,72,452],74:[611,11,525,57,479],75:[611,-1,525,18,495],76:[611,0,525,25,488],77:[611,-1,525,12,512],78:[611,0,525,20,504],79:[621,10,525,56,468],80:[611,-1,525,19,480],81:[621,138,525,56,468],82:[611,11,525,16,522],83:[622,11,525,52,472],84:[611,-1,525,26,498],85:[611,11,525,-3,528],86:[611,7,525,19,505],87:[611,7,525,12,512],88:[611,-1,525,28,495],89:[611,-1,525,20,505],90:[611,-1,525,48,481],91:[694,82,525,214,483],92:[694,83,525,58,466],93:[694,82,525,41,310],94:[611,-460,525,96,428],95:[-25,95,525,57,468],96:[681,-357,525,176,350],97:[439,6,525,48,524],98:[611,6,525,4,492],99:[440,6,525,66,466],100:[611,6,525,31,520],101:[440,6,525,48,464],102:[617,-1,525,35,437],103:[442,229,525,28,509],104:[611,-1,525,4,520],105:[612,-1,525,72,462],106:[612,228,525,48,376],107:[611,-1,525,13,507],108:[611,-1,525,51,474],109:[436,-1,525,-12,536],110:[436,-1,525,4,520],111:[440,6,525,52,472],112:[437,221,525,4,492],113:[437,221,525,34,545],114:[437,-1,525,24,487],115:[440,6,525,72,458],116:[554,6,525,25,448],117:[431,5,525,4,520],118:[431,4,525,24,500],119:[431,4,525,16,508],120:[431,-1,525,29,495],121:[431,228,525,26,500],122:[431,-1,525,34,475],123:[694,83,525,50,475],124:[694,82,525,228,297],125:[694,83,525,49,475],126:[611,-466,525,87,437],127:[612,-519,525,104,421],160:[0,0,250,0,0],305:[431,-1,525,72,462],567:[431,228,525,48,376],768:[611,-485,0,-409,-195],769:[611,-485,0,-331,-117],770:[611,-460,0,-429,-97],771:[611,-466,0,-438,-88],772:[577,-500,0,-452,-74],774:[611,-504,0,-446,-79],776:[612,-519,0,-421,-104],778:[619,-499,0,-344,-182],780:[577,-449,0,-427,-99],915:[611,0,525,25,488],916:[623,0,525,35,489],920:[621,10,525,56,468],923:[623,-1,525,30,495],926:[611,-1,525,33,491],928:[611,-1,525,16,508],931:[611,-1,525,40,484],933:[622,-1,525,38,486],934:[611,-1,525,41,483],936:[611,-1,525,37,487],937:[622,-1,525,32,492],2018:[611,-287,525,175,349],2019:[681,-357,525,176,350],8242:[623,-334,525,211,313]};b.fontLoaded("TeX/"+a.substr(8))})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata-extra.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata-extra.js deleted file mode 100755 index d822c7b2a..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata-extra.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/fontdata-extra.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(i){var n="2.7.1";var m=i.FONTDATA.DELIMITERS;var g="MathJax_Main",h="MathJax_Main-Bold",k="MathJax_AMS",e="MathJax_Size1",a="MathJax_Size4";var l="H",f="V";var j=[8722,g,0,0,0,-0.31,-0.31];var c=[61,g,0,0,0,0,0.1];var d={61:{dir:l,HW:[[0.767,g]],stretch:{rep:[61,g]}},8606:{dir:l,HW:[[1,k]],stretch:{left:[8606,k],rep:j}},8608:{dir:l,HW:[[1,k]],stretch:{right:[8608,k],rep:j}},8612:{dir:l,HW:[],stretch:{min:1,left:[8592,g],rep:j,right:[8739,e,0,-0.05,0.9]}},8613:{dir:f,HW:[],stretch:{min:0.6,bot:[8869,h,0,0,0.75],ext:[9168,e],top:[8593,e]}},8614:{dir:l,HW:[[1,g]],stretch:{left:[8739,e,-0.09,-0.05,0.9],rep:j,right:[8594,g]}},8615:{dir:f,HW:[],stretch:{min:0.6,top:[8868,h,0,0,0.75],ext:[9168,e],bot:[8595,e]}},8624:{dir:f,HW:[[0.722,k]],stretch:{top:[8624,k],ext:[9168,e,0.097]}},8625:{dir:f,HW:[[0.722,k]],stretch:{top:[8625,k,0.27],ext:[9168,e]}},8636:{dir:l,HW:[[1,g]],stretch:{left:[8636,g],rep:j}},8637:{dir:l,HW:[[1,g]],stretch:{left:[8637,g],rep:j}},8638:{dir:f,HW:[[0.888,k]],stretch:{top:[8638,k,0.12,0,1.1],ext:[9168,e]}},8639:{dir:f,HW:[[0.888,k]],stretch:{top:[8639,k,0.12,0,1.1],ext:[9168,e]}},8640:{dir:l,HW:[[1,g]],stretch:{right:[8640,g],rep:j}},8641:{dir:l,HW:[[1,g]],stretch:{right:[8641,g],rep:j}},8642:{dir:f,HW:[[0.888,k]],stretch:{bot:[8642,k,0.12,0,1.1],ext:[9168,e]}},8643:{dir:f,HW:[[0.888,k]],stretch:{bot:[8643,k,0.12,0,1.1],ext:[9168,e]}},8666:{dir:l,HW:[[1,k]],stretch:{left:[8666,k],rep:[8801,g]}},8667:{dir:l,HW:[[1,k]],stretch:{right:[8667,k],rep:[8801,g]}},9140:{dir:l,HW:[],stretch:{min:0.5,left:[9484,k,0,-0.1],rep:[8722,g,0,0.35],right:[9488,k,0,-0.1]}},9141:{dir:l,HW:[],stretch:{min:0.5,left:[9492,k,0,0.26],rep:[8722,g,0,0,0,0.25],right:[9496,k,0,0.26]}},9180:{dir:l,HW:[[0.778,k,0,8994],[1,g,0,8994]],stretch:{left:[57680,a],rep:[57684,a],right:[57681,a]}},9181:{dir:l,HW:[[0.778,k,0,8995],[1,g,0,8995]],stretch:{left:[57682,a],rep:[57684,a],right:[57683,a]}},9184:{dir:l,HW:[],stretch:{min:1.25,left:[714,g,-0.1],rep:[713,g,0,0.13],right:[715,g],fullExtenders:true}},9185:{dir:l,HW:[],stretch:{min:1.5,left:[715,g,-0.1,0.1],rep:[713,g],right:[714,g,-0.1,0.1],fullExtenders:true}},10502:{dir:l,HW:[],stretch:{min:1,left:[8656,g],rep:c,right:[8739,e,0,-0.1]}},10503:{dir:l,HW:[],stretch:{min:0.7,left:[8872,k,0,-0.12],rep:c,right:[8658,g]}},10574:{dir:l,HW:[],stretch:{min:0.5,left:[8636,g],rep:j,right:[8640,g]}},10575:{dir:f,HW:[],stretch:{min:0.5,top:[8638,k,0.12,0,1.1],ext:[9168,e],bot:[8642,k,0.12,0,1.1]}},10576:{dir:l,HW:[],stretch:{min:0.5,left:[8637,g],rep:j,right:[8641,g]}},10577:{dir:f,HW:[],stretch:{min:0.5,top:[8639,k,0.12,0,1.1],ext:[9168,e],bot:[8643,k,0.12,0,1.1]}},10586:{dir:l,HW:[],stretch:{min:1,left:[8636,g],rep:j,right:[8739,e,0,-0.05,0.9]}},10587:{dir:l,HW:[],stretch:{min:1,left:[8739,e,-0.05,-0.05,0.9],rep:j,right:[8640,g]}},10588:{dir:f,HW:[],stretch:{min:0.7,bot:[8869,h,0,0,0.75],ext:[9168,e],top:[8638,k,0.12,0,1.1]}},10589:{dir:f,HW:[],stretch:{min:0.7,top:[8868,h,0,0,0.75],ext:[9168,e],bot:[8642,k,0.12,0,1.1]}},10590:{dir:l,HW:[],stretch:{min:1,left:[8637,g],rep:j,right:[8739,e,0,-0.05,0.9]}},10591:{dir:l,HW:[],stretch:{min:1,left:[8739,e,-0.05,-0.05,0.9],rep:j,right:[8641,g]}},10592:{dir:f,HW:[],stretch:{min:0.7,bot:[8869,h,0,0,0.75],ext:[9168,e],top:[8639,k,0.12,0,1.1]}},10593:{dir:f,HW:[],stretch:{min:0.7,top:[8868,h,0,0,0.75],ext:[9168,e],bot:[8643,k,0.12,0,1.1]}}};for(var b in d){if(d.hasOwnProperty(b)){m[b]=d[b]}}i.fontLoaded("TeX/fontdata-extra")})(MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata.js deleted file mode 100755 index 46e134a22..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/CommonHTML/fonts/TeX/fontdata.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(a,c,r){var q="2.7.1";var m="MathJax_Main",s="MathJax_Main-Bold",o="MathJax_Math-Italic",i="MathJax_AMS",h="MathJax_Size1",g="MathJax_Size2",f="MathJax_Size3",d="MathJax_Size4";var j="H",b="V",l={load:"extra",dir:j},e={load:"extra",dir:b};var k=[8722,m,0,0,0,-0.31,-0.31];var n=[61,m,0,0,0,0,0.1];var p=a.config.undefinedFamily;MathJax.Hub.Insert(a.config.styles,{".MJXc-TeX-unknown-R":{"font-family":p,"font-style":"normal","font-weight":"normal"},".MJXc-TeX-unknown-I":{"font-family":p,"font-style":"italic","font-weight":"normal"},".MJXc-TeX-unknown-B":{"font-family":p,"font-style":"normal","font-weight":"bold"},".MJXc-TeX-unknown-BI":{"font-family":p,"font-style":"italic","font-weight":"bold"}});a.TEX=a.TEXDEF;a.FONTDEF.TeX={version:q,baselineskip:1.2,lineH:0.8,lineD:0.2,FONTS:{MathJax_AMS:"TeX/AMS-Regular.js","MathJax_Caligraphic-Bold":"TeX/Caligraphic-Bold.js",MathJax_Fraktur:"TeX/Fraktur-Regular.js","MathJax_Fraktur-Bold":"TeX/Fraktur-Bold.js","MathJax_Math-BoldItalic":"TeX/Math-BoldItalic.js",MathJax_SansSerif:"TeX/SansSerif-Regular.js","MathJax_SansSerif-Bold":"TeX/SansSerif-Bold.js","MathJax_SansSerif-Italic":"TeX/SansSerif-Italic.js",MathJax_Script:"TeX/Script-Regular.js",MathJax_Typewriter:"TeX/Typewriter-Regular.js"},UNKNOWN:{R:{className:"MJXc-TeX-unknown-R"},I:{className:"MJXc-TeX-unknown-I"},B:{className:"MJXc-TeX-unknown-B"},BI:{className:"MJXc-TeX-unknown-BI"}},VARIANT:{normal:{fonts:[m,h,i],cache:{},offsetG:945,variantG:"italic",remap:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,932:84,935:88,8214:8741,8726:[8726,"-TeX-variant"],8463:[8463,"-TeX-variant"],8242:[39,"sans-serif-italic"],10744:[47,c.VARIANT.ITALIC]}},bold:{fonts:[s],bold:true,cache:{},chain:"normal",offsetG:945,variantG:"bold-italic",remap:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,932:84,935:88,10744:[47,"bold-italic"],8214:8741,8602:"\u2190\u0338",8603:"\u2192\u0338",8622:"\u2194\u0338",8653:"\u21D0\u0338",8654:"\u21D4\u0338",8655:"\u21D2\u0338",8708:"\u2203\u0338",8740:"\u2223\u0338",8742:"\u2225\u0338",8769:"\u223C\u0338",8775:"\u2245\u0338",8814:"<\u0338",8815:">\u0338",8816:"\u2264\u0338",8817:"\u2265\u0338",8832:"\u227A\u0338",8833:"\u227B\u0338",8840:"\u2286\u0338",8841:"\u2287\u0338",8876:"\u22A2\u0338",8877:"\u22A8\u0338",8928:"\u227C\u0338",8929:"\u227D\u0338"}},italic:{fonts:[o,"MathJax_Main-Italic"],italic:true,cache:{},chain:"normal",remap:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,932:84,935:88}},"bold-italic":{fonts:["MathJax_Math-BoldItalic"],bold:true,italic:true,cache:{},chain:"bold",remap:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,932:84,935:88}},"double-struck":{fonts:[i,m,h],cache:{}},fraktur:{fonts:["MathJax_Fraktur"],cache:{},chain:"normal"},"bold-fraktur":{fonts:["MathJax_Fraktur-Bold"],bold:true,cache:{},chain:"bold"},script:{fonts:["MathJax_Script"],cache:{},chain:"normal"},"bold-script":{fonts:["MathJax_Script"],bold:true,cache:{},chain:"bold"},"sans-serif":{fonts:["MathJax_SansSerif"],cache:{},chain:"normal"},"bold-sans-serif":{fonts:["MathJax_SansSerif-Bold"],bold:true,cache:{},chain:"bold"},"sans-serif-italic":{fonts:["MathJax_SansSerif-Italic"],italic:true,cache:{},chain:"italic"},"sans-serif-bold-italic":{fonts:["MathJax_SansSerif-Italic"],bold:true,italic:true,cache:{},chain:"italic"},monospace:{fonts:["MathJax_Typewriter"],cache:{},chain:"normal"},"-tex-caligraphic":{fonts:["MathJax_Caligraphic"],offsetA:65,variantA:"italic",cache:{},chain:"normal"},"-tex-oldstyle":{fonts:["MathJax_Caligraphic"],cache:{},chain:"normal"},"-tex-mathit":{fonts:["MathJax_Main-Italic"],italic:true,noIC:true,cache:{},chain:"normal",remap:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,932:84,935:88}},"-TeX-variant":{fonts:[i,m,h],cache:{},remap:{8808:57356,8809:57357,8816:57361,8817:57358,10887:57360,10888:57359,8740:57350,8742:57351,8840:57366,8841:57368,8842:57370,8843:57371,10955:57367,10956:57369,988:57352,1008:57353,8726:[8726,c.VARIANT.NORMAL],8463:[8463,c.VARIANT.NORMAL]}},"-largeOp":{fonts:[g,h,m,i],cache:{}},"-smallOp":{fonts:[h,m,i],cache:{}},"-tex-caligraphic-bold":{fonts:["MathJax_Caligraphic-Bold","MathJax_Main-Bold"],bold:true,cache:{},chain:"normal",offsetA:65,variantA:"bold-italic"},"-tex-oldstyle-bold":{fonts:["MathJax_Caligraphic-Bold","MathJax_Main-Bold"],bold:true,cache:{},chain:"normal"}},RANGES:[{name:"alpha",low:97,high:122,offset:"A",add:32},{name:"number",low:48,high:57,offset:"N"},{name:"greek",low:945,high:1014,offset:"G"}],RULECHAR:8722,REMAP:{8254:713,8400:8636,8401:8640,8406:8592,8417:8596,8428:8641,8429:8637,8430:8592,8431:8594,8432:42,65079:9182,65080:9183,183:8901,697:8242,978:933,8710:916,8213:8212,8215:95,8226:8729,8260:47,8965:8892,8966:10846,9642:9632,9652:9650,9653:9651,9656:9654,9662:9660,9663:9661,9666:9664,9001:10216,9002:10217,12296:10216,12297:10217,10072:8739,10799:215,9723:9633,9724:9632,8450:[67,c.VARIANT.DOUBLESTRUCK],8459:[72,c.VARIANT.SCRIPT],8460:[72,c.VARIANT.FRAKTUR],8461:[72,c.VARIANT.DOUBLESTRUCK],8462:[104,c.VARIANT.ITALIC],8464:[74,c.VARIANT.SCRIPT],8465:[73,c.VARIANT.FRAKTUR],8466:[76,c.VARIANT.SCRIPT],8469:[78,c.VARIANT.DOUBLESTRUCK],8473:[80,c.VARIANT.DOUBLESTRUCK],8474:[81,c.VARIANT.DOUBLESTRUCK],8475:[82,c.VARIANT.SCRIPT],8476:[82,c.VARIANT.FRAKTUR],8477:[82,c.VARIANT.DOUBLESTRUCK],8484:[90,c.VARIANT.DOUBLESTRUCK],8486:[937,c.VARIANT.NORMAL],8488:[90,c.VARIANT.FRAKTUR],8492:[66,c.VARIANT.SCRIPT],8493:[67,c.VARIANT.FRAKTUR],8496:[69,c.VARIANT.SCRIPT],8497:[70,c.VARIANT.SCRIPT],8499:[77,c.VARIANT.SCRIPT],8775:8774,8988:9484,8989:9488,8990:9492,8991:9496,8708:"\u2203\u0338",8716:"\u220B\u0338",8772:"\u2243\u0338",8777:"\u2248\u0338",8802:"\u2261\u0338",8813:"\u224D\u0338",8820:"\u2272\u0338",8821:"\u2273\u0338",8824:"\u2276\u0338",8825:"\u2277\u0338",8836:"\u2282\u0338",8837:"\u2283\u0338",8930:"\u2291\u0338",8931:"\u2292\u0338",10764:"\u222C\u222C",8243:"\u2032\u2032",8244:"\u2032\u2032\u2032",8246:"\u2035\u2035",8247:"\u2035\u2035\u2035",8279:"\u2032\u2032\u2032\u2032",8411:"...",8412:"...."},REMAPACCENT:{"\u2192":"\u20D7","\u2032":"'","\u2035":"`"},REMAPACCENTUNDER:{},PLANE1MAP:[[119808,119833,65,c.VARIANT.BOLD],[119834,119859,97,c.VARIANT.BOLD],[119860,119885,65,c.VARIANT.ITALIC],[119886,119911,97,c.VARIANT.ITALIC],[119912,119937,65,c.VARIANT.BOLDITALIC],[119938,119963,97,c.VARIANT.BOLDITALIC],[119964,119989,65,c.VARIANT.SCRIPT],[120068,120093,65,c.VARIANT.FRAKTUR],[120094,120119,97,c.VARIANT.FRAKTUR],[120120,120145,65,c.VARIANT.DOUBLESTRUCK],[120172,120197,65,c.VARIANT.BOLDFRAKTUR],[120198,120223,97,c.VARIANT.BOLDFRAKTUR],[120224,120249,65,c.VARIANT.SANSSERIF],[120250,120275,97,c.VARIANT.SANSSERIF],[120276,120301,65,c.VARIANT.BOLDSANSSERIF],[120302,120327,97,c.VARIANT.BOLDSANSSERIF],[120328,120353,65,c.VARIANT.SANSSERIFITALIC],[120354,120379,97,c.VARIANT.SANSSERIFITALIC],[120432,120457,65,c.VARIANT.MONOSPACE],[120458,120483,97,c.VARIANT.MONOSPACE],[120488,120513,913,c.VARIANT.BOLD],[120546,120570,913,c.VARIANT.ITALIC],[120572,120603,945,c.VARIANT.ITALIC],[120604,120628,913,c.VARIANT.BOLDITALIC],[120630,120661,945,c.VARIANT.BOLDITALIC],[120662,120686,913,c.VARIANT.BOLDSANSSERIF],[120720,120744,913,c.VARIANT.SANSSERIFBOLDITALIC],[120782,120791,48,c.VARIANT.BOLD],[120802,120811,48,c.VARIANT.SANSSERIF],[120812,120821,48,c.VARIANT.BOLDSANSSERIF],[120822,120831,48,c.VARIANT.MONOSPACE]],REMAPGREEK:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,930:920,932:84,935:88,938:8711,970:8706,971:1013,972:977,973:1008,974:981,975:1009,976:982},RemapPlane1:function(w,v){for(var u=0,t=this.PLANE1MAP.length;u *":{position:"absolute"},".MJXc-bevelled > *":{display:"inline-block"},".mjx-stack":{display:"inline-block"},".mjx-op":{display:"block"},".mjx-under":{display:"table-cell"},".mjx-over":{display:"block"},".mjx-over > *":{"padding-left":"0px!important","padding-right":"0px!important"},".mjx-under > *":{"padding-left":"0px!important","padding-right":"0px!important"},".mjx-stack > .mjx-sup":{display:"block"},".mjx-stack > .mjx-sub":{display:"block"},".mjx-prestack > .mjx-presup":{display:"block"},".mjx-prestack > .mjx-presub":{display:"block"},".mjx-delim-h > .mjx-char":{display:"inline-block"},".mjx-surd":{"vertical-align":"top"},".mjx-mphantom *":{visibility:"hidden"},".mjx-merror":{"background-color":"#FFFF88",color:"#CC0000",border:"1px solid #CC0000",padding:"2px 3px","font-style":"normal","font-size":"90%"},".mjx-annotation-xml":{"line-height":"normal"},".mjx-menclose > svg":{fill:"none",stroke:"currentColor"},".mjx-mtr":{display:"table-row"},".mjx-mlabeledtr":{display:"table-row"},".mjx-mtd":{display:"table-cell","text-align":"center"},".mjx-label":{display:"table-row"},".mjx-box":{display:"inline-block"},".mjx-block":{display:"block"},".mjx-span":{display:"inline"},".mjx-char":{display:"block","white-space":"pre"},".mjx-itable":{display:"inline-table",width:"auto"},".mjx-row":{display:"table-row"},".mjx-cell":{display:"table-cell"},".mjx-table":{display:"table",width:"100%"},".mjx-line":{display:"block",height:0},".mjx-strut":{width:0,"padding-top":e+"em"},".mjx-vsize":{width:0},".MJXc-space1":{"margin-left":".167em"},".MJXc-space2":{"margin-left":".222em"},".MJXc-space3":{"margin-left":".278em"},".mjx-chartest":{display:"block",visibility:"hidden",position:"absolute",top:0,"line-height":"normal","font-size":"500%"},".mjx-chartest .mjx-char":{display:"inline"},".mjx-chartest .mjx-box":{"padding-top":"1000px"},".MJXc-processing":{visibility:"hidden",position:"fixed",width:0,height:0,overflow:"hidden"},".MJXc-processed":{display:"none"},".mjx-test":{display:"block","font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","text-indent":0,"text-transform":"none","letter-spacing":"normal","word-spacing":"normal",overflow:"hidden",height:"1px"},".mjx-ex-box-test":{position:"absolute",width:"1px",height:"60ex"},".mjx-line-box-test":{display:"table!important"},".mjx-line-box-test span":{display:"table-cell!important",width:"10000em!important","min-width":0,"max-width":"none",padding:0,border:0,margin:0},"#MathJax_CHTML_Tooltip":{"background-color":"InfoBackground",color:"InfoText",border:"1px solid black","box-shadow":"2px 2px 5px #AAAAAA","-webkit-box-shadow":"2px 2px 5px #AAAAAA","-moz-box-shadow":"2px 2px 5px #AAAAAA","-khtml-box-shadow":"2px 2px 5px #AAAAAA",padding:"3px 4px","z-index":401,position:"absolute",left:0,top:0,width:"auto",height:"auto",display:"none"}};var n=1000000;var l={},o=MathJax.Hub.config;h.Augment({settings:c.config.menuSettings,config:{styles:p},Config:function(){if(!this.require){this.require=[]}this.SUPER(arguments).Config.call(this);var r=this.settings;if(r.scale){this.config.scale=r.scale}this.require.push(this.fontDir+"/TeX/fontdata.js");this.require.push(MathJax.OutputJax.extensionDir+"/MathEvents.js");l=this.config.linebreaks},Startup:function(){m=MathJax.Extension.MathEvents.Event;b=MathJax.Extension.MathEvents.Touch;d=MathJax.Extension.MathEvents.Hover;this.ContextMenu=m.ContextMenu;this.Mousedown=m.AltContextMenu;this.Mouseover=d.Mouseover;this.Mouseout=d.Mouseout;this.Mousemove=d.Mousemove;var r=h.addElement(document.body,"mjx-block",{style:{display:"block",width:"5in"}});this.pxPerInch=r.offsetWidth/5;r.parentNode.removeChild(r);this.TestSpan=h.Element("mjx-test",{style:{left:"1em"}},[["mjx-ex-box-test"]]);this.linebreakSpan=f.Element("span",{className:"mjx-line-box-test"},[["span"]]);return j.Styles(this.config.styles,["InitializeCHTML",this])},InitializeCHTML:function(){this.getDefaultExEm();if(this.defaultEm){return}var r=MathJax.Callback();j.timer.start(j,function(s){if(s.time(r)){c.signal.Post(["CommonHTML Jax - no default em size"]);return}h.getDefaultExEm();if(h.defaultEm){r()}else{setTimeout(s,s.delay)}},this.defaultEmDelay,this.defaultEmTimeout);return r},defaultEmDelay:100,defaultEmTimeout:1000,getDefaultExEm:function(){document.body.appendChild(this.TestSpan);document.body.appendChild(this.linebreakSpan);this.defaultEm=this.getFontSize(this.TestSpan);this.defaultEx=this.TestSpan.firstChild.offsetHeight/60;this.defaultWidth=this.linebreakSpan.firstChild.offsetWidth;document.body.removeChild(this.linebreakSpan);document.body.removeChild(this.TestSpan)},getFontSize:(window.getComputedStyle?function(s){var r=window.getComputedStyle(s);return parseFloat(r.fontSize)}:function(r){return r.style.pixelLeft}),getMaxWidth:(window.getComputedStyle?function(s){var r=window.getComputedStyle(s);if(r.maxWidth!=="none"){return parseFloat(r.maxWidth)}return 0}:function(s){var r=s.currentStyle.maxWidth;if(r!=="none"){if(r.match(/\d*px/)){return parseFloat(r)}var t=s.style.left;s.style.left=r;r=s.style.pixelLeft;s.style.left=t;return r}return 0}),loadFont:function(r){c.RestartAfter(j.Require(this.fontDir+"/"+r))},fontLoaded:function(r){if(!r.match(/-|fontdata/)){r+="-Regular"}if(!r.match(/\.js$/)){r+=".js"}MathJax.Callback.Queue(["Post",c.Startup.signal,["CommonHTML - font data loaded",r]],["loadComplete",j,this.fontDir+"/"+r])},Element:function(r,t,s){if(r.substr(0,4)==="mjx-"){if(!t){t={}}if(t.isMathJax==null){t.isMathJax=true}if(t.className){t.className=r+" "+t.className}else{t.className=r}r="span"}return this.HTMLElement(r,t,s)},addElement:function(t,r,u,s){return t.appendChild(this.Element(r,u,s))},HTMLElement:f.Element,ucMatch:f.ucMatch,setScript:f.setScript,getNode:function(v,u){var s=RegExp("\\b"+u+"\\b");while(v){for(var t=0,r=v.childNodes.length;t=w.CHTMLlast+w.CHTMLchunk){this.postTranslate(w);w.CHTMLchunk=Math.floor(w.CHTMLchunk*this.config.EqnChunkFactor);w.CHTMLdelay=true}},initCHTML:function(s,r){},savePreview:function(r){var s=r.MathJax.preview;if(s&&s.parentNode){r.MathJax.tmpPreview=document.createElement("span");s.parentNode.replaceChild(r.MathJax.tmpPreview,s)}},restorePreview:function(r){var s=r.MathJax.tmpPreview;if(s){s.parentNode.replaceChild(r.MathJax.preview,s);delete r.MathJax.tmpPreview}},getMetrics:function(r){var s=r.CHTML;this.jax=r;this.em=s.em;this.outerEm=s.outerEm;this.scale=s.scale;this.cwidth=s.cwidth;this.linebreakWidth=s.lineWidth},postTranslate:function(w){var s=w.jax[this.id];for(var u=w.CHTMLlast,r=w.CHTMLeqn;uB.h){s.marginTop=h.Em(B.t-B.h)}if(B.b>B.d){s.marginBottom=h.Em(B.b-B.d)}if(B.l<0){s.paddingLeft=h.Em(-B.l)}if(B.r>B.w){s.marginRight=h.Em(B.r-B.w)}s.position="absolute";var y=u.offsetWidth,w=u.offsetHeight,C=z.firstChild.offsetHeight,v=z.firstChild.offsetWidth;u.style.position="";return{Y:-m.getBBox(A).h,mW:v,mH:C,zW:y,zH:w}},Remove:function(r){var s=document.getElementById(r.inputID+"-Frame");if(s&&r.CHTML.display){s=s.parentNode}if(s){s.parentNode.removeChild(s)}delete r.CHTML},ID:0,idPostfix:"",GetID:function(){this.ID++;return this.ID},MATHSPACE:{veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:0.04,medium:0.06,thick:0.1,infinity:n},SPACECLASS:{thinmathspace:"MJXc-space1",mediummathspace:"MJXc-space2",thickmathspace:"MJXc-space3"},pxPerInch:96,em:16,maxStretchyParts:1000,FONTDEF:{},TEXDEF:{x_height:0.442,quad:1,num1:0.676508,num2:0.393732,num3:0.44373,denom1:0.685951,denom2:0.344841,sup1:0.412892,sup2:0.362892,sup3:0.288888,sub1:0.15,sub2:0.247217,sup_drop:0.386108,sub_drop:0.05,delim1:2.39,delim2:1,axis_height:0.25,rule_thickness:0.06,big_op_spacing1:0.111111,big_op_spacing2:0.166666,big_op_spacing3:0.2,big_op_spacing4:0.45,big_op_spacing5:0.1,surd_height:0.075,scriptspace:0.05,nulldelimiterspace:0.12,delimiterfactor:901,delimitershortfall:0.3,min_rule_thickness:1.25},unicodeChar:function(r){if(r<65535){return String.fromCharCode(r)}r-=65536;return String.fromCharCode((r>>10)+55296)+String.fromCharCode((r&1023)+56320)},getUnicode:function(r){var s=r.text.charCodeAt(r.i);r.i++;if(s>=55296&&s<56319){s=(((s-55296)<<10)+(r.text.charCodeAt(r.i)-56320))+65536;r.i++}return s},getCharList:function(v,u){var t,A,y=[],s=v.cache,D=u;if(s[u]){return s[u]}if(u>65535&&this.FONTDATA.RemapPlane1){var z=this.FONTDATA.RemapPlane1(u,v);u=z.n;v=z.variant}var r=this.FONTDATA.RANGES,C=this.FONTDATA.VARIANT;if(u>=r[0].low&&u<=r[r.length-1].high){for(t=0,A=r.length;t=r[t].low&&u<=r[t].high){if(r[t].remap&&r[t].remap[u]){u=x+r[t].remap[u]}else{u=u-r[t].low+x;if(r[t].add){u+=r[t].add}}if(v["variant"+r[t].offset]){v=C[v["variant"+r[t].offset]]}break}}}if(v.remap&&v.remap[u]){u=v.remap[u];if(v.remap.variant){v=C[v.remap.variant]}}else{if(this.FONTDATA.REMAP[u]&&!v.noRemap){u=this.FONTDATA.REMAP[u]}}if(g(u)){v=C[u[1]];u=u[0]}if(typeof(u)==="string"){var w={text:u,i:0,length:u.length};while(w.i(x.a||0)){x.a=v.a}var w=s[u.n];v.text+=w.c;v.className=s.className;if(x.hx.w+w[3]){x.l=x.w+w[3]}if(x.rv.a){v.a=t.a}}r=this.flushText(r,t,s.style);r.style.width=h.Em(u[2])},flushText:function(s,t,r){s=h.addElement(s,"mjx-charbox",{className:t.className,style:r},[t.text]);if(t.a){s.style.paddingBottom=h.Em(t.a)}t.text="";t.className=null;t.a=0;t.flushed=true;return s}},handleText:function(t,w,s,v){if(t.childNodes.length===0){h.addElement(t,"mjx-char");v=h.BBOX.empty(v)}if(typeof(s)==="string"){s=this.FONTDATA.VARIANT[s]}if(!s){s=this.FONTDATA.VARIANT[i.VARIANT.NORMAL]}var r={text:w,i:0,length:w.length},u=[];if(s.style&&r.length){u.push(this.styledText(s,w))}else{while(r.i-v.b){t.firstChild.style.paddingBottom=this.EmRounded(v.d+v.b)}return v},createDelimiter:function(w,r,t,z,u){if(!r){var A=this.BBOX.zero();A.w=A.r=this.TEX.nulldelimiterspace;h.addElement(w,"mjx-box",{style:{width:A.w}});return A}if(!(t instanceof Array)){t=[t,t]}var y=t[1];t=t[0];var s={alias:r};while(s.alias){r=s.alias;s=this.FONTDATA.DELIMITERS[r];if(!s){s={HW:[0,this.FONTDATA.VARIANT[i.VARIANT.NORMAL]]}}}if(s.load){c.RestartAfter(j.Require(this.fontDir+"/TeX/fontdata-"+s.load+".js"))}for(var x=0,v=s.HW.length;x=t-0.01||(x==v-1&&!s.stretch)){if(s.HW[x][3]){r=s.HW[x][3]}A=this.createChar(w,[r,s.HW[x][1]],(s.HW[x][2]||1),u);A.offset=0.6*A.w;if(z){A.scale=z.scale;z.rscale=z.rscale}return A}}if(!s.stretch){return A}return this["extendDelimiter"+s.dir](w,y,s.stretch,z,u)},extendDelimiterV:function(D,w,O,v,B){D=h.addElement(D,"mjx-delim-v");var M=h.Element("span");var A,z,N,u,G,s,E,x,F=1,L;G=this.createChar(M,(O.top||O.ext),1,B);A=M.removeChild(M.firstChild);s=this.createChar(M,(O.bot||O.ext),1,B);z=M.removeChild(M.firstChild);E=x=h.BBOX.zero();var I=G.h+G.d+s.h+s.d-q;D.appendChild(A);if(O.mid){E=this.createChar(M,O.mid,1,B);N=M.removeChild(M.firstChild);I+=E.h+E.d;F=2}if(O.min&&wI){x=this.createChar(M,O.ext,1,B);u=M.removeChild(M.firstChild);var K=x.h+x.d,t=K-q;var C=Math.min(Math.ceil((w-I)/(F*t)),this.maxStretchyParts);if(O.fullExtenders){w=C*F*t+I}else{t=(w-I)/(F*C)}L=x.d+x.a-K/2;u.style.margin=u.style.padding="";u.style.lineHeight=h.Em(t);u.style.marginBottom=h.Em(L-q/2/F);u.style.marginTop=h.Em(-L-q/2/F);var J=u.textContent,y="\n"+J;while(--C>0){J+=y}u.textContent=J;D.appendChild(u);if(O.mid){D.appendChild(N);D.appendChild(u.cloneNode(true))}}else{L=(w-I-q)/F;A.style.marginBottom=h.Em(L+parseFloat(A.style.marginBottom||"0"));if(O.mid){D.appendChild(N)}z.style.marginTop=h.Em(L+parseFloat(z.style.marginTop||"0"))}D.appendChild(z);var r=h.BBOX({w:Math.max(G.w,x.w,s.w,E.w),l:Math.min(G.l,x.l,s.l,E.l),r:Math.max(G.r,x.r,s.r,E.r),h:w-s.d,d:s.d,t:w-s.d,b:s.d});r.offset=0.5*r.w;if(v){r.scale=v.scale;r.rscale=v.rscale}return r},extendDelimiterH:function(E,r,O,u,C){E=h.addElement(E,"mjx-delim-h");var M=h.Element("span");var s,L,N,t,J,B,v,F,y,G=1;B=this.createChar(M,(O.left||O.rep),1,C);s=M.removeChild(M.firstChild);v=this.createChar(M,(O.right||O.rep),1,C);L=M.removeChild(M.firstChild);y=this.createChar(M,O.rep,1,C);t=M.removeChild(M.firstChild);s.style.marginLeft=h.Em(-B.l);L.style.marginRight=h.Em(v.r-v.w);E.appendChild(s);var P=h.BBOX.zero();P.h=Math.max(B.h,v.h,y.h);P.d=Math.max(B.D||B.d,v.D||v.d,y.D||y.d);var x=(B.r-B.l)+(v.r-v.l)-q;if(O.mid){F=this.createChar(M,O.mid,1,C);N=M.removeChild(M.firstChild);N.style.marginleft=h.Em(-F.l);N.style.marginRight=h.Em(F.r-F.w);x+=F.r-F.l+q;G=2;if(F.h>P.h){P.h=F.h}if(F.d>P.d){P.d=F.d}}if(O.min&&rx){var A=y.r-y.l,I=A-q;var D=Math.min(Math.ceil((r-x)/(G*I)),this.maxStretchyParts);if(O.fullExtenders){r=D*G*I+x}else{I=(r-x)/(G*D)}var K=(A-I+q/G)/2;t.style.marginLeft=h.Em(-y.l-K);t.style.marginRight=h.Em(y.r-y.w+K);t.style.letterSpacing=h.Em(-(y.w-I));s.style.marginRight=h.Em(B.r-B.w);L.style.marginleft=h.Em(-v.l);var H=t.textContent,z=H;while(--D>0){H+=z}t.textContent=H;E.appendChild(t);if(O.mid){E.appendChild(N);J=E.appendChild(t.cloneNode(true))}}else{K=(r-x-q/G)/2;s.style.marginRight=h.Em(B.r-B.w+K);if(O.mid){E.appendChild(N)}L.style.marginLeft=h.Em(-v.l+K)}E.appendChild(L);this.adjustHeights([s,t,N,J,L],[B,y,F,y,v],P);if(u){P.scale=u.scale;P.rscale=u.rscale}return P},adjustHeights:function(s,v,w){var t=w.h,x=w.d;if(w.d<0){x=-w.d;w.D=w.d;w.d=0}for(var u=0,r=s.length;u0){delete this.D}},rescale:function(r){this.w*=r;this.h*=r;this.d*=r;this.l*=r;this.r*=r;this.t*=r;this.b*=r;if(this.L){this.L*=r}if(this.R){this.R*=r}if(this.D){this.D*=r}},combine:function(s,r,t){s.X=r;s.Y=t;scale=s.rscale;if(r+scale*s.r>this.r){this.r=r+scale*s.r}if(r+scale*s.lthis.w){this.w=r+scale*(s.w+(s.L||0)+(s.R||0))}if(t+scale*s.h>this.h){this.h=t+scale*s.h}if(s.D&&(this.D==null||scale*s.D-t>this.D)&&scale*s.D>this.d){this.D=scale*s.D-t}else{if(s.D==null&&this.D){delete this.D}}if(scale*s.d-t>this.d){this.d=scale*s.d-t}if(t+scale*s.t>this.t){this.t=t+scale*s.t}if(scale*s.b-t>this.b){this.b=scale*s.b-t}},append:function(s){scale=s.rscale;var r=this.w;if(r+scale*s.r>this.r){this.r=r+scale*s.r}if(r+scale*s.lthis.h){this.h=scale*s.h}if(s.D&&(this.D==null||scale*s.D>this.D)&&scale*s.D>this.d){this.D=scale*s.D}else{if(s.D==null&&this.D){delete this.D}}if(scale*s.d>this.d){this.d=scale*s.d}if(scale*s.t>this.t){this.t=scale*s.t}if(scale*s.b>this.b){this.b=scale*s.b}},updateFrom:function(r){this.h=r.h;this.d=r.d;this.w=r.w;this.r=r.r;this.l=r.l;this.t=r.t;this.b=r.b;if(r.pwidth){this.pwidth=r.pwidth}if(r.D){this.D=r.D}else{delete this.D}},adjust:function(s,r,u,t){this[r]+=h.length2em(s,1,this.scale);if(t==null){if(this[r]>this[u]){this[u]=this[r]}}else{if(this[u]y.r){y.r=y.w}if(s.h>y.h){y.h=s.h}if(s.d>y.d){y.d=s.d}if(s.t>y.t){y.t=s.t}if(s.b>y.b){y.b=s.b}}}},CHTMLstretchChildH:function(u,r,v){var x=this.data[u];if(x){var y=this.CHTML,t=x.CHTML;if(t.stretch||(t.stretch==null&&x.CHTMLcanStretch("Horizontal",r))){var s=t.w;t=x.CHTMLstretchH(this.CHTMLchildNode(v,u),r);y.w+=t.w-s;if(y.w>y.r){y.r=y.w}if(t.h>y.h){y.h=t.h}if(t.d>y.d){y.d=t.d}if(t.t>y.t){y.t=t.t}if(t.b>y.b){y.b=t.b}}}},CHTMLcanStretch:function(v,t,u){var s=false;if(this.isEmbellished()){var r=this.Core();if(r&&r!==this){s=r.CHTMLcanStretch(v,t,u)}}this.CHTML.stretch=s;return s},CHTMLstretchV:function(r,s){this.CHTML.updateFrom(this.Core().CHTMLstretchV(r,s));return this.CHTML},CHTMLstretchH:function(s,r){this.CHTML.updateFrom(this.CHTMLstretchCoreH(s,r));return this.CHTML},CHTMLstretchCoreH:function(s,r){return this.Core().CHTMLstretchH(this.CHTMLcoreNode(s),r)},CHTMLcreateNode:function(r){if(!this.CHTML){this.CHTML={}}this.CHTML=h.BBOX.zero();if(this.href){r=h.addElement(r,"a",{href:this.href,isMathJax:true})}if(!this.CHTMLnodeID){this.CHTMLnodeID=h.GetID()}var s=(this.id||"MJXc-Node-"+this.CHTMLnodeID)+h.idPostfix;return this.CHTMLhandleAttributes(h.addElement(r,"mjx-"+this.type,{id:s}))},CHTMLnodeElement:function(){if(!this.CHTMLnodeID){return null}return document.getElementById((this.id||"MJXc-Node-"+this.CHTMLnodeID)+h.idPostfix)},CHTMLlength2em:function(s,r){return h.length2em(s,r,this.CHTML.scale)},CHTMLhandleAttributes:function(u){if(this["class"]){if(u.className){u.className+=" "+this["class"]}else{u.className=this["class"]}}if(this.attrNames){var y=this.attrNames,t=i.nocopyAttributes,x=c.config.ignoreMMLattributes;var v=(this.type==="mstyle"?i.math.prototype.defaults:this.defaults);for(var s=0,r=y.length;s2){r.scriptlevel=2}w=Math.pow(this.Get("scriptsizemultiplier"),r.scriptlevel);r.scriptminsize=h.length2em(this.Get("scriptminsize"),0.8,1);if(w600?"bold":"normal")}var s=r.mathvariant;if(this.variantForm){s="-TeX-variant"}if(r.family&&!r.hasVariant){if(!r.weight&&r.mathvariant.match(/bold/)){r.weight="bold"}if(!r.style&&r.mathvariant.match(/italic/)){r.style="italic"}this.CHTMLvariant={fonts:[],noRemap:true,cache:{},style:{"font-family":r.family,"font-weight":r.weight||"normal","font-style":r.style||"normal"}};return}if(r.weight==="bold"){s={normal:i.VARIANT.BOLD,italic:i.VARIANT.BOLDITALIC,fraktur:i.VARIANT.BOLDFRAKTUR,script:i.VARIANT.BOLDSCRIPT,"sans-serif":i.VARIANT.BOLDSANSSERIF,"sans-serif-italic":i.VARIANT.SANSSERIFBOLDITALIC}[s]||s}else{if(r.weight==="normal"){s={bold:i.VARIANT.normal,"bold-italic":i.VARIANT.ITALIC,"bold-fraktur":i.VARIANT.FRAKTUR,"bold-script":i.VARIANT.SCRIPT,"bold-sans-serif":i.VARIANT.SANSSERIF,"sans-serif-bold-italic":i.VARIANT.SANSSERIFITALIC}[s]||s}}if(r.style==="italic"){s={normal:i.VARIANT.ITALIC,bold:i.VARIANT.BOLDITALIC,"sans-serif":i.VARIANT.SANSSERIFITALIC,"bold-sans-serif":i.VARIANT.SANSSERIFBOLDITALIC}[s]||s}else{if(r.style==="normal"){s={italic:i.VARIANT.NORMAL,"bold-italic":i.VARIANT.BOLD,"sans-serif-italic":i.VARIANT.SANSSERIF,"sans-serif-bold-italic":i.VARIANT.BOLDSANSSERIF}[s]||s}}this.CHTMLvariant=h.FONTDATA.VARIANT[s]||h.FONTDATA.VARIANT[i.VARIANT.NORMAL]},CHTMLbboxFor:function(r){if(this.data[r]&&this.data[r].CHTML){return this.data[r].CHTML}return h.BBOX.zero()},CHTMLdrawBBox:function(s,t){if(!t){t=this.CHTML}var r=h.Element("mjx-box",{style:{opacity:0.25,"margin-left":h.Em(-(t.w+(t.R||0)))}},[["mjx-box",{style:{height:h.Em(t.h),width:h.Em(t.w),"background-color":"red"}}],["mjx-box",{style:{height:h.Em(t.d),width:h.Em(t.w),"margin-left":h.Em(-t.w),"vertical-align":h.Em(-t.d),"background-color":"green"}}]]);if(s.nextSibling){s.parentNode.insertBefore(r,s.nextSibling)}else{s.parentNode.appendChild(r)}},CHTMLnotEmpty:function(r){while(r&&r.data.length<2&&(r.type==="mrow"||r.type==="texatom")){r=r.data[0]}return !!r}},{CHTMLautoload:function(){var r=h.autoloadDir+"/"+this.type+".js";c.RestartAfter(j.Require(r))},CHTMLautoloadFile:function(r){var s=h.autoloadDir+"/"+r+".js";c.RestartAfter(j.Require(s))},CHTMLstretchV:function(r,s){this.Core().CHTMLstretchV(r,s);this.toCommonHTML(this.CHTMLnodeElement(),{stretch:true});return this.CHTML},CHTMLstretchH:function(s,r){this.CHTMLstretchCoreH(s,r);this.toCommonHTML(s,{stretch:true});return this.CHTML}});i.chars.Augment({toCommonHTML:function(s,r){if(r==null){r={}}var t=this.toString();if(r.remap){t=r.remap(t,r.remapchars)}this.CHTMLhandleText(s,t,r.variant||this.parent.CHTMLvariant)}});i.entity.Augment({toCommonHTML:function(s,r){if(r==null){r={}}var t=this.toString();if(r.remapchars){t=r.remap(t,r.remapchars)}this.CHTMLhandleText(s,t,r.variant||this.parent.CHTMLvariant)}});i.math.Augment({toCommonHTML:function(w){w=this.CHTMLdefaultNode(w);if(this.CHTML.w<0){w.parentNode.style.width="0px";w.parentNode.style.marginRight=h.Em(this.CHTML.w)}var u=this.Get("alttext");if(u&&!w.getAttribute("aria-label")){w.setAttribute("aria-label",u)}if(this.CHTML.pwidth){w.parentNode.style.minWidth=this.CHTML.mwidth||h.Em(this.CHTML.w);w.parentNode.className="mjx-full-width "+w.parentNode.className;w.style.width=this.CHTML.pwidth}else{if(!this.isMultiline&&this.Get("display")==="block"){var t=this.getValues("indentalignfirst","indentshiftfirst","indentalign","indentshift");if(t.indentalignfirst!==i.INDENTALIGN.INDENTALIGN){t.indentalign=t.indentalignfirst}if(t.indentalign===i.INDENTALIGN.AUTO){t.indentalign=o.displayAlign}if(t.indentshiftfirst!==i.INDENTSHIFT.INDENTSHIFT){t.indentshift=t.indentshiftfirst}if(t.indentshift==="auto"){t.indentshift="0"}var s=this.CHTMLlength2em(t.indentshift,h.cwidth);if(o.displayIndent!=="0"){var r=this.CHTMLlength2em(o.displayIndent,h.cwidth);s+=(t.indentalign===i.INDENTALIGN.RIGHT?-r:r)}var v=w.parentNode.parentNode.style;w.parentNode.style.textAlign=v.textAlign=t.indentalign;if(s){s*=h.em/h.outerEm;c.Insert(v,({left:{marginLeft:h.Em(s)},right:{marginRight:h.Em(-s)},center:{marginLeft:h.Em(s),marginRight:h.Em(-s)}})[t.indentalign])}}}return w}});i.mi.Augment({toCommonHTML:function(r){r=this.CHTMLdefaultNode(r);var t=this.CHTML,s=this.data.join("");if(t.skew!=null&&s.length!==1){delete t.skew}if(t.r>t.w&&s.length===1&&!this.CHTMLvariant.noIC){t.ic=t.r-t.w;t.w=t.r;r.lastChild.style.paddingRight=h.Em(t.ic)}return r}});i.mn.Augment({CHTMLremapMinus:function(r){return r.replace(/^-/,"\u2212")},toCommonHTML:function(r){r=this.CHTMLdefaultNode(r,{childOptions:{remap:this.CHTMLremapMinus}});var t=this.CHTML,s=this.data.join("");if(t.skew!=null&&s.length!==1){delete t.skew}if(t.r>t.w&&s.length===1&&!this.CHTMLvariant.noIC){t.ic=t.r-t.w;t.w=t.r;r.lastChild.style.paddingRight=h.Em(t.ic)}return r}});i.mo.Augment({toCommonHTML:function(u){u=this.CHTMLcreateNode(u);this.CHTMLhandleStyle(u);this.CHTMLgetVariant();this.CHTMLhandleScale(u);h.BBOX.empty(this.CHTML);var s=this.getValues("displaystyle","largeop");s.variant=this.CHTMLvariant;s.text=this.data.join("");if(s.text==""){if(this.fence){u.style.width=h.Em(h.TEX.nulldelimiterspace)}}else{this.CHTMLadjustAccent(s);this.CHTMLadjustVariant(s);for(var t=0,r=this.data.length;t0){if(!this.hasValue("lspace")){s.lspace=0.15}if(!this.hasValue("rspace")){s.rspace=0.15}}var r=this,t=this.Parent();while(t&&t.isEmbellished()&&t.Core()===r){r=t;t=t.Parent();u=r.CHTMLnodeElement()}if(s.lspace){u.style.paddingLeft=h.Em(s.lspace)}if(s.rspace){u.style.paddingRight=h.Em(s.rspace)}this.CHTML.L=s.lspace;this.CHTML.R=s.rspace}else{this.SUPER(arguments).CHTMLhandleSpace.apply(this,arguments)}},CHTMLadjustAccent:function(t){var s=this.CoreParent();t.parent=s;if(t.text.length===1&&s&&s.isa(i.munderover)&&this.CoreText(s.data[s.base]).length===1){var u=s.data[s.over],r=s.data[s.under];if(u&&this===u.CoreMO()&&s.Get("accent")){t.remapchars=h.FONTDATA.REMAPACCENT}else{if(r&&this===r.CoreMO()&&s.Get("accentunder")){t.remapchars=h.FONTDATA.REMAPACCENTUNDER}}}},CHTMLadjustVariant:function(s){var r=s.parent,t=(r&&r.isa(i.msubsup)&&this!==r.data[r.base]);if(s.largeop){s.mathvariant=(s.displaystyle?"-largeOp":"-smallOp")}if(t){s.remapchars=this.remapChars;if(s.text.match(/['`"\u00B4\u2032-\u2037\u2057]/)){s.mathvariant="-TeX-variant"}}},CHTMLfixCombiningChar:function(r){r=r.firstChild;var s=h.Element("mjx-box",{style:{width:".25em","margin-left":"-.25em"}});r.insertBefore(s,r.firstChild)},CHTMLcenterOp:function(r){var t=this.CHTML;var s=(t.h-t.d)/2-h.TEX.axis_height;if(Math.abs(s)>0.001){r.style.verticalAlign=h.Em(-s)}t.h-=s;t.d+=s;if(t.r>t.w){t.ic=t.r-t.w;t.w=t.r;r.style.paddingRight=h.Em(t.ic)}},CHTMLcanStretch:function(v,t,u){if(!this.Get("stretchy")){return false}var w=this.data.join("");if(w.length!==1){return false}var s={text:w};this.CHTMLadjustAccent(s);if(s.remapchars){w=s.remapchars[w]||w}w=h.FONTDATA.DELIMITERS[w.charCodeAt(0)];var r=(w&&w.dir===v.substr(0,1));if(r){r=(this.CHTML.h!==t||this.CHTML.d!==u||!!this.Get("minsize",true)||!!this.Get("maxsize",true));if(r){this.CHTML.stretch=true}}return r},CHTMLstretchV:function(u,x){var v=this.CHTMLnodeElement(),w=this.CHTML;var s=this.getValues("symmetric","maxsize","minsize");var t,r=h.TEX.axis_height;if(s.symmetric){t=2*Math.max(u-r,x+r)}else{t=u+x}s.maxsize=this.CHTMLlength2em(s.maxsize,w.h+w.d);s.minsize=this.CHTMLlength2em(s.minsize,w.h+w.d);t=Math.max(s.minsize,Math.min(s.maxsize,t));if(t!==w.sH){if(t!=s.minsize){t=[Math.max(t*h.TEX.delimiterfactor/1000,t-h.TEX.delimitershortfall),t]}while(v.firstChild){v.removeChild(v.firstChild)}this.CHTML=w=h.createDelimiter(v,this.data.join("").charCodeAt(0),t,w);w.sH=(t instanceof Array?t[1]:t);if(s.symmetric){t=(w.h+w.d)/2+r}else{t=(w.h+w.d)*u/(u+x)}t-=w.h;if(Math.abs(t)>0.05){v.style.verticalAlign=h.Em(t);w.h+=t;w.d-=t;w.t+=t;w.b-=t}}return this.CHTML},CHTMLstretchH:function(t,r){var u=this.CHTML;var s=this.getValues("maxsize","minsize","mathvariant","fontweight");if((s.fontweight==="bold"||(this.removedStyles||{}).fontWeight==="bold"||parseInt(s.fontweight)>=600)&&!this.Get("mathvariant",true)){s.mathvariant=i.VARIANT.BOLD}s.maxsize=this.CHTMLlength2em(s.maxsize,u.w);s.minsize=this.CHTMLlength2em(s.minsize,u.w);r=Math.max(s.minsize,Math.min(s.maxsize,r));if(r!==u.sW){while(t.firstChild){t.removeChild(t.firstChild)}this.CHTML=u=h.createDelimiter(t,this.data.join("").charCodeAt(0),r,u,s.mathvariant);u.sW=r}return this.CHTML}});i.mtext.Augment({CHTMLgetVariant:function(){if(h.config.mtextFontInherit||this.Parent().type==="merror"){var t=(h.config.scale/100)/h.scale;var s={cache:{},fonts:[],className:"MJXc-font-inherit",rscale:t,style:{"font-size":h.Percent(t)}};var r=this.Get("mathvariant");if(r.match(/bold/)){s.style["font-weight"]="bold"}if(r.match(/italic|-tex-mathit/)){s.style["font-style"]="italic"}if(r==="monospace"){s.className+=" MJXc-monospace-font"}if(r==="double-struck"){s.className+=" MJXc-double-struck-font"}if(r.match(/fraktur/)){s.className+=" MJXc-fraktur-font"}if(r.match(/sans-serif/)){s.className+=" MJXc-sans-serif-font"}if(r.match(/script/)){s.className+=" MJXc-script-font"}this.CHTMLvariant=s}else{this.SUPER(arguments).CHTMLgetVariant.call(this)}}});i.merror.Augment({toCommonHTML:function(r){r=this.CHTMLdefaultNode(r);var s=this.CHTML;s.rescale(0.9);s.h+=3/h.em;if(s.h>s.t){s.t=s.h}s.d+=3/h.em;if(s.d>s.b){s.b=s.d}s.w+=8/h.em;s.r=s.w;s.l=0;return r}});i.mspace.Augment({toCommonHTML:function(u){u=this.CHTMLcreateNode(u);this.CHTMLhandleStyle(u);this.CHTMLhandleScale(u);var s=this.getValues("height","depth","width");var r=this.CHTMLlength2em(s.width),t=this.CHTMLlength2em(s.height),x=this.CHTMLlength2em(s.depth);var v=this.CHTML;v.w=v.r=r;v.h=v.t=t;v.d=v.b=x;v.l=0;if(r<0){u.style.marginRight=h.Em(r);r=0}u.style.width=h.Em(r);u.style.height=h.Em(Math.max(0,t+x));if(x){u.style.verticalAlign=h.Em(-x)}this.CHTMLhandleBBox(u);this.CHTMLhandleColor(u);return u}});i.mpadded.Augment({toCommonHTML:function(s,E){var r;if(E&&E.stretch){s=s.firstChild;r=s.firstChild}else{s=this.CHTMLdefaultNode(s,{childNodes:"mjx-box",forceChild:true});r=s.firstChild;s=h.addElement(s,"mjx-block");s.appendChild(r);h.addElement(s,"mjx-strut")}var v=this.CHTMLbboxFor(0);var C=this.getValues("width","height","depth","lspace","voffset");var A=0,z=0,B=v.w,t=v.h,u=v.d;r.style.width=0;r.style.margin=h.Em(-t)+" 0 "+h.Em(-u);if(C.width!==""){B=this.CHTMLdimen(C.width,"w",B,0)}if(C.height!==""){t=this.CHTMLdimen(C.height,"h",t,0)}if(C.depth!==""){u=this.CHTMLdimen(C.depth,"d",u,0)}if(C.voffset!==""){z=this.CHTMLdimen(C.voffset);if(z){r.style.position="relative";r.style.top=h.Em(-z)}}if(C.lspace!==""){A=this.CHTMLdimen(C.lspace);if(A){r.style.position="relative";r.style.left=h.Em(A)}}s.style.width=0;s.style.marginTop=h.Em(t-e);s.style.padding="0 "+h.Em(B)+" "+h.Em(u)+" 0";var D=h.BBOX({w:B,h:t,d:u,l:0,r:B,t:t,b:u,scale:this.CHTML.scale,rscale:this.CHTML.rscale});D.combine(v,A,z);D.w=B;D.h=t;D.d=u;this.CHTML=D;return s.parentNode},CHTMLstretchV:i.mbase.CHTMLstretchV,CHTMLstretchH:i.mbase.CHTMLstretchH,CHTMLdimen:function(v,x,w,r){if(r==null){r=-n}v=String(v);var s=v.match(/width|height|depth/);var t=(s?this.CHTML[s[0].charAt(0)]:(x?this.CHTML[x]:0));var u=(this.CHTMLlength2em(v,t)||0);if(v.match(/^[-+]/)&&w!=null){u+=w}if(r!=null){u=Math.max(r,u)}return u}});i.munderover.Augment({toCommonHTML:function(v,F){var D=this.getValues("displaystyle","accent","accentunder","align");var t=this.data[this.base];if(!D.displaystyle&&t!=null&&(t.movablelimits||t.CoreMO().Get("movablelimits"))){return i.msubsup.prototype.toCommonHTML.call(this,v,s)}var A,y,r=[],s=false;if(F&&F.stretch){if(this.data[this.base]){t=h.getNode(v,"mjx-op")}if(this.data[this.under]){A=h.getNode(v,"mjx-under")}if(this.data[this.over]){y=h.getNode(v,"mjx-over")}r[0]=t;r[1]=A||y;r[2]=y;s=true}else{var x=["mjx-op","mjx-under","mjx-over"];if(this.over===1){x[1]=x[2]}v=this.CHTMLdefaultNode(v,{childNodes:x,noBBox:true,forceChild:true,minChildren:2});r[0]=t=v.removeChild(v.firstChild);r[1]=A=y=v.removeChild(v.firstChild);if(v.firstChild){r[2]=y=v.removeChild(v.firstChild)}}var w=[],u=this.CHTMLgetBBoxes(w,r,D);var E=w[this.base],B=this.CHTML;B.w=u;B.h=E.h;B.d=E.d;var z=t,C=0;if(E.ic){C=1.3*E.ic+0.05}if(this.data[this.over]){z=this.CHTMLaddOverscript(y,w,D,C,t,s)}if(this.data[this.under]){this.CHTMLaddUnderscript(A,w,D,C,v,z,s)}else{if(!s){v.appendChild(z)}}this.CHTMLplaceBoxes(t,A,y,D,w);return v},CHTMLgetBBoxes:function(z,v,u){var x,s=this.data.length,y,t=-n,r=t;for(x=0;xt){t=r}}if(t===-n){t=r}for(x=0;xC.w){C.skew+=(C.w-(z.x+t*z.w))/2}}}else{x=h.TEX.big_op_spacing1;w=h.TEX.big_op_spacing3;u=Math.max(x,w-Math.max(0,t*z.d))}z.x+=D/2;z.y=C.h+u+v+t*z.d;if(u){A.style.paddingBottom=h.Em(u/t)}if(v){A.style.paddingTop=h.Em(v/t)}return B},CHTMLaddUnderscript:function(A,y,D,C,s,z,r){var B=this.CHTML;var x,w,v=h.TEX.big_op_spacing5,u;var E=y[this.under],t=E.rscale;if(!r){h.addElement(s,"mjx-itable",{},[["mjx-row",{},[["mjx-cell"]]],["mjx-row"]]);s.firstChild.firstChild.firstChild.appendChild(z);s.firstChild.lastChild.appendChild(A)}if(E.D){E.d=E.D}if(E.d<0){A.firstChild.style.verticalAlign="top";s.firstChild.style.marginBottom=h.Em(E.d)}if(D.accentunder){u=2*h.TEX.rule_thickness;v=0}else{x=h.TEX.big_op_spacing2;w=h.TEX.big_op_spacing4;u=Math.max(x,w-t*E.h)}E.x=-C/2;E.y=-(B.d+u+v+t*E.h);if(u){A.style.paddingTop=h.Em(u/t)}if(v){A.style.paddingBottom=h.Em(v/t)}},CHTMLplaceBoxes:function(r,A,z,D,y){var s=this.CHTML.w,x,u=y.length,v;var C=h.BBOX.zero();C.scale=this.CHTML.scale;C.rscale=this.CHTML.rscale;y[this.base].x=y[this.base].y=0;var E=n;for(x=0;x0){L+=Q;J-=Q}}L=Math.max(L,A.superscriptshift);J=Math.max(J,A.subscriptshift);H.style.paddingRight=h.Em(N/B);z.style.paddingBottom=h.Em(L/w+J/B-W.d-P.h/B*w);z.style.paddingLeft=h.Em(Y/w);z.style.paddingRight=h.Em(N/w);E.style.verticalAlign=h.Em(-J);G.combine(W,I+Y,L);G.combine(P,I,-J)}}G.clean();return S},CHTMLstretchV:i.mbase.CHTMLstretchV,CHTMLstretchH:i.mbase.CHTMLstretchH,CHTMLchildNode:function(t,s){var r=["mjx-base","mjx-sub","mjx-sup"];if(this.over===1){r[1]=r[2]}return h.getNode(t,r[s])}});i.mfrac.Augment({toCommonHTML:function(M){M=this.CHTMLdefaultNode(M,{childNodes:["mjx-numerator","mjx-denominator"],childOptions:{autowidth:true},forceChild:true,noBBox:true,minChildren:2});var w=this.getValues("linethickness","displaystyle","numalign","denomalign","bevelled");var N=w.displaystyle;var C=M.firstChild,s=M.lastChild;var x=h.addElement(M,"mjx-box");x.appendChild(C);x.appendChild(s);M.appendChild(x);if(w.numalign!=="center"){C.style.textAlign=w.numalign}if(w.denomalign!=="center"){s.style.textAlign=w.denomalign}var O=this.CHTMLbboxFor(0),A=this.CHTMLbboxFor(1),B=h.BBOX.empty(this.CHTML),E=O.rscale,y=A.rscale;w.linethickness=Math.max(0,h.thickness2em(w.linethickness||"0",B.scale));var L=h.TEX.min_rule_thickness/h.em,S=h.TEX.axis_height;var I=w.linethickness,K,J,G,F;if(w.bevelled){x.className+=" MJXc-bevelled";var R=(N?0.4:0.15);var D=Math.max(E*(O.h+O.d),y*(A.h+A.d))+2*R;var Q=h.Element("mjx-bevel");x.insertBefore(Q,s);var r=h.createDelimiter(Q,47,D);G=E*(O.d-O.h)/2+S+R;F=y*(A.d-A.h)/2+S-R;if(G){C.style.verticalAlign=h.Em(G/E)}if(F){s.style.verticalAlign=h.Em(F/y)}Q.style.marginLeft=Q.style.marginRight=h.Em(-R/2);B.combine(O,0,G);B.combine(r,E*O.w-R/2,0);B.combine(A,E*O.w+r.w-R,F);B.clean()}else{x.className+=" MJXc-stacked";if(N){G=h.TEX.num1;F=h.TEX.denom1}else{G=(I===0?h.TEX.num3:h.TEX.num2);F=h.TEX.denom2}if(I===0){K=Math.max((N?7:3)*h.TEX.rule_thickness,2*L);J=(G-O.d*E)-(A.h*y-F);if(JC){r=((z.h+z.d)-(C-F))/2}C=E.h+r+F;var A=this.CHTMLaddRoot(v,z,z.h+z.d-C);u.style.paddingTop=h.Em(r);u.style.borderTop=h.Px(w*E.scale,1)+" solid";D.style.paddingTop=h.Em(2*F-w);E.h+=r+2*F;B.combine(z,A,C-z.h);B.combine(E,A+z.w,0);B.clean();return v},CHTMLaddRoot:function(){return 0}});i.mroot.Augment({toCommonHTML:i.msqrt.prototype.toCommonHTML,CHTMLaddRoot:function(z,t,u){if(!this.data[1]){return}var y=this.CHTML,A=this.data[1].CHTML,v=z.firstChild;var r=A.rscale;var s=this.CHTMLrootHeight(A,t,r)-u;var x=Math.min(A.w,A.r);var B=Math.max(x,t.offset/r);if(s){v.style.verticalAlign=h.Em(s/r)}if(B>x){v.firstChild.style.paddingLeft=h.Em(B-x)}B-=t.offset/r;v.style.width=h.Em(B);y.combine(A,0,s);return B*r},CHTMLrootHeight:function(t,r,s){return 0.45*(r.h+r.d-0.9)+r.offset+Math.max(0,t.d-0.075)}});i.mfenced.Augment({toCommonHTML:function(u){u=this.CHTMLcreateNode(u);this.CHTMLhandleStyle(u);this.CHTMLhandleScale(u);this.CHTMLaddChild(u,"open",{});for(var t=0,r=this.data.length;th.linebreakWidth)||this.hasNewline()},CHTMLstretchV:function(r,s){this.CHTMLstretchChildV(this.CoreIndex(),r,s);return this.CHTML},CHTMLstretchH:function(s,r){this.CHTMLstretchChildH(this.CoreIndex(),r,s);return this.CHTML}});i.mstyle.Augment({toCommonHTML:function(r){r=this.CHTMLdefaultNode(r);if(this.scriptlevel&&this.data[0]){this.CHTML.rescale(this.data[0].CHTML.rscale)}return r}});i.TeXAtom.Augment({toCommonHTML:function(w,u){if(!u||!u.stretch){w=this.CHTMLdefaultNode(w)}if(this.texClass===i.TEXCLASS.VCENTER){var r=h.TEX.axis_height,t=this.CHTML;var s=r-(t.h+t.d)/2+t.d;if(Math.abs(s)>0.001){w.style.verticalAlign=h.Em(s);t.h+=s;t.t+=s;t.d-=s;t.b-=s}}return w},CHTMLstretchV:function(r,s){this.CHTML.updateFrom(this.Core().CHTMLstretchV(r,s));this.toCommonHTML(this.CHTMLnodeElement(),{stretch:true});return this.CHTML},CHTMLstretchH:function(s,r){this.CHTML.updateFrom(this.CHTMLstretchCoreH(s,r));this.toCommonHTML(s,{stretch:true});return this.CHTML}});i.semantics.Augment({toCommonHTML:function(r){r=this.CHTMLcreateNode(r);if(this.data[0]){this.data[0].toCommonHTML(r);this.CHTML.updateFrom(this.data[0].CHTML);this.CHTMLhandleBBox(r)}return r}});i.annotation.Augment({toCommonHTML:function(r){return this.CHTMLcreateNode(r)}});i["annotation-xml"].Augment({toCommonHTML:i.mbase.CHTMLautoload});i.ms.Augment({toCommonHTML:i.mbase.CHTMLautoload});i.mglyph.Augment({toCommonHTML:i.mbase.CHTMLautoload});i.menclose.Augment({toCommonHTML:i.mbase.CHTMLautoload});i.maction.Augment({toCommonHTML:i.mbase.CHTMLautoload});i.mmultiscripts.Augment({toCommonHTML:i.mbase.CHTMLautoload});i.mtable.Augment({toCommonHTML:i.mbase.CHTMLautoload});MathJax.Hub.Register.StartupHook("onLoad",function(){setTimeout(MathJax.Callback(["loadComplete",h,"jax.js"]),0)})});MathJax.Hub.Register.StartupHook("End Cookie",function(){if(c.config.menuSettings.zoom!=="None"){j.Require("[MathJax]/extensions/MathZoom.js")}})})(MathJax.Ajax,MathJax.Hub,MathJax.HTML,MathJax.OutputJax.CommonHTML); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/annotation-xml.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/annotation-xml.js deleted file mode 100755 index 4cb024bce..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/annotation-xml.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/autoload/annotation-xml.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var c="2.7.1";var a=MathJax.ElementJax.mml,b=MathJax.OutputJax["HTML-CSS"];a["annotation-xml"].Augment({toHTML:function(f){f=this.HTMLhandleSize(this.HTMLcreateSpan(f));var g=this.Get("encoding");for(var e=0,d=this.data.length;ethis.data.length){this.selection=1}var k=this;while(k.type!=="math"){k=k.inherit}var h=MathJax.Hub.getJaxFor(k.inputID),j=!!h.hover;h.Update();if(j){var i=document.getElementById(h.inputID+"-Span");MathJax.Extension.MathEvents.Hover.Hover(h,i)}return MathJax.Extension.MathEvents.Event.False(l)},HTMLsetStatus:function(h){this.messageID=MathJax.Message.Set((this.data[1]&&this.data[1].isToken)?this.data[1].data.join(""):this.data[1].toString())},HTMLclearStatus:function(h){if(this.messageID){MathJax.Message.Clear(this.messageID,0)}delete this.messageID},HTMLtooltipOver:function(i){if(!i){i=window.event}if(b){clearTimeout(b);b=null}if(f){clearTimeout(f)}var h=i.pageX;var k=i.pageY;if(h==null){h=i.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;k=i.clientY+document.body.scrollTop+document.documentElement.scrollTop}var j=MathJax.Callback(["HTMLtooltipPost",this,h+a.offsetX,k+a.offsetY]);f=setTimeout(j,a.delayPost)},HTMLtooltipOut:function(h){if(f){clearTimeout(f);f=null}if(b){clearTimeout(b)}var i=MathJax.Callback(["HTMLtooltipClear",this,80]);b=setTimeout(i,a.delayClear)},HTMLtooltipPost:function(o,m){f=null;if(b){clearTimeout(b);b=null}var p=this.HTMLtooltip;p.style.display="block";p.style.opacity="";p.style.filter=e.config.styles["#MathJax_Tooltip"].filter;if(this===d){return}p.style.left=o+"px";p.style.top=m+"px";p.innerHTML='';var q=p.insertBefore(e.EmExSpan.cloneNode(true),p.firstChild);var l=q.firstChild.offsetHeight/60,h=q.lastChild.firstChild.offsetHeight/60;e.em=e.outerEm=c.mbase.prototype.em=h;var i=Math.floor(Math.max(e.config.minScaleAdjust/100,(l/e.TeX.x_height)/h)*e.config.scale);p.firstChild.style.fontSize=i+"%";q.parentNode.removeChild(q);var n=e.createStack(p.firstChild.firstChild);var k=e.createBox(n);try{e.Measured(this.data[1].toHTML(k),k)}catch(j){if(!j.restart){throw j}p.style.display="none";MathJax.Callback.After(["HTMLtooltipPost",this,o,m],j.restart);return}e.placeBox(k,0,0);e.createRule(p.firstChild.firstChild,k.bbox.h,k.bbox.d,0);d=this},HTMLtooltipClear:function(i){var h=this.HTMLtooltip;if(i<=0){h.style.display="none";h.style.opacity=h.style.filter="";b=null}else{h.style.opacity=i/100;h.style.filter="alpha(opacity="+i+")";b=setTimeout(MathJax.Callback(["HTMLtooltipClear",this,i-20]),50)}}});MathJax.Hub.Browser.Select({MSIE:function(h){e.msieHitBoxBug=true}});MathJax.Hub.Startup.signal.Post("HTML-CSS maction Ready");MathJax.Ajax.loadComplete(e.autoloadDir+"/maction.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/menclose.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/menclose.js deleted file mode 100755 index f8f6503c1..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/menclose.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/autoload/menclose.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var d="2.7.1";var a=MathJax.ElementJax.mml,b=MathJax.OutputJax["HTML-CSS"];var c="http://www.w3.org/2000/svg";var f="urn:schemas-microsoft-com:vml";var e="mjxvml";a.menclose.Augment({toHTML:function(ac){var j=this.getValues("notation","thickness","padding","mathcolor","color");if(j.color&&!this.mathcolor){j.mathcolor=j.color}if(j.thickness==null){j.thickness=".075em"}if(j.padding==null){j.padding=".2em"}ac=this.HTMLcreateSpan(ac);var V=this.HTMLgetMu(ac),af=this.HTMLgetScale();var X=b.length2em(j.padding,V,1/b.em)*af;var N=b.length2em(j.thickness,V,1/b.em)*af;N=Math.max(1/b.em,N);var E=b.Em(N)+" solid";var z=b.createStack(ac);var v=b.createBox(z);this.HTMLmeasureChild(0,v);var K=v.bbox.h+X+N,P=v.bbox.d+X+N,o=v.bbox.w+2*(X+N);var O=b.createFrame(z,K+P,0,o,N,"none");O.id="MathJax-frame-"+this.spanID;b.addBox(z,O);z.insertBefore(O,v);var s=0,U=0,u=0,A=0,M=0,J=0;var S,g;var I,ad,Q;if(!j.mathcolor){j.mathcolor="currentColor"}else{ac.style.color=j.mathcolor}var k=MathJax.Hub.SplitList(j.notation),q={};for(var ab=0,Z=k.length;abj.bbox.rw){j.bbox.rw=j.bbox.w}if(k.bbox.h>j.bbox.h){j.bbox.h=k.bbox.h}if(k.bbox.d>j.bbox.d){j.bbox.d=k.bbox.d}}}this.HTMLhandleSpace(k);this.HTMLhandleColor(k);return k},HTMLimgLoaded:function(f,e){if(typeof(f)==="string"){e=f}this.img.status=(e||"OK")},HTMLimgError:function(){this.img.img.onload("error")}},{GLYPH:{}});MathJax.Hub.Startup.signal.Post("HTML-CSS mglyph Ready");MathJax.Ajax.loadComplete(b.autoloadDir+"/mglyph.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/mmultiscripts.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/mmultiscripts.js deleted file mode 100755 index a28f2b537..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/mmultiscripts.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/autoload/mmultiscripts.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var c="2.7.1";var a=MathJax.ElementJax.mml,b=MathJax.OutputJax["HTML-CSS"];a.mmultiscripts.Augment({toHTML:function(L,J,E){L=this.HTMLcreateSpan(L);var R=this.HTMLgetScale();var n=b.createStack(L),g;var l=b.createBox(n);if(this.data[this.base]){var m=this.data[this.base].toHTML(l);if(E!=null){this.data[this.base].HTMLstretchV(l,J,E)}else{if(J!=null){this.data[this.base].HTMLstretchH(l,J)}}b.Measured(m,l)}else{l.bbox=this.HTMLzeroBBox()}var P=b.TeX.x_height*R,C=b.TeX.scriptspace*R*0.75;var B=this.HTMLgetScripts(n,C);var o=B[0],f=B[1],y=B[2],k=B[3];var j=R;for(var M=1;M0){z+=G;x-=G}}z=Math.max(z,K.superscriptshift);x=Math.max(x,K.subscriptshift);if(f){b.placeBox(f,w+l.bbox.w+C,z)}if(k){b.placeBox(k,w+Q-k.bbox.w,z)}if(o){b.placeBox(o,w+l.bbox.w+C-Q,-x)}if(y){b.placeBox(y,w-y.bbox.w,-x)}}}this.HTMLhandleSpace(L);this.HTMLhandleColor(L);var e=L.bbox;e.dx=w;e.s=C;e.u=z;e.v=x;e.delta=Q;e.px=w+l.bbox.w;return L},HTMLgetScripts:function(r,u){var p,d,e=[];var o=1,h=this.data.length,g=0;for(var l=0;l<4;l+=2){while(o0){if(f){this.HTMLmoveColor(q[l],t,1);e[l].w+=t}else{b.createBlank(d,t)}}else{if(t<0){if(f){this.HTMLmoveColor(q[l+1],-t,-1);e[l+1].w+=-t}else{b.createBlank(p,-t)}}}this.HTMLcombineBBoxes(q[l],d.bbox);this.HTMLcombineBBoxes(q[l+1],p.bbox);if(t>0){d.bbox.w=p.bbox.w;d.bbox.rw=Math.max(d.bbox.w,d.bbox.rw)}else{if(t<0){p.bbox.w=d.bbox.w;p.bbox.rw=Math.max(p.bbox.w,p.bbox.rw)}}}else{if(d){this.HTMLcombineBBoxes(q[l],d.bbox)}if(p){this.HTMLcombineBBoxes(q[l+1],p.bbox)}}if(d){g=d.bbox.w}else{if(p){g=p.bbox.w}}}o++;g=0}for(n=0;n<4;n++){if(e[n]){e[n].bbox.w+=u;e[n].bbox.rw=Math.max(e[n].bbox.w,e[n].bbox.rw);e[n].bbox.name=(["sub","sup","presub","presup"])[n];this.HTMLcleanBBox(e[n].bbox)}}return e},HTMLmoveColor:function(h,f,e){var d=f/(h.scale||1);h.style.paddingLeft=b.Em(d);var g=h.previousSibling;if(g&&(g.id||"").match(/^MathJax-Color-/)){g.style.marginLeft=b.Em(d+parseFloat(g.style.marginLeft));g.style.marginRight=b.Em(e*(d-parseFloat(g.style.marginRight)))}},HTMLstretchH:a.mbase.HTMLstretchH,HTMLstretchV:a.mbase.HTMLstretchV});MathJax.Hub.Startup.signal.Post("HTML-CSS mmultiscripts Ready");MathJax.Ajax.loadComplete(b.autoloadDir+"/mmultiscripts.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/ms.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/ms.js deleted file mode 100755 index 5f972fd67..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/ms.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/autoload/ms.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var c="2.7.1";var a=MathJax.ElementJax.mml,b=MathJax.OutputJax["HTML-CSS"];a.ms.Augment({toHTML:function(e){e=this.HTMLhandleSize(this.HTMLcreateSpan(e));var d=this.getValues("lquote","rquote","mathvariant");if(!this.hasValue("lquote")||d.lquote==='"'){d.lquote="\u201C"}if(!this.hasValue("rquote")||d.rquote==='"'){d.rquote="\u201D"}if(d.lquote==="\u201C"&&d.mathvariant==="monospace"){d.lquote='"'}if(d.rquote==="\u201D"&&d.mathvariant==="monospace"){d.rquote='"'}var f=d.lquote+this.data.join("")+d.rquote;this.HTMLhandleVariant(e,this.HTMLgetVariant(),f);this.HTMLhandleSpace(e);this.HTMLhandleColor(e);this.HTMLhandleDir(e);return e}});MathJax.Hub.Startup.signal.Post("HTML-CSS ms Ready");MathJax.Ajax.loadComplete(b.autoloadDir+"/ms.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/mtable.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/mtable.js deleted file mode 100755 index 92f66281b..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/mtable.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/autoload/mtable.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var c="2.7.1";var a=MathJax.ElementJax.mml,b=MathJax.OutputJax["HTML-CSS"];a.mtable.Augment({toHTML:function(r){r=this.HTMLcreateSpan(r);if(this.data.length===0){return r}var I=this.getValues("columnalign","rowalign","columnspacing","rowspacing","columnwidth","equalcolumns","equalrows","columnlines","rowlines","frame","framespacing","align","useHeight","width","side","minlabelspacing");var aM=I.width.match(/%$/);var ay=b.createStack(r);var aJ=this.HTMLgetScale(),aB=this.HTMLgetMu(r),aC=-1;var aq=[],au=[],aj=[],aw=[],av=[],ae,ad,ap=-1,ac,ao,X,aH,Q,aE,aR=[],aW;var G=b.FONTDATA.lineH*aJ*I.useHeight,N=b.FONTDATA.lineD*aJ*I.useHeight;for(ae=0,ac=this.data.length;aeap){ap=ad}av[ad]=b.createStack(b.createBox(ay));aj[ad]=-b.BIGDIMEN}aw[ae][ad]=b.createBox(av[ad]);aR.push(aH.data[ad-X].toHTML(aw[ae][ad]))}}b.MeasureSpans(aR);for(ae=0,ac=this.data.length;aeaq[ae]){aq[ae]=aV*aO.h/aW}if(aV*aO.d/aW>au[ae]){au[ae]=aV*aO.d/aW}}}else{if(aE.HTMLcanStretch("Horizontal")){aV=b.length2em(aV,aB,aO.w);if(aV>aj[ad]){aj[ad]=aV}}}}}if(aw[ae][ad].bbox.h>aq[ae]){aq[ae]=aw[ae][ad].bbox.h}if(aw[ae][ad].bbox.d>au[ae]){au[ae]=aw[ae][ad].bbox.d}if(aw[ae][ad].bbox.w>aj[ad]){aj[ad]=aw[ae][ad].bbox.w}}}var aG=MathJax.Hub.SplitList;var aA=aG(I.columnspacing),aT=aG(I.rowspacing),e=aG(I.columnalign),B=aG(I.rowalign),d=aG(I.columnlines),w=aG(I.rowlines),aP=aG(I.columnwidth),U=[];for(ae=0,ac=aA.length;aeaw.length){aa=aw.length}}ai=0;aY=-(aW+aK)+aq[0];for(ae=0,ac=aa-1;ae0.98){R=0.98/af;af=0.98}}else{if(I.width==="auto"){if(af>0.98){R=K/(z+K);ab=z+K}else{ab=z/(1-af)}}else{ab=b.length2em(I.width,aB);for(ae=0,ac=Math.min(ap,aA.length);ae0.01){if(ag&&ab>z){ab=(ab-z)/ag;for(ae=0,ac=at.length;aeaq[ae]){aw[ae][ad].bbox.H=aw[ae][ad].bbox.h;aw[ae][ad].bbox.h=aq[ae]}if(aw[ae][ad].bbox.d>au[ae]){aw[ae][ad].bbox.D=aw[ae][ad].bbox.d;aw[ae][ad].bbox.d=au[ae]}aE.symmetric=aN}}aU=Q.rowalign||this.data[ae].rowalign||B[ae];o=({top:aq[ae]-aw[ae][ad].bbox.h,bottom:aw[ae][ad].bbox.d-au[ae],center:((aq[ae]-au[ae])-(aw[ae][ad].bbox.h-aw[ae][ad].bbox.d))/2,baseline:0,axis:0})[aU]||0;aU=(Q.columnalign||U[ae][ad]||e[ad]);b.alignBox(aw[ae][ad],aU,S+o)}if(aeX*an){an=X*aX}an+=az;ak+=X*an}else{ak+=aX-X*an+aI;an-=X*aI}}var aQ=b.createStack(r,false,"100%");b.addBox(aQ,ay);b.alignBox(ay,ar.indentalign,0,an);av[aC].parentNode.parentNode.removeChild(av[aC].parentNode);b.addBox(aQ,av[aC]);b.alignBox(av[aC],e[aC],0);if(b.msieRelativeWidthBug){ay.style.top=av[aC].style.top=""}if(aM){ay.style.width=I.width;r.bbox.width="100%"}av[aC].style[X===1?"marginLeft":"marginRight"]=b.Em(X*az);r.bbox.tw=ak;r.style.minWidth=r.bbox.minWidth=b.Em(ak);aQ.style.minWidth=aQ.bbox.minWidth=b.Em(ak/aJ)}if(!aM){this.HTMLhandleSpace(r)}var u=this.HTMLhandleColor(r);if(u&&aM){if(!ah){ah=b.createFrame(ay,g,0,aZ,0,"none");b.addBox(ay,ah);b.placeBox(ah,0,aY,true);ah.style.width="100%"}ah.style.backgroundColor=u.style.backgroundColor;ah.parentNode.insertBefore(ah,ah.parentNode.firstChild);u.parentNode.removeChild(u)}return r},HTMLhandleSpace:function(d){d.bbox.keepPadding=true;d.bbox.exact=true;if(!this.hasFrame&&d.bbox.width==null){d.style.paddingLeft=d.style.paddingRight=b.Em(1/6)}this.SUPER(arguments).HTMLhandleSpace.call(this,d)}});a.mtd.Augment({toHTML:function(e,d,g){e=this.HTMLcreateSpan(e);if(this.data[0]){var f=this.data[0].toHTML(e);if(g!=null){f=this.data[0].HTMLstretchV(e,d,g)}else{if(d!=null){f=this.data[0].HTMLstretchH(e,d)}}e.bbox=f.bbox}this.HTMLhandleSpace(e);this.HTMLhandleColor(e);return e},HTMLstretchH:a.mbase.HTMLstretchH,HTMLstretchV:a.mbase.HTMLstretchV});MathJax.Hub.Startup.signal.Post("HTML-CSS mtable Ready");MathJax.Ajax.loadComplete(b.autoloadDir+"/mtable.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/multiline.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/multiline.js deleted file mode 100755 index dd3755f46..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/autoload/multiline.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/autoload/multiline.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var d="2.7.1";var a=MathJax.ElementJax.mml,b=MathJax.OutputJax["HTML-CSS"];var e={newline:0,nobreak:1000000,goodbreak:[-200],badbreak:[+200],auto:[0],toobig:800,nestfactor:400,spacefactor:-100,spaceoffset:2,spacelimit:1,fence:500,close:500};var c={linebreakstyle:"after"};a.mbase.Augment({HTMLlinebreakPenalty:e,HTMLmultiline:function(n){var o=this;while(o.inferred||(o.parent&&o.parent.type==="mrow"&&o.isEmbellished())){o=o.parent}var l=((o.type==="math"&&o.Get("display")==="block")||o.type==="mtd");o.isMultiline=true;var p=this.getValues("linebreak","linebreakstyle","lineleading","linebreakmultchar","indentalign","indentshift","indentalignfirst","indentshiftfirst","indentalignlast","indentshiftlast");if(p.linebreakstyle===a.LINEBREAKSTYLE.INFIXLINEBREAKSTYLE){p.linebreakstyle=this.Get("infixlinebreakstyle")}p.lineleading=b.length2em(p.lineleading,1,0.5);this.HTMLremoveColor(n);var m=b.createStack(n);this.HTMLgetScale();var f={n:0,Y:0,scale:this.scale||1,isTop:l,values:{},VALUES:p},k=this.HTMLgetAlign(f,{}),h=this.HTMLgetShift(f,{},k),g=[],i={index:[],penalty:e.nobreak,w:0,W:h,shift:h,scanW:h,nest:0},j=false;while(this.HTMLbetterBreak(i,f)&&(i.scanW>=b.linebreakWidth||i.penalty===e.newline)){this.HTMLaddLine(m,g,i.index,f,i.values,j);g=i.index.slice(0);j=true;k=this.HTMLgetAlign(f,i.values);h=this.HTMLgetShift(f,i.values,k);if(k===a.INDENTALIGN.CENTER){h=0}i.W=i.shift=i.scanW=h;i.penalty=e.nobreak}f.isLast=true;this.HTMLaddLine(m,g,[],f,c,j);if(l){m.style.width="100%";if(o.type==="math"){n.bbox.width="100%"}}this.HTMLhandleSpace(n);this.HTMLhandleColor(n);n.bbox.isMultiline=true;return n},HTMLbetterBreak:function(h,f){if(this.isToken){return false}if(this.isEmbellished()){h.embellished=this;return this.CoreMO().HTMLbetterBreak(h,f)}if(this.linebreakContainer){return false}var p=h.index.slice(0),n=h.index.shift(),l=this.data.length,k,q,j,o=(h.index.length>0),g=false;if(n==null){n=-1}if(!o){n++;h.W+=h.w;h.w=0}j=h.scanW=h.W;h.nest++;while(n0){var k=b.FONTDATA.baselineskip*f.scale;var i=(f.values.lineleading==null?f.VALUES:f.values).lineleading*f.scale;f.Y-=Math.max(k,f.d+line.bbox.h+i)}b.alignBox(line,m,f.Y,h);f.d=line.bbox.d;f.values=o;f.n++},HTMLgetAlign:function(i,f){var j=f,g=i.values,h=i.VALUES,k;if(i.n===0){k=j.indentalignfirst||g.indentalignfirst||h.indentalignfirst}else{if(i.isLast){k=g.indentalignlast||h.indentalignlast}else{k=g.indentalign||h.indentalign}}if(k===a.INDENTALIGN.INDENTALIGN){k=g.indentalign||h.indentalign}if(k===a.INDENTALIGN.AUTO){k=(i.isTop?this.displayAlign:a.INDENTALIGN.LEFT)}return k},HTMLgetShift:function(k,h,m){var l=h,i=k.values,j=k.VALUES,g;if(k.n===0){g=l.indentshiftfirst||i.indentshiftfirst||j.indentshiftfirst}else{if(k.isLast){g=i.indentshiftlast||j.indentshiftlast}else{g=i.indentshift||j.indentshift}}if(g===a.INDENTSHIFT.INDENTSHIFT){g=i.indentshift||j.indentshift}if(g==="auto"||g===""){g="0"}g=b.length2em(g,1,b.cwidth);if(k.isTop&&this.displayIndent!=="0"){var f=b.length2em(this.displayIndent,1,b.cwidth);g+=(m===a.INDENTALIGN.RIGHT?-f:f)}return g},HTMLmoveLine:function(o,f,l,n,g){var k=o[0],h=f[0];if(k==null){k=-1}if(h==null){h=this.data.length-1}if(k===h&&o.length>1){this.data[k].HTMLmoveSlice(o.slice(1),f.slice(1),l,n,g,"paddingLeft")}else{var m=n.last;n.last=false;while(k0),g=false;if(r==null){r=-1}if(!s){r++;h.W+=h.w;h.w=0}l=h.scanW=h.W;h.nest++;if(!this.dataI){this.dataI=[];if(this.data.open){this.dataI.push("open")}if(o){this.dataI.push(0)}for(var q=1;q1){this.data[this.dataI[n]].HTMLmoveSlice(g.slice(1),l.slice(1),o,f,q,"paddingLeft")}else{var p=f.last;f.last=false;var h=this.dataI[n];while(n0),g=false;if(!m){h.W+=h.w;h.w=0}j=h.scanW=h.W;if(l==null){this.HTMLbaseW=this.data[this.base].HTMLspanElement().bbox.w;this.HTMLdw=this.HTMLspanElement().bbox.w-this.HTMLbaseW}if(this.data[this.base].HTMLbetterBreak(h,f)){g=true;n=[this.base].concat(h.index);k=h.W;o=h.w;if(h.penalty===e.newline){g=m=true}}if(!m){this.HTMLaddWidth(this.base,h,j)}h.scanW+=this.HTMLdw;h.W=h.scanW;h.index=[];if(g){h.W=k;h.w=o;h.index=n}return g},HTMLmoveLine:function(m,g,j,l,h){if(this.data[this.base]){if(m.length>1){this.data[this.base].HTMLmoveSlice(m.slice(1),g.slice(1),j,l,h,"paddingLeft")}else{if(g.length<=1){this.data[this.base].HTMLmoveSpan(j,l,h)}else{this.data[this.base].HTMLmoveSlice([],g.slice(1),j,l,h,"paddingRight")}}}if(g.length===0){var i=this.data[this.sup]||this.data[this.sub];if(i&&this.HTMLnotEmpty(i)){var k=i.HTMLspanElement().parentNode;if(i.href){k=k.parentNode}var f=k.parentNode;if(this.data[this.base]){f.removeChild(f.firstChild)}for(k=f.firstChild;k;k=k.nextSibling){k.style.left=b.Em(b.unEm(k.style.left)-this.HTMLbaseW)}f.bbox.w-=this.HTMLbaseW;f.style.width=b.Em(f.bbox.w);this.HTMLcombineBBoxes(f,j.bbox);j.appendChild(f)}}}});a.mmultiscripts.Augment({HTMLbetterBreak:function(j,g){if(!this.data[this.base]){return false}var n=j.index.slice(0);j.index.shift();var l,o,k,m=(j.index.length>0),i=false;if(!m){j.W+=j.w;j.w=0}j.scanW=j.W;var p=this.HTMLspanElement().bbox,h=this.data[this.base].HTMLspanElement().bbox;var f=p.w-h.w;j.scanW+=p.dx;k=j.scanW;if(this.data[this.base].HTMLbetterBreak(j,g)){i=true;n=[this.base].concat(j.index);l=j.W;o=j.w;if(j.penalty===e.newline){i=m=true}}if(!m){this.HTMLaddWidth(this.base,j,k)}j.scanW+=f;j.W=j.scanW;j.index=[];if(i){j.W=l;j.w=o;j.index=n}return i},HTMLmoveLine:function(h,i,o,g,p){var m=this.HTMLspanElement(),k=m.bbox,n=m.firstChild,f={};if(b.msiePaddingWidthBug){n=n.nextSibling}var l=n.firstChild;while(l){if(l.bbox&&l.bbox.name){f[l.bbox.name]=l}l=l.nextSibling}if(h.length<1){if(f.presub||f.presup){var j=b.createStack(o);if(f.presup){b.addBox(j,f.presup);b.placeBox(f.presup,k.dx-f.presup.bbox.w,k.u)}if(f.presub){b.addBox(j,f.presub);b.placeBox(f.presub,k.dx+k.delta-f.presub.bbox.w,-k.v)}this.HTMLcombineBBoxes(j,o.bbox);o.appendChild(j);j.style.width=b.Em(k.dx)}}if(this.data[this.base]){if(h.length>1){this.data[this.base].HTMLmoveSlice(h.slice(1),i.slice(1),o,g,p,"paddingLeft")}else{if(i.length<=1){this.data[this.base].HTMLmoveSpan(o,g,p)}else{this.data[this.base].HTMLmoveSlice([],i.slice(1),o,g,p,"paddingRight")}}}if(i.length===0){if(this.data[this.base]){n.removeChild(n.firstChild)}for(l=n.firstChild;l;l=l.nextSibling){l.style.left=b.Em(b.unEm(l.style.left)-k.px)}n.bbox.w-=k.px;n.style.width=b.Em(n.bbox.w);this.HTMLcombineBBoxes(n,o.bbox);o.appendChild(n)}}});a.mo.Augment({HTMLbetterBreak:function(h,f){if(h.values&&h.values.id===this.spanID){return false}var p=this.getValues("linebreak","linebreakstyle","lineleading","linebreakmultchar","indentalign","indentshift","indentalignfirst","indentshiftfirst","indentalignlast","indentshiftlast","texClass","fence");if(p.linebreakstyle===a.LINEBREAKSTYLE.INFIXLINEBREAKSTYLE){p.linebreakstyle=this.Get("infixlinebreakstyle")}if(p.texClass===a.TEXCLASS.OPEN){h.nest++}if(p.texClass===a.TEXCLASS.CLOSE&&h.nest){h.nest--}var i=h.scanW,j=(h.embellished||this);delete h.embellished;var n=j.HTMLspanElement(),o=n.bbox.w;if(n.style.paddingLeft){o+=b.unEm(n.style.paddingLeft)}if(p.linebreakstyle===a.LINEBREAKSTYLE.AFTER){i+=o;o=0}if(i-h.shift===0&&p.linebreak!==a.LINEBREAK.NEWLINE){return false}var k=b.linebreakWidth-i;if(f.n===0&&(p.indentshiftfirst!==f.VALUES.indentshiftfirst||p.indentalignfirst!==f.VALUES.indentalignfirst)){var l=this.HTMLgetAlign(f,p),g=this.HTMLgetShift(f,p,l);k+=(h.shift-g)}var m=Math.floor(k/b.linebreakWidth*1000);if(m<0){m=e.toobig-3*m}if(p.fence){m+=e.fence}if((p.linebreakstyle===a.LINEBREAKSTYLE.AFTER&&p.texClass===a.TEXCLASS.OPEN)||p.texClass===a.TEXCLASS.CLOSE){m+=e.close}m+=h.nest*e.nestfactor;var q=e[p.linebreak||a.LINEBREAK.AUTO];if(!MathJax.Object.isArray(q)){if(k>=0){m=q*h.nest}}else{m=Math.max(1,m+q[0]*h.nest)}if(m>=h.penalty){return false}h.penalty=m;h.values=p;h.W=i;h.w=o;p.lineleading=b.length2em(p.lineleading,1,f.VALUES.lineleading);p.id=this.spanID;return true}});a.mspace.Augment({HTMLbetterBreak:function(g,f){if(g.values&&g.values.id===this.spanID){return false}var n=this.getValues("linebreak");var k=n.linebreak;if(!k||this.hasDimAttr()){k=a.LINEBREAK.AUTO}var h=g.scanW,l=this.HTMLspanElement(),m=l.bbox.w;if(l.style.paddingLeft){m+=b.unEm(l.style.paddingLeft)}if(h-g.shift===0){return false}var i=b.linebreakWidth-h;var j=Math.floor(i/b.linebreakWidth*1000);if(j<0){j=e.toobig-3*j}j+=g.nest*e.nestfactor;var o=e[k];if(k===a.LINEBREAK.AUTO&&m>=e.spacelimit&&!this.mathbackground&&!this.background){o=[(m+e.spaceoffset)*e.spacefactor]}if(!MathJax.Object.isArray(o)){if(i>=0){j=o*g.nest}}else{j=Math.max(1,j+o[0]*g.nest)}if(j>=g.penalty){return false}g.penalty=j;g.values=n;g.W=h;g.w=m;n.lineleading=f.VALUES.lineleading;n.linebreakstyle="before";n.id=this.spanID;return true}});MathJax.Hub.Register.StartupHook("TeX mathchoice Ready",function(){a.TeXmathchoice.Augment({HTMLbetterBreak:function(g,f){return this.Core().HTMLbetterBreak(g,f)},HTMLmoveLine:function(j,f,h,i,g){return this.Core().HTMLmoveSlice(j,f,h,i,g)}})});a.maction.Augment({HTMLbetterBreak:function(g,f){return this.Core().HTMLbetterBreak(g,f)},HTMLmoveLine:function(j,f,h,i,g){return this.Core().HTMLmoveSlice(j,f,h,i,g)},HTMLmoveSlice:function(g,i,l,f,m,j){var o=document.getElementById("MathJax-HitBox-"+this.spanID+b.idPostfix);if(o){o.parentNode.removeChild(o)}var k=this.SUPER(arguments).HTMLmoveSlice.apply(this,arguments);if(i.length===0){l=this.HTMLspanElement();var h=0;while(l){o=this.HTMLhandleHitBox(l,"-Continue-"+h);l=l.nextMathJaxSpan;h++}}return k}});a.semantics.Augment({HTMLbetterBreak:function(g,f){return(this.data[0]?this.data[0].HTMLbetterBreak(g,f):false)},HTMLmoveLine:function(j,f,h,i,g){return(this.data[0]?this.data[0].HTMLmoveSlice(j,f,h,i,g):null)}});MathJax.Hub.Startup.signal.Post("HTML-CSS multiline Ready");MathJax.Ajax.loadComplete(b.autoloadDir+"/multiline.js")}); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/config.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/config.js deleted file mode 100755 index e9ba48e2c..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/config.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/config.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.OutputJax["HTML-CSS"]=MathJax.OutputJax({id:"HTML-CSS",version:"2.7.1",directory:MathJax.OutputJax.directory+"/HTML-CSS",extensionDir:MathJax.OutputJax.extensionDir+"/HTML-CSS",autoloadDir:MathJax.OutputJax.directory+"/HTML-CSS/autoload",fontDir:MathJax.OutputJax.directory+"/HTML-CSS/fonts",webfontDir:MathJax.OutputJax.fontDir+"/HTML-CSS",config:{noReflows:true,matchFontHeight:true,scale:100,minScaleAdjust:50,availableFonts:["STIX","TeX"],preferredFont:"TeX",webFont:"TeX",imageFont:"TeX",undefinedFamily:"STIXGeneral,'Arial Unicode MS',serif",mtextFontInherit:false,EqnChunk:(MathJax.Hub.Browser.isMobile?10:50),EqnChunkFactor:1.5,EqnChunkDelay:100,linebreaks:{automatic:false,width:"container"},styles:{".MathJax_Display":{"text-align":"center",margin:"1em 0em"},".MathJax .merror":{"background-color":"#FFFF88",color:"#CC0000",border:"1px solid #CC0000",padding:"1px 3px","font-style":"normal","font-size":"90%"},".MathJax .MJX-monospace":{"font-family":"monospace"},".MathJax .MJX-sans-serif":{"font-family":"sans-serif"},"#MathJax_Tooltip":{"background-color":"InfoBackground",color:"InfoText",border:"1px solid black","box-shadow":"2px 2px 5px #AAAAAA","-webkit-box-shadow":"2px 2px 5px #AAAAAA","-moz-box-shadow":"2px 2px 5px #AAAAAA","-khtml-box-shadow":"2px 2px 5px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')",padding:"3px 4px","z-index":401}}}});if(MathJax.Hub.Browser.isMSIE&&document.documentMode>=9){delete MathJax.OutputJax["HTML-CSS"].config.styles["#MathJax_Tooltip"].filter}if(!MathJax.Hub.config.delayJaxRegistration){MathJax.OutputJax["HTML-CSS"].Register("jax/mml")}MathJax.Hub.Register.StartupHook("End Config",[function(b,c){var a=b.Insert({minBrowserVersion:{Firefox:3,Opera:9.52,MSIE:6,Chrome:0.3,Safari:2,Konqueror:4},inlineMathDelimiters:["$","$"],displayMathDelimiters:["$$","$$"],multilineDisplay:true,minBrowserTranslate:function(f){var e=b.getJaxFor(f),k=["[Math]"],j;var h=document.createElement("span",{className:"MathJax_Preview"});if(e.inputJax==="TeX"){if(e.root.Get("displaystyle")){j=a.displayMathDelimiters;k=[j[0]+e.originalText+j[1]];if(a.multilineDisplay){k=k[0].split(/\n/)}}else{j=a.inlineMathDelimiters;k=[j[0]+e.originalText.replace(/^\s+/,"").replace(/\s+$/,"")+j[1]]}}for(var g=0,d=k.length;g T d \u23A6 \u2A00",skew:{84:0.0278,58096:0.0319},32:[0,0,250,0,0],62:[540,40,778,83,694],84:[717,68,545,34,833],100:[694,11,511,101,567],160:[0,0,250,0,0],8899:[750,249,833,55,777],9126:[1155,644,667,0,347],10752:[949,449,1511,56,1454],58096:[720,69,644,38,947],58097:[587,85,894,96,797]};MathJax.Callback.Queue(["initFont",MathJax.OutputJax["HTML-CSS"],"MathJax_WinChrome"],["loadComplete",MathJax.Ajax,MathJax.OutputJax["HTML-CSS"].fontDir+"/WinChrome/Regular/Main.js"]); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/AMS.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/AMS.js deleted file mode 100755 index 0335142c9..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/AMS.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/AMS.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.MathJax_WinIE6,{58048:[437,-64,500,58,417],58049:[437,-64,500,64,422],58050:[430,23,222,91,131],58051:[431,23,389,55,331],58052:[365,-132,778,55,719],58053:[753,175,778,83,694],58054:[753,175,778,83,694],58055:[708,209,778,82,693],58056:[708,209,778,82,693],58058:[694,-306,500,55,444],58059:[694,-306,500,55,444],58060:[366,22,500,55,444],58061:[366,22,500,55,444],58062:[694,195,889,0,860],58063:[694,195,889,0,860],58064:[689,0,778,55,722],58065:[689,0,778,55,722],58066:[575,20,722,84,637],58067:[575,20,722,84,637],58068:[539,41,778,83,694],58069:[576,19,722,84,637],58070:[576,19,722,84,637],58071:[539,41,778,83,694],58072:[716,132,667,56,611],58073:[471,82,667,24,643],58074:[471,82,667,23,643],58075:[601,101,778,15,762],58076:[694,111,944,49,895],58077:[367,-133,778,56,722]});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/WinIE6/Regular/AMS.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Bold.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Bold.js deleted file mode 100755 index 8560e10ef..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Bold.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Bold.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.MathJax_WinIE6,{57920:[518,17,1150,64,1084],57921:[694,193,575,14,561],57922:[518,17,1150,65,1085],57923:[694,194,575,14,561],57924:[518,17,1150,64,1085],57925:[767,267,575,14,561],57926:[724,194,1150,64,1084],57927:[724,193,1150,64,1085],57928:[694,224,1150,65,1085],57929:[694,224,1150,64,1085],57930:[547,46,1150,64,1084],57931:[547,46,1150,47,1102],57932:[694,16,639,1,640],57933:[710,17,628,60,657],57934:[694,-1,639,64,574],57935:[686,24,958,56,901],57936:[587,86,767,97,670],57937:[587,86,767,96,670],57938:[750,250,575,63,511],57939:[820,180,958,78,988],57940:[451,8,894,65,830],57941:[452,8,1150,65,1084],57942:[714,0,722,55,676],57943:[750,249,319,129,190],57944:[750,248,575,145,430],57945:[604,17,767,64,702],57946:[604,16,767,64,702],57947:[603,16,767,64,702],57948:[604,16,767,64,702],57949:[711,211,569,64,632],57950:[391,-109,894,64,828],57951:[524,-32,894,64,829],57952:[711,210,894,64,829],57953:[505,3,894,64,829],57954:[697,199,894,96,797],57955:[697,199,894,96,797],57956:[617,116,1150,64,1085],57957:[618,116,1150,64,1085],57958:[587,85,894,96,797],57959:[587,86,894,96,796],57960:[697,199,894,96,797],57961:[697,199,894,96,796],57962:[632,132,894,64,828],57963:[632,132,894,64,828],57964:[693,-1,894,65,829],57965:[711,-1,1022,69,953],57966:[500,210,1022,68,953],57967:[711,211,1150,65,1084],57968:[719,129,894,64,829],57969:[711,24,894,65,828],57970:[719,154,894,64,828],57971:[719,129,894,32,861],57972:[750,17,447,64,381],57973:[741,223,447,57,389],57974:[724,224,447,63,382]});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/WinIE6/Regular/Bold.js"); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Main.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Main.js deleted file mode 100755 index aef8b76fa..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Main.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Main.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.MathJax_WinIE6={directory:"WinIE6/Regular",family:"MathJax_WinIE6",testString:"\uE247 \uE257 \uE2CF",skew:{57869:0.0833,57933:0.0958},Ranges:[[57920,57983,"Bold"],[58048,58079,"AMS"]],32:[0,0,250,0,0],160:[0,0,250,0,0],57856:[511,11,1000,55,944],57857:[694,193,500,17,483],57858:[511,11,1000,56,944],57859:[694,194,500,17,483],57860:[511,11,1000,55,944],57861:[772,272,500,17,483],57862:[720,195,1000,29,944],57863:[720,195,1000,55,970],57864:[695,220,1000,55,970],57865:[695,220,1000,29,944],57866:[525,24,1000,56,944],57867:[526,25,1000,34,966],57868:[694,22,556,0,556],57869:[715,22,531,42,566],57870:[694,0,556,56,500],57871:[683,33,833,46,786],57872:[540,40,667,84,583],57873:[540,40,667,83,582],57874:[750,250,500,56,445],57875:[800,200,833,72,853],57876:[442,11,778,56,722],57877:[442,11,1000,55,944],57878:[694,0,722,55,666],57879:[750,249,278,119,159],57880:[750,250,500,132,367],57881:[598,22,667,55,611],57882:[598,22,667,55,611],57883:[598,22,667,55,611],57884:[598,22,667,55,611],57885:[716,216,417,55,472],57886:[367,-133,778,55,722],57887:[483,-55,778,55,722],57888:[716,215,778,56,722],57889:[464,-36,778,56,722],57890:[636,138,778,83,694],57891:[636,138,778,83,694],57892:[568,67,1000,56,944],57893:[567,67,1000,55,944],57894:[540,40,778,84,694],57895:[540,40,778,83,693],57896:[636,138,778,84,694],57897:[636,138,778,83,693],57898:[583,83,778,56,722],57899:[583,83,778,56,722],57900:[668,0,778,55,723],57901:[716,0,889,59,828],57902:[500,215,889,59,828],57903:[715,215,1000,56,944],57904:[727,130,778,55,723],57905:[716,33,778,55,723],57906:[727,162,778,55,723],57907:[726,130,778,28,750],57908:[750,22,389,55,332],57909:[734,223,389,65,324],57910:[723,223,389,55,333],57984:[0,1000,944,55,888],57985:[0,1000,1056,56,999],57986:[40,1160,1000,111,1020],57987:[21,621,333,145,188],57988:[21,621,556,145,410],57989:[0,1111,472,55,610],57990:[0,1111,472,55,610],57991:[0,600,667,112,555],57992:[0,600,667,112,555],57993:[1,601,667,312,355],58000:[0,1400,1278,56,1221],58001:[0,1400,1444,55,1388],58002:[40,1760,1000,111,1020],58005:[0,2222,556,55,944],58006:[0,2222,556,55,944],58018:[40,2360,1000,111,1020],58034:[40,2960,1000,111,1020]};MathJax.Callback.Queue(["initFont",MathJax.OutputJax["HTML-CSS"],"MathJax_WinIE6"],["loadComplete",MathJax.Ajax,MathJax.OutputJax["HTML-CSS"].fontDir+"/WinIE6/Regular/Main.js"]); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js deleted file mode 100755 index 15de422e4..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(h){var n="2.7.1";var m=h.FONTDATA.DELIMITERS;var g="MathJax_Main",i="MathJax_Main-bold",k="MathJax_AMS",e="MathJax_Size1",a="MathJax_Size4";var l="H",f="V";var j=[8722,g,0,0,0,-0.3,-0.3];var c=[61,g,0,0,0,0,0.1];var d={61:{dir:l,HW:[[0.767,g]],stretch:{rep:[61,g]}},8606:{dir:l,HW:[[1,k]],stretch:{left:[8606,k],rep:j}},8608:{dir:l,HW:[[1,k]],stretch:{right:[8608,k],rep:j}},8612:{dir:l,HW:[],stretch:{min:1,left:[8592,g],rep:j,right:[8739,e,0,-0.05,0.9]}},8613:{dir:f,HW:[],stretch:{min:0.6,bot:[8869,i,0,0,0.75],ext:[9168,e],top:[8593,e]}},8614:{dir:l,HW:[[1,g]],stretch:{left:[8739,e,-0.09,-0.05,0.9],rep:j,right:[8594,g]}},8615:{dir:f,HW:[],stretch:{min:0.6,top:[8868,i,0,0,0.75],ext:[9168,e],bot:[8595,e]}},8624:{dir:f,HW:[[0.722,k]],stretch:{top:[8624,k],ext:[9168,e,0.097]}},8625:{dir:f,HW:[[0.722,k]],stretch:{top:[8625,k,0.27],ext:[9168,e]}},8636:{dir:l,HW:[[1,g]],stretch:{left:[8636,g],rep:j}},8637:{dir:l,HW:[[1,g]],stretch:{left:[8637,g],rep:j}},8638:{dir:f,HW:[[0.888,k]],stretch:{top:[8638,k,0.12,0,1.1],ext:[9168,e]}},8639:{dir:f,HW:[[0.888,k]],stretch:{top:[8639,k,0.12,0,1.1],ext:[9168,e]}},8640:{dir:l,HW:[[1,g]],stretch:{right:[8640,g],rep:j}},8641:{dir:l,HW:[[1,g]],stretch:{right:[8641,g],rep:j}},8642:{dir:f,HW:[[0.888,k]],stretch:{bot:[8642,k,0.12,0,1.1],ext:[9168,e]}},8643:{dir:f,HW:[[0.888,k]],stretch:{bot:[8643,k,0.12,0,1.1],ext:[9168,e]}},8666:{dir:l,HW:[[1,k]],stretch:{left:[8666,k],rep:[8801,g]}},8667:{dir:l,HW:[[1,k]],stretch:{right:[8667,k],rep:[8801,g]}},9140:{dir:l,HW:[],stretch:{min:0.5,left:[9484,k,0,-0.1],rep:[8722,g,0,0.35],right:[9488,k,0,-0.1]}},9141:{dir:l,HW:[],stretch:{min:0.5,left:[9492,k,0,0.26],rep:[8722,g,0,0,0,0.25],right:[9496,k,0,0.26]}},9180:{dir:l,HW:[[0.778,k,0,8994],[1,g,0,8994]],stretch:{left:[57680,a],rep:[57684,a],right:[57681,a]}},9181:{dir:l,HW:[[0.778,k,0,8995],[1,g,0,8995]],stretch:{left:[57682,a],rep:[57684,a],right:[57683,a]}},9184:{dir:l,HW:[],stretch:{min:1.25,left:[714,g,-0.1],rep:[713,g,0,0.13],right:[715,g],fullExtenders:true}},9185:{dir:l,HW:[],stretch:{min:1.5,left:[715,g,-0.1,0.1],rep:[713,g],right:[714,g,-0.1,0.1],fullExtenders:true}},10502:{dir:l,HW:[],stretch:{min:1,left:[8656,g],rep:c,right:[8739,e,0,-0.1]}},10503:{dir:l,HW:[],stretch:{min:0.7,left:[8872,k,0,-0.12],rep:c,right:[8658,g]}},10574:{dir:l,HW:[],stretch:{min:0.5,left:[8636,g],rep:j,right:[8640,g]}},10575:{dir:f,HW:[],stretch:{min:0.5,top:[8638,k,0.12,0,1.1],ext:[9168,e],bot:[8642,k,0.12,0,1.1]}},10576:{dir:l,HW:[],stretch:{min:0.5,left:[8637,g],rep:j,right:[8641,g]}},10577:{dir:f,HW:[],stretch:{min:0.5,top:[8639,k,0.12,0,1.1],ext:[9168,e],bot:[8643,k,0.12,0,1.1]}},10586:{dir:l,HW:[],stretch:{min:1,left:[8636,g],rep:j,right:[8739,e,0,-0.05,0.9]}},10587:{dir:l,HW:[],stretch:{min:1,left:[8739,e,-0.05,-0.05,0.9],rep:j,right:[8640,g]}},10588:{dir:f,HW:[],stretch:{min:0.7,bot:[8869,i,0,0,0.75],ext:[9168,e],top:[8638,k,0.12,0,1.1]}},10589:{dir:f,HW:[],stretch:{min:0.7,top:[8868,i,0,0,0.75],ext:[9168,e],bot:[8642,k,0.12,0,1.1]}},10590:{dir:l,HW:[],stretch:{min:1,left:[8637,g],rep:j,right:[8739,e,0,-0.05,0.9]}},10591:{dir:l,HW:[],stretch:{min:1,left:[8739,e,-0.05,-0.05,0.9],rep:j,right:[8641,g]}},10592:{dir:f,HW:[],stretch:{min:0.7,bot:[8869,i,0,0,0.75],ext:[9168,e],top:[8639,k,0.12,0,1.1]}},10593:{dir:f,HW:[],stretch:{min:0.7,top:[8868,i,0,0,0.75],ext:[9168,e],bot:[8643,k,0.12,0,1.1]}}};for(var b in d){if(d.hasOwnProperty(b)){m[b]=d[b]}}MathJax.Ajax.loadComplete(h.fontDir+"/fontdata-extra.js")})(MathJax.OutputJax["HTML-CSS"]); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata.js deleted file mode 100755 index 2bf1182bb..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(i,b,q){var p="2.7.1";var m="MathJax_Main",r="MathJax_Main-bold",o="MathJax_Math-italic",h="MathJax_AMS",g="MathJax_Size1",f="MathJax_Size2",e="MathJax_Size3",c="MathJax_Size4";var j="H",a="V",l={load:"extra",dir:j},d={load:"extra",dir:a};var k=[8722,m,0,0,0,-0.31,-0.31];var n=[61,m,0,0,0,0,0.1];i.Augment({FONTDATA:{version:p,TeX_factor:1,baselineskip:1.2,lineH:0.8,lineD:0.2,hasStyleChar:true,FONTS:{MathJax_Main:"Main/Regular/Main.js","MathJax_Main-bold":"Main/Bold/Main.js","MathJax_Main-italic":"Main/Italic/Main.js","MathJax_Math-italic":"Math/Italic/Main.js","MathJax_Math-bold-italic":"Math/BoldItalic/Main.js",MathJax_Caligraphic:"Caligraphic/Regular/Main.js",MathJax_Size1:"Size1/Regular/Main.js",MathJax_Size2:"Size2/Regular/Main.js",MathJax_Size3:"Size3/Regular/Main.js",MathJax_Size4:"Size4/Regular/Main.js",MathJax_AMS:"AMS/Regular/Main.js",MathJax_Fraktur:"Fraktur/Regular/Main.js","MathJax_Fraktur-bold":"Fraktur/Bold/Main.js",MathJax_SansSerif:"SansSerif/Regular/Main.js","MathJax_SansSerif-bold":"SansSerif/Bold/Main.js","MathJax_SansSerif-italic":"SansSerif/Italic/Main.js",MathJax_Script:"Script/Regular/Main.js",MathJax_Typewriter:"Typewriter/Regular/Main.js","MathJax_Caligraphic-bold":"Caligraphic/Bold/Main.js"},VARIANT:{normal:{fonts:[m,g,h],offsetG:945,variantG:"italic",remap:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,932:84,935:88,8214:8741,8726:[8726,"-TeX-variant"],8463:[8463,"-TeX-variant"],8242:[39,"sans-serif-italic"],10744:[47,b.VARIANT.ITALIC]}},bold:{fonts:[r,g,h],bold:true,offsetG:945,variantG:"bold-italic",remap:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,932:84,935:88,10744:[47,"bold-italic"],8214:8741,8602:"\u2190\u0338",8603:"\u2192\u0338",8622:"\u2194\u0338",8653:"\u21D0\u0338",8654:"\u21D4\u0338",8655:"\u21D2\u0338",8708:"\u2203\u0338",8740:"\u2223\u0338",8742:"\u2225\u0338",8769:"\u223C\u0338",8775:"\u2245\u0338",8814:"<\u0338",8815:">\u0338",8816:"\u2264\u0338",8817:"\u2265\u0338",8832:"\u227A\u0338",8833:"\u227B\u0338",8840:"\u2286\u0338",8841:"\u2287\u0338",8876:"\u22A2\u0338",8877:"\u22A8\u0338",8928:"\u227C\u0338",8929:"\u227D\u0338"}},italic:{fonts:[o,"MathJax_Main-italic",m,g,h],italic:true,remap:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,932:84,935:88}},"bold-italic":{fonts:["MathJax_Math-bold-italic",r,g,h],bold:true,italic:true,remap:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,932:84,935:88}},"double-struck":{fonts:[h,m]},fraktur:{fonts:["MathJax_Fraktur",m,g,h]},"bold-fraktur":{fonts:["MathJax_Fraktur-bold",r,g,h],bold:true},script:{fonts:["MathJax_Script",m,g,h]},"bold-script":{fonts:["MathJax_Script",r,g,h],bold:true},"sans-serif":{fonts:["MathJax_SansSerif",m,g,h]},"bold-sans-serif":{fonts:["MathJax_SansSerif-bold",r,g,h],bold:true},"sans-serif-italic":{fonts:["MathJax_SansSerif-italic","MathJax_Main-italic",g,h],italic:true},"sans-serif-bold-italic":{fonts:["MathJax_SansSerif-italic","MathJax_Main-italic",g,h],bold:true,italic:true},monospace:{fonts:["MathJax_Typewriter",m,g,h]},"-tex-caligraphic":{fonts:["MathJax_Caligraphic",m],offsetA:65,variantA:"italic"},"-tex-oldstyle":{fonts:["MathJax_Caligraphic",m]},"-tex-mathit":{fonts:["MathJax_Main-italic",o,m,g,h],italic:true,noIC:true,remap:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,932:84,935:88}},"-TeX-variant":{fonts:[h,m,g],remap:{8808:57356,8809:57357,8816:57361,8817:57358,10887:57360,10888:57359,8740:57350,8742:57351,8840:57366,8841:57368,8842:57370,8843:57371,10955:57367,10956:57369,988:57352,1008:57353,8726:[8726,b.VARIANT.NORMAL],8463:[8463,b.VARIANT.NORMAL]}},"-largeOp":{fonts:[f,g,m]},"-smallOp":{fonts:[g,m]},"-tex-caligraphic-bold":{fonts:["MathJax_Caligraphic-bold","MathJax_Main-bold","MathJax_Main","MathJax_Math","MathJax_Size1"],bold:true,offsetA:65,variantA:"bold-italic"},"-tex-oldstyle-bold":{fonts:["MathJax_Caligraphic-bold","MathJax_Main-bold","MathJax_Main","MathJax_Math","MathJax_Size1"],bold:true}},RANGES:[{name:"alpha",low:97,high:122,offset:"A",add:32},{name:"number",low:48,high:57,offset:"N"},{name:"greek",low:945,high:1014,offset:"G"}],RULECHAR:8722,REMAP:{8254:713,8400:8636,8401:8640,8406:8592,8417:8596,8428:8641,8429:8637,8430:8592,8431:8594,8432:42,65079:9182,65080:9183,183:8901,697:8242,978:933,8710:916,8213:8212,8215:95,8226:8729,8260:47,8965:8892,8966:10846,9642:9632,9652:9650,9653:9651,9656:9654,9662:9660,9663:9661,9666:9664,9001:10216,9002:10217,12296:10216,12297:10217,10072:8739,10799:215,9723:9633,9724:9632,8450:[67,b.VARIANT.DOUBLESTRUCK],8459:[72,b.VARIANT.SCRIPT],8460:[72,b.VARIANT.FRAKTUR],8461:[72,b.VARIANT.DOUBLESTRUCK],8462:[104,b.VARIANT.ITALIC],8464:[74,b.VARIANT.SCRIPT],8465:[73,b.VARIANT.FRAKTUR],8466:[76,b.VARIANT.SCRIPT],8469:[78,b.VARIANT.DOUBLESTRUCK],8473:[80,b.VARIANT.DOUBLESTRUCK],8474:[81,b.VARIANT.DOUBLESTRUCK],8475:[82,b.VARIANT.SCRIPT],8476:[82,b.VARIANT.FRAKTUR],8477:[82,b.VARIANT.DOUBLESTRUCK],8484:[90,b.VARIANT.DOUBLESTRUCK],8486:[937,b.VARIANT.NORMAL],8488:[90,b.VARIANT.FRAKTUR],8492:[66,b.VARIANT.SCRIPT],8493:[67,b.VARIANT.FRAKTUR],8496:[69,b.VARIANT.SCRIPT],8497:[70,b.VARIANT.SCRIPT],8499:[77,b.VARIANT.SCRIPT],8775:8774,8988:9484,8989:9488,8990:9492,8991:9496,8708:"\u2203\u0338",8716:"\u220B\u0338",8772:"\u2243\u0338",8777:"\u2248\u0338",8802:"\u2261\u0338",8813:"\u224D\u0338",8820:"\u2272\u0338",8821:"\u2273\u0338",8824:"\u2276\u0338",8825:"\u2277\u0338",8836:"\u2282\u0338",8837:"\u2283\u0338",8930:"\u2291\u0338",8931:"\u2292\u0338",10764:"\u222C\u222C",8243:"\u2032\u2032",8244:"\u2032\u2032\u2032",8246:"\u2035\u2035",8247:"\u2035\u2035\u2035",8279:"\u2032\u2032\u2032\u2032",8411:"...",8412:"...."},REMAPACCENT:{"\u2192":"\u20D7","\u2032":"'","\u2035":"`"},REMAPACCENTUNDER:{},PLANE1MAP:[[119808,119833,65,b.VARIANT.BOLD],[119834,119859,97,b.VARIANT.BOLD],[119860,119885,65,b.VARIANT.ITALIC],[119886,119911,97,b.VARIANT.ITALIC],[119912,119937,65,b.VARIANT.BOLDITALIC],[119938,119963,97,b.VARIANT.BOLDITALIC],[119964,119989,65,b.VARIANT.SCRIPT],[120068,120093,65,b.VARIANT.FRAKTUR],[120094,120119,97,b.VARIANT.FRAKTUR],[120120,120145,65,b.VARIANT.DOUBLESTRUCK],[120172,120197,65,b.VARIANT.BOLDFRAKTUR],[120198,120223,97,b.VARIANT.BOLDFRAKTUR],[120224,120249,65,b.VARIANT.SANSSERIF],[120250,120275,97,b.VARIANT.SANSSERIF],[120276,120301,65,b.VARIANT.BOLDSANSSERIF],[120302,120327,97,b.VARIANT.BOLDSANSSERIF],[120328,120353,65,b.VARIANT.SANSSERIFITALIC],[120354,120379,97,b.VARIANT.SANSSERIFITALIC],[120432,120457,65,b.VARIANT.MONOSPACE],[120458,120483,97,b.VARIANT.MONOSPACE],[120488,120513,913,b.VARIANT.BOLD],[120546,120570,913,b.VARIANT.ITALIC],[120572,120603,945,b.VARIANT.ITALIC],[120604,120628,913,b.VARIANT.BOLDITALIC],[120630,120661,945,b.VARIANT.BOLDITALIC],[120662,120686,913,b.VARIANT.BOLDSANSSERIF],[120720,120744,913,b.VARIANT.SANSSERIFBOLDITALIC],[120782,120791,48,b.VARIANT.BOLD],[120802,120811,48,b.VARIANT.SANSSERIF],[120812,120821,48,b.VARIANT.BOLDSANSSERIF],[120822,120831,48,b.VARIANT.MONOSPACE]],REMAPGREEK:{913:65,914:66,917:69,918:90,919:72,921:73,922:75,924:77,925:78,927:79,929:80,930:920,932:84,935:88,938:8711,970:8706,971:1013,972:977,973:1008,974:981,975:1009,976:982},RemapPlane1:function(v,u){for(var t=0,s=this.PLANE1MAP.length;t T d \u23A6 \u2A00",skew:{84:0.0278,58096:0.0319},32:[0,0,250,0,0],62:[540,40,778,83,694],84:[717,68,545,34,833],100:[694,11,511,101,567],160:[0,0,250,0,0],8899:[750,249,833,55,777],9126:[1155,644,667,0,347],10752:[949,449,1511,56,1454],58096:[720,69,644,38,947],58097:[587,85,894,96,797]}}}})}(function(){var v=i.FONTDATA.FONTS,u=i.config.availableFonts;var t,s=[];if(i.allowWebFonts){for(t in v){if(v[t].family){if(u&&u.length&&i.Font.testFont(v[t])){v[t].available=true;i.Font.loadComplete(v[t])}else{v[t].isWebFont=true;if(i.FontFaceBug){v[t].family=t}s.push(i.Font.fontFace(t))}}}if(!i.config.preloadWebFonts){i.config.preloadWebFonts=[]}i.config.preloadWebFonts.push(m,o,g);if(s.length){i.config.styles["@font-face"]=s}}else{if(u&&u.length){for(t in v){if(v[t].family&&i.Font.testFont(v[t])){v[t].available=true;i.Font.loadComplete(v[t])}}}}})();q.loadComplete(i.fontDir+"/fontdata.js")})(MathJax.OutputJax["HTML-CSS"],MathJax.ElementJax.mml,MathJax.Ajax); diff --git a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/imageFonts.js b/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/imageFonts.js deleted file mode 100755 index b7b7a9430..000000000 --- a/qt/aqt/data/web/js/vendor/mathjax/jax/output/HTML-CSS/imageFonts.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * /MathJax/jax/output/HTML-CSS/imageFonts.js - * - * Copyright (c) 2009-2017 The MathJax Consortium - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -(function(b,c,a){var d="2.7.1";b.Register.LoadHook(c.fontDir+"/fontdata.js",function(){c.Augment({allowWebFonts:false,imgDir:c.webfontDir+"/png",imgPacked:(MathJax.isPacked?"":"/unpacked"),imgSize:["050","060","071","085",100,120,141,168,200,238,283,336,400,476],imgBaseIndex:4,imgSizeForEm:{},imgSizeForScale:{},imgZoom:1,handleImg:function(t,i,r,h,u){if(u.length){this.addText(t,u)}var s=r[5].orig;if(!s){s=r[5].orig=[r[0],r[1],r[2],r[3],r[4]]}var m=this.imgZoom;if(!t.scale){t.scale=1}var p=this.imgIndex(t.scale*m);if(p==this.imgEmWidth.length-1&&this.em*t.scale*m/this.imgEmWidth[p]>1.1){m=this.imgEmWidth[p]/(this.em*t.scale)}var q=this.imgEmWidth[p]/(this.em*(t.scale||1)*m);r[0]=s[0]*q;r[1]=s[1]*q;r[2]=s[2]*q;r[3]=s[3]*q;r[4]=s[4]*q;var k=this.imgDir+"/"+i.directory+"/"+this.imgSize[p];var l=h.toString(16).toUpperCase();while(l.length<4){l="0"+l}var j=k+"/"+l+".png";var o=r[5].img[p];var g={width:Math.floor(o[0]/m+0.5)+"px",height:Math.floor(o[1]/m+0.5)+"px"};if(o[2]){g.verticalAlign=Math.floor(-o[2]/m+0.5)+"px"}if(r[3]<0){g.marginLeft=this.Em(r[3]/1000)}if(r[4]!=r[2]){g.marginRight=this.Em((r[2]-r[4])/1000)}if(this.msieIE6){g.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a.urlRev(j)+"', sizingMethod='scale')";j=this.directory+"/blank.gif"}this.addElement(t,"img",{src:a.urlRev(j),style:g,isMathJax:true});return""},defineImageData:function(i){for(var g in i){if(i.hasOwnProperty(g)){var h=c.FONTDATA.FONTS[g];if(h){g=i[g];for(var j in g){if(g.hasOwnProperty(j)&&h[j]){h[j][5]={img:g[j]}}}}}}},initImg:function(j){if(this.imgSizeForEm[this.em]){this.imgBaseIndex=this.imgSizeForEm[this.em]}for(var h=0,g=this.imgEmWidth.length-1;hthis.em-this.imgEmWidth[h-1]){h--}this.imgSizeForEm[this.em]=this.imgBaseIndex=h;this.imgZoom=this.imgBrowserZoom()},imgIndex:function(k){if(!k){return this.imgBaseIndex}if(!this.imgSizeForScale[this.em]){this.imgSizeForScale[this.em]={}}if(this.imgSizeForScale[this.em][k]){return this.imgSizeForScale[this.em][k]}var j=this.em*k;for(var h=0,g=this.imgEmWidth.length-1;hj-this.imgEmWidth[h-1]){h--}this.imgSizeForScale[this.em][k]=h;return h},imgBrowserZoom:function(){return 1}});b.Browser.Select({Firefox:function(h){var g=c.addElement(document.body,"div",{style:{display:"none",visibility:"hidden",overflow:"scroll",position:"absolute",top:0,left:0,width:"200px",height:"200px",padding:0,border:0,margin:0}});var i=c.addElement(g,"div",{style:{position:"absolute",left:0,top:0,right:0,bottom:0,padding:0,border:0,margin:0}});c.Augment({imgSpaceBug:true,imgSpace:"\u00A0",imgZoomLevel:(h.isMac?{50:0.3,30:0.5,22:0.67,19:0.8,16:0.9,15:1,13:1.1,12:1.2,11:1.33,10:1.5,9:1.7,7:2,6:2.4,5:3,0:15}:{56:0.3,34:0.5,25:0.67,21:0.8,19:0.9,17:1,15:1.1,14:1.2,13:1.33,11:1.5,10:1.7,8:2,7:2.4,6:3,0:17}),imgZoomDiv:g,imgBrowserZoom:function(){var j=this.imgZoomLevel;g.style.display="";var k=(g.offsetWidth-i.offsetWidth);k=(j[k]?j[k]:j[0]/k);g.style.display="none";return k}})},Safari:function(g){c.Augment({imgBrowserZoom:function(){return 3}})},Chrome:function(g){c.Augment({imgHeightBug:true,imgBrowserZoom:function(){return 3}})},Opera:function(g){c.Augment({imgSpaceBug:true,imgSpace:"\u00A0\u00A0",imgDoc:(document.compatMode=="BackCompat"?document.body:document.documentElement),imgBrowserZoom:function(){if(g.isMac){return 3}var h=this.imgDoc.clientHeight,i=Math.floor(15*h/window.innerHeight);if(this.imgDoc.clientWidth=r.HTMLCSSlast+r.HTMLCSSchunk){this.postTranslate(r,true);r.HTMLCSSchunk=Math.floor(r.HTMLCSSchunk*this.config.EqnChunkFactor);r.HTMLCSSdelay=true}return false},savePreview:function(m){var n=m.MathJax.preview;if(n){m.MathJax.tmpPreview=document.createElement("span");n.parentNode.replaceChild(m.MathJax.tmpPreview,n)}},restorePreview:function(m){var n=m.MathJax.tmpPreview;if(n){n.parentNode.replaceChild(m.MathJax.preview,n);delete m.MathJax.tmpPreview}},getMetrics:function(m){var n=m.HTMLCSS;this.em=i.mbase.prototype.em=n.em*n.scale;this.outerEm=n.em;this.scale=n.scale;this.cwidth=n.cwidth;this.linebreakWidth=n.lineWidth},postTranslate:function(o,u){var r=o.jax[this.id],v,p,s,q;for(s=o.HTMLCSSlast,q=o.HTMLCSSeqn;sm){y.style.width=(u+100)+"px"}}}r=y.firstChild.firstChild.style;if(z.H!=null&&z.H>z.h){r.marginTop=d.Em(z.H-Math.max(z.h,d.FONTDATA.lineH))}if(z.D!=null&&z.D>z.d){r.marginBottom=d.Em(z.D-Math.max(z.d,d.FONTDATA.lineD))}if(z.lw<0){r.paddingLeft=d.Em(-z.lw)}if(z.rw>z.w){r.marginRight=d.Em(z.rw-z.w)}y.style.position="absolute";if(!p){x.style.position="absolute"}var w=y.offsetWidth,t=y.offsetHeight,A=x.offsetHeight,s=x.offsetWidth;y.style.position=x.style.position="";return{Y:-l.getBBox(y).h,mW:s,mH:A,zW:w,zH:t}},initImg:function(m){},initHTML:function(n,m){},initFont:function(m){var o=d.FONTDATA.FONTS,n=d.config.availableFonts;if(n&&n.length&&d.Font.testFont(o[m])){o[m].available=true;if(o[m].familyFixed){o[m].family=o[m].familyFixed;delete o[m].familyFixed}return null}if(!this.allowWebFonts){return null}o[m].isWebFont=true;if(d.FontFaceBug){o[m].family=m;if(d.msieFontCSSBug){o[m].family+="-Web"}}return j.Styles({"@font-face":this.Font.fontFace(m)})},Remove:function(m){var n=document.getElementById(m.inputID+"-Frame");if(n){if(m.HTMLCSS.display){n=n.parentNode}n.parentNode.removeChild(n)}delete m.HTMLCSS},getHD:function(n,o){if(n.bbox&&this.config.noReflows&&!o){return{h:n.bbox.h,d:n.bbox.d}}var m=n.style.position;n.style.position="absolute";this.HDimg.style.height="0px";n.appendChild(this.HDspan);var p={h:n.offsetHeight};this.HDimg.style.height=p.h+"px";p.d=n.offsetHeight-p.h;p.h-=p.d;p.h/=this.em;p.d/=this.em;n.removeChild(this.HDspan);n.style.position=m;return p},getW:function(q){var n,p,o=(q.bbox||{}).w,r=q;if(q.bbox&&this.config.noReflows&&q.bbox.exactW!==false){if(!q.bbox.exactW){if(q.style.paddingLeft){o+=this.unEm(q.style.paddingLeft)*(q.scale||1)}if(q.style.paddingRight){o+=this.unEm(q.style.paddingRight)*(q.scale||1)}}return o}if(q.bbox&&q.bbox.exactW){return o}if((q.bbox&&o>=0&&!this.initialSkipBug&&!this.msieItalicWidthBug)||this.negativeBBoxes||!q.firstChild){n=q.offsetWidth;p=q.parentNode.offsetHeight}else{if(q.bbox&&o<0&&this.msieNegativeBBoxBug){n=-q.offsetWidth,p=q.parentNode.offsetHeight}else{var m=q.style.position;q.style.position="absolute";r=this.startMarker;q.insertBefore(r,q.firstChild);q.appendChild(this.endMarker);n=this.endMarker.offsetLeft-r.offsetLeft;q.removeChild(this.endMarker);q.removeChild(r);q.style.position=m}}if(p!=null){q.parentNode.HH=p/this.em}return n/this.em},Measured:function(o,n){var p=o.bbox;if(p.width==null&&p.w&&!p.isMultiline){var m=this.getW(o);p.rw+=m-p.w;p.w=m;p.exactW=true}if(!n){n=o.parentNode}if(!n.bbox){n.bbox=p}return o},Remeasured:function(n,m){m.bbox=this.Measured(n,m).bbox},MeasureSpans:function(q){var t=[],v,s,p,w,n,r,o,u;for(s=0,p=q.length;s=0&&!this.initialSkipBug)||(w.w<0&&this.msieNegativeBBoxBug)){t.push([v])}else{if(this.initialSkipBug){n=this.startMarker.cloneNode(true);r=this.endMarker.cloneNode(true);v.insertBefore(n,v.firstChild);v.appendChild(r);t.push([v,n,r,v.style.position]);v.style.position="absolute"}else{r=this.endMarker.cloneNode(true);v.appendChild(r);t.push([v,null,r])}}}for(s=0,p=t.length;s=0&&!this.initialSkipBug)||this.negativeBBoxes||!v.firstChild){o=v.offsetWidth;u.HH=u.offsetHeight/this.em}else{if(w.w<0&&this.msieNegativeBBoxBug){o=-v.offsetWidth,u.HH=u.offsetHeight/this.em}else{o=t[s][2].offsetLeft-((t[s][1]||{}).offsetLeft||0)}}o/=this.em;w.rw+=o-w.w;w.w=o;w.exactW=true;if(!u.bbox){u.bbox=w}}for(s=0,p=t.length;s=0){r.style.width=this.Em(s);r.style.display="inline-block";r.style.overflow="hidden"}else{if(this.msieNegativeSpaceBug){r.style.height=""}r.style.marginLeft=this.Em(s);if(d.safariNegativeSpaceBug&&r.parentNode.firstChild==r){this.createBlank(r,0,true)}}if(o&&o!==i.COLOR.TRANSPARENT){r.style.backgroundColor=o;r.style.position="relative"}return r},createRule:function(t,p,r,u,n){if(p<-r){r=-p}var o=d.TeX.min_rule_thickness,q=1;if(u>0&&u*this.em0&&(p+r)*this.emp+r){m.borderTop=this.Px(p+r)+" "+n;m.width=this.Em(u);m.height=(this.msieRuleBug&&p+r>0?this.Em(p+r):0)}else{m.borderLeft=this.Px(u)+" "+n;m.width=(this.msieRuleBug&&u>0?this.Em(u):0);m.height=this.Em(p+r)}var s=this.addElement(t,"span",{style:m,noAdjust:true,HH:p+r,isMathJax:true,bbox:{h:p,d:r,w:u,rw:u,lw:0,exactW:true}});if(t.isBox||t.className=="mspace"){t.bbox=s.bbox,t.HH=p+r}return s},createFrame:function(v,s,u,x,z,n){if(s<-u){u=-s}var r=2*z;if(this.msieFrameSizeBug){if(xE.w){d.createBlank(v,E.rw-E.w+0.1)}}if(!this.msieClipRectBug&&!E.noclip&&!p){var C=3/this.em;var B=(E.H==null?E.h:E.H),n=(E.D==null?E.d:E.D);var F=z-B-C,q=z+n+C,o=-1000,m=E.rw+1000;v.style.clip="rect("+this.Em(F)+" "+this.Em(m)+" "+this.Em(q)+" "+this.Em(o)+")"}}v.style.top=this.Em(-s-z);v.style.left=this.Em(u+G);if(E&&A){if(E.H!=null&&(A.H==null||E.H+s>A.H)){A.H=E.H+s}if(E.D!=null&&(A.D==null||E.D-s>A.D)){A.D=E.D-s}if(E.h+s>A.h){A.h=E.h+s}if(E.d-s>A.d){A.d=E.d-s}if(A.H!=null&&A.H<=A.h){delete A.H}if(A.D!=null&&A.D<=A.d){delete A.D}if(E.w+u>A.w){A.w=E.w+u;if(A.width==null){w.style.width=this.Em(A.w)}}if(E.rw+u>A.rw){A.rw=E.rw+u}if(E.lw+u=p-0.01||(u==r-1&&!o.stretch)){if(o.HW[u][2]){s*=o.HW[u][2]}if(o.HW[u][3]){n=o.HW[u][3]}var t=this.addElement(w,"span");this.createChar(t,[n,o.HW[u][1]],s,q);w.bbox=t.bbox;w.offset=0.65*w.bbox.w;w.scale=s;return}}if(o.stretch){this["extendDelimiter"+o.dir](w,v,o.stretch,s,q)}},extendDelimiterV:function(B,u,F,G,x){var p=this.createStack(B,true);var w=this.createBox(p),v=this.createBox(p);this.createChar(w,(F.top||F.ext),G,x);this.createChar(v,(F.bot||F.ext),G,x);var o={bbox:{w:0,lw:0,rw:0}},E=o,q;var C=w.bbox.h+w.bbox.d+v.bbox.h+v.bbox.d;var s=-w.bbox.h;this.placeBox(w,0,s,true);s-=w.bbox.d;if(F.mid){E=this.createBox(p);this.createChar(E,F.mid,G,x);C+=E.bbox.h+E.bbox.d}if(F.min&&uC){o=this.Element("span");this.createChar(o,F.ext,G,x);var D=o.bbox.h+o.bbox.d,m=D-0.05,z,r,A=(F.mid?2:1);r=z=Math.min(Math.ceil((u-C)/(A*m)),this.maxStretchyParts);if(!F.fullExtenders){m=(u-C)/(A*z)}var t=(z/(z+1))*(D-m);m=D-t;s+=t+m-o.bbox.h;while(A-->0){while(z-->0){if(!this.msieCloneNodeBug){q=o.cloneNode(true)}else{q=this.Element("span");this.createChar(q,F.ext,G,x)}q.bbox=o.bbox;s-=m;this.placeBox(this.addBox(p,q),0,s,true)}s+=t-o.bbox.d;if(F.mid&&A){this.placeBox(E,0,s-E.bbox.h,true);z=r;s+=-(E.bbox.h+E.bbox.d)+t+m-o.bbox.h}}}else{s+=(C-u)/2;if(F.mid){this.placeBox(E,0,s-E.bbox.h,true);s+=-(E.bbox.h+E.bbox.d)}s+=(C-u)/2}this.placeBox(v,0,s-v.bbox.h,true);s-=v.bbox.h+v.bbox.d;B.bbox={w:Math.max(w.bbox.w,o.bbox.w,v.bbox.w,E.bbox.w),lw:Math.min(w.bbox.lw,o.bbox.lw,v.bbox.lw,E.bbox.lw),rw:Math.max(w.bbox.rw,o.bbox.rw,v.bbox.rw,E.bbox.rw),h:0,d:-s,exactW:true};B.scale=G;B.offset=0.55*B.bbox.w;B.isMultiChar=true;this.setStackWidth(p,B.bbox.w)},extendDelimiterH:function(C,p,F,H,z){var s=this.createStack(C,true);var q=this.createBox(s),D=this.createBox(s);this.createChar(q,(F.left||F.rep),H,z);this.createChar(D,(F.right||F.rep),H,z);var m=this.Element("span");this.createChar(m,F.rep,H,z);var E={bbox:{h:-this.BIGDIMEN,d:-this.BIGDIMEN}},o;this.placeBox(q,-q.bbox.lw,0,true);var v=(q.bbox.rw-q.bbox.lw)+(D.bbox.rw-D.bbox.lw)-0.05,u=q.bbox.rw-q.bbox.lw-0.025,y;if(F.mid){E=this.createBox(s);this.createChar(E,F.mid,H,z);v+=E.bbox.w}if(F.min&&pv){var G=m.bbox.rw-m.bbox.lw,r=G-0.05,A,t,B=(F.mid?2:1);t=A=Math.min(Math.ceil((p-v)/(B*r)),this.maxStretchyParts);if(!F.fillExtenders){r=(p-v)/(B*A)}y=(A/(A+1))*(G-r);r=G-y;u-=m.bbox.lw+y;while(B-->0){while(A-->0){if(!this.cloneNodeBug){o=m.cloneNode(true)}else{o=this.Element("span");this.createChar(o,F.rep,H,z)}o.bbox=m.bbox;this.placeBox(this.addBox(s,o),u,0,true);u+=r}if(F.mid&&B){this.placeBox(E,u,0,true);u+=E.bbox.w-y;A=t}}}else{u-=(v-p)/2;if(F.mid){this.placeBox(E,u,0,true);u+=E.bbox.w}u-=(v-p)/2}this.placeBox(D,u,0,true);C.bbox={w:u+D.bbox.rw,lw:0,rw:u+D.bbox.rw,h:Math.max(q.bbox.h,m.bbox.h,D.bbox.h,E.bbox.h),d:Math.max(q.bbox.d,m.bbox.d,D.bbox.d,E.bbox.d),exactW:true};C.scale=H;C.isMultiChar=true;this.setStackWidth(s,C.bbox.w)},createChar:function(u,r,p,n){u.isMathJax=true;var t=u,v="",q={fonts:[r[1]],noRemap:true};if(n&&n===i.VARIANT.BOLD){q.fonts=[r[1]+"-bold",r[1]]}if(typeof(r[1])!=="string"){q=r[1]}if(r[0] instanceof Array){for(var s=0,o=r[0].length;s=55296&&y<56319){C++;y=(((y-55296)<<10)+(t.charCodeAt(C)-56320))+65536;if(this.FONTDATA.RemapPlane1){var F=this.FONTDATA.RemapPlane1(y,q);y=F.n;q=F.variant}}else{var v,s,w=this.FONTDATA.RANGES;for(v=0,s=w.length;v=w[v].low&&y<=w[v].high){if(w[v].remap&&w[v].remap[y]){y=r+w[v].remap[y]}else{y=y-w[v].low+r;if(w[v].add){y+=w[v].add}}if(q["variant"+w[v].offset]){q=this.FONTDATA.VARIANT[q["variant"+w[v].offset]]}break}}}if(q.remap&&q.remap[y]){y=q.remap[y];if(q.remap.variant){q=this.FONTDATA.VARIANT[q.remap.variant]}}else{if(this.FONTDATA.REMAP[y]&&!q.noRemap){y=this.FONTDATA.REMAP[y]}}if(h(y)){q=this.FONTDATA.VARIANT[y[1]];y=y[0]}if(typeof(y)==="string"){t=y+t.substr(C+1);z=t.length;C=-1;continue}u=this.lookupChar(q,y);D=u[y];if(p||(!this.checkFont(u,o.style)&&!D[5].img)){if(A.length){this.addText(o,A);A=""}var x=!!o.style.fontFamily||!!B.style.fontStyle||!!B.style.fontWeight||!u.directory||p;p=false;if(o!==B){x=!this.checkFont(u,B.style);o=B}if(x){o=this.addElement(B,"span",{isMathJax:true,subSpan:true})}this.handleFont(o,u,o!==B)}A=this.handleChar(o,u,D,y,A);if(!(D[5]||{}).space){if(D[0]/1000>B.bbox.h){B.bbox.h=D[0]/1000}if(D[1]/1000>B.bbox.d){B.bbox.d=D[1]/1000}}if(B.bbox.w+D[3]/1000B.bbox.rw){B.bbox.rw=B.bbox.w+D[4]/1000}B.bbox.w+=D[2]/1000;if((D[5]||{}).isUnknown){B.bbox.exactW=false}}if(A.length){this.addText(o,A)}if(B.scale&&B.scale!==1){B.bbox.h*=B.scale;B.bbox.d*=B.scale;B.bbox.w*=B.scale;B.bbox.lw*=B.scale;B.bbox.rw*=B.scale}if(t.length==1&&u.skew&&u.skew[y]){B.bbox.skew=u.skew[y]}},checkFont:function(m,n){var o=(n.fontWeight||"normal");if(o.match(/^\d+$/)){o=(parseInt(o)>=600?"bold":"normal")}return(m.family.replace(/'/g,"")===n.fontFamily.replace(/'/g,"")&&(m.style||"normal")===(n.fontStyle||"normal")&&(m.weight||"normal")===o)},handleFont:function(o,m,q){o.style.fontFamily=m.family;if(!m.directory){o.style.fontSize=Math.floor(d.config.scale/d.scale+0.5)+"%"}if(!(d.FontFaceBug&&m.isWebFont)){var n=m.style||"normal",p=m.weight||"normal";if(n!=="normal"||q){o.style.fontStyle=n}if(p!=="normal"||q){o.style.fontWeight=p}}},handleChar:function(o,m,u,t,s){var r=u[5];if(r.space){if(s.length){this.addText(o,s)}d.createShift(o,u[2]/1000);return""}if(r.img){return this.handleImg(o,m,u,t,s)}if(r.isUnknown&&this.FONTDATA.DELIMITERS[t]){if(s.length){this.addText(o,s)}var q=o.scale;d.createDelimiter(o,t,0,1,m);if(this.FONTDATA.DELIMITERS[t].dir==="V"){o.style.verticalAlign=this.Em(o.bbox.d);o.bbox.h+=o.bbox.d;o.bbox.d=0}o.scale=q;u[0]=o.bbox.h*1000;u[1]=o.bbox.d*1000;u[2]=o.bbox.w*1000;u[3]=o.bbox.lw*1000;u[4]=o.bbox.rw*1000;return""}if(r.c==null){if(t<=65535){r.c=String.fromCharCode(t)}else{var p=t-65536;r.c=String.fromCharCode((p>>10)+55296)+String.fromCharCode((p&1023)+56320)}}if(d.ffFontOptimizationBug&&u[4]-u[2]>125){o.style.textRendering="optimizeLegibility"}if(r.rfix){this.addText(o,s+r.c);d.createShift(o,r.rfix/1000);return""}if(u[2]||!this.msieAccentBug||s.length){return s+r.c}d.createShift(o,u[3]/1000);d.createShift(o,(u[4]-u[3])/1000);this.addText(o,r.c);d.createShift(o,-u[4]/1000);return""},handleImg:function(o,m,r,q,p){return p},lookupChar:function(r,u){var q,o;if(!r.FONTS){var t=this.FONTDATA.FONTS;var s=(r.fonts||this.FONTDATA.VARIANT.normal.fonts);if(!(s instanceof Array)){s=[s]}if(r.fonts!=s){r.fonts=s}r.FONTS=[];for(q=0,o=s.length;q=0;p--){if(o.Ranges[p][2]==q){o.Ranges.splice(p,1)}}this.loadFont(o.directory+"/"+q+".js")}}}},loadFont:function(n){var m=MathJax.Callback.Queue();m.Push(["Require",j,this.fontDir+"/"+n]);if(this.imgFonts){if(!MathJax.isPacked){n=n.replace(/\/([^\/]*)$/,d.imgPacked+"/$1")}m.Push(["Require",j,this.webfontDir+"/png/"+n])}b.RestartAfter(m.Push({}))},loadWebFont:function(m){m.available=m.isWebFont=true;if(d.FontFaceBug){m.family=m.name;if(d.msieFontCSSBug){m.family+="-Web"}}b.RestartAfter(this.Font.loadWebFont(m))},loadWebFontError:function(n,m){b.Startup.signal.Post("HTML-CSS Jax - disable web fonts");n.isWebFont=false;if(this.config.imageFont&&this.config.imageFont===this.fontInUse){this.imgFonts=true;b.Startup.signal.Post("HTML-CSS Jax - switch to image fonts");b.Startup.signal.Post("HTML-CSS Jax - using image fonts");e(["WebFontNotAvailable","Web-Fonts not available -- using image fonts instead"],null,3000);j.Require(this.directory+"/imageFonts.js",m)}else{this.allowWebFonts=false;m()}},Element:MathJax.HTML.Element,addElement:MathJax.HTML.addElement,TextNode:MathJax.HTML.TextNode,addText:MathJax.HTML.addText,ucMatch:MathJax.HTML.ucMatch,BIGDIMEN:10000000,ID:0,idPostfix:"",GetID:function(){this.ID++;return this.ID},MATHSPACE:{veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18},TeX:{x_height:0.430554,quad:1,num1:0.676508,num2:0.393732,num3:0.44373,denom1:0.685951,denom2:0.344841,sup1:0.412892,sup2:0.362892,sup3:0.288888,sub1:0.15,sub2:0.247217,sup_drop:0.386108,sub_drop:0.05,delim1:2.39,delim2:1,axis_height:0.25,rule_thickness:0.06,big_op_spacing1:0.111111,big_op_spacing2:0.166666,big_op_spacing3:0.2,big_op_spacing4:0.6,big_op_spacing5:0.1,scriptspace:0.1,nulldelimiterspace:0.12,delimiterfactor:901,delimitershortfall:0.3,min_rule_thickness:1.25},NBSP:"\u00A0",rfuzz:0});MathJax.Hub.Register.StartupHook("mml Jax Ready",function(){i=MathJax.ElementJax.mml;i.mbase.Augment({toHTML:function(q){q=this.HTMLcreateSpan(q);if(this.type!="mrow"){q=this.HTMLhandleSize(q)}for(var o=0,n=this.data.length;on.d){n.d=o.d}if(o.h>n.h){n.h=o.h}if(o.D!=null&&o.D>n.D){n.D=o.D}if(o.H!=null&&o.H>n.H){n.H=o.H}if(p.style.paddingLeft){n.w+=d.unEm(p.style.paddingLeft)*(p.scale||1)}if(n.w+o.lwn.rw){n.rw=n.w+o.rw}n.w+=o.w;if(p.style.paddingRight){n.w+=d.unEm(p.style.paddingRight)*(p.scale||1)}if(o.width){n.width=o.width;n.minWidth=o.minWidth}if(o.tw){n.tw=o.tw}if(o.ic){n.ic=o.ic}else{delete n.ic}if(n.exactW&&!o.exactW){n.exactW=o.exactW}},HTMLemptyBBox:function(m){m.h=m.d=m.H=m.D=m.rw=-d.BIGDIMEN;m.w=0;m.lw=d.BIGDIMEN;return m},HTMLcleanBBox:function(m){if(m.h===this.BIGDIMEN){m.h=m.d=m.H=m.D=m.w=m.rw=m.lw=0}if(m.D<=m.d){delete m.D}if(m.H<=m.h){delete m.H}},HTMLzeroBBox:function(){return{h:0,d:0,w:0,lw:0,rw:0}},HTMLcanStretch:function(n){if(this.isEmbellished()){var m=this.Core();if(m&&m!==this){return m.HTMLcanStretch(n)}}return false},HTMLstretchH:function(n,m){return this.HTMLspanElement()},HTMLstretchV:function(n,m,o){return this.HTMLspanElement()},HTMLnotEmpty:function(m){while(m){if((m.type!=="mrow"&&m.type!=="texatom")||m.data.length>1){return true}m=m.data[0]}return false},HTMLmeasureChild:function(o,m){if(this.data[o]){d.Measured(this.data[o].toHTML(m),m)}else{m.bbox=this.HTMLzeroBBox()}},HTMLboxChild:function(o,m){if(!this.data[o]){this.SetData(o,i.mrow())}return this.data[o].toHTML(m)},HTMLcreateSpan:function(m){if(this.spanID){var n=this.HTMLspanElement();if(n&&(n.parentNode===m||(n.parentNode||{}).parentNode===m)){while(n.firstChild){n.removeChild(n.firstChild)}n.bbox=this.HTMLzeroBBox();n.scale=1;n.isMultChar=n.HH=null;n.style.cssText="";return n}}if(this.href){m=d.addElement(m,"a",{href:this.href,isMathJax:true})}m=d.addElement(m,"span",{className:this.type,isMathJax:true});if(d.imgHeightBug){m.style.display="inline-block"}if(this["class"]){m.className+=" "+this["class"]}if(!this.spanID){this.spanID=d.GetID()}m.id=(this.id||"MathJax-Span-"+this.spanID)+d.idPostfix;m.bbox=this.HTMLzeroBBox();this.styles={};if(this.style){m.style.cssText=this.style;if(m.style.fontSize){this.mathsize=m.style.fontSize;m.style.fontSize=""}this.styles={border:d.getBorders(m),padding:d.getPadding(m)};if(this.styles.border){m.style.border=""}if(this.styles.padding){m.style.padding=""}}if(this.href){m.parentNode.bbox=m.bbox}this.HTMLaddAttributes(m);return m},HTMLaddAttributes:function(p){if(this.attrNames){var u=this.attrNames,q=i.nocopyAttributes,t=b.config.ignoreMMLattributes;var r=(this.type==="mstyle"?i.math.prototype.defaults:this.defaults);for(var o=0,n=u.length;o0){q+=2*B;w-=B}if(z>0){z+=2*B;m-=B}u=-q-w;if(v){u-=v.right;m-=v.bottom;t+=v.left;r+=v.right;C.h+=v.top;C.d+=v.bottom;C.w+=v.left+v.right;C.lw-=v.left;C.rw+=v.right}if(x){z+=x.top+x.bottom;q+=x.left+x.right;u-=x.right;m-=x.bottom;t+=x.left;r+=x.right;C.h+=x.top;C.d+=x.bottom;C.w+=x.left+x.right;C.lw-=x.left;C.rw+=x.right}if(r){y.style.paddingRight=d.Em(r)}var p=d.Element("span",{id:"MathJax-Color-"+this.spanID+d.idPostfix,isMathJax:true,style:{display:"inline-block",backgroundColor:A.mathbackground,width:d.Em(q),height:d.Em(z),verticalAlign:d.Em(m),marginLeft:d.Em(w),marginRight:d.Em(u)}});d.setBorders(p,v);if(C.width){p.style.width=C.width;p.style.marginRight="-"+C.width}if(d.msieInlineBlockAlignBug){p.style.position="relative";p.style.width=p.style.height=0;p.style.verticalAlign=p.style.marginLeft=p.style.marginRight="";p.style.border=p.style.padding="";if(v&&d.msieBorderWidthBug){z+=v.top+v.bottom;q+=v.left+v.right}p.style.width=d.Em(t+B);d.placeBox(d.addElement(p,"span",{noAdjust:true,isMathJax:true,style:{display:"inline-block",position:"absolute",overflow:"hidden",background:(A.mathbackground||"transparent"),width:d.Em(q),height:d.Em(z)}}),w,C.h+B);d.setBorders(p.firstChild,v)}y.parentNode.insertBefore(p,y);if(d.msieColorPositionBug){y.style.position="relative"}return p}return null},HTMLremoveColor:function(){var m=document.getElementById("MathJax-Color-"+this.spanID+d.idPostfix);if(m){m.parentNode.removeChild(m)}},HTMLhandleSpace:function(q){if(this.useMMLspacing){if(this.type!=="mo"){return}var o=this.getValues("scriptlevel","lspace","rspace");if(o.scriptlevel<=0||this.hasValue("lspace")||this.hasValue("rspace")){var n=this.HTMLgetMu(q);o.lspace=Math.max(0,d.length2em(o.lspace,n));o.rspace=Math.max(0,d.length2em(o.rspace,n));var m=this,p=this.Parent();while(p&&p.isEmbellished()&&p.Core()===m){m=p;p=p.Parent();q=m.HTMLspanElement()}if(o.lspace){q.style.paddingLeft=d.Em(o.lspace)}if(o.rspace){q.style.paddingRight=d.Em(o.rspace)}}}else{var r=this.texSpacing();if(r!==""){this.HTMLgetScale();r=d.length2em(r,this.scale)/(q.scale||1)*this.mscale;if(q.style.paddingLeft){r+=d.unEm(q.style.paddingLeft)}q.style.paddingLeft=d.Em(r)}}},HTMLgetScale:function(){if(this.scale){return this.scale*this.mscale}var o=1,m=this.getValues("scriptlevel","fontsize");m.mathsize=(this.isToken?this:this.Parent()).Get("mathsize");if(this.style){var n=this.HTMLspanElement();if(n.style.fontSize!=""){m.fontsize=n.style.fontSize}}if(m.fontsize&&!this.mathsize){m.mathsize=m.fontsize}if(m.scriptlevel!==0){if(m.scriptlevel>2){m.scriptlevel=2}o=Math.pow(this.Get("scriptsizemultiplier"),m.scriptlevel);m.scriptminsize=d.length2em(this.Get("scriptminsize"));if(o2){n.scriptlevel=2}m=Math.sqrt(Math.pow(n.scriptsizemultiplier,n.scriptlevel))}return m},HTMLgetVariant:function(){var m=this.getValues("mathvariant","fontfamily","fontweight","fontstyle");m.hasVariant=this.Get("mathvariant",true);if(!m.hasVariant){m.family=m.fontfamily;m.weight=m.fontweight;m.style=m.fontstyle}if(this.style){var o=this.HTMLspanElement();if(!m.family&&o.style.fontFamily){m.family=o.style.fontFamily}if(!m.weight&&o.style.fontWeight){m.weight=o.style.fontWeight}if(!m.style&&o.style.fontStyle){m.style=o.style.fontStyle}}if(m.weight&&m.weight.match(/^\d+$/)){m.weight=(parseInt(m.weight)>600?"bold":"normal")}var n=m.mathvariant;if(this.variantForm){n="-"+d.fontInUse+"-variant"}if(m.family&&!m.hasVariant){if(!m.weight&&m.mathvariant.match(/bold/)){m.weight="bold"}if(!m.style&&m.mathvariant.match(/italic/)){m.style="italic"}return{FONTS:[],fonts:[],noRemap:true,defaultFont:{family:m.family,style:m.style,weight:m.weight}}}if(m.weight==="bold"){n={normal:i.VARIANT.BOLD,italic:i.VARIANT.BOLDITALIC,fraktur:i.VARIANT.BOLDFRAKTUR,script:i.VARIANT.BOLDSCRIPT,"sans-serif":i.VARIANT.BOLDSANSSERIF,"sans-serif-italic":i.VARIANT.SANSSERIFBOLDITALIC}[n]||n}else{if(m.weight==="normal"){n={bold:i.VARIANT.normal,"bold-italic":i.VARIANT.ITALIC,"bold-fraktur":i.VARIANT.FRAKTUR,"bold-script":i.VARIANT.SCRIPT,"bold-sans-serif":i.VARIANT.SANSSERIF,"sans-serif-bold-italic":i.VARIANT.SANSSERIFITALIC}[n]||n}}if(m.style==="italic"){n={normal:i.VARIANT.ITALIC,bold:i.VARIANT.BOLDITALIC,"sans-serif":i.VARIANT.SANSSERIFITALIC,"bold-sans-serif":i.VARIANT.SANSSERIFBOLDITALIC}[n]||n}else{if(m.style==="normal"){n={italic:i.VARIANT.NORMAL,"bold-italic":i.VARIANT.BOLD,"sans-serif-italic":i.VARIANT.SANSSERIF,"sans-serif-bold-italic":i.VARIANT.BOLDSANSSERIF}[n]||n}}if(!(n in d.FONTDATA.VARIANT)){n="normal"}return d.FONTDATA.VARIANT[n]},HTMLdrawBBox:function(m){var o=m.bbox;var n=d.Element("span",{style:{"font-size":m.style.fontSize,display:"inline-block",opacity:0.25,"margin-left":d.Em(-o.w)}},[["span",{style:{height:d.Em(o.h),width:d.Em(o.w),"background-color":"red",display:"inline-block"}}],["span",{style:{height:d.Em(o.d),width:d.Em(o.w),"margin-left":d.Em(-o.w),"vertical-align":d.Em(-o.d),"background-color":"green",display:"inline-block"}}]]);if(m.nextSibling){m.parentNode.insertBefore(n,m.nextSibling)}else{m.parentNode.appendChild(n)}}},{HTMLautoload:function(){var m=d.autoloadDir+"/"+this.type+".js";b.RestartAfter(j.Require(m))},HTMLautoloadFile:function(m){var n=d.autoloadDir+"/"+m+".js";b.RestartAfter(j.Require(n))},HTMLstretchH:function(n,m){this.HTMLremoveColor();return this.toHTML(n,m)},HTMLstretchV:function(n,m,o){this.HTMLremoveColor();return this.toHTML(n,m,o)}});i.chars.Augment({toHTML:function(p,o,n,q){var t=this.data.join("").replace(/[\u2061-\u2064]/g,"");if(n){t=n(t,q)}if(o.fontInherit){var s=Math.floor(d.config.scale/d.scale+0.5)+"%";d.addElement(p,"span",{style:{"font-size":s}},[t]);if(o.bold){p.lastChild.style.fontWeight="bold"}if(o.italic){p.lastChild.style.fontStyle="italic"}p.bbox=null;var r=d.getHD(p),m=d.getW(p);p.bbox={h:r.h,d:r.d,w:m,lw:0,rw:m,exactW:true}}else{this.HTMLhandleVariant(p,o,t)}}});i.entity.Augment({toHTML:function(p,o,n,q){var t=this.toString().replace(/[\u2061-\u2064]/g,"");if(n){t=n(t,q)}if(o.fontInherit){var s=Math.floor(d.config.scale/d.scale+0.5)+"%";d.addElement(p,"span",{style:{"font-size":s}},[t]);if(o.bold){p.lastChild.style.fontWeight="bold"}if(o.italic){p.lastChild.style.fontStyle="italic"}delete p.bbox;var r=d.getHD(p),m=d.getW(p);p.bbox={h:r.h,d:r.d,w:m,lw:0,rw:m,exactW:true}}else{this.HTMLhandleVariant(p,o,t)}}});i.mi.Augment({toHTML:function(q){q=this.HTMLhandleSize(this.HTMLcreateSpan(q));q.bbox=null;var p=this.HTMLgetVariant();for(var o=0,n=this.data.length;or.w&&s.length===1&&!p.noIC){r.ic=r.rw-r.w;d.createBlank(q,r.ic/this.mscale);r.w=r.rw}this.HTMLhandleSpace(q);this.HTMLhandleColor(q);this.HTMLhandleDir(q);return q}});i.mn.Augment({HTMLremapMinus:function(m){return m.replace(/^-/,"\u2212")},toHTML:function(r){r=this.HTMLhandleSize(this.HTMLcreateSpan(r));r.bbox=null;var q=this.HTMLgetVariant();var p=this.HTMLremapMinus;for(var o=0,n=this.data.length;ox.bbox.w){x.bbox.ic=x.bbox.rw-x.bbox.w;d.createBlank(x,x.bbox.ic/this.mscale);x.bbox.w=x.bbox.rw}}this.HTMLhandleSpace(x);this.HTMLhandleColor(x);this.HTMLhandleDir(x);return x},HTMLcanStretch:function(q){if(!this.Get("stretchy")){return false}var r=this.data.join("");if(r.length>1){return false}var o=this.CoreParent();if(o&&o.isa(i.munderover)&&this.CoreText(o.data[o.base]).length===1){var p=o.data[o.over],n=o.data[o.under];if(p&&this===p.CoreMO()&&o.Get("accent")){r=d.FONTDATA.REMAPACCENT[r]||r}else{if(n&&this===n.CoreMO()&&o.Get("accentunder")){r=d.FONTDATA.REMAPACCENTUNDER[r]||r}}}r=d.FONTDATA.DELIMITERS[r.charCodeAt(0)];var m=(r&&r.dir===q.substr(0,1));this.forceStretch=(m&&(this.Get("minsize",true)||this.Get("maxsize",true)));return m},HTMLstretchV:function(o,p,q){this.HTMLremoveColor();var t=this.getValues("symmetric","maxsize","minsize");var r=this.HTMLspanElement(),u=this.HTMLgetMu(r),s;var n=this.HTMLgetScale(),m=d.TeX.axis_height*n;if(t.symmetric){s=2*Math.max(p-m,q+m)}else{s=p+q}t.maxsize=d.length2em(t.maxsize,u,r.bbox.h+r.bbox.d);t.minsize=d.length2em(t.minsize,u,r.bbox.h+r.bbox.d);s=Math.max(t.minsize,Math.min(t.maxsize,s));if(s!=t.minsize){s=[Math.max(s*d.TeX.delimiterfactor/1000,s-d.TeX.delimitershortfall),s]}r=this.HTMLcreateSpan(o);d.createDelimiter(r,this.data.join("").charCodeAt(0),s,n);if(t.symmetric){s=(r.bbox.h+r.bbox.d)/2+m}else{s=(r.bbox.h+r.bbox.d)*p/(p+q)}d.positionDelimiter(r,s);this.HTMLhandleSpace(r);this.HTMLhandleColor(r);return r},HTMLstretchH:function(q,m){this.HTMLremoveColor();var o=this.getValues("maxsize","minsize","mathvariant","fontweight");if((o.fontweight==="bold"||parseInt(o.fontweight)>=600)&&!this.Get("mathvariant",true)){o.mathvariant=i.VARIANT.BOLD}var p=this.HTMLspanElement(),n=this.HTMLgetMu(p),r=p.scale;o.maxsize=d.length2em(o.maxsize,n,p.bbox.w);o.minsize=d.length2em(o.minsize,n,p.bbox.w);m=Math.max(o.minsize,Math.min(o.maxsize,m));p=this.HTMLcreateSpan(q);d.createDelimiter(p,this.data.join("").charCodeAt(0),m,r,o.mathvariant);this.HTMLhandleSpace(p);this.HTMLhandleColor(p);return p}});i.mtext.Augment({toHTML:function(q){q=this.HTMLhandleSize(this.HTMLcreateSpan(q));var p=this.HTMLgetVariant();if(d.config.mtextFontInherit||this.Parent().type==="merror"){var r=this.Get("mathvariant");if(r==="monospace"){q.className+=" MJX-monospace"}else{if(r.match(/sans-serif/)){q.className+=" MJX-sans-serif"}}p={bold:p.bold,italic:p.italic,fontInherit:true}}for(var o=0,n=this.data.length;od.linebreakWidth)||this.hasNewline()},HTMLstretchH:function(o,m){this.HTMLremoveColor();var n=this.HTMLspanElement();this.data[this.core].HTMLstretchH(n,m);this.HTMLcomputeBBox(n,true);this.HTMLhandleColor(n);return n},HTMLstretchV:function(o,n,p){this.HTMLremoveColor();var m=this.HTMLspanElement();this.data[this.core].HTMLstretchV(m,n,p);this.HTMLcomputeBBox(m,true);this.HTMLhandleColor(m);return m}});i.mstyle.Augment({toHTML:function(n,m,o){n=this.HTMLcreateSpan(n);if(this.data[0]!=null){var p=this.data[0].toHTML(n);if(o!=null){this.data[0].HTMLstretchV(n,m,o)}else{if(m!=null){this.data[0].HTMLstretchH(n,m)}}n.bbox=p.bbox}this.HTMLhandleSpace(n);this.HTMLhandleColor(n);return n},HTMLstretchH:i.mbase.HTMLstretchH,HTMLstretchV:i.mbase.HTMLstretchV});i.mfrac.Augment({toHTML:function(F){F=this.HTMLcreateSpan(F);var o=d.createStack(F);var w=d.createBox(o),s=d.createBox(o);d.MeasureSpans([this.HTMLboxChild(0,w),this.HTMLboxChild(1,s)]);var m=this.getValues("displaystyle","linethickness","numalign","denomalign","bevelled");var K=this.HTMLgetScale(),E=m.displaystyle;var J=d.TeX.axis_height*K;if(m.bevelled){var I=(E?0.4:0.15);var x=Math.max(w.bbox.h+w.bbox.d,s.bbox.h+s.bbox.d)+2*I;var G=d.createBox(o);d.createDelimiter(G,47,x);d.placeBox(w,0,(w.bbox.d-w.bbox.h)/2+J+I);d.placeBox(G,w.bbox.w-I/2,(G.bbox.d-G.bbox.h)/2+J);d.placeBox(s,w.bbox.w+G.bbox.w-I,(s.bbox.d-s.bbox.h)/2+J-I)}else{var n=Math.max(w.bbox.w,s.bbox.w);var A=d.thickness2em(m.linethickness,this.scale)*this.mscale,C,B,z,y;var D=d.TeX.min_rule_thickness/this.em;if(E){z=d.TeX.num1;y=d.TeX.denom1}else{z=(A===0?d.TeX.num3:d.TeX.num2);y=d.TeX.denom2}z*=K;y*=K;if(A===0){C=Math.max((E?7:3)*d.TeX.rule_thickness,2*D);B=(z-w.bbox.d)-(s.bbox.h-y);if(BA){n=((v.bbox.h+v.bbox.d)-(A-C))/2}var D=d.FONTDATA.DELIMITERS[d.FONTDATA.RULECHAR];if(!D||s<(D.HW[0]||[0])[0]*u||u<0.75){d.createRule(w,0,C,s);w.bbox.h=-C}else{d.createDelimiter(w,d.FONTDATA.RULECHAR,s,u)}A=m.bbox.h+n+C;n=A*d.rfuzz;if(v.isMultiChar){n=d.rfuzz}y=this.HTMLaddRoot(B,v,y,v.bbox.h+v.bbox.d-A,u);d.placeBox(v,y,A-v.bbox.h);d.placeBox(w,y+v.bbox.w,A-w.bbox.h+n);d.placeBox(r,y+v.bbox.w,0);this.HTMLhandleSpace(z);this.HTMLhandleColor(z);return z},HTMLaddRoot:function(o,n,m,q,p){return m}});i.mroot.Augment({toHTML:i.msqrt.prototype.toHTML,HTMLaddRoot:function(u,n,s,q,m){var o=d.createBox(u);if(this.data[1]){var r=this.data[1].toHTML(o);r.style.paddingRight=r.style.paddingLeft="";d.Measured(r,o)}else{o.bbox=this.HTMLzeroBBox()}var p=this.HTMLrootHeight(n.bbox.h+n.bbox.d,m,o)-q;var t=Math.min(o.bbox.w,o.bbox.rw);s=Math.max(t,n.offset);d.placeBox(o,s-t,p);return s-n.offset},HTMLrootHeight:function(o,n,m){return 0.45*(o-0.9*n)+0.6*n+Math.max(0,m.bbox.d-0.075)}});i.mfenced.Augment({toHTML:function(q){q=this.HTMLcreateSpan(q);if(this.data.open){this.data.open.toHTML(q)}if(this.data[0]!=null){this.data[0].toHTML(q)}for(var o=1,n=this.data.length;oL){L=s[N].bbox.w}if(!O[N]&&L>o){o=L}}}if(G==null&&I!=null){o=I}else{if(o==-d.BIGDIMEN){o=L}}for(N=L=0,J=this.data.length;NL){L=z.bbox.w}}}var F=d.TeX.rule_thickness*this.mscale,H=d.FONTDATA.TeX_factor;var w,u,B,A,v,E,K,P=0;q=s[this.base]||{bbox:this.HTMLzeroBBox()};if(q.bbox.ic){P=1.3*q.bbox.ic+0.05}for(N=0,J=this.data.length;NL){M.bbox.skew+=(L-z.bbox.w-w)/2}}}else{B=d.TeX.big_op_spacing1*Q*H;A=d.TeX.big_op_spacing3*Q*H;K=Math.max(B,A-Math.max(0,z.bbox.d))}K=Math.max(K,1.5/this.em);w+=P/2;u=q.bbox.h+z.bbox.d+K;z.bbox.h+=v}else{if(N==this.under){if(C){K=3*F*Q*H;v=0}else{B=d.TeX.big_op_spacing2*Q*H;A=d.TeX.big_op_spacing4*Q*H;K=Math.max(B,A-z.bbox.h)}K=Math.max(K,1.5/this.em);w-=P/2;u=-(q.bbox.d+z.bbox.h+K);z.bbox.d+=v}}d.placeBox(z,w,u)}}this.HTMLhandleSpace(M);this.HTMLhandleColor(M);return M},HTMLstretchH:i.mbase.HTMLstretchH,HTMLstretchV:i.mbase.HTMLstretchV});i.msubsup.Augment({toHTML:function(M,K,F){M=this.HTMLcreateSpan(M);var P=this.HTMLgetScale(),J=this.HTMLgetMu(M);var y=d.createStack(M),n,w=[];var x=d.createBox(y);if(this.data[this.base]){w.push(this.data[this.base].toHTML(x));if(F!=null){this.data[this.base].HTMLstretchV(x,K,F)}else{if(K!=null){this.data[this.base].HTMLstretchH(x,K)}}}else{x.bbox=this.HTMLzeroBBox()}var N=d.TeX.x_height*P,E=d.TeX.scriptspace*P*0.75;var m,z;if(this.HTMLnotEmpty(this.data[this.sup])){m=d.createBox(y);w.push(this.data[this.sup].toHTML(m))}if(this.HTMLnotEmpty(this.data[this.sub])){z=d.createBox(y);w.push(this.data[this.sub].toHTML(z))}d.MeasureSpans(w);if(m){m.bbox.w+=E;m.bbox.rw=Math.max(m.bbox.w,m.bbox.rw)}if(z){z.bbox.w+=E;z.bbox.rw=Math.max(z.bbox.w,z.bbox.rw)}d.placeBox(x,0,0);var o=P;if(m){o=this.data[this.sup].HTMLgetScale()}else{if(z){o=this.data[this.sub].HTMLgetScale()}}var H=d.TeX.sup_drop*o,G=d.TeX.sub_drop*o;var B=x.bbox.h-H,A=x.bbox.d+G,O=0,I;if(x.bbox.ic){x.bbox.w-=x.bbox.ic;O=1.3*x.bbox.ic+0.05}if(this.data[this.base]&&K==null&&F==null&&(this.data[this.base].type==="mi"||this.data[this.base].type==="mo")){if(this.data[this.base].data.join("").length===1&&w[0].scale===1&&!this.data[this.base].Get("largeop")){B=A=0}}var L=this.getValues("subscriptshift","superscriptshift");L.subscriptshift=(L.subscriptshift===""?0:d.length2em(L.subscriptshift,J));L.superscriptshift=(L.superscriptshift===""?0:d.length2em(L.superscriptshift,J));if(!m){if(z){A=Math.max(A,d.TeX.sub1*P,z.bbox.h-(4/5)*N,L.subscriptshift);d.placeBox(z,x.bbox.w,-A,z.bbox)}}else{if(!z){n=this.getValues("displaystyle","texprimestyle");I=d.TeX[(n.displaystyle?"sup1":(n.texprimestyle?"sup3":"sup2"))];B=Math.max(B,I*P,m.bbox.d+(1/4)*N,L.superscriptshift);d.placeBox(m,x.bbox.w+O,B,m.bbox)}else{A=Math.max(A,d.TeX.sub2*P);var C=d.TeX.rule_thickness*P;if((B-m.bbox.d)-(z.bbox.h-A)<3*C){A=3*C-B+m.bbox.d+z.bbox.h;H=(4/5)*N-(B-m.bbox.d);if(H>0){B+=H;A-=H}}d.placeBox(m,x.bbox.w+O,Math.max(B,L.superscriptshift));d.placeBox(z,x.bbox.w,-Math.max(A,L.subscriptshift))}}this.HTMLhandleSpace(M);this.HTMLhandleColor(M);return M},HTMLstretchH:i.mbase.HTMLstretchH,HTMLstretchV:i.mbase.HTMLstretchV});i.mmultiscripts.Augment({toHTML:i.mbase.HTMLautoload});i.mtable.Augment({toHTML:i.mbase.HTMLautoload});i["annotation-xml"].Augment({toHTML:i.mbase.HTMLautoload});i.annotation.Augment({toHTML:function(m){return this.HTMLcreateSpan(m)}});i.math.Augment({toHTML:function(E,B,t){var u,w,x,r,m=E;if(!t||t===d.PHASE.I){var C=d.addElement(E,"nobr",{isMathJax:true});E=this.HTMLcreateSpan(C);var n=this.Get("alttext");if(n&&!E.getAttribute("aria-label")){E.setAttribute("aria-label",n)}u=d.createStack(E);w=d.createBox(u);u.style.fontSize=C.parentNode.style.fontSize;C.parentNode.style.fontSize="";if(this.data[0]!=null){i.mbase.prototype.displayAlign=b.config.displayAlign;i.mbase.prototype.displayIndent=b.config.displayIndent;if(String(b.config.displayIndent).match(/^0($|[a-z%])/i)){i.mbase.prototype.displayIndent="0"}x=this.data[0].toHTML(w);x.bbox.exactW=false}}else{E=E.firstChild.firstChild;if(this.href){E=E.firstChild}u=E.firstChild;if(u.style.position!=="relative"){u=u.nextSibling}w=u.firstChild;x=w.firstChild}r=((!t||t===d.PHASE.II)?d.Measured(x,w):x);if(!t||t===d.PHASE.III){d.placeBox(w,0,0);var q=r.bbox.w;q=Math.abs(q)<0.006?0:Math.max(0,Math.round(q*this.em)+0.25);E.style.width=d.EmRounded(q/d.outerEm);E.style.display="inline-block";var A=1/d.em,G=d.em/d.outerEm;d.em/=G;E.bbox.h*=G;E.bbox.d*=G;E.bbox.w*=G;E.bbox.lw*=G;E.bbox.rw*=G;if(E.bbox.H){E.bbox.H*=G}if(E.bbox.D){E.bbox.D*=G}if(r&&r.bbox.width!=null){E.style.minWidth=(r.bbox.minWidth||E.style.width);E.style.width=r.bbox.width;w.style.width=u.style.width="100%";m.className+=" MathJax_FullWidth"}var D=this.HTMLhandleColor(E);if(r){d.createRule(E,(r.bbox.h+A)*G,(r.bbox.d+A)*G,0)}if(!this.isMultiline&&this.Get("display")==="block"&&E.bbox.width==null){var o=this.getValues("indentalignfirst","indentshiftfirst","indentalign","indentshift");if(o.indentalignfirst!==i.INDENTALIGN.INDENTALIGN){o.indentalign=o.indentalignfirst}if(o.indentalign===i.INDENTALIGN.AUTO){o.indentalign=this.displayAlign}if(o.indentshiftfirst!==i.INDENTSHIFT.INDENTSHIFT){o.indentshift=o.indentshiftfirst}if(o.indentshift==="auto"){o.indentshift="0"}var F=d.length2em(o.indentshift,1,d.scale*d.cwidth);if(this.displayIndent!=="0"){var y=d.length2em(this.displayIndent,1,d.scale*d.cwidth);F+=(o.indentalign===i.INDENTALIGN.RIGHT?-y:y)}m.style.textAlign=B.style.textAlign=o.indentalign;if(F){b.Insert(E.style,({left:{marginLeft:d.Em(F)},right:{marginRight:d.Em(-F)},center:{marginLeft:d.Em(F),marginRight:d.Em(-F)}})[o.indentalign]);if(D){var v=parseFloat(D.style.marginLeft||"0")+F,s=parseFloat(D.style.marginRight||"0")-F;D.style.marginLeft=d.Em(v);D.style.marginRight=d.Em(s+(o.indentalign==="right"?E.bbox.w+F-E.bbox.w:0));if(d.msieColorBug&&o.indentalign==="right"){if(parseFloat(D.style.marginLeft)>0){var z=MathJax.HTML.addElement(D.parentNode,"span");z.style.marginLeft=d.Em(s+Math.min(0,E.bbox.w+F));D.nextSibling.style.marginRight="0em"}D.nextSibling.style.marginLeft="0em";D.style.marginRight=D.style.marginLeft="0em"}}}}}return E},HTMLspanElement:i.mbase.prototype.HTMLspanElement});i.TeXAtom.Augment({toHTML:function(q,o,s){q=this.HTMLcreateSpan(q);if(this.data[0]!=null){if(this.texClass===i.TEXCLASS.VCENTER){var m=d.createStack(q);var r=d.createBox(m);var t=this.data[0].toHTML(r);if(s!=null){d.Remeasured(this.data[0].HTMLstretchV(r,o,s),r)}else{if(o!=null){d.Remeasured(this.data[0].HTMLstretchH(r,o),r)}else{d.Measured(t,r)}}var n=d.TeX.axis_height*this.HTMLgetScale();d.placeBox(r,0,n-(r.bbox.h+r.bbox.d)/2+r.bbox.d)}else{var p=this.data[0].toHTML(q,o,s);if(s!=null){p=this.data[0].HTMLstretchV(r,o,s)}else{if(o!=null){p=this.data[0].HTMLstretchH(r,o)}}q.bbox=p.bbox}}this.HTMLhandleSpace(q);this.HTMLhandleColor(q);return q},HTMLstretchH:i.mbase.HTMLstretchH,HTMLstretchV:i.mbase.HTMLstretchV});b.Register.StartupHook("onLoad",function(){setTimeout(MathJax.Callback(["loadComplete",d,"jax.js"]),0)})});b.Register.StartupHook("End Config",function(){b.Browser.Select({MSIE:function(m){var q=(document.documentMode||0);var p=m.versionAtLeast("7.0");var o=m.versionAtLeast("8.0")&&q>7;var n=(document.compatMode==="BackCompat");if(q<9){d.config.styles[".MathJax .MathJax_HitBox"]["background-color"]="white";d.config.styles[".MathJax .MathJax_HitBox"].opacity=0;d.config.styles[".MathJax .MathJax_HitBox"].filter="alpha(opacity=0)"}d.Augment({PaddingWidthBug:true,msieAccentBug:true,msieColorBug:(q<8),msieColorPositionBug:true,msieRelativeWidthBug:n,msieDisappearingBug:(q>=8),msieMarginScaleBug:(q<8),msiePaddingWidthBug:true,msieBorderWidthBug:n,msieFrameSizeBug:(q<=8),msieInlineBlockAlignBug:(!o||n),msiePlaceBoxBug:(o&&!n),msieClipRectBug:!o,msieNegativeSpaceBug:n,msieRuleBug:(q<7),cloneNodeBug:(o&&m.version==="8.0"),msieItalicWidthBug:true,initialSkipBug:(q<8),msieNegativeBBoxBug:(q>=8),msieIE6:!p,msieItalicWidthBug:true,FontFaceBug:(q<9),msieFontCSSBug:m.isIE9,allowWebFonts:(q>=9?"woff":"eot")})},Firefox:function(n){var o=false;if(n.versionAtLeast("3.5")){var m=String(document.location).replace(/[^\/]*$/,"");if(document.location.protocol!=="file:"||b.config.root.match(/^https?:\/\//)||(b.config.root+"/").substr(0,m.length)===m){o="otf"}}d.Augment({ffVerticalAlignBug:!n.versionAtLeast("20.0"),AccentBug:true,allowWebFonts:o,ffFontOptimizationBug:true})},Safari:function(r){var p=r.versionAtLeast("3.0");var o=r.versionAtLeast("3.1");var m=navigator.appVersion.match(/ Safari\/\d/)&&navigator.appVersion.match(/ Version\/\d/)&&navigator.vendor.match(/Apple/);var n=(navigator.appVersion.match(/ Android (\d+)\.(\d+)/));var s=(o&&r.isMobile&&((navigator.platform.match(/iPad|iPod|iPhone/)&&!r.versionAtLeast("5.0"))||(n!=null&&(n[1]<2||(n[1]==2&&n[2]<2)))));d.Augment({config:{styles:{".MathJax img, .MathJax nobr, .MathJax a":{"max-width":"5000em","max-height":"5000em"}}},Em:((r.webkit||0)>=538?d.EmRounded:d.Em),rfuzz:0.011,AccentBug:true,AdjustSurd:true,negativeBBoxes:true,safariNegativeSpaceBug:true,safariVerticalAlignBug:!o,safariTextNodeBug:!p,forceReflow:true,FontFaceBug:true,allowWebFonts:(o&&!s?"otf":false)});if(m){d.Augment({webFontDefault:(r.isMobile?"sans-serif":"serif")})}if(r.isPC){d.Augment({adjustAvailableFonts:d.removeSTIXfonts,checkWebFontsTwice:true})}if(s){var q=b.config["HTML-CSS"];if(q){q.availableFonts=[];q.preferredFont=null}else{b.config["HTML-CSS"]={availableFonts:[],preferredFont:null}}}},Chrome:function(m){d.Augment({Em:d.EmRounded,cloneNodeBug:true,rfuzz:-0.02,AccentBug:true,AdjustSurd:true,FontFaceBug:m.versionAtLeast("32.0"),negativeBBoxes:true,safariNegativeSpaceBug:true,safariWebFontSerif:[""],forceReflow:true,allowWebFonts:(m.versionAtLeast("4.0")?"otf":"svg")})},Opera:function(m){m.isMini=(navigator.appVersion.match("Opera Mini")!=null);d.config.styles[".MathJax .merror"]["vertical-align"]=null;d.config.styles[".MathJax span"]["z-index"]=0;d.Augment({operaHeightBug:true,operaVerticalAlignBug:true,operaFontSizeBug:m.versionAtLeast("10.61"),initialSkipBug:true,FontFaceBug:true,PaddingWidthBug:true,allowWebFonts:(m.versionAtLeast("10.0")&&!m.isMini?"otf":false),adjustAvailableFonts:d.removeSTIXfonts})},Konqueror:function(m){d.Augment({konquerorVerticalAlignBug:true})}})});MathJax.Hub.Register.StartupHook("End Cookie",function(){if(b.config.menuSettings.zoom!=="None"){j.Require("[MathJax]/extensions/MathZoom.js")}})})(MathJax.Ajax,MathJax.Hub,MathJax.OutputJax["HTML-CSS"]); diff --git a/qt/aqt/deckbrowser.py b/qt/aqt/deckbrowser.py index fcb8d58e0..00f63f2e0 100644 --- a/qt/aqt/deckbrowser.py +++ b/qt/aqt/deckbrowser.py @@ -1,7 +1,6 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations from copy import deepcopy @@ -9,14 +8,13 @@ from dataclasses import dataclass import aqt from anki.errors import DeckRenameError -from anki.lang import _, ngettext from anki.rsbackend import TR, DeckTreeNode from anki.utils import ids2str from aqt import AnkiQt, gui_hooks from aqt.qt import * from aqt.sound import av_player from aqt.toolbar import BottomBar -from aqt.utils import askUser, getOnlyText, openLink, shortcut, showWarning, tr +from aqt.utils import TR, askUser, getOnlyText, openLink, shortcut, showWarning, tr class DeckBrowserBottomBar: @@ -79,7 +77,7 @@ class DeckBrowser: elif cmd == "import": self.mw.onImport() elif cmd == "create": - deck = getOnlyText(_("Name for deck:")) + deck = getOnlyText(tr(TR.DECKS_NAME_FOR_DECK)) if deck: self.mw.col.decks.id(deck) gui_hooks.sidebar_should_refresh_decks() @@ -144,9 +142,9 @@ class DeckBrowser: buf = """ %s%s %s""" % ( - _("Deck"), + tr(TR.DECKS_DECK), tr(TR.STATISTICS_DUE_COUNT), - _("New"), + tr(TR.ACTIONS_NEW), ) buf += self._topLevelDragRow() @@ -225,13 +223,13 @@ class DeckBrowser: def _showOptions(self, did: str) -> None: m = QMenu(self.mw) - a = m.addAction(_("Rename")) + a = m.addAction(tr(TR.ACTIONS_RENAME)) qconnect(a.triggered, lambda b, did=did: self._rename(int(did))) - a = m.addAction(_("Options")) + a = m.addAction(tr(TR.ACTIONS_OPTIONS)) qconnect(a.triggered, lambda b, did=did: self._options(did)) - a = m.addAction(_("Export")) + a = m.addAction(tr(TR.ACTIONS_EXPORT)) qconnect(a.triggered, lambda b, did=did: self._export(did)) - a = m.addAction(_("Delete")) + a = m.addAction(tr(TR.ACTIONS_DELETE)) qconnect(a.triggered, lambda b, did=did: self._delete(int(did))) gui_hooks.deck_browser_will_show_options_menu(m, int(did)) m.exec_(QCursor.pos()) @@ -240,10 +238,10 @@ class DeckBrowser: self.mw.onExport(did=did) def _rename(self, did: int) -> None: - self.mw.checkpoint(_("Rename Deck")) + self.mw.checkpoint(tr(TR.ACTIONS_RENAME_DECK)) deck = self.mw.col.decks.get(did) oldName = deck["name"] - newName = getOnlyText(_("New deck name:"), default=oldName) + newName = getOnlyText(tr(TR.DECKS_NEW_DECK_NAME), default=oldName) newName = newName.replace('"', "") if not newName or newName == oldName: return @@ -277,7 +275,7 @@ class DeckBrowser: self.show() def _delete(self, did): - self.mw.checkpoint(_("Delete Deck")) + self.mw.checkpoint(tr(TR.DECKS_DELETE_DECK)) deck = self.mw.col.decks.get(did) if not deck["dyn"]: dids = [did] + [r[1] for r in self.mw.col.decks.children(did)] @@ -286,14 +284,14 @@ class DeckBrowser: "odid in {0}".format(ids2str(dids)) ) if cnt: - extra = ngettext(" It has %d card.", " It has %d cards.", cnt) % cnt + extra = tr(TR.DECKS_IT_HAS_CARD, count=cnt) else: extra = None if ( deck["dyn"] or not extra or askUser( - (_("Are you sure you wish to delete %s?") % deck["name"]) + extra + (tr(TR.DECKS_ARE_YOU_SURE_YOU_WISH_TO, val=deck["name"])) + extra ) ): self.mw.progress.start() @@ -305,9 +303,9 @@ class DeckBrowser: ###################################################################### drawLinks = [ - ["", "shared", _("Get Shared")], - ["", "create", _("Create Deck")], - ["Ctrl+Shift+I", "import", _("Import File")], + ["", "shared", tr(TR.DECKS_GET_SHARED)], + ["", "create", tr(TR.DECKS_CREATE_DECK)], + ["Ctrl+Shift+I", "import", tr(TR.DECKS_IMPORT_FILE)], ] def _drawButtons(self): @@ -315,7 +313,7 @@ class DeckBrowser: drawLinks = deepcopy(self.drawLinks) for b in drawLinks: if b[0]: - b[0] = _("Shortcut key: %s") % shortcut(b[0]) + b[0] = tr(TR.ACTIONS_SHORTCUT_KEY, val=shortcut(b[0])) buf += """ """ % tuple( b diff --git a/qt/aqt/deckchooser.py b/qt/aqt/deckchooser.py index ef8a3e064..e5e2139e7 100644 --- a/qt/aqt/deckchooser.py +++ b/qt/aqt/deckchooser.py @@ -1,13 +1,11 @@ # -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from typing import Any -from anki.lang import _ from aqt import AnkiQt, gui_hooks from aqt.qt import * -from aqt.utils import shortcut +from aqt.utils import TR, shortcut, tr class DeckChooser(QHBoxLayout): @@ -26,12 +24,12 @@ class DeckChooser(QHBoxLayout): def setupDecks(self) -> None: if self.label: - self.deckLabel = QLabel(_("Deck")) + self.deckLabel = QLabel(tr(TR.DECKS_DECK)) self.addWidget(self.deckLabel) # decks box self.deck = QPushButton(clicked=self.onDeckChange) # type: ignore self.deck.setAutoDefault(False) - self.deck.setToolTip(shortcut(_("Target Deck (Ctrl+D)"))) + self.deck.setToolTip(shortcut(tr(TR.QT_MISC_TARGET_DECK_CTRLANDD))) QShortcut(QKeySequence("Ctrl+D"), self.widget, activated=self.onDeckChange) # type: ignore self.addWidget(self.deck) # starting label @@ -48,11 +46,13 @@ class DeckChooser(QHBoxLayout): did = c.odid else: did = 1 - self.setDeckName(self.mw.col.decks.nameOrNone(did) or _("Default")) + self.setDeckName( + self.mw.col.decks.nameOrNone(did) or tr(TR.QT_MISC_DEFAULT) + ) else: self.setDeckName( self.mw.col.decks.nameOrNone(self.mw.col.models.current()["did"]) - or _("Default") + or tr(TR.QT_MISC_DEFAULT) ) # layout sizePolicy = QSizePolicy(QSizePolicy.Policy(7), QSizePolicy.Policy(0)) @@ -74,7 +74,7 @@ class DeckChooser(QHBoxLayout): if not self.mw.col.conf.get("addToCur", True): self.setDeckName( self.mw.col.decks.nameOrNone(self.mw.col.models.current()["did"]) - or _("Default") + or tr(TR.QT_MISC_DEFAULT) ) def onDeckChange(self) -> None: @@ -84,8 +84,8 @@ class DeckChooser(QHBoxLayout): ret = StudyDeck( self.mw, current=current, - accept=_("Choose"), - title=_("Choose Deck"), + accept=tr(TR.ACTIONS_CHOOSE), + title=tr(TR.QT_MISC_CHOOSE_DECK), help="addingnotes", cancel=False, parent=self.widget, diff --git a/qt/aqt/deckconf.py b/qt/aqt/deckconf.py index d01e3ea18..24fa1dfe2 100644 --- a/qt/aqt/deckconf.py +++ b/qt/aqt/deckconf.py @@ -1,7 +1,6 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from operator import itemgetter from typing import Any, Dict @@ -9,10 +8,10 @@ from PyQt5.QtWidgets import QLineEdit import aqt from anki.consts import NEW_CARDS_RANDOM -from anki.lang import _, ngettext from aqt import gui_hooks from aqt.qt import * from aqt.utils import ( + TR, askUser, getOnlyText, openHelp, @@ -21,6 +20,7 @@ from aqt.utils import ( showInfo, showWarning, tooltip, + tr, ) @@ -34,7 +34,7 @@ class DeckConf(QDialog): self.form = aqt.forms.dconf.Ui_Dialog() self.form.setupUi(self) gui_hooks.deck_conf_did_setup_ui_form(self) - self.mw.checkpoint(_("Options")) + self.mw.checkpoint(tr(TR.ACTIONS_OPTIONS)) self.setupCombos() self.setupConfs() self.setWindowModality(Qt.WindowModal) @@ -44,7 +44,7 @@ class DeckConf(QDialog): self.form.buttonBox.button(QDialogButtonBox.RestoreDefaults).clicked, self.onRestore, ) - self.setWindowTitle(_("Options for %s") % self.deck["name"]) + self.setWindowTitle(tr(TR.ACTIONS_OPTIONS_FOR, val=self.deck["name"])) # qt doesn't size properly with altered fonts otherwise restoreGeom(self, "deckconf", adjustSize=True) gui_hooks.deck_conf_will_show(self) @@ -56,7 +56,7 @@ class DeckConf(QDialog): import anki.consts as cs f = self.form - f.newOrder.addItems(list(cs.newCardOrderLabels().values())) + f.newOrder.addItems(list(cs.newCardOrderLabels(self.mw.col).values())) qconnect(f.newOrder.currentIndexChanged, self.onNewOrderChanged) # Conf list @@ -86,13 +86,13 @@ class DeckConf(QDialog): def confOpts(self): m = QMenu(self.mw) - a = m.addAction(_("Add")) + a = m.addAction(tr(TR.ACTIONS_ADD)) qconnect(a.triggered, self.addGroup) - a = m.addAction(_("Delete")) + a = m.addAction(tr(TR.ACTIONS_DELETE)) qconnect(a.triggered, self.remGroup) - a = m.addAction(_("Rename")) + a = m.addAction(tr(TR.ACTIONS_RENAME)) qconnect(a.triggered, self.renameGroup) - a = m.addAction(_("Set for all subdecks")) + a = m.addAction(tr(TR.SCHEDULING_SET_FOR_ALL_SUBDECKS)) qconnect(a.triggered, self.setChildren) if not self.childDids: a.setEnabled(False) @@ -109,16 +109,13 @@ class DeckConf(QDialog): self.loadConf() cnt = len(self.mw.col.decks.didsForConf(conf)) if cnt > 1: - txt = _( - "Your changes will affect multiple decks. If you wish to " - "change only the current deck, please add a new options group first." - ) + txt = tr(TR.SCHEDULING_YOUR_CHANGES_WILL_AFFECT_MULTIPLE_DECKS) else: txt = "" self.form.count.setText(txt) def addGroup(self) -> None: - name = getOnlyText(_("New options group name:")) + name = getOnlyText(tr(TR.SCHEDULING_NEW_OPTIONS_GROUP_NAME)) if not name: return @@ -134,7 +131,7 @@ class DeckConf(QDialog): def remGroup(self) -> None: if int(self.conf["id"]) == 1: - showInfo(_("The default configuration can't be removed."), self) + showInfo(tr(TR.SCHEDULING_THE_DEFAULT_CONFIGURATION_CANT_BE_REMOVED), self) else: gui_hooks.deck_conf_will_remove_config(self, self.deck, self.conf) self.mw.col.modSchema(check=True) @@ -145,7 +142,7 @@ class DeckConf(QDialog): def renameGroup(self) -> None: old = self.conf["name"] - name = getOnlyText(_("New name:"), default=old) + name = getOnlyText(tr(TR.ACTIONS_NEW_NAME), default=old) if not name or name == old: return @@ -155,9 +152,7 @@ class DeckConf(QDialog): self.loadConfs() def setChildren(self): - if not askUser( - _("Set all decks below %s to this option group?") % self.deck["name"] - ): + if not askUser(tr(TR.SCHEDULING_SET_ALL_DECKS_BELOW_TO, val=self.deck["name"])): return for did in self.childDids: deck = self.mw.col.decks.get(did) @@ -165,10 +160,7 @@ class DeckConf(QDialog): continue deck["conf"] = self.deck["conf"] self.mw.col.decks.save(deck) - tooltip( - ngettext("%d deck updated.", "%d decks updated.", len(self.childDids)) - % len(self.childDids) - ) + tooltip(tr(TR.SCHEDULING_DECK_UPDATED, count=len(self.childDids))) # Loading ################################################## @@ -194,7 +186,7 @@ class DeckConf(QDialog): lim = x else: lim = min(x, lim) - return _("(parent limit: %d)") % lim + return tr(TR.SCHEDULING_PARENT_LIMIT, val=lim) def loadConf(self): self.conf = self.mw.col.decks.confForDid(self.deck["id"]) @@ -273,10 +265,10 @@ class DeckConf(QDialog): ret.append(i) except: # invalid, don't update - showWarning(_("Steps must be numbers.")) + showWarning(tr(TR.SCHEDULING_STEPS_MUST_BE_NUMBERS)) return if len(ret) < minSize: - showWarning(_("At least one step is required.")) + showWarning(tr(TR.SCHEDULING_AT_LEAST_ONE_STEP_IS_REQUIRED)) return conf[key] = ret diff --git a/qt/aqt/dyndeckconf.py b/qt/aqt/dyndeckconf.py index 94f040bc6..c7a1df695 100644 --- a/qt/aqt/dyndeckconf.py +++ b/qt/aqt/dyndeckconf.py @@ -4,9 +4,8 @@ from typing import List, Optional import aqt -from anki.lang import _ from aqt.qt import * -from aqt.utils import askUser, openHelp, restoreGeom, saveGeom, showWarning +from aqt.utils import TR, askUser, openHelp, restoreGeom, saveGeom, showWarning, tr class DeckConf(QDialog): @@ -18,14 +17,14 @@ class DeckConf(QDialog): self.form = aqt.forms.dyndconf.Ui_Dialog() self.form.setupUi(self) if first: - label = _("Build") + label = tr(TR.DECKS_BUILD) else: - label = _("Rebuild") + label = tr(TR.ACTIONS_REBUILD) self.ok = self.form.buttonBox.addButton(label, QDialogButtonBox.AcceptRole) - self.mw.checkpoint(_("Options")) + self.mw.checkpoint(tr(TR.ACTIONS_OPTIONS)) self.setWindowModality(Qt.WindowModal) qconnect(self.form.buttonBox.helpRequested, lambda: openHelp("filtered-decks")) - self.setWindowTitle(_("Options for %s") % self.deck["name"]) + self.setWindowTitle(tr(TR.ACTIONS_OPTIONS_FOR, val=self.deck["name"])) restoreGeom(self, "dyndeckconf") self.initialSetup() self.loadConf() @@ -44,8 +43,8 @@ class DeckConf(QDialog): def initialSetup(self): import anki.consts as cs - self.form.order.addItems(list(cs.dynOrderLabels().values())) - self.form.order_2.addItems(list(cs.dynOrderLabels().values())) + self.form.order.addItems(list(cs.dynOrderLabels(self.mw.col).values())) + self.form.order_2.addItems(list(cs.dynOrderLabels(self.mw.col).values())) qconnect(self.form.resched.stateChanged, self._onReschedToggled) @@ -123,13 +122,7 @@ class DeckConf(QDialog): if not self.saveConf(): return if not self.mw.col.sched.rebuild_filtered_deck(self.deck["id"]): - if askUser( - _( - """\ -The provided search did not match any cards. Would you like to revise \ -it?""" - ) - ): + if askUser(tr(TR.DECKS_THE_PROVIDED_SEARCH_DID_NOT_MATCH)): return self.mw.reset() QDialog.accept(self) @@ -154,9 +147,9 @@ it?""" ret.append(i) except: # invalid, don't update - showWarning(_("Steps must be numbers.")) + showWarning(tr(TR.SCHEDULING_STEPS_MUST_BE_NUMBERS)) return None if len(ret) < minSize: - showWarning(_("At least one step is required.")) + showWarning(tr(TR.SCHEDULING_AT_LEAST_ONE_STEP_IS_REQUIRED)) return None return ret diff --git a/qt/aqt/editcurrent.py b/qt/aqt/editcurrent.py index 0d0e82ce9..6225a842b 100644 --- a/qt/aqt/editcurrent.py +++ b/qt/aqt/editcurrent.py @@ -1,13 +1,11 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - import aqt.editor -from anki.lang import _ from aqt import gui_hooks from aqt.main import ResetReason from aqt.qt import * -from aqt.utils import restoreGeom, saveGeom, tooltip +from aqt.utils import TR, restoreGeom, saveGeom, tooltip, tr class EditCurrent(QDialog): @@ -17,7 +15,7 @@ class EditCurrent(QDialog): self.mw = mw self.form = aqt.forms.editcurrent.Ui_Dialog() self.form.setupUi(self) - self.setWindowTitle(_("Edit Current")) + self.setWindowTitle(tr(TR.EDITING_EDIT_CURRENT)) self.setMinimumHeight(400) self.setMinimumWidth(250) self.form.buttonBox.button(QDialogButtonBox.Close).setShortcut( diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 95d953cda..38e9aec96 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -22,7 +22,6 @@ import aqt.sound from anki.cards import Card from anki.hooks import runFilter from anki.httpclient import HttpClient -from anki.lang import _ from anki.notes import Note from anki.utils import checksum, isLin, isWin, namedtmp, stripHTMLMedia from aqt import AnkiQt, gui_hooks @@ -31,6 +30,7 @@ from aqt.qt import * from aqt.sound import av_player, getAudio from aqt.theme import theme_manager from aqt.utils import ( + TR, getFile, openHelp, qtMenuShortcutWorkaround, @@ -40,6 +40,7 @@ from aqt.utils import ( showInfo, showWarning, tooltip, + tr, ) from aqt.webview import AnkiWebView @@ -122,16 +123,16 @@ class Editor: self._addButton( None, "fields", - _("Customize Fields"), - _("Fields") + "...", + tr(TR.EDITING_CUSTOMIZE_FIELDS), + tr(TR.EDITING_FIELDS) + "...", disables=False, rightside=False, ), self._addButton( None, "cards", - _("Customize Card Templates (Ctrl+L)"), - _("Cards") + "...", + tr(TR.EDITING_CUSTOMIZE_CARD_TEMPLATES_CTRLANDL), + tr(TR.EDITING_CARDS) + "...", disables=False, rightside=False, ), @@ -140,22 +141,37 @@ class Editor: gui_hooks.editor_did_init_left_buttons(lefttopbtns, self) righttopbtns: List[str] = [ - self._addButton("text_bold", "bold", _("Bold text (Ctrl+B)"), id="bold"), self._addButton( - "text_italic", "italic", _("Italic text (Ctrl+I)"), id="italic" + "text_bold", "bold", tr(TR.EDITING_BOLD_TEXT_CTRLANDB), id="bold" ), self._addButton( - "text_under", "underline", _("Underline text (Ctrl+U)"), id="underline" + "text_italic", + "italic", + tr(TR.EDITING_ITALIC_TEXT_CTRLANDI), + id="italic", ), self._addButton( - "text_super", "super", _("Superscript (Ctrl++)"), id="superscript" + "text_under", + "underline", + tr(TR.EDITING_UNDERLINE_TEXT_CTRLANDU), + id="underline", + ), + self._addButton( + "text_super", + "super", + tr(TR.EDITING_SUPERSCRIPT_CTRLANDAND), + id="superscript", + ), + self._addButton( + "text_sub", "sub", tr(TR.EDITING_SUBSCRIPT_CTRLAND), id="subscript" + ), + self._addButton( + "text_clear", "clear", tr(TR.EDITING_REMOVE_FORMATTING_CTRLANDR) ), - self._addButton("text_sub", "sub", _("Subscript (Ctrl+=)"), id="subscript"), - self._addButton("text_clear", "clear", _("Remove formatting (Ctrl+R)")), self._addButton( None, "colour", - _("Set foreground colour (F7)"), + tr(TR.EDITING_SET_FOREGROUND_COLOUR_F7), """
    """, ), - self._addButton("text_cloze", "cloze", _("Cloze deletion (Ctrl+Shift+C)")), self._addButton( - "paperclip", "attach", _("Attach pictures/audio/video (F3)") + "text_cloze", "cloze", tr(TR.EDITING_CLOZE_DELETION_CTRLANDSHIFTANDC) ), - self._addButton("media-record", "record", _("Record audio (F5)")), + self._addButton( + "paperclip", "attach", tr(TR.EDITING_ATTACH_PICTURESAUDIOVIDEO_F3) + ), + self._addButton("media-record", "record", tr(TR.EDITING_RECORD_AUDIO_F5)), self._addButton("more", "more"), ] @@ -197,7 +215,7 @@ class Editor: bgcol = self.mw.app.palette().window().color().name() # type: ignore # then load page self.web.stdHtml( - _html % (bgcol, bgcol, topbuts, _("Show Duplicates")), + _html % (bgcol, bgcol, topbuts, tr(TR.EDITING_SHOW_DUPLICATES)), css=["css/editor.css"], js=["js/vendor/jquery.js", "js/editor.js"], context=self, @@ -450,7 +468,8 @@ class Editor: return data = [ - (fld, self.mw.col.media.escapeImages(val)) for fld, val in self.note.items() + (fld, self.mw.col.media.escape_media_filenames(val)) + for fld, val in self.note.items() ] self.widget.show() self.updateTags() @@ -499,9 +518,7 @@ class Editor: self.web.eval("setBackgrounds(%s);" % json.dumps(cols)) def showDupes(self): - contents = html.escape( - stripHTMLMedia(self.note.fields[0]), quote=False - ).replace('"', r"\"") + contents = self.note.fields[0].replace('"', r"\"") browser = aqt.dialogs.open("Browser", self.mw) browser.form.searchEdit.lineEdit().setText( '"dupe:%s,%s"' % (self.note.model()["id"], contents) @@ -547,11 +564,13 @@ class Editor: if html.find(">") > -1: # filter html through beautifulsoup so we can strip out things like a # leading
    - html_escaped = self.mw.col.media.escapeImages(html) + html_escaped = self.mw.col.media.escape_media_filenames(html) with warnings.catch_warnings(): warnings.simplefilter("ignore", UserWarning) html_escaped = str(BeautifulSoup(html_escaped, "html.parser")) - html = self.mw.col.media.escapeImages(html_escaped, unescape=True) + html = self.mw.col.media.escape_media_filenames( + html_escaped, unescape=True + ) self.note.fields[field] = html if not self.addMode: self.note.flush() @@ -570,11 +589,13 @@ class Editor: tb.setSpacing(12) tb.setContentsMargins(2, 6, 2, 6) # tags - l = QLabel(_("Tags")) + l = QLabel(tr(TR.EDITING_TAGS)) tb.addWidget(l, 1, 0) self.tags = aqt.tagedit.TagEdit(self.widget) qconnect(self.tags.lostFocus, self.saveTags) - self.tags.setToolTip(shortcut(_("Jump to tags with Ctrl+Shift+T"))) + self.tags.setToolTip( + shortcut(tr(TR.EDITING_JUMP_TO_TAGS_WITH_CTRLANDSHIFTANDT)) + ) border = theme_manager.str_color("border") self.tags.setStyleSheet(f"border: 1px solid {border}") tb.addWidget(self.tags, 1, 1) @@ -636,20 +657,9 @@ class Editor: # check that the model is set up for cloze deletion if not re.search("{{(.*:)*cloze:", self.note.model()["tmpls"][0]["qfmt"]): if self.addMode: - tooltip( - _( - "Warning, cloze deletions will not work until " - "you switch the type at the top to Cloze." - ) - ) + tooltip(tr(TR.EDITING_WARNING_CLOZE_DELETIONS_WILL_NOT_WORK)) else: - showInfo( - _( - """\ -To make a cloze deletion on an existing note, you need to change it \ -to a cloze type first, via 'Notes>Change Note Type'""" - ) - ) + showInfo(tr(TR.EDITING_TO_MAKE_A_CLOZE_DELETION_ON)) return # find the highest existing cloze highest = 0 @@ -707,12 +717,12 @@ to a cloze type first, via 'Notes>Change Note Type'""" extension_filter = " ".join( "*." + extension for extension in sorted(itertools.chain(pics, audio)) ) - key = _("Media") + " (" + extension_filter + ")" + key = tr(TR.EDITING_MEDIA) + " (" + extension_filter + ")" def accept(file): self.addMedia(file, canDelete=True) - file = getFile(self.widget, _("Add Media"), accept, key, key="media") + file = getFile(self.widget, tr(TR.EDITING_ADD_MEDIA), accept, key, key="media") self.parentWindow.activateWindow() def addMedia(self, path, canDelete=False): @@ -745,7 +755,7 @@ to a cloze type first, via 'Notes>Change Note Type'""" file = getAudio(self.widget) except Exception as e: showWarning( - _("Couldn't record audio. Have you installed 'lame'?") + tr(TR.EDITING_COULDNT_RECORD_AUDIO_HAVE_YOU_INSTALLED) + "\n\n" + repr(str(e)) ) @@ -843,14 +853,15 @@ to a cloze type first, via 'Notes>Change Note Type'""" client.timeout = 30 with client.get(url) as response: if response.status_code != 200: - error_msg = ( - _("Unexpected response code: %s") % response.status_code + error_msg = tr( + TR.QT_MISC_UNEXPECTED_RESPONSE_CODE, + val=response.status_code, ) return None filecontents = response.content content_type = response.headers.get("content-type") except (urllib.error.URLError, requests.exceptions.RequestException) as e: - error_msg = _("An error occurred while opening %s") % e + error_msg = tr(TR.EDITING_AN_ERROR_OCCURRED_WHILE_OPENING, val=str(e)) return None finally: self.mw.progress.finish() @@ -947,13 +958,17 @@ to a cloze type first, via 'Notes>Change Note Type'""" m = QMenu(self.mw) for text, handler, shortcut in ( - (_("MathJax inline"), self.insertMathjaxInline, "Ctrl+M, M"), - (_("MathJax block"), self.insertMathjaxBlock, "Ctrl+M, E"), - (_("MathJax chemistry"), self.insertMathjaxChemistry, "Ctrl+M, C"), - (_("LaTeX"), self.insertLatex, "Ctrl+T, T"), - (_("LaTeX equation"), self.insertLatexEqn, "Ctrl+T, E"), - (_("LaTeX math env."), self.insertLatexMathEnv, "Ctrl+T, M"), - (_("Edit HTML"), self.onHtmlEdit, "Ctrl+Shift+X"), + (tr(TR.EDITING_MATHJAX_INLINE), self.insertMathjaxInline, "Ctrl+M, M"), + (tr(TR.EDITING_MATHJAX_BLOCK), self.insertMathjaxBlock, "Ctrl+M, E"), + ( + tr(TR.EDITING_MATHJAX_CHEMISTRY), + self.insertMathjaxChemistry, + "Ctrl+M, C", + ), + (tr(TR.EDITING_LATEX), self.insertLatex, "Ctrl+T, T"), + (tr(TR.EDITING_LATEX_EQUATION), self.insertLatexEqn, "Ctrl+T, E"), + (tr(TR.EDITING_LATEX_MATH_ENV), self.insertLatexMathEnv, "Ctrl+T, M"), + (tr(TR.EDITING_EDIT_HTML), self.onHtmlEdit, "Ctrl+Shift+X"), ): a = m.addAction(text) qconnect(a.triggered, handler) @@ -1203,11 +1218,11 @@ class EditorWebView(AnkiWebView): def contextMenuEvent(self, evt: QContextMenuEvent) -> None: m = QMenu(self) - a = m.addAction(_("Cut")) + a = m.addAction(tr(TR.EDITING_CUT)) qconnect(a.triggered, self.onCut) - a = m.addAction(_("Copy")) + a = m.addAction(tr(TR.ACTIONS_COPY)) qconnect(a.triggered, self.onCopy) - a = m.addAction(_("Paste")) + a = m.addAction(tr(TR.EDITING_PASTE)) qconnect(a.triggered, self.onPaste) gui_hooks.editor_will_show_context_menu(self, m) m.popup(QCursor.pos()) @@ -1231,7 +1246,7 @@ def remove_null_bytes(txt, editor): def reverse_url_quoting(txt, editor): # reverse the url quoting we added to get images to display - return editor.mw.col.media.escapeImages(txt, unescape=True) + return editor.mw.col.media.escape_media_filenames(txt, unescape=True) gui_hooks.editor_will_use_font_for_field.append(fontMungeHack) diff --git a/qt/aqt/errors.py b/qt/aqt/errors.py index b6cbc2eb6..04c08e7d0 100644 --- a/qt/aqt/errors.py +++ b/qt/aqt/errors.py @@ -8,7 +8,6 @@ import traceback from markdown import markdown -from anki.lang import _ from aqt import mw from aqt.qt import * from aqt.utils import TR, showText, showWarning, supportText, tr @@ -65,10 +64,7 @@ class ErrorHandler(QObject): self.timer.start() def tempFolderMsg(self): - return _( - """Unable to access Anki media folder. The permissions on \ -your system's temporary folder may be incorrect.""" - ) + return tr(TR.QT_MISC_UNABLE_TO_ACCESS_ANKI_MEDIA_FOLDER) def onTimeout(self): error = html.escape(self.pool) @@ -77,28 +73,15 @@ your system's temporary folder may be incorrect.""" if "abortSchemaMod" in error: return if "10013" in error: - return showWarning( - _( - "Your firewall or antivirus program is preventing Anki from creating a connection to itself. Please add an exception for Anki." - ) - ) + return showWarning(tr(TR.QT_MISC_YOUR_FIREWALL_OR_ANTIVIRUS_PROGRAM_IS)) if "no default input" in error.lower(): - return showWarning( - _( - "Please connect a microphone, and ensure " - "other programs are not using the audio device." - ) - ) + return showWarning(tr(TR.QT_MISC_PLEASE_CONNECT_A_MICROPHONE_AND_ENSURE)) if "invalidTempFolder" in error: return showWarning(self.tempFolderMsg()) if "Beautiful Soup is not an HTTP client" in error: return if "database or disk is full" in error or "Errno 28" in error: - return showWarning( - _( - "Your computer's storage may be full. Please delete some unneeded files, then try again." - ) - ) + return showWarning(tr(TR.QT_MISC_YOUR_COMPUTERS_STORAGE_MAY_BE_FULL)) if "disk I/O error" in error: showWarning(markdown(tr(TR.ERRORS_ACCESSING_DB))) return diff --git a/qt/aqt/exporting.py b/qt/aqt/exporting.py index fc27b2d68..2d9b5c909 100644 --- a/qt/aqt/exporting.py +++ b/qt/aqt/exporting.py @@ -12,9 +12,8 @@ from typing import List, Optional import aqt from anki import hooks from anki.exporting import Exporter, exporters -from anki.lang import _, ngettext from aqt.qt import * -from aqt.utils import checkInvalidFilename, getSaveFile, showWarning, tooltip +from aqt.utils import TR, checkInvalidFilename, getSaveFile, showWarning, tooltip, tr class ExportDialog(QDialog): @@ -49,13 +48,13 @@ class ExportDialog(QDialog): self.exporterChanged(idx) # deck list if self.cids is None: - self.decks = [_("All Decks")] + self.decks = [tr(TR.EXPORTING_ALL_DECKS)] self.decks.extend(d.name for d in self.col.decks.all_names_and_ids()) else: - self.decks = [_("Selected Notes")] + self.decks = [tr(TR.EXPORTING_SELECTED_NOTES)] self.frm.deck.addItems(self.decks) # save button - b = QPushButton(_("Export...")) + b = QPushButton(tr(TR.EXPORTING_EXPORT)) self.frm.buttonBox.addButton(b, QDialogButtonBox.AcceptRole) # set default option if accessed through deck button if did: @@ -107,7 +106,7 @@ class ExportDialog(QDialog): self.exporter.did = self.col.decks.id(name) if self.isVerbatim: name = time.strftime("-%Y-%m-%d@%H-%M-%S", time.localtime(time.time())) - deck_name = _("collection") + name + deck_name = tr(TR.EXPORTING_COLLECTION) + name else: # Get deck name and remove invalid filename characters deck_name = self.decks[self.frm.deck.currentIndex()] @@ -121,7 +120,7 @@ class ExportDialog(QDialog): while 1: file = getSaveFile( self, - _("Export"), + tr(TR.ACTIONS_EXPORT), "export", key_str, self.exporter.ext, @@ -142,7 +141,7 @@ class ExportDialog(QDialog): f = open(file, "wb") f.close() except (OSError, IOError) as e: - showWarning(_("Couldn't save file: %s") % str(e)) + showWarning(tr(TR.EXPORTING_COULDNT_SAVE_FILE, val=str(e))) else: os.unlink(file) @@ -150,10 +149,7 @@ class ExportDialog(QDialog): def exported_media(cnt): self.mw.taskman.run_on_main( lambda: self.mw.progress.update( - label=ngettext( - "Exported %d media file", "Exported %d media files", cnt - ) - % cnt + label=tr(TR.EXPORTING_EXPORTED_MEDIA_FILE, count=cnt) ) ) @@ -174,26 +170,12 @@ class ExportDialog(QDialog): def on_export_finished(self): if self.isVerbatim: - msg = _("Collection exported.") + msg = tr(TR.EXPORTING_COLLECTION_EXPORTED) self.mw.reopen() else: if self.isTextNote: - msg = ( - ngettext( - "%d note exported.", - "%d notes exported.", - self.exporter.count, - ) - % self.exporter.count - ) + msg = tr(TR.EXPORTING_NOTE_EXPORTED, count=self.exporter.count) else: - msg = ( - ngettext( - "%d card exported.", - "%d cards exported.", - self.exporter.count, - ) - % self.exporter.count - ) + msg = tr(TR.EXPORTING_CARD_EXPORTED, count=self.exporter.count) tooltip(msg, period=3000) QDialog.reject(self) diff --git a/qt/aqt/fields.py b/qt/aqt/fields.py index 84f05470b..f326228bc 100644 --- a/qt/aqt/fields.py +++ b/qt/aqt/fields.py @@ -3,13 +3,12 @@ import aqt from anki.consts import * -from anki.lang import _, ngettext from anki.models import NoteType from anki.rsbackend import TemplateError from aqt import AnkiQt, gui_hooks from aqt.qt import * from aqt.schema_change_tracker import ChangeTracker -from aqt.utils import askUser, getOnlyText, openHelp, showWarning, tooltip +from aqt.utils import TR, askUser, getOnlyText, openHelp, showWarning, tooltip, tr class FieldDialog(QDialog): @@ -20,11 +19,11 @@ class FieldDialog(QDialog): self.mm = self.mw.col.models self.model = nt self.mm._remove_from_cache(self.model["id"]) - self.mw.checkpoint(_("Fields")) + self.mw.checkpoint(tr(TR.EDITING_FIELDS)) self.change_tracker = ChangeTracker(self.mw) self.form = aqt.forms.fields.Ui_Dialog() self.form.setupUi(self) - self.setWindowTitle(_("Fields for %s") % self.model["name"]) + self.setWindowTitle(tr(TR.FIELDS_FIELDS_FOR, val=self.model["name"])) self.form.buttonBox.button(QDialogButtonBox.Help).setAutoDefault(False) self.form.buttonBox.button(QDialogButtonBox.Cancel).setAutoDefault(False) self.form.buttonBox.button(QDialogButtonBox.Save).setAutoDefault(False) @@ -87,14 +86,14 @@ class FieldDialog(QDialog): if ignoreOrd is not None and f["ord"] == ignoreOrd: continue if f["name"] == txt: - showWarning(_("That field name is already used.")) + showWarning(tr(TR.FIELDS_THAT_FIELD_NAME_IS_ALREADY_USED)) return return txt def onRename(self): idx = self.currentIdx f = self.model["flds"][idx] - name = self._uniqueName(_("New name:"), self.currentIdx, f["name"]) + name = self._uniqueName(tr(TR.ACTIONS_NEW_NAME), self.currentIdx, f["name"]) if not name: return @@ -107,7 +106,7 @@ class FieldDialog(QDialog): self.form.fieldList.setCurrentRow(idx) def onAdd(self): - name = self._uniqueName(_("Field name:")) + name = self._uniqueName(tr(TR.FIELDS_FIELD_NAME)) if not name: return if not self.change_tracker.mark_schema(): @@ -120,10 +119,10 @@ class FieldDialog(QDialog): def onDelete(self): if len(self.model["flds"]) < 2: - return showWarning(_("Notes require at least one field.")) + return showWarning(tr(TR.FIELDS_NOTES_REQUIRE_AT_LEAST_ONE_FIELD)) count = self.mm.useCount(self.model) - c = ngettext("%d note", "%d notes", count) % count - if not askUser(_("Delete field from %s?") % c): + c = tr(TR.BROWSING_NOTE_COUNT, count=count) + if not askUser(tr(TR.FIELDS_DELETE_FIELD_FROM, val=c)): return if not self.change_tracker.mark_schema(): return @@ -137,7 +136,7 @@ class FieldDialog(QDialog): def onPosition(self, delta=-1): idx = self.currentIdx l = len(self.model["flds"]) - txt = getOnlyText(_("New position (1...%d):") % l, default=str(idx + 1)) + txt = getOnlyText(tr(TR.FIELDS_NEW_POSITION_1, val=l), default=str(idx + 1)) if not txt: return try: diff --git a/qt/aqt/forms/BUILD.bazel b/qt/aqt/forms/BUILD.bazel index 57bd2d66f..9c86f7f05 100644 --- a/qt/aqt/forms/BUILD.bazel +++ b/qt/aqt/forms/BUILD.bazel @@ -11,6 +11,10 @@ py_binary( compile_all( srcs = glob(["*.ui"]), group = "forms", + visibility = [ + "//qt/aqt:__pkg__", + "//qt/po:__pkg__", + ], ) py_binary( diff --git a/qt/aqt/forms/about.ui b/qt/aqt/forms/about.ui index b736a4b86..755c4e299 100644 --- a/qt/aqt/forms/about.ui +++ b/qt/aqt/forms/about.ui @@ -17,7 +17,7 @@ - About Anki + ABOUT_ABOUT_ANKI @@ -36,7 +36,7 @@ - about:blank + about:blank diff --git a/qt/aqt/forms/addcards.ui b/qt/aqt/forms/addcards.ui index fa98b4769..f34ec6003 100644 --- a/qt/aqt/forms/addcards.ui +++ b/qt/aqt/forms/addcards.ui @@ -11,7 +11,7 @@ - Add + ACTIONS_ADD diff --git a/qt/aqt/forms/addfield.ui b/qt/aqt/forms/addfield.ui index 7ce5e13be..525828aab 100644 --- a/qt/aqt/forms/addfield.ui +++ b/qt/aqt/forms/addfield.ui @@ -11,7 +11,7 @@ - Add Field + FIELDS_ADD_FIELD @@ -19,14 +19,14 @@ - Field: + FIELDS_FIELD - Size: + FIELDS_SIZE @@ -49,7 +49,7 @@ - Font: + FIELDS_FONT diff --git a/qt/aqt/forms/addmodel.ui b/qt/aqt/forms/addmodel.ui index 8a82c480f..f7d8bd68c 100644 --- a/qt/aqt/forms/addmodel.ui +++ b/qt/aqt/forms/addmodel.ui @@ -11,7 +11,7 @@ - Add Note Type + NOTETYPES_ADD_NOTE_TYPE diff --git a/qt/aqt/forms/addonconf.ui b/qt/aqt/forms/addonconf.ui index 8bc59e2ca..f2e73c091 100644 --- a/qt/aqt/forms/addonconf.ui +++ b/qt/aqt/forms/addonconf.ui @@ -14,7 +14,7 @@ - Configuration + ADDONS_CONFIGURATION diff --git a/qt/aqt/forms/addons.ui b/qt/aqt/forms/addons.ui index 770426846..1e93f1c0d 100644 --- a/qt/aqt/forms/addons.ui +++ b/qt/aqt/forms/addons.ui @@ -25,7 +25,7 @@ - Changes will take effect when Anki is restarted. + ADDONS_CHANGES_WILL_TAKE_EFFECT_WHEN_ANKI @@ -43,21 +43,21 @@ - Get Add-ons... + ADDONS_GET_ADDONS - Install from file... + ADDONS_INSTALL_FROM_FILE - Check for Updates + ADDONS_CHECK_FOR_UPDATES @@ -77,35 +77,35 @@ - View Add-on Page + ADDONS_VIEW_ADDON_PAGE - Config + ADDONS_CONFIG - View Files + ADDONS_VIEW_FILES - Toggle Enabled + ADDONS_TOGGLE_ENABLED - Delete + ACTIONS_DELETE diff --git a/qt/aqt/forms/browser.ui b/qt/aqt/forms/browser.ui index 16ccf808f..575371cb1 100644 --- a/qt/aqt/forms/browser.ui +++ b/qt/aqt/forms/browser.ui @@ -110,14 +110,14 @@ - Search + ACTIONS_SEARCH - Preview + ACTIONS_PREVIEW Ctrl+Shift+P @@ -130,7 +130,7 @@ - Filter... + BROWSING_FILTER @@ -241,7 +241,7 @@ - &Edit + QT_ACCEL_EDIT @@ -253,7 +253,7 @@ - &Go + QT_ACCEL_GO @@ -268,17 +268,17 @@ - &Help + QT_ACCEL_HELP - &Cards + QT_ACCEL_CARDS - Flag + BROWSING_FLAG @@ -298,7 +298,7 @@ - &Notes + QT_ACCEL_NOTES @@ -325,7 +325,7 @@ - &Reschedule... + QT_ACCEL_RESCHEDULE Ctrl+Alt+R @@ -333,7 +333,7 @@ - Select &All + QT_ACCEL_SELECT_ALL Ctrl+Alt+A @@ -341,7 +341,7 @@ - &Undo + QT_ACCEL_UNDO Ctrl+Alt+Z @@ -349,7 +349,7 @@ - &Invert Selection + QT_ACCEL_INVERT_SELECTION Ctrl+Alt+S @@ -357,7 +357,7 @@ - &Find + QT_ACCEL_FIND Ctrl+F @@ -365,7 +365,7 @@ - N&ote + QT_ACCEL_NOTE Ctrl+Shift+N @@ -373,7 +373,7 @@ - &Next Card + QT_ACCEL_NEXT_CARD Ctrl+N @@ -381,7 +381,7 @@ - &Previous Card + QT_ACCEL_PREVIOUS_CARD Ctrl+P @@ -389,7 +389,7 @@ - &Guide... + QT_ACCEL_GUIDE F1 @@ -397,7 +397,7 @@ - Change Note Type... + BROWSING_CHANGE_NOTE_TYPE2 Ctrl+Shift+M @@ -405,25 +405,20 @@ - Select &Notes + QT_ACCEL_SELECT_NOTES - Find and Re&place... + QT_ACCEL_FIND_AND_REPLACE Ctrl+Alt+F - - - &Cram... - - - Fil&ter + QT_ACCEL_FILTER Ctrl+Shift+F @@ -431,7 +426,7 @@ - Card List + BROWSING_CARD_LIST Ctrl+Shift+L @@ -439,12 +434,12 @@ - Find &Duplicates... + QT_ACCEL_FIND_DUPLICATES - Reposition... + BROWSING_REPOSITION Ctrl+Shift+S @@ -452,23 +447,23 @@ - First Card + BROWSING_FIRST_CARD - Home + - Last Card + BROWSING_LAST_CARD - End + - Close + ACTIONS_CLOSE Ctrl+W @@ -476,7 +471,7 @@ - &Info... + QT_ACCEL_INFO Ctrl+Shift+I @@ -484,7 +479,7 @@ - Add Tags... + BROWSING_ADD_TAGS2 Ctrl+Shift+A @@ -492,7 +487,7 @@ - Remove Tags... + BROWSING_REMOVE_TAGS Ctrl+Shift+D @@ -500,7 +495,7 @@ - Toggle Suspend + BROWSING_TOGGLE_SUSPEND Ctrl+J @@ -508,7 +503,7 @@ - Delete + ACTIONS_DELETE Ctrl+Del @@ -516,7 +511,7 @@ - Add Notes... + BROWSING_ADD_NOTES Ctrl+E @@ -524,7 +519,7 @@ - Change Deck... + BROWSING_CHANGE_DECK2 Ctrl+D @@ -535,7 +530,7 @@ true - Red Flag + ACTIONS_RED_FLAG Ctrl+1 @@ -546,7 +541,7 @@ true - Orange Flag + ACTIONS_ORANGE_FLAG Ctrl+2 @@ -557,7 +552,7 @@ true - Green Flag + ACTIONS_GREEN_FLAG Ctrl+3 @@ -568,7 +563,7 @@ true - Blue Flag + ACTIONS_BLUE_FLAG Ctrl+4 @@ -576,7 +571,7 @@ - Sidebar + BROWSING_SIDEBAR Ctrl+Shift+R @@ -584,17 +579,17 @@ - Clear Unused Tags + BROWSING_CLEAR_UNUSED_TAGS - Manage Note Types... + BROWSING_MANAGE_NOTE_TYPES - Toggle Mark + BROWSING_TOGGLE_MARK Ctrl+K @@ -602,10 +597,10 @@ - &Export Notes... + QT_ACCEL_EXPORT_NOTES - Ctrl+Shift+E + diff --git a/qt/aqt/forms/browserdisp.ui b/qt/aqt/forms/browserdisp.ui index 3a8118255..36874f74c 100644 --- a/qt/aqt/forms/browserdisp.ui +++ b/qt/aqt/forms/browserdisp.ui @@ -11,13 +11,13 @@ - Browser Appearance + BROWSING_BROWSER_APPEARANCE - Override front template: + BROWSING_OVERRIDE_FRONT_TEMPLATE @@ -27,7 +27,7 @@ - Override back template: + BROWSING_OVERRIDE_BACK_TEMPLATE @@ -37,7 +37,7 @@ - Override font: + BROWSING_OVERRIDE_FONT diff --git a/qt/aqt/forms/browseropts.ui b/qt/aqt/forms/browseropts.ui index e139ff035..ec721b220 100644 --- a/qt/aqt/forms/browseropts.ui +++ b/qt/aqt/forms/browseropts.ui @@ -11,7 +11,7 @@ - Browser Options + BROWSING_BROWSER_OPTIONS @@ -19,7 +19,7 @@ - <b>Font</b>: + BROWSING_FONT @@ -33,7 +33,7 @@ - <b>Font Size</b>: + BROWSING_FONT_SIZE @@ -50,7 +50,7 @@ - <b>Line Size</b>: + BROWSING_LINE_SIZE @@ -75,7 +75,7 @@ - Search within formatting (slow) + BROWSING_SEARCH_WITHIN_FORMATTING_SLOW diff --git a/qt/aqt/forms/build_ui.py b/qt/aqt/forms/build_ui.py index 65c2cfb29..3b61ddb09 100644 --- a/qt/aqt/forms/build_ui.py +++ b/qt/aqt/forms/build_ui.py @@ -9,9 +9,12 @@ buf = io.StringIO() compileUi(open(ui_file), buf, from_imports=True) outdata = buf.getvalue() -outdata = outdata.replace("# -*- coding: utf-8 -*-", "# -*- coding: utf-8 -*-\nfrom anki.lang import _\n") -outdata = re.sub(r'(QtGui\.QApplication\.)?_?translate\(".*?", ', '_(', outdata) -outdata = re.sub(r', None.*', '))', outdata) +outdata = outdata.replace( + "# -*- coding: utf-8 -*-", "# -*- coding: utf-8 -*-\nfrom aqt.utils import tr, TR\n" +) +outdata = re.sub( + r'(?:QtGui\.QApplication\.)?_?translate\(".*?", "(.*?)"', "tr(TR.\\1", outdata +) with open(py_file, "w") as file: file.write(outdata) @@ -35,8 +38,7 @@ with open(py_file, "w") as file: # (cat < $py # # -*- coding: utf-8 -*- # # pylint: disable=unsubscriptable-object,unused-import -# from anki.lang import _ -# EOF +# # EOF # rm $py.tmp # fi # done diff --git a/qt/aqt/forms/changemap.ui b/qt/aqt/forms/changemap.ui index a8a784a45..9278c21d1 100644 --- a/qt/aqt/forms/changemap.ui +++ b/qt/aqt/forms/changemap.ui @@ -11,13 +11,13 @@ - Import + ACTIONS_IMPORT - Target field: + BROWSING_TARGET_FIELD true diff --git a/qt/aqt/forms/changemodel.ui b/qt/aqt/forms/changemodel.ui index 80f54ca5e..20a3247ce 100644 --- a/qt/aqt/forms/changemodel.ui +++ b/qt/aqt/forms/changemodel.ui @@ -11,7 +11,7 @@ - Change Note Type + BROWSING_CHANGE_NOTE_TYPE @@ -25,7 +25,7 @@ - Current note type: + BROWSING_CURRENT_NOTE_TYPE @@ -48,7 +48,7 @@ - New note type: + BROWSING_NEW_NOTE_TYPE @@ -73,7 +73,7 @@ - Cards + EDITING_CARDS @@ -114,7 +114,7 @@ - Fields + EDITING_FIELDS diff --git a/qt/aqt/forms/clayout_top.ui b/qt/aqt/forms/clayout_top.ui index 8787a6fec..3ae1cc194 100644 --- a/qt/aqt/forms/clayout_top.ui +++ b/qt/aqt/forms/clayout_top.ui @@ -11,7 +11,7 @@ - Form + CARD_TEMPLATES_FORM diff --git a/qt/aqt/forms/compile.bzl b/qt/aqt/forms/compile.bzl index cb4377423..36a654f70 100644 --- a/qt/aqt/forms/compile.bzl +++ b/qt/aqt/forms/compile.bzl @@ -13,7 +13,7 @@ def compile(name, ui_file, py_file): message = "Building UI", ) -def compile_all(group, srcs): +def compile_all(group, srcs, visibility): py_files = [] for ui_file in srcs: name = ui_file.replace(".ui", "") @@ -24,5 +24,5 @@ def compile_all(group, srcs): native.filegroup( name = group, srcs = py_files + ["__init__.py"], - visibility = ["//qt/aqt:__pkg__"], + visibility = visibility, ) diff --git a/qt/aqt/forms/customstudy.ui b/qt/aqt/forms/customstudy.ui index e2fae9dc9..187143cd0 100644 --- a/qt/aqt/forms/customstudy.ui +++ b/qt/aqt/forms/customstudy.ui @@ -11,7 +11,7 @@ - Custom Study + ACTIONS_CUSTOM_STUDY @@ -19,42 +19,42 @@ - Review ahead + CUSTOM_STUDY_REVIEW_AHEAD - Review forgotten cards + CUSTOM_STUDY_REVIEW_FORGOTTEN_CARDS - Increase today's new card limit + CUSTOM_STUDY_INCREASE_TODAYS_NEW_CARD_LIMIT - Increase today's review card limit + CUSTOM_STUDY_INCREASE_TODAYS_REVIEW_CARD_LIMIT - Study by card state or tag + CUSTOM_STUDY_STUDY_BY_CARD_STATE_OR_TAG - Preview new cards + CUSTOM_STUDY_PREVIEW_NEW_CARDS @@ -114,22 +114,22 @@ - New cards only + CUSTOM_STUDY_NEW_CARDS_ONLY - Due cards only + CUSTOM_STUDY_DUE_CARDS_ONLY - All review cards in random order + CUSTOM_STUDY_ALL_REVIEW_CARDS_IN_RANDOM_ORDER - All cards in random order (don't reschedule) + CUSTOM_STUDY_ALL_CARDS_IN_RANDOM_ORDER_DONT diff --git a/qt/aqt/forms/dconf.ui b/qt/aqt/forms/dconf.ui index e47833362..08f6754db 100644 --- a/qt/aqt/forms/dconf.ui +++ b/qt/aqt/forms/dconf.ui @@ -6,7 +6,7 @@ 0 0 - 587 + 623 514 @@ -16,7 +16,7 @@ - Options group: + SCHEDULING_OPTIONS_GROUP @@ -39,7 +39,7 @@ - Manage... + ACTIONS_MANAGE Qt::ToolButtonTextBesideIcon @@ -74,7 +74,7 @@ - New Cards + SCHEDULING_NEW_CARDS @@ -97,14 +97,14 @@ - Starting ease + SCHEDULING_STARTING_EASE - % + % 130 @@ -117,7 +117,7 @@ - Order + SCHEDULING_ORDER @@ -145,14 +145,14 @@ - Easy interval + SCHEDULING_EASY_INTERVAL - Graduating interval + SCHEDULING_GRADUATING_INTERVAL @@ -166,7 +166,7 @@ - New cards/day + SCHEDULING_NEW_CARDSDAY @@ -176,7 +176,7 @@ - Steps (in minutes) + SCHEDULING_STEPS_IN_MINUTES @@ -186,14 +186,14 @@ - Bury related new cards until the next day + SCHEDULING_BURY_RELATED_NEW_CARDS_UNTIL_THE - days + SCHEDULING_DAYS @@ -206,7 +206,7 @@ - days + SCHEDULING_DAYS @@ -229,7 +229,7 @@ - Reviews + SCHEDULING_REVIEWS @@ -252,14 +252,14 @@ - Easy bonus + SCHEDULING_EASY_BONUS - % + % 100 @@ -285,21 +285,21 @@ - Interval modifier + SCHEDULING_INTERVAL_MODIFIER - Maximum reviews/day + SCHEDULING_MAXIMUM_REVIEWSDAY - Maximum interval + SCHEDULING_MAXIMUM_INTERVAL @@ -319,7 +319,7 @@ - days + SCHEDULING_DAYS @@ -333,7 +333,7 @@ - % + % 0 @@ -355,21 +355,21 @@ - Bury related reviews until the next day + SCHEDULING_BURY_RELATED_REVIEWS_UNTIL_THE_NEXT - Hard interval + SCHEDULING_HARD_INTERVAL - % + % 5 @@ -398,7 +398,7 @@ - Lapses + SCHEDULING_LAPSES @@ -421,7 +421,7 @@ - Steps (in minutes) + SCHEDULING_STEPS_IN_MINUTES @@ -431,14 +431,14 @@ - New interval + SCHEDULING_NEW_INTERVAL - Leech threshold + SCHEDULING_LEECH_THRESHOLD @@ -454,14 +454,14 @@ - lapses + SCHEDULING_LAPSES2 - Leech action + SCHEDULING_LEECH_ACTION @@ -478,14 +478,14 @@ - Minimum interval + SCHEDULING_MINIMUM_INTERVAL - days + SCHEDULING_DAYS @@ -495,12 +495,12 @@ - Suspend Card + ACTIONS_SUSPEND_CARD - Tag Only + SCHEDULING_TAG_ONLY @@ -523,7 +523,7 @@ - % + % 100 @@ -552,7 +552,7 @@ - General + SCHEDULING_GENERAL @@ -575,7 +575,7 @@ - Ignore answer times longer than + SCHEDULING_IGNORE_ANSWER_TIMES_LONGER_THAN @@ -595,7 +595,7 @@ - seconds + SCHEDULING_SECONDS @@ -604,21 +604,21 @@ - Show answer timer + SCHEDULING_SHOW_ANSWER_TIMER - Automatically play audio + SCHEDULING_AUTOMATICALLY_PLAY_AUDIO - Always include question side when replaying audio + SCHEDULING_ALWAYS_INCLUDE_QUESTION_SIDE_WHEN_REPLAYING false @@ -642,7 +642,7 @@ - Description + SCHEDULING_DESCRIPTION @@ -663,7 +663,7 @@ - Description to show on overview screen, for current deck: + SCHEDULING_DESCRIPTION_TO_SHOW_ON_OVERVIEW_SCREEN diff --git a/qt/aqt/forms/debug.ui b/qt/aqt/forms/debug.ui index ac0bd7721..0e8bec8cb 100644 --- a/qt/aqt/forms/debug.ui +++ b/qt/aqt/forms/debug.ui @@ -11,7 +11,7 @@ - Debug Console + QT_MISC_DEBUG_CONSOLE diff --git a/qt/aqt/forms/dyndconf.ui b/qt/aqt/forms/dyndconf.ui index 5c5443f16..163fd84b1 100644 --- a/qt/aqt/forms/dyndconf.ui +++ b/qt/aqt/forms/dyndconf.ui @@ -11,26 +11,26 @@ - Dialog + Dialog - Filter + ACTIONS_FILTER - Limit to + DECKS_LIMIT_TO - Search + ACTIONS_SEARCH @@ -53,7 +53,7 @@ - cards selected by + DECKS_CARDS_SELECTED_BY @@ -69,13 +69,13 @@ - Filter 2 + DECKS_FILTER_2 - Limit to + DECKS_LIMIT_TO @@ -88,7 +88,7 @@ - Search + ACTIONS_SEARCH @@ -111,7 +111,7 @@ - cards selected by + DECKS_CARDS_SELECTED_BY @@ -121,13 +121,13 @@ - Options + ACTIONS_OPTIONS - Reschedule cards based on my answers in this deck + DECKS_RESCHEDULE_CARDS_BASED_ON_MY_ANSWERS true @@ -137,7 +137,7 @@ - Enable second filter + DECKS_ENABLE_SECOND_FILTER @@ -147,7 +147,7 @@ - Repeat failed cards after + DECKS_REPEAT_FAILED_CARDS_AFTER @@ -157,7 +157,7 @@ - minutes + DECKS_MINUTES @@ -177,7 +177,7 @@ - Custom steps (in minutes) + DECKS_CUSTOM_STEPS_IN_MINUTES diff --git a/qt/aqt/forms/editaddon.ui b/qt/aqt/forms/editaddon.ui index 68c2cbfd2..75eb94473 100644 --- a/qt/aqt/forms/editaddon.ui +++ b/qt/aqt/forms/editaddon.ui @@ -11,7 +11,7 @@ - Dialog + Dialog diff --git a/qt/aqt/forms/editcurrent.ui b/qt/aqt/forms/editcurrent.ui index 66b920fcd..d65a3da6a 100644 --- a/qt/aqt/forms/editcurrent.ui +++ b/qt/aqt/forms/editcurrent.ui @@ -11,7 +11,7 @@ - Dialog + Dialog diff --git a/qt/aqt/forms/edithtml.ui b/qt/aqt/forms/edithtml.ui index 5586ec2f9..0b29039f9 100644 --- a/qt/aqt/forms/edithtml.ui +++ b/qt/aqt/forms/edithtml.ui @@ -10,7 +10,7 @@ - HTML Editor + EDITING_HTML_EDITOR diff --git a/qt/aqt/forms/emptycards.ui b/qt/aqt/forms/emptycards.ui index a9b7700c9..317261610 100644 --- a/qt/aqt/forms/emptycards.ui +++ b/qt/aqt/forms/emptycards.ui @@ -33,7 +33,7 @@ - about:blank + about:blank diff --git a/qt/aqt/forms/exporting.ui b/qt/aqt/forms/exporting.ui index a6793edb8..c108c3682 100644 --- a/qt/aqt/forms/exporting.ui +++ b/qt/aqt/forms/exporting.ui @@ -11,7 +11,7 @@ - Export + ACTIONS_EXPORT @@ -25,7 +25,7 @@ - <b>Export format</b>: + EXPORTING_EXPORT_FORMAT @@ -35,7 +35,7 @@ - <b>Include</b>: + EXPORTING_INCLUDE @@ -49,7 +49,7 @@ - Include scheduling information + EXPORTING_INCLUDE_SCHEDULING_INFORMATION true @@ -59,7 +59,7 @@ - Include media + EXPORTING_INCLUDE_MEDIA true @@ -69,7 +69,7 @@ - Include tags + EXPORTING_INCLUDE_TAGS true @@ -79,7 +79,7 @@ - Include HTML and media references + EXPORTING_INCLUDE_HTML_AND_MEDIA_REFERENCES diff --git a/qt/aqt/forms/fields.ui b/qt/aqt/forms/fields.ui index c0dc3bfc3..bb823b3da 100644 --- a/qt/aqt/forms/fields.ui +++ b/qt/aqt/forms/fields.ui @@ -11,7 +11,7 @@ - Fields + EDITING_FIELDS true @@ -40,28 +40,28 @@ - Add + ACTIONS_ADD - Delete + ACTIONS_DELETE - Rename + ACTIONS_RENAME - Reposition + ACTIONS_REPOSITION @@ -87,7 +87,7 @@ - Editing Font + FIELDS_EDITING_FONT @@ -104,7 +104,7 @@ - Reverse text direction (RTL) + FIELDS_REVERSE_TEXT_DIRECTION_RTL @@ -121,21 +121,21 @@ - Remember last input when adding + FIELDS_REMEMBER_LAST_INPUT_WHEN_ADDING - Options + ACTIONS_OPTIONS - Sort by this field in the browser + FIELDS_SORT_BY_THIS_FIELD_IN_THE diff --git a/qt/aqt/forms/finddupes.ui b/qt/aqt/forms/finddupes.ui index 2884364c5..6ef6c2fc4 100644 --- a/qt/aqt/forms/finddupes.ui +++ b/qt/aqt/forms/finddupes.ui @@ -11,7 +11,7 @@ - Find Duplicates + BROWSING_FIND_DUPLICATES @@ -22,14 +22,14 @@ - Optional filter: + BROWSING_OPTIONAL_FILTER - Search in: + BROWSING_SEARCH_IN @@ -76,7 +76,7 @@ - about:blank + about:blank diff --git a/qt/aqt/forms/findreplace.ui b/qt/aqt/forms/findreplace.ui index ab0913096..8c5745e82 100644 --- a/qt/aqt/forms/findreplace.ui +++ b/qt/aqt/forms/findreplace.ui @@ -11,7 +11,7 @@ - Find and Replace + BROWSING_FIND_AND_REPLACE @@ -19,7 +19,7 @@ - <b>Find</b>: + BROWSING_FIND @@ -45,7 +45,7 @@ - <b>Replace With</b>: + BROWSING_REPLACE_WITH @@ -71,7 +71,7 @@ - <b>In</b>: + BROWSING_IN @@ -85,14 +85,14 @@ - Treat input as regular expression + BROWSING_TREAT_INPUT_AS_REGULAR_EXPRESSION - Ignore case + BROWSING_IGNORE_CASE true diff --git a/qt/aqt/forms/getaddons.ui b/qt/aqt/forms/getaddons.ui index c0fbb068a..ece079e39 100644 --- a/qt/aqt/forms/getaddons.ui +++ b/qt/aqt/forms/getaddons.ui @@ -11,13 +11,13 @@ - Install Add-on + ADDONS_INSTALL_ADDON - To browse add-ons, please click the browse button below.<br><br>When you've found an add-on you like, please paste its code below. You can paste multiple codes, separated by spaces. + ADDONS_TO_BROWSE_ADDONS_PLEASE_CLICK_THE true @@ -42,7 +42,7 @@ - Code: + ADDONS_CODE diff --git a/qt/aqt/forms/importing.ui b/qt/aqt/forms/importing.ui index e63ee22b7..5a1bd1281 100644 --- a/qt/aqt/forms/importing.ui +++ b/qt/aqt/forms/importing.ui @@ -11,13 +11,13 @@ - Import + ACTIONS_IMPORT - Import options + IMPORTING_IMPORT_OPTIONS @@ -31,14 +31,14 @@ - Type + NOTETYPES_TYPE - Deck + DECKS_DECK @@ -55,17 +55,17 @@ - Update existing notes when first field matches + IMPORTING_UPDATE_EXISTING_NOTES_WHEN_FIRST_FIELD - Ignore lines where first field matches existing note + IMPORTING_IGNORE_LINES_WHERE_FIRST_FIELD_MATCHES - Import even if existing note has same first field + IMPORTING_IMPORT_EVEN_IF_EXISTING_NOTE_HAS @@ -73,7 +73,7 @@ - Allow HTML in fields + IMPORTING_ALLOW_HTML_IN_FIELDS @@ -82,7 +82,7 @@ - Tag modified notes: + IMPORTING_TAG_MODIFIED_NOTES @@ -103,7 +103,7 @@ - Field mapping + IMPORTING_FIELD_MAPPING diff --git a/qt/aqt/forms/main.ui b/qt/aqt/forms/main.ui index ab4fcc56e..fd8a57476 100644 --- a/qt/aqt/forms/main.ui +++ b/qt/aqt/forms/main.ui @@ -23,7 +23,7 @@ - Anki + Anki @@ -51,7 +51,7 @@ - &Help + QT_ACCEL_HELP @@ -60,13 +60,13 @@ - &Edit + QT_ACCEL_EDIT - &File + QT_ACCEL_FILE @@ -77,7 +77,7 @@ - &Tools + QT_ACCEL_TOOLS @@ -98,7 +98,7 @@ - E&xit + QT_ACCEL_EXIT Ctrl+Q @@ -106,10 +106,10 @@ - &Preferences... + QT_ACCEL_PREFERENCES - Configure interface language and options + QT_MISC_CONFIGURE_INTERFACE_LANGUAGE_AND_OPTIONS Ctrl+P @@ -120,7 +120,7 @@ - &About... + QT_ACCEL_ABOUT QAction::AboutRole @@ -131,7 +131,7 @@ false - &Undo + QT_ACCEL_UNDO Ctrl+Z @@ -139,25 +139,25 @@ - Check &Media... + QT_ACCEL_CHECK_MEDIA - Check the files in the media directory + QT_MISC_CHECK_THE_FILES_IN_THE_MEDIA - &Open Add-ons Folder... + QT_ACCEL_OPEN_ADDONS_FOLDER - &Support Anki... + QT_ACCEL_SUPPORT_ANKI - &Browse and Install... + QT_ACCEL_BROWSE_AND_INSTALL @@ -165,12 +165,12 @@ - &Check Database + QT_ACCEL_CHECK_DATABASE - &Guide... + QT_ACCEL_GUIDE F1 @@ -178,7 +178,7 @@ - &Switch Profile + QT_ACCEL_SWITCH_PROFILE Ctrl+Shift+P @@ -186,7 +186,7 @@ - &Export... + QT_ACCEL_EXPORT Ctrl+E @@ -194,7 +194,7 @@ - &Import... + QT_ACCEL_IMPORT Ctrl+Shift+I @@ -202,7 +202,7 @@ - Study Deck... + QT_MISC_STUDY_DECK / @@ -210,12 +210,12 @@ - Empty Cards... + QT_MISC_EMPTY_CARDS - Create Filtered Deck... + QT_MISC_CREATE_FILTERED_DECK F @@ -223,7 +223,7 @@ - Manage Note Types + QT_MISC_MANAGE_NOTE_TYPES Ctrl+Shift+N @@ -231,7 +231,7 @@ - Add-ons + QT_MISC_ADDONS Ctrl+Shift+A diff --git a/qt/aqt/forms/modelopts.ui b/qt/aqt/forms/modelopts.ui index 60c09ca50..a16239ed5 100644 --- a/qt/aqt/forms/modelopts.ui +++ b/qt/aqt/forms/modelopts.ui @@ -24,20 +24,20 @@ - LaTeX + EDITING_LATEX - Create scalable images with dvisvgm + NOTETYPES_CREATE_SCALABLE_IMAGES_WITH_DVISVGM - Header + NOTETYPES_HEADER @@ -51,7 +51,7 @@ - Footer + NOTETYPES_FOOTER diff --git a/qt/aqt/forms/models.ui b/qt/aqt/forms/models.ui index 9e9158d61..12d745187 100644 --- a/qt/aqt/forms/models.ui +++ b/qt/aqt/forms/models.ui @@ -14,7 +14,7 @@ - Note Types + NOTETYPES_NOTE_TYPES diff --git a/qt/aqt/forms/preferences.ui b/qt/aqt/forms/preferences.ui index 8eee4485b..d5afcb135 100644 --- a/qt/aqt/forms/preferences.ui +++ b/qt/aqt/forms/preferences.ui @@ -6,12 +6,12 @@ 0 0 - 424 + 632 374 - Preferences + PREFERENCES_PREFERENCES @@ -24,7 +24,7 @@ - Basic + PREFERENCES_BASIC @@ -58,42 +58,42 @@ - Hardware acceleration (faster, may cause display issues) + PREFERENCES_HARDWARE_ACCELERATION_FASTER_MAY_CAUSE_DISPLAY - Show play buttons on cards with audio + PREFERENCES_SHOW_PLAY_BUTTONS_ON_CARDS_WITH - Interrupt current audio when answering + PREFERENCES_INTERRUPT_CURRENT_AUDIO_WHEN_ANSWERING - Paste clipboard images as PNG + PREFERENCES_PASTE_CLIPBOARD_IMAGES_AS_PNG - Paste without shift key strips formatting + PREFERENCES_PASTE_WITHOUT_SHIFT_KEY_STRIPS_FORMATTING - Night mode + PREFERENCES_NIGHT_MODE @@ -101,12 +101,12 @@ - When adding, default to current deck + PREFERENCES_WHEN_ADDING_DEFAULT_TO_CURRENT_DECK - Change deck depending on note type + PREFERENCES_CHANGE_DECK_DEPENDING_ON_NOTE_TYPE @@ -116,14 +116,14 @@ - User interface size + PREFERENCES_USER_INTERFACE_SIZE - % + % 100 @@ -171,34 +171,34 @@ - Scheduling + PREFERENCES_SCHEDULING - Show next review time above answer buttons + PREFERENCES_SHOW_NEXT_REVIEW_TIME_ABOVE_ANSWER - Show remaining card count during review + PREFERENCES_SHOW_REMAINING_CARD_COUNT_DURING_REVIEW - Show learning cards with larger steps before reviews + PREFERENCES_SHOW_LEARNING_CARDS_WITH_LARGER_STEPS - Anki 2.1 scheduler (beta) + PREFERENCES_ANKI_21_SCHEDULER_BETA @@ -220,7 +220,7 @@ - mins + PREFERENCES_MINS @@ -247,28 +247,28 @@ - Timebox time limit + PREFERENCES_TIMEBOX_TIME_LIMIT - hours past midnight + PREFERENCES_HOURS_PAST_MIDNIGHT - Learn ahead limit + PREFERENCES_LEARN_AHEAD_LIMIT - mins + PREFERENCES_MINS @@ -288,7 +288,7 @@ - Next day starts at + PREFERENCES_NEXT_DAY_STARTS_AT @@ -311,7 +311,7 @@ - Network + PREFERENCES_NETWORK @@ -339,7 +339,7 @@ - <b>Synchronisation</b> + PREFERENCES_SYNCHRONISATION true @@ -352,28 +352,28 @@ - Synchronize audio and images too + PREFERENCES_SYNCHRONIZE_AUDIO_AND_IMAGES_TOO - Automatically sync on profile open/close + PREFERENCES_AUTOMATICALLY_SYNC_ON_PROFILE_OPENCLOSE - Periodically sync media + PREFERENCES_PERIODICALLY_SYNC_MEDIA - On next sync, force changes in one direction + PREFERENCES_ON_NEXT_SYNC_FORCE_CHANGES_IN @@ -456,7 +456,7 @@ - Backups + PREFERENCES_BACKUPS @@ -477,7 +477,7 @@ - <html><head/><body><p><span style=" font-weight:600;">Backups</span><br/>Anki will create a backup of your collection each time it is closed.</p></body></html> + PREFERENCES_BACKUPSANKI_WILL_CREATE_A_BACKUP_OF true @@ -489,7 +489,7 @@ - Keep + PREFERENCES_KEEP @@ -512,7 +512,7 @@ - backups + PREFERENCES_BACKUPS2 @@ -534,14 +534,14 @@ - You can restore backups via File>Switch Profile. + PREFERENCES_YOU_CAN_RESTORE_BACKUPS_VIA_FILESWITCH - Note: Media is not backed up. Please create a periodic backup of your Anki folder to be safe. + PREFERENCES_NOTE_MEDIA_IS_NOT_BACKED_UP true @@ -564,7 +564,7 @@ - Some settings will take effect after you restart Anki. + PREFERENCES_SOME_SETTINGS_WILL_TAKE_EFFECT_AFTER Qt::AlignCenter diff --git a/qt/aqt/forms/profiles.ui b/qt/aqt/forms/profiles.ui index 064302bd1..760dbf4f1 100644 --- a/qt/aqt/forms/profiles.ui +++ b/qt/aqt/forms/profiles.ui @@ -11,7 +11,7 @@ - Profiles + PROFILES_PROFILES @@ -33,7 +33,7 @@ - Open + PROFILES_OPEN true @@ -43,28 +43,28 @@ - Add + ACTIONS_ADD - Rename + ACTIONS_RENAME - Delete + ACTIONS_DELETE - Quit + PROFILES_QUIT @@ -84,7 +84,7 @@ - Open Backup... + PROFILES_OPEN_BACKUP diff --git a/qt/aqt/forms/progress.ui b/qt/aqt/forms/progress.ui index 5dbfdbbc7..2b575b398 100644 --- a/qt/aqt/forms/progress.ui +++ b/qt/aqt/forms/progress.ui @@ -11,7 +11,7 @@ - Dialog + Dialog diff --git a/qt/aqt/forms/reposition.ui b/qt/aqt/forms/reposition.ui index cba8bb861..1310badc9 100644 --- a/qt/aqt/forms/reposition.ui +++ b/qt/aqt/forms/reposition.ui @@ -11,7 +11,7 @@ - Reposition New Cards + BROWSING_REPOSITION_NEW_CARDS @@ -26,7 +26,7 @@ - Start position: + BROWSING_START_POSITION @@ -46,7 +46,7 @@ - Step: + BROWSING_STEP @@ -65,14 +65,14 @@ - Randomize order + BROWSING_RANDOMIZE_ORDER - Shift position of existing cards + BROWSING_SHIFT_POSITION_OF_EXISTING_CARDS true diff --git a/qt/aqt/forms/reschedule.ui b/qt/aqt/forms/reschedule.ui index 26e9d9cfb..e67d4b67e 100644 --- a/qt/aqt/forms/reschedule.ui +++ b/qt/aqt/forms/reschedule.ui @@ -11,13 +11,13 @@ - Reschedule + BROWSING_RESCHEDULE - Place at end of new card queue + BROWSING_PLACE_AT_END_OF_NEW_CARD true @@ -27,7 +27,7 @@ - Place in review queue with interval between: + BROWSING_PLACE_IN_REVIEW_QUEUE_WITH_INTERVAL @@ -54,7 +54,7 @@ - ~ + ~ @@ -75,7 +75,7 @@ - days + SCHEDULING_DAYS diff --git a/qt/aqt/forms/setgroup.ui b/qt/aqt/forms/setgroup.ui index 151517058..22d9eb888 100644 --- a/qt/aqt/forms/setgroup.ui +++ b/qt/aqt/forms/setgroup.ui @@ -11,13 +11,13 @@ - Anki + Anki - Move cards to deck: + BROWSING_MOVE_CARDS_TO_DECK diff --git a/qt/aqt/forms/setlang.ui b/qt/aqt/forms/setlang.ui index 44503186f..3b3467c80 100644 --- a/qt/aqt/forms/setlang.ui +++ b/qt/aqt/forms/setlang.ui @@ -11,13 +11,13 @@ - Anki + Anki - Interface language: + PREFERENCES_INTERFACE_LANGUAGE diff --git a/qt/aqt/forms/stats.ui b/qt/aqt/forms/stats.ui index 7642c135d..07cc79f64 100644 --- a/qt/aqt/forms/stats.ui +++ b/qt/aqt/forms/stats.ui @@ -11,7 +11,7 @@ - Statistics + Statistics @@ -33,7 +33,7 @@ - about:blank + about:blank @@ -77,7 +77,7 @@ - deck + deck true @@ -87,7 +87,7 @@ - collection + collection @@ -103,7 +103,7 @@ - 1 month + 1 month true @@ -113,14 +113,14 @@ - 1 year + 1 year - deck life + deck life diff --git a/qt/aqt/forms/studydeck.ui b/qt/aqt/forms/studydeck.ui index 3f9a88168..59b146fe9 100644 --- a/qt/aqt/forms/studydeck.ui +++ b/qt/aqt/forms/studydeck.ui @@ -11,7 +11,7 @@ - Study Deck + DECKS_STUDY_DECK @@ -19,7 +19,7 @@ - Filter: + DECKS_FILTER diff --git a/qt/aqt/forms/taglimit.ui b/qt/aqt/forms/taglimit.ui index 43e23dc3f..88376c74c 100644 --- a/qt/aqt/forms/taglimit.ui +++ b/qt/aqt/forms/taglimit.ui @@ -11,13 +11,13 @@ - Selective Study + CUSTOM_STUDY_SELECTIVE_STUDY - Require one or more of these tags: + CUSTOM_STUDY_REQUIRE_ONE_OR_MORE_OF_THESE @@ -40,7 +40,7 @@ - Select tags to exclude: + CUSTOM_STUDY_SELECT_TAGS_TO_EXCLUDE diff --git a/qt/aqt/forms/template.ui b/qt/aqt/forms/template.ui index afc4264b8..9913a9926 100644 --- a/qt/aqt/forms/template.ui +++ b/qt/aqt/forms/template.ui @@ -17,7 +17,7 @@ - Form + CARD_TEMPLATES_FORM diff --git a/qt/aqt/importing.py b/qt/aqt/importing.py index aa1d2e9d5..4116673e5 100644 --- a/qt/aqt/importing.py +++ b/qt/aqt/importing.py @@ -1,7 +1,6 @@ # coding=utf-8 # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - import json import os import re @@ -16,7 +15,6 @@ import anki.importing as importing import aqt.deckchooser import aqt.forms import aqt.modelchooser -from anki.lang import _, ngettext from aqt import AnkiQt, gui_hooks from aqt.qt import * from aqt.utils import ( @@ -43,14 +41,14 @@ class ChangeMap(QDialog): n = 0 setCurrent = False for field in self.model["flds"]: - item = QListWidgetItem(_("Map to %s") % field["name"]) + item = QListWidgetItem(tr(TR.IMPORTING_MAP_TO, val=field["name"])) self.frm.fields.addItem(item) if current == field["name"]: setCurrent = True self.frm.fields.setCurrentRow(n) n += 1 - self.frm.fields.addItem(QListWidgetItem(_("Map to Tags"))) - self.frm.fields.addItem(QListWidgetItem(_("Ignore field"))) + self.frm.fields.addItem(QListWidgetItem(tr(TR.IMPORTING_MAP_TO_TAGS))) + self.frm.fields.addItem(QListWidgetItem(tr(TR.IMPORTING_IGNORE_FIELD))) if not setCurrent: if current == "_tags": self.frm.fields.setCurrentRow(n) @@ -100,7 +98,7 @@ class ImportDialog(QDialog): self.frm.tagModified.setText(self.mw.pm.profile.get("tagModified", "")) self.frm.tagModified.setCol(self.mw.col) # import button - b = QPushButton(_("Import")) + b = QPushButton(tr(TR.ACTIONS_IMPORT)) self.frm.buttonBox.addButton(b, QDialogButtonBox.AcceptRole) self.exec_() @@ -119,12 +117,7 @@ class ImportDialog(QDialog): def onDelimiter(self): str = ( getOnlyText( - _( - """\ -By default, Anki will detect the character between fields, such as -a tab, comma, and so on. If Anki is detecting the character incorrectly, -you can enter it here. Use \\t to represent tab.""" - ), + tr(TR.IMPORTING_BY_DEFAULT_ANKI_WILL_DETECT_THE), self, help="importing", ) @@ -133,10 +126,7 @@ you can enter it here. Use \\t to represent tab.""" str = str.replace("\\t", "\t") if len(str) > 1: showWarning( - _( - "Multi-character separators are not supported. " - "Please enter one character only." - ) + tr(TR.IMPORTING_MULTICHARACTER_SEPARATORS_ARE_NOT_SUPPORTED_PLEASE) ) return self.hideMapping() @@ -156,24 +146,24 @@ you can enter it here. Use \\t to represent tab.""" else: d = self.importer.dialect.delimiter if d == "\t": - d = _("Tab") + d = tr(TR.IMPORTING_TAB) elif d == ",": - d = _("Comma") + d = tr(TR.IMPORTING_COMMA) elif d == " ": - d = _("Space") + d = tr(TR.STUDYING_SPACE) elif d == ";": - d = _("Semicolon") + d = tr(TR.IMPORTING_SEMICOLON) elif d == ":": - d = _("Colon") + d = tr(TR.IMPORTING_COLON) else: d = repr(d) - txt = _("Fields separated by: %s") % d + txt = tr(TR.IMPORTING_FIELDS_SEPARATED_BY, val=d) self.frm.autoDetect.setText(txt) def accept(self): self.importer.mapping = self.mapping if not self.importer.mappingOk(): - showWarning(_("The first field of the note type must be mapped.")) + showWarning(tr(TR.IMPORTING_THE_FIRST_FIELD_OF_THE_NOTE)) return self.importer.importMode = self.frm.importMode.currentIndex() self.mw.pm.profile["importMode"] = self.importer.importMode @@ -186,7 +176,7 @@ you can enter it here. Use \\t to represent tab.""" self.mw.col.models.save(self.importer.model, updateReqs=False) self.mw.col.decks.select(did) self.mw.progress.start() - self.mw.checkpoint(_("Import")) + self.mw.checkpoint(tr(TR.ACTIONS_IMPORT)) def on_done(future: Future): self.mw.progress.finish() @@ -208,7 +198,7 @@ you can enter it here. Use \\t to represent tab.""" showText(msg) return else: - txt = _("Importing complete.") + "\n" + txt = tr(TR.IMPORTING_IMPORTING_COMPLETE) + "\n" if self.importer.log: txt += "\n".join(self.importer.log) self.close() @@ -248,16 +238,16 @@ you can enter it here. Use \\t to represent tab.""" self.grid.setSpacing(6) fields = self.importer.fields() for num in range(len(self.mapping)): - text = _("Field %d of file is:") % (num + 1) + text = tr(TR.IMPORTING_FIELD_OF_FILE_IS, val=num + 1) self.grid.addWidget(QLabel(text), num, 0) if self.mapping[num] == "_tags": - text = _("mapped to Tags") + text = tr(TR.IMPORTING_MAPPED_TO_TAGS) elif self.mapping[num]: - text = _("mapped to %s") % self.mapping[num] + text = tr(TR.IMPORTING_MAPPED_TO, val=self.mapping[num]) else: - text = _("") + text = tr(TR.IMPORTING_IGNORED) self.grid.addWidget(QLabel(text), num, 1) - button = QPushButton(_("Change")) + button = QPushButton(tr(TR.IMPORTING_CHANGE)) self.grid.addWidget(button, num, 2) qconnect(button.clicked, lambda _, s=self, n=num: s.changeMappingNum(n)) @@ -298,17 +288,12 @@ you can enter it here. Use \\t to represent tab.""" def showUnicodeWarning(): """Shorthand to show a standard warning.""" - showWarning( - _( - "Selected file was not in UTF-8 format. Please see the " - "importing section of the manual." - ) - ) + showWarning(tr(TR.IMPORTING_SELECTED_FILE_WAS_NOT_IN_UTF8)) def onImport(mw): filt = ";;".join([x[0] for x in importing.Importers]) - file = getFile(mw, _("Import"), None, key="import", filter=filt) + file = getFile(mw, tr(TR.ACTIONS_IMPORT), None, key="import", filter=filt) if not file: return file = str(file) @@ -316,18 +301,10 @@ def onImport(mw): head, ext = os.path.splitext(file) ext = ext.lower() if ext == ".anki": - showInfo( - _( - ".anki files are from a very old version of Anki. You can import them with Anki 2.0, available on the Anki website." - ) - ) + showInfo(tr(TR.IMPORTING_ANKI_FILES_ARE_FROM_A_VERY)) return elif ext == ".anki2": - showInfo( - _( - ".anki2 files are not directly importable - please import the .apkg or .zip file you have received instead." - ) - ) + showInfo(tr(TR.IMPORTING_ANKI2_FILES_ARE_NOT_DIRECTLY_IMPORTABLE)) return importFile(mw, file) @@ -364,7 +341,7 @@ def importFile(mw, file): mw.progress.finish() msg = repr(str(e)) if msg == "'unknownFormat'": - showWarning(_("Unknown file format.")) + showWarning(tr(TR.IMPORTING_UNKNOWN_FILE_FORMAT)) else: msg = tr(TR.IMPORTING_FAILED_DEBUG_INFO) + "\n" msg += str(traceback.format_exc()) @@ -399,20 +376,12 @@ def importFile(mw, file): except Exception as e: err = repr(str(e)) if "invalidFile" in err: - msg = _( - """\ - Invalid file. Please restore from backup.""" - ) + msg = tr(TR.IMPORTING_INVALID_FILE_PLEASE_RESTORE_FROM_BACKUP) showWarning(msg) elif "invalidTempFolder" in err: showWarning(mw.errorHandler.tempFolderMsg()) elif "readonly" in err: - showWarning( - _( - """\ - Unable to import from a read-only file.""" - ) - ) + showWarning(tr(TR.IMPORTING_UNABLE_TO_IMPORT_FROM_A_READONLY)) else: msg = tr(TR.IMPORTING_FAILED_DEBUG_INFO) + "\n" msg += str(traceback.format_exc()) @@ -430,13 +399,7 @@ def importFile(mw, file): def invalidZipMsg(): - return _( - """\ -This file does not appear to be a valid .apkg file. If you're getting this \ -error from a file downloaded from AnkiWeb, chances are that your download \ -failed. Please try again, and if the problem persists, please try again \ -with a different browser.""" - ) + return tr(TR.IMPORTING_THIS_FILE_DOES_NOT_APPEAR_TO) def setupApkgImport(mw, importer): @@ -450,11 +413,7 @@ def setupApkgImport(mw, importer): # adding return True if not mw.restoringBackup and not askUser( - _( - """\ -This will delete your existing collection and replace it with the data in \ -the file you're importing. Are you sure?""" - ), + tr(TR.IMPORTING_THIS_WILL_DELETE_YOUR_EXISTING_COLLECTION), msgfunc=QMessageBox.warning, defaultno=True, ): @@ -491,8 +450,7 @@ def _replaceWithApkg(mw, filename, backup): ): mw.taskman.run_on_main( lambda n=n: mw.progress.update( - ngettext("Processed %d media file", "Processed %d media files", n) - % n + tr(TR.IMPORTING_PROCESSED_MEDIA_FILE, count=n) ) ) size = z.getinfo(cStr).file_size @@ -513,7 +471,7 @@ def _replaceWithApkg(mw, filename, backup): future.result() except Exception as e: print(e) - showWarning(_("The provided file is not a valid .apkg file.")) + showWarning(tr(TR.IMPORTING_THE_PROVIDED_FILE_IS_NOT_A)) return if not mw.loadCollection(): @@ -521,6 +479,6 @@ def _replaceWithApkg(mw, filename, backup): if backup: mw.col.modSchema(check=False) - tooltip(_("Importing complete.")) + tooltip(tr(TR.IMPORTING_IMPORTING_COMPLETE)) mw.taskman.run_in_background(do_import, on_done) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 2d5f48f58..670c7687a 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -1,7 +1,6 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations import enum @@ -30,7 +29,6 @@ from anki import hooks from anki.collection import Collection from anki.decks import Deck from anki.hooks import runHook -from anki.lang import _, ngettext from anki.rsbackend import RustBackend from anki.sound import AVTag, SoundOrVideoTag from anki.utils import devMode, ids2str, intTime, isMac, isWin, splitFields @@ -120,16 +118,11 @@ class AnkiQt(QMainWindow): self.setupAddons(args) self.finish_ui_setup() except: - showInfo(_("Error during startup:\n%s") % traceback.format_exc()) + showInfo(tr(TR.QT_MISC_ERROR_DURING_STARTUP, val=traceback.format_exc())) sys.exit(1) # must call this after ui set up if self.safeMode: - tooltip( - _( - "Shift key was held down. Skipping automatic " - "syncing and add-on loading." - ) - ) + tooltip(tr(TR.QT_MISC_SHIFT_KEY_WAS_HELD_DOWN_SKIPPING)) # were we given a file to import? if args and args[0] and not self._isAddon(args[0]): self.onAppMsg(args[0]) @@ -291,10 +284,10 @@ class AnkiQt(QMainWindow): return not checkInvalidFilename(name) and name != "addons21" def onAddProfile(self): - name = getOnlyText(_("Name:")).strip() + name = getOnlyText(tr(TR.ACTIONS_NAME)).strip() if name: if name in self.pm.profiles(): - return showWarning(_("Name exists.")) + return showWarning(tr(TR.QT_MISC_NAME_EXISTS)) if not self.profileNameOk(name): return self.pm.create(name) @@ -302,13 +295,13 @@ class AnkiQt(QMainWindow): self.refreshProfilesList() def onRenameProfile(self): - name = getOnlyText(_("New name:"), default=self.pm.name).strip() + name = getOnlyText(tr(TR.ACTIONS_NEW_NAME), default=self.pm.name).strip() if not name: return if name == self.pm.name: return if name in self.pm.profiles(): - return showWarning(_("Name exists.")) + return showWarning(tr(TR.QT_MISC_NAME_EXISTS)) if not self.profileNameOk(name): return self.pm.rename(name) @@ -317,14 +310,10 @@ class AnkiQt(QMainWindow): def onRemProfile(self): profs = self.pm.profiles() if len(profs) < 2: - return showWarning(_("There must be at least one profile.")) + return showWarning(tr(TR.QT_MISC_THERE_MUST_BE_AT_LEAST_ONE)) # sure? if not askUser( - _( - """\ -All cards, notes, and media for this profile will be deleted. \ -Are you sure?""" - ), + tr(TR.QT_MISC_ALL_CARDS_NOTES_AND_MEDIA_FOR), msgfunc=QMessageBox.warning, defaultno=True, ): @@ -334,10 +323,7 @@ Are you sure?""" def onOpenBackup(self): if not askUser( - _( - """\ -Replace your collection with an earlier backup?""" - ), + tr(TR.QT_MISC_REPLACE_YOUR_COLLECTION_WITH_AN_EARLIER), msgfunc=QMessageBox.warning, defaultno=True, ): @@ -348,7 +334,7 @@ Replace your collection with an earlier backup?""" getFile( self.profileDiag, - _("Revert to backup"), + tr(TR.QT_MISC_REVERT_TO_BACKUP), cb=doOpen, filter="*.colpkg", dir=self.pm.backupFolder(), @@ -359,23 +345,13 @@ Replace your collection with an earlier backup?""" # move the existing collection to the trash, as it may not open self.pm.trashCollection() except: - showWarning( - _( - "Unable to move existing file to trash - please try restarting your computer." - ) - ) + showWarning(tr(TR.QT_MISC_UNABLE_TO_MOVE_EXISTING_FILE_TO)) return self.pendingImport = path self.restoringBackup = True - showInfo( - _( - """\ -Automatic syncing and backups have been disabled while restoring. To enable them again, \ -close the profile or restart Anki.""" - ) - ) + showInfo(tr(TR.QT_MISC_AUTOMATIC_SYNCING_AND_BACKUPS_HAVE_BEEN)) self.onOpenProfile() @@ -485,7 +461,7 @@ close the profile or restart Anki.""" return anki.sound.strip_av_refs(text) def prepare_card_text_for_display(self, text: str) -> str: - text = self.col.media.escapeImages(text) + text = self.col.media.escape_media_filenames(text) text = self._add_play_buttons(text) return text @@ -553,9 +529,9 @@ close the profile or restart Anki.""" if not self.col: return if self.restoringBackup: - label = _("Closing...") + label = tr(TR.QT_MISC_CLOSING) else: - label = _("Backing Up...") + label = tr(TR.QT_MISC_BACKING_UP) self.progress.start(label=label) corrupt = False try: @@ -573,15 +549,7 @@ close the profile or restart Anki.""" self.col = None self.progress.finish() if corrupt: - showWarning( - _( - "Your collection file appears to be corrupt. \ -This can happen when the file is copied or moved while Anki is open, or \ -when the collection is stored on a network or cloud drive. If problems \ -persist after restarting your computer, please open an automatic backup \ -from the profile screen." - ) - ) + showWarning(tr(TR.QT_MISC_YOUR_COLLECTION_FILE_APPEARS_TO_BE)) if not corrupt and not self.restoringBackup: self.backup() @@ -641,7 +609,7 @@ from the profile screen." # have two weeks passed? if (intTime() - self.pm.profile["lastOptimize"]) < 86400 * 14: return - self.progress.start(label=_("Optimizing...")) + self.progress.start(label=tr(TR.QT_MISC_OPTIMIZING)) self.col.optimize() self.pm.profile["lastOptimize"] = intTime() self.pm.save() @@ -672,7 +640,7 @@ from the profile screen." def _selectedDeck(self) -> Optional[Deck]: did = self.col.decks.selected() if not self.col.decks.nameOrNone(did): - showInfo(_("Please select a deck.")) + showInfo(tr(TR.QT_MISC_PLEASE_SELECT_A_DECK)) return None return self.col.decks.get(did) @@ -732,8 +700,8 @@ from the profile screen." return web_context = ResetRequired(self) self.web.set_bridge_command(lambda url: self.delayedMaybeReset(), web_context) - i = _("Waiting for editing to finish.") - b = self.button("refresh", _("Resume Now"), id="resume") + i = tr(TR.QT_MISC_WAITING_FOR_EDITING_TO_FINISH) + b = self.button("refresh", tr(TR.QT_MISC_RESUME_NOW), id="resume") self.web.stdHtml( """
    @@ -762,7 +730,7 @@ from the profile screen." ) -> str: class_ = "but " + class_ if key: - key = _("Shortcut key: %s") % key + key = tr(TR.ACTIONS_SHORTCUT_KEY, val=key) else: key = "" return """ @@ -1033,17 +1001,17 @@ title="%s" %s>%s""" % ( gui_hooks.review_did_undo(cid) else: self.reset() - tooltip(_("Reverted to state prior to '%s'.") % n.lower()) + tooltip(tr(TR.QT_MISC_REVERTED_TO_STATE_PRIOR_TO, val=n.lower())) gui_hooks.state_did_revert(n) self.maybeEnableUndo() def maybeEnableUndo(self) -> None: if self.col and self.col.undoName(): - self.form.actionUndo.setText(_("Undo %s") % self.col.undoName()) + self.form.actionUndo.setText(tr(TR.QT_MISC_UNDO2, val=self.col.undoName())) self.form.actionUndo.setEnabled(True) gui_hooks.undo_state_did_change(True) else: - self.form.actionUndo.setText(_("Undo")) + self.form.actionUndo.setText(tr(TR.QT_MISC_UNDO)) self.form.actionUndo.setEnabled(False) gui_hooks.undo_state_did_change(False) @@ -1119,7 +1087,7 @@ title="%s" %s>%s""" % ( import aqt.importing if not os.path.exists(path): - showInfo(_("Please use File>Import to import this file.")) + showInfo(tr(TR.QT_MISC_PLEASE_USE_FILEIMPORT_TO_IMPORT_THIS)) return None aqt.importing.importFile(self, path) @@ -1161,9 +1129,9 @@ title="%s" %s>%s""" % ( if not search: if not deck["dyn"]: search = 'deck:"%s" ' % deck["name"] - while self.col.decks.id_for_name(_("Filtered Deck %d") % n): + while self.col.decks.id_for_name(tr(TR.QT_MISC_FILTERED_DECK, val=n)): n += 1 - name = _("Filtered Deck %d") % n + name = tr(TR.QT_MISC_FILTERED_DECK, val=n) did = self.col.decks.new_filtered(name) diag = aqt.dyndeckconf.DeckConf(self, first=True, search=search) if not diag.ok: @@ -1219,27 +1187,11 @@ title="%s" %s>%s""" % ( aqt.update.showMessages(self, data) def clockIsOff(self, diff): - diffText = ngettext("%s second", "%s seconds", diff) % diff - warn = ( - _( - """\ -In order to ensure your collection works correctly when moved between \ -devices, Anki requires your computer's internal clock to be set correctly. \ -The internal clock can be wrong even if your system is showing the correct \ -local time. - -Please go to the time settings on your computer and check the following: - -- AM/PM -- Clock drift -- Day, month and year -- Timezone -- Daylight savings - -Difference to correct time: %s.""" - ) - % diffText - ) + if devMode: + print("clock is off; ignoring") + return + diffText = tr(TR.QT_MISC_SECOND, count=diff) + warn = tr(TR.QT_MISC_IN_ORDER_TO_ENSURE_YOUR_COLLECTION, val="%s") % diffText showWarning(warn) self.app.closeAllWindows() @@ -1283,13 +1235,7 @@ Difference to correct time: %s.""" self._activeWindowOnPlay: Optional[QWidget] = None def onOdueInvalid(self): - showWarning( - _( - """\ -Invalid property found on card. Please use Tools>Check Database, \ -and if the problem comes up again, please ask on the support site.""" - ) - ) + showWarning(tr(TR.QT_MISC_INVALID_PROPERTY_FOUND_ON_CARD_PLEASE)) def _isVideo(self, tag: AVTag) -> bool: if isinstance(tag, SoundOrVideoTag): @@ -1338,15 +1284,7 @@ and if the problem comes up again, please ask on the support site.""" progress_shown = self.progress.busy() if progress_shown: self.progress.finish() - ret = askUser( - _( - """\ -The requested change will require a full upload of the database when \ -you next synchronize your collection. If you have reviews or other changes \ -waiting on another device that haven't been synchronized here yet, they \ -will be lost. Continue?""" - ) - ) + ret = askUser(tr(TR.QT_MISC_THE_REQUESTED_CHANGE_WILL_REQUIRE_A)) if progress_shown: self.progress.start() return ret @@ -1357,15 +1295,7 @@ will be lost. Continue?""" True if confirmed or already modified.""" if self.col.schemaChanged(): return True - return askUser( - _( - """\ -The requested change will require a full upload of the database when \ -you next synchronize your collection. If you have reviews or other changes \ -waiting on another device that haven't been synchronized here yet, they \ -will be lost. Continue?""" - ) - ) + return askUser(tr(TR.QT_MISC_THE_REQUESTED_CHANGE_WILL_REQUIRE_A)) # Advanced features ########################################################################## @@ -1534,7 +1464,7 @@ will be lost. Continue?""" ) frm.log.appendPlainText(to_append) except UnicodeDecodeError: - to_append = _("") + to_append = tr(TR.QT_MISC_NON_UNICODE_TEXT) to_append = gui_hooks.debug_console_did_evaluate_python( to_append, text, frm ) @@ -1597,18 +1527,15 @@ will be lost. Continue?""" return None self.pendingImport = buf if is_addon: - msg = _("Add-on will be installed when a profile is opened.") + msg = tr(TR.QT_MISC_ADDON_WILL_BE_INSTALLED_WHEN_A) else: - msg = _("Deck will be imported when a profile is opened.") + msg = tr(TR.QT_MISC_DECK_WILL_BE_IMPORTED_WHEN_A) return tooltip(msg) if not self.interactiveState() or self.progress.busy(): # we can't raise the main window while in profile dialog, syncing, etc if buf != "raise": showInfo( - _( - """\ -Please ensure a profile is open and Anki is not busy, then try again.""" - ), + tr(TR.QT_MISC_PLEASE_ENSURE_A_PROFILE_IS_OPEN), parent=None, ) return None diff --git a/qt/aqt/modelchooser.py b/qt/aqt/modelchooser.py index 36d78a2dd..ea63e6d60 100644 --- a/qt/aqt/modelchooser.py +++ b/qt/aqt/modelchooser.py @@ -3,10 +3,9 @@ # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html from typing import Optional -from anki.lang import _ from aqt import AnkiQt, gui_hooks from aqt.qt import * -from aqt.utils import shortcut +from aqt.utils import TR, shortcut, tr class ModelChooser(QHBoxLayout): @@ -37,11 +36,11 @@ class ModelChooser(QHBoxLayout): def setupModels(self) -> None: if self.label: - self.modelLabel = QLabel(_("Type")) + self.modelLabel = QLabel(tr(TR.NOTETYPES_TYPE)) self.addWidget(self.modelLabel) # models box self.models = QPushButton() - self.models.setToolTip(shortcut(_("Change Note Type (Ctrl+N)"))) + self.models.setToolTip(shortcut(tr(TR.QT_MISC_CHANGE_NOTE_TYPE_CTRLANDN))) QShortcut(QKeySequence("Ctrl+N"), self.widget, activated=self.on_activated) # type: ignore self.models.setAutoDefault(False) self.addWidget(self.models) @@ -73,7 +72,7 @@ class ModelChooser(QHBoxLayout): current = self.deck.models.current()["name"] # edit button - edit = QPushButton(_("Manage"), clicked=self.onEdit) # type: ignore + edit = QPushButton(tr(TR.QT_MISC_MANAGE), clicked=self.onEdit) # type: ignore def nameFunc(): return sorted(self.deck.models.allNames()) @@ -81,8 +80,8 @@ class ModelChooser(QHBoxLayout): ret = StudyDeck( self.mw, names=nameFunc, - accept=_("Choose"), - title=_("Choose Note Type"), + accept=tr(TR.ACTIONS_CHOOSE), + title=tr(TR.QT_MISC_CHOOSE_NOTE_TYPE), help="_notes", current=current, parent=self.widget, diff --git a/qt/aqt/models.py b/qt/aqt/models.py index dcb41f7de..9c07f876c 100644 --- a/qt/aqt/models.py +++ b/qt/aqt/models.py @@ -7,13 +7,13 @@ from typing import Any, List, Optional, Sequence import aqt.clayout from anki import stdmodels from anki.backend_pb2 import NoteTypeNameIDUseCount -from anki.lang import _, ngettext from anki.models import NoteType from anki.notes import Note from anki.rsbackend import pb from aqt import AnkiQt, gui_hooks from aqt.qt import * from aqt.utils import ( + TR, askUser, getText, maybeHideClose, @@ -21,6 +21,7 @@ from aqt.utils import ( restoreGeom, saveGeom, showInfo, + tr, ) @@ -33,7 +34,7 @@ class Models(QDialog): self.col = mw.col.weakref() assert self.col self.mm = self.col.models - self.mw.checkpoint(_("Note Types")) + self.mw.checkpoint(tr(TR.NOTETYPES_NOTE_TYPES)) self.form = aqt.forms.models.Ui_Dialog() self.form.setupUi(self) qconnect( @@ -54,20 +55,20 @@ class Models(QDialog): box = f.buttonBox default_buttons = [ - (_("Add"), self.onAdd), - (_("Rename"), self.onRename), - (_("Delete"), self.onDelete), + (tr(TR.ACTIONS_ADD), self.onAdd), + (tr(TR.ACTIONS_RENAME), self.onRename), + (tr(TR.ACTIONS_DELETE), self.onDelete), ] if self.fromMain: default_buttons.extend( [ - (_("Fields..."), self.onFields), - (_("Cards..."), self.onCards), + (tr(TR.NOTETYPES_FIELDS), self.onFields), + (tr(TR.NOTETYPES_CARDS), self.onCards), ] ) - default_buttons.append((_("Options..."), self.onAdvanced)) + default_buttons.append((tr(TR.NOTETYPES_OPTIONS), self.onAdvanced)) for label, func in gui_hooks.models_did_init_buttons(default_buttons, self): button = box.addButton(label, QDialogButtonBox.ActionRole) @@ -84,7 +85,7 @@ class Models(QDialog): def onRename(self) -> None: nt = self.current_notetype() - txt = getText(_("New name:"), default=nt["name"]) + txt = getText(tr(TR.ACTIONS_NEW_NAME), default=nt["name"]) name = txt[0].replace('"', "") if txt[1] and name: nt["name"] = name @@ -108,7 +109,7 @@ class Models(QDialog): self.models = notetypes for m in self.models: - mUse = ngettext("%d note", "%d notes", m.use_count) % m.use_count + mUse = tr(TR.BROWSING_NOTE_COUNT, count=m.use_count) item = QListWidgetItem("%s [%s]" % (m.name, mUse)) self.form.modelsList.addItem(item) self.form.modelsList.setCurrentRow(row) @@ -120,20 +121,20 @@ class Models(QDialog): def onAdd(self) -> None: m = AddModel(self.mw, self).get() if m: - txt = getText(_("Name:"), default=m["name"])[0].replace('"', "") + txt = getText(tr(TR.ACTIONS_NAME), default=m["name"])[0].replace('"', "") if txt: m["name"] = txt self.saveAndRefresh(m) def onDelete(self) -> None: if len(self.models) < 2: - showInfo(_("Please add another note type first."), parent=self) + showInfo(tr(TR.NOTETYPES_PLEASE_ADD_ANOTHER_NOTE_TYPE_FIRST), parent=self) return idx = self.form.modelsList.currentRow() if self.models[idx].use_count: - msg = _("Delete this note type and all its cards?") + msg = tr(TR.NOTETYPES_DELETE_THIS_NOTE_TYPE_AND_ALL) else: - msg = _("Delete this unused note type?") + msg = tr(TR.NOTETYPES_DELETE_THIS_UNUSED_NOTE_TYPE) if not askUser(msg, parent=self): return @@ -158,7 +159,7 @@ class Models(QDialog): frm.latexsvg.setChecked(nt.get("latexsvg", False)) frm.latexHeader.setText(nt["latexPre"]) frm.latexFooter.setText(nt["latexPost"]) - d.setWindowTitle(_("Options for %s") % nt["name"]) + d.setWindowTitle(tr(TR.ACTIONS_OPTIONS_FOR, val=nt["name"])) qconnect(frm.buttonBox.helpRequested, lambda: openHelp("math?id=latex")) restoreGeom(d, "modelopts") gui_hooks.models_advanced_will_show(d) @@ -209,12 +210,12 @@ class AddModel(QDialog): # standard models self.models = [] for (name, func) in stdmodels.get_stock_notetypes(self.col): - item = QListWidgetItem(_("Add: %s") % name) + item = QListWidgetItem(tr(TR.NOTETYPES_ADD, val=name)) self.dialog.models.addItem(item) self.models.append((True, func)) # add copies for m in sorted(self.col.models.all(), key=itemgetter("name")): - item = QListWidgetItem(_("Clone: %s") % m["name"]) + item = QListWidgetItem(tr(TR.NOTETYPES_CLONE, val=m["name"])) self.dialog.models.addItem(item) self.models.append((False, m)) # type: ignore self.dialog.models.setCurrentRow(0) diff --git a/qt/aqt/overview.py b/qt/aqt/overview.py index 76203ef56..2d0ed63bb 100644 --- a/qt/aqt/overview.py +++ b/qt/aqt/overview.py @@ -1,18 +1,16 @@ # -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations from dataclasses import dataclass from typing import Optional import aqt -from anki.lang import _ from aqt import gui_hooks from aqt.sound import av_player from aqt.toolbar import BottomBar -from aqt.utils import askUserDialog, openLink, shortcut, tooltip +from aqt.utils import TR, askUserDialog, openLink, shortcut, tooltip, tr class OverviewBottomBar: @@ -67,7 +65,7 @@ class Overview: self.mw.col.startTimebox() self.mw.moveToState("review") if self.mw.state == "overview": - tooltip(_("No cards are due yet.")) + tooltip(tr(TR.STUDYING_NO_CARDS_ARE_DUE_YET)) elif url == "anki": print("anki menu") elif url == "opts": @@ -128,13 +126,13 @@ class Overview: info = self.mw.col.sched.congratulations_info() if info.have_sched_buried and info.have_user_buried: opts = [ - _("Manually Buried Cards"), - _("Buried Siblings"), - _("All Buried Cards"), - _("Cancel"), + tr(TR.STUDYING_MANUALLY_BURIED_CARDS), + tr(TR.STUDYING_BURIED_SIBLINGS), + tr(TR.STUDYING_ALL_BURIED_CARDS), + tr(TR.ACTIONS_CANCEL), ] - diag = askUserDialog(_("What would you like to unbury?"), opts) + diag = askUserDialog(tr(TR.STUDYING_WHAT_WOULD_YOU_LIKE_TO_UNBURY), opts) diag.setDefault(0) ret = diag.run() if ret == opts[0]: @@ -184,20 +182,9 @@ class Overview: def _desc(self, deck): if deck["dyn"]: - desc = _( - """\ -This is a special deck for studying outside of the normal schedule.""" - ) - desc += " " + _( - """\ -Cards will be automatically returned to their original decks after you review \ -them.""" - ) - desc += " " + _( - """\ -Deleting this deck from the deck list will return all remaining cards \ -to their original deck.""" - ) + desc = tr(TR.STUDYING_THIS_IS_A_SPECIAL_DECK_FOR) + desc += " " + tr(TR.STUDYING_CARDS_WILL_BE_AUTOMATICALLY_RETURNED_TO) + desc += " " + tr(TR.STUDYING_DELETING_THIS_DECK_FROM_THE_DECK) else: desc = deck.get("desc", "") if not desc: @@ -226,13 +213,13 @@ to their original deck.""" %s""" % ( - _("New"), + tr(TR.ACTIONS_NEW), counts[0], - _("Learning"), + tr(TR.SCHEDULING_LEARNING), counts[1], - _("To Review"), + tr(TR.STUDYING_TO_REVIEW), counts[2], - but("study", _("Study Now"), id="study", extra=" autofocus"), + but("study", tr(TR.STUDYING_STUDY_NOW), id="study", extra=" autofocus"), ) _body = """ @@ -249,20 +236,20 @@ to their original deck.""" def _renderBottom(self): links = [ - ["O", "opts", _("Options")], + ["O", "opts", tr(TR.ACTIONS_OPTIONS)], ] if self.mw.col.decks.current()["dyn"]: - links.append(["R", "refresh", _("Rebuild")]) - links.append(["E", "empty", _("Empty")]) + links.append(["R", "refresh", tr(TR.ACTIONS_REBUILD)]) + links.append(["E", "empty", tr(TR.STUDYING_EMPTY)]) else: - links.append(["C", "studymore", _("Custom Study")]) + links.append(["C", "studymore", tr(TR.ACTIONS_CUSTOM_STUDY)]) # links.append(["F", "cram", _("Filter/Cram")]) if self.mw.col.sched.haveBuried(): - links.append(["U", "unbury", _("Unbury")]) + links.append(["U", "unbury", tr(TR.STUDYING_UNBURY)]) buf = "" for b in links: if b[0]: - b[0] = _("Shortcut key: %s") % shortcut(b[0]) + b[0] = tr(TR.ACTIONS_SHORTCUT_KEY, val=shortcut(b[0])) buf += """ """ % tuple( b diff --git a/qt/aqt/pinnedmodules.py b/qt/aqt/pinnedmodules.py index eee5660b0..70c7b86a4 100644 --- a/qt/aqt/pinnedmodules.py +++ b/qt/aqt/pinnedmodules.py @@ -9,6 +9,7 @@ # included implicitly in the past, and relied upon by some add-ons import cgi import decimal +import gettext # useful for add-ons import logging diff --git a/qt/aqt/preferences.py b/qt/aqt/preferences.py index f1d796539..33ebd4fbd 100644 --- a/qt/aqt/preferences.py +++ b/qt/aqt/preferences.py @@ -1,10 +1,8 @@ # -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - import anki.lang import aqt -from anki.lang import _ from aqt import AnkiQt from aqt.qt import * from aqt.utils import TR, askUser, openHelp, showInfo, showWarning, tr @@ -69,7 +67,9 @@ class Preferences(QDialog): def onLangIdxChanged(self, idx): code = anki.lang.langs[idx][1] self.mw.pm.setLang(code) - showInfo(_("Please restart Anki to complete language change."), parent=self) + showInfo( + tr(TR.PREFERENCES_PLEASE_RESTART_ANKI_TO_COMPLETE_LANGUAGE), parent=self + ) # Collection options ###################################################################### @@ -85,7 +85,7 @@ class Preferences(QDialog): else: f.hwAccel.setChecked(self.mw.pm.glMode() != "software") - f.newSpread.addItems(list(c.newCardSchedulingLabels().values())) + f.newSpread.addItems(list(c.newCardSchedulingLabels(self.mw.col).values())) f.useCurrent.setCurrentIndex(int(not qc.get("addToCur", True))) @@ -117,7 +117,7 @@ class Preferences(QDialog): self.mw.pm.setGlMode("auto") else: self.mw.pm.setGlMode("software") - showInfo(_("Changes will take effect when you restart Anki.")) + showInfo(tr(TR.PREFERENCES_CHANGES_WILL_TAKE_EFFECT_WHEN_YOU)) qc = d.conf qc["addToCur"] = not f.useCurrent.currentIndex() @@ -149,11 +149,7 @@ class Preferences(QDialog): if haveNew == wantNew: return - if not askUser( - _( - "This will reset any cards in learning, clear filtered decks, and change the scheduler version. Proceed?" - ) - ): + if not askUser(tr(TR.PREFERENCES_THIS_WILL_RESET_ANY_CARDS_IN)): return if wantNew: @@ -184,11 +180,7 @@ class Preferences(QDialog): self.form.syncDeauth.setVisible(False) self.form.syncUser.setText("") self.form.syncLabel.setText( - _( - """\ -Synchronization
    -Not currently enabled; click the sync button in the main window to enable.""" - ) + tr(TR.PREFERENCES_SYNCHRONIZATIONNOT_CURRENTLY_ENABLED_CLICK_THE_SYNC) ) def onSyncDeauth(self) -> None: @@ -247,4 +239,4 @@ Not currently enabled; click the sync button in the main window to enable.""" self.mw.pm.set_interrupt_audio(self.form.interrupt_audio.isChecked()) if restart_required: - showInfo(_("Changes will take effect when you restart Anki.")) + showInfo(tr(TR.PREFERENCES_CHANGES_WILL_TAKE_EFFECT_WHEN_YOU)) diff --git a/qt/aqt/previewer.py b/qt/aqt/previewer.py index 5f770db14..560050d6d 100644 --- a/qt/aqt/previewer.py +++ b/qt/aqt/previewer.py @@ -1,14 +1,12 @@ # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html # mypy: check-untyped-defs - import json import re import time from typing import Any, Callable, Optional, Union from anki.cards import Card -from anki.lang import _ from aqt import AnkiQt, gui_hooks from aqt.qt import ( QAbstractItemView, @@ -26,7 +24,7 @@ from aqt.qt import ( from aqt.reviewer import replay_audio from aqt.sound import av_player, play_clicked_audio from aqt.theme import theme_manager -from aqt.utils import restoreGeom, saveGeom +from aqt.utils import TR, restoreGeom, saveGeom, tr from aqt.webview import AnkiWebView @@ -62,7 +60,7 @@ class Previewer(QDialog): self.show() def _create_gui(self): - self.setWindowTitle(_("Preview")) + self.setWindowTitle(tr(TR.ACTIONS_PREVIEW)) qconnect(self.finished, self._on_finished) self.silentlyClose = True @@ -73,16 +71,16 @@ class Previewer(QDialog): self.bbox = QDialogButtonBox() self._replay = self.bbox.addButton( - _("Replay Audio"), QDialogButtonBox.ActionRole + tr(TR.ACTIONS_REPLAY_AUDIO), QDialogButtonBox.ActionRole ) self._replay.setAutoDefault(False) self._replay.setShortcut(QKeySequence("R")) - self._replay.setToolTip(_("Shortcut key: %s" % "R")) + self._replay.setToolTip(tr(TR.ACTIONS_SHORTCUT_KEY, val="R")) qconnect(self._replay.clicked, self._on_replay_audio) - both_sides_button = QCheckBox(_("Back Side Only")) + both_sides_button = QCheckBox(tr(TR.QT_MISC_BACK_SIDE_ONLY)) both_sides_button.setShortcut(QKeySequence("B")) - both_sides_button.setToolTip(_("Shortcut key: %s" % "B")) + both_sides_button.setToolTip(tr(TR.ACTIONS_SHORTCUT_KEY, val="B")) self.bbox.addButton(both_sides_button, QDialogButtonBox.ActionRole) self._show_both_sides = self.mw.col.conf.get("previewBothSides", False) both_sides_button.setChecked(self._show_both_sides) @@ -114,8 +112,8 @@ class Previewer(QDialog): jsinc = [ "js/vendor/jquery.js", "js/vendor/browsersel.js", - "js/vendor/mathjax/conf.js", - "js/vendor/mathjax/MathJax.js", + "js/mathjax.js", + "js/vendor/mathjax/tex-chtml.js", "js/reviewer.js", ] self._web.stdHtml( @@ -159,7 +157,7 @@ class Previewer(QDialog): c = self.card() func = "_showQuestion" if not c: - txt = _("(please select 1 card)") + txt = tr(TR.QT_MISC_PLEASE_SELECT_1_CARD) bodyclass = "" self._last_state = None else: @@ -184,6 +182,7 @@ class Previewer(QDialog): bodyclass = theme_manager.body_classes_for_card_ord(c.ord) if c.autoplay(): + AnkiWebView.setPlaybackRequiresGesture(False) if self._show_both_sides: # if we're showing both sides at once, remove any audio # from the answer that's appeared on the question already @@ -198,6 +197,7 @@ class Previewer(QDialog): audio = c.answer_av_tags() av_player.play_tags(audio) else: + AnkiWebView.setPlaybackRequiresGesture(True) av_player.clear_queue_and_maybe_interrupt() txt = self.mw.prepare_card_text_for_display(txt) @@ -238,12 +238,12 @@ class MultiCardPreviewer(Previewer): self._prev = self.bbox.addButton("<", QDialogButtonBox.ActionRole) self._prev.setAutoDefault(False) self._prev.setShortcut(QKeySequence("Left")) - self._prev.setToolTip(_("Shortcut key: Left arrow")) + self._prev.setToolTip(tr(TR.QT_MISC_SHORTCUT_KEY_LEFT_ARROW)) self._next = self.bbox.addButton(">", QDialogButtonBox.ActionRole) self._next.setAutoDefault(True) self._next.setShortcut(QKeySequence("Right")) - self._next.setToolTip(_("Shortcut key: Right arrow or Enter")) + self._next.setToolTip(tr(TR.QT_MISC_SHORTCUT_KEY_RIGHT_ARROW_OR_ENTER)) qconnect(self._prev.clicked, self._on_prev) qconnect(self._next.clicked, self._on_next) diff --git a/qt/aqt/profiles.py b/qt/aqt/profiles.py index 351b3dc6a..1a4eb41e0 100644 --- a/qt/aqt/profiles.py +++ b/qt/aqt/profiles.py @@ -1,11 +1,6 @@ # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -# Profile handling -########################################################################## -# - Saves in pickles rather than json to easily store Qt window state. -# - Saves in sqlite rather than a flat file so the config can't be corrupted - import io import locale import pickle @@ -21,13 +16,19 @@ import aqt.forms import aqt.sound from anki import Collection from anki.db import DB -from anki.lang import _, without_unicode_isolation +from anki.lang import without_unicode_isolation from anki.rsbackend import SyncAuth from anki.utils import intTime, isMac, isWin from aqt import appHelpSite from aqt.qt import * from aqt.utils import TR, locale_dir, showWarning, tr +# Profile handling +########################################################################## +# - Saves in pickles rather than json to easily store Qt window state. +# - Saves in sqlite rather than a flat file so the config can't be corrupted + + metaConf = dict( ver=0, updates=True, @@ -251,12 +252,8 @@ class ProfileManager: except: QMessageBox.warning( None, - _("Profile Corrupt"), - _( - """\ -Anki could not read your profile data. Window sizes and your sync login \ -details have been forgotten.""" - ), + tr(TR.PROFILES_PROFILE_CORRUPT), + tr(TR.PROFILES_ANKI_COULD_NOT_READ_YOUR_PROFILE), ) traceback.print_stack() print("resetting corrupt profile") @@ -304,12 +301,12 @@ details have been forgotten.""" oldFolder = midFolder else: showWarning( - _("Please remove the folder %s and try again.") % midFolder + tr(TR.PROFILES_PLEASE_REMOVE_THE_FOLDER_AND, val=midFolder) ) self.name = oldName return else: - showWarning(_("Folder already exists.")) + showWarning(tr(TR.PROFILES_FOLDER_ALREADY_EXISTS)) self.name = oldName return @@ -321,14 +318,7 @@ details have been forgotten.""" except Exception as e: self.db.rollback() if "WinError 5" in str(e): - showWarning( - _( - """\ -Anki could not rename your profile because it could not rename the profile \ -folder on disk. Please ensure you have permission to write to Documents/Anki \ -and no other programs are accessing your profile folders, then try again.""" - ) - ) + showWarning(tr(TR.PROFILES_ANKI_COULD_NOT_RENAME_YOUR_PROFILE)) else: raise except: @@ -476,7 +466,7 @@ create table if not exists profiles def _ensureProfile(self) -> None: "Create a new profile if none exists." - self.create(_("User 1")) + self.create(tr(TR.PROFILES_USER_1)) p = os.path.join(self.base, "README.txt") with open(p, "w", encoding="utf8") as file: file.write( diff --git a/qt/aqt/progress.py b/qt/aqt/progress.py index 55b771335..d86af56d7 100644 --- a/qt/aqt/progress.py +++ b/qt/aqt/progress.py @@ -1,15 +1,14 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations import time from typing import Optional import aqt.forms -from anki.lang import _ from aqt.qt import * +from aqt.utils import TR, tr # Progress info ########################################################################## @@ -80,7 +79,7 @@ class ProgressManager: if not parent and self.mw.isVisible(): parent = self.mw - label = label or _("Processing...") + label = label or tr(TR.QT_MISC_PROCESSING) self._win = ProgressDialog(parent) self._win.form.progressBar.setMinimum(min) self._win.form.progressBar.setMaximum(max) diff --git a/qt/aqt/reviewer.py b/qt/aqt/reviewer.py index 9ef7520e8..87d64d9a6 100644 --- a/qt/aqt/reviewer.py +++ b/qt/aqt/reviewer.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations import difflib @@ -15,14 +14,21 @@ from PyQt5.QtCore import Qt from anki import hooks from anki.cards import Card -from anki.lang import _, ngettext from anki.utils import stripHTML from aqt import AnkiQt, gui_hooks from aqt.qt import * from aqt.sound import av_player, getAudio, play_clicked_audio from aqt.theme import theme_manager from aqt.toolbar import BottomBar -from aqt.utils import askUserDialog, downArrow, qtMenuShortcutWorkaround, tooltip +from aqt.utils import ( + TR, + askUserDialog, + downArrow, + qtMenuShortcutWorkaround, + tooltip, + tr, +) +from aqt.webview import AnkiWebView class ReviewerBottomBar: @@ -85,14 +91,13 @@ class Reviewer: elapsed = self.mw.col.timeboxReached() if elapsed: assert not isinstance(elapsed, bool) - part1 = ( - ngettext("%d card studied in", "%d cards studied in", elapsed[1]) - % elapsed[1] - ) + part1 = tr(TR.STUDYING_CARD_STUDIED_IN, count=elapsed[1]) mins = int(round(elapsed[0] / 60)) - part2 = ngettext("%s minute.", "%s minutes.", mins) % mins - fin = _("Finish") - diag = askUserDialog("%s %s" % (part1, part2), [_("Continue"), fin]) + part2 = tr(TR.STUDYING_MINUTE, count=mins) + fin = tr(TR.STUDYING_FINISH) + diag = askUserDialog( + "%s %s" % (part1, part2), [tr(TR.STUDYING_CONTINUE), fin] + ) diag.setIcon(QMessageBox.Information) if diag.run() == fin: return self.mw.moveToState("deckBrowser") @@ -154,8 +159,8 @@ class Reviewer: js=[ "js/vendor/jquery.js", "js/vendor/browsersel.js", - "js/vendor/mathjax/conf.js", - "js/vendor/mathjax/MathJax.js", + "js/mathjax.js", + "js/vendor/mathjax/tex-chtml.js", "js/reviewer.js", ], context=self, @@ -184,10 +189,12 @@ class Reviewer: q = c.q() # play audio? if c.autoplay(): + AnkiWebView.setPlaybackRequiresGesture(False) sounds = c.question_av_tags() gui_hooks.reviewer_will_play_question_sounds(c, sounds) av_player.play_tags(sounds) else: + AnkiWebView.setPlaybackRequiresGesture(True) av_player.clear_queue_and_maybe_interrupt() sounds = [] gui_hooks.reviewer_will_play_question_sounds(c, sounds) @@ -380,12 +387,9 @@ class Reviewer: if not self.typeCorrect: if self.typeCorrect is None: if clozeIdx: - warn = _( - """\ -Please run Tools>Empty Cards""" - ) + warn = tr(TR.STUDYING_PLEASE_RUN_TOOLSEMPTY_CARDS) else: - warn = _("Type answer: unknown field %s") % fld + warn = tr(TR.STUDYING_TYPE_ANSWER_UNKNOWN_FIELD, val=fld) return re.sub(self.typeAnsPat, warn, buf) else: # empty field, remove type answer pattern @@ -566,9 +570,9 @@ time = %(time)d; """ % dict( rem=self._remaining(), - edit=_("Edit"), - editkey=_("Shortcut key: %s") % "E", - more=_("More"), + edit=tr(TR.STUDYING_EDIT), + editkey=tr(TR.ACTIONS_SHORTCUT_KEY, val="E"), + more=tr(TR.STUDYING_MORE), downArrow=downArrow(), time=self.card.timeTaken() // 1000, ) @@ -578,8 +582,8 @@ time = %(time)d; %s
    """ % ( self._remaining(), - _("Shortcut key: %s") % _("Space"), - _("Show Answer"), + tr(TR.ACTIONS_SHORTCUT_KEY, val=tr(TR.STUDYING_SPACE)), + tr(TR.STUDYING_SHOW_ANSWER), ) # wrap it in a table so it has the same top margin as the ease buttons middle = ( @@ -623,17 +627,21 @@ time = %(time)d; button_count = self.mw.col.sched.answerButtons(self.card) if button_count == 2: buttons_tuple: Tuple[Tuple[int, str], ...] = ( - (1, _("Again")), - (2, _("Good")), + (1, tr(TR.STUDYING_AGAIN)), + (2, tr(TR.STUDYING_GOOD)), ) elif button_count == 3: - buttons_tuple = ((1, _("Again")), (2, _("Good")), (3, _("Easy"))) + buttons_tuple = ( + (1, tr(TR.STUDYING_AGAIN)), + (2, tr(TR.STUDYING_GOOD)), + (3, tr(TR.STUDYING_EASY)), + ) else: buttons_tuple = ( - (1, _("Again")), - (2, _("Hard")), - (3, _("Good")), - (4, _("Easy")), + (1, tr(TR.STUDYING_AGAIN)), + (2, tr(TR.STUDYING_HARD)), + (3, tr(TR.STUDYING_GOOD)), + (4, tr(TR.STUDYING_EASY)), ) buttons_tuple = gui_hooks.reviewer_will_init_answer_buttons( buttons_tuple, self, self.card @@ -654,7 +662,7 @@ time = %(time)d; %s""" % ( due, extra, - _("Shortcut key: %s") % i, + tr(TR.ACTIONS_SHORTCUT_KEY, val=i), i, i, label, @@ -679,9 +687,9 @@ time = %(time)d; def onLeech(self, card: Card) -> None: # for now - s = _("Card was a leech.") + s = tr(TR.STUDYING_CARD_WAS_A_LEECH) if card.queue < 0: - s += " " + _("It has been suspended.") + s += " " + tr(TR.STUDYING_IT_HAS_BEEN_SUSPENDED) tooltip(s) # Context menu @@ -692,48 +700,48 @@ time = %(time)d; currentFlag = self.card and self.card.userFlag() opts = [ [ - _("Flag Card"), + tr(TR.STUDYING_FLAG_CARD), [ [ - _("Red Flag"), + tr(TR.ACTIONS_RED_FLAG), "Ctrl+1", lambda: self.setFlag(1), dict(checked=currentFlag == 1), ], [ - _("Orange Flag"), + tr(TR.ACTIONS_ORANGE_FLAG), "Ctrl+2", lambda: self.setFlag(2), dict(checked=currentFlag == 2), ], [ - _("Green Flag"), + tr(TR.ACTIONS_GREEN_FLAG), "Ctrl+3", lambda: self.setFlag(3), dict(checked=currentFlag == 3), ], [ - _("Blue Flag"), + tr(TR.ACTIONS_BLUE_FLAG), "Ctrl+4", lambda: self.setFlag(4), dict(checked=currentFlag == 4), ], ], ], - [_("Mark Note"), "*", self.onMark], - [_("Bury Card"), "-", self.onBuryCard], - [_("Bury Note"), "=", self.onBuryNote], - [_("Suspend Card"), "@", self.onSuspendCard], - [_("Suspend Note"), "!", self.onSuspend], - [_("Delete Note"), "Ctrl+Delete", self.onDelete], - [_("Options"), "O", self.onOptions], + [tr(TR.STUDYING_MARK_NOTE), "*", self.onMark], + [tr(TR.STUDYING_BURY_CARD), "-", self.onBuryCard], + [tr(TR.STUDYING_BURY_NOTE), "=", self.onBuryNote], + [tr(TR.ACTIONS_SUSPEND_CARD), "@", self.onSuspendCard], + [tr(TR.STUDYING_SUSPEND_NOTE), "!", self.onSuspend], + [tr(TR.STUDYING_DELETE_NOTE), "Ctrl+Delete", self.onDelete], + [tr(TR.ACTIONS_OPTIONS), "O", self.onOptions], None, - [_("Replay Audio"), "R", self.replayAudio], - [_("Pause Audio"), "5", self.on_pause_audio], - [_("Audio -5s"), "6", self.on_seek_backward], - [_("Audio +5s"), "7", self.on_seek_forward], - [_("Record Own Voice"), "Shift+V", self.onRecordVoice], - [_("Replay Own Voice"), "V", self.onReplayRecorded], + [tr(TR.ACTIONS_REPLAY_AUDIO), "R", self.replayAudio], + [tr(TR.STUDYING_PAUSE_AUDIO), "5", self.on_pause_audio], + [tr(TR.STUDYING_AUDIO_5S), "6", self.on_seek_backward], + [tr(TR.STUDYING_AUDIO_AND5S), "7", self.on_seek_forward], + [tr(TR.STUDYING_RECORD_OWN_VOICE), "Shift+V", self.onRecordVoice], + [tr(TR.STUDYING_REPLAY_OWN_VOICE), "V", self.onReplayRecorded], ] return opts @@ -790,15 +798,15 @@ time = %(time)d; self._drawMark() def onSuspend(self) -> None: - self.mw.checkpoint(_("Suspend")) + self.mw.checkpoint(tr(TR.STUDYING_SUSPEND)) self.mw.col.sched.suspend_cards([c.id for c in self.card.note().cards()]) - tooltip(_("Note suspended.")) + tooltip(tr(TR.STUDYING_NOTE_SUSPENDED)) self.mw.reset() def onSuspendCard(self) -> None: - self.mw.checkpoint(_("Suspend")) + self.mw.checkpoint(tr(TR.STUDYING_SUSPEND)) self.mw.col.sched.suspend_cards([self.card.id]) - tooltip(_("Card suspended.")) + tooltip(tr(TR.STUDYING_CARD_SUSPENDED)) self.mw.reset() def onDelete(self) -> None: @@ -806,28 +814,23 @@ time = %(time)d; # window if self.mw.state != "review" or not self.card: return - self.mw.checkpoint(_("Delete")) + self.mw.checkpoint(tr(TR.ACTIONS_DELETE)) cnt = len(self.card.note().cards()) self.mw.col.remove_notes([self.card.note().id]) self.mw.reset() - tooltip( - ngettext( - "Note and its %d card deleted.", "Note and its %d cards deleted.", cnt - ) - % cnt - ) + tooltip(tr(TR.STUDYING_NOTE_AND_ITS_CARD_DELETED, count=cnt)) def onBuryCard(self) -> None: - self.mw.checkpoint(_("Bury")) + self.mw.checkpoint(tr(TR.STUDYING_BURY)) self.mw.col.sched.bury_cards([self.card.id]) self.mw.reset() - tooltip(_("Card buried.")) + tooltip(tr(TR.STUDYING_CARD_BURIED)) def onBuryNote(self) -> None: - self.mw.checkpoint(_("Bury")) + self.mw.checkpoint(tr(TR.STUDYING_BURY)) self.mw.col.sched.bury_note(self.card.note()) self.mw.reset() - tooltip(_("Note buried.")) + tooltip(tr(TR.STUDYING_NOTE_BURIED)) def onRecordVoice(self) -> None: self._recordedAudio = getAudio(self.mw, encode=False) @@ -835,6 +838,6 @@ time = %(time)d; def onReplayRecorded(self) -> None: if not self._recordedAudio: - tooltip(_("You haven't recorded your voice yet.")) + tooltip(tr(TR.STUDYING_YOU_HAVENT_RECORDED_YOUR_VOICE_YET)) return av_player.play_file(self._recordedAudio) diff --git a/qt/aqt/sidebar.py b/qt/aqt/sidebar.py index 8daf31090..57e395e87 100644 --- a/qt/aqt/sidebar.py +++ b/qt/aqt/sidebar.py @@ -1,16 +1,14 @@ # -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations from enum import Enum import aqt from anki.errors import DeckRenameError -from anki.lang import _ from aqt.qt import * -from aqt.utils import getOnlyText, showWarning +from aqt.utils import TR, getOnlyText, showWarning, tr class SidebarItemType(Enum): @@ -71,7 +69,7 @@ class NewSidebarTreeView(SidebarTreeViewBase): self.setContextMenuPolicy(Qt.CustomContextMenu) self.customContextMenuRequested.connect(self.onContextMenu) # type: ignore self.context_menus = { - SidebarItemType.DECK: ((_("Rename"), self.rename_deck),), + SidebarItemType.DECK: ((tr(TR.ACTIONS_RENAME), self.rename_deck),), } def onContextMenu(self, point: QPoint) -> None: @@ -92,10 +90,10 @@ class NewSidebarTreeView(SidebarTreeViewBase): m.exec_(QCursor.pos()) def rename_deck(self, item: "aqt.browser.SidebarItem") -> None: - self.mw.checkpoint(_("Rename Deck")) + self.mw.checkpoint(tr(TR.ACTIONS_RENAME_DECK)) deck = self.mw.col.decks.get(item.id) old_name = deck["name"] - new_name = getOnlyText(_("New deck name:"), default=old_name) + new_name = getOnlyText(tr(TR.DECKS_NEW_DECK_NAME), default=old_name) new_name = new_name.replace('"', "") if not new_name or new_name == old_name: return diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index 1c28b5e43..d2a172ddb 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -16,14 +16,13 @@ from typing import Any, Callable, Dict, List, Optional, Tuple import aqt from anki import hooks from anki.cards import Card -from anki.lang import _ from anki.sound import AV_REF_RE, AVTag, SoundOrVideoTag from anki.utils import isLin, isMac, isWin from aqt import gui_hooks from aqt.mpv import MPV, MPVBase, MPVCommandError from aqt.qt import * from aqt.taskman import TaskManager -from aqt.utils import restoreGeom, saveGeom, showWarning, startup_info +from aqt.utils import TR, restoreGeom, saveGeom, showWarning, startup_info, tr try: import pyaudio @@ -318,11 +317,7 @@ class SimpleProcessPlayer(Player): # pylint: disable=abstract-method try: ret.result() except FileNotFoundError: - showWarning( - _( - "Sound and video on cards will not function until mpv or mplayer is installed." - ) - ) + showWarning(tr(TR.MEDIA_SOUND_AND_VIDEO_ON_CARDS_WILL)) # must call cb() here, as we don't currently have another way # to flag to av_player that we've stopped cb() @@ -499,7 +494,7 @@ class _Recorder: finally: self.cleanup() if ret: - raise Exception(_("Error running %s") % " ".join(cmd)) + raise Exception(tr(TR.MEDIA_ERROR_RUNNING, val=" ").join(cmd)) def cleanup(self) -> None: if os.path.exists(processingSrc): @@ -596,10 +591,10 @@ def getAudio(parent: QWidget, encode: bool = True) -> Optional[str]: restoreGeom(mb, "audioRecorder") mb.setWindowTitle("Anki") mb.setIconPixmap(QPixmap(":/icons/media-record.png")) - but = QPushButton(_("Save")) + but = QPushButton(tr(TR.ACTIONS_SAVE)) mb.addButton(but, QMessageBox.AcceptRole) but.setDefault(True) - but = QPushButton(_("Cancel")) + but = QPushButton(tr(TR.ACTIONS_CANCEL)) mb.addButton(but, QMessageBox.RejectRole) mb.setEscapeButton(but) t = time.time() @@ -607,7 +602,7 @@ def getAudio(parent: QWidget, encode: bool = True) -> Optional[str]: time.sleep(r.startupDelay) QApplication.instance().processEvents() # type: ignore while not mb.clickedButton(): - txt = _("Recording...
    Time: %0.1f") + txt = tr(TR.MEDIA_RECORDINGTIME) mb.setText(txt % (time.time() - t)) mb.show() QApplication.instance().processEvents() # type: ignore diff --git a/qt/aqt/stats.py b/qt/aqt/stats.py index 693377a1a..f6376488a 100644 --- a/qt/aqt/stats.py +++ b/qt/aqt/stats.py @@ -1,23 +1,23 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations import time import aqt -from anki.lang import _ from aqt import gui_hooks from aqt.qt import * from aqt.theme import theme_manager from aqt.utils import ( + TR, addCloseShortcut, getSaveFile, maybeHideClose, restoreGeom, saveGeom, tooltip, + tr, ) @@ -39,7 +39,9 @@ class NewDeckStats(QDialog): f.groupBox.setVisible(False) f.groupBox_2.setVisible(False) restoreGeom(self, self.name) - b = f.buttonBox.addButton(_("Save PDF"), QDialogButtonBox.ActionRole) + b = f.buttonBox.addButton( + tr(TR.STATISTICS_SAVE_PDF), QDialogButtonBox.ActionRole + ) qconnect(b.clicked, self.saveImage) b.setAutoDefault(False) maybeHideClose(self.form.buttonBox) @@ -61,10 +63,10 @@ class NewDeckStats(QDialog): def _imagePath(self): name = time.strftime("-%Y-%m-%d@%H-%M-%S.pdf", time.localtime(time.time())) - name = "anki-" + _("stats") + name + name = "anki-" + tr(TR.STATISTICS_STATS) + name file = getSaveFile( self, - title=_("Save PDF"), + title=tr(TR.STATISTICS_SAVE_PDF), dir_description="stats", key="stats", ext=".pdf", @@ -77,7 +79,7 @@ class NewDeckStats(QDialog): if not path: return self.form.web.page().printToPdf(path) - tooltip(_("Saved.")) + tooltip(tr(TR.STATISTICS_SAVED)) def changePeriod(self, n): pass @@ -111,7 +113,9 @@ class DeckStats(QDialog): self.setStyleSheet("QGroupBox { border: 0; }") f.setupUi(self) restoreGeom(self, self.name) - b = f.buttonBox.addButton(_("Save PDF"), QDialogButtonBox.ActionRole) + b = f.buttonBox.addButton( + tr(TR.STATISTICS_SAVE_PDF), QDialogButtonBox.ActionRole + ) qconnect(b.clicked, self.saveImage) b.setAutoDefault(False) qconnect(f.groups.clicked, lambda: self.changeScope("deck")) @@ -139,10 +143,10 @@ class DeckStats(QDialog): def _imagePath(self): name = time.strftime("-%Y-%m-%d@%H-%M-%S.pdf", time.localtime(time.time())) - name = "anki-" + _("stats") + name + name = "anki-" + tr(TR.STATISTICS_STATS) + name file = getSaveFile( self, - title=_("Save PDF"), + title=tr(TR.STATISTICS_SAVE_PDF), dir_description="stats", key="stats", ext=".pdf", @@ -155,7 +159,7 @@ class DeckStats(QDialog): if not path: return self.form.web.page().printToPdf(path) - tooltip(_("Saved.")) + tooltip(tr(TR.STATISTICS_SAVED)) def changePeriod(self, n): self.period = n diff --git a/qt/aqt/studydeck.py b/qt/aqt/studydeck.py index 78482ab48..c0f544408 100644 --- a/qt/aqt/studydeck.py +++ b/qt/aqt/studydeck.py @@ -1,12 +1,19 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - import aqt -from anki.lang import _ from aqt import gui_hooks from aqt.qt import * -from aqt.utils import getOnlyText, openHelp, restoreGeom, saveGeom, shortcut, showInfo +from aqt.utils import ( + TR, + getOnlyText, + openHelp, + restoreGeom, + saveGeom, + shortcut, + showInfo, + tr, +) class StudyDeck(QDialog): @@ -43,9 +50,9 @@ class StudyDeck(QDialog): for b in buttons: self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole) else: - b = QPushButton(_("Add")) + b = QPushButton(tr(TR.ACTIONS_ADD)) b.setShortcut(QKeySequence("Ctrl+N")) - b.setToolTip(shortcut(_("Add New Deck (Ctrl+N)"))) + b.setToolTip(shortcut(tr(TR.DECKS_ADD_NEW_DECK_CTRLANDN))) self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole) qconnect(b.clicked, self.onAddDeck) if title: @@ -64,7 +71,7 @@ class StudyDeck(QDialog): self.origNames = names() self.name = None self.ok = self.form.buttonBox.addButton( - accept or _("Study"), QDialogButtonBox.AcceptRole + accept or tr(TR.DECKS_STUDY), QDialogButtonBox.AcceptRole ) self.setWindowModality(Qt.WindowModal) qconnect(self.form.buttonBox.helpRequested, lambda: openHelp(help)) @@ -132,7 +139,7 @@ class StudyDeck(QDialog): gui_hooks.state_did_reset.remove(self.onReset) row = self.form.list.currentRow() if row < 0: - showInfo(_("Please select something.")) + showInfo(tr(TR.DECKS_PLEASE_SELECT_SOMETHING)) return self.name = self.names[self.form.list.currentRow()] QDialog.accept(self) @@ -148,7 +155,7 @@ class StudyDeck(QDialog): default = self.form.filter.text() else: default = self.names[self.form.list.currentRow()] - n = getOnlyText(_("New deck name:"), default=default) + n = getOnlyText(tr(TR.DECKS_NEW_DECK_NAME), default=default) n = n.strip() if n: did = self.mw.col.decks.id(n) diff --git a/qt/aqt/toolbar.py b/qt/aqt/toolbar.py index 3a9f668df..a6585d3e4 100644 --- a/qt/aqt/toolbar.py +++ b/qt/aqt/toolbar.py @@ -1,17 +1,16 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations from typing import Any, Dict, Optional import aqt -from anki.lang import _ from anki.rsbackend import SyncStatus from aqt import gui_hooks from aqt.qt import * from aqt.sync import get_sync_status +from aqt.utils import TR, tr from aqt.webview import AnkiWebView @@ -102,30 +101,30 @@ class Toolbar: links = [ self.create_link( "decks", - _("Decks"), + tr(TR.ACTIONS_DECKS), self._deckLinkHandler, - tip=_("Shortcut key: %s") % "D", + tip=tr(TR.ACTIONS_SHORTCUT_KEY, val="D"), id="decks", ), self.create_link( "add", - _("Add"), + tr(TR.ACTIONS_ADD), self._addLinkHandler, - tip=_("Shortcut key: %s") % "A", + tip=tr(TR.ACTIONS_SHORTCUT_KEY, val="A"), id="add", ), self.create_link( "browse", - _("Browse"), + tr(TR.QT_MISC_BROWSE), self._browseLinkHandler, - tip=_("Shortcut key: %s") % "B", + tip=tr(TR.ACTIONS_SHORTCUT_KEY, val="B"), id="browse", ), self.create_link( "stats", - _("Stats"), + tr(TR.QT_MISC_STATS), self._statsLinkHandler, - tip=_("Shortcut key: %s") % "T", + tip=tr(TR.ACTIONS_SHORTCUT_KEY, val="T"), id="stats", ), ] @@ -140,8 +139,8 @@ class Toolbar: ###################################################################### def _create_sync_link(self) -> str: - name = _("Sync") - title = _("Shortcut key: %s") % "Y" + name = tr(TR.QT_MISC_SYNC) + title = tr(TR.ACTIONS_SHORTCUT_KEY, val="Y") label = "sync" self.link_handlers[label] = self._syncLinkHandler diff --git a/qt/aqt/update.py b/qt/aqt/update.py index 8b179f65f..d1178350a 100644 --- a/qt/aqt/update.py +++ b/qt/aqt/update.py @@ -6,10 +6,9 @@ import time import requests import aqt -from anki.lang import _ from anki.utils import platDesc, versionWithBuild from aqt.qt import * -from aqt.utils import openLink, showText +from aqt.utils import TR, openLink, showText, tr class LatestVersionFinder(QThread): @@ -56,12 +55,12 @@ class LatestVersionFinder(QThread): def askAndUpdate(mw, ver): - baseStr = _("""

    Anki Updated

    Anki %s has been released.

    """) % ver + baseStr = tr(TR.QT_MISC_ANKI_UPDATEDANKI_HAS_BEEN_RELEASED, val=ver) msg = QMessageBox(mw) msg.setStandardButtons(QMessageBox.Yes | QMessageBox.No) # type: ignore msg.setIcon(QMessageBox.Information) - msg.setText(baseStr + _("Would you like to download it now?")) - button = QPushButton(_("Ignore this update")) + msg.setText(baseStr + tr(TR.QT_MISC_WOULD_YOU_LIKE_TO_DOWNLOAD_IT)) + button = QPushButton(tr(TR.QT_MISC_IGNORE_THIS_UPDATE)) msg.addButton(button, QMessageBox.RejectRole) msg.setDefaultButton(QMessageBox.Yes) ret = msg.exec_() diff --git a/qt/aqt/utils.py b/qt/aqt/utils.py index dae53370c..aa8f52a3a 100644 --- a/qt/aqt/utils.py +++ b/qt/aqt/utils.py @@ -1,7 +1,6 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - from __future__ import annotations import os @@ -12,7 +11,6 @@ from typing import TYPE_CHECKING, Any, List, Optional, Union import anki import aqt -from anki.lang import _ from anki.rsbackend import TR # pylint: disable=unused-import from anki.utils import invalidFilename, isMac, isWin, noBundledLibs, versionWithBuild from aqt.qt import * @@ -54,7 +52,7 @@ def openHelp(section): def openLink(link): - tooltip(_("Loading..."), period=1000) + tooltip(tr(TR.QT_MISC_LOADING), period=1000) with noBundledLibs(): QDesktopServices.openUrl(QUrl(link)) @@ -145,7 +143,7 @@ def showText( def onCopy(): QApplication.clipboard().setText(text.toPlainText()) - btn = QPushButton(_("Copy to Clipboard")) + btn = QPushButton(tr(TR.QT_MISC_COPY_TO_CLIPBOARD)) qconnect(btn.clicked, onCopy) box.addButton(btn, QDialogButtonBox.ActionRole) @@ -209,8 +207,8 @@ class ButtonedDialog(QMessageBox): for b in buttons: self._buttons.append(self.addButton(b, QMessageBox.AcceptRole)) if help: - self.addButton(_("Help"), QMessageBox.HelpRole) - buttons.append(_("Help")) + self.addButton(tr(TR.ACTIONS_HELP), QMessageBox.HelpRole) + buttons.append(tr(TR.ACTIONS_HELP)) # self.setLayout(v) def run(self): @@ -408,9 +406,7 @@ def getSaveFile(parent, title, dir_description, key, ext, fname=None): aqt.mw.pm.profile[config_key] = dir # check if it exists if os.path.exists(file): - if not askUser( - _("This file exists. Are you sure you want to overwrite it?"), parent - ): + if not askUser(tr(TR.QT_MISC_THIS_FILE_EXISTS_ARE_YOU_SURE), parent): return None return file @@ -554,7 +550,7 @@ def restore_combo_history(comboBox: QComboBox, name: str): def mungeQA(col, txt): print("mungeQA() deprecated; use mw.prepare_card_text_for_display()") - txt = col.media.escapeImages(txt) + txt = col.media.escape_media_filenames(txt) return txt @@ -656,7 +652,7 @@ def closeTooltip(): def checkInvalidFilename(str, dirsep=True): bad = invalidFilename(str, dirsep) if bad: - showWarning(_("The following character can not be used: %s") % bad) + showWarning(tr(TR.QT_MISC_THE_FOLLOWING_CHARACTER_CAN_NOT_BE, val=bad)) return True return False diff --git a/qt/aqt/webview.py b/qt/aqt/webview.py index c784297e9..c4d15f319 100644 --- a/qt/aqt/webview.py +++ b/qt/aqt/webview.py @@ -1,7 +1,6 @@ # Copyright: Ankitects Pty Ltd and contributors # -*- coding: utf-8 -*- # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - import dataclasses import json import re @@ -9,12 +8,12 @@ import sys from typing import Any, Callable, List, Optional, Sequence, Tuple import anki -from anki.lang import _, is_rtl +from anki.lang import is_rtl from anki.utils import isLin, isMac, isWin from aqt import gui_hooks from aqt.qt import * from aqt.theme import theme_manager -from aqt.utils import openLink, showInfo +from aqt.utils import TR, openLink, showInfo, tr serverbaseurl = re.compile(r"^.+:\/\/[^\/]+") @@ -286,7 +285,7 @@ class AnkiWebView(QWebEngineView): def contextMenuEvent(self, evt: QContextMenuEvent) -> None: m = QMenu(self) - a = m.addAction(_("Copy")) + a = m.addAction(tr(TR.ACTIONS_COPY)) qconnect(a.triggered, self.onCopy) gui_hooks.webview_will_show_context_menu(self, m) m.popup(QCursor.pos()) @@ -340,6 +339,12 @@ class AnkiWebView(QWebEngineView): newFactor = desiredScale / qtIntScale return max(1, newFactor) + @staticmethod + def setPlaybackRequiresGesture(value: bool) -> None: + QWebEngineSettings.globalSettings().setAttribute( + QWebEngineSettings.PlaybackRequiresUserGesture, value + ) + def _getQtIntScale(self, screen) -> int: # try to detect if Qt has scaled the screen # - qt will round the scale factor to a whole number, so a dpi of 125% = 1x, @@ -370,7 +375,7 @@ class AnkiWebView(QWebEngineView): if isWin: # T: include a font for your language on Windows, eg: "Segoe UI", "MS Mincho" - family = _('"Segoe UI"') + family = tr(TR.QT_MISC_SEGOE_UI) button_style = "button { font-family:%s; }" % family button_style += "\n:focus { outline: 1px solid %s; }" % color_hl font = "font-size:12px;font-family:%s;" % family diff --git a/qt/ftl/.gitignore b/qt/ftl/.gitignore deleted file mode 100644 index f606d5e0b..000000000 --- a/qt/ftl/.gitignore +++ /dev/null @@ -1 +0,0 @@ -repo diff --git a/qt/ftl/addons.ftl b/qt/ftl/addons.ftl deleted file mode 100644 index 0b35589dd..000000000 --- a/qt/ftl/addons.ftl +++ /dev/null @@ -1,10 +0,0 @@ -addons-possibly-involved = Add-ons possibly involved: { $addons } -addons-failed-to-load = - An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on. - - When loading '{ $name }': - { $traceback } -# Shown in the add-on configuration screen (Tools>Add-ons>Config), in the title bar -addons-config-window-title = Configure '{ $name }' -addons-config-validation-error = There was a problem with the provided configuration: { $problem }, at path { $path }, against schema { $schema }. -addons-window-title = Add-ons diff --git a/qt/ftl/scripts/fetch-latest-translations b/qt/ftl/scripts/fetch-latest-translations deleted file mode 100755 index 108eed1f5..000000000 --- a/qt/ftl/scripts/fetch-latest-translations +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail ${SHELLFLAGS} - -echo "Downloading latest translations..." - -if [ ! -d repo ]; then - git clone https://github.com/ankitects/anki-desktop-ftl repo -fi - -(cd repo && git pull) diff --git a/qt/ftl/scripts/upload-latest-templates b/qt/ftl/scripts/upload-latest-templates deleted file mode 100755 index 7f8cc7681..000000000 --- a/qt/ftl/scripts/upload-latest-templates +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# -# expects to be run from the ftl folder -# - -set -eu -o pipefail ${SHELLFLAGS} - -test -d repo || exit 1 - -rsync -av --delete *.ftl repo/desktop/templates/ -(cd repo && git add desktop; git commit -m update || true; git push) diff --git a/qt/linux/Makefile.dist b/qt/linux/Makefile.dist new file mode 100644 index 000000000..2c5823f27 --- /dev/null +++ b/qt/linux/Makefile.dist @@ -0,0 +1,40 @@ +PREFIX=/usr/local + +all: + @echo "You can run Anki with ./bin/Anki" + @echo "If you wish to install it system wide, type 'sudo make install'," + @echo "then run with 'anki'." + @echo "Uninstall with 'sudo make uninstall'" + +install: + rm -rf ${PREFIX}/share/anki + mkdir -p ${PREFIX}/share/anki + cp -av * ${PREFIX}/share/anki/ + mkdir -p ${PREFIX}/bin + ln -sf ${PREFIX}/share/anki/bin/Anki ${PREFIX}/bin/anki + # fix a previous packaging issue where we created this as a file + (test -f ${PREFIX}/share/applications && rm ${PREFIX}/share/applications)||true + mkdir -p ${PREFIX}/share/pixmaps + mkdir -p ${PREFIX}/share/applications + mkdir -p ${PREFIX}/share/man/man1 + cd ${PREFIX}/share/anki && (\ + mv anki.xpm anki.png ${PREFIX}/share/pixmaps/;\ + mv anki.desktop ${PREFIX}/share/applications/;\ + mv anki.1 ${PREFIX}/share/man/man1/) + xdg-mime install anki.xml --novendor + xdg-mime default anki.desktop application/x-colpkg + xdg-mime default anki.desktop application/x-apkg + xdg-mime default anki.desktop application/x-ankiaddon + @echo + @echo "Install complete. Type 'anki' to run." + +uninstall: + -xdg-mime uninstall ${PREFIX}/share/anki/anki.xml + rm -rf ${PREFIX}/share/anki + rm -rf ${PREFIX}/bin/anki + rm -rf ${PREFIX}/share/pixmaps/anki.xpm + rm -rf ${PREFIX}/share/pixmaps/anki.png + rm -rf ${PREFIX}/share/applications/anki.desktop + rm -rf ${PREFIX}/share/man/man1/anki.1 + @echo + @echo "Uninstall complete." diff --git a/qt/linux/README.dist b/qt/linux/README.dist new file mode 100644 index 000000000..5ba3f62c9 --- /dev/null +++ b/qt/linux/README.dist @@ -0,0 +1,15 @@ +To run, change to this folder in a terminal and run the following command: + +./bin/Anki + +- To install system wide, ensure you have make installed +(eg in Ubuntu, run 'sudo apt install make' in a terminal) +- Run 'sudo make install' +- Start Anki with 'anki' +- To remove in the future, run 'sudo make uninstall' from the same folder. + +To play and record audio, mpv and lame must be installed. If mpv is not +installed or too old, Anki will try to fall back on using mplayer. + +If Anki fails to start, please run it from a terminal to see what errors it +outputs, and then post on our support site. diff --git a/qt/linux/README.md b/qt/linux/README.md new file mode 100644 index 000000000..bf6ff6ac2 --- /dev/null +++ b/qt/linux/README.md @@ -0,0 +1 @@ +These files are distributed with the packaged Linux version. diff --git a/qt/mypy.ini b/qt/mypy.ini index db4e0ae9a..8ef64a953 100644 --- a/qt/mypy.ini +++ b/qt/mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.7 +python_version = 3.8 pretty = true no_strict_optional = true show_error_codes = true diff --git a/qt/po/.gitignore b/qt/po/.gitignore deleted file mode 100644 index 8778829ac..000000000 --- a/qt/po/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -.build -repo -ftl -strings*.json diff --git a/qt/po/plurals.json b/qt/po/plurals.json deleted file mode 100644 index bac5eda6a..000000000 --- a/qt/po/plurals.json +++ /dev/null @@ -1,889 +0,0 @@ -{ - "af": [ - "one", - "other" - ], - "ak": [ - "one", - "other" - ], - "am": [ - "one", - "other" - ], - "an": [ - "one", - "other" - ], - "ar": [ - "zero", - "one", - "two", - "few", - "many", - "other" - ], - "ars": [ - "zero", - "one", - "two", - "few", - "many", - "other" - ], - "as": [ - "one", - "other" - ], - "asa": [ - "one", - "other" - ], - "ast": [ - "one", - "other" - ], - "az": [ - "one", - "other" - ], - "be": [ - "one", - "few", - "many", - "other" - ], - "bem": [ - "one", - "other" - ], - "bez": [ - "one", - "other" - ], - "bg": [ - "one", - "other" - ], - "bho": [ - "one", - "other" - ], - "bm": [ - "other" - ], - "bn": [ - "one", - "other" - ], - "bo": [ - "other" - ], - "br": [ - "one", - "two", - "few", - "many", - "other" - ], - "brx": [ - "one", - "other" - ], - "bs": [ - "one", - "few", - "other" - ], - "ca": [ - "one", - "other" - ], - "ce": [ - "one", - "other" - ], - "ceb": [ - "one", - "other" - ], - "cgg": [ - "one", - "other" - ], - "chr": [ - "one", - "other" - ], - "ckb": [ - "one", - "other" - ], - "cs": [ - "one", - "few", - "many", - "other" - ], - "cy": [ - "zero", - "one", - "two", - "few", - "many", - "other" - ], - "da": [ - "one", - "other" - ], - "de": [ - "one", - "other" - ], - "dsb": [ - "one", - "two", - "few", - "other" - ], - "dv": [ - "one", - "other" - ], - "dz": [ - "other" - ], - "ee": [ - "one", - "other" - ], - "el": [ - "one", - "other" - ], - "en": [ - "one", - "other" - ], - "eo": [ - "one", - "other" - ], - "es": [ - "one", - "other" - ], - "et": [ - "one", - "other" - ], - "eu": [ - "one", - "other" - ], - "fa": [ - "one", - "other" - ], - "ff": [ - "one", - "other" - ], - "fi": [ - "one", - "other" - ], - "fil": [ - "one", - "other" - ], - "fo": [ - "one", - "other" - ], - "fr": [ - "one", - "other" - ], - "fur": [ - "one", - "other" - ], - "fy": [ - "one", - "other" - ], - "ga": [ - "one", - "two", - "few", - "many", - "other" - ], - "gd": [ - "one", - "two", - "few", - "other" - ], - "gl": [ - "one", - "other" - ], - "gsw": [ - "one", - "other" - ], - "gu": [ - "one", - "other" - ], - "guw": [ - "one", - "other" - ], - "gv": [ - "one", - "two", - "few", - "many", - "other" - ], - "ha": [ - "one", - "other" - ], - "haw": [ - "one", - "other" - ], - "he": [ - "one", - "two", - "many", - "other" - ], - "hi": [ - "one", - "other" - ], - "hr": [ - "one", - "few", - "other" - ], - "hsb": [ - "one", - "two", - "few", - "other" - ], - "hu": [ - "one", - "other" - ], - "hy": [ - "one", - "other" - ], - "ia": [ - "one", - "other" - ], - "id": [ - "other" - ], - "ig": [ - "other" - ], - "ii": [ - "other" - ], - "in": [ - "other" - ], - "io": [ - "one", - "other" - ], - "is": [ - "one", - "other" - ], - "it": [ - "one", - "other" - ], - "iu": [ - "one", - "two", - "other" - ], - "iw": [ - "one", - "two", - "many", - "other" - ], - "ja": [ - "other" - ], - "jbo": [ - "other" - ], - "jgo": [ - "one", - "other" - ], - "ji": [ - "one", - "other" - ], - "jmc": [ - "one", - "other" - ], - "jv": [ - "other" - ], - "jw": [ - "other" - ], - "ka": [ - "one", - "other" - ], - "kab": [ - "one", - "other" - ], - "kaj": [ - "one", - "other" - ], - "kcg": [ - "one", - "other" - ], - "kde": [ - "other" - ], - "kea": [ - "other" - ], - "kk": [ - "one", - "other" - ], - "kkj": [ - "one", - "other" - ], - "kl": [ - "one", - "other" - ], - "km": [ - "other" - ], - "kn": [ - "one", - "other" - ], - "ko": [ - "other" - ], - "ks": [ - "one", - "other" - ], - "ksb": [ - "one", - "other" - ], - "ksh": [ - "zero", - "one", - "other" - ], - "ku": [ - "one", - "other" - ], - "kw": [ - "zero", - "one", - "two", - "few", - "many", - "other" - ], - "ky": [ - "one", - "other" - ], - "lag": [ - "zero", - "one", - "other" - ], - "lb": [ - "one", - "other" - ], - "lg": [ - "one", - "other" - ], - "lkt": [ - "other" - ], - "ln": [ - "one", - "other" - ], - "lo": [ - "other" - ], - "lt": [ - "one", - "few", - "many", - "other" - ], - "lv": [ - "zero", - "one", - "other" - ], - "mas": [ - "one", - "other" - ], - "mg": [ - "one", - "other" - ], - "mgo": [ - "one", - "other" - ], - "mk": [ - "one", - "other" - ], - "ml": [ - "one", - "other" - ], - "mn": [ - "one", - "other" - ], - "mo": [ - "one", - "few", - "other" - ], - "mr": [ - "one", - "other" - ], - "ms": [ - "other" - ], - "mt": [ - "one", - "few", - "many", - "other" - ], - "my": [ - "other" - ], - "nah": [ - "one", - "other" - ], - "naq": [ - "one", - "two", - "other" - ], - "nb": [ - "one", - "other" - ], - "nd": [ - "one", - "other" - ], - "ne": [ - "one", - "other" - ], - "nl": [ - "one", - "other" - ], - "nn": [ - "one", - "other" - ], - "nnh": [ - "one", - "other" - ], - "no": [ - "one", - "other" - ], - "nqo": [ - "other" - ], - "nr": [ - "one", - "other" - ], - "nso": [ - "one", - "other" - ], - "ny": [ - "one", - "other" - ], - "nyn": [ - "one", - "other" - ], - "om": [ - "one", - "other" - ], - "or": [ - "one", - "other" - ], - "os": [ - "one", - "other" - ], - "osa": [ - "other" - ], - "pa": [ - "one", - "other" - ], - "pap": [ - "one", - "other" - ], - "pl": [ - "one", - "few", - "many", - "other" - ], - "prg": [ - "zero", - "one", - "other" - ], - "ps": [ - "one", - "other" - ], - "pt": [ - "one", - "other" - ], - "pt-PT": [ - "one", - "other" - ], - "rm": [ - "one", - "other" - ], - "ro": [ - "one", - "few", - "other" - ], - "rof": [ - "one", - "other" - ], - "root": [ - "other" - ], - "ru": [ - "one", - "few", - "many", - "other" - ], - "rwk": [ - "one", - "other" - ], - "sah": [ - "other" - ], - "saq": [ - "one", - "other" - ], - "sc": [ - "one", - "other" - ], - "scn": [ - "one", - "other" - ], - "sd": [ - "one", - "other" - ], - "sdh": [ - "one", - "other" - ], - "se": [ - "one", - "two", - "other" - ], - "seh": [ - "one", - "other" - ], - "ses": [ - "other" - ], - "sg": [ - "other" - ], - "sh": [ - "one", - "few", - "other" - ], - "shi": [ - "one", - "few", - "other" - ], - "si": [ - "one", - "other" - ], - "sk": [ - "one", - "few", - "many", - "other" - ], - "sl": [ - "one", - "two", - "few", - "other" - ], - "sma": [ - "one", - "two", - "other" - ], - "smi": [ - "one", - "two", - "other" - ], - "smj": [ - "one", - "two", - "other" - ], - "smn": [ - "one", - "two", - "other" - ], - "sms": [ - "one", - "two", - "other" - ], - "sn": [ - "one", - "other" - ], - "so": [ - "one", - "other" - ], - "sq": [ - "one", - "other" - ], - "sr": [ - "one", - "few", - "other" - ], - "ss": [ - "one", - "other" - ], - "ssy": [ - "one", - "other" - ], - "st": [ - "one", - "other" - ], - "su": [ - "other" - ], - "sv": [ - "one", - "other" - ], - "sw": [ - "one", - "other" - ], - "syr": [ - "one", - "other" - ], - "ta": [ - "one", - "other" - ], - "te": [ - "one", - "other" - ], - "teo": [ - "one", - "other" - ], - "th": [ - "other" - ], - "ti": [ - "one", - "other" - ], - "tig": [ - "one", - "other" - ], - "tk": [ - "one", - "other" - ], - "tl": [ - "one", - "other" - ], - "tn": [ - "one", - "other" - ], - "to": [ - "other" - ], - "tr": [ - "one", - "other" - ], - "ts": [ - "one", - "other" - ], - "tzm": [ - "one", - "other" - ], - "ug": [ - "one", - "other" - ], - "uk": [ - "one", - "few", - "many", - "other" - ], - "ur": [ - "one", - "other" - ], - "uz": [ - "one", - "other" - ], - "ve": [ - "one", - "other" - ], - "vi": [ - "other" - ], - "vo": [ - "one", - "other" - ], - "vun": [ - "one", - "other" - ], - "wa": [ - "one", - "other" - ], - "wae": [ - "one", - "other" - ], - "wo": [ - "other" - ], - "xh": [ - "one", - "other" - ], - "xog": [ - "one", - "other" - ], - "yi": [ - "one", - "other" - ], - "yo": [ - "other" - ], - "yue": [ - "other" - ], - "zh": [ - "other" - ], - "zu": [ - "one", - "other" - ], - "oc": - ["one", "other"], - "la": - ["one", "other"] -} diff --git a/qt/po/requirements.txt b/qt/po/requirements.txt deleted file mode 100644 index 23e5826d6..000000000 --- a/qt/po/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -polib diff --git a/qt/po/scripts/build-mo-files b/qt/po/scripts/build-mo-files deleted file mode 100755 index 40fdd34de..000000000 --- a/qt/po/scripts/build-mo-files +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -# -# build mo files -# - -set -eu -o pipefail ${SHELLFLAGS} - -targetDir="../aqt_data/locale/gettext" -mkdir -p $targetDir - -echo "Compiling *.po..." -for file in repo/desktop/*/anki.po -do - outdir=$(echo "$file" | \ - perl -pe "s%repo/desktop/(.*)/anki.po%$targetDir/\1/LC_MESSAGES%") - outfile="$outdir/anki.mo" - mkdir -p $outdir - if ! msgmerge -q "$file" repo/desktop/anki.pot | msgfmt - --output-file="$outfile"; then - echo "error building $file"; - exit 1; - fi; -done diff --git a/qt/po/scripts/copy-qt-files b/qt/po/scripts/copy-qt-files deleted file mode 100755 index a57ff947a..000000000 --- a/qt/po/scripts/copy-qt-files +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail ${SHELLFLAGS} - -out=../aqt_data/locale/qt -mkdir -p "$out" - -qtTranslations="$(python -c "from PyQt5.QtCore import *; import sys; sys.stdout.write(QLibraryInfo.location(QLibraryInfo.TranslationsPath))")" - -case "$(uname -s)" in - CYGWIN*|MINGW*|MSYS*) - qtTranslations="$(cygpath -u "${qtTranslations}")" - ;; -esac - -rsync -a "$qtTranslations/" "$out/" diff --git a/qt/po/scripts/extract-po-strings.py b/qt/po/scripts/extract-po-strings.py deleted file mode 100644 index 40e779ba0..000000000 --- a/qt/po/scripts/extract-po-strings.py +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: UTF-8 -*- - -import os -import json -import polib - -# Read strings from all .po and .pot files and store them in a JSON file -# for quick access. - -# returns a string, an array of plurals, or None if there's no translation -def get_msgstr(entry): - # non-empty single string? - if entry.msgstr: - return entry.msgstr - # plural string and non-empty? - elif entry.msgstr_plural and entry.msgstr_plural[0]: - # convert the dict into a list in the correct order - plurals = list(entry.msgstr_plural.items()) - plurals.sort() - # update variables and discard keys - adjusted = [] - for _k, msg in plurals: - assert msg - adjusted.append(msg) - if len(adjusted) > 1 and adjusted[0]: - return adjusted - else: - if adjusted[0]: - return adjusted[0] - return None - -langs = {} - -# .pot first -base = "repo/desktop" -pot = os.path.join(base, "anki.pot") -pot_cat = polib.pofile(pot) - -for entry in pot_cat: - if entry.msgid_plural: - msgstr = [entry.msgid, entry.msgid_plural] - else: - msgstr = entry.msgid - langs.setdefault("en", {})[entry.msgid] = msgstr - -# then .po files -folders = (d for d in os.listdir(base) if d != "anki.pot") -for lang in folders: - po_path = os.path.join(base, lang, "anki.po") - cat = polib.pofile(po_path) - for entry in cat: - msgstr = get_msgstr(entry) - if not msgstr: - continue - langs.setdefault(lang, {})[entry.msgid] = msgstr - -with open("strings.json", "w") as file: - file.write(json.dumps(langs)) -print("wrote to strings.json") diff --git a/qt/po/scripts/extract_po_string.py b/qt/po/scripts/extract_po_string.py deleted file mode 100644 index adbea66b5..000000000 --- a/qt/po/scripts/extract_po_string.py +++ /dev/null @@ -1,245 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: UTF-8 -*- - -import os -import json -import re -import sys -import polib -import shutil -import sys -import subprocess -from PyQt5.QtWidgets import * -from PyQt5.QtCore import * -from PyQt5.QtGui import * -from extract_po_string_diag import Ui_Dialog -from fluent.syntax import parse, serialize -from fluent.syntax.ast import Message, TextElement, Identifier, Pattern, Junk - -# the templates folder inside the ftl repo -repo_templates_dir = sys.argv[1] -assert os.path.abspath(repo_templates_dir).endswith("templates") -strings = json.load(open("strings.json" if len(sys.argv) < 3 else sys.argv[2])) -plurals = json.load(open("plurals.json")) - - -def transform_entry(entry, replacements): - if isinstance(entry, str): - return transform_string(entry, replacements) - else: - return [transform_string(e, replacements) for e in entry] - - -def transform_string(msg, replacements): - try: - for (old, new) in replacements: - msg = msg.replace(old, f"{new}") - except ValueError: - pass - # strip leading/trailing whitespace - return msg.strip() - - -def plural_text(key, lang, translation): - lang = re.sub("(_|-).*", "", lang) - - # extract the variable - if there's more than one, use the first one - var = re.findall(r"{(\$.*?)}", translation[0]) - if not len(var) == 1: - print("multiple variables found, using first replacement") - var = replacements[0][1].replace("{", "").replace("}", "") - else: - var = var[0] - - buf = f"{key} = {{ {var} ->\n" - - # for each of the plural forms except the last - for idx, msg in enumerate(translation[:-1]): - plural_form = plurals[lang][idx] - buf += f" [{plural_form}] {msg}\n" - - # add the catchall - msg = translation[-1] - buf += f" *[other] {msg}\n" - buf += " }\n" - return buf - - -def key_from_search(search): - return search.replace(" ", "-").replace("'", "") - - -# add a non-pluralized message. works via fluent.syntax, so can automatically -# indent, etc -def add_simple_message(fname, key, message): - orig = "" - if os.path.exists(fname): - with open(fname) as file: - orig = file.read() - - obj = parse(orig) - for ent in obj.body: - if isinstance(ent, Junk): - raise Exception(f"file had junk! {fname} {ent}") - obj.body.append(Message(Identifier(key), Pattern([TextElement(message)]))) - - modified = serialize(obj, with_junk=True) - # escape leading dots - modified = re.sub(r"(?ms)^( +)\.", '\\1{"."}', modified) - - # ensure the resulting serialized file is valid by parsing again - obj = parse(modified) - for ent in obj.body: - if isinstance(ent, Junk): - raise Exception(f"introduced junk! {fname} {ent}") - - # it's ok, write it out - with open(fname, "w") as file: - file.write(modified) - - -def add_message(fname, key, translation): - # simple, non-plural form? - if isinstance(translation, str): - add_simple_message(fname, key, translation) - else: - text = plural_text(key, lang, translation) - open(fname, "a").write(text) - - -def key_already_used(key: str) -> bool: - return not subprocess.call(["grep", "-r", f"{key} =", repo_templates_dir]) - - -class Window(QDialog, Ui_Dialog): - def __init__(self): - QDialog.__init__(self) - self.setupUi(self) - - self.matched_strings = [] - - self.files = sorted(os.listdir(repo_templates_dir)) - self.filenames.addItems(self.files) - - self.search.textChanged.connect(self.on_search) - self.replacements.textChanged.connect(self.update_preview) - self.key.textEdited.connect(self.update_preview) - self.filenames.currentIndexChanged.connect(self.update_preview) - self.searchMatches.currentItemChanged.connect(self.update_preview) - self.replacementsTemplateButton.clicked.connect(self.on_template) - self.addButton.clicked.connect(self.on_add) - - def on_template(self): - self.replacements.setText("%d={ $value }") - # qt macos bug - self.replacements.repaint() - - def on_search(self): - msgid_substring = self.search.text() - self.key.setText(key_from_search(msgid_substring)) - - msgids = [] - exact_idx = None - for n, id in enumerate(strings["en"].keys()): - if msgid_substring.lower() in id.lower(): - msgids.append(id) - - # is the ID an exact match? - if msgid_substring in strings["en"]: - exact_idx = n - - self.matched_strings = msgids - self.searchMatches.clear() - self.searchMatches.addItems(self.matched_strings) - if exact_idx is not None: - self.searchMatches.setCurrentRow(exact_idx) - elif self.matched_strings: - self.searchMatches.setCurrentRow(0) - - self.update_preview() - - def update_preview(self): - self.preview.clear() - if not self.matched_strings: - return - - strings = self.get_adjusted_strings() - key = self.get_key() - self.preview.setPlainText( - f"Key: {key}\n\n" - + "\n".join([f"{lang}: {value}" for (lang, value) in strings]) - ) - - # returns list of (lang, entry) - def get_adjusted_strings(self): - msgid = self.matched_strings[self.searchMatches.currentRow()] - - # split up replacements - replacements = [] - for repl in self.replacements.text().split(","): - if not repl: - continue - replacements.append(repl.split("=")) - - to_insert = [] - for lang in strings.keys(): - entry = strings[lang].get(msgid) - if not entry: - continue - entry = transform_entry(entry, replacements) - if entry: - to_insert.append((lang, entry)) - - return to_insert - - def get_key(self): - # add file as prefix to key - prefix = os.path.splitext(self.filenames.currentText())[0] - return f"{prefix}-{self.key.text()}" - - def on_add(self): - to_insert = self.get_adjusted_strings() - key = self.get_key() - if key_already_used(key): - QMessageBox.warning(None, "Error", "Duplicate Key") - return - - # for each language's translation - for lang, translation in to_insert: - ftl_path = self.filename_for_lang(lang) - add_message(ftl_path, key, translation) - - if lang == "en": - # copy file from repo into src - srcdir = os.path.join(repo_templates_dir, "..", "..", "..") - src_filename = os.path.join(srcdir, os.path.basename(ftl_path)) - shutil.copy(ftl_path, src_filename) - - subprocess.check_call( - f"cd {repo_templates_dir} && git add .. && git commit -m 'add {key}'", - shell=True, - ) - - self.preview.setPlainText(f"Added {key}.") - self.preview.repaint() - - def filename_for_lang(self, lang): - fname = self.filenames.currentText() - if lang == "en": - return os.path.join(repo_templates_dir, fname) - else: - ftl_dir = os.path.join(repo_templates_dir, "..", lang) - if not os.path.exists(ftl_dir): - os.mkdir(ftl_dir) - return os.path.join(ftl_dir, fname) - - -print("Remember to pull-i18n before making changes.") -if subprocess.check_output(f"git status --porcelain {repo_templates_dir}", shell=True): - print("Repo has uncommitted changes.") - sys.exit(1) - -app = QApplication(sys.argv) -window = Window() -window.show() -sys.exit(app.exec_()) diff --git a/qt/po/scripts/extract_po_string_diag.py b/qt/po/scripts/extract_po_string_diag.py deleted file mode 100644 index e7ca71fea..000000000 --- a/qt/po/scripts/extract_po_string_diag.py +++ /dev/null @@ -1,86 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'extract_po_string_diag.ui' -# -# Created by: PyQt5 UI code generator 5.15.0 -# -# WARNING: Any manual changes made to this file will be lost when pyuic5 is -# run again. Do not edit this file unless you know what you are doing. - - -from PyQt5 import QtCore, QtGui, QtWidgets - - -class Ui_Dialog(object): - def setupUi(self, Dialog): - Dialog.setObjectName("Dialog") - Dialog.resize(879, 721) - self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) - self.verticalLayout.setObjectName("verticalLayout") - self.gridLayout = QtWidgets.QGridLayout() - self.gridLayout.setObjectName("gridLayout") - self.label_2 = QtWidgets.QLabel(Dialog) - self.label_2.setObjectName("label_2") - self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) - self.filenames = QtWidgets.QComboBox(Dialog) - self.filenames.setObjectName("filenames") - self.gridLayout.addWidget(self.filenames, 1, 1, 1, 1) - self.label_4 = QtWidgets.QLabel(Dialog) - self.label_4.setObjectName("label_4") - self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1) - self.replacementsTemplateButton = QtWidgets.QPushButton(Dialog) - self.replacementsTemplateButton.setObjectName("replacementsTemplateButton") - self.gridLayout.addWidget(self.replacementsTemplateButton, 4, 1, 1, 1) - self.label = QtWidgets.QLabel(Dialog) - self.label.setObjectName("label") - self.gridLayout.addWidget(self.label, 1, 0, 1, 1) - self.label_3 = QtWidgets.QLabel(Dialog) - self.label_3.setObjectName("label_3") - self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1) - self.replacements = QtWidgets.QLineEdit(Dialog) - self.replacements.setObjectName("replacements") - self.gridLayout.addWidget(self.replacements, 3, 1, 1, 1) - self.key = QtWidgets.QLineEdit(Dialog) - self.key.setObjectName("key") - self.gridLayout.addWidget(self.key, 2, 1, 1, 1) - self.search = QtWidgets.QLineEdit(Dialog) - self.search.setObjectName("search") - self.gridLayout.addWidget(self.search, 0, 1, 1, 1) - self.verticalLayout.addLayout(self.gridLayout) - self.label_5 = QtWidgets.QLabel(Dialog) - self.label_5.setObjectName("label_5") - self.verticalLayout.addWidget(self.label_5) - self.searchMatches = QtWidgets.QListWidget(Dialog) - self.searchMatches.setObjectName("searchMatches") - self.verticalLayout.addWidget(self.searchMatches) - self.label_6 = QtWidgets.QLabel(Dialog) - self.label_6.setObjectName("label_6") - self.verticalLayout.addWidget(self.label_6) - self.preview = QtWidgets.QTextEdit(Dialog) - self.preview.setObjectName("preview") - self.verticalLayout.addWidget(self.preview) - self.addButton = QtWidgets.QPushButton(Dialog) - self.addButton.setObjectName("addButton") - self.verticalLayout.addWidget(self.addButton) - - self.retranslateUi(Dialog) - QtCore.QMetaObject.connectSlotsByName(Dialog) - Dialog.setTabOrder(self.search, self.filenames) - Dialog.setTabOrder(self.filenames, self.key) - Dialog.setTabOrder(self.key, self.replacements) - Dialog.setTabOrder(self.replacements, self.replacementsTemplateButton) - Dialog.setTabOrder(self.replacementsTemplateButton, self.searchMatches) - Dialog.setTabOrder(self.searchMatches, self.preview) - Dialog.setTabOrder(self.preview, self.addButton) - - def retranslateUi(self, Dialog): - _translate = QtCore.QCoreApplication.translate - Dialog.setWindowTitle(_translate("Dialog", "Dialog")) - self.label_2.setText(_translate("Dialog", "Fluent key suffix")) - self.label_4.setText(_translate("Dialog", "Search:")) - self.replacementsTemplateButton.setText(_translate("Dialog", "Template")) - self.label.setText(_translate("Dialog", "Target file")) - self.label_3.setText(_translate("Dialog", "Replacements")) - self.label_5.setText(_translate("Dialog", "Matches")) - self.label_6.setText(_translate("Dialog", "Preview")) - self.addButton.setText(_translate("Dialog", "Add")) diff --git a/qt/po/scripts/extract_po_string_diag.ui b/qt/po/scripts/extract_po_string_diag.ui deleted file mode 100644 index c3c9f10d3..000000000 --- a/qt/po/scripts/extract_po_string_diag.ui +++ /dev/null @@ -1,109 +0,0 @@ - - - Dialog - - - - 0 - 0 - 879 - 721 - - - - Dialog - - - - - - - - Fluent key suffix - - - - - - - - - - Search: - - - - - - - Template - - - - - - - Target file - - - - - - - Replacements - - - - - - - - - - - - - - - - - - Matches - - - - - - - - - - Preview - - - - - - - - - - Add - - - - - - - search - filenames - key - replacements - replacementsTemplateButton - searchMatches - preview - addButton - - - - diff --git a/qt/po/scripts/fetch-latest-translations b/qt/po/scripts/fetch-latest-translations deleted file mode 100755 index 9d0e04223..000000000 --- a/qt/po/scripts/fetch-latest-translations +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail ${SHELLFLAGS} - -echo "Downloading latest translations..." - -if [ ! -d repo ]; then - git clone https://github.com/ankitects/anki-desktop-i18n repo -fi - -(cd repo && git pull) diff --git a/qt/po/scripts/update-po-template b/qt/po/scripts/update-po-template deleted file mode 100755 index 6a734d07b..000000000 --- a/qt/po/scripts/update-po-template +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# -# update template .pot file from source code strings, -# and merge new strings into translations -# - -set -eu -o pipefail ${SHELLFLAGS} - -topDir=$(dirname $0)/../../../ -cd $topDir - -all=all.files -echo "Updating anki.pot..." -for i in pylib/anki/{*.py,importing/*.py}; do - echo $i >> $all -done -for i in qt/aqt/{*.py,forms/*.py}; do - echo $i >> $all -done - -xgettext -cT: -s --no-wrap --files-from=$all --output=qt/po/repo/desktop/anki.pot -rm $all - -cd qt/po/repo/desktop -for dir in $(ls | grep -v anki.pot); do - msgmerge --no-wrap -U --backup off $dir/anki.po anki.pot -done diff --git a/qt/po/scripts/upload-latest-template b/qt/po/scripts/upload-latest-template deleted file mode 100755 index 5935a1f94..000000000 --- a/qt/po/scripts/upload-latest-template +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail ${SHELLFLAGS} - -scripts/update-po-template -(cd repo && git add desktop; git commit -m update; git push) diff --git a/qt/tests/run_format.py b/qt/tests/run_format.py index 09ceb7f37..28b180209 100644 --- a/qt/tests/run_format.py +++ b/qt/tests/run_format.py @@ -21,8 +21,8 @@ if __name__ == "__main__": "-m", "black", "-t", - "py36", - "--exclude=aqt/forms|buildinfo|colors", + "py38", + "--exclude=aqt/forms|colors", "aqt", "tests", "tools", diff --git a/qt/tools/build_ui.sh b/qt/tools/build_ui.sh index 7b5db20c5..b72ca0c4f 100755 --- a/qt/tools/build_ui.sh +++ b/qt/tools/build_ui.sh @@ -33,7 +33,6 @@ do (cat < $py # -*- coding: utf-8 -*- # pylint: disable=unsubscriptable-object,unused-import -from anki.lang import _ EOF rm $py.tmp fi diff --git a/repos.bzl b/repos.bzl index 534b3f17e..d1a066db4 100644 --- a/repos.bzl +++ b/repos.bzl @@ -37,12 +37,12 @@ def register_repos(): git_repository( name = "io_bazel_rules_rust", - commit = "a364ded42d9788144cd26b6e98d6b4038753bfa9", + commit = "212cc4d6cb7f23d0aa29d2f09e3860c49aaf9144", remote = "https://github.com/ankitects/rules_rust", - shallow_since = "1604550071 +1000", + shallow_since = "1605354106 +1000", ) - # local_repository( + # native.local_repository( # name = "io_bazel_rules_rust", # path = "../rules_rust", # ) @@ -120,26 +120,24 @@ def register_repos(): # translations ################ - core_i18n_commit = "b9fdeadef0b92a6d9acadbce01e43cba53739df6" - core_i18n_shallow_since = "1602372775 +0000" + core_i18n_commit = "1599ff1c4cb60b98fe0e80e1b45da47e9de9eeb1" + core_i18n_shallow_since = "1605671186 +1000" - desktop_i18n_commit = "51320cdc51fbfb3d60791467879069ea3a8188a6" - desktop_i18n_shallow_since = "1600900614 +0000" + qtftl_i18n_commit = "9909cfa4386288e686b2336b3b1048b7ee1bb194" + qtftl_i18n_shallow_since = "1605664969 +1000" - desktop_i18n_po_commit = "710be3864b356ddf90253034c6acfcb420dffeff" - desktop_i18n_po_shallow_since = "1603966644 +0000" - - new_git_repository( - name = "rslib_ftl", - build_file_content = """ + i18n_build_content = """ filegroup( name = "files", srcs = glob(["**/*.ftl"]), visibility = ["//visibility:public"], ) - exports_files(["l10n.toml"]) - """, +""" + + new_git_repository( + name = "rslib_ftl", + build_file_content = i18n_build_content, commit = core_i18n_commit, shallow_since = core_i18n_shallow_since, remote = "https://github.com/ankitects/anki-core-i18n", @@ -148,28 +146,8 @@ exports_files(["l10n.toml"]) if not native.existing_rule("extra_ftl"): new_git_repository( name = "extra_ftl", - build_file_content = """ -filegroup( - name = "files", - srcs = glob(["**/*.ftl"]), - visibility = ["//visibility:public"], -) - -exports_files(["l10n.toml"]) -""", - commit = desktop_i18n_commit, - shallow_since = desktop_i18n_shallow_since, + build_file_content = i18n_build_content, + commit = qtftl_i18n_commit, + shallow_since = qtftl_i18n_shallow_since, remote = "https://github.com/ankitects/anki-desktop-ftl", ) - - new_git_repository( - name = "aqt_po", - build_file_content = """ -exports_files(glob(["**/*.pot", "**/*.po"]), - visibility = ["//visibility:public"], -) - """, - commit = desktop_i18n_po_commit, - shallow_since = desktop_i18n_po_shallow_since, - remote = "https://github.com/ankitects/anki-desktop-i18n", - ) diff --git a/rslib/BUILD.bazel b/rslib/BUILD.bazel index e4981f578..a1d1e190c 100644 --- a/rslib/BUILD.bazel +++ b/rslib/BUILD.bazel @@ -3,14 +3,6 @@ load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust load("@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script") load(":rustfmt.bzl", "rustfmt_fix", "rustfmt_test") -# FTL file gathering -####################### - -all_ftl_files = [ - "@rslib_ftl//:files", - "@extra_ftl//:files", -] + glob(["ftl/*.ftl"]) - # Build script ####################### @@ -25,7 +17,8 @@ cargo_build_script( "BUILDINFO": "$(location //:buildinfo.txt)", }, crate_root = "build/main.rs", - data = all_ftl_files + [ + data = [ + "//ftl", "backend.proto", "//:buildinfo.txt", "@com_google_protobuf//:protoc", @@ -134,14 +127,14 @@ rust_test( ) rustfmt_test( - name = "format", + name = "format_check", srcs = glob([ "src/**/*.rs", ]), ) rustfmt_fix( - name = "format_fix", + name = "format", srcs = glob([ "src/**/*.rs", ]), @@ -162,7 +155,9 @@ rust_binary( genrule( name = "fluent_proto", - srcs = all_ftl_files + [ + srcs = [ + "//ftl", + "//ftl:BUILD.bazel", "//cargo:fluent_syntax", "@rslib_ftl//:l10n.toml", "@extra_ftl//:l10n.toml", @@ -171,7 +166,7 @@ genrule( cmd = """\ RSLIB_FTL_ROOT="$(location @rslib_ftl//:l10n.toml)" \ EXTRA_FTL_ROOT="$(location @extra_ftl//:l10n.toml)" \ -FTL_SRC="$(location ftl/database-check.ftl)" \ +FTL_SRC="$(location //ftl:BUILD.bazel)" \ $(location :write_fluent_proto) $(location fluent.proto)""", tools = [ ":write_fluent_proto", diff --git a/rslib/Cargo.toml b/rslib/Cargo.toml index 6f1ab5d55..27e1cbf9b 100644 --- a/rslib/Cargo.toml +++ b/rslib/Cargo.toml @@ -32,7 +32,7 @@ async-compression = { version = "0.3.5", features = ["stream", "gzip"] } blake3 = "0.3.5" bytes = "0.5.5" chrono = "0.4.13" -coarsetime = { git = "https://github.com/ankitects/rust-coarsetime.git", tag="anki-2020-11-03" } +coarsetime = "0.1.16" failure = "0.1.8" flate2 = "1.0.16" fluent = "0.13.1" @@ -53,7 +53,7 @@ pin-project = "1" prost = { git = "https://github.com/danburkert/prost.git", rev = "4ded4a98ef339da0b7babd4efee3fbe8adaf746b" } rand = "0.7.3" regex = "1.3.9" -reqwest = { git = "https://github.com/ankitects/reqwest.git", tag = "anki-2020-11-03", default-features = false, features = ["json", "socks", "stream", "rustls-tls-native-roots"] } +reqwest = { git = "https://github.com/ankitects/reqwest.git", tag = "anki-2020-11-03", default-features = false, features = ["json", "socks", "stream", "rustls-tls", "native-tls"] } rusqlite = { version = "0.24.1", features = ["trace", "functions", "collation", "bundled" ] } scopeguard = "1.1.0" serde = "1.0.114" diff --git a/rslib/build/mergeftl.rs b/rslib/build/mergeftl.rs index 5a131b40f..24a7481e1 100644 --- a/rslib/build/mergeftl.rs +++ b/rslib/build/mergeftl.rs @@ -124,6 +124,10 @@ fn get_ftl_data() -> FTLData { for entry in fs::read_dir(&outer_entry.path()).unwrap() { let entry = entry.unwrap(); if entry.file_name().to_str().unwrap() == "templates" { + if include_local_qt_templates() { + // ignore source ftl files, as we've already extracted them from the source tree + continue; + } data.add_template_folder(&entry.path()); } else { data.add_language_folder(&entry.path()); @@ -136,18 +140,27 @@ fn get_ftl_data() -> FTLData { data } +/// In a standard build, the ftl/qt folder is used as the source +/// of truth for @extra_ftl, making it easier to add new strings. +/// If the Qt templates are not desired, the NO_QT_TEMPLATES env +/// var can be set to skip them. +fn include_local_qt_templates() -> bool { + env::var("NO_QT_TEMPLATES").is_err() +} + /// Extracts English text from ftl folder in source tree. fn get_ftl_data_from_source_tree() -> FTLData { let mut templates: Vec = vec![]; - let dir = if let Ok(srcfile) = env::var("FTL_SRC") { + let ftl_base = if let Ok(srcfile) = env::var("FTL_SRC") { let mut path = PathBuf::from(srcfile); path.pop(); path } else { - PathBuf::from("ftl") + PathBuf::from("../ftl") }; + let dir = ftl_base.join("core"); for entry in fs::read_dir(dir).unwrap() { let entry = entry.unwrap(); let fname = entry.file_name().into_string().unwrap(); @@ -156,6 +169,17 @@ fn get_ftl_data_from_source_tree() -> FTLData { } } + if include_local_qt_templates() { + let dir = ftl_base.join("qt"); + for entry in fs::read_dir(dir).unwrap() { + let entry = entry.unwrap(); + let fname = entry.file_name().into_string().unwrap(); + if fname.ends_with(".ftl") { + templates.push(fs::read_to_string(entry.path()).unwrap()); + } + } + } + FTLData { templates, translations: Default::default(), diff --git a/rslib/ftl/.gitignore b/rslib/ftl/.gitignore deleted file mode 100644 index f606d5e0b..000000000 --- a/rslib/ftl/.gitignore +++ /dev/null @@ -1 +0,0 @@ -repo diff --git a/rslib/ftl/card-templates.ftl b/rslib/ftl/card-templates.ftl deleted file mode 100644 index ee8964be2..000000000 --- a/rslib/ftl/card-templates.ftl +++ /dev/null @@ -1,23 +0,0 @@ -card-templates-changes-will-affect-notes = - { $count -> - [one] Changes below will affect the { $count } note that uses this card type. - *[other] Changes below will affect the { $count } notes that use this card type. - } -card-templates-card-type = Card Type: -card-templates-front-template = Front Template -card-templates-back-template = Back Template -card-templates-template-styling = Styling -card-templates-front-preview = Front Preview -card-templates-back-preview = Back Preview -card-templates-preview-box = Preview -card-templates-template-box = Template -card-templates-sample-cloze = This is a {"{{c1::"}sample{"}}"} cloze deletion. -card-templates-fill-empty = Fill Empty Fields -card-templates-night-mode = Night Mode -# Add "mobile" class to card preview, so the card appears like it would -# on a mobile device. -card-templates-add-mobile-class = Add Mobile Class -card-templates-preview-settings = Options -card-templates-invalid-template-number = Card template { $number } has a problem. -card-templates-changes-saved = Changes saved. -card-templates-discard-changes = Discard changes? diff --git a/rslib/ftl/custom-study.ftl b/rslib/ftl/custom-study.ftl deleted file mode 100644 index 91c790959..000000000 --- a/rslib/ftl/custom-study.ftl +++ /dev/null @@ -1 +0,0 @@ -custom-study-must-rename-deck = Please rename the existing Custom Study deck first. diff --git a/rslib/ftl/importing.ftl b/rslib/ftl/importing.ftl deleted file mode 100644 index e2917506e..000000000 --- a/rslib/ftl/importing.ftl +++ /dev/null @@ -1 +0,0 @@ -importing-failed-debug-info = Import failed. Debugging info: diff --git a/rslib/ftl/notetypes.ftl b/rslib/ftl/notetypes.ftl deleted file mode 100644 index 924bf3e54..000000000 --- a/rslib/ftl/notetypes.ftl +++ /dev/null @@ -1,21 +0,0 @@ -## Default field names in newly created note types - -notetypes-front-field = Front -notetypes-back-field = Back -notetypes-add-reverse-field = Add Reverse -notetypes-text-field = Text -notetypes-back-extra-field = Back Extra - -## Default note type names - -notetypes-basic-name = Basic -notetypes-basic-reversed-name = Basic (and reversed card) -notetypes-basic-optional-reversed-name = Basic (optional reversed card) -notetypes-basic-type-answer-name = Basic (type in the answer) -notetypes-cloze-name = Cloze - -## Default card template names - -notetypes-card-1-name = Card 1 -notetypes-card-2-name = Card 2 - diff --git a/rslib/ftl/scripts/fetch-latest-translations b/rslib/ftl/scripts/fetch-latest-translations deleted file mode 100755 index 1156605a5..000000000 --- a/rslib/ftl/scripts/fetch-latest-translations +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail ${SHELLFLAGS} - -echo "Downloading latest translations..." - -if [ ! -d repo ]; then - git clone https://github.com/ankitects/anki-core-i18n repo -fi - -(cd repo && git pull) diff --git a/rslib/ftl/scripts/upload-latest-templates b/rslib/ftl/scripts/upload-latest-templates deleted file mode 100755 index db5bbf59d..000000000 --- a/rslib/ftl/scripts/upload-latest-templates +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -# -# expects to be run from the ftl folder -# - -set -eu -o pipefail ${SHELLFLAGS} - -test -d repo || exit 1 - -rsync -av --delete *.ftl repo/core/templates/ -(cd repo && git add core; git commit -m update || true; git push) - diff --git a/rslib/src/notes.rs b/rslib/src/notes.rs index 94eaface0..e20bb5eb6 100644 --- a/rslib/src/notes.rs +++ b/rslib/src/notes.rs @@ -10,7 +10,7 @@ use crate::{ err::{AnkiError, Result}, notetype::{CardGenContext, NoteField, NoteType, NoteTypeID}, template::field_is_empty, - text::{ensure_string_in_nfc, normalize_to_nfc, strip_html_preserving_image_filenames}, + text::{ensure_string_in_nfc, normalize_to_nfc, strip_html_preserving_media_filenames}, timestamp::TimestampSecs, types::Usn, }; @@ -100,12 +100,12 @@ impl Note { } } - let field1_nohtml = strip_html_preserving_image_filenames(&self.fields()[0]); + let field1_nohtml = strip_html_preserving_media_filenames(&self.fields()[0]); let checksum = field_checksum(field1_nohtml.as_ref()); let sort_field = if nt.config.sort_field_idx == 0 { field1_nohtml } else { - strip_html_preserving_image_filenames( + strip_html_preserving_media_filenames( self.fields .get(nt.config.sort_field_idx as usize) .map(AsRef::as_ref) @@ -208,7 +208,7 @@ impl From for Note { } } -/// Text must be passed to strip_html_preserving_image_filenames() by +/// Text must be passed to strip_html_preserving_media_filenames() by /// caller prior to passing in here. pub(crate) fn field_checksum(text: &str) -> u32 { let digest = sha1::Sha1::from(text).digest().bytes(); @@ -429,7 +429,7 @@ impl Collection { } else { field1.into() }; - let stripped = strip_html_preserving_image_filenames(&field1); + let stripped = strip_html_preserving_media_filenames(&field1); if stripped.trim().is_empty() { Ok(DuplicateState::Empty) } else { @@ -438,7 +438,7 @@ impl Collection { self.storage .note_fields_by_checksum(note.id, note.notetype_id, csum)? { - if strip_html_preserving_image_filenames(&field) == stripped { + if strip_html_preserving_media_filenames(&field) == stripped { return Ok(DuplicateState::Duplicate); } } diff --git a/rslib/src/search/sqlwriter.rs b/rslib/src/search/sqlwriter.rs index f2ce61ef8..cbe18dd3b 100644 --- a/rslib/src/search/sqlwriter.rs +++ b/rslib/src/search/sqlwriter.rs @@ -10,7 +10,7 @@ use crate::{ notes::field_checksum, notetype::NoteTypeID, text::{ - escape_sql, is_glob, normalize_to_nfc, strip_html_preserving_image_filenames, to_custom_re, + escape_sql, is_glob, normalize_to_nfc, strip_html_preserving_media_filenames, to_custom_re, to_re, to_sql, to_text, without_combining, }, timestamp::TimestampSecs, @@ -436,7 +436,7 @@ impl SqlWriter<'_> { fn write_dupes(&mut self, ntid: NoteTypeID, text: &str) { let text = &self.convert(CM::OnlyNorm, text); - let text_nohtml = strip_html_preserving_image_filenames(text); + let text_nohtml = strip_html_preserving_media_filenames(text); let csum = field_checksum(text_nohtml.as_ref()); write!( self.sql, @@ -444,7 +444,7 @@ impl SqlWriter<'_> { ntid, csum ) .unwrap(); - self.args.push(text.to_string()); + self.args.push(text_nohtml.to_string()); } fn write_added(&mut self, days: u32) -> Result<()> { diff --git a/rslib/src/text.rs b/rslib/src/text.rs index 524040586..5bc822edb 100644 --- a/rslib/src/text.rs +++ b/rslib/src/text.rs @@ -31,10 +31,10 @@ lazy_static! { )) .unwrap(); - static ref IMG_TAG: Regex = Regex::new( + static ref HTML_MEDIA_TAGS: Regex = Regex::new( r#"(?xsi) - # the start of the image tag - ]+src= + # the start of the image, audio, or object tag + <\b(?:img|audio|object)\b[^>]+\b(?:src|data)\b= (?: # 1: double-quoted filename " @@ -148,7 +148,7 @@ pub(crate) struct MediaRef<'a> { pub(crate) fn extract_media_refs(text: &str) -> Vec { let mut out = vec![]; - for caps in IMG_TAG.captures_iter(text) { + for caps in HTML_MEDIA_TAGS.captures_iter(text) { let fname = caps .get(1) .or_else(|| caps.get(2)) @@ -212,8 +212,8 @@ fn tts_tag_from_string<'a>(field_text: &'a str, args: &'a str) -> AVTag { } } -pub fn strip_html_preserving_image_filenames(html: &str) -> Cow { - let without_fnames = IMG_TAG.replace_all(html, r" ${1}${2}${3} "); +pub fn strip_html_preserving_media_filenames(html: &str) -> Cow { + let without_fnames = HTML_MEDIA_TAGS.replace_all(html, r" ${1}${2}${3} "); let without_html = HTML.replace_all(&without_fnames, ""); // no changes? if let Cow::Borrowed(b) = without_html { @@ -366,7 +366,7 @@ pub(crate) fn escape_sql(txt: &str) -> Cow { mod test { use crate::text::without_combining; use crate::text::{ - extract_av_tags, strip_av_tags, strip_html, strip_html_preserving_image_filenames, AVTag, + extract_av_tags, strip_av_tags, strip_html, strip_html_preserving_media_filenames, AVTag, }; use std::borrow::Cow; @@ -377,14 +377,14 @@ mod test { assert_eq!(strip_html("some"), "some"); assert_eq!( - strip_html_preserving_image_filenames(""), + strip_html_preserving_media_filenames(""), " foo.jpg " ); assert_eq!( - strip_html_preserving_image_filenames(""), + strip_html_preserving_media_filenames(""), " foo.jpg " ); - assert_eq!(strip_html_preserving_image_filenames(""), ""); + assert_eq!(strip_html_preserving_media_filenames(""), ""); } #[test] diff --git a/run b/run index 422e9fcab..c5cdaa5be 100755 --- a/run +++ b/run @@ -11,7 +11,7 @@ run_mac() { # so we need to copy the files into a working folder before running on a Mac. workspace=$(dirname $0) bazel build //qt:runanki && \ - rsync -avPL --exclude=anki/external --exclude=__pycache__ --delete \ + rsync -aiL --no-times --exclude=anki/external --exclude=__pycache__ --delete \ $workspace/bazel-bin/qt/runanki* $workspace/bazel-copy/ && \ $workspace/bazel-copy/runanki $* } diff --git a/qt/po/scripts/duplicate-string.py b/scripts/duplicate-string.py similarity index 100% rename from qt/po/scripts/duplicate-string.py rename to scripts/duplicate-string.py diff --git a/scripts/synci18n.py b/scripts/synci18n.py new file mode 100644 index 000000000..b7378d6fb --- /dev/null +++ b/scripts/synci18n.py @@ -0,0 +1,147 @@ +# +# A helper script to update commit references to the latest translations, +# and copy source files to the translation repos. Requires access to the +# i18n repos to run. + +import subprocess +from dataclasses import dataclass +import re +import os +import sys +from typing import Optional, Tuple + +repos_bzl = "repos.bzl" +working_folder = "../anki-i18n" + +if not os.path.exists(repos_bzl): + raise Exception("run from workspace root") + +if not os.path.exists(working_folder): + os.mkdir(working_folder) + + +@dataclass +class Module: + name: str + repo: str + # (source ftl folder, i18n templates folder) + ftl: Optional[Tuple[str, str]] = None + + def folder(self) -> str: + return os.path.join(working_folder, self.name) + + +modules = [ + Module( + name="core", + repo="git@github.com:ankitects/anki-core-i18n", + ftl=("ftl/core", "core/templates"), + ), + Module( + name="qtftl", + repo="git@github.com:ankitects/anki-desktop-ftl", + ftl=("ftl/qt", "desktop/templates"), + ), +] + + +def update_repo(module: Module): + subprocess.run(["git", "pull"], cwd=module.folder(), check=True) + + +def clone_repo(module: Module): + subprocess.run( + ["git", "clone", module.repo, module.name], cwd=working_folder, check=True + ) + + +def update_git_repos(): + for module in modules: + if os.path.exists(module.folder()): + update_repo(module) + else: + clone_repo(module) + + +@dataclass +class GitInfo: + sha1: str + shallow_since: str + + +def module_git_info(module: Module) -> GitInfo: + folder = module.folder() + sha = subprocess.check_output( + ["git", "log", "-n", "1", "--pretty=format:%H"], cwd=folder + ) + shallow = subprocess.check_output( + ["git", "log", "-n", "1", "--pretty=format:%cd", "--date=raw"], cwd=folder + ) + return GitInfo(sha1=sha.decode("utf8"), shallow_since=shallow.decode("utf8")) + + +def update_repos_bzl(): + # gather changes + entries = {} + for module in modules: + git = module_git_info(module) + prefix = f"{module.name}_i18n_" + entries[prefix + "commit"] = git.sha1 + entries[prefix + "shallow_since"] = git.shallow_since + + # apply + out = [] + path = repos_bzl + reg = re.compile(r'(\s+)(\S+_(?:commit|shallow_since)) = "(.*)"') + for line in open(path).readlines(): + if m := reg.match(line): + (indent, key, _oldvalue) = m.groups() + value = entries[key] + line = f'{indent}{key} = "{value}"\n' + out.append(line) + else: + out.append(line) + open(path, "w").writelines(out) + + commit_if_changed(".") + + +def commit_if_changed(folder: str): + status = subprocess.run(["git", "diff", "--exit-code"], cwd=folder, check=False) + if status.returncode == 0: + # no changes + return + subprocess.run( + ["git", "commit", "-a", "-m", "update translations"], cwd=folder, check=True + ) + + +def update_ftl_templates(): + for module in modules: + if ftl := module.ftl: + (source, dest) = ftl + dest = os.path.join(module.folder(), dest) + subprocess.run( + [ + "rsync", + "-ai", + "--delete", + "--no-perms", + "--no-times", + source + "/", + dest + "/", + ], + check=True, + ) + commit_if_changed(module.folder()) + + +def push_i18n_changes(): + for module in modules: + subprocess.run(["git", "push"], cwd=module.folder(), check=True) + + +update_git_repos() +update_ftl_templates() +push_i18n_changes() +update_repos_bzl() diff --git a/scripts/windows-ci.bat b/scripts/windows-ci.bat index e20b1d12a..fe95b7269 100755 --- a/scripts/windows-ci.bat +++ b/scripts/windows-ci.bat @@ -24,7 +24,7 @@ call venv\scripts\activate for %%i in (bazel-bin/pylib/anki/*.whl) do set "pylib=%%~i" for %%i in (bazel-bin/qt/aqt/*.whl) do set "qt=%%~i" echo Installing wheels... -venv\scripts\pip install bazel-bin/pylib/anki/%pylib% bazel-bin/qt/aqt/%qt% pyqtwebengine +venv\scripts\pip install bazel-bin/pylib/anki/%pylib% bazel-bin/qt/aqt/%qt% IF %ERRORLEVEL% NEQ 0 exit /B 1 echo Importing... diff --git a/ts/.gitignore b/ts/.gitignore index bae8f1051..3c3629e64 100644 --- a/ts/.gitignore +++ b/ts/.gitignore @@ -1,4 +1 @@ node_modules - - - diff --git a/ts/.prettierignore b/ts/.prettierignore index 1facfe957..bacfa9aa7 100644 --- a/ts/.prettierignore +++ b/ts/.prettierignore @@ -1 +1,3 @@ src/backend/proto.d.ts +licenses.json +vendor diff --git a/ts/BUILD.bazel b/ts/BUILD.bazel index 784fc3311..91f8ac7c5 100644 --- a/ts/BUILD.bazel +++ b/ts/BUILD.bazel @@ -1,3 +1,7 @@ +load("//ts:prettier.bzl", "prettier") + +prettier() + # Exported files ################# @@ -7,4 +11,5 @@ exports_files([ ".prettierrc", "rollup.config.js", ".eslintrc.js", + "licenses.json", ]) diff --git a/ts/README.md b/ts/README.md new file mode 100644 index 000000000..aa49bb30e --- /dev/null +++ b/ts/README.md @@ -0,0 +1,3 @@ +To add a new dev dependency: + +bazel run @nodejs//:yarn add @rollup/plugin-alias -- -D diff --git a/ts/congrats/BUILD.bazel b/ts/congrats/BUILD.bazel index a5cf7206a..0bba08881 100644 --- a/ts/congrats/BUILD.bazel +++ b/ts/congrats/BUILD.bazel @@ -57,7 +57,7 @@ exports_files(["congrats.html"]) ################ prettier_test( - name = "format", + name = "format_check", srcs = glob([ "*.ts", "*.svelte", @@ -72,7 +72,7 @@ eslint_test( ) svelte_check( - name = "svelte-check", + name = "svelte_check", srcs = glob([ "*.ts", "*.svelte", diff --git a/ts/format.sh b/ts/format.sh new file mode 100755 index 000000000..11131be39 --- /dev/null +++ b/ts/format.sh @@ -0,0 +1,3 @@ +# this is a hack to invoke prettier directly from Bazel +ts=${BUILD_WORKSPACE_DIRECTORY}/ts +(cd $ts && ./node_modules/.bin/prettier --config .prettierrc --write . $ts/../qt/aqt/data/web/js) diff --git a/ts/graphs/BUILD.bazel b/ts/graphs/BUILD.bazel index 488027b3d..91bc5ae21 100644 --- a/ts/graphs/BUILD.bazel +++ b/ts/graphs/BUILD.bazel @@ -99,7 +99,7 @@ exports_files(["graphs.html"]) ################ prettier_test( - name = "format", + name = "format_check", srcs = glob([ "*.ts", "*.svelte", @@ -117,7 +117,7 @@ eslint_test( ) svelte_check( - name = "svelte-check", + name = "svelte_check", srcs = glob([ "*.ts", "*.svelte", diff --git a/ts/lib/BUILD.bazel b/ts/lib/BUILD.bazel index 6d1717998..ce841105b 100644 --- a/ts/lib/BUILD.bazel +++ b/ts/lib/BUILD.bazel @@ -51,7 +51,7 @@ filegroup( ################ prettier_test( - name = "format", + name = "format_check", srcs = glob(["*.ts"]), ) diff --git a/ts/licenses.json b/ts/licenses.json new file mode 100644 index 000000000..168b6ee1e --- /dev/null +++ b/ts/licenses.json @@ -0,0 +1,297 @@ +{ + "@fluent/bundle@0.15.1": { + "licenses": "Apache-2.0", + "repository": "https://github.com/projectfluent/fluent.js", + "publisher": "Mozilla", + "email": "l10n-drivers@mozilla.org", + "path": "node_modules/@fluent/bundle", + "licenseFile": "node_modules/@fluent/bundle/README.md" + }, + "@protobufjs/aspromise@1.1.2": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/dcodeIO/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/@protobufjs/aspromise", + "licenseFile": "node_modules/@protobufjs/aspromise/LICENSE" + }, + "@protobufjs/base64@1.1.2": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/dcodeIO/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/@protobufjs/base64", + "licenseFile": "node_modules/@protobufjs/base64/LICENSE" + }, + "@protobufjs/codegen@2.0.4": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/dcodeIO/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/@protobufjs/codegen", + "licenseFile": "node_modules/@protobufjs/codegen/LICENSE" + }, + "@protobufjs/eventemitter@1.1.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/dcodeIO/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/@protobufjs/eventemitter", + "licenseFile": "node_modules/@protobufjs/eventemitter/LICENSE" + }, + "@protobufjs/fetch@1.1.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/dcodeIO/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/@protobufjs/fetch", + "licenseFile": "node_modules/@protobufjs/fetch/LICENSE" + }, + "@protobufjs/float@1.0.2": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/dcodeIO/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/@protobufjs/float", + "licenseFile": "node_modules/@protobufjs/float/LICENSE" + }, + "@protobufjs/inquire@1.1.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/dcodeIO/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/@protobufjs/inquire", + "licenseFile": "node_modules/@protobufjs/inquire/LICENSE" + }, + "@protobufjs/path@1.1.2": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/dcodeIO/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/@protobufjs/path", + "licenseFile": "node_modules/@protobufjs/path/LICENSE" + }, + "@protobufjs/pool@1.1.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/dcodeIO/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/@protobufjs/pool", + "licenseFile": "node_modules/@protobufjs/pool/LICENSE" + }, + "@protobufjs/utf8@1.1.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/dcodeIO/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/@protobufjs/utf8", + "licenseFile": "node_modules/@protobufjs/utf8/LICENSE" + }, + "@types/long@4.0.1": { + "licenses": "MIT", + "repository": "https://github.com/DefinitelyTyped/DefinitelyTyped", + "path": "node_modules/@types/long", + "licenseFile": "node_modules/@types/long/LICENSE" + }, + "@types/node@13.13.30": { + "licenses": "MIT", + "repository": "https://github.com/DefinitelyTyped/DefinitelyTyped", + "path": "node_modules/protobufjs/node_modules/@types/node", + "licenseFile": "node_modules/protobufjs/node_modules/@types/node/LICENSE" + }, + "d3-array@2.8.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-array", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-array", + "licenseFile": "node_modules/d3-array/LICENSE" + }, + "d3-axis@1.0.12": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-axis", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-axis", + "licenseFile": "node_modules/d3-axis/LICENSE" + }, + "d3-color@1.4.1": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-color", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-color", + "licenseFile": "node_modules/d3-color/LICENSE" + }, + "d3-color@2.0.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-color", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-scale/node_modules/d3-color", + "licenseFile": "node_modules/d3-scale/node_modules/d3-color/LICENSE" + }, + "d3-dispatch@1.0.6": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-dispatch", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-dispatch", + "licenseFile": "node_modules/d3-dispatch/LICENSE" + }, + "d3-ease@1.0.7": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-ease", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-ease", + "licenseFile": "node_modules/d3-ease/LICENSE" + }, + "d3-format@2.0.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-format", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-format", + "licenseFile": "node_modules/d3-format/LICENSE" + }, + "d3-interpolate@1.4.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-interpolate", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-interpolate", + "licenseFile": "node_modules/d3-interpolate/LICENSE" + }, + "d3-interpolate@2.0.1": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-interpolate", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-scale/node_modules/d3-interpolate", + "licenseFile": "node_modules/d3-scale/node_modules/d3-interpolate/LICENSE" + }, + "d3-path@1.0.9": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-path", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-path", + "licenseFile": "node_modules/d3-path/LICENSE" + }, + "d3-scale-chromatic@1.5.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-scale-chromatic", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-scale-chromatic", + "licenseFile": "node_modules/d3-scale-chromatic/LICENSE" + }, + "d3-scale@3.2.3": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-scale", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-scale", + "licenseFile": "node_modules/d3-scale/LICENSE" + }, + "d3-selection@1.4.2": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-selection", + "publisher": "Mike Bostock", + "url": "https://bost.ocks.org/mike", + "path": "node_modules/d3-selection", + "licenseFile": "node_modules/d3-selection/LICENSE" + }, + "d3-shape@1.3.7": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-shape", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-shape", + "licenseFile": "node_modules/d3-shape/LICENSE" + }, + "d3-time-format@3.0.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-time-format", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-time-format", + "licenseFile": "node_modules/d3-time-format/LICENSE" + }, + "d3-time@1.1.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-time", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-time", + "licenseFile": "node_modules/d3-time/LICENSE" + }, + "d3-time@2.0.0": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-time", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-scale/node_modules/d3-time", + "licenseFile": "node_modules/d3-scale/node_modules/d3-time/LICENSE" + }, + "d3-timer@1.0.10": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-timer", + "publisher": "Mike Bostock", + "url": "http://bost.ocks.org/mike", + "path": "node_modules/d3-timer", + "licenseFile": "node_modules/d3-timer/LICENSE" + }, + "d3-transition@1.3.2": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/d3/d3-transition", + "publisher": "Mike Bostock", + "url": "https://bost.ocks.org/mike", + "path": "node_modules/d3-transition", + "licenseFile": "node_modules/d3-transition/LICENSE" + }, + "intl-pluralrules@1.2.2": { + "licenses": "ISC", + "repository": "https://github.com/eemeli/intl-pluralrules", + "publisher": "Eemeli Aro", + "email": "eemeli@gmail.com", + "path": "node_modules/intl-pluralrules", + "licenseFile": "node_modules/intl-pluralrules/LICENSE" + }, + "lodash.debounce@4.0.8": { + "licenses": "MIT", + "repository": "https://github.com/lodash/lodash", + "publisher": "John-David Dalton", + "email": "john.david.dalton@gmail.com", + "url": "http://allyoucanleet.com/", + "path": "node_modules/lodash.debounce", + "licenseFile": "node_modules/lodash.debounce/LICENSE" + }, + "lodash.throttle@4.1.1": { + "licenses": "MIT", + "repository": "https://github.com/lodash/lodash", + "publisher": "John-David Dalton", + "email": "john.david.dalton@gmail.com", + "url": "http://allyoucanleet.com/", + "path": "node_modules/lodash.throttle", + "licenseFile": "node_modules/lodash.throttle/LICENSE" + }, + "long@4.0.0": { + "licenses": "Apache-2.0", + "repository": "https://github.com/dcodeIO/long.js", + "publisher": "Daniel Wirtz", + "email": "dcode@dcode.io", + "path": "node_modules/long", + "licenseFile": "node_modules/long/LICENSE" + }, + "protobufjs@6.10.1": { + "licenses": "BSD-3-Clause", + "repository": "https://github.com/protobufjs/protobuf.js", + "publisher": "Daniel Wirtz", + "email": "dcode+protobufjs@dcode.io", + "path": "node_modules/protobufjs", + "licenseFile": "node_modules/protobufjs/LICENSE" + } +} + diff --git a/ts/mathjax.bzl b/ts/mathjax.bzl new file mode 100644 index 000000000..f1c7d9372 --- /dev/null +++ b/ts/mathjax.bzl @@ -0,0 +1,70 @@ +"Rule to copy mathjax subset from node_modules to vendor folder." + +_exclude = [ + "mathmaps_ie.js", +] + +_include = [ + "es5/tex-chtml.js", + "es5/input/tex/extensions", + "es5/output/chtml/fonts/woff-v2", + "es5/a11y", + "es5/sre", +] + +_unwanted_prefix = "external/npm/node_modules/mathjax/es5/" + +def _copy_files(ctx, files): + cmds = [] + inputs = [] + outputs = [] + for (src, dst) in files: + inputs.append(src) + dst = ctx.actions.declare_file(dst) + outputs.append(dst) + cmds.append("cp -f {} {}".format(src.path, dst.path)) + + shell_fname = ctx.label.name + "-cp.sh" + shell_file = ctx.actions.declare_file(shell_fname) + ctx.actions.write( + output = shell_file, + content = "#!/bin/bash\nset -e\n" + "\n".join(cmds), + is_executable = True, + ) + ctx.actions.run( + inputs = inputs, + executable = "bash", + tools = [shell_file], + arguments = [shell_file.path], + outputs = outputs, + mnemonic = "CopyFile", + use_default_shell_env = True, + ) + + return [DefaultInfo(files = depset(outputs))] + +def _copy_mathjax_impl(ctx): + wanted = [] + for f in ctx.attr.mathjax.files.to_list(): + path = f.path + want = True + for substr in _exclude: + if substr in path: + want = False + continue + if not want: + continue + + for substr in _include: + if substr in path: + output = path.replace(_unwanted_prefix, "") + wanted.append((f, output)) + + return _copy_files(ctx, wanted) + +copy_mathjax = rule( + implementation = _copy_mathjax_impl, + attrs = { + "mathjax": attr.label(default = "@npm//mathjax:mathjax__files"), + }, +) diff --git a/ts/package.json b/ts/package.json index f326b095d..89841291f 100644 --- a/ts/package.json +++ b/ts/package.json @@ -6,9 +6,9 @@ "license": "AGPL-3.0-or-later", "description": "Anki JS support files", "devDependencies": { - "@bazel/labs": "^2.2.2", - "@bazel/rollup": "^2.2.2", - "@bazel/typescript": "^2.2.2", + "@bazel/labs": "=2.2.2", + "@bazel/rollup": "=2.2.2", + "@bazel/typescript": "=2.2.2", "@pyoner/svelte-types": "^3.4.4-2", "@rollup/plugin-commonjs": "^15.1.0", "@rollup/plugin-node-resolve": "^9.0.0", @@ -26,13 +26,13 @@ "@types/jqueryui": "^1.12.13", "@types/lodash": "^4.14.162", "@types/long": "^4.0.1", - "@types/mathjax": "0.0.36", "@types/react": "^16.9.53", "@types/react-dom": "^16.9.8", "@typescript-eslint/eslint-plugin": "^2.11.0", "@typescript-eslint/parser": "^2.11.0", "cross-env": "^7.0.2", "eslint": "^6.7.2", + "license-checker-rseidelsohn": "=1.1.2", "patch-package": "^6.2.2", "prettier": "^2.1.2", "prettier-plugin-svelte": "^1.4.0", @@ -64,6 +64,7 @@ "intl-pluralrules": "^1.2.2", "lodash.debounce": "^4.0.8", "lodash.throttle": "^4.1.1", + "mathjax": "^3.1.2", "protobufjs": "^6.10.1" }, "files": [ diff --git a/ts/prettier.bzl b/ts/prettier.bzl index e02678478..447c1a0b5 100644 --- a/ts/prettier.bzl +++ b/ts/prettier.bzl @@ -3,7 +3,7 @@ load( _prettier_test = "prettier_test", ) -def prettier_test(name = "format", srcs = [], **kwargs): +def prettier_test(name = "format_check", srcs = [], **kwargs): _prettier_test( name = name, args = [ @@ -17,3 +17,9 @@ def prettier_test(name = "format", srcs = [], **kwargs): ] + srcs, **kwargs ) + +def prettier(name = "format", **kwargs): + native.sh_binary( + name = name, + srcs = ["format.sh"], + ) diff --git a/ts/update.sh b/ts/update.sh new file mode 100755 index 000000000..4c2589be0 --- /dev/null +++ b/ts/update.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Update JS dependencies and dump runtime licenses to licenses.json + +set -e + +bazel run @nodejs//:yarn upgrade +./node_modules/.bin/license-checker-rseidelsohn --production --json \ + --excludePackages anki --relativeLicensePath \ + --relativeModulePath > licenses.json diff --git a/ts/yarn.lock b/ts/yarn.lock index ff9ebb25a..bec018071 100644 --- a/ts/yarn.lock +++ b/ts/yarn.lock @@ -24,21 +24,21 @@ js-tokens "^4.0.0" "@babel/parser@^7.9.4": - version "7.12.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.3.tgz#a305415ebe7a6c7023b40b5122a0662d928334cd" - integrity sha512-kFsOS0IbsuhO5ojF8Hc8z/8vEIOkylVBrjiZUbLTE3XFe0Qi+uu6HjzQixkFaqr0ZPAMZcBVxEwmsnsLPZ2Xsw== + version "7.12.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.5.tgz#b4af32ddd473c0bfa643bd7ff0728b8e71b81ea0" + integrity sha512-FVM6RZQ0mn2KCf1VUED7KepYeUWoVShczewOCfm3nzoBybaih51h+sYVVGthW9M6lPByEPTQf+xm27PBdlpwmQ== -"@bazel/labs@^2.2.2": +"@bazel/labs@=2.2.2": version "2.2.2" resolved "https://registry.yarnpkg.com/@bazel/labs/-/labs-2.2.2.tgz#0f57547d845bf3539c629b912ce74fc1391a7e20" integrity sha512-epthtuksxNc1Rr5vHQQmUYnLCmhu3tt8NadFf1G7Bvu3yi+BkfdxUSo7NXt+2YN7KqZlqx901YGKLy0z0jxjmw== -"@bazel/rollup@^2.2.2": +"@bazel/rollup@=2.2.2": version "2.2.2" resolved "https://registry.yarnpkg.com/@bazel/rollup/-/rollup-2.2.2.tgz#1abfc5cbf5eb65db2aa145e584d225684d961055" integrity sha512-z3sK0dt7pftjxlLuo66e3PMMGyjq6vD/8B+OEFN3LD3GjE34e8X0/KeRX5lXWs1ecVlrnTroiBxLCJSHwqBrEA== -"@bazel/typescript@^2.2.2": +"@bazel/typescript@=2.2.2": version "2.2.2" resolved "https://registry.yarnpkg.com/@bazel/typescript/-/typescript-2.2.2.tgz#c7cd49cb630ca3720c04c94046ba8ca4c0d5b0aa" integrity sha512-hkx/7L3s8q5gIgaSFmkUZWPqdKmdJmQ04GaLnsI/YEp9EhPObqATSKnOHeDdT7bzqLO7giDAwAiXhEmsO1Smcw== @@ -48,11 +48,6 @@ source-map-support "0.5.9" tsutils "2.27.2" -"@emmetio/extract-abbreviation@0.1.6": - version "0.1.6" - resolved "https://registry.yarnpkg.com/@emmetio/extract-abbreviation/-/extract-abbreviation-0.1.6.tgz#e4a9856c1057f0aff7d443b8536477c243abe28c" - integrity sha512-Ce3xE2JvTSEbASFbRbA1gAIcMcZWdS2yUYRaQbeM0nbOzaZrUYfa3ePtcriYRZOZmr+CkKA+zbjhvTpIOAYVcw== - "@fluent/bundle@^0.15.1": version "0.15.1" resolved "https://registry.yarnpkg.com/@fluent/bundle/-/bundle-0.15.1.tgz#95d3b9f836ac138b6ee8480ef8d0547dd59195b1" @@ -156,9 +151,9 @@ integrity sha512-EBrpH2iXXfaf/9z81koiDYkp2mlwW2XzFcAqn6qh7VKyP8zBvHHAQzNhY+W9vH5arAjmGAm5g8ElWq6YmXm3ig== "@types/d3-array@^2.0.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@types/d3-array/-/d3-array-2.3.0.tgz#50e7d7d84aa1f8d7645a4397b7d3a287194f5a38" - integrity sha512-eBQLBDq0bcXW9K14ktZDL/oeTzhS7BIoyEb0ZQb7gq4kTI/nZD+OISrpmxFll9LIXp7gOmYk+yPPoxt3GeXtQg== + version "2.7.0" + resolved "https://registry.yarnpkg.com/@types/d3-array/-/d3-array-2.7.0.tgz#031400c606734e8420d4e874e4860dc3cd284c81" + integrity sha512-RGZkT8r6+dS5vcImIJbna3HdRbDABiAxaIFoy07SQTK3hyzSgUgM+LbWcGuGEkCvtJ1RJK2KwrEtFC6ibD51uA== "@types/d3-axis@^1.0.12": version "1.0.14" @@ -202,9 +197,9 @@ integrity sha512-GjKQWVZO6Sa96HiKO6R93VBE8DUW+DDkFpIMf9vpY5S78qZTlRRSNUsHr/afDpF7TvLDV7VxrUFOWW7vdIlYkA== "@types/d3-shape@^1.3.2": - version "1.3.4" - resolved "https://registry.yarnpkg.com/@types/d3-shape/-/d3-shape-1.3.4.tgz#5a6d8c3026ba8e8a1a985bda8da40acfc9b7b079" - integrity sha512-fxmOjs+UqNQGpztD5BOo+KriE0jLFrBP4Ct++0QExv/xfDOT1cpcMxgsZ+5qPmnR0t+GjbwAe1Um1PHpv3G4oA== + version "1.3.5" + resolved "https://registry.yarnpkg.com/@types/d3-shape/-/d3-shape-1.3.5.tgz#c0164c1be1429473016f855871d487f806c4e968" + integrity sha512-aPEax03owTAKynoK8ZkmkZEDZvvT4Y5pWgii4Jp4oQt0gH45j6siDl9gNDVC5kl64XHN2goN9jbYoHK88tFAcA== dependencies: "@types/d3-path" "^1" @@ -241,9 +236,9 @@ integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== "@types/jquery@*", "@types/jquery@^3.5.0": - version "3.5.3" - resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.5.3.tgz#adcc647e4c675bd9ebae7fb980e9ca75d58ee8c7" - integrity sha512-IENpHTjGksr2wQS6ZO8eMIE0tIB22Ywg+n3/yAWCa56VSZ26phcwAbFdh9+VNUWk7e83qB27QLax3Rf4G92Y9A== + version "3.5.4" + resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.5.4.tgz#e923f7d05ca790530f17f80a3b89bc28853fa17f" + integrity sha512-//9CHhaUt/rurMJTxGI+I6DmsNHgYU6d8aSLFfO5dB7+10lwLnaWT0z5GY/yY82Q/M+B+0Qh3TixlJ8vmBeqIw== dependencies: "@types/sizzle" "*" @@ -260,39 +255,29 @@ integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== "@types/lodash@^4.14.162": - version "4.14.162" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.162.tgz#65d78c397e0d883f44afbf1f7ba9867022411470" - integrity sha512-alvcho1kRUnnD1Gcl4J+hK0eencvzq9rmzvFPRmP5rPHx9VVsJj6bKLTATPVf9ktgv4ujzh7T+XWKp+jhuODig== + version "4.14.165" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.165.tgz#74d55d947452e2de0742bad65270433b63a8c30f" + integrity sha512-tjSSOTHhI5mCHTy/OOXYIhi2Wt1qcbHmuXD1Ha7q70CgI/I71afO4XtLb/cVexki1oVYchpul/TOuu3Arcdxrg== "@types/long@^4.0.0", "@types/long@^4.0.1": version "4.0.1" resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.1.tgz#459c65fa1867dafe6a8f322c4c51695663cc55e9" integrity sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w== -"@types/mathjax@0.0.36": - version "0.0.36" - resolved "https://registry.yarnpkg.com/@types/mathjax/-/mathjax-0.0.36.tgz#18cf766f88ac0cd4e7ee8282b1286049bb6aa682" - integrity sha512-TqDJc2GWuTqd/m+G/FbNkN+/TF2OCCHvcawmhIrUaZkdVquMdNZmNiNUkupNg9qctorXXkVLVSogZv1DhmgLmg== - "@types/node@*": - version "14.14.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.2.tgz#d25295f9e4ca5989a2c610754dc02a9721235eeb" - integrity sha512-jeYJU2kl7hL9U5xuI/BhKPZ4vqGM/OmK6whiFAXVhlstzZhVamWhDSmHyGLIp+RVyuF9/d0dqr2P85aFj4BvJg== + version "14.14.7" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.7.tgz#8ea1e8f8eae2430cf440564b98c6dfce1ec5945d" + integrity sha512-Zw1vhUSQZYw+7u5dAwNbIA9TuTotpzY/OF7sJM9FqPOF3SPjKnxrjoTktXDZgUjybf4cWVBP7O8wvKdSaGHweg== "@types/node@^10.1.0": - version "10.17.42" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.42.tgz#90dd71b26fe4f4e2929df6b07e72ef2e9648a173" - integrity sha512-HElxYF7C/MSkuvlaHB2c+82zhXiuO49Cq056Dol8AQuTph7oJtduo2n6J8rFa+YhJyNgQ/Lm20ZaxqD0vxU0+Q== + version "10.17.44" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.44.tgz#3945e6b702cb6403f22b779c8ea9e5c3f44ead40" + integrity sha512-vHPAyBX1ffLcy4fQHmDyIUMUb42gHZjPHU66nhvbMzAWJqHnySGZ6STwN3rwrnSd1FHB0DI/RWgGELgKSYRDmw== "@types/node@^13.7.0": - version "13.13.28" - resolved "https://registry.yarnpkg.com/@types/node/-/node-13.13.28.tgz#b6d0628b0371d6c629d729c98322de314b640219" - integrity sha512-EM/qFeRH8ZCD+TlsaIPULyyFm9vOhFIvgskY2JmHbEsWsOPgN+rtjSXrcHGgJpob4Nu17VfO95FKewr0XY7iOQ== - -"@types/parse-json@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" - integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== + version "13.13.30" + resolved "https://registry.yarnpkg.com/@types/node/-/node-13.13.30.tgz#1ed6e01e4ca576d5aec9cc802cc3bcf94c274192" + integrity sha512-HmqFpNzp3TSELxU/bUuRK+xzarVOAsR00hzcvM0TXrMlt/+wcSLa5q6YhTb6/cA6wqDCZLDcfd8fSL95x5h7AA== "@types/prop-types@*": version "15.7.3" @@ -305,16 +290,16 @@ integrity sha1-h3L80EGOPNLMFxVV1zAHQVBR9LI= "@types/react-dom@^16.9.8": - version "16.9.8" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.9.8.tgz#fe4c1e11dfc67155733dfa6aa65108b4971cb423" - integrity sha512-ykkPQ+5nFknnlU6lDd947WbQ6TE3NNzbQAkInC2EKY1qeYdTKp7onFusmYZb+ityzx2YviqT6BXSu+LyWWJwcA== + version "16.9.9" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.9.9.tgz#d2d0a6f720a0206369ccbefff752ba37b9583136" + integrity sha512-jE16FNWO3Logq/Lf+yvEAjKzhpST/Eac8EMd1i4dgZdMczfgqC8EjpxwNgEe3SExHYLliabXDh9DEhhqnlXJhg== dependencies: "@types/react" "*" "@types/react@*", "@types/react@^16.9.53": - version "16.9.53" - resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.53.tgz#40cd4f8b8d6b9528aedd1fff8fcffe7a112a3d23" - integrity sha512-4nW60Sd4L7+WMXH1D6jCdVftuW7j4Za6zdp6tJ33Rqv0nk1ZAmQKML9ZLD4H0dehA3FZxXR/GM8gXplf82oNGw== + version "16.9.56" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.56.tgz#ea25847b53c5bec064933095fc366b1462e2adf0" + integrity sha512-gIkl4J44G/qxbuC6r2Xh+D3CGZpJ+NdWTItAPmZbR5mUS+JQ8Zvzpl0ea5qT/ZT3ZNTUcDKUVqV3xBE8wv/DyQ== dependencies: "@types/prop-types" "*" csstype "^3.0.2" @@ -386,6 +371,11 @@ resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31" integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ== +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + acorn-jsx@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" @@ -484,11 +474,21 @@ arr-union@^3.1.0: resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= +array-find-index@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" + integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E= + array-unique@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= +asap@^2.0.0: + version "2.0.6" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" + integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= + assign-symbols@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" @@ -609,6 +609,14 @@ chalk@^2.0.0, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" +chalk@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" + integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chalk@^4.0.0, chalk@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" @@ -721,17 +729,6 @@ copy-descriptor@^0.1.0: resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= -cosmiconfig@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.0.tgz#ef9b44d773959cae63ddecd122de23853b60f8d3" - integrity sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" - cross-env@^7.0.2: version "7.0.2" resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.2.tgz#bd5ed31339a93a3418ac4f3ca9ca3403082ae5f9" @@ -897,6 +894,11 @@ debug@^4.0.1, debug@^4.1.1: dependencies: ms "2.1.2" +debuglog@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492" + integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI= + decode-uri-component@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" @@ -944,6 +946,14 @@ detect-indent@^6.0.0: resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd" integrity sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA== +dezalgo@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/dezalgo/-/dezalgo-1.0.3.tgz#7f742de066fc748bc8db820569dddce49bf0d456" + integrity sha1-f3Qt4Gb8dIvI24IFad3c5Jvw1FY= + dependencies: + asap "^2.0.0" + wrappy "1" + doctrine@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" @@ -966,13 +976,6 @@ entities@~2.0.0: resolved "https://registry.yarnpkg.com/entities/-/entities-2.0.3.tgz#5c487e5742ab93c15abb5da22759b8590ec03b7f" integrity sha512-MyoZ0jgnLvB2X3Lg5HqpFmn1kybDiIfEQmKzTb5apr51Rb+T3KdmMiqa70T+bhGnyv7bQ6WMj2QMHpGMmlrUYQ== -error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" @@ -1307,7 +1310,7 @@ glob-parent@^5.0.0, glob-parent@~5.1.0: dependencies: is-glob "^4.0.1" -glob@^7.1.2, glob@^7.1.3, glob@^7.1.6: +glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.6: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== @@ -1379,6 +1382,11 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" +hosted-git-info@^2.1.4: + version "2.8.8" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488" + integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg== + iconv-lite@^0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" @@ -1392,9 +1400,9 @@ ignore@^4.0.6: integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== import-fresh@^3.0.0, import-fresh@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66" - integrity sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ== + version "3.2.2" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.2.tgz#fc129c160c5d68235507f4331a6baad186bdbc3e" + integrity sha512-cTPNrlvJT6twpYy+YmKUKrTSjWFs3bjYjAhCwm+z4EOCubZxAuO+hHpRN64TqjEaYSHs7tJAE0w1CKMGmsG/lw== dependencies: parent-module "^1.0.0" resolve-from "^4.0.0" @@ -1455,11 +1463,6 @@ is-accessor-descriptor@^1.0.0: dependencies: kind-of "^6.0.0" -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= - is-binary-path@~2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" @@ -1479,10 +1482,10 @@ is-ci@^2.0.0: dependencies: ci-info "^2.0.0" -is-core-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.0.0.tgz#58531b70aed1db7c0e8d4eb1a0a2d1ddd64bd12d" - integrity sha512-jq1AH6C8MuteOoBPwkxHafmByhL9j5q4OaPGdbuD+ZtQJVzH+i6E3BJDQcBA09k57i2Hh2yQbEG8yObZ0jdlWw== +is-core-module@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.1.0.tgz#a4cc031d9b1aca63eecbd18a650e13cb4eeab946" + integrity sha512-YcV7BgVMRFRua2FqQzKtTDMz8iCuLEyGKjr70q8Zm1yy2qKcurbFEd79PAdHV77oL3NrAaOVQIbMmiHQCHB7ZA== dependencies: has "^1.0.3" @@ -1611,9 +1614,9 @@ isobject@^3.0.0, isobject@^3.0.1: integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= jest-worker@^26.2.1: - version "26.6.1" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.1.tgz#c2ae8cde6802cc14056043f997469ec170d9c32a" - integrity sha512-R5IE3qSGz+QynJx8y+ICEkdI2OJ3RJjRQVEyCcFAd3yVhQSEtquziPO29Mlzgn07LOVE8u8jhJ1FqcwegiXWOw== + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" + integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== dependencies: "@types/node" "*" merge-stream "^2.0.0" @@ -1674,11 +1677,6 @@ json-stable-stringify-without-jsonify@^1.0.1: resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= -jsonc-parser@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-1.0.3.tgz#1d53d7160e401a783dbceabaad82473f80e6ad7e" - integrity sha512-hk/69oAeaIzchq/v3lS50PXuzn5O2ynldopMC+SWBql7J2WtdptfB9dy8Y7+Og5rPkTCpn83zTiO8FMcqlXJ/g== - jsonfile@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" @@ -1732,10 +1730,21 @@ levn@^0.3.0, levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" -lines-and-columns@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" - integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= +license-checker-rseidelsohn@=1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/license-checker-rseidelsohn/-/license-checker-rseidelsohn-1.1.2.tgz#8382c6f8fefd11229dc97af55f539ebef6392cf3" + integrity sha512-OS8OpSJMSXnmfQiFSITX3ufbMtBZr8u1NenMrVXL0tiE7mBdzTyd4UTn+MXrEHRNSaqZ89BjdKtb36eiqb99bA== + dependencies: + chalk "^3.0.0" + debug "^4.1.1" + mkdirp "^1.0.3" + nopt "^4.0.1" + read-installed "~4.0.3" + semver "^7.1.3" + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + spdx-satisfies "^5.0.0" + treeify "^1.1.0" linkify-it@^2.0.0: version "2.2.0" @@ -1811,6 +1820,11 @@ marked@^0.8.2: resolved "https://registry.yarnpkg.com/marked/-/marked-0.8.2.tgz#4faad28d26ede351a7a1aaa5fec67915c869e355" integrity sha512-EGwzEeCcLniFX51DhTpmTom+dSA/MG/OBUDjnWtHbEnjAH180VzUeAw+oE4+Zv+CoYBWyRlYOTR0N8SO9R1PVw== +mathjax@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/mathjax/-/mathjax-3.1.2.tgz#95c0d45ce2330ef7b6a815cebe7d61ecc26bbabd" + integrity sha512-BojKspBv4nNWzO1wC6VEI+g9gHDOhkaGHGgLxXkasdU4pwjdO5AXD5M/wcLPkXYPjZ/N+6sU8rjQTlyvN2cWiQ== + mdurl@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e" @@ -1877,7 +1891,7 @@ mkdirp@^0.5.1: dependencies: minimist "^1.2.5" -mkdirp@^1.0.4: +mkdirp@^1.0.3, mkdirp@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== @@ -1932,11 +1946,34 @@ no-case@^3.0.3: lower-case "^2.0.1" tslib "^1.10.0" +nopt@^4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.3.tgz#a375cad9d02fd921278d954c2254d5aa57e15e48" + integrity sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg== + dependencies: + abbrev "1" + osenv "^0.1.4" + +normalize-package-data@^2.0.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" + integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== + dependencies: + hosted-git-info "^2.1.4" + resolve "^1.10.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== +npm-normalize-package-bin@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz#6e79a41f23fd235c0623218228da7d9c23b8f6e2" + integrity sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA== + object-copy@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" @@ -1986,11 +2023,24 @@ optionator@^0.8.1, optionator@^0.8.3: type-check "~0.3.2" word-wrap "~1.2.3" -os-tmpdir@~1.0.1, os-tmpdir@~1.0.2: +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= + +os-tmpdir@^1.0.0, os-tmpdir@~1.0.1, os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= +osenv@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + parent-module@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" @@ -1998,16 +2048,6 @@ parent-module@^1.0.0: dependencies: callsites "^3.0.0" -parse-json@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.1.0.tgz#f96088cdf24a8faa9aea9a009f2d9d942c999646" - integrity sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ== - dependencies: - "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - pascal-case@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/pascal-case/-/pascal-case-3.1.1.tgz#5ac1975133ed619281e88920973d2cd1f279de5f" @@ -2059,11 +2099,6 @@ path-parse@^1.0.6: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== -path-type@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" - integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== - picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2: version "2.2.2" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" @@ -2079,12 +2114,12 @@ prelude-ls@~1.1.2: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= -prettier-plugin-svelte@^1.4.0, prettier-plugin-svelte@~1.4.1: +prettier-plugin-svelte@^1.4.0: version "1.4.1" resolved "https://registry.yarnpkg.com/prettier-plugin-svelte/-/prettier-plugin-svelte-1.4.1.tgz#2f0f7a149190f476dc9b4ba9da8d482bd196f1e2" integrity sha512-6y0m37Xw01GRf/WIHau+Kp3uXj2JB1agtEmNVKb9opMy34A6OMOYhfneVpNIlrghQSw/jIV+t3e5Ngt4up2CMA== -prettier@2.1.2, prettier@^2.1.2: +prettier@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5" integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg== @@ -2179,6 +2214,40 @@ randombytes@^2.1.0: dependencies: safe-buffer "^5.1.0" +read-installed@~4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/read-installed/-/read-installed-4.0.3.tgz#ff9b8b67f187d1e4c29b9feb31f6b223acd19067" + integrity sha1-/5uLZ/GH0eTCm5/rMfayI6zRkGc= + dependencies: + debuglog "^1.0.1" + read-package-json "^2.0.0" + readdir-scoped-modules "^1.0.0" + semver "2 || 3 || 4 || 5" + slide "~1.1.3" + util-extend "^1.0.1" + optionalDependencies: + graceful-fs "^4.1.2" + +read-package-json@^2.0.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-2.1.2.tgz#6992b2b66c7177259feb8eaac73c3acd28b9222a" + integrity sha512-D1KmuLQr6ZSJS0tW8hf3WGpRlwszJOXZ3E8Yd/DNRaM5d+1wVRZdHlpGBLAuovjr28LbWvjpWkBHMxpRGGjzNA== + dependencies: + glob "^7.1.1" + json-parse-even-better-errors "^2.3.0" + normalize-package-data "^2.0.0" + npm-normalize-package-bin "^1.0.0" + +readdir-scoped-modules@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.1.0.tgz#8d45407b4f870a0dcaebc0e28670d18e74514309" + integrity sha512-asaikDeqAQg7JifRsZn1NJZXo9E+VwlyCfbkZhwyISinqk5zNS6266HS5kah6P0SaQKGF6SkNnZVHUzHFYxYDw== + dependencies: + debuglog "^1.0.1" + dezalgo "^1.0.0" + graceful-fs "^4.1.2" + once "^1.3.0" + readdirp@~3.5.0: version "3.5.0" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e" @@ -2231,12 +2300,12 @@ resolve-url@^0.2.1: resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= -resolve@^1.17.0: - version "1.18.1" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.18.1.tgz#018fcb2c5b207d2a6424aee361c5a266da8f4130" - integrity sha512-lDfCPaMKfOJXjy0dPayzPdF1phampNWr3qFCjAu+rw/qbQmr5jWH5xN2hwh9QKfw9E5v4hwV7A+jrCmL8yjjqA== +resolve@^1.10.0, resolve@^1.17.0: + version "1.19.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.19.0.tgz#1af5bf630409734a067cae29318aac7fa29a267c" + integrity sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== dependencies: - is-core-module "^2.0.0" + is-core-module "^2.1.0" path-parse "^1.0.6" restore-cursor@^3.1.0: @@ -2277,9 +2346,9 @@ rollup-plugin-terser@^7.0.2: terser "^5.0.0" rollup@^2.32.1: - version "2.32.1" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.32.1.tgz#625a92c54f5b4d28ada12d618641491d4dbb548c" - integrity sha512-Op2vWTpvK7t6/Qnm1TTh7VjEZZkN8RWgf0DHbkKzQBwNf748YhXbozHVefqpPp/Fuyk/PQPAnYsBxAEtlMvpUw== + version "2.33.1" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.33.1.tgz#802795164164ee63cd47769d8879c33ec8ae0c40" + integrity sha512-uY4O/IoL9oNW8MMcbA5hcOaz6tZTMIh7qJHx/tzIJm+n1wLoY38BLn6fuy7DhR57oNFLMbDQtDeJoFURt5933w== optionalDependencies: fsevents "~2.1.2" @@ -2312,22 +2381,22 @@ safe-regex@^1.1.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== +"semver@2 || 3 || 4 || 5", semver@^5.5.0, semver@^5.6.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + semver@5.6.0: version "5.6.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004" integrity sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg== -semver@^5.5.0, semver@^5.6.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - semver@^6.1.2: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^7.3.2: +semver@^7.1.3, semver@^7.3.2: version "7.3.2" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== @@ -2392,6 +2461,11 @@ slice-ansi@^2.1.0: astral-regex "^1.0.0" is-fullwidth-code-point "^2.0.0" +slide@~1.1.3: + version "1.1.6" + resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707" + integrity sha1-VusCfWW00tzmyy4tMsTUr8nh1wc= + snapdragon-node@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" @@ -2474,6 +2548,55 @@ sourcemap-codec@^1.4.4: resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== +spdx-compare@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/spdx-compare/-/spdx-compare-1.0.0.tgz#2c55f117362078d7409e6d7b08ce70a857cd3ed7" + integrity sha512-C1mDZOX0hnu0ep9dfmuoi03+eOdDoz2yvK79RxbcrVEG1NO1Ph35yW102DHWKN4pk80nwCgeMmSY5L25VE4D9A== + dependencies: + array-find-index "^1.0.2" + spdx-expression-parse "^3.0.0" + spdx-ranges "^2.0.0" + +spdx-correct@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" + integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" + integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== + +spdx-expression-parse@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" + integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.6" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.6.tgz#c80757383c28abf7296744998cbc106ae8b854ce" + integrity sha512-+orQK83kyMva3WyPf59k1+Y525csj5JejicWut55zeTWANuN17qSiSLUXWtzHeNWORSvT7GLDJ/E/XiIWoXBTw== + +spdx-ranges@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/spdx-ranges/-/spdx-ranges-2.1.1.tgz#87573927ba51e92b3f4550ab60bfc83dd07bac20" + integrity sha512-mcdpQFV7UDAgLpXEE/jOMqvK4LBoO0uTQg0uvXUewmEFhpiZx5yJSZITHB8w1ZahKdhfZqP5GPEOKLyEq5p8XA== + +spdx-satisfies@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/spdx-satisfies/-/spdx-satisfies-5.0.0.tgz#d740b8f14caeada36fb307629dee87146970a256" + integrity sha512-/hGhwh20BeGmkA+P/lm06RvXD94JduwNxtx/oX3B5ClPt1/u/m5MCaDNo1tV3Y9laLkQr/NRde63b9lLMhlNfw== + dependencies: + spdx-compare "^1.0.0" + spdx-expression-parse "^3.0.0" + spdx-ranges "^2.0.0" + split-string@^3.0.1, split-string@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" @@ -2553,78 +2676,41 @@ supports-color@^7.0.0, supports-color@^7.1.0: has-flag "^4.0.0" svelte-check@^1.0.61: - version "1.0.61" - resolved "https://registry.yarnpkg.com/svelte-check/-/svelte-check-1.0.61.tgz#9723747d5f2e86b7241be93ae32c194f2f4476f0" - integrity sha512-hngvMp2Y9ZsJC7c4Gf29Ec2fm5/F8RX0GIVEkzVnrr8TFRMzkP4sVmMj2R/u02c0NY0MBhgZ974pMuHu74pyPA== + version "1.1.11" + resolved "https://registry.yarnpkg.com/svelte-check/-/svelte-check-1.1.11.tgz#c577be55ce9dbfd7f27de672a7d8736fb4aecdbd" + integrity sha512-kUd8caplQGERPfAGLwwbJ0EZ5dzsEVqEEfH93Ur4RJsPi7hW+gV6czEn3KVbJP7XrPmnoi3y2B/G1RUzyPr6yQ== dependencies: chalk "^4.0.0" chokidar "^3.4.1" glob "^7.1.6" + import-fresh "^3.2.1" minimist "^1.2.5" - svelte-language-server "*" - vscode-languageserver "6.1.1" - vscode-languageserver-protocol "3.15.3" - vscode-languageserver-types "3.15.1" - vscode-uri "2.1.2" - -svelte-language-server@*: - version "0.10.140" - resolved "https://registry.yarnpkg.com/svelte-language-server/-/svelte-language-server-0.10.140.tgz#a74d2f16ba0254818570f02f89317b84ff09f406" - integrity sha512-WSi06jPShGYUJ5SP7XdSPV0nqxjsT3Oy8g1JZW7IRTamORWPx9LWBKllDCuLtB4l4iWlpNlMSqj0+siLz7fDAQ== - dependencies: - chokidar "^3.4.1" - cosmiconfig "^7.0.0" - estree-walker "^2.0.1" - lodash "^4.17.19" - prettier "2.1.2" - prettier-plugin-svelte "~1.4.1" source-map "^0.7.3" - svelte "3.28.0" - svelte-preprocess "~4.3.0" - svelte2tsx "*" + svelte-preprocess "^4.0.0" typescript "*" - vscode-css-languageservice "4.2.0" - vscode-emmet-helper "1.2.17" - vscode-html-languageservice "3.0.4-next.15" - vscode-languageserver "6.1.1" - vscode-languageserver-types "3.15.1" - vscode-uri "2.1.2" -svelte-preprocess@~4.3.0: - version "4.3.2" - resolved "https://registry.yarnpkg.com/svelte-preprocess/-/svelte-preprocess-4.3.2.tgz#a05a98e59c64044e835b1401346be41665f19971" - integrity sha512-CmIsCr62y34qGS10/SC1l1VkmX0kZR6wncbGgRJ1qJftLDMEaazC3bWqoqAlrqyQFvpO0+xb44GQm4RKi/9sLQ== +svelte-preprocess@^4.0.0: + version "4.5.2" + resolved "https://registry.yarnpkg.com/svelte-preprocess/-/svelte-preprocess-4.5.2.tgz#37976d1e0d866eb382411d486f7468d2275087e9" + integrity sha512-ClUX5NecnGBwI+nJnnBvKKy0XutCq5uHTIKe6cPhpvuOj9AAnyvef9wOZAE93yr85OKPutGCNIJa/X1TrJ7O0Q== dependencies: "@types/pug" "^2.0.4" "@types/sass" "^1.16.0" detect-indent "^6.0.0" strip-indent "^3.0.0" -svelte2tsx@*: - version "0.1.131" - resolved "https://registry.yarnpkg.com/svelte2tsx/-/svelte2tsx-0.1.131.tgz#609857b5312f9dfc39472952a7cb4973cd2b731d" - integrity sha512-9o1Ld756S6v3hj0wVTs4qU2WkZR5M6sGpUway7K/PCY0ehlGWshId3vtcwY1VhGfHBhKQssetZs5/s3srwa2cw== - dependencies: - dedent-js "^1.0.1" - pascal-case "^3.1.1" - svelte2tsx@^0.1.133: - version "0.1.133" - resolved "https://registry.yarnpkg.com/svelte2tsx/-/svelte2tsx-0.1.133.tgz#daf2beca6ca8db2805887048d7ad139a596c5944" - integrity sha512-pPO/ADVNvvmSociSOe4P1xJmF0RvT8eFWFFzM1W2Gp9gmpluMxqEiNdRgAVf+VnL9iv2rTg+3cblnvLwcPRH/Q== + version "0.1.143" + resolved "https://registry.yarnpkg.com/svelte2tsx/-/svelte2tsx-0.1.143.tgz#e817f509de13612ed81ddbbe05b8c9ca9e9d3379" + integrity sha512-qKydNj18zU42xPqI02+sox65RGW/a1JdyZ1SYzXWNzFZeUABFH8vjZ7V1YZ6dxNYZOyj0XjK3N1LleVoOCUKAg== dependencies: dedent-js "^1.0.1" pascal-case "^3.1.1" -svelte@3.28.0: - version "3.28.0" - resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.28.0.tgz#e257fab5666701cf230bea583ceb470bdda1344c" - integrity sha512-WJW8wD+aTmU5GUnTUjdhVF35mve2MjylubLgB6fGWoXHpYENdwcwWsWvjMQLayzMynqNH733h1Ck8wJzNR7gdQ== - svelte@^3.28.0: - version "3.29.4" - resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.29.4.tgz#d0f80cb58109ef52963855c23496f7153bb2eb7e" - integrity sha512-oW0fGHlyFFMvzRtIvOs84b0fOc0gmZNQcL5Is3hxuTpvaYX3pfd8oHy4KnOvbq4Ca6SG6AHdRMk7OhApTo0NqA== + version "3.29.7" + resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.29.7.tgz#e254eb2d0d609ce0fd60f052d444ac4a66d90f7d" + integrity sha512-rx0g311kBODvEWUU01DFBUl3MJuJven04bvTVFUG/w0On/wuj0PajQY/QlXcJndFxG+W1s8iXKaB418tdHWc3A== table@^5.2.3: version "5.4.6" @@ -2706,6 +2792,11 @@ to-regex@^3.0.1, to-regex@^3.0.2: regex-not "^1.0.2" safe-regex "^1.1.0" +treeify@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/treeify/-/treeify-1.1.0.tgz#4e31c6a463accd0943879f30667c4fdaff411bb8" + integrity sha512-1m4RA7xVAJrSGrrXGs0L3YTwyvBs2S8PbRHaLZAkFw7JR8oIFwYtysxlBZhYIa7xSyiYJKZ3iGrrk55cGA3i9A== + tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" @@ -2748,9 +2839,9 @@ type-fest@^0.8.1: integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== typescript@*: - version "4.0.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5" - integrity sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg== + version "4.0.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389" + integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ== typescript@^3.9.7: version "3.9.7" @@ -2763,9 +2854,9 @@ uc.micro@^1.0.1, uc.micro@^1.0.5: integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA== uglify-js@^3.3.25: - version "3.11.3" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.11.3.tgz#b2f8c87826344f091ba48c417c499d6cba5d5786" - integrity sha512-wDRziHG94mNj2n3R864CvYw/+pc9y/RNImiTyrrf8BzgWn75JgFSwYvXrtZQMnMnOp/4UTrf3iCSQxSStPiByA== + version "3.11.5" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.11.5.tgz#d6788bc83cf35ff18ea78a65763e480803409bc6" + integrity sha512-btvv/baMqe7HxP7zJSF7Uc16h1mSfuuSplT0/qdjxseesDU+yYzH33eHBH+eMdeRXwujXspaCTooWHQVVBh09w== underscore@~1.10.2: version "1.10.2" @@ -2812,79 +2903,23 @@ use@^3.1.0: resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== +util-extend@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/util-extend/-/util-extend-1.0.3.tgz#a7c216d267545169637b3b6edc6ca9119e2ff93f" + integrity sha1-p8IW0mdUUWljeztu3GypEZ4v+T8= + v8-compile-cache@^2.0.3: - version "2.1.1" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz#54bc3cdd43317bca91e35dcaf305b1a7237de745" - integrity sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ== + version "2.2.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz#9471efa3ef9128d2f7c6a7ca39c4dd6b5055b132" + integrity sha512-gTpR5XQNKFwOd4clxfnhaqvfqMpqEwr4tOtCyz4MtYZX2JYhfr1JvBFKdS+7K/9rfpZR3VLX+YWBbKoxCgS43Q== -vscode-css-languageservice@4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/vscode-css-languageservice/-/vscode-css-languageservice-4.2.0.tgz#56081374857ce8aa4dd4c98f97e4e10a30b7242f" - integrity sha512-HIjl5bofrrxMMF05K/nq83270EdvteuAIio44FWd6tDdfhgg4vbofiAuXRSpXFi335f5+ekKdrzvPZm9ahqzsg== +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== dependencies: - vscode-languageserver-textdocument "^1.0.1" - vscode-languageserver-types "^3.15.1" - vscode-nls "^4.1.2" - vscode-uri "^2.1.1" - -vscode-emmet-helper@1.2.17: - version "1.2.17" - resolved "https://registry.yarnpkg.com/vscode-emmet-helper/-/vscode-emmet-helper-1.2.17.tgz#f0c6bfcebc4285d081fb2618e6e5b9a08c567afa" - integrity sha512-X4pzcrJ8dE7M3ArFuySF5fgipKDd/EauXkiJwtjBIVRWpVNq0tF9+lNCyuC7iDUwP3Oq7ow/TGssD3GdG96Jow== - dependencies: - "@emmetio/extract-abbreviation" "0.1.6" - jsonc-parser "^1.0.0" - vscode-languageserver-types "^3.6.0-next.1" - -vscode-html-languageservice@3.0.4-next.15: - version "3.0.4-next.15" - resolved "https://registry.yarnpkg.com/vscode-html-languageservice/-/vscode-html-languageservice-3.0.4-next.15.tgz#7214ccd9b4a06cf138b5945d9fd88285a0add490" - integrity sha512-UmUm3A1ZTj+BloVIyel+5pK/nfsqRfPLXzl8BA9O7v5Cj64vivddABvNf/rW1US8fzdikFNZNloC/4ooqxB2kw== - dependencies: - vscode-languageserver-textdocument "^1.0.1-next.1" - vscode-languageserver-types "^3.15.1" - vscode-nls "^4.1.1" - vscode-uri "^2.1.1" - -vscode-jsonrpc@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/vscode-jsonrpc/-/vscode-jsonrpc-5.0.1.tgz#9bab9c330d89f43fc8c1e8702b5c36e058a01794" - integrity sha512-JvONPptw3GAQGXlVV2utDcHx0BiY34FupW/kI6mZ5x06ER5DdPG/tXWMVHjTNULF5uKPOUUD0SaXg5QaubJL0A== - -vscode-languageserver-protocol@3.15.3, vscode-languageserver-protocol@^3.15.3: - version "3.15.3" - resolved "https://registry.yarnpkg.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.15.3.tgz#3fa9a0702d742cf7883cb6182a6212fcd0a1d8bb" - integrity sha512-zrMuwHOAQRhjDSnflWdJG+O2ztMWss8GqUUB8dXLR/FPenwkiBNkMIJJYfSN6sgskvsF0rHAoBowNQfbyZnnvw== - dependencies: - vscode-jsonrpc "^5.0.1" - vscode-languageserver-types "3.15.1" - -vscode-languageserver-textdocument@^1.0.1, vscode-languageserver-textdocument@^1.0.1-next.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.1.tgz#178168e87efad6171b372add1dea34f53e5d330f" - integrity sha512-UIcJDjX7IFkck7cSkNNyzIz5FyvpQfY7sdzVy+wkKN/BLaD4DQ0ppXQrKePomCxTS7RrolK1I0pey0bG9eh8dA== - -vscode-languageserver-types@3.15.1, vscode-languageserver-types@^3.15.1, vscode-languageserver-types@^3.6.0-next.1: - version "3.15.1" - resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.15.1.tgz#17be71d78d2f6236d414f0001ce1ef4d23e6b6de" - integrity sha512-+a9MPUQrNGRrGU630OGbYVQ+11iOIovjCkqxajPa9w57Sd5ruK8WQNsslzpa0x/QJqC8kRc2DUxWjIFwoNm4ZQ== - -vscode-languageserver@6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/vscode-languageserver/-/vscode-languageserver-6.1.1.tgz#d76afc68172c27d4327ee74332b468fbc740d762" - integrity sha512-DueEpkUAkD5XTR4MLYNr6bQIp/UFR0/IPApgXU3YfCBCB08u2sm9hRCs6DxYZELkk++STPjpcjksR2H8qI3cDQ== - dependencies: - vscode-languageserver-protocol "^3.15.3" - -vscode-nls@^4.1.1, vscode-nls@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/vscode-nls/-/vscode-nls-4.1.2.tgz#ca8bf8bb82a0987b32801f9fddfdd2fb9fd3c167" - integrity sha512-7bOHxPsfyuCqmP+hZXscLhiHwe7CSuFE4hyhbs22xPIhQ4jv99FcR4eBzfYYVLP356HNFpdvz63FFb/xw6T4Iw== - -vscode-uri@2.1.2, vscode-uri@^2.1.1: - version "2.1.2" - resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-2.1.2.tgz#c8d40de93eb57af31f3c715dd650e2ca2c096f1c" - integrity sha512-8TEXQxlldWAuIODdukIb+TR5s+9Ds40eSJrw+1iDDA9IFORPjMELarNQE3myz5XIkWWpdprmJjm1/SxMlWOC8A== + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" which@^1.2.9: version "1.3.1" @@ -2921,8 +2956,3 @@ xmlcreate@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/xmlcreate/-/xmlcreate-2.0.3.tgz#df9ecd518fd3890ab3548e1b811d040614993497" integrity sha512-HgS+X6zAztGa9zIK3Y3LXuJes33Lz9x+YyTxgrkIdabu2vqcGOWwdfCpf1hWLRrd553wd4QCDf6BBO6FfdsRiQ== - -yaml@^1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.0.tgz#3b593add944876077d4d683fee01081bd9fff31e" - integrity sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg==